blob: d9ffa0b0de9576b8088e989129b19690e7947d1d [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
7LOCAL_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)
Naseer Ahmed4d78d032017-03-22 12:47:30 -040013LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050014
15LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \
16 -std=c++11 -fcolor-diagnostics\
Naseer Ahmed85020082017-05-17 14:36:46 -040017 -DLOG_TAG=\"SDM\" $(common_flags)
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050018LOCAL_CLANG := true
19
20LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \
Naseer Ahmede36f2242017-12-01 15:33:56 -050021 libutils libcutils libsync libqdutils libqdMetaData \
Dileep Marchya2d586442018-03-09 16:42:40 +053022 libdisplaydebug libsdmutils libc++ liblog libgrallocutils libui \
23 libgpu_tonemapper libhidlbase libhidltransport \
Naseer Ahmed920d71b2018-03-08 16:54:28 -050024 vendor.display.config@1.0 \
25 android.hardware.graphics.mapper@2.0 \
26 android.hardware.graphics.mapper@2.1 \
Naseer Ahmede7a77982018-06-04 10:56:04 -040027 android.hardware.graphics.allocator@2.0 \
28 android.hardware.graphics.composer@2.2 \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050029
Naseer Ahmeda699e792017-11-09 15:08:31 -050030ifeq ($(display_config_version), DISPLAY_CONFIG_1_1)
Naseer Ahmedc04be082018-03-02 11:30:07 -050031LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1
Naseer Ahmeda699e792017-11-09 15:08:31 -050032endif
33
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050034LOCAL_SRC_FILES := hwc_session.cpp \
Dileep Marchya6860b2b2017-04-07 15:56:47 +053035 hwc_session_services.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050036 hwc_display.cpp \
37 hwc_display_primary.cpp \
38 hwc_display_external.cpp \
39 hwc_display_virtual.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040040 hwc_debugger.cpp \
41 hwc_buffer_sync_handler.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050042 hwc_color_manager.cpp \
43 hwc_layers.cpp \
44 hwc_callbacks.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040045 cpuhint.cpp \
Dileep Marchyad16da3e2017-05-20 01:56:21 +053046 hwc_tonemapper.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040047 display_null.cpp \
48 hwc_socket_handler.cpp \
Ramakant Singhfae59892017-09-13 10:40:22 +053049 hwc_buffer_allocator.cpp \
50 hwc_display_external_test.cpp
Naseer Ahmed42752212017-01-27 17:32:21 -050051
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050052include $(BUILD_SHARED_LIBRARY)
53endif