From 9d3292a9f67636e6576d92d866da5d3a44e91ac4 Mon Sep 17 00:00:00 2001 From: falkTX Date: Wed, 22 Jul 2020 23:09:19 +0100 Subject: [PATCH] Properly rename vst3 plugin in a custom_target Signed-off-by: falkTX --- ports/meson.build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/ports/meson.build b/ports/meson.build index 51e3ad93..68157650 100644 --- a/ports/meson.build +++ b/ports/meson.build @@ -228,7 +228,7 @@ foreach plugin : plugins endif if build_vst2 - plugin_vst2_lib = shared_library(plugin_name, + plugin_vst2 = shared_library(plugin_name, name_prefix: '', sources: plugin_extra_format_specific_srcs, include_directories: [ @@ -248,7 +248,6 @@ foreach plugin : plugins if build_vst3 plugin_vst3_lib = shared_library(plugin_name + '-vst3', name_prefix: '', - name_suffix: 'vst3', sources: plugin_extra_format_specific_srcs, include_directories: [ include_directories(plugin), @@ -259,6 +258,14 @@ foreach plugin : plugins 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, link_with: [ lib_juce_current, plugin_lib ], + ) + + plugin_vst3 = custom_target(plugin_name + '.vst3', + output: plugin_name + '.vst3', + input: plugin_vst3_lib, + command: [ + 'mv', plugin_vst3_lib.full_path(), meson.current_build_dir() / plugin_name + '.vst3' + ], install: true, install_dir: vst3dir, )