mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Define plugin and chainloader deps in own dir
Just like we already did for the plugin host.
This commit is contained in:
+4
-38
@@ -257,17 +257,7 @@ shared_library(
|
|||||||
vst2_plugin_sources,
|
vst2_plugin_sources,
|
||||||
native : true,
|
native : true,
|
||||||
include_directories : include_dir,
|
include_directories : include_dir,
|
||||||
dependencies : [
|
dependencies : vst2_plugin_deps,
|
||||||
configuration_dep,
|
|
||||||
|
|
||||||
asio_dep,
|
|
||||||
bitsery_dep,
|
|
||||||
dl_dep,
|
|
||||||
ghc_filesystem_dep,
|
|
||||||
rt_dep,
|
|
||||||
threads_dep,
|
|
||||||
tomlplusplus_dep,
|
|
||||||
],
|
|
||||||
# NOTE: LTO does not support Winelibs, and it seems to break
|
# NOTE: LTO does not support Winelibs, and it seems to break
|
||||||
# `libyabridge-vst2.so` in Bitwig for some reason. It should be left
|
# `libyabridge-vst2.so` in Bitwig for some reason. It should be left
|
||||||
# turned off for the time being except for on the chainloader
|
# turned off for the time being except for on the chainloader
|
||||||
@@ -278,13 +268,7 @@ shared_library(
|
|||||||
'yabridge-chainloader-vst2',
|
'yabridge-chainloader-vst2',
|
||||||
vst2_chainloader_sources,
|
vst2_chainloader_sources,
|
||||||
native : true,
|
native : true,
|
||||||
dependencies : [
|
dependencies : chainloader_deps,
|
||||||
configuration_dep,
|
|
||||||
|
|
||||||
dl_dep,
|
|
||||||
ghc_filesystem_dep,
|
|
||||||
rt_dep,
|
|
||||||
],
|
|
||||||
cpp_args : compiler_options + chainloader_compiler_options,
|
cpp_args : compiler_options + chainloader_compiler_options,
|
||||||
# LTO is useful here to get rid of unused code
|
# LTO is useful here to get rid of unused code
|
||||||
override_options : ['b_lto=true'],
|
override_options : ['b_lto=true'],
|
||||||
@@ -298,32 +282,14 @@ if with_vst3
|
|||||||
vst3_plugin_sources,
|
vst3_plugin_sources,
|
||||||
native : true,
|
native : true,
|
||||||
include_directories : include_dir,
|
include_directories : include_dir,
|
||||||
dependencies : [
|
dependencies : vst3_plugin_deps,
|
||||||
configuration_dep,
|
|
||||||
|
|
||||||
asio_dep,
|
|
||||||
bitsery_dep,
|
|
||||||
dl_dep,
|
|
||||||
function2_dep,
|
|
||||||
ghc_filesystem_dep,
|
|
||||||
rt_dep,
|
|
||||||
threads_dep,
|
|
||||||
tomlplusplus_dep,
|
|
||||||
vst3_sdk_native_dep,
|
|
||||||
],
|
|
||||||
cpp_args : compiler_options,
|
cpp_args : compiler_options,
|
||||||
)
|
)
|
||||||
shared_library(
|
shared_library(
|
||||||
'yabridge-chainloader-vst3',
|
'yabridge-chainloader-vst3',
|
||||||
vst3_chainloader_sources,
|
vst3_chainloader_sources,
|
||||||
native : true,
|
native : true,
|
||||||
dependencies : [
|
dependencies : chainloader_deps,
|
||||||
configuration_dep,
|
|
||||||
|
|
||||||
dl_dep,
|
|
||||||
ghc_filesystem_dep,
|
|
||||||
rt_dep,
|
|
||||||
],
|
|
||||||
cpp_args : compiler_options + chainloader_compiler_options,
|
cpp_args : compiler_options + chainloader_compiler_options,
|
||||||
# See above
|
# See above
|
||||||
override_options : ['b_lto=true'],
|
override_options : ['b_lto=true'],
|
||||||
|
|||||||
@@ -1,6 +1,14 @@
|
|||||||
# Like for the other libraries, the actual `shared_library()` call is in the
|
# Like for the other libraries, the actual `shared_library()` call is in the
|
||||||
# main `meson.build` file so everything gets bundled to a single directory.
|
# main `meson.build` file so everything gets bundled to a single directory.
|
||||||
|
|
||||||
|
chainloader_deps = [
|
||||||
|
configuration_dep,
|
||||||
|
|
||||||
|
dl_dep,
|
||||||
|
ghc_filesystem_dep,
|
||||||
|
rt_dep,
|
||||||
|
]
|
||||||
|
|
||||||
vst2_chainloader_sources = files(
|
vst2_chainloader_sources = files(
|
||||||
'../common/logging/common.cpp',
|
'../common/logging/common.cpp',
|
||||||
'../common/linking.cpp',
|
'../common/linking.cpp',
|
||||||
|
|||||||
@@ -1,6 +1,33 @@
|
|||||||
# We only define the sources here, because calling `shared_library()` here will
|
# We only define the sources here, because calling `shared_library()` here will
|
||||||
# cause the `libyabridge-*.so` files to be generated in a deeply nested
|
# cause the `libyabridge-*.so` files to be generated in a deeply nested
|
||||||
# subdirectory of `build/`
|
# subdirectory of `build/`
|
||||||
|
|
||||||
|
vst2_plugin_deps = [
|
||||||
|
configuration_dep,
|
||||||
|
|
||||||
|
asio_dep,
|
||||||
|
bitsery_dep,
|
||||||
|
dl_dep,
|
||||||
|
ghc_filesystem_dep,
|
||||||
|
rt_dep,
|
||||||
|
threads_dep,
|
||||||
|
tomlplusplus_dep,
|
||||||
|
]
|
||||||
|
|
||||||
|
vst3_plugin_deps = [
|
||||||
|
configuration_dep,
|
||||||
|
|
||||||
|
asio_dep,
|
||||||
|
bitsery_dep,
|
||||||
|
dl_dep,
|
||||||
|
function2_dep,
|
||||||
|
ghc_filesystem_dep,
|
||||||
|
rt_dep,
|
||||||
|
threads_dep,
|
||||||
|
tomlplusplus_dep,
|
||||||
|
vst3_sdk_native_dep,
|
||||||
|
]
|
||||||
|
|
||||||
vst2_plugin_sources = files(
|
vst2_plugin_sources = files(
|
||||||
'../common/communication/common.cpp',
|
'../common/communication/common.cpp',
|
||||||
'../common/communication/vst2.cpp',
|
'../common/communication/vst2.cpp',
|
||||||
|
|||||||
Reference in New Issue
Block a user