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