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/>.
21 sources = glob.glob('*.cpp')
22 name = 'libSDLPlugin.so'
23 output = '../../bin/plugins/' + name
24 env['LIBS'] = ['stdc++', 'SDL_gfx']
28 if not conf.CheckLib('SDL'):
29 print """ You need SDL. Get it. Nao"""
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."""
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',
53 common = env.SharedObject('common-SDLPlugin',
54 '../core/common.cpp');
55 magic = env.SharedObject('Magic-SDLPlugin',
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 +
63 sdl_plugin = env.SharedLibrary(output, total_sauce, LIBS=env['LIBS'])
64 env.Alias(name, sdl_plugin)