mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
better design for discovering VST packages
git-svn-id: svn://localhost/ardour2/trunk@1179 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
f5416958e6
commit
e23a1d1a84
1 changed files with 13 additions and 4 deletions
|
|
@ -12,12 +12,21 @@ fst = env.Copy(CC="winegcc")
|
|||
fst.Append (CPPPATH=".")
|
||||
|
||||
if fst['VST']:
|
||||
vst_sdk = File ('vstsdk2.3.zip')
|
||||
vst_dir = Dir ('libs/vst')
|
||||
vst_dir = Dir ('libs/vst')
|
||||
vst_sdk_dir = Dir ('vstsdk2.3')
|
||||
#
|
||||
# if it exists, try to use the Steinberg zip package
|
||||
#
|
||||
vst_sdk_zip = File ('vstsdk2.3.zip')
|
||||
|
||||
if os.access ('vst_sdk2_3.zip', os.F_OK):
|
||||
vst_sdk_zip = fst.Command (vst_sdk, 'vst_sdk2_3.zip', "unzip -o -d ${TARGET.dir} $SOURCES vstsdk2.3.zip" )
|
||||
if os.access (vst_sdk_zip.abspath, os.F_OK):
|
||||
print 'VST package discovered.'
|
||||
elif os.access ('vst_sdk2_3.zip', os.F_OK):
|
||||
#
|
||||
# redefine vst_sdk_zip as a build target that relies on unpacking the Steinberg "meta" zip package
|
||||
#
|
||||
vst_meta_zip = fst.Command (vst_sdk_zip, 'vst_sdk2_3.zip', "unzip -o -d ${TARGET.dir} $SOURCES vstsdk2.3.zip" )
|
||||
print 'VST meta-package discovered.'
|
||||
else:
|
||||
if os.access ('vstsdk2.3.zip', os.F_OK) != 1:
|
||||
print 'Did not find vst_sdk2_3.zip or vstsdk2.3.zip in libs/fst.'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue