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) |
Naseer Ahmed | 4d78d03 | 2017-03-22 12:47:30 -0400 | [diff] [blame] | 12 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 13 | |
| 14 | LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ |
| 15 | -std=c++11 -fcolor-diagnostics\ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 16 | -DLOG_TAG=\"SDM\" $(common_flags) |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 17 | LOCAL_CLANG := true |
| 18 | |
| 19 | LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ |
Naseer Ahmed | a422f35 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 20 | libutils libcutils libsync libqdutils libqdMetaData \ |
Dileep Marchya | 6860b2b | 2017-04-07 15:56:47 +0530 | [diff] [blame] | 21 | libsdmutils libc++ liblog libgrallocutils libui libgpu_tonemapper \ |
Naseer Ahmed | ea4a998 | 2018-03-02 11:30:07 -0500 | [diff] [blame] | 22 | libhidlbase libhidltransport vendor.display.config@1.0 \ |
Naseer Ahmed | a422f35 | 2017-12-01 15:33:56 -0500 | [diff] [blame] | 23 | android.hardware.graphics.mapper@2.0\ |
| 24 | android.hardware.graphics.allocator@2.0 |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 25 | |
Naseer Ahmed | a699e79 | 2017-11-09 15:08:31 -0500 | [diff] [blame] | 26 | ifeq ($(display_config_version), DISPLAY_CONFIG_1_1) |
Naseer Ahmed | ea4a998 | 2018-03-02 11:30:07 -0500 | [diff] [blame] | 27 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1 |
Naseer Ahmed | a699e79 | 2017-11-09 15:08:31 -0500 | [diff] [blame] | 28 | endif |
| 29 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 30 | LOCAL_SRC_FILES := hwc_session.cpp \ |
Dileep Marchya | 6860b2b | 2017-04-07 15:56:47 +0530 | [diff] [blame] | 31 | hwc_session_services.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 32 | hwc_display.cpp \ |
| 33 | hwc_display_primary.cpp \ |
| 34 | hwc_display_external.cpp \ |
| 35 | hwc_display_virtual.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 36 | hwc_debugger.cpp \ |
| 37 | hwc_buffer_sync_handler.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 38 | hwc_color_manager.cpp \ |
| 39 | hwc_layers.cpp \ |
| 40 | hwc_callbacks.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 41 | cpuhint.cpp \ |
Dileep Marchya | d16da3e | 2017-05-20 01:56:21 +0530 | [diff] [blame] | 42 | hwc_tonemapper.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 43 | display_null.cpp \ |
| 44 | hwc_socket_handler.cpp \ |
Ramakant Singh | fae5989 | 2017-09-13 10:40:22 +0530 | [diff] [blame] | 45 | hwc_buffer_allocator.cpp \ |
| 46 | hwc_display_external_test.cpp |
Naseer Ahmed | 4275221 | 2017-01-27 17:32:21 -0500 | [diff] [blame] | 47 | |
Naseer Ahmed | b955f25 | 2017-05-12 16:58:13 -0400 | [diff] [blame] | 48 | ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true) |
| 49 | LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR |
| 50 | endif |
| 51 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 52 | include $(BUILD_SHARED_LIBRARY) |
| 53 | endif |