summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-12-01 03:18:20 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-12-01 03:18:20 +0000
commite23a1d1a842c9683d8e247d35e534fbdf7222f1d (patch)
tree2c0463151c0159ba0bb9aa796f38d36f5c3acea1
parentf5416958e6701cd4f2c2b1b2340c9f5b138ae1f0 (diff)
better design for discovering VST packages
git-svn-id: svn://localhost/ardour2/trunk@1179 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/fst/SConscript19
1 files changed, 14 insertions, 5 deletions
diff --git a/libs/fst/SConscript b/libs/fst/SConscript
index 17fc67eb4c..2e78e8d3c8 100644
--- a/libs/fst/SConscript
+++ b/libs/fst/SConscript
@@ -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 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 it exists, try to use the Steinberg zip package
+ #
+ vst_sdk_zip = File ('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.'