1OLD_LOCAL_PATH := $(LOCAL_PATH) 2LOCAL_PATH := $(call my-dir) 3 4include $(LOCAL_PATH)/../../../common.mk 5include $(CLEAR_VARS) 6 7MM_CAM_FILES := \ 8 src/mm_camera_interface.c \ 9 src/mm_camera.c \ 10 src/mm_camera_muxer.c \ 11 src/mm_camera_channel.c \ 12 src/mm_camera_stream.c \ 13 src/mm_camera_thread.c \ 14 src/mm_camera_sock.c 15 16ifeq ($(CAMERA_DAEMON_NOT_PRESENT), true) 17else 18LOCAL_CFLAGS += -DDAEMON_PRESENT 19endif 20 21# System header file path prefix 22LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys 23 24ifeq ($(strip $(TARGET_USES_ION)),true) 25 LOCAL_CFLAGS += -DUSE_ION 26endif 27 28ifneq (,$(filter msm8974 msm8916 msm8226 msm8610 msm8916 apq8084 msm8084 msm8994 msm8992 msm8952 msm8937 msm8953 msm8996 msmcobalt sdm660 msm8998, $(TARGET_BOARD_PLATFORM))) 29 LOCAL_CFLAGS += -DVENUS_PRESENT 30endif 31 32ifneq (,$(filter msm8996 msmcobalt sdm660 msm8998,$(TARGET_BOARD_PLATFORM))) 33 LOCAL_CFLAGS += -DUBWC_PRESENT 34endif 35 36LOCAL_CFLAGS += -D_ANDROID_ -DQCAMERA_REDEFINE_LOG 37LOCAL_COPY_HEADERS_TO := mm-camera-interface 38LOCAL_COPY_HEADERS += ../common/cam_intf.h 39LOCAL_COPY_HEADERS += ../common/cam_types.h 40LOCAL_COPY_HEADERS += ../common/cam_cond.h 41LOCAL_COPY_HEADERS += ../common/cam_semaphore.h 42 43LOCAL_C_INCLUDES := \ 44 $(LOCAL_PATH)/inc \ 45 $(LOCAL_PATH)/../common \ 46 hardware/libhardware/include/hardware \ 47 system/media/camera/include \ 48 49LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_IOMMU_HEAP_ID 50LOCAL_C_INCLUDES+= $(kernel_includes) 51LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 52 53ifneq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 17 ))" ))) 54 LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/socket.h 55 LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/un.h 56endif 57 58LOCAL_CFLAGS += -Wall -Wextra -Werror 59 60LOCAL_SRC_FILES := $(MM_CAM_FILES) 61 62LOCAL_MODULE := libmmcamera_interface 63LOCAL_SHARED_LIBRARIES := libdl libcutils liblog libutils 64LOCAL_HEADER_LIBRARIES := libhardware_headers 65LOCAL_MODULE_TAGS := optional 66LOCAL_VENDOR_MODULE := true 67 68LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY) 69include $(BUILD_SHARED_LIBRARY) 70 71LOCAL_PATH := $(OLD_LOCAL_PATH) 72