blob: 9f463284c0fd938258eb606ae049286b75b68915 [file] [log] [blame]
Dileep Marchya96db2582014-10-27 20:58:37 -07001LOCAL_PATH := $(call my-dir)
Dileep Marchya96db2582014-10-27 20:58:37 -07002include $(CLEAR_VARS)
3
4LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
5LOCAL_MODULE_RELATIVE_PATH := hw
6LOCAL_MODULE_TAGS := optional
Dileep Marchya73d002e2015-05-08 18:58:33 -07007LOCAL_C_INCLUDES := hardware/qcom/display/sdm/include/ \
Dileep Marchya1fcbb062014-12-05 14:29:39 -08008 hardware/qcom/display/libgralloc/ \
Ramkumar Radhakrishnanbefbdbe2015-01-14 20:14:40 -08009 hardware/qcom/display/libqservice/ \
Arun Kumar K.R3d92caf2014-12-23 18:22:05 -080010 hardware/qcom/display/libqdutils/ \
Saurabh Shahbf44c9f2015-06-30 14:57:59 -070011 hardware/qcom/display/libcopybit/ \
12 external/libcxx/include/
Arun Kumar K.R3d92caf2014-12-23 18:22:05 -080013
Dileep Marchya1fcbb062014-12-05 14:29:39 -080014LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \
Naseer Ahmedb3b0a332015-06-05 19:14:32 -040015 -Wall -Werror -std=c++11 -fcolor-diagnostics\
Arun Kumar K.R92c0b672015-12-08 16:32:52 -080016 -DLOG_TAG=\"SDM\" -DDEBUG_CALC_FPS
Naseer Ahmedb3b0a332015-06-05 19:14:32 -040017LOCAL_CLANG := true
Shalaj Jain3b0b5702015-05-06 19:24:57 -070018
19# TODO: Move this to the common makefile
20ifeq ($(call is-board-platform-in-list, $(MASTER_SIDE_CP_TARGET_LIST)), true)
21 LOCAL_CFLAGS += -DMASTER_SIDE_CP
22endif
23
Arun Kumar K.Rfc15f072015-12-07 19:24:30 -080024
25ifeq ($(TARGET_USES_QCOM_BSP),true)
26# Enable QCOM Display features
27LOCAL_CFLAGS += -DQTI_BSP
28LOCAL_C_INCLUDES += vendor/qcom/opensource/display-frameworks/include
29endif
30
Dileep Marchya73d002e2015-05-08 18:58:33 -070031LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \
Lei Zhou59f2fcc2015-04-25 08:47:11 -040032 libutils libcutils libsync libmemalloc libqdutils libdl \
Saurabh Shahbf44c9f2015-06-30 14:57:59 -070033 libpowermanager libsdmutils libc++
Lei Zhou59f2fcc2015-04-25 08:47:11 -040034
Dileep Marchya96db2582014-10-27 20:58:37 -070035LOCAL_SRC_FILES := hwc_session.cpp \
Ramkumar Radhakrishnand33432e2014-11-16 13:23:19 -080036 hwc_display.cpp \
37 hwc_display_primary.cpp \
38 hwc_display_external.cpp \
Dileep Marchya3ffb4702014-12-04 16:31:37 -080039 hwc_display_virtual.cpp \
Ramkumar Radhakrishnanbefbdbe2015-01-14 20:14:40 -080040 hwc_debugger.cpp \
41 hwc_buffer_allocator.cpp \
Lei Zhou59f2fcc2015-04-25 08:47:11 -040042 hwc_buffer_sync_handler.cpp \
Arun Kumar K.R3d92caf2014-12-23 18:22:05 -080043 hwc_color_manager.cpp \
Saurabh Shah909c9792015-07-06 15:59:01 -070044 blit_engine_c2d.cpp \
45 cpuhint.cpp
Dileep Marchya96db2582014-10-27 20:58:37 -070046
47include $(BUILD_SHARED_LIBRARY)