Browse Source

Tweaks for getting same lv2 binary filename as main branch

Signed-off-by: falkTX <falktx@falktx.com>
tags/2020-07-14
falkTX 3 years ago
parent
commit
4ac89c4527
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 11 additions and 6 deletions
  1. +4
    -0
      meson.build
  2. +7
    -6
      ports-legacy/meson.build

+ 4
- 0
meson.build View File

@@ -13,6 +13,10 @@ prefix = get_option('prefix')
bindir = get_option('bindir')
libdir = get_option('libdir')

if libdir.contains('/')
libdir = 'lib'
endif

build_lv2 = get_option('build-lv2')
build_vst2 = get_option('build-vst2')
build_vst3 = get_option('build-vst3')


+ 7
- 6
ports-legacy/meson.build View File

@@ -239,20 +239,21 @@ foreach plugin : plugins
link_args: link_flags + link_flags_plugin,
link_with: link_with_plugin,
dependencies: dependencies_plugin + plugin_extra_dependencies,
install: true,
install_dir: lv2dir / plugin + '.lv2',
)

plugin_lv2_dir = meson.current_build_dir() / plugin_name + '.lv2'

plugin_lv2_ttl = custom_target(plugin_name + '_lv2-ttl',
output: plugin_name + '.lv2',
input: plugin_lv2_lib,
command: [
'mkdir', '-p', meson.current_build_dir() / plugin_name + '.lv2', '&&',
'cd', meson.current_build_dir() / plugin_name + '.lv2', '&&',
lv2_ttl_generator, plugin_lv2_lib.full_path(),
'mkdir', '-p', plugin_lv2_dir, '&&',
'cd', plugin_lv2_dir, '&&',
'cp', plugin_lv2_lib.full_path(), plugin_lv2_dir / plugin_name + lib_suffix, '&&',
lv2_ttl_generator, '.' / plugin_name + lib_suffix,
],
install: true,
install_dir: lv2dir / plugin + '.lv2',
install_dir: lv2dir,
)
endif



Loading…
Cancel
Save