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    $(SRC_CAMERA_HAL_DIR)/QCamera2/stack/common \
41    $(SRC_CAMERA_HAL_DIR)/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_LICENSE_KINDS:= SPDX-license-identifier-BSD
50LOCAL_LICENSE_CONDITIONS:= notice
51LOCAL_MODULE_TAGS:= tests
52
53LOCAL_CFLAGS += -Wall -Wextra -Werror -Wno-unused-parameter
54LOCAL_CFLAGS += -O0
55
56ifeq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 20 ))" )))
57
58LOCAL_CFLAGS += -DUSE_SDK_20_OR_HIGHER
59
60ifeq ($(TARGET_USES_AOSP),true)
61LOCAL_CFLAGS += -DVANILLA_HAL
62endif
63
64endif
65
66#include $(BUILD_EXECUTABLE)
67