summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-02-25 20:26:22 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-02-25 20:26:22 +0100
commit78ad285445e55e5415b1ed2765009da26fef9c2c (patch)
treea4e584f899928e4aa09ae181cb787ad01e5f4d78 /SConstruct
parentd5c33850b3cef417384e8648518e95b6c04b849c (diff)
Platform testing in SConstruct.
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct13
1 files changed, 9 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index f26ad92..c1c0867 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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)