ae67b6bd33
Put HDMI code in HWC under compile time flag. This prevents crashes in use cases like HDMI used as primary. If not done, non-existing code in gralloc is called in that use case. Change-Id: Ic7e792acf0c35eb12f04a74405619385d7288991
24 lines
836 B
Makefile
Executable File
24 lines
836 B
Makefile
Executable File
LOCAL_PATH := $(call my-dir)
|
|
|
|
# HAL module implemenation, not prelinked and stored in
|
|
# hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
|
|
include $(CLEAR_VARS)
|
|
LOCAL_PRELINK_MODULE := false
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
|
|
LOCAL_SHARED_LIBRARIES := liblog libcutils libEGL libhardware liboverlay
|
|
|
|
LOCAL_SRC_FILES := \
|
|
hwcomposer.cpp
|
|
|
|
LOCAL_MODULE := hwcomposer.$(TARGET_BOARD_PLATFORM)
|
|
LOCAL_CFLAGS:= -DLOG_TAG=\"$(TARGET_BOARD_PLATFORM).hwcomposer\"
|
|
LOCAL_C_INCLUDES += hardware/msm7k/libgralloc-qsd8k
|
|
LOCAL_C_INCLUDES += hardware/msm7k/liboverlay
|
|
LOCAL_C_INCLUDES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include
|
|
LOCAL_ADDITIONAL_DEPENDENCIES += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr
|
|
ifeq ($(TARGET_HAVE_HDMI_OUT),true)
|
|
LOCAL_CFLAGS += -DHDMI_DUAL_DISPLAY
|
|
endif
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|