1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_SRC_FILES:= \ 6 qcamera_test.cpp \ 7 8 LOCAL_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 22 ifneq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 18 ))" ))) 23 24 LOCAL_SHARED_LIBRARIES += \ 25 libmedia_native \ 26 27 LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY) 28 LOCAL_CFLAGS += -DUSE_JB_MR1 29 30 endif 31 32 LOCAL_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 46 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr 47 48 LOCAL_MODULE:= camera_test 49 LOCAL_MODULE_TAGS:= tests 50 51 LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter 52 LOCAL_CFLAGS += -O0 53 54 ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 20 ))" ))) 55 56 LOCAL_CFLAGS += -DUSE_SDK_20_OR_HIGHER 57 58 ifeq ($(TARGET_USES_AOSP),true) 59 LOCAL_CFLAGS += -DVANILLA_HAL 60 endif 61 62 endif 63 64 #include $(BUILD_EXECUTABLE) 65