progs: Build the wgl examples with scons.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 18 Mar 2009 16:37:20 +0000 (16:37 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 18 Mar 2009 16:40:57 +0000 (16:40 +0000)
progs/SConscript
progs/wgl/SConscript [new file with mode: 0644]

index 71db2831d6eb50a868ea7eafed43e4ec78736dca..71ebe5e0f37013c6819b148533a566c93dbcbb52 100644 (file)
@@ -8,4 +8,5 @@ SConscript([
     'vp/SConscript',
     'vpglsl/SConscript',
     'fp/SConscript',
+    'wgl/SConscript',
 ])
diff --git a/progs/wgl/SConscript b/progs/wgl/SConscript
new file mode 100644 (file)
index 0000000..b7cf35b
--- /dev/null
@@ -0,0 +1,23 @@
+Import('*')
+
+if env['platform'] != 'windows':
+    Return()
+
+env = env.Clone()
+
+env.Append(LIBS = [
+    'kernel32',
+    'user32',
+    'gdi32',
+])
+
+progs = [
+    'sharedtex_mt',
+    'wglthreads',
+]
+
+for prog in progs:
+    env.Program(
+        target = prog,
+        source = prog + '/' + prog + '.c',
+    )