1LOCAL_PATH := $(call my-dir) 2include $(LOCAL_PATH)/../common.mk 3include $(CLEAR_VARS) 4 5LOCAL_MODULE := vendor.qti.hardware.display.composer-service 6LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 7LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 8LOCAL_SANITIZE := integer_overflow 9LOCAL_VENDOR_MODULE := true 10LOCAL_MODULE_RELATIVE_PATH := hw 11LOCAL_MODULE_TAGS := optional 12LOCAL_C_INCLUDES := $(common_includes) 13LOCAL_C_INCLUDES += $(kernel_includes) 14LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) 15LOCAL_HEADER_LIBRARIES := display_headers libThermal_headers 16 17LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ 18 -DLOG_TAG=\"SDM\" $(common_flags) -fcolor-diagnostics 19LOCAL_CLANG := true 20 21LOCAL_SHARED_LIBRARIES := libhistogram libbinder libhardware libutils libcutils libsync \ 22 libc++ liblog libhidlbase \ 23 liblog libfmq libhardware_legacy \ 24 libsdmcore libqservice libqdutils libqdMetaData \ 25 libdisplaydebug libsdmutils libgrallocutils libui \ 26 libgpu_tonemapper libEGL libGLESv2 libGLESv3 \ 27 vendor.qti.hardware.display.composer@3.0 \ 28 android.hardware.graphics.composer@2.1 \ 29 android.hardware.graphics.composer@2.2 \ 30 android.hardware.graphics.composer@2.3 \ 31 android.hardware.graphics.composer@2.4 \ 32 android.hardware.graphics.mapper@2.0 \ 33 android.hardware.graphics.mapper@2.1 \ 34 android.hardware.graphics.mapper@3.0 \ 35 android.hardware.graphics.allocator@2.0 \ 36 android.hardware.graphics.allocator@3.0 \ 37 libdisplayconfig.qti \ 38 libdrm libthermalclient 39 40LOCAL_SHARED_LIBRARIES += com.google.hardware.pixel.display-V1-ndk_platform \ 41 libbinder_ndk \ 42 libbase 43 44LOCAL_SRC_FILES := QtiComposer.cpp QtiComposerClient.cpp service.cpp \ 45 QtiComposerHandleImporter.cpp \ 46 hwc_session.cpp \ 47 hwc_session_services.cpp \ 48 hwc_display.cpp \ 49 hwc_display_builtin.cpp \ 50 hwc_display_pluggable.cpp \ 51 hwc_display_dummy.cpp \ 52 hwc_display_pluggable_test.cpp \ 53 hwc_display_virtual.cpp \ 54 hwc_debugger.cpp \ 55 hwc_buffer_sync_handler.cpp \ 56 hwc_color_manager.cpp \ 57 hwc_layers.cpp \ 58 hwc_callbacks.cpp \ 59 cpuhint.cpp \ 60 hwc_tonemapper.cpp \ 61 display_null.cpp \ 62 hwc_socket_handler.cpp \ 63 hwc_buffer_allocator.cpp \ 64 hwc_display_virtual_factory.cpp \ 65 hwc_display_virtual_dpu.cpp \ 66 hwc_display_virtual_gpu.cpp \ 67 gl_common.cpp \ 68 gl_color_convert.cpp \ 69 gl_color_convert_impl.cpp \ 70 gl_layer_stitch.cpp \ 71 gl_layer_stitch_impl.cpp \ 72 pixel-display.cpp 73 74LOCAL_INIT_RC := vendor.qti.hardware.display.composer-service.rc 75ifneq ($(TARGET_HAS_LOW_RAM),true) 76 ifeq ($(TARGET_BOARD_PLATFORM)$(TARGET_BOARD_SUFFIX),bengal_32) 77 LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.composer-service-32bit.xml 78 else 79 LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.composer-service.xml 80 endif 81else 82LOCAL_VINTF_FRAGMENTS := vendor.qti.hardware.display.composer-service-low-ram.xml 83endif 84 85LOCAL_VINTF_FRAGMENTS += pixel-display-default.xml 86 87include $(BUILD_EXECUTABLE) 88