blob: 9f1f3c773239d76ac4f50445d4c501266ce03e0a [file] [log] [blame]
Naseer Ahmedb92e73f2016-03-12 02:03:48 -05001LOCAL_PATH := $(call my-dir)
2include $(CLEAR_VARS)
3include $(LOCAL_PATH)/../../../common.mk
4
5ifeq ($(use_hwc2),true)
6
7LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
Naseer Ahmed725789e2017-05-17 13:41:10 -04008LOCAL_VENDOR_MODULE := true
Naseer Ahmedb92e73f2016-03-12 02:03:48 -05009LOCAL_MODULE_RELATIVE_PATH := hw
10LOCAL_MODULE_TAGS := optional
11LOCAL_C_INCLUDES := $(common_includes)
Naseer Ahmed4d78d032017-03-22 12:47:30 -040012LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050013
14LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \
15 -std=c++11 -fcolor-diagnostics\
16 -DLOG_TAG=\"SDM\" $(common_flags) \
17 -I $(display_top)/sdm/libs/hwc
18LOCAL_CLANG := true
19
20LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \
Arun Kumar K.R3e45ac42017-03-08 19:00:02 -080021 libutils libcutils libsync libqdutils libqdMetaData libdl \
Dileep Marchya6860b2b2017-04-07 15:56:47 +053022 libsdmutils libc++ liblog libgrallocutils libui libgpu_tonemapper \
23 libhidlbase libhidltransport vendor.display.config@1.0
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050024
Naseer Ahmede69031e2016-11-22 20:05:16 -050025ifneq ($(TARGET_USES_GRALLOC1), true)
26 LOCAL_SHARED_LIBRARIES += libmemalloc
27endif
28
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050029LOCAL_SRC_FILES := hwc_session.cpp \
Dileep Marchya6860b2b2017-04-07 15:56:47 +053030 hwc_session_services.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050031 hwc_display.cpp \
32 hwc_display_primary.cpp \
33 hwc_display_external.cpp \
34 hwc_display_virtual.cpp \
35 ../hwc/hwc_debugger.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050036 ../hwc/hwc_buffer_sync_handler.cpp \
37 hwc_color_manager.cpp \
38 hwc_layers.cpp \
39 hwc_callbacks.cpp \
Sushil Chauhanf27f5e72016-12-09 15:16:15 -080040 ../hwc/cpuhint.cpp \
Arun Kumar K.R51be3d12017-03-31 19:54:38 -070041 ../hwc/hwc_socket_handler.cpp \
Dileep Marchyad16da3e2017-05-20 01:56:21 +053042 hwc_tonemapper.cpp \
43 display_null.cpp
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050044
Naseer Ahmed42752212017-01-27 17:32:21 -050045ifneq ($(TARGET_USES_GRALLOC1), true)
46 LOCAL_SRC_FILES += ../hwc/hwc_buffer_allocator.cpp
47else
48 LOCAL_SRC_FILES += hwc_buffer_allocator.cpp
49endif
50
Naseer Ahmedb955f252017-05-12 16:58:13 -040051ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true)
52 LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR
53endif
54
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050055include $(BUILD_SHARED_LIBRARY)
56endif