From 7cbbdf3a90ef8d92c993d0b1a1c3a73d03f6bca4 Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 20 May 2018 13:53:31 +0200 Subject: [PATCH] meson: Fix detection of glib-mkenums under MSYS2 Under MSYS2 glib-mkenums is an executable and has a .exe extension and the path does not end with "glib-mkenums". Make the script compare the path without the file extension instead. https://bugzilla.gnome.org/show_bug.cgi?id=796273 --- libs/gst/controller/controller_mkenum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/controller/controller_mkenum.py b/libs/gst/controller/controller_mkenum.py index 01d8478a37..cb26ea9189 100755 --- a/libs/gst/controller/controller_mkenum.py +++ b/libs/gst/controller/controller_mkenum.py @@ -37,7 +37,7 @@ argn = 1 for arg in sys.argv[1:]: cmd.append(arg) argn += 1 - if arg.endswith('glib-mkenums'): + if os.path.splitext(arg)[0].endswith('glib-mkenums'): break ofilename = sys.argv[argn] headers = sys.argv[argn + 1:]