Mesa (main): meson: move `egl_native_platform` definition inside the `with_egl` block
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Nov 8 19:01:09 UTC 2021
Module: Mesa
Branch: main
Commit: 2351c0aded860f4769dde73a50a287a670f2ad3c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2351c0aded860f4769dde73a50a287a670f2ad3c
Author: Eric Engestrom <eric at engestrom.ch>
Date: Sat Oct 9 11:29:45 2021 +0100
meson: move `egl_native_platform` definition inside the `with_egl` block
Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13278>
---
meson.build | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/meson.build b/meson.build
index 32d29000b4f..59cee728070 100644
--- a/meson.build
+++ b/meson.build
@@ -484,14 +484,14 @@ if with_egl
if with_gbm and not with_platform_android
_platforms += 'drm'
endif
-endif
-egl_native_platform = get_option('egl-native-platform')
-if egl_native_platform.contains('auto')
- if _platforms.length() != 0
- egl_native_platform = _platforms[0]
- else
- egl_native_platform = 'surfaceless'
+ egl_native_platform = get_option('egl-native-platform')
+ if egl_native_platform.contains('auto')
+ if _platforms.length() != 0
+ egl_native_platform = _platforms[0]
+ else
+ egl_native_platform = 'surfaceless'
+ endif
endif
endif
More information about the mesa-commit
mailing list