1LOCAL_PATH:= $(call my-dir) 2 3include $(CLEAR_VARS) 4 5LOCAL_SRC_FILES := \ 6 QCamera2Factory.cpp \ 7 QCamera2Hal.cpp \ 8 QCamera2HWI.cpp \ 9 QCameraMem.cpp \ 10 ../util/QCameraQueue.cpp \ 11 ../util/QCameraCmdThread.cpp \ 12 QCameraStateMachine.cpp \ 13 QCameraChannel.cpp \ 14 QCameraStream.cpp \ 15 QCameraPostProc.cpp \ 16 QCamera2HWICallbacks.cpp \ 17 QCameraParameters.cpp \ 18 QCameraThermalAdapter.cpp 19 20# Ignore benign clang warnings, avoid changes to third party code. 21LOCAL_CLANG_CFLAGS += -Wno-gnu-designator 22 23LOCAL_CFLAGS = -Wall -Werror -DDEFAULT_ZSL_MODE_ON -DDEFAULT_DENOISE_MODE_ON 24#Debug logs are enabled 25#LOCAL_CFLAGS += -DDISABLE_DEBUG_LOG 26 27LOCAL_C_INCLUDES := \ 28 $(LOCAL_PATH)/../stack/common \ 29 frameworks/native/include/media/hardware \ 30 frameworks/native/include/media/openmax \ 31 hardware/qcom/media/libstagefrighthw \ 32 system/media/camera/include \ 33 $(LOCAL_PATH)/../../mm-image-codec/qexif \ 34 $(LOCAL_PATH)/../../mm-image-codec/qomx_core \ 35 $(LOCAL_PATH)/../util 36 37ifneq ($(filter msm8974 msm8x74,$(TARGET_BOARD_PLATFORM)),) 38LOCAL_C_INCLUDES += \ 39 hardware/qcom/display/msm8974/libgralloc 40else 41LOCAL_C_INCLUDES += \ 42 hardware/qcom/display/msm8960/libgralloc 43endif 44 45LOCAL_SHARED_LIBRARIES := libcamera_client liblog libhardware libutils libcutils libdl 46LOCAL_SHARED_LIBRARIES += libmmcamera_interface libmmjpeg_interface 47 48LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw 49LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM) 50#LOCAL_MODULE := camera.$(TARGET_DEVICE) 51LOCAL_MODULE_TAGS := optional 52 53include $(BUILD_SHARED_LIBRARY) 54 55#include $(LOCAL_PATH)/test/Android.mk 56 57