/*
 * This file contains definitions for a trimmed down build of X.Org
 * useful for DRI developers and testers. Copy this file to host.def
 * make any necessary modifications.
 */

#define XFree86CustomVersion "Trimmed down DRI build from X.org tree"

/* Mesa and DRM source directories: set according to your setup */
#define MesaSrcDir /path/to/mesa/source
#define DRMSrcDir /path/to/drm/source

/* Custom compiler options: tune this to your needs */
#define DefaultGcc2i386Opt -gstabs+ -pipe -O2

/* DDX and DRI drivers to build */
#if defined(PpcArchitecture)

#define XF86CardDrivers ati
#define DriDrivers r128 radeon r200 mach64

#elif defined(i386Architecture)

#define XF86CardDrivers tdfx i810 mga ati glint vga sis savage via
#define DriDrivers r200 mga i810 r128 radeon gamma sis tdfx ffb mach64 savage via

#elif defined(AMD64Architecture)

#define XF86CardDrivers tdfx i810 mga ati glint vga sis savage via
#define DriDrivers r200 mga i810 r128 radeon gamma sis tdfx mach64 savage via

#else

#define XF86CardDrivers tdfx mga ati glint vga
#define DriDrivers r200 tdfx mga r128 radeon gamma ffb

#endif

/* Only shared libGL */
#define NormalLibGlx NO

/* Link the drivers against static libexpat to make binary snapshots
 * more usable and to reduce build problems on Linux machines without
 * expat.
 */
#if defined(LinuxArchitecture) && !defined(AMD64Architecture)
# define ExpatLibrary		StaticLibrary($(BUILDLIBDIR),expat)
# define NormalLibExpat 	YES
#endif

/* Optionally turn these on for debugging */
/* #define GlxBuiltInTdfx YES */
/* #define GlxBuiltInI810 YES */
/* #define GlxBuiltInMga YES */
/* #define GlxBuiltInR128 YES */
/* #define GlxBuiltInRadeon YES */
#define DoLoadableServer YES

/* Optionally turn this on to change the place where you install the build.
 * Warning: trailing blanks will cause build failures.
 */
/* #define ProjectRoot /usr/X11R6-XORG */

/* #define UsrLibDir /usr/X11R6/lib */

/* Optionally build the Xnest and Xvfb servers */
#define XnestServer NO
#define XVirtualFramebufferServer NO

/*
 * Don't change anything below or the build will fail.
 */
#define BuildServersOnly YES
#define BuildLibraries NO
#define BuildLibrariesForXServers NO
#define BuildLibrariesForConfigTools NO
#define BuildXIE NO
#define BuildPexExt NO
#define XF86AFB NO
#define XprtServer NO
#define BuildXprint NO
#define BuildXF86DRI YES
#define BuildXDriInfo YES
#define BuildGLXLibrary YES
#define BuildXdmcpLib YES
#define BuildXInputLib YES
#define BuildXvLibrary YES
#define BuildXF86VidModeLibrary YES
#define BuildXvMCLibrary YES
#define BuildExpatLibrary YES
#define SharedLibFont NO
#define XInputDrivers mouse
#if DoLoadableServer
#undef XF1Bpp
#undef XF4Bpp
#define XF1Bpp NO
#define XF4Bpp NO
#endif
