Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | include $(LOCAL_PATH)/../../../common.mk |
| 4 | |
| 5 | ifeq ($(use_hwc2),true) |
| 6 | |
| 7 | LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM) |
Naseer Ahmed | 725789e | 2017-05-17 13:41:10 -0400 | [diff] [blame] | 8 | LOCAL_VENDOR_MODULE := true |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 9 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 10 | LOCAL_MODULE_TAGS := optional |
| 11 | LOCAL_C_INCLUDES := $(common_includes) |
Varun Arora | 5dd61e0 | 2018-02-23 12:25:01 -0800 | [diff] [blame] | 12 | LOCAL_C_INCLUDES += $(kernel_includes) |
Naseer Ahmed | 4d78d03 | 2017-03-22 12:47:30 -0400 | [diff] [blame] | 13 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 14 | |
| 15 | LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ |
| 16 | -std=c++11 -fcolor-diagnostics\ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 17 | -DLOG_TAG=\"SDM\" $(common_flags) |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 18 | LOCAL_CLANG := true |
| 19 | |
| 20 | LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ |
Naseer Ahmed | e36f224 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 21 | libutils libcutils libsync libqdutils libqdMetaData \ |
Dileep Marchya | 2d58644 | 2018-03-09 16:42:40 +0530 | [diff] [blame] | 22 | libdisplaydebug libsdmutils libc++ liblog libgrallocutils libui \ |
| 23 | libgpu_tonemapper libhidlbase libhidltransport \ |
Naseer Ahmed | 920d71b | 2018-03-08 16:54:28 -0500 | [diff] [blame] | 24 | vendor.display.config@1.0 \ |
| 25 | android.hardware.graphics.mapper@2.0 \ |
| 26 | android.hardware.graphics.mapper@2.1 \ |
Naseer Ahmed | e7a7798 | 2018-06-04 10:56:04 -0400 | [diff] [blame] | 27 | android.hardware.graphics.allocator@2.0 \ |
| 28 | android.hardware.graphics.composer@2.2 \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 29 | |
Naseer Ahmed | a699e79 | 2017-11-09 15:08:31 -0500 | [diff] [blame] | 30 | ifeq ($(display_config_version), DISPLAY_CONFIG_1_1) |
Naseer Ahmed | c04be08 | 2018-03-02 11:30:07 -0500 | [diff] [blame] | 31 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1 |
Naseer Ahmed | a699e79 | 2017-11-09 15:08:31 -0500 | [diff] [blame] | 32 | endif |
Dileep Marchya | f3ce11f | 2018-04-30 23:35:46 +0530 | [diff] [blame] | 33 | ifeq ($(display_config_version), DISPLAY_CONFIG_1_2) |
| 34 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.2 vendor.display.config@1.1 |
| 35 | endif |
Ramkumar Radhakrishnan | f985d48 | 2018-07-23 18:10:41 -0700 | [diff] [blame] | 36 | ifeq ($(display_config_version), DISPLAY_CONFIG_1_3) |
| 37 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1 |
| 38 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.2 |
| 39 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.3 |
| 40 | endif |
Ramakant Singh | dbe738a | 2018-08-23 23:57:07 +0530 | [diff] [blame] | 41 | ifeq ($(display_config_version), DISPLAY_CONFIG_1_4) |
| 42 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1 |
| 43 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.2 |
| 44 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.3 |
| 45 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.4 |
| 46 | endif |
Naseer Ahmed | a699e79 | 2017-11-09 15:08:31 -0500 | [diff] [blame] | 47 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 48 | LOCAL_SRC_FILES := hwc_session.cpp \ |
Dileep Marchya | 6860b2b | 2017-04-07 15:56:47 +0530 | [diff] [blame] | 49 | hwc_session_services.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 50 | hwc_display.cpp \ |
Dileep Marchya | f3ce11f | 2018-04-30 23:35:46 +0530 | [diff] [blame] | 51 | hwc_display_builtin.cpp \ |
| 52 | hwc_display_pluggable.cpp \ |
| 53 | hwc_display_pluggable_test.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 54 | hwc_display_virtual.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 55 | hwc_debugger.cpp \ |
| 56 | hwc_buffer_sync_handler.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 57 | hwc_color_manager.cpp \ |
| 58 | hwc_layers.cpp \ |
| 59 | hwc_callbacks.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 60 | cpuhint.cpp \ |
Dileep Marchya | d16da3e | 2017-05-20 01:56:21 +0530 | [diff] [blame] | 61 | hwc_tonemapper.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 62 | display_null.cpp \ |
| 63 | hwc_socket_handler.cpp \ |
Dileep Marchya | f3ce11f | 2018-04-30 23:35:46 +0530 | [diff] [blame] | 64 | hwc_buffer_allocator.cpp |
Naseer Ahmed | 4275221 | 2017-01-27 17:32:21 -0500 | [diff] [blame] | 65 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 66 | include $(BUILD_SHARED_LIBRARY) |
| 67 | endif |