changeset 150:ef98b51d9dad

wscript: add simple install location
author Paul Brossier <piem@piem.org>
date Fri, 22 Jul 2016 17:12:09 +0200
parents 88e01aa5b83b
children edc9a0259fe4
files wscript
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/wscript	Fri Jul 22 16:56:27 2016 +0200
+++ b/wscript	Fri Jul 22 17:12:09 2016 +0200
@@ -77,16 +77,23 @@
     # rename libvamp-aubio to vamp-plugin binary name
     if sys.platform.startswith('linux'):
         bld.env['cxxshlib_PATTERN'] = '%s.so'
+        install_path = '${LIBDIR}/vamp'
     elif sys.platform.startswith('darwin'):
         bld.env['cxxshlib_PATTERN'] = '%s.dylib'
+        install_path = '/Library/Audio/Plug-Ins/Vamp'
+    elif sys.platform.startswith('win32'):
+        install_path = None
 
     bld.program(source = plugin_sources,
                includes = '.',
                target = 'vamp-aubio',
                name = 'vamp-aubio',
                use = ['VAMP', 'AUBIO'],
-               features = 'cxx cxxshlib'
+               features = 'cxx cxxshlib',
+               install_path = install_path
                )
 
+    bld.install_files( install_path, ['vamp-aubio.cat', 'vamp-aubio.n3'])
+
     #for k in bld.env.keys():
     #    print ("%s : %s", k, bld.env[k] )