Added angle modification for static graphics in levels.
[potpourri.git] / src / Zip / SConscript
blob550103ca3cb0bcb447d93f9b5b8c5395ae2f387c
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('release env')
21 sources = glob.glob('*.cpp')
22 name = 'libZip.so'
23 output = '../../bin/plugins/' + name
24 env['LIBS'] = ['stdc++', 'zip']
26 env.MergeFlags(['!PKG_CONFIG_PATH="../../pkgconfig" ' +
27   'pkg-config --cflags --libs chipmunk'])
29 variant = env.SharedObject('Variant-zip', '../core/Variant.cpp')
30 directory = env.SharedObject('Directory-zip', '../core/Directory.cpp')
31 common = env.SharedObject('common-zip', '../core/common.cpp')
32 magic = env.SharedObject('Magic-zip', '../core/Magic.cpp')
33 actor = env.SharedObject('Actor-zip', '../core/Actor.cpp')
34 script_vm = env.SharedObject('ScriptVM-zip', '../core/ScriptVM.cpp')
36 final = sources + directory + variant + common + magic + actor + script_vm
38 conf = Configure(env)
40 if not conf.CheckCHeader('zip.h'):
41     print "You need to have libzip."
42     Exit(1)
44 if not conf.CheckCXXHeader('chipmunk.h'):
45     print "You need to have chipmunk"
46     Exit(1)
48 env = conf.Finish()
50 zip = env.SharedLibrary(output, final, LIBS=env['LIBS'])
51 env.Alias(name, zip)