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_NOTICE_FILE             := $(LOCAL_PATH)/../../../LICENSE
11LOCAL_VENDOR_MODULE           := true
12LOCAL_MODULE_RELATIVE_PATH    := hw
13LOCAL_MODULE_TAGS             := optional
14LOCAL_C_INCLUDES              := $(common_includes)
15LOCAL_C_INCLUDES              += $(kernel_includes)
16LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
17LOCAL_HEADER_LIBRARIES        := display_headers
18
19LOCAL_CFLAGS                  := -Wno-missing-field-initializers -Wno-unused-parameter \
20                                 -fcolor-diagnostics\
21                                 -DLOG_TAG=\"SDM\" $(common_flags)
22LOCAL_CLANG                   := true
23
24LOCAL_SHARED_LIBRARIES        := libsdmcore libqservice libbinder libhardware libhardware_legacy \
25                                 libutils libcutils libsync libqdutils libqdMetaData \
26                                 libdisplaydebug libsdmutils libc++ liblog libgrallocutils libui \
27                                 libgpu_tonemapper libhidlbase libhidltransport \
28                                 android.hardware.graphics.mapper@2.0 \
29                                 android.hardware.graphics.mapper@2.1 \
30                                 android.hardware.graphics.mapper@3.0 \
31                                 android.hardware.graphics.allocator@2.0 \
32                                 android.hardware.graphics.allocator@3.0 \
33                                 android.hardware.graphics.composer@2.2 \
34                                 android.hardware.graphics.composer@2.3 \
35                                 android.hardware.graphics.composer@2.4 \
36                                 hardware.google.light@1.0 \
37                                 libdrm \
38                                 vendor.display.config@1.0 \
39                                 vendor.display.config@1.1 \
40                                 vendor.display.config@1.2 \
41                                 vendor.display.config@1.3 \
42                                 vendor.display.config@1.4 \
43                                 vendor.display.config@1.5 \
44                                 vendor.display.config@1.6 \
45                                 vendor.display.config@1.7 \
46                                 vendor.display.config@1.8 \
47                                 vendor.display.config@1.9 \
48                                 vendor.display.config@1.10 \
49                                 vendor.display.config@1.11
50
51LOCAL_STATIC_LIBRARIES        := libhistogram
52
53# Allow implicit fallthroughs in hwc_display.cpp until they are fixed.
54LOCAL_CFLAGS                  += -Wno-error=implicit-fallthrough
55
56ifeq ($(TARGET_BOARD_AUTO), true)
57LOCAL_CFLAGS                  += -DCONFIG_BASEID_FROM_PROP
58endif
59
60LOCAL_SRC_FILES               := hwc_session.cpp \
61                                 hwc_session_services.cpp \
62                                 hwc_display.cpp \
63                                 hwc_display_builtin.cpp \
64                                 hwc_display_pluggable.cpp \
65                                 hwc_display_dummy.cpp \
66                                 hwc_display_pluggable_test.cpp \
67                                 hwc_display_virtual.cpp \
68                                 hwc_debugger.cpp \
69                                 hwc_buffer_sync_handler.cpp \
70                                 hwc_color_manager.cpp \
71                                 hwc_layers.cpp \
72                                 hwc_callbacks.cpp \
73                                 cpuhint.cpp \
74                                 hwc_tonemapper.cpp \
75                                 display_null.cpp \
76                                 hwc_socket_handler.cpp \
77                                 hwc_buffer_allocator.cpp
78#LOCAL_VINTF_FRAGMENTS         := android.hardware.graphics.composer-qti-display.xml
79
80include $(BUILD_SHARED_LIBRARY)
81endif
82