1LOCAL_PATH := $(call my-dir) 2include $(CLEAR_VARS) 3include $(LOCAL_PATH)/../../../common.mk 4ifeq ($(use_hwc2),false) 5 6LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM) 7LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD legacy_not_a_contribution 8LOCAL_LICENSE_CONDITIONS := by_exception_only not_allowed notice 9LOCAL_MODULE_RELATIVE_PATH := hw 10LOCAL_PROPRIETARY_MODULE := true 11LOCAL_MODULE_TAGS := optional 12LOCAL_C_INCLUDES := $(common_includes) 13 14LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \ 15 -std=c++11 -fcolor-diagnostics\ 16 -DLOG_TAG=\"SDM\" $(common_flags) 17LOCAL_CLANG := true 18 19LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \ 20 libutils liblog libcutils libsync libmemalloc libqdutils libdl \ 21 libpowermanager libsdmutils libc++ 22 23# Allow implicit fallthroughs in hwc_display.cpp until they are fixed. 24LOCAL_CFLAGS += -Wno-implicit-fallthrough 25 26LOCAL_SRC_FILES := hwc_session.cpp \ 27 hwc_display.cpp \ 28 hwc_display_null.cpp \ 29 hwc_display_primary.cpp \ 30 hwc_display_external.cpp \ 31 hwc_display_virtual.cpp \ 32 hwc_debugger.cpp \ 33 hwc_buffer_allocator.cpp \ 34 hwc_buffer_sync_handler.cpp \ 35 hwc_color_manager.cpp \ 36 blit_engine_c2d.cpp \ 37 cpuhint.cpp 38 39include $(BUILD_SHARED_LIBRARY) 40endif 41