1LOCAL_PATH:= $(call my-dir)
2
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES:= \
6    qcamera_test.cpp \
7
8LOCAL_SHARED_LIBRARIES:= \
9    libdl \
10    libui \
11    libutils \
12    libcutils \
13    libbinder \
14    libmedia \
15    libui \
16    libgui \
17    libcamera_client \
18    libskia \
19    libstagefright \
20    libstagefright_foundation \
21
22ifneq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 18 ))" )))
23
24LOCAL_SHARED_LIBRARIES += \
25    libmedia_native \
26
27LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
28LOCAL_CFLAGS += -DUSE_JB_MR1
29
30endif
31
32LOCAL_C_INCLUDES += \
33    frameworks/base/include/ui \
34    frameworks/base/include/surfaceflinger \
35    frameworks/base/include/camera \
36    frameworks/base/include/media \
37    external/skia/include/core \
38    external/skia/include/images \
39    $(TARGET_OUT_HEADERS)/qcom/display \
40    hardware/qcom/camera/QCamera2/stack/common \
41    hardware/qcom/camera/QCamera2/stack/mm-camera-interface/inc \
42    frameworks/av/include/media/stagefright \
43    frameworks/native/include/media/openmax \
44    $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
45
46LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
47
48LOCAL_MODULE:= camera_test
49LOCAL_MODULE_TAGS:= tests
50
51LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
52LOCAL_CFLAGS += -O0
53
54ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 20 ))" )))
55
56LOCAL_CFLAGS += -DUSE_SDK_20_OR_HIGHER
57
58ifeq ($(TARGET_USES_AOSP),true)
59LOCAL_CFLAGS += -DVANILLA_HAL
60endif
61
62endif
63
64#include $(BUILD_EXECUTABLE)
65