1# ************************************************************* 2# Vendor libs in hardware/google/gchips refer to this make file 3# ************************************************************* 4 5#for Build Split 6LOCAL_HEADER_LIBRARIES += libnativebase_headers 7 8ifeq ($(BOARD_USES_VENDORIMAGE), true) 9LOCAL_PROPRIETARY_MODULE := true 10endif 11 12ifeq ($(BOARD_USES_FIMGAPI_V5X), true) 13 LOCAL_CFLAGS += -DFIMGAPI_V5X 14 LOCAL_CFLAGS += -DFIMG2D_USE_M2M1SHOT2 15endif 16 17ifeq ($(BOARD_G2D_NEAREST_UNSUPPORT), true) 18 LOCAL_CFLAGS += -DFIMGAPI_G2D_NEAREST_UNSUPPORT 19endif 20 21ifeq ($(BOARD_DYNAMIC_RECOMPOSITION_DISABLED), true) 22 LOCAL_CFLAGS += -DDYNAMIC_RECOMPOSITION_DISABLED 23endif 24 25ifeq ($(TARGET_USES_UNIVERSAL_LIBHWJPEG), true) 26 LOCAL_CFLAGS += -DUSES_UNIVERSAL_LIBHWJPEG 27endif 28 29ifeq ($(BOARD_USES_FIMC), true) 30 LOCAL_CFLAGS += -DUSES_FIMC 31else 32 LOCAL_CFLAGS += -DUSES_GSCALER 33endif 34 35ifeq ($(BOARD_USES_IP_SERVICE), true) 36 LOCAL_CFLAGS += -DIP_SERVICE 37endif 38 39ifeq ($(BOARD_USES_HWC_SERVICES),true) 40 LOCAL_CFLAGS += -DHWC_SERVICES 41ifeq ($(BOARD_USE_S3D_SUPPORT),true) 42 LOCAL_CFLAGS += -DS3D_SUPPORT 43endif 44endif 45 46ifeq ($(BOARD_USES_WFD),true) 47 LOCAL_CFLAGS += -DUSES_WFD 48endif 49 50ifeq ($(BOARD_USES_VIRTUAL_DISPLAY), true) 51 LOCAL_CFLAGS += -DUSES_VIRTUAL_DISPLAY 52endif 53 54ifeq ($(BOARD_USES_TSMUX), true) 55 LOCAL_CFLAGS += -DUSES_TSMUX 56endif 57 58ifeq ($(BOARD_USES_DISABLE_COMPOSITIONTYPE_GLES), true) 59 LOCAL_CFLAGS += -DUSES_DISABLE_COMPOSITIONTYPE_GLES 60endif 61 62ifeq ($(BOARD_USES_VDS_YUV420SPM), true) 63 LOCAL_CFLAGS += -DUSES_VDS_YUV420SPM 64endif 65 66ifeq ($(BOARD_USES_VIRTUAL_DISPLAY_DECON_EXT_WB), true) 67 LOCAL_CFLAGS += -DUSES_VIRTUAL_DISPLAY_DECON_EXT_WB 68endif 69 70ifeq ($(BOARD_USES_OVERLAY_FOR_WFD_UI_MIRROR), true) 71 LOCAL_CFLAGS += -DUSES_OVERLAY_FOR_WFD_UI_MIRROR 72endif 73 74ifeq ($(BOARD_USES_3MSC_FOR_WFD), true) 75 LOCAL_CFLAGS += -DUSES_3MSC_FOR_WFD 76endif 77 78ifeq ($(BOARD_USES_2MSC_FOR_WFD), true) 79 LOCAL_CFLAGS += -DUSES_2MSC_FOR_WFD 80endif 81 82ifeq ($(BOARD_USES_VDS_BGRA8888), true) 83 LOCAL_CFLAGS += -DUSES_VDS_BGRA8888 84endif 85 86ifeq ($(BOARD_VIRTUAL_DISPLAY_VIDEO_IS_OVERLAY), true) 87 LOCAL_CFLAGS += -DVIRTUAL_DISPLAY_VIDEO_IS_OVERLAY 88endif 89 90ifeq ($(BOARD_USES_VDS_OTHERFORMAT), true) 91 LOCAL_CFLAGS += -DUSES_VDS_OTHERFORMAT 92endif 93 94ifeq ($(BOARD_USES_FB_PHY_LINEAR),true) 95 LOCAL_CFLAGS += -DUSE_FB_PHY_LINEAR 96endif 97 98ifeq ($(BOARD_TV_PRIMARY),true) 99 LOCAL_CFLAGS += -DTV_PRIMARY 100endif 101ifeq ($(BOARD_HDMI_INCAPABLE), true) 102 LOCAL_CFLAGS += -DHDMI_INCAPABLE 103else 104ifeq ($(BOARD_USES_NEW_HDMI), true) 105 LOCAL_CFLAGS += -DUSES_NEW_HDMI 106endif 107ifeq ($(BOARD_USES_GSC_VIDEO), true) 108 LOCAL_CFLAGS += -DGSC_VIDEO 109endif 110ifeq ($(BOARD_USES_VP_VIDEO),true) 111 LOCAL_CFLAGS += -DVP_VIDEO 112endif 113ifeq ($(BOARD_USES_CEC),true) 114 LOCAL_CFLAGS += -DUSES_CEC 115endif 116endif 117 118ifeq ($(BOARD_SUPPORT_DQ_Q_SEQUENCE), true) 119 LOCAL_CFLAGS += -DSUPPORT_DQ_Q_SEQUENCE 120endif 121 122ifeq ($(BOARD_USES_ONLY_GSC0_GSC1),true) 123 LOCAL_CFLAGS += -DUSES_ONLY_GSC0_GSC1 124endif 125 126ifeq ($(BOARD_USES_DT), true) 127 LOCAL_CFLAGS += -DUSES_DT 128endif 129 130ifeq ($(BOARD_USES_U4A),true) 131 LOCAL_CFLAGS += -DUSES_U4A 132endif 133 134ifeq ($(BOARD_USES_WINDOW_UPDATE), true) 135 LOCAL_CFLAGS += -DUSES_WINDOW_UPDATE 136endif 137 138ifeq ($(BOARD_USES_DPU), true) 139 LOCAL_CFLAGS += -DUSES_DPU 140endif 141 142ifeq ($(BOARD_USES_HWC2_TINY), true) 143LOCAL_CFLAGS += -DUSES_HWC2_TINY 144endif 145 146ifeq ($(TARGET_USES_HWC2), true) 147 LOCAL_CFLAGS += -DTARGET_USES_HWC2 148endif 149 150ifeq ($(BOARD_USES_HWC2), true) 151 LOCAL_CFLAGS += -DUSES_HWC2 152endif 153 154ifeq ($(BOARD_USES_VPP), true) 155 LOCAL_CFLAGS += -DUSES_VPP 156endif 157 158ifeq ($(BOARD_USES_VPP_V2), true) 159 LOCAL_CFLAGS += -DUSES_VPP_V2 160endif 161 162ifeq ($(TARGET_SOC), exynos8890) 163 LOCAL_CFLAGS += -DUSES_DECON_AFBC_DECODER 164endif 165 166ifeq ($(BOARD_USE_GRALLOC_FLAG_FOR_HDMI), true) 167 LOCAL_CFLAGS += -DUSE_GRALLOC_FLAG_FOR_HDMI 168endif 169 170ifeq ($(BOARD_USE_HDMI_ON_IN_SUSPEND), true) 171 LOCAL_CFLAGS += -DHDMI_ON_IN_SUSPEND 172endif 173 174ifeq ($(TARGET_ARCH), arm64) 175 LOCAL_CFLAGS += -DUSES_ARCH_ARM64 176endif 177 178ifeq ($(BOARD_USES_DECON_64BIT_ADDRESS), true) 179 LOCAL_CFLAGS += -DUSES_DECON_64BIT_ADDRESS 180endif 181 182ifeq ($(BOARD_USES_EXYNOS_AFBC_FEATURE), true) 183 LOCAL_CFLAGS += -DUSES_AFBC_FEATURE 184endif 185 186ifeq ($(BOARD_CAMERA_USES_EXYNOS_GDC), true) 187LOCAL_CFLAGS += -DUSES_CAMERA_EXYNOS_GDC 188endif