Browse Source

Can now build lv2 plugins too

Signed-off-by: falkTX <falktx@falktx.com>
tags/2020-07-14
falkTX 3 years ago
parent
commit
42fc788556
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
5 changed files with 62 additions and 2 deletions
  1. +20
    -0
      libs/lv2-ttl-generator/meson.build
  2. +1
    -0
      libs/meson.build
  3. +36
    -1
      ports-legacy/meson.build
  4. +4
    -0
      scripts/plugin-symbols.txt
  5. +1
    -1
      scripts/plugin-symbols.version

+ 20
- 0
libs/lv2-ttl-generator/meson.build View File

@@ -0,0 +1,20 @@
###############################################################################

lv2_ttl_generator_dependencies = [
]

if not os_windows
lv2_ttl_generator_dependencies = [
cc.find_library('dl'),
]
endif

lv2_ttl_generator = executable('lv2_ttl_generator',
sources: [
'lv2_ttl_generator.cpp'
],
dependencies: lv2_ttl_generator_dependencies,
install: false,
)

###############################################################################

+ 1
- 0
libs/meson.build View File

@@ -3,5 +3,6 @@
subdir('drowaudio')
subdir('juced')
subdir('juce-legacy')
subdir('lv2-ttl-generator')

###############################################################################

+ 36
- 1
ports-legacy/meson.build View File

@@ -118,7 +118,11 @@ endif
link_flags_plugin = [
]

if not os_darwin
if os_darwin
link_flags_plugin += [
'-Wl,-export-symbols=../scripts/plugin-symbols.txt',
]
else
link_flags_plugin += [
'-Wl,--version-script=../scripts/plugin-symbols.version',
]
@@ -221,6 +225,37 @@ foreach plugin : plugins
endif
endif

if build_lv2
plugin_lv2_lib = shared_library(plugin_name + '_lv2',
name_prefix: '',
sources: plugin_srcs,
include_directories: [
include_directories(plugin / 'source'),
plugin_include_dirs,
plugin_extra_include_dirs,
],
c_args: build_flags + build_flags_plugin + build_flags_plugin_lv2 + plugin_extra_build_flags,
cpp_args: build_flags_cpp + build_flags_plugin + build_flags_plugin_lv2 + plugin_extra_build_flags,
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_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(),
],
install: true,
install_dir: lv2dir / plugin + '.lv2',
)
endif

if build_vst2
plugin_vst2_lib = shared_library(plugin_name,
name_prefix: '',


+ 4
- 0
scripts/plugin-symbols.txt View File

@@ -0,0 +1,4 @@
lv2_generate_ttl
lv2_descriptor
lv2ui_descriptor
VSTPluginMain

+ 1
- 1
scripts/plugin-symbols.version View File

@@ -1,4 +1,4 @@
{
global: VSTPluginMain;
global: VSTPluginMain; lv2_generate_ttl; lv2_descriptor; lv2ui_descriptor;
local: *;
};

Loading…
Cancel
Save