From 9eed75abd9f4c583bfc0e7373c4878100e76333f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Fri, 4 Feb 2022 21:27:13 +0200 Subject: [PATCH 33/33] Meson: Make it possible to enable audio support on Windows See osdn #43776 Signed-off-by: Marko Lindqvist --- meson.build | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index f7d7ec3a66..4dbf87355a 100644 --- a/meson.build +++ b/meson.build @@ -372,8 +372,15 @@ endforeach if get_option('audio') priv_conf_data.set('AUDIO_SDL', 1) - audio_dep = [c_compiler.find_library('libSDL2', dirs: cross_lib_path), - c_compiler.find_library('libSDL2_mixer', dirs: cross_lib_path)] + if host_system == 'windows' + audio_dep = [c_compiler.find_library('libmingw32', dirs: cross_lib_path), + c_compiler.find_library('libSDL2main', dirs: cross_lib_path), + c_compiler.find_library('libSDL2', dirs: cross_lib_path), + c_compiler.find_library('libSDL2_mixer', dirs: cross_lib_path)] + else + audio_dep = [c_compiler.find_library('libSDL2', dirs: cross_lib_path), + c_compiler.find_library('libSDL2_mixer', dirs: cross_lib_path)] + endif else audio_dep = [] endif -- 2.34.1