summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-06-13 18:47:00 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-06-13 18:47:00 +0200
commitc91de71d69265a0d619b25d0c04ae1adb0785f33 (patch)
tree83176a79b8ed2d83f962758972e5a37a69d8259d /SConstruct
parenta6417af853180b5568c7f96c903057dd2c454204 (diff)
Using wriggle.HEADmaster
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct10
1 files changed, 8 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 0b7006f..0168a06 100644
--- a/SConstruct
+++ b/SConstruct
@@ -2,16 +2,22 @@ env = Environment(
LIBS = ['ARgsub_lite', 'ARvideo', 'AR', 'assimp'],
)
-common_sources = ['application.cpp', 'videoprovider.cpp', 'hcoord.cpp', 'pattern.cpp', 'texture.cpp', 'texturesdl.cpp']
+common_sources = ['application.cpp', 'videoprovider.cpp', 'hcoord.cpp', 'pattern.cpp']
if env['PLATFORM'] == 'darwin':
env.Append(CPPFLAGS = '-m32')
env.Append(LINKFLAGS = '-m32')
+ env.Append(CPPPATH = ['.'])
env.Append(FRAMEWORKS = ['SDL', 'SDL_image', 'Cocoa', 'OpenGL', 'QuickTime', 'Carbon', 'AppKit'])
- common_sources.append('SDLMain.m')
else:
env.Append(LIBS = ['GL', 'GLU', 'SDL', 'SDL_image', 'SDLmain', 'gstreamer-0.10'])
+Export('env')
+
+env.SConscript('wriggle/SConscript')
+env.Append(LIBS = ['wriggle'])
+env.Append(LIBPATH = ['wriggle'])
+
env.Program('foo', ['foo.cpp'] + common_sources)
env.Program('assimp', ['assimp.cpp'] + common_sources)