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/6622>
This commit is contained in:
Nirbheek Chauhan 2024-04-12 19:54:55 +05:30 committed by GStreamer Marge Bot
parent e597dcdf0d
commit 073d8fc52a
2 changed files with 3 additions and 2 deletions

View file

@ -36,7 +36,8 @@ if pythonver.version_compare('<3.7')
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', '')
message(f'python_abi_flags = @python_abi_flags@')

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, libdl],
dependencies : [gst_dep, pygobject_dep, gstbase_dep, python_embed_dep, gmodule_dep, libdl],
install : true,
install_dir : '@0@/gstreamer-1.0'.format(get_option('libdir')),
)