bundled LV2 plugin build and deployment
This commit is contained in:
parent
d6e2e34025
commit
9faae9c8a3
|
@ -29,7 +29,7 @@
|
|||
#include "lv2/lv2plug.in/ns/ext/urid/urid.h"
|
||||
#include "lv2/lv2plug.in/ns/ext/midi/midi.h"
|
||||
|
||||
#define RSY_URI "http://gareus.org/oss/lv2/reasonablesynth"
|
||||
#define RSY_URI "https://community.ardour.org/node/7596"
|
||||
|
||||
/* the synth interface */
|
||||
static void * synth_alloc (void);
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix ui: <http://lv2plug.in/ns/extensions/ui#> .
|
||||
|
||||
<http://gareus.org/oss/lv2/reasonablesynth>
|
||||
<https://community.ardour.org/node/7596>
|
||||
a lv2:Plugin ;
|
||||
lv2:binary <reasonablesynth@LIB_EXT@> ;
|
||||
rdfs:seeAlso <reasonablesynth.ttl> .
|
||||
|
|
|
@ -5,7 +5,6 @@
|
|||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix pg: <http://lv2plug.in/ns/ext/port-groups#> .
|
||||
@prefix units: <http://lv2plug.in/ns/extensions/units#> .
|
||||
@prefix urid: <http://lv2plug.in/ns/ext/urid#> .
|
||||
|
||||
<http://gareus.org/rgareus#me>
|
||||
|
@ -14,7 +13,7 @@
|
|||
foaf:mbox <mailto:robin@gareus.org> ;
|
||||
foaf:homepage <http://gareus.org/> .
|
||||
|
||||
<http://gareus.org/oss/lv2/reasonablesynth>
|
||||
<https://community.ardour.org/node/7596>
|
||||
a lv2:Plugin, lv2:InstrumentPlugin, doap:Project;
|
||||
doap:license <http://usefulinc.com/doap/licenses/gpl> ;
|
||||
doap:maintainer <http://gareus.org/rgareus#me> ;
|
||||
|
|
|
@ -15,30 +15,33 @@ def configure(conf):
|
|||
conf.load('compiler_c')
|
||||
autowaf.configure(conf)
|
||||
autowaf.set_c99_mode(conf)
|
||||
autowaf.check_pkg(conf, 'lv2', atleast_version='1.4.1',
|
||||
uselib_store='LV2_1_4_1')
|
||||
if Options.options.lv2:
|
||||
autowaf.check_pkg(conf, 'lv2', atleast_version='1.4.0',
|
||||
uselib_store='LV2_1_4_0')
|
||||
|
||||
def build(bld):
|
||||
bundle = 'reasonablesynth.lv2'
|
||||
module_pat = re.sub('^lib', '', bld.env.cshlib_PATTERN)
|
||||
module_ext = module_pat[module_pat.rfind('.'):]
|
||||
|
||||
# Build RDF files
|
||||
for i in ['manifest.ttl', 'reasonablesynth.ttl']:
|
||||
bld(features = 'subst',
|
||||
source = i + '.in',
|
||||
target = '%s/%s' % (bundle, i),
|
||||
install_path = '${LV2DIR}/%s' % bundle,
|
||||
LIB_EXT = module_ext)
|
||||
if bld.is_defined ('HAVE_LV2'):
|
||||
# Build RDF files
|
||||
for i in ['manifest.ttl', 'reasonablesynth.ttl']:
|
||||
bld(features = 'subst',
|
||||
source = i + '.in',
|
||||
target = '../../LV2/%s/%s' % (bundle, i),
|
||||
install_path = '${LV2DIR}/%s' % bundle,
|
||||
LIB_EXT = module_ext)
|
||||
|
||||
# Build plugin library
|
||||
obj = bld(features = 'c cshlib',
|
||||
source = 'lv2.c',
|
||||
dep_files = 'rsynth.c',
|
||||
name = 'reasonablesynth',
|
||||
target = '%s/reasonablesynth' % bundle,
|
||||
install_path = '${LV2DIR}/%s' % bundle,
|
||||
use = 'LV2_1_4_1')
|
||||
obj.env.cshlib_PATTERN = module_pat
|
||||
# Build plugin library
|
||||
obj = bld(features = 'c cshlib',
|
||||
source = 'lv2.c',
|
||||
dep_files = 'rsynth.c',
|
||||
name = 'reasonablesynth',
|
||||
target = '../../LV2/%s/reasonablesynth' % bundle,
|
||||
install_path = '${LV2DIR}/%s' % bundle,
|
||||
use = 'LV2_1_4_0'
|
||||
)
|
||||
obj.env.cshlib_PATTERN = module_pat
|
||||
|
||||
# vi:set ts=4 sw=4 et:
|
||||
|
|
|
@ -534,6 +534,9 @@ cp -R ../../gtk2_ardour/splash.png $Shared
|
|||
cp -R ../../gtk2_ardour/small-splash.png $Shared
|
||||
cp -R ../../gtk2_ardour/ArdourMono.ttf $Shared
|
||||
|
||||
# install bundled LV2s to <app>/lib/LV2/
|
||||
cp -R $BUILD_ROOT/libs/LV2 $APPLIB/
|
||||
|
||||
# go through and recursively remove any .svn dirs in the bundle
|
||||
for svndir in `find $APPDIR -name .svn -type d`; do
|
||||
rm -rf $svndir
|
||||
|
|
|
@ -417,6 +417,9 @@ for svndir in `find $APPDIR -name .svn -type dir`; do
|
|||
rm -rf $svndir
|
||||
done
|
||||
|
||||
# install bundled LV2s to <app>/Contents/lib/LV2/
|
||||
cp -R $BUILD_ROOT/libs/LV2 $Frameworks/
|
||||
|
||||
# now fix up the executables
|
||||
echo "Fixing up executable dependency names ..."
|
||||
executables=$MAIN_EXECUTABLE
|
||||
|
|
Loading…
Reference in New Issue
Block a user