Added angle modification for static graphics in levels.
[potpourri.git] / src / SDLPlugin / SConscript
blobec7f6336e42786100b5f01a79fc068b1ca5ae06c
1 # Copyright 2008 Brian Caine
3 # This file is part of Potpourri.
5 # Potpourri is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # Potpourri is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTIBILITY of FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Potpourri. If not, see <http://www.gnu.org/licenses/>.
18 import glob
19 Import('env')
21 sources = glob.glob('*.cpp')
22 name = 'libSDLPlugin.so'
23 output = '../../bin/plugins/' + name
24 env['LIBS'] = ['stdc++', 'SDL_gfx']
26 conf = Configure(env)
28 if not conf.CheckLib('SDL'):
29     print """    You need SDL. Get it. Nao"""
30     Exit(1)
32 if not conf.CheckLib('SDL_gfx'):
33     print """    You need SDL_gfx. So yeah... I'm gonna need you to go
34     ahead and get a copy of that. Okay? That'd be great."""
35     Exit(1)
37 env = conf.Finish()
39 variant = env.SharedObject('Variant-SDLPlugin', '../core/Variant.cpp')
40 manager = env.SharedObject('SDLManager-SDLPlugin', '../SDL/SDLManager.cpp')
41 target = env.SharedObject('Target-SDLPlugin', '../core/Target.cpp')
42 actor = env.SharedObject('Actor-SDLPlugin', '../core/Actor.cpp')
43 medialoader = env.SharedObject('MediaLoader-SDLPlugin',
44   '../core/MediaLoader.cpp');
45 directory = env.SharedObject('Directory-SDLPlugin',
46   '../core/Directory.cpp');
47 local_directory = env.SharedObject('LocalDirectory-SDLPlugin',
48   '../core/LocalDirectory.cpp');
49 curl_directory = env.SharedObject('cURLDirectory-SDLPlugin',
50   '../core/cURLDirectory.cpp');
51 event = env.SharedObject('Event-SDLPlugin',
52   '../core/Event.cpp');
53 common = env.SharedObject('common-SDLPlugin',
54   '../core/common.cpp');
55 magic = env.SharedObject('Magic-SDLPlugin',
56   '../core/Magic.cpp');
57 script_vm = env.SharedObject('ScriptVM-zip', '../core/ScriptVM.cpp')
59 total_sauce = (sources + variant + manager + target + actor + directory +
60   medialoader + curl_directory + local_directory + event + common +
61   magic + script_vm)
63 sdl_plugin = env.SharedLibrary(output, total_sauce, LIBS=env['LIBS'])
64 env.Alias(name, sdl_plugin)