mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-26 15:20:21 +01:00
Reworked LV2 plug-ing support.
This enables all platforms to use LV2 plugins in non-GUI mode. There is still some work to do, like subgroup handling and better scalepoint handling.
This commit is contained in:
34
lib-src/lv2/build
Executable file
34
lib-src/lv2/build
Executable file
@@ -0,0 +1,34 @@
|
||||
#!/bin/bash
|
||||
|
||||
function waf
|
||||
{
|
||||
pkg=$1
|
||||
pushd >/dev/null ${pkg}
|
||||
shift
|
||||
python waf --prefix="." --include="." $@ build || exit 1
|
||||
popd >/dev/null
|
||||
|
||||
export PKG_CONFIG_PATH="$(pwd)/${pkg}/build:${PKG_CONFIG_PATH}"
|
||||
export CFLAGS="-I$(pwd)/${pkg} ${CFLAGS}"
|
||||
export LDFLAGS="-L$(pwd)/${pkg} -l${pkg}-0 ${LDFLAGS}"
|
||||
|
||||
if [ -e ${pkg}/build/*.a ]
|
||||
then
|
||||
mkdir -p obj
|
||||
pushd obj
|
||||
ar vx ../${pkg}/build/*.a
|
||||
ar vq ../liblv2.a *
|
||||
popd
|
||||
rm -rf obj
|
||||
fi
|
||||
}
|
||||
|
||||
[ -e liblv2.a ] && exit 0
|
||||
|
||||
waf lv2 --no-plugins
|
||||
waf serd --no-utils --static --no-shared
|
||||
waf sord --no-utils --static --no-shared
|
||||
waf sratom --static --no-shared
|
||||
waf lilv --no-utils --static --no-shared
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user