I fixed up the main SConstruct.
[potpourri.git] / SConstruct
blobf2639ab7c3a40b861ad72311aef91ec71703c159
1 # potpourri sconstruct
3 output = 'bin/potpourri'
4 sauces = """
6 src/main.cpp
8 src/Engine.cpp
9 src/Sprite.cpp
10 src/XMLParser.cpp
11 src/Variant.cpp
13 """
14 libs_string = """
16 SDL SDL_image SDL_gfx
17 xml2 z m
19 """
21 # more complicated stuff
23 include_list = ["/usr/include/SDL", "/usr/include/libxml2"]
25 sauce_list = Split(sauces)
26 lib_list = Split(libs_string)
28 debug = Environment(CCFLAGS='-g', CPPPATH = include_list)
29 normal = Environment(CPPPATH = include_list)
31 if 'release' in COMMAND_LINE_TARGETS:
32 normal.Program(output, sauce_list, LIBS=lib_list)
33 else:
34 debug.Program(output + '-dbg', sauce_list, LIBS=lib_list)