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 \ |
Arun Kumar K.R | 3e45ac4 | 2017-03-08 19:00:02 -0800 | [diff] [blame] | 20 | libutils libcutils libsync libqdutils libqdMetaData libdl \ |
Dileep Marchya | 6860b2b | 2017-04-07 15:56:47 +0530 | [diff] [blame] | 21 | libsdmutils libc++ liblog libgrallocutils libui libgpu_tonemapper \ |
Pramodh Kumar Mukunda | dbf4404 | 2017-07-04 16:37:54 +0530 | [diff] [blame] | 22 | libhidlbase libhidltransport vendor.display.config@1.0_vendor |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 23 | |
Naseer Ahmed | a699e79 | 2017-11-09 15:08:31 -0500 | [diff] [blame^] | 24 | ifeq ($(display_config_version), DISPLAY_CONFIG_1_1) |
| 25 | LOCAL_SHARED_LIBRARIES += vendor.display.config@1.1_vendor |
| 26 | endif |
| 27 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 28 | LOCAL_SRC_FILES := hwc_session.cpp \ |
Dileep Marchya | 6860b2b | 2017-04-07 15:56:47 +0530 | [diff] [blame] | 29 | hwc_session_services.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 30 | hwc_display.cpp \ |
| 31 | hwc_display_primary.cpp \ |
| 32 | hwc_display_external.cpp \ |
| 33 | hwc_display_virtual.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 34 | hwc_debugger.cpp \ |
| 35 | hwc_buffer_sync_handler.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 36 | hwc_color_manager.cpp \ |
| 37 | hwc_layers.cpp \ |
| 38 | hwc_callbacks.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 39 | cpuhint.cpp \ |
Dileep Marchya | d16da3e | 2017-05-20 01:56:21 +0530 | [diff] [blame] | 40 | hwc_tonemapper.cpp \ |
Naseer Ahmed | 8502008 | 2017-05-17 14:36:46 -0400 | [diff] [blame] | 41 | display_null.cpp \ |
| 42 | hwc_socket_handler.cpp \ |
Ramakant Singh | fae5989 | 2017-09-13 10:40:22 +0530 | [diff] [blame] | 43 | hwc_buffer_allocator.cpp \ |
| 44 | hwc_display_external_test.cpp |
Naseer Ahmed | 4275221 | 2017-01-27 17:32:21 -0500 | [diff] [blame] | 45 | |
Naseer Ahmed | b955f25 | 2017-05-12 16:58:13 -0400 | [diff] [blame] | 46 | ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true) |
| 47 | LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR |
| 48 | endif |
| 49 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 50 | include $(BUILD_SHARED_LIBRARY) |
| 51 | endif |