summaryrefslogtreecommitdiff
path: root/src/glsl/pp/SConscript
diff options
context:
space:
mode:
authorMichal Krol <michal@vmware.com>2009-06-11 14:04:39 +0200
committerMichal Krol <michal@vmware.com>2009-09-07 10:11:29 +0200
commit0bbf59c3052a7b4f6f8330985317adce2bfd0fef (patch)
tree6f1a609a94a895f386c197feb9f9f23e4c961575 /src/glsl/pp/SConscript
parent970823978c2f7d2cf0757aa6ddbd6289b34c476f (diff)
glsl: Add preprocessor purifier.
Diffstat (limited to 'src/glsl/pp/SConscript')
-rw-r--r--src/glsl/pp/SConscript21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/glsl/pp/SConscript b/src/glsl/pp/SConscript
new file mode 100644
index 00000000000..08f202e2367
--- /dev/null
+++ b/src/glsl/pp/SConscript
@@ -0,0 +1,21 @@
+Import('*')
+
+if env['platform'] not in ['windows']:
+ Return()
+
+env = env.Clone()
+
+glsl = env.StaticLibrary(
+ target = 'glsl',
+ source = [
+ 'sl_pp_purify.c',
+ ],
+)
+
+env = env.Clone()
+
+if env['platform'] == 'windows':
+ env.PrependUnique(LIBS = [
+ 'user32',
+ ])
+env.Prepend(LIBS = [glsl])