Merged with trunk R920.
[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 Default([hackSDK,a,b,c,d])
25
26 env.Alias('tarball', env.Distribute (env['DISTTREE'], fst_src + ['SConscript'] ))
27