LOCAL_PATH := $(call my-dir) # HAL module implemenation stored in # hw/..so include $(CLEAR_VARS) LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_MODULE_TAGS := optional LOCAL_PROPRIETARY_MODULE := true LOCAL_MODULE := hwcomposer.huanglong LOCAL_MULTILIB := both CFG_OVERLAY_SUPPORT := false ifeq ($(strip $(PRODUCT_TYPE)), tv) CFG_HDMITX_SUPPORT := true else CFG_HDMITX_SUPPORT := false endif CFG_GFX2D_SURRPOT := true CFG_FRAMEBUFFER_SUPPORT := true CFG_VO_SUPPORT := true LOCAL_SHARED_LIBRARIES := liblog \ libhardware \ libcutils \ libutils \ libsync \ libion \ libuapi_vo \ libuapi_common \ libuapi_securec \ libui \ libdftevent ifeq ($(strip $(PRODUCT_TYPE)), tv) LOCAL_SHARED_LIBRARIES += \ libuapi_hdmitx endif LOCAL_C_INCLUDES += frameworks/native/libs/ui/include \ hardware/libhardware/include \ system/core/base/include \ system/core/libsync/include \ $(SOC_PLATFORM_PATH)/hardware/gralloc/include \ vendor/platform/secure_c/include \ $(SOC_PLATFORM_PATH)/uapi/vo/include \ $(SOC_PLATFORM_PATH)/uapi/hdmitx/include \ $(SOC_PLATFORM_PATH)/uapi/common/include \ $(SOC_PLATFORM_PATH)/uapi/include/cec \ $(SOC_PLATFORM_PATH)/uapi/include/video \ $(SOC_PLATFORM_PATH)/linux/include/generic \ $(SOC_PLATFORM_PATH)/linux/include/gfbg \ $(LOCAL_PATH)/adapter \ $(SOC_PLATFORM_PATH)/uapi/dftevent/include LOCAL_CFLAGS := -DLOG_TAG=\"hwc\" \ -DHWC2_INCLUDE_STRINGIFICATION \ -DHWC2_USE_CPP11 \ -fstack-protector-all \ -Wint-to-pointer-cast \ -Wlong-long \ -Wpointer-to-int-cast LOCAL_SRC_FILES := $(call all-cpp-files-under, .) ifeq ($(CFG_OVERLAY_SUPPORT),true) LOCAL_SHARED_LIBRARIES += liboverlayadapter LOCAL_CFLAGS += -DOVERLAY endif ifeq ($(CFG_HDMITX_SUPPORT),true) LOCAL_CFLAGS += -DEXT_HDMI_SUPPORT -DEXT_DOUBLE_DISPLAY_SUPPORT endif ifeq ($(CFG_GFX2D_SURRPOT),true) LOCAL_CFLAGS += -DEXT_GFX2D_SUPPORT LOCAL_SHARED_LIBRARIES += libuapi_gfx2d LOCAL_C_INCLUDES += $(SOC_PLATFORM_PATH)/uapi/gfx2d/include endif ifeq ($(CFG_FRAMEBUFFER_SUPPORT),true) LOCAL_C_INCLUDES += system/core/include endif ifeq ($(CFG_VO_SUPPORT),true) LOCAL_CFLAGS += -DEXT_VO_SUPPORT endif ifneq (,$(filter ar, $(EXT_PRODUCT_TYPE))) LOCAL_CFLAGS += -DEXT_XR endif ifeq ($(CFG_XCOLLIE_SUPPORT),true) LOCAL_CFLAGS += -DXCOLLIE_SUPPORT LOCAL_SHARED_LIBRARIES += libxcollie endif include $(BUILD_SHARED_LIBRARY)