meson.build: tweak sdl-image error message
PATCH 1/1 meson.build: tweak sdl-image error message
Before the change missing SDL was reported as:
../meson.build:253:4: ERROR: Expected 1 arguments, got 2.
After the error as:
../meson.build:258:4: ERROR: Problem encountered: sdl-image required, but SDL was not found
--- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meson.build +2 -2
@@ -255,8 +255,8 @@ if sdl.found() method: 'pkg-config', static: enable_static) else if get_option('sdl_image').enabled() - error('sdl-image required, but SDL was @0@', - get_option('sdl').disabled() ? 'disabled' : 'not found') + error('sdl-image required, but SDL was @0@'.format( + get_option('sdl').disabled() ? 'disabled' : 'not found')) endif sdl_image = not_found endif
Signature · 1 line
2.28.0
Quoted 6 lines · Sergei Trofimovich
Before the change missing SDL was reported as:
../meson.build:253:4: ERROR: Expected 1 arguments, got 2.After the error as:
Quoted 7 lines
../meson.build:258:4: ERROR: Problem encountered: sdl-image required, but SDL was not found
CC Paolo Bonzini <[email protected]>CC "Marc-André Lureau" <[email protected]>CC "Philippe Mathieu-Daudé" <[email protected]>CC Rafael Kitover <[email protected]>Signed-off-by Sergei Trofimovich <[email protected]>
Quoted 20 lines
--- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meson.build +2
-2@@ -255,8 +255,8 @@ if sdl.found() method: 'pkg-config', static: enable_static) else if get_option('sdl_image').enabled() - error('sdl-image required, but SDL was @0@', - get_option('sdl').disabled() ? 'disabled' : 'not found') + error('sdl-image required, but SDL was @0@'.format( + get_option('sdl').disabled() ? 'disabled' : 'not found')) endif sdl_image = not_found endif
Il mar 8 set 2020, 09:50 Sergei Trofimovich <[email protected]> ha scritto:
Quoted 37 lines
Before the change missing SDL was reported as:
../meson.build:253:4: ERROR: Expected 1 arguments, got 2.After the error as:
../meson.build:258:4: ERROR: Problem encountered: sdl-image required,
but SDL was not foundCC Paolo Bonzini <[email protected]>CC "Marc-André Lureau" <[email protected]>CC "Philippe Mathieu-Daudé" <[email protected]>CC Rafael Kitover <[email protected]>Signed-off-by Sergei Trofimovich <[email protected]>--- meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meson.build +2
-3@@ -255,8 +255,8 @@ if sdl.found() method: 'pkg-config', static: enable_static) else if get_option('sdl_image').enabled() - error('sdl-image required, but SDL was @0@', - get_option('sdl').disabled() ? 'disabled' : 'not found') + error('sdl-image required, but SDL was @0@'.format( + get_option('sdl').disabled() ? 'disabled' : 'not found')) endif sdl_image = not_found endif --2.28.0
Laurent Vivier
AppliedLe 08/09/2020 à 10:24, Paolo Bonzini a écrit :
Quoted 35 lines
Cc [email protected] <mailto:[email protected]>Il mar 8 set 2020, 09:50 Sergei Trofimovich <[email protected] <mailto:[email protected]>> ha scritto:
Before the change missing SDL was reported as:
../meson.build:253:4: ERROR: Expected 1 arguments, got 2.
After the error as:
../meson.build:258:4: ERROR: Problem encountered: sdl-image required, but SDL was not found
CC: Paolo Bonzini <[email protected] <mailto:[email protected]>>
CC: "Marc-André Lureau" <[email protected] <mailto:[email protected]>>
CC: "Philippe Mathieu-Daudé" <[email protected] <mailto:[email protected]>>CC Rafael Kitover <[email protected] <mailto:[email protected]>>Signed-off-by Sergei Trofimovich <[email protected]<mailto:[email protected]>>
---
meson.build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)diff --git a/meson.build b/meson.build
index04e070bb3b..7fd2a903c5100644
--- a/meson.build
+++ b/meson.build
@@ -255,8 +255,8 @@ ifsdl.found()
method: 'pkg-config', static:enable_static) else
if get_option('sdl_image').enabled()
- error('sdl-image required, but SDL was @0@',
Quoted 9 lines
- get_option('sdl').disabled() ? 'disabled' : 'not found') + error('sdl-image required, but SDL was @0@'.format( + get_option('sdl').disabled() ? 'disabled' : 'not found')) endif
sdl_image =not_found
endif
--
2.28.0
Applied to my trivial-patches branch.
Thanks,
Laurent