summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/xmlpool
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2013-01-12 10:58:31 -0800
committerJosé Fonseca <jfonseca@vmware.com>2013-01-12 19:00:04 +0000
commita3dd1ff45fe73d6edaf6f9ba3ff21476d9be9ba6 (patch)
tree4497e2a1aab6933d7bda28a3111f8921d22cb509 /src/mesa/drivers/dri/common/xmlpool
parent6bca283ad5ebdd85e268c6757842b3c808c6b73d (diff)
scons: Update for xmlpool/options.h generation.
Diffstat (limited to 'src/mesa/drivers/dri/common/xmlpool')
-rw-r--r--src/mesa/drivers/dri/common/xmlpool/SConscript14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/xmlpool/SConscript b/src/mesa/drivers/dri/common/xmlpool/SConscript
new file mode 100644
index 0000000000..fa42554d3a
--- /dev/null
+++ b/src/mesa/drivers/dri/common/xmlpool/SConscript
@@ -0,0 +1,14 @@
+Import('*')
+
+from sys import executable as python_cmd
+
+LOCALEDIR = env.Dir('.').srcnode().abspath
+
+xmlpool_options, = env.CodeGenerate(
+ target = 'options.h',
+ script = 'gen_xmlpool.py',
+ source = ['t_options.h'],
+ command = python_cmd + ' $SCRIPT $SOURCE ' + LOCALEDIR + ' > $TARGET'
+)
+
+Export('xmlpool_options')