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_VENDOR_MODULE := true 9LOCAL_MODULE_RELATIVE_PATH := hw 10LOCAL_MODULE_TAGS := optional 11LOCAL_C_INCLUDES := $(common_includes) 12LOCAL_HEADER_LIBRARIES := display_headers 13 14LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ 15 -fcolor-diagnostics\ 16 -DLOG_TAG=\"SDM\" $(common_flags) 17LOCAL_CLANG := true 18 19LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ 20 libutils libcutils libsync libqdutils libqdMetaData libdl \ 21 libsdmutils libc++ liblog libdrmutils libui libgpu_tonemapper 22 23# Allow implicit fallthroughs in hwc_display.cpp until they are fixed. 24LOCAL_CFLAGS += -Wno-implicit-fallthrough 25 26LOCAL_SRC_FILES := hwc_session.cpp \ 27 hwc_display.cpp \ 28 hwc_display_primary.cpp \ 29 hwc_display_external.cpp \ 30 hwc_display_virtual.cpp \ 31 hwc_debugger.cpp \ 32 hwc_buffer_sync_handler.cpp \ 33 hwc_color_manager.cpp \ 34 hwc_layers.cpp \ 35 hwc_callbacks.cpp \ 36 cpuhint.cpp \ 37 hwc_tonemapper.cpp \ 38 hwc_socket_handler.cpp \ 39 hwc_buffer_allocator.cpp 40 41ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true) 42 LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR 43endif 44 45include $(BUILD_SHARED_LIBRARY) 46endif 47