Home | History | Annotate | Download | only in test
      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_HAL_TOP := $(LOCAL_PATH)/../../..
     33 
     34 LOCAL_C_INCLUDES += \
     35     frameworks/base/include/ui \
     36     frameworks/base/include/surfaceflinger \
     37     frameworks/base/include/camera \
     38     frameworks/base/include/media \
     39     external/skia/include/core \
     40     external/skia/include/images \
     41     $(TARGET_OUT_HEADERS)/qcom/display \
     42     $(LOCAL_HAL_TOP)/QCamera2/stack/common \
     43     $(LOCAL_HAL_TOP)/QCamera2/stack/mm-camera-interface/inc \
     44     frameworks/av/include/media/stagefright \
     45     frameworks/native/include/media/openmax \
     46     $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     47 
     48 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
     49 
     50 LOCAL_MODULE:= camera_test
     51 LOCAL_MODULE_TAGS:= tests
     52 
     53 LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
     54 LOCAL_CFLAGS += -O0
     55 
     56 ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 20 ))" )))
     57 
     58 LOCAL_CFLAGS += -DUSE_SDK_20_OR_HIGHER
     59 
     60 ifeq ($(TARGET_USES_AOSP),true)
     61 LOCAL_CFLAGS += -DVANILLA_HAL
     62 endif
     63 
     64 endif
     65 
     66 #include $(BUILD_EXECUTABLE)
     67