From 5575bf26d13d9ce11867bc091c5f9c7ed23dd8fe Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Fri, 7 Jan 2022 00:51:29 +0000 Subject: [PATCH] force static subprojects for rtaudio/rtmidi --- meson.build | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 9978ce7db..a9acb3195 100644 --- a/meson.build +++ b/meson.build @@ -1137,7 +1137,8 @@ rtmidi_dep = dependency ( 'rtmidi', version: '>= 5.0.0', required: get_option ('rtmidi'), fallback: ['rtmidi', 'zrythm_rtmidi_dep'], - static: all_static) + default_options: [ + 'default_library=static']) if rtmidi_dep.found () cdata.set('HAVE_RTMIDI', 1) endif @@ -1148,6 +1149,9 @@ rtaudio_dep = dependency ( fallback: ['rtaudio', 'rtaudio_dep'], default_options: [ 'jack=' + (os_windows ? 'disabled' : 'auto'), + # TODO use shared in the future so .dll can be + # replaced on windows + 'default_library=static', # ASIO disabled for legal reasons 'asio=disabled',]) if rtaudio_dep.found ()