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=796274
diff --git a/gst-libs/gst/app/app_mkenum.py b/gst-libs/gst/app/app_mkenum.py
index 4d3123f..324b250 100755
--- a/gst-libs/gst/app/app_mkenum.py
+++ b/gst-libs/gst/app/app_mkenum.py
@@ -37,7 +37,7 @@
 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:]
diff --git a/gst-libs/gst/audio/audio_mkenum.py b/gst-libs/gst/audio/audio_mkenum.py
index af1b0a0..b3ae8f2 100755
--- a/gst-libs/gst/audio/audio_mkenum.py
+++ b/gst-libs/gst/audio/audio_mkenum.py
@@ -37,7 +37,7 @@
 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:]
diff --git a/gst-libs/gst/pbutils/pbutils_mkenum.py b/gst-libs/gst/pbutils/pbutils_mkenum.py
index 143a76c..752b7f7 100755
--- a/gst-libs/gst/pbutils/pbutils_mkenum.py
+++ b/gst-libs/gst/pbutils/pbutils_mkenum.py
@@ -37,7 +37,7 @@
 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:]
diff --git a/gst-libs/gst/rtp/rtp_mkenum.py b/gst-libs/gst/rtp/rtp_mkenum.py
index 9840612..d15299f 100755
--- a/gst-libs/gst/rtp/rtp_mkenum.py
+++ b/gst-libs/gst/rtp/rtp_mkenum.py
@@ -37,7 +37,7 @@
 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:]
diff --git a/gst-libs/gst/rtsp/rtsp_mkenum.py b/gst-libs/gst/rtsp/rtsp_mkenum.py
index 71ffecc..35f003b 100755
--- a/gst-libs/gst/rtsp/rtsp_mkenum.py
+++ b/gst-libs/gst/rtsp/rtsp_mkenum.py
@@ -39,7 +39,7 @@
 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:]
diff --git a/gst-libs/gst/tag/tag_mkenum.py b/gst-libs/gst/tag/tag_mkenum.py
index fb57cd1..16fad3a 100755
--- a/gst-libs/gst/tag/tag_mkenum.py
+++ b/gst-libs/gst/tag/tag_mkenum.py
@@ -37,7 +37,7 @@
 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:]
diff --git a/gst-libs/gst/video/video_mkenum.py b/gst-libs/gst/video/video_mkenum.py
index abf376b..7e5cc8d 100755
--- a/gst-libs/gst/video/video_mkenum.py
+++ b/gst-libs/gst/video/video_mkenum.py
@@ -37,7 +37,7 @@
 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:]