• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_VENDOR_MODULE           := true
9LOCAL_MODULE_RELATIVE_PATH    := hw
10LOCAL_MODULE_TAGS             := optional
11LOCAL_C_INCLUDES              := $(common_includes)
12LOCAL_C_INCLUDES              += $(kernel_includes)
13LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
14LOCAL_HEADER_LIBRARIES        := display_headers
15
16LOCAL_CFLAGS                  := -Wno-missing-field-initializers -Wno-unused-parameter \
17                                 -fcolor-diagnostics\
18                                 -DLOG_TAG=\"SDM\" $(common_flags)
19LOCAL_CLANG                   := true
20
21LOCAL_SHARED_LIBRARIES        := libsdmcore libqservice libbinder libhardware libhardware_legacy \
22                                 libutils libcutils libsync libqdutils libqdMetaData \
23                                 libdisplaydebug libsdmutils libc++ liblog libgrallocutils libui \
24                                 libgpu_tonemapper libhidlbase libhidltransport \
25                                 android.hardware.graphics.mapper@2.0 \
26                                 android.hardware.graphics.mapper@2.1 \
27                                 android.hardware.graphics.mapper@3.0 \
28                                 android.hardware.graphics.allocator@2.0 \
29                                 android.hardware.graphics.allocator@3.0 \
30                                 android.hardware.graphics.composer@2.2 \
31                                 android.hardware.graphics.composer@2.3 \
32                                 android.hardware.graphics.composer@2.4 \
33                                 hardware.google.light@1.0 \
34                                 libdrm \
35                                 vendor.display.config@1.0 \
36                                 vendor.display.config@1.1 \
37                                 vendor.display.config@1.2 \
38                                 vendor.display.config@1.3 \
39                                 vendor.display.config@1.4 \
40                                 vendor.display.config@1.5 \
41                                 vendor.display.config@1.6 \
42                                 vendor.display.config@1.7 \
43                                 vendor.display.config@1.8 \
44                                 vendor.display.config@1.9 \
45                                 vendor.display.config@1.10 \
46                                 vendor.display.config@1.11
47
48LOCAL_STATIC_LIBRARIES        := libhistogram
49
50# Allow implicit fallthroughs in hwc_display.cpp until they are fixed.
51LOCAL_CFLAGS                  += -Wno-error=implicit-fallthrough
52
53ifeq ($(TARGET_BOARD_AUTO), true)
54LOCAL_CFLAGS                  += -DCONFIG_BASEID_FROM_PROP
55endif
56
57LOCAL_SRC_FILES               := hwc_session.cpp \
58                                 hwc_session_services.cpp \
59                                 hwc_display.cpp \
60                                 hwc_display_builtin.cpp \
61                                 hwc_display_pluggable.cpp \
62                                 hwc_display_dummy.cpp \
63                                 hwc_display_pluggable_test.cpp \
64                                 hwc_display_virtual.cpp \
65                                 hwc_debugger.cpp \
66                                 hwc_buffer_sync_handler.cpp \
67                                 hwc_color_manager.cpp \
68                                 hwc_layers.cpp \
69                                 hwc_callbacks.cpp \
70                                 cpuhint.cpp \
71                                 hwc_tonemapper.cpp \
72                                 display_null.cpp \
73                                 hwc_socket_handler.cpp \
74                                 hwc_buffer_allocator.cpp
75
76include $(BUILD_SHARED_LIBRARY)
77endif
78