summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct6
1 files changed, 3 insertions, 3 deletions
diff --git a/SConstruct b/SConstruct
index 7cc4dc2..1e7e66e 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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