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 |
| 33 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 34 | LOCAL_SRC_FILES := hwc_session.cpp \ |
Dileep Marchya | 6860b2b | 2017-04-07 15:56:47 +0530 | [diff] [blame] | 35 | hwc_session_services.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 36 | hwc_display.cpp \ |
| 37 | hwc_display_primary.cpp \ |
| 38 | hwc_display_external.cpp \ |
| 39 | hwc_display_virtual.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 40 | hwc_debugger.cpp \ |
| 41 | hwc_buffer_sync_handler.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 42 | hwc_color_manager.cpp \ |
| 43 | hwc_layers.cpp \ |
| 44 | hwc_callbacks.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 45 | cpuhint.cpp \ |
Dileep Marchya | d16da3e | 2017-05-20 01:56:21 +0530 | [diff] [blame] | 46 | hwc_tonemapper.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 47 | display_null.cpp \ |
| 48 | hwc_socket_handler.cpp \ |
Ramakant Singh | fae5989 | 2017-09-13 10:40:22 +0530 | [diff] [blame] | 49 | hwc_buffer_allocator.cpp \ |
| 50 | hwc_display_external_test.cpp |
Naseer Ahmed | 4275221 | 2017-01-27 17:32:21 -0500 | [diff] [blame] | 51 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 52 | include $(BUILD_SHARED_LIBRARY) |
| 53 | endif |