android_device_lenovo_msm89.../camera/QCamera2/HAL/test/Android.mk
Zhao Wei Liew 669d233045 land: Import OSS camera HAL
CAF revision: AU_LINUX_ANDROID_LA.UM.5.1_RB1.06.00.01.192.038

Change-Id: I87589fea5e9c00c3bdc9c79cc6b2d6453c3d09b3
2017-02-12 07:26:24 +08:00

63 lines
1.4 KiB
Makefile

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
qcamera_test.cpp \
LOCAL_SHARED_LIBRARIES:= \
libdl \
libui \
libutils \
libcutils \
libbinder \
libmedia \
libui \
libgui \
libcamera_client \
libskia \
libstagefright \
libstagefright_foundation \
ifneq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 18 ))" )))
LOCAL_SHARED_LIBRARIES += \
libmedia_native \
LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
LOCAL_CFLAGS += -DUSE_JB_MR1
endif
LOCAL_C_INCLUDES += \
frameworks/base/include/ui \
frameworks/base/include/surfaceflinger \
frameworks/base/include/camera \
frameworks/base/include/media \
external/skia/include/core \
external/skia/include/images \
$(TARGET_OUT_HEADERS)/qcom/display \
hardware/qcom/camera/QCamera2/stack/common \
frameworks/av/include/media/stagefright \
frameworks/native/include/media/openmax \
$(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
LOCAL_MODULE:= camera_test
LOCAL_MODULE_TAGS:= tests
LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
LOCAL_CFLAGS += -O0
ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 20 ))" )))
LOCAL_CFLAGS += -DUSE_SDK_20_OR_HIGHER
ifeq ($(TARGET_USES_AOSP),true)
LOCAL_CFLAGS += -DVANILLA_HAL
endif
endif
#include $(BUILD_EXECUTABLE)