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