diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-25 20:26:22 +0100 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-02-25 20:26:22 +0100 |
commit | 78ad285445e55e5415b1ed2765009da26fef9c2c (patch) | |
tree | a4e584f899928e4aa09ae181cb787ad01e5f4d78 /SConstruct | |
parent | d5c33850b3cef417384e8648518e95b6c04b849c (diff) |
Platform testing in SConstruct.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -1,8 +1,13 @@ env = Environment( - CPPFLAGS = '-m32', - LINKFLAGS = '-m32', LIBS = ['ARgsub_lite', 'ARvideo', 'AR', 'png'], - FRAMEWORKS = ['SDL', 'Cocoa', 'OpenGL', 'QuickTime', 'Carbon', 'AppKit'], ) -env.Program('foo', ['foo.cpp', 'SDLMain.m', 'texture.cpp', 'texturepng.cpp']) +common_sources = ['texture.cpp', 'texturepng.cpp'] + +if env['PLATFORM'] == 'darwin': + env.Append(CPPFLAGS = '-m32') + env.Append(LINKFLAGS = '-m32') + env.Append(FRAMEWORKS = ['SDL', 'Cocoa', 'OpenGL', 'QuickTime', 'Carbon', 'AppKit']) + common_sources.append('SDLMain.m') + +env.Program('foo', ['foo.cpp'] + common_sources) |