1OLD_LOCAL_PATH := $(LOCAL_PATH) 2LOCAL_PATH := $(call my-dir) 3 4include $(CLEAR_VARS) 5 6MM_CAM_FILES := \ 7 src/mm_camera_interface.c \ 8 src/mm_camera.c \ 9 src/mm_camera_channel.c \ 10 src/mm_camera_stream.c \ 11 src/mm_camera_thread.c \ 12 src/mm_camera_sock.c 13 14ifeq ($(strip $(TARGET_USES_ION)),true) 15 LOCAL_CFLAGS += -DUSE_ION 16endif 17 18ifeq ($(call is-board-platform-in-list,msm8974 msm8226),true) 19 LOCAL_CFLAGS += -DVENUS_PRESENT 20endif 21 22LOCAL_CFLAGS += -D_ANDROID_ 23LOCAL_COPY_HEADERS_TO := mm-camera-interface 24LOCAL_COPY_HEADERS += ../common/cam_intf.h 25LOCAL_COPY_HEADERS += ../common/cam_types.h 26 27LOCAL_C_INCLUDES := \ 28 $(LOCAL_PATH)/inc \ 29 $(LOCAL_PATH)/../common 30 31LOCAL_C_INCLUDES += hardware/qcom/media/mm-core/inc 32 33LOCAL_CFLAGS += -Wall -Werror 34 35LOCAL_SRC_FILES := $(MM_CAM_FILES) 36 37LOCAL_MODULE := libmmcamera_interface 38LOCAL_SHARED_LIBRARIES := libdl libcutils liblog 39LOCAL_MODULE_TAGS := optional 40 41include $(BUILD_SHARED_LIBRARY) 42 43LOCAL_PATH := $(OLD_LOCAL_PATH) 44