Permalink
Browse files

Minor cleanup

  • Loading branch information...
1 parent 2b96f4b commit 9d02067ae0ae228a70866bb0666c1af8be78ba03 @skaslev committed Nov 22, 2010
Showing with 12 additions and 12 deletions.
  1. +3 −0 .gitignore
  2. +9 −7 SConstruct
  3. +0 −2 bin/.gitignore
  4. +0 −2 include/GL3/.gitignore
  5. +0 −1 src/.gitignore
View
3 .gitignore
@@ -1,3 +1,6 @@
.sconsign.dblite
*.o
*.os
+bin
+include
+src/gl3w.c
View
16 SConstruct
@@ -1,11 +1,12 @@
-import os
-
-for f in ['include/GL3/gl3.h', 'include/GL3/gl3w.h', 'src/gl3w.c']:
- try: os.unlink(f)
- except: pass
+import os, shutil
env = Environment()
-if not env.GetOption('clean'):
+if env.GetOption('clean'):
+ shutil.rmtree('bin', True)
+ shutil.rmtree('include', True)
+ try: os.unlink('src/gl3w.c')
+ except: pass
+else:
print 'generating gl3w...'
execfile('gl3w_gen.py')
@@ -14,4 +15,5 @@ env.Append(CPPPATH='include')
env.SharedLibrary('bin/gl3w', 'src/gl3w.c')
o = env.Object('src/test', 'src/test.c')
env.Program('bin/test_static', [o, 'src/gl3w.c'], LIBS='glut')
-env.Program('bin/test_shared', o, LIBS=['gl3w', 'glut'], LIBPATH='bin', RPATH=['.', 'bin'])
+env.Program('bin/test_shared', o, LIBS=['gl3w', 'glut'],
+ LIBPATH='bin', RPATH=os.path.abspath('bin'))
View
2 bin/.gitignore
@@ -1,2 +0,0 @@
-test_*
-libgl3w.so
View
2 include/GL3/.gitignore
@@ -1,2 +0,0 @@
-gl3.h
-gl3w.h
View
1 src/.gitignore
@@ -1 +0,0 @@
-gl3w.c

0 comments on commit 9d02067

Please sign in to comment.