Fixed a few typos. The script still doesn't work.
[supertux.git] / SConstruct
1 #!/usr/bin/scons -Q
2 #
3 # A simple SConstruct file.
4 # See http://www.scons.org/ for more information about what SCons is and how it
5 # may help you... :-)
6 # I've never done anything with SCons before. Quite obviously this script is in
7 # a non-working state!! Maybe someone with more knowledge of the materia who
8 # thinks that SCons might be better suited than make can take over....
9 #                                              - Benjamin P. 'litespeed' Jung -
10 #
11
12
13 # TODO: such a static entry is obviously not what we want.
14 #       Using 'sdl-config --prefix' to obtain parameters would be muuuuuch
15 #       better.
16 SDL_INCLUDE_PATH='/usr/include/SDL'
17
18 libsupertux_src=[
19   'lib/app/globals.cpp',
20   'lib/app/setup.cpp',
21   'lib/audio/musicref.cpp',
22   'lib/audio/sound_manager.cpp',
23   'lib/gui/button.cpp',
24   'lib/gui/menu.cpp',
25   'lib/gui/mousecursor.cpp',
26   'lib/math/physic.cpp',
27   'lib/math/vector.cpp',
28   'lib/special/game_object.cpp',
29   'lib/special/moving_object.cpp',
30   'lib/special/sprite.cpp',
31   'lib/special/sprite_manager.cpp',
32   'lib/special/timer.cpp',
33   'lib/special/frame_rate.cpp',
34   'lib/utils/configfile.cpp',
35   'lib/utils/lispreader.cpp',
36   'lib/utils/lispwriter.cpp',
37   'lib/video/drawing_context.cpp',
38   'lib/video/font.cpp',
39   'lib/video/screen.cpp',
40   'lib/video/surface.cpp'
41 ]
42
43 supertux_src=[
44   'src/background.cpp',
45   'src/badguy.cpp',
46   'src/badguy_specs.cpp',
47   'src/bitmask.cpp',
48   'src/camera.cpp',
49   'src/collision.cpp',
50   'src/door.cpp',
51   'src/gameloop.cpp',
52   'src/gameobjs.cpp',
53   'src/high_scores.cpp',
54   'src/interactive_object.cpp',
55   'src/intro.cpp',
56   'src/level.cpp',
57   'src/level_subset.cpp',
58   'src/leveleditor.cpp',
59   'src/misc.cpp',
60   'src/particlesystem.cpp',
61   'src/player.cpp',
62   'src/resources.cpp',
63   'src/scene.cpp',
64   'src/sector.cpp',
65   'src/special.cpp',
66   'src/statistics.cpp',
67   'src/supertux.cpp',
68   'src/tile.cpp'
69   'src/tile_manager.cpp',
70   'src/tilemap.cpp',
71   'src/title.cpp',
72   'src/worldmap.cpp'
73 ]
74                         
75 Library(
76   target="lib/supertux",
77   source=libsupertux_src,
78   CPPPATH=SDL_INCLUDE_PATH
79 )
80
81 Program(
82   target="src/supertux",
83   source=supertux_src,
84   CPPPATH=[SDL_INCLUDE_PATH, 'lib', '.'],
85   LIBS='lib/libsupertux'
86 )