diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -12,9 +12,9 @@ AddOption('--profiling', action = 'store_true') if env['PLATFORM'] == 'darwin': env.Append(CPPFLAGS = '') env.Append(LINKFLAGS = '') - env.Append(CPPPATH = ['/opt/local/include', '/opt/local/include/freetype2']) + env.Append(CPPPATH = ['.', '/opt/local/include', '/opt/local/include/freetype2']) env.Append(LIBS = ['ftgl']) - env.Append(LIBPATH = ['/opt/local/lib']) + env.Append(LIBPATH = ['.', '/opt/local/lib']) env.Append(FRAMEWORKS = ['SDL', 'SDL_image', 'Cocoa', 'OpenGL', 'AppKit']) engine.append('engine/SDLMain.m') else: @@ -29,6 +29,12 @@ if GetOption('profiling'): env.Append(CPPFLAGS = ['-pg']) env.Append(LINKFLAGS = ['-pg']) -env.Program('foo', ['main.cpp'] + engine) +env.Library('wriggle', Glob('wriggle/*.cpp')) +env.Append(LIBS = ['wriggle']) + +env.Library('engine', engine) +env.Append(LIBS = ['engine']) + +env.Program('foo', ['main.cpp']) # vim: syn=python |