Home | History | Annotate | Download | only in QCamera2
      1 ifneq (,$(filter $(TARGET_ARCH), arm arm64))
      2 
      3 LOCAL_PATH:= $(call my-dir)
      4 
      5 include $(CLEAR_VARS)
      6 
      7 LOCAL_SRC_FILES := \
      8         util/QCameraBufferMaps.cpp \
      9         util/QCameraCmdThread.cpp \
     10         util/QCameraDisplay.cpp \
     11         util/QCameraFlash.cpp \
     12         util/QCameraPerf.cpp \
     13         util/QCameraQueue.cpp \
     14         QCamera2Hal.cpp \
     15         QCamera2Factory.cpp
     16 
     17 #HAL 3.0 source
     18 LOCAL_SRC_FILES += \
     19         HAL3/QCamera3HWI.cpp \
     20         HAL3/QCamera3Mem.cpp \
     21         HAL3/QCamera3Stream.cpp \
     22         HAL3/QCamera3Channel.cpp \
     23         HAL3/QCamera3VendorTags.cpp \
     24         HAL3/QCamera3PostProc.cpp \
     25         HAL3/QCamera3CropRegionMapper.cpp \
     26         HAL3/QCamera3StreamMem.cpp
     27 
     28 #HAL 1.0 source
     29 LOCAL_SRC_FILES += \
     30         HAL/QCamera2HWI.cpp \
     31         HAL/QCameraMuxer.cpp \
     32         HAL/QCameraMem.cpp \
     33         HAL/QCameraStateMachine.cpp \
     34         HAL/QCameraChannel.cpp \
     35         HAL/QCameraStream.cpp \
     36         HAL/QCameraPostProc.cpp \
     37         HAL/QCamera2HWICallbacks.cpp \
     38         HAL/QCameraParameters.cpp \
     39         HAL/QCameraParametersIntf.cpp \
     40         HAL/QCameraThermalAdapter.cpp
     41 
     42 LOCAL_CFLAGS := -Wall -Wextra -Werror
     43 
     44 # System header file path prefix
     45 LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys
     46 
     47 LOCAL_CFLAGS += -DHAS_MULTIMEDIA_HINTS -D_ANDROID
     48 
     49 ifeq ($(TARGET_USES_AOSP),true)
     50 LOCAL_CFLAGS += -DVANILLA_HAL
     51 endif
     52 
     53 #HAL 1.0 Flags
     54 LOCAL_CFLAGS += -DDEFAULT_DENOISE_MODE_ON -DHAL3 -DQCAMERA_REDEFINE_LOG
     55 
     56 LOCAL_C_INCLUDES := \
     57         $(LOCAL_PATH)/../mm-image-codec/qexif \
     58         $(LOCAL_PATH)/../mm-image-codec/qomx_core \
     59         $(LOCAL_PATH)/include \
     60         $(LOCAL_PATH)/stack/common \
     61         $(LOCAL_PATH)/stack/mm-camera-interface/inc \
     62         $(LOCAL_PATH)/util \
     63         hardware/libhardware/include/hardware \
     64         hardware/qcom/media/msm8996/libstagefrighthw \
     65         $(TARGET_OUT_HEADERS)/mm-core/omxcore \
     66         system/core/include/cutils \
     67         system/core/include/system \
     68         system/media/camera/include/system
     69 
     70 #HAL 1.0 Include paths
     71 LOCAL_C_INCLUDES += \
     72         hardware/qcom/camera/QCamera2/HAL
     73 
     74 ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
     75 LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
     76 LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
     77 endif
     78 ifeq ($(TARGET_TS_MAKEUP),true)
     79 LOCAL_CFLAGS += -DTARGET_TS_MAKEUP
     80 LOCAL_C_INCLUDES += $(LOCAL_PATH)/HAL/tsMakeuplib/include
     81 endif
     82 ifneq (,$(filter msm8974 msm8916 msm8226 msm8610 msm8916 apq8084 msm8084 msm8994 msm8992 msm8952 msm8937 msm8953 msm8996 msmcobalt, $(TARGET_BOARD_PLATFORM)))
     83     LOCAL_CFLAGS += -DVENUS_PRESENT
     84 endif
     85 
     86 ifneq (,$(filter msm8996 msmcobalt,$(TARGET_BOARD_PLATFORM)))
     87     LOCAL_CFLAGS += -DUBWC_PRESENT
     88 endif
     89 
     90 #LOCAL_STATIC_LIBRARIES := libqcamera2_util
     91 LOCAL_C_INCLUDES += \
     92         $(TARGET_OUT_HEADERS)/qcom/display
     93 LOCAL_C_INCLUDES += \
     94         hardware/qcom/display/msm8996/libqservice
     95 LOCAL_SHARED_LIBRARIES := libcamera_client liblog libhardware libutils libcutils libdl libsync libgui
     96 LOCAL_SHARED_LIBRARIES += libmmcamera_interface libmmjpeg_interface libui libcamera_metadata
     97 LOCAL_SHARED_LIBRARIES += libqdMetaData libqservice libbinder
     98 ifeq ($(TARGET_TS_MAKEUP),true)
     99 LOCAL_SHARED_LIBRARIES += libts_face_beautify_hal libts_detected_face_hal
    100 endif
    101 
    102 LOCAL_MODULE_RELATIVE_PATH := hw
    103 LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
    104 LOCAL_MODULE_TAGS := optional
    105 
    106 LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
    107 include $(BUILD_SHARED_LIBRARY)
    108 
    109 include $(call first-makefiles-under,$(LOCAL_PATH))
    110 
    111 endif
    112