1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3include $(LOCAL_PATH)/../../../common.mk 4 5ifeq ($(use_hwc2),true) 6 7LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM) 8LOCAL_MODULE_RELATIVE_PATH := hw 9LOCAL_PROPRIETARY_MODULE := true 10LOCAL_MODULE_TAGS := optional 11LOCAL_C_INCLUDES := $(common_includes) 12 13LOCAL_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 18LOCAL_CLANG := true 19 20LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ 21 libutils libcutils libsync libqdutils libqdMetaData libdl \ 22 libsdmutils libc++ liblog 23 24ifneq ($(TARGET_USES_GRALLOC1), true) 25 LOCAL_SHARED_LIBRARIES += libmemalloc 26endif 27 28# Allow implicit fallthroughs in hwc_display.cpp until they are fixed. 29LOCAL_CFLAGS += -Wno-error=implicit-fallthrough 30 31LOCAL_SRC_FILES := hwc_session.cpp \ 32 hwc_display.cpp \ 33 hwc_display_primary.cpp \ 34 hwc_display_external.cpp \ 35 hwc_display_virtual.cpp \ 36 ../hwc/hwc_debugger.cpp \ 37 ../hwc/hwc_buffer_sync_handler.cpp \ 38 hwc_color_manager.cpp \ 39 hwc_layers.cpp \ 40 hwc_callbacks.cpp \ 41 ../hwc/cpuhint.cpp 42 43ifneq ($(TARGET_USES_GRALLOC1), true) 44 LOCAL_SRC_FILES += ../hwc/hwc_buffer_allocator.cpp 45else 46 LOCAL_SRC_FILES += hwc_buffer_allocator.cpp 47endif 48 49include $(BUILD_SHARED_LIBRARY) 50endif 51