Skip to content

Commit

Permalink
Cleanup, fix missing lv2 binary
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <[email protected]>
  • Loading branch information
falkTX committed Dec 10, 2023
1 parent 0ced01e commit 4bf96af
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion libs/juce6.1/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if os_windows
endif
endif

lib_juce6 = static_library('juce61',
lib_juce61 = static_library('juce61',
sources: juce61_srcs,
include_directories: [
include_directories('.'),
Expand Down
11 changes: 11 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,17 @@ else
link_flags += link_flags_release
endif

###############################################################################
# set vst3 architecture bundle name

if os_darwin
vst3_bundle_name = 'MacOS'
elif os_windows
vst3_bundle_name = host_machine.cpu_family() + '-win'
else
vst3_bundle_name = host_machine.cpu_family() + '-' + host_machine.system()
endif

###############################################################################
# go into subdir to build libraries and plugins

Expand Down
4 changes: 2 additions & 2 deletions ports-juce5/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ if build_lv2 or build_vst2
link_with_plugin += plugin_lib

if build_lv2
plugin_lv2_lib = shared_library(plugin_name + '_lv2',
plugin_lv2_lib = shared_library(plugin_name + '-lv2',
name_prefix: '',
sources: plugin_extra_format_specific_srcs,
include_directories: [
Expand All @@ -250,7 +250,7 @@ if build_lv2 or build_vst2
link_with: link_with_plugin,
)

custom_target(plugin_name + '_lv2-dir',
custom_target(plugin_name + '-lv2-bundle',
output: plugin_name + '.lv2',
input: plugin_lv2_lib,
command: [ '../scripts/generate-ttl.sh', lv2_ttl_generator, '@OUTPUT@', plugin_lv2_lib.full_path() ],
Expand Down
8 changes: 4 additions & 4 deletions ports-juce6.0/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ foreach plugin : plugins
)

if build_lv2
plugin_lv2_lib = shared_library(plugin_name + '_lv2',
plugin_lv2_lib = shared_library(plugin_name + '-lv2',
name_prefix: '',
sources: plugin_extra_format_specific_srcs,
include_directories: [
Expand All @@ -187,7 +187,7 @@ foreach plugin : plugins
link_with: [ lib_juce60, plugin_lib ],
)

custom_target(plugin_name + '_lv2-dir',
custom_target(plugin_name + '-lv2-bundle',
output: plugin_name + '.lv2',
input: plugin_lv2_lib,
command: [ '../scripts/generate-ttl.sh', lv2_ttl_generator, '@OUTPUT@', plugin_lv2_lib.full_path() ],
Expand Down Expand Up @@ -229,9 +229,9 @@ foreach plugin : plugins
link_with: [ lib_juce60, plugin_lib ],
)

plugin_vst3_dir = meson.current_build_dir() / plugin_name + '.vst3' / 'Contents' / host_machine.cpu_family() + '-' + host_machine.system()
plugin_vst3_dir = meson.current_build_dir() / plugin_name + '.vst3' / 'Contents' / vst3_bundle_name

plugin_vst3 = custom_target(plugin_name + '_vst3-bundle',
plugin_vst3 = custom_target(plugin_name + '-vst3-bundle',
output: plugin_name + '.vst3',
input: plugin_vst3_lib,
command: [
Expand Down
14 changes: 7 additions & 7 deletions ports-juce6.1/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ foreach plugin : plugins
)

if build_lv2
plugin_lv2_lib = shared_library(plugin_name + '_lv2',
plugin_lv2_lib = shared_library(plugin_name + '-lv2',
name_prefix: '',
sources: plugin_extra_format_specific_srcs,
include_directories: [
Expand All @@ -191,10 +191,10 @@ foreach plugin : plugins
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 + build_flag_plugin_cpp + plugin_extra_build_flags,
link_args: link_flags + link_flags_plugin_common + link_flags_plugin_lv2 + plugin_extra_link_flags,
link_with: [ lib_juce6, plugin_lib ],
link_with: [ lib_juce61, plugin_lib ],
)

custom_target(plugin_name + '_lv2-dir',
custom_target(plugin_name + '-lv2-bundle',
output: plugin_name + '.lv2',
input: plugin_lv2_lib,
command: [ '../scripts/generate-ttl.sh', lv2_ttl_generator, '@OUTPUT@', plugin_lv2_lib.full_path() ],
Expand All @@ -215,7 +215,7 @@ foreach plugin : plugins
c_args: build_flags + build_flags_plugin + build_flags_plugin_vst2 + plugin_extra_build_flags,
cpp_args: build_flags_cpp + build_flags_plugin + build_flags_plugin_vst2 + build_flag_plugin_cpp + plugin_extra_build_flags,
link_args: link_flags + link_flags_plugin_common + link_flags_plugin_vst2 + plugin_extra_link_flags,
link_with: [ lib_juce6, plugin_lib ],
link_with: [ lib_juce61, plugin_lib ],
install: true,
install_dir: vst2dir,
)
Expand All @@ -233,12 +233,12 @@ foreach plugin : plugins
c_args: build_flags + build_flags_plugin + build_flags_plugin_vst3 + plugin_extra_build_flags,
cpp_args: build_flags_cpp + build_flags_plugin + build_flags_plugin_vst3 + build_flag_plugin_cpp + plugin_extra_build_flags,
link_args: link_flags + link_flags_plugin_common + link_flags_plugin_vst3 + plugin_extra_link_flags,
link_with: [ lib_juce6, plugin_lib ],
link_with: [ lib_juce61, plugin_lib ],
)

plugin_vst3_dir = meson.current_build_dir() / plugin_name + '.vst3' / 'Contents' / host_machine.cpu_family() + '-' + host_machine.system()
plugin_vst3_dir = meson.current_build_dir() / plugin_name + '.vst3' / 'Contents' / vst3_bundle_name

plugin_vst3 = custom_target(plugin_name + '_vst3-bundle',
plugin_vst3 = custom_target(plugin_name + '-vst3-bundle',
output: plugin_name + '.vst3',
input: plugin_vst3_lib,
command: [
Expand Down
8 changes: 4 additions & 4 deletions ports-juce7/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ foreach plugin : plugins
)

if build_lv2
plugin_lv2_lib = shared_library(plugin_name + '_lv2',
plugin_lv2_lib = shared_library(plugin_name + '-lv2',
name_prefix: '',
sources: plugin_extra_format_specific_srcs,
include_directories: [
Expand All @@ -180,7 +180,7 @@ foreach plugin : plugins

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

custom_target(plugin_name + '_lv2-dir',
custom_target(plugin_name + '-lv2-bundle',
output: plugin_name + '.lv2',
input: plugin_lv2_lib,
command: [ '../scripts/generate-ttl.sh', lv2_ttl_generator, '@OUTPUT@', plugin_lv2_lib.full_path() ],
Expand Down Expand Up @@ -222,9 +222,9 @@ foreach plugin : plugins
link_with: [ lib_juce7, plugin_lib ],
)

plugin_vst3_dir = meson.current_build_dir() / plugin_name + '.vst3' / 'Contents' / host_machine.cpu_family() + '-' + host_machine.system()
plugin_vst3_dir = meson.current_build_dir() / plugin_name + '.vst3' / 'Contents' / vst3_bundle_name

plugin_vst3 = custom_target(plugin_name + '_vst3-bundle',
plugin_vst3 = custom_target(plugin_name + '-vst3-bundle',
output: plugin_name + '.vst3',
input: plugin_vst3_lib,
command: [
Expand Down
1 change: 1 addition & 0 deletions scripts/generate-ttl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ fi

mkdir -p "${dir}"
cd "${dir}"
cp -v "${lib}" .
exec ${MESON_EXE_WRAPPER} "${gen}" "${lib}"

0 comments on commit 4bf96af

Please sign in to comment.