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_VENDOR_MODULE           := true
10LOCAL_MODULE_RELATIVE_PATH    := hw
11LOCAL_MODULE_TAGS             := optional
12LOCAL_C_INCLUDES              := $(common_includes)
13LOCAL_HEADER_LIBRARIES        := display_headers
14
15LOCAL_CFLAGS                  := $(common_flags) -Wno-missing-field-initializers -Wno-unused-parameter \
16                                 -fcolor-diagnostics -Wno-sign-conversion -DLOG_TAG=\"SDM\"
17LOCAL_CLANG                   := true
18
19LOCAL_SHARED_LIBRARIES        := libsdmcore libqservice libbinder libhardware libhardware_legacy \
20                                 libutils libcutils libsync libmemalloc libqdutils libdl \
21                                 libpowermanager libsdmutils libgpu_tonemapper  libc++ liblog \
22                                 libdrmutils libui
23
24# Allow implicit fallthroughs in hwc_display.cpp until they are fixed.
25LOCAL_CFLAGS                  += -Wno-implicit-fallthrough
26
27LOCAL_SRC_FILES               := hwc_session.cpp \
28                                 hwc_display.cpp \
29                                 hwc_display_null.cpp \
30                                 hwc_display_primary.cpp \
31                                 hwc_display_external.cpp \
32                                 hwc_display_virtual.cpp \
33                                 hwc_debugger.cpp \
34                                 hwc_buffer_allocator.cpp \
35                                 hwc_buffer_sync_handler.cpp \
36                                 hwc_color_manager.cpp \
37                                 blit_engine_c2d.cpp \
38                                 cpuhint.cpp \
39                                 hwc_tonemapper.cpp \
40                                 hwc_socket_handler.cpp \
41                                 hwc_display_external_test.cpp
42
43include $(BUILD_SHARED_LIBRARY)
44endif
45