Permalink
Browse files

moved to scons

  • Loading branch information...
1 parent f29c160 commit 8bddbe1f0dd6b176af94b9fcd15646f8f3941fde @tmpvar committed Aug 14, 2011
View
@@ -1,3 +1,3 @@
*.o
.DS_Store
-
+.sconsign.dblite
View
@@ -0,0 +1,3 @@
+SConscript('src/SConstruct', variant_dir='build')
+SConscript('example/SConstruct', variant_dir='bin')
+
View
@@ -0,0 +1 @@
+*.*
View
@@ -0,0 +1,7 @@
+
+webgl = File('../build/libWebGL.a')
+
+Program('triangle', 'triangle.cc',
+ LIBS=[webgl],
+ FRAMEWORKS=['OpenGL', 'Cocoa']
+ )
View
@@ -0,0 +1,2 @@
+
+*
View
@@ -1,13 +0,0 @@
-echo "Removing old stuff"
-rm -rf *.o
-
-echo "Building new objects"
-g++ -Wall -g -c ../src/*.cc
-g++ -Wall -g -c ../src/*/*.cc
-g++ -Wall -g -c *.cc
-
-echo "Link object together into test binary"
-echo "DONE BUILDING"
-echo "--------------------------------------"
-echo ""
-g++ -Wall -g -o test *.o -framework OpenGL -framework Cocoa
View
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1,7 @@
+
+webgl = File('../build/libWebGL.a')
+
+Program('triangle', 'triangle.cc',
+ LIBS=[webgl],
+ FRAMEWORKS=['OpenGL', 'Cocoa']
+ )
@@ -1,4 +1,6 @@
+#include "../src/arch/wrapper.h"
#include "../src/WebGLRenderingContext.h"
+
#include <iostream>
#include <assert.h>
#include <unistd.h>
View
@@ -0,0 +1,16 @@
+
+import platform
+
+
+CFLAGS = '-Wall -g'
+
+env = Environment(
+ CFLAGS=CFLAGS,
+ FRAMEWORKS=['-framework OpenGL', '-framework Cocoa']
+ )
+
+sources = Glob('*.cc')
+sources.extend(Glob('dom/*.cc'))
+sources.extend(Glob('typedarray/*.cc'))
+
+lib = env.StaticLibrary('WebGL', sources)

0 comments on commit 8bddbe1

Please sign in to comment.