diff options
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) |