summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
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)