Add proper dependencies for the entire VST3 SDK

This commit is contained in:
Robbert van der Helm
2020-11-29 14:56:13 +01:00
parent bb85d99657
commit c8d76d9c92
2 changed files with 20 additions and 3 deletions
+19 -2
View File
@@ -77,6 +77,14 @@ if with_vst3
vst3 = subproject('vst3', version : '3.7.1') vst3 = subproject('vst3', version : '3.7.1')
vst3_compiler_options = vst3.get_variable('compiler_options') vst3_compiler_options = vst3.get_variable('compiler_options')
vst3_include_dir = vst3.get_variable('include_dir') vst3_include_dir = vst3.get_variable('include_dir')
vst3_base_native = static_library(
'base_native',
vst3.get_variable('base_sources'),
cpp_args : vst3_compiler_options + ['-Wno-cpp'],
include_directories : vst3_include_dir,
override_options : ['warning_level=0'],
native : true,
)
vst3_pluginterfaces_native = static_library( vst3_pluginterfaces_native = static_library(
'pluginterfaces_native', 'pluginterfaces_native',
vst3.get_variable('pluginterfaces_sources'), vst3.get_variable('pluginterfaces_sources'),
@@ -85,8 +93,17 @@ if with_vst3
override_options : ['warning_level=0'], override_options : ['warning_level=0'],
native : true, native : true,
) )
vst3_pluginterfaces_native_dep = declare_dependency( vst3_sdk_native = static_library(
link_with : vst3_pluginterfaces_native, 'sdk_native',
vst3.get_variable('sdk_common_sources') + vst3.get_variable('sdk_sources'),
link_with : [vst3_base_native, vst3_pluginterfaces_native],
cpp_args : vst3_compiler_options + ['-Wno-multichar'],
include_directories : vst3_include_dir,
override_options : ['warning_level=0'],
native : true,
)
vst3_sdk_native_dep = declare_dependency(
link_with : vst3_sdk_native,
include_directories : vst3_include_dir, include_directories : vst3_include_dir,
) )
else else
+1 -1
View File
@@ -2,6 +2,6 @@
url = https://github.com/robbert-vdh/vst3sdk.git url = https://github.com/robbert-vdh/vst3sdk.git
# This is VST3 SDK v3.7.1_build_50 with the documentation and VSTGUI submodules # This is VST3 SDK v3.7.1_build_50 with the documentation and VSTGUI submodules
# removed # removed
revision = 410f4e01d311f1608a193594a65b98db86758b95 revision = d6d6ae0d33ada0c07a508b0e079d962464fa93cd
clone-recursive = true clone-recursive = true
depth = 1 depth = 1