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