gst-examples: Stop using deprecated python3 module

Also specify a minimum meson version, and remove the license entry.
It's incorrect, since there are various licenses for the examples.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8753>
This commit is contained in:
Nirbheek Chauhan 2025-04-01 18:34:57 +05:30 committed by GStreamer Marge Bot
parent 48cbdf73a5
commit 92e91c25b5
2 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,6 @@
project('gst-examples', 'c', version : '1.27.0.1', license : 'LGPL')
project('gst-examples', 'c',
version : '1.27.0.1',
meson_version : '>=1.0')
static_build = get_option('default_library') == 'static'
cc = meson.get_compiler('c')

View File

@ -14,12 +14,12 @@ endif
libgstwebrtcnice_dep = dependency('gstreamer-webrtc-nice-1.0', version : gst_req)
py3_mod = import('python3')
py3 = py3_mod.find_python()
pymod = import('python')
py3 = pymod.find_installation('python3')
py3_version = py3_mod.language_version()
py3_version = py3.language_version()
if py3_version.version_compare('< 3.6')
error('Could not find a sufficient python version required: 3.6, found {}'.format(py3_version))
error('Could not find a sufficient python version required: 3.6, found {}'.format(py3_version))
endif
subdir('multiparty-sendrecv')