Merged with trunk R992.
[ardour.git] / libs / fst / SConscript
1 # -*- python -*-
2
3 import os
4 import os.path
5 import glob
6
7 fst_src = glob.glob('*.c')
8
9 Import('env install_prefix')
10 fst = env.Copy(CC="winegcc")
11 fst.Append (CPPPATH=".")
12
13 hackSDK = fst.Command('vst/aeffectx.h', 'vstsdk2.3/source/common/aeffectx.h', [
14     Delete ('${TARGET.dir}'),
15     Copy ('${TARGET.dir}', '${SOURCE.dir}'),
16     "sed -i '/struct VstFileType\|struct VstFileSelect/,/};/d' $TARGET"
17 ])
18
19 a = fst.Object ('fst', 'fst.c')
20 b = fst.Object ('fstinfofile', 'fstinfofile.c')
21 c = fst.Object ('vstwin', 'vstwin.c')
22 d = fst.Object ('vsti', 'vsti.c')
23
24 if fst['VST']:
25     Default([hackSDK,a,b,c,d])
26     
27 env.Alias('tarball', env.Distribute (env['DISTTREE'],
28                                      fst_src + ['SConscript',
29                                                 'fst.h',
30                                                 'jackvst.h'
31                                                 ] ))
32