meson: use new python module
[platform/upstream/gstreamer.git] / gi / overrides / meson.build
1 pysources = ['Gst.py', 'GstPbutils.py']
2 install_data(pysources,
3     install_dir: pygi_override_dir)
4
5 gstpython = python.extension_module('_gi_gst',
6     sources: ['gstmodule.c'],
7     install: true,
8     install_dir : pygi_override_dir,
9     include_directories : [configinc],
10     dependencies : [gst_dep, python_dep, pygobject_dep])
11
12 gi_overrides_build_dir = meson.current_build_dir()
13
14 # Workaround to get uninstalled working.
15 foreach source: pysources
16     run_command(python, '-c', 'import os; os.symlink("@0@/@1@", "@2@/@3@")'.format(
17         meson.current_source_dir(), source,
18         gi_overrides_build_dir, source))
19 endforeach