1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3include $(LOCAL_PATH)/../../../common.mk 4 5ifeq ($(use_hwc2),true) 6 7LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM) 8LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 9LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 10LOCAL_VENDOR_MODULE := true 11LOCAL_MODULE_RELATIVE_PATH := hw 12LOCAL_MODULE_TAGS := optional 13LOCAL_C_INCLUDES := $(common_includes) 14LOCAL_HEADER_LIBRARIES := display_headers 15 16LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ 17 -fcolor-diagnostics\ 18 -DLOG_TAG=\"SDM\" $(common_flags) 19LOCAL_CLANG := true 20 21LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ 22 libutils libcutils libsync libqdutils libqdMetaData \ 23 libsdmutils libc++ liblog libgrallocutils libui libgpu_tonemapper \ 24 libhidlbase vendor.display.config@1.0 \ 25 android.hardware.graphics.mapper@2.0 \ 26 android.hardware.graphics.mapper@2.1 \ 27 android.hardware.graphics.composer@2.2 \ 28 android.hardware.graphics.composer@2.3 \ 29 android.hardware.graphics.allocator@2.0 \ 30 libdisplaydebug \ 31 hardware.google.light@1.0 \ 32 libdrm \ 33 34LOCAL_STATIC_LIBRARIES := libhistogram 35 36ifeq ($(display_config_version), DISPLAY_CONFIG_1_1) 37LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1 38endif 39ifeq ($(display_config_version), DISPLAY_CONFIG_1_2) 40LOCAL_SHARED_LIBRARIES += vendor.display.config@1.2 vendor.display.config@1.1 41endif 42ifeq ($(display_config_version), DISPLAY_CONFIG_1_3) 43LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1 44LOCAL_SHARED_LIBRARIES += vendor.display.config@1.2 45LOCAL_SHARED_LIBRARIES += vendor.display.config@1.3 46endif 47 48# Allow implicit fallthroughs in hwc_display.cpp until they are fixed. 49LOCAL_CFLAGS += -Wno-error=implicit-fallthrough 50 51LOCAL_SRC_FILES := hwc_session.cpp \ 52 hwc_session_services.cpp \ 53 hwc_display.cpp \ 54 hwc_display_primary.cpp \ 55 hwc_display_external.cpp \ 56 hwc_display_virtual.cpp \ 57 hwc_debugger.cpp \ 58 hwc_buffer_sync_handler.cpp \ 59 hwc_color_manager.cpp \ 60 hwc_layers.cpp \ 61 hwc_callbacks.cpp \ 62 cpuhint.cpp \ 63 hwc_tonemapper.cpp \ 64 display_null.cpp \ 65 hwc_socket_handler.cpp \ 66 hwc_buffer_allocator.cpp \ 67 hwc_display_external_test.cpp 68 69include $(BUILD_SHARED_LIBRARY) 70endif 71