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 libdl \ 23 libsdmutils libc++ liblog libdrmutils libui libgpu_tonemapper 24 25# Allow implicit fallthroughs in hwc_display.cpp until they are fixed. 26LOCAL_CFLAGS += -Wno-implicit-fallthrough 27 28LOCAL_SRC_FILES := hwc_session.cpp \ 29 hwc_display.cpp \ 30 hwc_display_primary.cpp \ 31 hwc_display_external.cpp \ 32 hwc_display_virtual.cpp \ 33 hwc_debugger.cpp \ 34 hwc_buffer_sync_handler.cpp \ 35 hwc_color_manager.cpp \ 36 hwc_layers.cpp \ 37 hwc_callbacks.cpp \ 38 cpuhint.cpp \ 39 hwc_tonemapper.cpp \ 40 hwc_socket_handler.cpp \ 41 hwc_buffer_allocator.cpp 42 43ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true) 44 LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR 45endif 46 47include $(BUILD_SHARED_LIBRARY) 48endif 49