mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Define all sources at the top of meson.build
To make things a bit more organized since it's growing a bit out of hand.
This commit is contained in:
+53
-49
@@ -57,6 +57,57 @@ endif
|
|||||||
# and the name of the host binary
|
# and the name of the host binary
|
||||||
subdir('src/common/config')
|
subdir('src/common/config')
|
||||||
|
|
||||||
|
vst2_plugin_sources = [
|
||||||
|
'src/common/communication/common.cpp',
|
||||||
|
'src/common/communication/vst2.cpp',
|
||||||
|
'src/common/serialization/vst2.cpp',
|
||||||
|
'src/common/configuration.cpp',
|
||||||
|
'src/common/logging/common.cpp',
|
||||||
|
'src/common/logging/vst2.cpp',
|
||||||
|
'src/common/plugins.cpp',
|
||||||
|
'src/common/utils.cpp',
|
||||||
|
'src/plugin/bridges/vst2.cpp',
|
||||||
|
'src/plugin/host-process.cpp',
|
||||||
|
'src/plugin/utils.cpp',
|
||||||
|
'src/plugin/vst2-plugin.cpp',
|
||||||
|
version_header,
|
||||||
|
]
|
||||||
|
|
||||||
|
vst3_plugin_sources = [
|
||||||
|
'src/common/logging/common.cpp',
|
||||||
|
'src/common/logging/vst2.cpp',
|
||||||
|
'src/plugin/vst3-plugin.cpp',
|
||||||
|
version_header,
|
||||||
|
]
|
||||||
|
|
||||||
|
host_sources = [
|
||||||
|
'src/common/communication/vst2.cpp',
|
||||||
|
'src/common/serialization/vst2.cpp',
|
||||||
|
'src/common/configuration.cpp',
|
||||||
|
'src/common/logging/common.cpp',
|
||||||
|
'src/common/logging/vst2.cpp',
|
||||||
|
'src/common/plugins.cpp',
|
||||||
|
'src/common/utils.cpp',
|
||||||
|
'src/wine-host/bridges/common.cpp',
|
||||||
|
'src/wine-host/bridges/vst2.cpp',
|
||||||
|
'src/wine-host/editor.cpp',
|
||||||
|
'src/wine-host/editor.cpp',
|
||||||
|
'src/wine-host/utils.cpp',
|
||||||
|
version_header,
|
||||||
|
]
|
||||||
|
|
||||||
|
if with_vst3
|
||||||
|
host_sources += [
|
||||||
|
'src/wine-host/bridges/vst3.cpp'
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
|
individual_host_sources = host_sources + ['src/wine-host/individual-host.cpp']
|
||||||
|
group_host_sources = host_sources + [
|
||||||
|
'src/wine-host/bridges/group.cpp',
|
||||||
|
'src/wine-host/group-host.cpp',
|
||||||
|
]
|
||||||
|
|
||||||
# Statically link against Boost.Filesystem, otherwise it would become impossible
|
# Statically link against Boost.Filesystem, otherwise it would become impossible
|
||||||
# to distribute a prebuilt version of yabridge
|
# to distribute a prebuilt version of yabridge
|
||||||
boost_dep = dependency('boost', version : '>=1.66', static : with_static_boost)
|
boost_dep = dependency('boost', version : '>=1.66', static : with_static_boost)
|
||||||
@@ -83,21 +134,7 @@ include_dir = include_directories('src/include')
|
|||||||
|
|
||||||
shared_library(
|
shared_library(
|
||||||
'yabridge-vst2',
|
'yabridge-vst2',
|
||||||
[
|
vst2_plugin_sources,
|
||||||
'src/common/communication/common.cpp',
|
|
||||||
'src/common/communication/vst2.cpp',
|
|
||||||
'src/common/serialization/vst2.cpp',
|
|
||||||
'src/common/configuration.cpp',
|
|
||||||
'src/common/logging/common.cpp',
|
|
||||||
'src/common/logging/vst2.cpp',
|
|
||||||
'src/common/plugins.cpp',
|
|
||||||
'src/common/utils.cpp',
|
|
||||||
'src/plugin/bridges/vst2.cpp',
|
|
||||||
'src/plugin/host-process.cpp',
|
|
||||||
'src/plugin/utils.cpp',
|
|
||||||
'src/plugin/vst2-plugin.cpp',
|
|
||||||
version_header,
|
|
||||||
],
|
|
||||||
native : true,
|
native : true,
|
||||||
include_directories : include_dir,
|
include_directories : include_dir,
|
||||||
dependencies : [
|
dependencies : [
|
||||||
@@ -207,12 +244,7 @@ if with_vst3
|
|||||||
# applications can handle both VST2 and VST3 plugins.
|
# applications can handle both VST2 and VST3 plugins.
|
||||||
shared_library(
|
shared_library(
|
||||||
'yabridge-vst3',
|
'yabridge-vst3',
|
||||||
[
|
vst3_plugin_sources,
|
||||||
'src/common/logging/common.cpp',
|
|
||||||
'src/common/logging/vst2.cpp',
|
|
||||||
'src/plugin/vst3-plugin.cpp',
|
|
||||||
version_header,
|
|
||||||
],
|
|
||||||
native : true,
|
native : true,
|
||||||
include_directories : include_dir,
|
include_directories : include_dir,
|
||||||
dependencies : [
|
dependencies : [
|
||||||
@@ -230,34 +262,6 @@ else
|
|||||||
message('VST3 support has been disabled')
|
message('VST3 support has been disabled')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
host_sources = [
|
|
||||||
'src/common/communication/vst2.cpp',
|
|
||||||
'src/common/serialization/vst2.cpp',
|
|
||||||
'src/common/configuration.cpp',
|
|
||||||
'src/common/logging/common.cpp',
|
|
||||||
'src/common/logging/vst2.cpp',
|
|
||||||
'src/common/plugins.cpp',
|
|
||||||
'src/common/utils.cpp',
|
|
||||||
'src/wine-host/bridges/common.cpp',
|
|
||||||
'src/wine-host/bridges/vst2.cpp',
|
|
||||||
'src/wine-host/editor.cpp',
|
|
||||||
'src/wine-host/editor.cpp',
|
|
||||||
'src/wine-host/utils.cpp',
|
|
||||||
version_header,
|
|
||||||
]
|
|
||||||
|
|
||||||
if with_vst3
|
|
||||||
host_sources += [
|
|
||||||
'src/wine-host/bridges/vst3.cpp'
|
|
||||||
]
|
|
||||||
endif
|
|
||||||
|
|
||||||
individual_host_sources = host_sources + ['src/wine-host/individual-host.cpp']
|
|
||||||
group_host_sources = host_sources + [
|
|
||||||
'src/wine-host/bridges/group.cpp',
|
|
||||||
'src/wine-host/group-host.cpp',
|
|
||||||
]
|
|
||||||
|
|
||||||
executable(
|
executable(
|
||||||
individual_host_name_64bit,
|
individual_host_name_64bit,
|
||||||
individual_host_sources,
|
individual_host_sources,
|
||||||
|
|||||||
Reference in New Issue
Block a user