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