summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/SConscript
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-01-31 13:14:35 +0900
committerBen Skeggs <skeggsb@gmail.com>2008-02-15 13:50:27 +1100
commitc285e06e93d01b9253dfc2fb1ab42480216b72d4 (patch)
treef5f9d655db569f25dca8fb5de04310fce3dc7d9d /src/mesa/drivers/dri/SConscript
parent2029ee48b1b5856ef3c9b4307f018bc6bd61ea6e (diff)
gallium: Add SCons as alternative build system for Gallium.
Diffstat (limited to 'src/mesa/drivers/dri/SConscript')
-rw-r--r--src/mesa/drivers/dri/SConscript48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/SConscript b/src/mesa/drivers/dri/SConscript
new file mode 100644
index 0000000000..d32bd08669
--- /dev/null
+++ b/src/mesa/drivers/dri/SConscript
@@ -0,0 +1,48 @@
+Import('*')
+
+drienv = env.Clone()
+
+drienv.Replace(CPPPATH = [
+ '#src/mesa/drivers/dri/common',
+ '#include',
+ '#include/GL/internal',
+ '#src/mesa',
+ '#src/mesa/main',
+ '#src/mesa/glapi',
+ '#src/mesa/math',
+ '#src/mesa/transform',
+ '#src/mesa/shader',
+ '#src/mesa/swrast',
+ '#src/mesa/swrast_setup',
+ '#src/egl/main',
+ '#src/egl/drivers/dri',
+])
+
+drienv.ParseConfig('pkg-config --cflags --libs libdrm')
+
+COMMON_GALLIUM_SOURCES = [
+ '../common/utils.c',
+ '../common/vblank.c',
+ '../common/dri_util.c',
+ '../common/xmlconfig.c',
+]
+
+COMMON_BM_SOURCES = [
+ '../common/dri_bufmgr.c',
+ '../common/dri_drmpool.c',
+]
+
+Export([
+ 'drienv',
+ 'COMMON_GALLIUM_SOURCES',
+ 'COMMON_BM_SOURCES',
+])
+
+# TODO: Installation
+#install: $(LIBNAME)
+# $(INSTALL) -d $(DRI_DRIVER_INSTALL_DIR)
+# $(INSTALL) -m 755 $(LIBNAME) $(DRI_DRIVER_INSTALL_DIR)
+
+SConscript([
+ 'intel_winsys/SConscript',
+])