2022-01-25 23:02:49 +00:00
|
|
|
pysources = ['Gst.py', 'GstPbutils.py', 'GstVideo.py', 'GstAudio.py']
|
2021-09-20 20:20:44 +00:00
|
|
|
python.install_sources(pysources,
|
|
|
|
pure : false,
|
|
|
|
subdir: 'gi/overrides',
|
|
|
|
)
|
2016-09-05 14:30:43 +00:00
|
|
|
|
2023-07-18 14:34:52 +00:00
|
|
|
host_system = host_machine.system()
|
|
|
|
if host_system == 'windows'
|
|
|
|
gst_dep_for_gi = gst_dep
|
|
|
|
else
|
|
|
|
gst_dep_for_gi = gst_dep.partial_dependency(compile_args: true, includes: true, sources: true)
|
|
|
|
endif
|
|
|
|
|
2018-05-14 08:05:15 +00:00
|
|
|
gstpython = python.extension_module('_gi_gst',
|
2016-09-05 14:30:43 +00:00
|
|
|
sources: ['gstmodule.c'],
|
|
|
|
install: true,
|
|
|
|
install_dir : pygi_override_dir,
|
2022-09-12 13:46:43 +00:00
|
|
|
install_tag: 'python-runtime',
|
2018-05-14 08:05:15 +00:00
|
|
|
include_directories : [configinc],
|
2023-07-18 14:34:52 +00:00
|
|
|
dependencies : [gst_dep_for_gi, python_dep, pygobject_dep],
|
|
|
|
)
|
2022-02-21 16:37:26 +00:00
|
|
|
|
|
|
|
env = environment()
|
|
|
|
env.prepend('_GI_OVERRIDES_PATH', [
|
|
|
|
meson.current_source_dir(),
|
|
|
|
meson.current_build_dir()
|
|
|
|
])
|
|
|
|
meson.add_devenv(env)
|