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