daily pastebin goal
27%
SHARE
TWEET

Untitled

DarkAngelGR Dec 16th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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/QCameraFlash.cpp \
  11.         util/QCameraPerf.cpp \
  12.         util/QCameraQueue.cpp \
  13.         util/QCameraCommon.cpp \
  14.         util/QCameraDisplay.cpp \
  15.         QCamera2Hal.cpp \
  16.         QCamera2Factory.cpp
  17.  
  18. #HAL 3.0 source
  19. LOCAL_SRC_FILES += \
  20.         HAL3/QCamera3HWI.cpp \
  21.         HAL3/QCamera3Mem.cpp \
  22.         HAL3/QCamera3Stream.cpp \
  23.         HAL3/QCamera3Channel.cpp \
  24.         HAL3/QCamera3VendorTags.cpp \
  25.         HAL3/QCamera3PostProc.cpp \
  26.         HAL3/QCamera3CropRegionMapper.cpp \
  27.         HAL3/QCamera3StreamMem.cpp
  28.  
  29. #HAL 1.0 source
  30. LOCAL_SRC_FILES += \
  31.         HAL/QCamera2HWI.cpp \
  32.         HAL/QCameraMuxer.cpp \
  33.         HAL/QCameraMem.cpp \
  34.         HAL/QCameraStateMachine.cpp \
  35.         HAL/QCameraChannel.cpp \
  36.         HAL/QCameraStream.cpp \
  37.         HAL/QCameraPostProc.cpp \
  38.         HAL/QCamera2HWICallbacks.cpp \
  39.         HAL/QCameraParameters.cpp \
  40.         HAL/QCameraParametersIntf.cpp \
  41.         HAL/QCameraThermalAdapter.cpp
  42.  
  43. LOCAL_CFLAGS := -Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-variable
  44.  
  45. # System header file path prefix
  46. LOCAL_CFLAGS += -DSYSTEM_HEADER_PREFIX=sys
  47.  
  48. LOCAL_CFLAGS += -DHAS_MULTIMEDIA_HINTS -D_ANDROID
  49.  
  50. ifeq ($(TARGET_USES_AOSP),true)
  51. LOCAL_CFLAGS += -DVANILLA_HAL
  52. endif
  53.  
  54. #use media extension
  55. ifeq ($(TARGET_USES_MEDIA_EXTENSIONS), true)
  56. LOCAL_CFLAGS += -DUSE_MEDIA_EXTENSIONS
  57. endif
  58.  
  59. #USE_DISPLAY_SERVICE from Android O onwards
  60. #to receive vsync event from display
  61. ifeq ($(call is-platform-sdk-version-at-least,26),true)
  62. USE_DISPLAY_SERVICE := true
  63. LOCAL_CFLAGS += -DUSE_DISPLAY_SERVICE
  64. endif
  65.  
  66. LOCAL_CFLAGS += -std=c++11 -std=gnu++1y
  67.  
  68. #HAL 1.0 Flags
  69. LOCAL_CFLAGS += -DDEFAULT_DENOISE_MODE_ON -DHAL3 -DQCAMERA_REDEFINE_LOG
  70.  
  71. LOCAL_C_INCLUDES := \
  72.         $(LOCAL_PATH)/../mm-image-codec/qexif \
  73.         $(LOCAL_PATH)/../mm-image-codec/qomx_core \
  74.         $(LOCAL_PATH)/include \
  75.         $(LOCAL_PATH)/stack/common \
  76.         $(LOCAL_PATH)/stack/mm-camera-interface/inc \
  77.         $(LOCAL_PATH)/util \
  78.         $(LOCAL_PATH)/HAL3 \
  79.         hardware/libhardware/include/hardware \
  80.         hardware/qcom/media-caf-msm8996/libstagefrighthw \
  81.         hardware/qcom/media-caf-msm8996/mm-core/inc \
  82.         system/core/include/cutils \
  83.         system/core/include/system \
  84.         system/media/camera/include/system \
  85.     hardware/qcom/display/msm8996/libgralloc
  86.  
  87. #HAL 1.0 Include paths
  88. LOCAL_C_INCLUDES += \
  89.         $(LOCAL_PATH)/HAL
  90.  
  91. ifeq ($(TARGET_COMPILE_WITH_MSM_KERNEL),true)
  92. LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
  93. LOCAL_ADDITIONAL_DEPENDENCIES := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
  94. endif
  95. ifeq ($(TARGET_TS_MAKEUP),true)
  96. LOCAL_CFLAGS += -DTARGET_TS_MAKEUP
  97. LOCAL_C_INCLUDES += $(LOCAL_PATH)/HAL/tsMakeuplib/include
  98. endif
  99. ifneq (,$(filter msm8974 msm8916 msm8226 msm8610 msm8916 apq8084 msm8084 msm8994 msm8992 msm8952 msm8937 msm8953 msm8996,$(TARGET_BOARD_PLATFORM)))
  100.     LOCAL_CFLAGS += -DVENUS_PRESENT
  101. endif
  102.  
  103. ifneq (,$(filter msm8996,$(TARGET_BOARD_PLATFORM)))
  104.     LOCAL_CFLAGS += -DUBWC_PRESENT
  105. endif
  106.  
  107. #LOCAL_STATIC_LIBRARIES := libqcamera2_util
  108. LOCAL_C_INCLUDES += \
  109.         $(TARGET_OUT_HEADERS)/qcom/display
  110. LOCAL_C_INCLUDES += \
  111.         hardware/qcom/display-caf-msm8996/libqservice
  112. LOCAL_SHARED_LIBRARIES := liblog libhardware libutils libcutils libdl libsync
  113. LOCAL_SHARED_LIBRARIES += libmmcamera_interface libmmjpeg_interface libui libcamera_metadata
  114. LOCAL_SHARED_LIBRARIES += libqdMetaData libqservice libbinder
  115. LOCAL_SHARED_LIBRARIES += libhidlbase libhwbinder
  116. LOCAL_SHARED_LIBRARIES += android.hardware.power@1.0
  117. ifeq ($(USE_DISPLAY_SERVICE),true)
  118. LOCAL_SHARED_LIBRARIES += android.frameworks.displayservice@1.0 libhidltransport
  119. else
  120. LOCAL_SHARED_LIBRARIES += libgui
  121. endif
  122. ifeq ($(TARGET_TS_MAKEUP),true)
  123. LOCAL_SHARED_LIBRARIES += libts_face_beautify_hal libts_detected_face_hal
  124. endif
  125.  
  126. LOCAL_STATIC_LIBRARIES := android.hardware.camera.common@1.0-helper
  127.  
  128. LOCAL_MODULE_RELATIVE_PATH := hw
  129. LOCAL_MODULE := camera.$(TARGET_BOARD_PLATFORM)
  130. LOCAL_VENDOR_MODULE := true
  131. LOCAL_MODULE_TAGS := optional
  132.  
  133. LOCAL_32_BIT_ONLY := $(BOARD_QTI_CAMERA_32BIT_ONLY)
  134. include $(BUILD_SHARED_LIBRARY)
  135.  
  136. include $(call first-makefiles-under,$(LOCAL_PATH))
  137. endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top