blob: d711366bd12e74ca8a1aa251d70957078898f036 [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/ \
Ramkumar Radhakrishnanbefbdbe2015-01-14 20:14:40 -08008 hardware/qcom/display/libqservice/ \
Arun Kumar K.R3d92caf2014-12-23 18:22:05 -08009 hardware/qcom/display/libqdutils/ \
Saurabh Shahbf44c9f2015-06-30 14:57:59 -070010 hardware/qcom/display/libcopybit/ \
11 external/libcxx/include/
Arun Kumar K.R3d92caf2014-12-23 18:22:05 -080012
Dileep Marchya1fcbb062014-12-05 14:29:39 -080013LOCAL_CFLAGS := -Wno-missing-field-initializers -Wno-unused-parameter \
Naseer Ahmedbb069a62016-02-05 20:27:30 -050014 -Wall -Werror -Wconversion -std=c++11 -fcolor-diagnostics\
Arun Kumar K.R92c0b672015-12-08 16:32:52 -080015 -DLOG_TAG=\"SDM\" -DDEBUG_CALC_FPS
Naseer Ahmedbb069a62016-02-05 20:27:30 -050016LOCAL_CFLAGS += -isystem hardware/qcom/display/libgralloc
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
Arun Kumar K.Rfc15f072015-12-07 19:24:30 -080028endif
29
Dileep Marchya73d002e2015-05-08 18:58:33 -070030LOCAL_SHARED_LIBRARIES := libsdmcore libqservice libbinder libhardware libhardware_legacy \
Lei Zhou59f2fcc2015-04-25 08:47:11 -040031 libutils libcutils libsync libmemalloc libqdutils libdl \
Saurabh Shahbf44c9f2015-06-30 14:57:59 -070032 libpowermanager libsdmutils libc++
Lei Zhou59f2fcc2015-04-25 08:47:11 -040033
Dileep Marchya96db2582014-10-27 20:58:37 -070034LOCAL_SRC_FILES := hwc_session.cpp \
Ramkumar Radhakrishnand33432e2014-11-16 13:23:19 -080035 hwc_display.cpp \
36 hwc_display_primary.cpp \
37 hwc_display_external.cpp \
Dileep Marchya3ffb4702014-12-04 16:31:37 -080038 hwc_display_virtual.cpp \
Ramkumar Radhakrishnanbefbdbe2015-01-14 20:14:40 -080039 hwc_debugger.cpp \
40 hwc_buffer_allocator.cpp \
Lei Zhou59f2fcc2015-04-25 08:47:11 -040041 hwc_buffer_sync_handler.cpp \
Arun Kumar K.R3d92caf2014-12-23 18:22:05 -080042 hwc_color_manager.cpp \
Saurabh Shah909c9792015-07-06 15:59:01 -070043 blit_engine_c2d.cpp \
44 cpuhint.cpp
Dileep Marchya96db2582014-10-27 20:58:37 -070045
46include $(BUILD_SHARED_LIBRARY)