Mercurial > hg > vamp-aubio-plugins
comparison wscript @ 150:ef98b51d9dad
wscript: add simple install location
author | Paul Brossier <piem@piem.org> |
---|---|
date | Fri, 22 Jul 2016 17:12:09 +0200 |
parents | 538a54fdfb44 |
children | edc9a0259fe4 |
comparison
equal
deleted
inserted
replaced
149:88e01aa5b83b | 150:ef98b51d9dad |
---|---|
75 plugin_sources += bld.path.ant_glob('*.cpp') | 75 plugin_sources += bld.path.ant_glob('*.cpp') |
76 | 76 |
77 # rename libvamp-aubio to vamp-plugin binary name | 77 # rename libvamp-aubio to vamp-plugin binary name |
78 if sys.platform.startswith('linux'): | 78 if sys.platform.startswith('linux'): |
79 bld.env['cxxshlib_PATTERN'] = '%s.so' | 79 bld.env['cxxshlib_PATTERN'] = '%s.so' |
80 install_path = '${LIBDIR}/vamp' | |
80 elif sys.platform.startswith('darwin'): | 81 elif sys.platform.startswith('darwin'): |
81 bld.env['cxxshlib_PATTERN'] = '%s.dylib' | 82 bld.env['cxxshlib_PATTERN'] = '%s.dylib' |
83 install_path = '/Library/Audio/Plug-Ins/Vamp' | |
84 elif sys.platform.startswith('win32'): | |
85 install_path = None | |
82 | 86 |
83 bld.program(source = plugin_sources, | 87 bld.program(source = plugin_sources, |
84 includes = '.', | 88 includes = '.', |
85 target = 'vamp-aubio', | 89 target = 'vamp-aubio', |
86 name = 'vamp-aubio', | 90 name = 'vamp-aubio', |
87 use = ['VAMP', 'AUBIO'], | 91 use = ['VAMP', 'AUBIO'], |
88 features = 'cxx cxxshlib' | 92 features = 'cxx cxxshlib', |
93 install_path = install_path | |
89 ) | 94 ) |
95 | |
96 bld.install_files( install_path, ['vamp-aubio.cat', 'vamp-aubio.n3']) | |
90 | 97 |
91 #for k in bld.env.keys(): | 98 #for k in bld.env.keys(): |
92 # print ("%s : %s", k, bld.env[k] ) | 99 # print ("%s : %s", k, bld.env[k] ) |