blob: bdaeeb2373d27c0d253d752f689f3c474a62e09c [file] [log] [blame]
Naseer Ahmedb92e73f2016-03-12 02:03:48 -05001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3include $(LOCAL_PATH)/../../../common.mk
4
5ifeq ($(use_hwc2),true)
6
Naseer Ahmed755af6b2019-04-15 19:49:29 -04007LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
Naseer Ahmed725789e2017-05-17 13:41:10 -04008LOCAL_VENDOR_MODULE := true
Naseer Ahmedb92e73f2016-03-12 02:03:48 -05009LOCAL_MODULE_RELATIVE_PATH := hw
10LOCAL_MODULE_TAGS := optional
11LOCAL_C_INCLUDES := $(common_includes)
Varun Arora5dd61e02018-02-23 12:25:01 -080012LOCAL_C_INCLUDES += $(kernel_includes)
Isaac J. Manjarres857a4992019-04-22 17:18:05 -070013LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
Naseer Ahmed4d78d032017-03-22 12:47:30 -040014LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050015
16LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \
Ramakant Singhbaf3c502019-10-18 10:34:35 +053017 -fcolor-diagnostics\
Naseer Ahmed85020082017-05-17 14:36:46 -040018 -DLOG_TAG=\"SDM\" $(common_flags)
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050019LOCAL_CLANG := true
20
21LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \
Naseer Ahmede36f2242017-12-01 15:33:56 -050022 libutils libcutils libsync libqdutils libqdMetaData \
Dileep Marchya2d586442018-03-09 16:42:40 +053023 libdisplaydebug libsdmutils libc++ liblog libgrallocutils libui \
Padmanabhan Komanduru0d003b12020-05-19 20:50:46 +053024 libgpu_tonemapper libhidlbase libhidltransport libdisplayconfig.qti \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050025 android.hardware.graphics.mapper@2.0 \
26 android.hardware.graphics.mapper@2.1 \
Tharaga Balachandrane4cce472019-05-16 15:28:48 -040027 android.hardware.graphics.mapper@3.0 \
Naseer Ahmede7a77982018-06-04 10:56:04 -040028 android.hardware.graphics.allocator@2.0 \
Tharaga Balachandrane4cce472019-05-16 15:28:48 -040029 android.hardware.graphics.allocator@3.0 \
Naseer Ahmede7a77982018-06-04 10:56:04 -040030 android.hardware.graphics.composer@2.2 \
Baldev Sahu0eb10832019-03-01 19:46:38 +053031 android.hardware.graphics.composer@2.3 \
Padmanabhan Komanduru8073dd52020-06-05 15:27:16 +053032 android.hardware.graphics.composer@2.4 \
Dileep Marchya7e6bef32019-07-26 21:21:44 +053033 vendor.display.config@1.0 \
34 vendor.display.config@1.1 \
35 vendor.display.config@1.2 \
36 vendor.display.config@1.3 \
37 vendor.display.config@1.4 \
38 vendor.display.config@1.5 \
39 vendor.display.config@1.6 \
40 vendor.display.config@1.7 \
41 vendor.display.config@1.8 \
42 vendor.display.config@1.9 \
Pullakavi Srinivas76e3ae02019-08-14 12:18:12 +053043 vendor.display.config@1.10 \
Padmanabhan Komanduru0d003b12020-05-19 20:50:46 +053044 vendor.display.config@1.11 \
45 vendor.display.config@2.0
Naseer Ahmeda699e792017-11-09 15:08:31 -050046
Xiaowen Wu7082e1e2019-02-06 12:31:07 -050047ifeq ($(TARGET_BOARD_AUTO), true)
48LOCAL_CFLAGS += -DCONFIG_BASEID_FROM_PROP
49endif
50
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050051LOCAL_SRC_FILES := hwc_session.cpp \
Dileep Marchya6860b2b2017-04-07 15:56:47 +053052 hwc_session_services.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050053 hwc_display.cpp \
Dileep Marchyaf3ce11f2018-04-30 23:35:46 +053054 hwc_display_builtin.cpp \
55 hwc_display_pluggable.cpp \
Namit Solanki39f29af2018-08-20 12:54:46 +053056 hwc_display_dummy.cpp \
Dileep Marchyaf3ce11f2018-04-30 23:35:46 +053057 hwc_display_pluggable_test.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050058 hwc_display_virtual.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040059 hwc_debugger.cpp \
60 hwc_buffer_sync_handler.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050061 hwc_color_manager.cpp \
62 hwc_layers.cpp \
63 hwc_callbacks.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040064 cpuhint.cpp \
Dileep Marchyad16da3e2017-05-20 01:56:21 +053065 hwc_tonemapper.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040066 display_null.cpp \
67 hwc_socket_handler.cpp \
Dileep Marchyaf3ce11f2018-04-30 23:35:46 +053068 hwc_buffer_allocator.cpp
Padmanabhan Komanduru6136ea72020-06-01 12:41:43 +053069LOCAL_VINTF_FRAGMENTS := android.hardware.graphics.composer-qti-display.xml
Naseer Ahmed42752212017-01-27 17:32:21 -050070
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050071include $(BUILD_SHARED_LIBRARY)
72endif