diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ env = Environment( ENV = os.environ, ) -common_sources = [] +engine = Glob('engine/*.cpp') AddOption('--release', action = 'store_true') @@ -15,7 +15,7 @@ if env['PLATFORM'] == 'darwin': env.Append(LIBS = ['ftgl']) env.Append(LIBPATH = ['/opt/local/lib']) env.Append(FRAMEWORKS = ['SDL', 'SDL_image', 'Cocoa', 'OpenGL', 'AppKit']) - common_sources.append('SDLMain.m') + engine.append('engine/SDLMain.m') else: env.Append(LIBS = ['GL', 'GLU', 'SDL', 'SDL_image']) env.ParseConfig('sdl-config --cflags --libs') @@ -24,6 +24,6 @@ else: if not GetOption('release'): env.Append(CPPFLAGS = ['-Wall', '-g']) -env.Program('foo', common_sources + Glob('*.cpp')) +env.Program('foo', ['main.cpp'] + engine) # vim: syn=python |