| LOCAL_PATH := $(call my-dir) |
| include $(CLEAR_VARS) |
| include $(LOCAL_PATH)/../../../common.mk |
| |
| ifeq ($(use_hwc2),true) |
| |
| LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM) |
| |
| ifneq ($(TARGET_IS_HEADLESS), true) |
| LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib |
| LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64 |
| endif |
| |
| LOCAL_MODULE_RELATIVE_PATH := hw |
| LOCAL_MODULE_TAGS := optional |
| LOCAL_C_INCLUDES := $(common_includes) |
| LOCAL_HEADER_LIBRARIES := display_headers |
| |
| LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ |
| -std=c++11 -fcolor-diagnostics\ |
| -DLOG_TAG=\"SDM\" $(common_flags) \ |
| -I $(display_top)/sdm/libs/hwc |
| LOCAL_CLANG := true |
| |
| LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ |
| libutils libcutils libsync libqdutils libqdMetaData libdl \ |
| libpowermanager libsdmutils libc++ liblog libgrallocutils \ |
| libui libgpu_tonemapper |
| |
| ifneq ($(TARGET_USES_GRALLOC1), true) |
| LOCAL_SHARED_LIBRARIES += libmemalloc |
| endif |
| |
| LOCAL_SRC_FILES := hwc_session.cpp \ |
| hwc_display.cpp \ |
| hwc_display_primary.cpp \ |
| hwc_display_external.cpp \ |
| hwc_display_virtual.cpp \ |
| ../hwc/hwc_debugger.cpp \ |
| ../hwc/hwc_buffer_sync_handler.cpp \ |
| hwc_color_manager.cpp \ |
| hwc_layers.cpp \ |
| hwc_callbacks.cpp \ |
| ../hwc/cpuhint.cpp \ |
| ../hwc/hwc_socket_handler.cpp \ |
| hwc_tonemapper.cpp |
| |
| ifneq ($(TARGET_USES_GRALLOC1), true) |
| LOCAL_SRC_FILES += ../hwc/hwc_buffer_allocator.cpp |
| else |
| LOCAL_SRC_FILES += hwc_buffer_allocator.cpp |
| endif |
| |
| ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true) |
| LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR |
| endif |
| |
| include $(BUILD_SHARED_LIBRARY) |
| endif |