blob: 306ff72a3e878ab7a07cc9c67d8052b336fda77d [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 \
24 libgpu_tonemapper libhidlbase libhidltransport \
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 \
Dileep Marchya7e6bef32019-07-26 21:21:44 +053032 vendor.display.config@1.0 \
33 vendor.display.config@1.1 \
34 vendor.display.config@1.2 \
35 vendor.display.config@1.3 \
36 vendor.display.config@1.4 \
37 vendor.display.config@1.5 \
38 vendor.display.config@1.6 \
39 vendor.display.config@1.7 \
40 vendor.display.config@1.8 \
41 vendor.display.config@1.9 \
Pullakavi Srinivas76e3ae02019-08-14 12:18:12 +053042 vendor.display.config@1.10 \
43 vendor.display.config@1.11
Naseer Ahmeda699e792017-11-09 15:08:31 -050044
Xiaowen Wu7082e1e2019-02-06 12:31:07 -050045ifeq ($(TARGET_BOARD_AUTO), true)
46LOCAL_CFLAGS += -DCONFIG_BASEID_FROM_PROP
47endif
48
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050049LOCAL_SRC_FILES := hwc_session.cpp \
Dileep Marchya6860b2b2017-04-07 15:56:47 +053050 hwc_session_services.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050051 hwc_display.cpp \
Dileep Marchyaf3ce11f2018-04-30 23:35:46 +053052 hwc_display_builtin.cpp \
53 hwc_display_pluggable.cpp \
Namit Solanki39f29af2018-08-20 12:54:46 +053054 hwc_display_dummy.cpp \
Dileep Marchyaf3ce11f2018-04-30 23:35:46 +053055 hwc_display_pluggable_test.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050056 hwc_display_virtual.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040057 hwc_debugger.cpp \
58 hwc_buffer_sync_handler.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050059 hwc_color_manager.cpp \
60 hwc_layers.cpp \
61 hwc_callbacks.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040062 cpuhint.cpp \
Dileep Marchyad16da3e2017-05-20 01:56:21 +053063 hwc_tonemapper.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040064 display_null.cpp \
65 hwc_socket_handler.cpp \
Dileep Marchyaf3ce11f2018-04-30 23:35:46 +053066 hwc_buffer_allocator.cpp
Naseer Ahmed42752212017-01-27 17:32:21 -050067
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050068include $(BUILD_SHARED_LIBRARY)
69endif