We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d928b2 commit 36100ccCopy full SHA for 36100cc
tools/dependencies/meson.build
@@ -297,6 +297,20 @@ if build_application
297
}
298
endif
299
300
+ ## the switch sdl2 packages are not findable with '--fatal-meson-warnings' and cmake, so prefind it and than override the dependency
301
+ if (meson.is_cross_build() and host_machine.system() == 'switch')
302
+ sdl2_ttf_switch_dep = dependency(
303
+ 'sdl2_ttf',
304
+ 'SDL2_ttf',
305
+ method: 'pkg-config',
306
+ allow_fallback: not only_allow_native_libs,
307
+ required: true,
308
+ )
309
+
310
+ meson.override_dependency('sdl2_ttf', sdl2_ttf_switch_dep)
311
312
+ endif
313
314
sdl2_ttf_dep = dependency(
315
'sdl2_ttf',
316
'SDL2_ttf',
0 commit comments