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