880b26ccee
additional cherry-picks: * b706b064b QCamera2: Fix compilation errors for unused variables. * 1e2ea589e HAL: Fixed compilation error for AOSP upgrade
63 lines
1.4 KiB
Makefile
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)
|