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