summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-05-21 19:24:51 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-05-21 19:24:51 +0200
commit267bebfc227c94f543a39e2aa75fb101bc06932e (patch)
tree40ad8057634ba80aa19c61f57884982fd59f6b56 /SConstruct
parent88b1e9e505dad78fd2c3ff927495d322b11491ca (diff)
Moved engine-sources to seperate subdirectory.
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