#include "state_tracker/drm_driver.h"
#include "target-helpers/inline_debug_helper.h"
#include "loader.h"
+#if defined(DRI_TARGET)
+#include "dri_screen.h"
+#endif
#if GALLIUM_I915
#include "i915/drm/i915_drm_public.h"
#if defined(GALLIUM_I915)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_i915(void);
#if defined(GALLIUM_ILO)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_i965(void);
#if defined(GALLIUM_NOUVEAU)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_nouveau(void);
#if defined(GALLIUM_R300)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_r300(void);
#if defined(GALLIUM_R600)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_r600(void);
#if defined(GALLIUM_RADEONSI)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_radeonsi(void);
#if defined(GALLIUM_VMWGFX)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_vmwgfx(void);
#if defined(GALLIUM_FREEDRENO)
#if defined(DRI_TARGET)
-#include "dri_screen.h"
const __DRIextension **__driDriverGetExtensions_freedreno(void);
$(GALLIUM_TARGET_CFLAGS)
AM_CPPFLAGS = \
+ -DDRI_TARGET \
-DGALLIUM_GALAHAD \
-DGALLIUM_NOOP \
-DGALLIUM_RBUG \
-DGALLIUM_TRACE
-if HAVE_GALLIUM_I915
-AM_CPPFLAGS += \
- -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_ILO
-AM_CPPFLAGS += \
- -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_NOUVEAU
-AM_CPPFLAGS += \
- -DDRI_TARGET
-endif
-
-if NEED_RADEON_DRM_WINSYS
-AM_CPPFLAGS += \
- -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_SVGA
-AM_CPPFLAGS += \
- -DDRI_TARGET
-endif
-
-if HAVE_GALLIUM_FREEDRENO
-AM_CPPFLAGS += \
- -DDRI_TARGET
-endif
-
dridir = $(DRI_DRIVER_INSTALL_DIR)
dri_LTLIBRARIES = gallium_dri.la