summaryrefslogtreecommitdiff
path: root/src/gallium/targets/SConscript
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/targets/SConscript')
-rw-r--r--src/gallium/targets/SConscript47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/gallium/targets/SConscript b/src/gallium/targets/SConscript
new file mode 100644
index 0000000000..97187030ab
--- /dev/null
+++ b/src/gallium/targets/SConscript
@@ -0,0 +1,47 @@
+import os
+Import('*')
+
+# Compatibility with old build scripts:
+#
+if 'mesa' in env['statetrackers']:
+ if 'xlib' in env['winsys']:
+ SConscript([
+ 'libgl-xlib/SConscript',
+ ])
+
+ if 'gdi' in env['winsys']:
+ SConscript([
+ 'libgl-gdi/SConscript',
+ ])
+
+if not 'graw-xlib' in env['targets'] and not 'graw-null' in env['targets'] and not env['msvc']:
+ # XXX: disable until MSVC can link correctly
+ SConscript('graw-null/SConscript')
+
+
+if env['dri']:
+ SConscript([
+ 'SConscript.dri'
+ ])
+
+if 'xorg' in env['statetrackers']:
+ if 'vmware' in env['winsys']:
+ SConscript([
+ 'xorg-vmwgfx/SConscript',
+ ])
+
+if 'egl' in env['statetrackers']:
+ SConscript([
+ 'egl-swrast/SConscript',
+ 'egl-apis/SConscript',
+ ])
+
+# Ideally all non-target directories would produce convenience
+# libraries, and the actual shared libraries and other installables
+# would be finally assembled in the targets subtree:
+#
+for target in env['targets']:
+ SConscript(os.path.join(target, 'SConscript'))
+
+
+