blob: 64f930eca256184efb62cc6d542ff6ab9e46e09a [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 Ahmed9c7ab942017-02-22 18:28:25 -05008
9ifneq ($(TARGET_IS_HEADLESS), true)
10LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib
11LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64
12endif
13
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050014LOCAL_MODULE_RELATIVE_PATH := hw
15LOCAL_MODULE_TAGS := optional
16LOCAL_C_INCLUDES := $(common_includes)
Naseer Ahmed4d78d032017-03-22 12:47:30 -040017LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050018
19LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \
20 -std=c++11 -fcolor-diagnostics\
21 -DLOG_TAG=\"SDM\" $(common_flags) \
22 -I $(display_top)/sdm/libs/hwc
23LOCAL_CLANG := true
24
25LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \
Arun Kumar K.R3e45ac42017-03-08 19:00:02 -080026 libutils libcutils libsync libqdutils libqdMetaData libdl \
Saurabh Shah14c8e5b2017-04-07 10:37:23 -070027 libpowermanager libsdmutils libc++ liblog libgrallocutils
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050028
Naseer Ahmede69031e2016-11-22 20:05:16 -050029ifneq ($(TARGET_USES_GRALLOC1), true)
30 LOCAL_SHARED_LIBRARIES += libmemalloc
31endif
32
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050033LOCAL_SRC_FILES := hwc_session.cpp \
34 hwc_display.cpp \
35 hwc_display_primary.cpp \
36 hwc_display_external.cpp \
37 hwc_display_virtual.cpp \
38 ../hwc/hwc_debugger.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050039 ../hwc/hwc_buffer_sync_handler.cpp \
40 hwc_color_manager.cpp \
41 hwc_layers.cpp \
42 hwc_callbacks.cpp \
Sushil Chauhanf27f5e72016-12-09 15:16:15 -080043 ../hwc/cpuhint.cpp \
44 ../hwc/hwc_socket_handler.cpp
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050045
Naseer Ahmed42752212017-01-27 17:32:21 -050046ifneq ($(TARGET_USES_GRALLOC1), true)
47 LOCAL_SRC_FILES += ../hwc/hwc_buffer_allocator.cpp
48else
49 LOCAL_SRC_FILES += hwc_buffer_allocator.cpp
50endif
51
Naseer Ahmedb955f252017-05-12 16:58:13 -040052ifeq ($(TARGET_HAS_WIDE_COLOR_DISPLAY), true)
53 LOCAL_CFLAGS += -DFEATURE_WIDE_COLOR
54endif
55
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050056include $(BUILD_SHARED_LIBRARY)
57endif