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) |
| 8 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 9 | LOCAL_MODULE_TAGS := optional |
| 10 | LOCAL_C_INCLUDES := $(common_includes) |
Naseer Ahmed | 4d78d03 | 2017-03-22 12:47:30 -0400 | [diff] [blame^] | 11 | LOCAL_HEADER_LIBRARIES := display_headers |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 12 | |
| 13 | LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ |
| 14 | -std=c++11 -fcolor-diagnostics\ |
| 15 | -DLOG_TAG=\"SDM\" $(common_flags) \ |
| 16 | -I $(display_top)/sdm/libs/hwc |
| 17 | LOCAL_CLANG := true |
| 18 | |
| 19 | LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ |
Naseer Ahmed | e69031e | 2016-11-22 20:05:16 -0500 | [diff] [blame] | 20 | libutils libcutils libsync libqdutils libdl \ |
David Ng | 6c44d14 | 2016-12-08 23:51:23 -0800 | [diff] [blame] | 21 | libpowermanager libsdmutils libc++ liblog |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 22 | |
Naseer Ahmed | e69031e | 2016-11-22 20:05:16 -0500 | [diff] [blame] | 23 | ifneq ($(TARGET_USES_GRALLOC1), true) |
| 24 | LOCAL_SHARED_LIBRARIES += libmemalloc |
| 25 | endif |
| 26 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 27 | LOCAL_SRC_FILES := hwc_session.cpp \ |
| 28 | hwc_display.cpp \ |
| 29 | hwc_display_primary.cpp \ |
| 30 | hwc_display_external.cpp \ |
| 31 | hwc_display_virtual.cpp \ |
| 32 | ../hwc/hwc_debugger.cpp \ |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 33 | ../hwc/hwc_buffer_sync_handler.cpp \ |
| 34 | hwc_color_manager.cpp \ |
| 35 | hwc_layers.cpp \ |
| 36 | hwc_callbacks.cpp \ |
Sushil Chauhan | f27f5e7 | 2016-12-09 15:16:15 -0800 | [diff] [blame] | 37 | ../hwc/cpuhint.cpp \ |
| 38 | ../hwc/hwc_socket_handler.cpp |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 39 | |
Naseer Ahmed | 4275221 | 2017-01-27 17:32:21 -0500 | [diff] [blame] | 40 | ifneq ($(TARGET_USES_GRALLOC1), true) |
| 41 | LOCAL_SRC_FILES += ../hwc/hwc_buffer_allocator.cpp |
| 42 | else |
| 43 | LOCAL_SRC_FILES += hwc_buffer_allocator.cpp |
| 44 | endif |
| 45 | |
Naseer Ahmed | b92e73f | 2016-03-12 02:03:48 -0500 | [diff] [blame] | 46 | include $(BUILD_SHARED_LIBRARY) |
| 47 | endif |