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 MM_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 16 ifeq ($(CAMERA_DAEMON_NOT_PRESENT), true) 17 else 18 LOCAL_CFLAGS += -DDAEMON_PRESENT 19 endif 20 21 # System header file path prefix 22 LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys 23 24 ifeq ($(strip $(TARGET_USES_ION)),true) 25 LOCAL_CFLAGS += -DUSE_ION 26 endif 27 28 ifneq (,$(filter msm8974 msm8916 msm8226 msm8610 msm8916 apq8084 msm8084 msm8994 msm8992 msm8952 msm8937 msm8953 msm8996 msmcobalt msmfalcon, $(TARGET_BOARD_PLATFORM))) 29 LOCAL_CFLAGS += -DVENUS_PRESENT 30 endif 31 32 ifneq (,$(filter msm8996 msmcobalt msmfalcon,$(TARGET_BOARD_PLATFORM))) 33 LOCAL_CFLAGS += -DUBWC_PRESENT 34 endif 35 36 LOCAL_CFLAGS += -D_ANDROID_ -DQCAMERA_REDEFINE_LOG 37 LOCAL_COPY_HEADERS_TO := mm-camera-interface 38 LOCAL_COPY_HEADERS += ../common/cam_intf.h 39 LOCAL_COPY_HEADERS += ../common/cam_types.h 40 41 LOCAL_C_INCLUDES := \ 42 $(LOCAL_PATH)/inc \ 43 $(LOCAL_PATH)/../common \ 44 hardware/libhardware/include/hardware \ 45 system/media/camera/include \ 46 47 LOCAL_CFLAGS += -DCAMERA_ION_HEAP_ID=ION_IOMMU_HEAP_ID 48 LOCAL_C_INCLUDES+= $(kernel_includes) 49 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 50 51 ifneq (1,$(filter 1,$(shell echo "$$(( $(PLATFORM_SDK_VERSION) >= 17 ))" ))) 52 LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/socket.h 53 LOCAL_CFLAGS += -include bionic/libc/kernel/common/linux/un.h 54 endif 55 56 LOCAL_CFLAGS += -Wall -Wextra -Werror 57 58 LOCAL_SRC_FILES := $(MM_CAM_FILES) 59 60 LOCAL_MODULE := libmmcamera_interface 61 LOCAL_PRELINK_MODULE := false 62 LOCAL_SHARED_LIBRARIES := libdl libcutils liblog 63 LOCAL_MODULE_TAGS := optional 64 65 LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY) 66 include $(BUILD_SHARED_LIBRARY) 67 68 LOCAL_PATH := $(OLD_LOCAL_PATH) 69