st/nine: sm1_declusage_to_tgsi, do not restrict indices with TGSI_SEMANTIC_GENERIC
[mesa.git] / src / gallium / targets / egl-static / Android.mk
index 8a65585b72bcfeb45d1e1479a6968721f6b3fb8e..adaf582e15eb0664c8ff1f706aa8783441016e9c 100644 (file)
@@ -39,13 +39,42 @@ LOCAL_C_INCLUDES := \
        $(GALLIUM_TOP)/state_trackers/vega \
        $(GALLIUM_TOP)/state_trackers/egl \
        $(MESA_TOP)/src/egl/main \
-       $(MESA_TOP)/src/mesa \
-       $(DRM_TOP)/include/drm \
-       $(DRM_TOP)
+       $(MESA_TOP)/src/loader \
+       $(MESA_TOP)/src/mesa
 
 # swrast
 LOCAL_CFLAGS += -DGALLIUM_SOFTPIPE
 
+# !swrast only
+ifneq ($(MESA_GPU_DRIVERS),swrast)
+LOCAL_C_INCLUDES += $(TARGET_OUT_HEADERS)/libdrm
+endif
+
+ifneq ($(filter freedreno, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_FREEDRENO
+endif
+ifneq ($(filter i915g, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_I915
+endif
+ifneq ($(filter ilo, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_ILO
+endif
+ifneq ($(filter nouveau, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_NOUVEAU
+endif
+ifneq ($(filter r300g, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_R300
+endif
+ifneq ($(filter r600g, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_R600
+endif
+ifneq ($(filter radeonsi, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_RADEONSI
+endif
+ifneq ($(filter vmwgfx, $(MESA_GPU_DRIVERS)),)
+LOCAL_CFLAGS += -DGALLIUM_VMWGFX
+endif
+
 LOCAL_MODULE := libmesa_egl_gallium
 
 include $(GALLIUM_COMMON_MK)