meson: Don't link to python for the gi overrides module

We only need to link to python directly for the plugin:

https://github.com/mesonbuild/meson/issues/7712#issuecomment-689357908

https://github.com/Homebrew/homebrew-core/pull/165176#issuecomment-2051835257

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6642>
This commit is contained in:
Nirbheek Chauhan 2024-04-12 19:54:55 +05:30 committed by GStreamer Marge Bot
parent 6d13bb31e9
commit 974208538f
2 changed files with 3 additions and 2 deletions

View file

@ -29,7 +29,8 @@ if pythonver.version_compare('<3.0')
error('Python2 is not supported anymore, please port your code to python3 (@0@ specified)'.format(python.language_version()))
endif
python_dep = python.dependency(embed:true, required : true)
python_embed_dep = python.dependency(embed: true, required: true)
python_dep = python.dependency(embed: false, required: true)
python_abi_flags = python.get_variable('ABIFLAGS', '')
pylib_loc = get_option('libpython-dir')

View file

@ -1,7 +1,7 @@
gstpython = library('gstpython',
['gstpythonplugin.c'],
include_directories : [configinc],
dependencies : [gst_dep, pygobject_dep, gstbase_dep, python_dep, gmodule_dep] ,
dependencies : [gst_dep, pygobject_dep, gstbase_dep, python_embed_dep, gmodule_dep],
install : true,
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
)