blob: 483d7e702795f930c7d59c5c72e9f12e082592d0 [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 \
24 vendor.display.config@1.0 android.hardware.graphics.mapper@2.0 \
Naseer Ahmede36f2242017-12-01 15:33:56 -050025 android.hardware.graphics.allocator@2.0
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050026
Naseer Ahmeda699e792017-11-09 15:08:31 -050027ifeq ($(display_config_version), DISPLAY_CONFIG_1_1)
Naseer Ahmedc04be082018-03-02 11:30:07 -050028LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1
Naseer Ahmeda699e792017-11-09 15:08:31 -050029endif
30
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050031LOCAL_SRC_FILES := hwc_session.cpp \
Dileep Marchya6860b2b2017-04-07 15:56:47 +053032 hwc_session_services.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050033 hwc_display.cpp \
34 hwc_display_primary.cpp \
35 hwc_display_external.cpp \
36 hwc_display_virtual.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040037 hwc_debugger.cpp \
38 hwc_buffer_sync_handler.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050039 hwc_color_manager.cpp \
40 hwc_layers.cpp \
41 hwc_callbacks.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040042 cpuhint.cpp \
Dileep Marchyad16da3e2017-05-20 01:56:21 +053043 hwc_tonemapper.cpp \
Naseer Ahmed85020082017-05-17 14:36:46 -040044 display_null.cpp \
45 hwc_socket_handler.cpp \
Ramakant Singhfae59892017-09-13 10:40:22 +053046 hwc_buffer_allocator.cpp \
47 hwc_display_external_test.cpp
Naseer Ahmed42752212017-01-27 17:32:21 -050048
Naseer Ahmedb955f252017-05-12 16:58:13 -040049ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true)
50 LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR
51endif
52
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050053include $(BUILD_SHARED_LIBRARY)
54endif