aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/dependencies/ui.py
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2023-04-11 10:21:55 +0200
committerEli Schwartz <eschwartz93@gmail.com>2023-04-24 11:41:55 -0400
commit09ec4f6e225fb1634a800a58c28a87fe3733b343 (patch)
tree622cbdfb543fbc3bfced2efd71914d296460a4df /mesonbuild/dependencies/ui.py
parent18cfa545f03ddb6cb8378fdadec4f284aa7ea221 (diff)
downloadmeson-09ec4f6e225fb1634a800a58c28a87fe3733b343.zip
meson-09ec4f6e225fb1634a800a58c28a87fe3733b343.tar.gz
meson-09ec4f6e225fb1634a800a58c28a87fe3733b343.tar.bz2
dependencies: allow to fallback on CMake to find the SDL2 library
On Windows, the SDL2 library is generally provided with only CMake config files. This commit allows meson to fallback on CMake as a last resort to find the SDL2 library.
Diffstat (limited to 'mesonbuild/dependencies/ui.py')
-rw-r--r--mesonbuild/dependencies/ui.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/dependencies/ui.py b/mesonbuild/dependencies/ui.py
index 71ea1d1..f3879be 100644
--- a/mesonbuild/dependencies/ui.py
+++ b/mesonbuild/dependencies/ui.py
@@ -252,8 +252,9 @@ gl_factory = DependencyFactory(
sdl2_factory = DependencyFactory(
'sdl2',
- [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL, DependencyMethods.EXTRAFRAMEWORK],
+ [DependencyMethods.PKGCONFIG, DependencyMethods.CONFIG_TOOL, DependencyMethods.EXTRAFRAMEWORK, DependencyMethods.CMAKE],
configtool_class=SDL2DependencyConfigTool,
+ cmake_name='SDL2',
)
vulkan_factory = DependencyFactory(