blob: aeb2558a8a64a9c53f7d7501cbb8aea9f5ada2bb [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)
8LOCAL_MODULE_RELATIVE_PATH := hw
9LOCAL_MODULE_TAGS := optional
10LOCAL_C_INCLUDES := $(common_includes)
Naseer Ahmed4d78d032017-03-22 12:47:30 -040011LOCAL_HEADER_LIBRARIES := display_headers
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050012
13LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \
14 -std=c++11 -fcolor-diagnostics\
15 -DLOG_TAG=\"SDM\" $(common_flags) \
16 -I $(display_top)/sdm/libs/hwc
17LOCAL_CLANG := true
18
19LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \
Naseer Ahmede69031e2016-11-22 20:05:16 -050020 libutils libcutils libsync libqdutils libdl \
David Ng6c44d142016-12-08 23:51:23 -080021 libpowermanager libsdmutils libc++ liblog
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050022
Naseer Ahmede69031e2016-11-22 20:05:16 -050023ifneq ($(TARGET_USES_GRALLOC1), true)
24 LOCAL_SHARED_LIBRARIES += libmemalloc
25endif
26
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050027LOCAL_SRC_FILES := hwc_session.cpp \
28 hwc_display.cpp \
29 hwc_display_primary.cpp \
30 hwc_display_external.cpp \
31 hwc_display_virtual.cpp \
32 ../hwc/hwc_debugger.cpp \
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050033 ../hwc/hwc_buffer_sync_handler.cpp \
34 hwc_color_manager.cpp \
35 hwc_layers.cpp \
36 hwc_callbacks.cpp \
Sushil Chauhanf27f5e72016-12-09 15:16:15 -080037 ../hwc/cpuhint.cpp \
38 ../hwc/hwc_socket_handler.cpp
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050039
Naseer Ahmed42752212017-01-27 17:32:21 -050040ifneq ($(TARGET_USES_GRALLOC1), true)
41 LOCAL_SRC_FILES += ../hwc/hwc_buffer_allocator.cpp
42else
43 LOCAL_SRC_FILES += hwc_buffer_allocator.cpp
44endif
45
Naseer Ahmedb92e73f2016-03-12 02:03:48 -050046include $(BUILD_SHARED_LIBRARY)
47endif