Added a (non-working) SConstruct file for use with SCons. (http://www.scons.org/)
[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/serializable.cpp',
66   'special.cpp',
67   'statistics.cpp',
68   'supertux.cpp',
69   'tile.cpp'
70   'tile_manager.cpp',
71   'tilemap.cpp',
72   'title.cpp',
73   'worldmap.cpp'
74 ]
75                         
76 Library(
77   target="lib/supertux",
78   source=libsupertux_src,
79   CPPPATH=SDL_INCLUDE_PATH
80 )
81
82 Program(
83   target="src/supertux",
84   source=supertux_src,
85   CPPPATH=SDL_INCLUDE_PATH,
86   LIBS='lib/libsupertux'
87 )