1OLD_LOCAL_PATH := $(LOCAL_PATH) 2LOCAL_PATH := $(call my-dir) 3 4include $(LOCAL_PATH)/../../../common.mk 5include $(CLEAR_VARS) 6 7# Too many clang warnings/errors, see b/23163853. 8LOCAL_CLANG := false 9 10MM_CAM_FILES := \ 11 src/mm_camera_interface.c \ 12 src/mm_camera.c \ 13 src/mm_camera_channel.c \ 14 src/mm_camera_stream.c \ 15 src/mm_camera_thread.c \ 16 src/mm_camera_sock.c 17 18ifeq ($(strip $(TARGET_USES_ION)),true) 19 LOCAL_CFLAGS += -DUSE_ION 20endif 21 22ifneq (,$(filter msm8974 msm8916 msm8226 msm8610 msm8916 apq8084 msm8084 msm8994 msm8992,$(TARGET_BOARD_PLATFORM))) 23 LOCAL_CFLAGS += -DVENUS_PRESENT 24endif 25 26LOCAL_CFLAGS += -D_ANDROID_ 27LOCAL_COPY_HEADERS_TO := mm-camera-interface 28LOCAL_COPY_HEADERS += ../common/cam_intf.h 29LOCAL_COPY_HEADERS += ../common/cam_types.h 30LOCAL_COPY_HEADERS += ../common/cam_cond.h 31LOCAL_COPY_HEADERS += ../common/cam_semaphore.h 32 33LOCAL_C_INCLUDES := \ 34 $(LOCAL_PATH)/inc \ 35 $(LOCAL_PATH)/../common \ 36 system/media/camera/include 37 38LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_IOMMU_HEAP_ID 39LOCAL_C_INCLUDES+= $(kernel_includes) 40LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 41 42LOCAL_C_INCLUDES += hardware/qcom/media/msm8974/mm-core/inc 43 44ifneq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 17 ))" ))) 45 LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/socket.h 46 LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/un.h 47endif 48LOCAL_CFLAGS += -Wall -Wextra -Werror 49 50LOCAL_SRC_FILES := $(MM_CAM_FILES) 51 52LOCAL_MODULE := libmmcamera_interface 53LOCAL_PRELINK_MODULE := false 54LOCAL_SHARED_LIBRARIES := libdl libcutils liblog 55LOCAL_MODULE_TAGS := optional 56 57LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY) 58include $(BUILD_SHARED_LIBRARY) 59 60LOCAL_PATH := $(OLD_LOCAL_PATH) 61