summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-06-13 16:04:40 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-06-13 16:04:40 +0200
commitb4472061c4c23b59a6d4c52e34eb38e68d766807 (patch)
tree7450d92edc74a800312df9ab7bf8e34d3c2cfc6d /SConstruct
parent0de601984c8af1d88affe1ac88d47cc9fe12de75 (diff)
Added wriggle. Moved vector- and matrix-classes to wriggle.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct12
1 files changed, 9 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 1a49017..7054033 100644
--- a/SConstruct
+++ b/SConstruct
@@ -12,9 +12,9 @@ AddOption('--profiling', action = 'store_true')
if env['PLATFORM'] == 'darwin':
env.Append(CPPFLAGS = '')
env.Append(LINKFLAGS = '')
- env.Append(CPPPATH = ['/opt/local/include', '/opt/local/include/freetype2'])
+ env.Append(CPPPATH = ['.', '/opt/local/include', '/opt/local/include/freetype2'])
env.Append(LIBS = ['ftgl'])
- env.Append(LIBPATH = ['/opt/local/lib'])
+ env.Append(LIBPATH = ['.', '/opt/local/lib'])
env.Append(FRAMEWORKS = ['SDL', 'SDL_image', 'Cocoa', 'OpenGL', 'AppKit'])
engine.append('engine/SDLMain.m')
else:
@@ -29,6 +29,12 @@ if GetOption('profiling'):
env.Append(CPPFLAGS = ['-pg'])
env.Append(LINKFLAGS = ['-pg'])
-env.Program('foo', ['main.cpp'] + engine)
+env.Library('wriggle', Glob('wriggle/*.cpp'))
+env.Append(LIBS = ['wriggle'])
+
+env.Library('engine', engine)
+env.Append(LIBS = ['engine'])
+
+env.Program('foo', ['main.cpp'])
# vim: syn=python