• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1LOCAL_PATH:=$(call my-dir)
2
3# Build command line test app: mm-hal3-app
4include $(CLEAR_VARS)
5
6ifeq ($(TARGET_SUPPORT_HAL1),false)
7LOCAL_CFLAGS += -DQCAMERA_HAL3_SUPPORT
8endif
9
10ifeq ($(TARGET_BOARD_PLATFORM),msm8953)
11    LOCAL_CFLAGS += -DCAMERA_CHIPSET_8953
12else
13    LOCAL_CFLAGS += -DCAMERA_CHIPSET_8937
14endif
15
16LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
17LOCAL_C_INCLUDES+= $(kernel_includes)
18
19LOCAL_C_INCLUDES += \
20    hardware/libhardware/include/hardware \
21    system/media/camera/include \
22    system/media/private/camera/include \
23    $(LOCAL_PATH)/../ \
24    $(LOCAL_PATH)/../../stack/mm-camera-interface/inc \
25    hardware/libhardware/include/hardware \
26    $(SRC_MEDIA_HAL_DIR)/libstagefrighthw \
27    $(SRC_MEDIA_HAL_DIR)/mm-core/inc \
28    system/core/include/cutils \
29    system/core/include/system \
30    system/media/camera/include/system
31
32
33LOCAL_SRC_FILES := \
34    QCameraHAL3Base.cpp \
35    QCameraHAL3MainTestContext.cpp \
36    QCameraHAL3VideoTest.cpp \
37    QCameraHAL3PreviewTest.cpp \
38    QCameraHAL3SnapshotTest.cpp \
39    QCameraHAL3RawSnapshotTest.cpp \
40    QCameraHAL3Test.cpp
41
42
43LOCAL_SHARED_LIBRARIES:= libutils libcamera_client liblog libcamera_metadata libcutils
44
45LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
46
47LOCAL_MODULE:= hal3-test-app
48
49LOCAL_CFLAGS += -Wall -Wextra -Werror
50
51LOCAL_CFLAGS += -std=c++11 -std=gnu++0x
52
53include $(BUILD_EXECUTABLE)
54