Commit graph

16 commits

Author SHA1 Message Date
Thibault Saunier
31a53bba8a Generate plugins documentation using hotdoc
Which will automatically be integrated in gstreamer documentation
2022-08-29 18:33:22 -04:00
Klaas Jan Russcher
f327053811 cargo_wrapper.py: added python3 version check for right usage of shutil.move(..) 2022-05-27 21:34:35 +02:00
Thibault Saunier
7ff998f925 meson: Cleanup our meson integration
Writing a proper "depfile" to follow depending files, based on depfiles
generated by rustc.

This is based on work done while working on gobject-examples-rs
2022-04-20 10:21:59 -04:00
Guillaume Desmottes
32ef12e738 meson: fix out of tree build
Needed for gst-build integration. Thanks to Michael Farrell for the fix
suggestion.

Fix #171
2021-11-02 10:18:13 +01:00
Guillaume Desmottes
acce0ab4fc meson: build all workspaces all together
It's now possible thanks to cargo-c 0.9.3. Should reduce build time of
all plugins.

Fix #165
2021-10-19 07:49:22 +00:00
Guillaume Desmottes
70d3eecbc5 meson: fix copy of build artifacts
Latest version of cargo-c and cargo are now producing files to
'build/target/x86_64-unknown-linux-gnu/debug/' instead of 'build/target/debug/'.
Fix this by making the glob pattern recursive.
2021-04-16 14:25:02 +02:00
Guillaume Desmottes
32d511684e meson: install plugins pc files 2021-01-04 12:26:45 +01:00
Guillaume Desmottes
dfdbd370f9 meson: use cargo-c
We now have to run 'cbuild' and 'ctest' on each plugin individually.
Replace plugins_rep key by the source path so we can easily discard the
excluded plugins.
2021-01-04 12:26:45 +01:00
Guillaume Desmottes
b9f8ce9995 meson: add support for static build
There is no way to dynamically ask Cargo to build static or dynamic lib
so we have to build both and pick the one we care when doing the meson
processing.

Fix #88
2020-11-16 15:30:32 +01:00
Guillaume Desmottes
d16e7d1213 meson: fix PKG_CONFIG_PATH
pkg-config files are now ll in 'build/meson-uninstalled'.

Fix https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/415>
2020-10-26 08:50:45 +01:00
Guillaume Desmottes
1b84dd1f6b meson: add sodium option
Allow us to pick between the built-in libsodium, use the one from the
system or disable the plugin.
2020-01-30 10:57:00 +00:00
Guillaume Desmottes
d98e76529d meson: build tests, bins and examples
Best to build as much as possible so we can detect build breakage
earlier and we won't have to build tests when running them.
2020-01-16 14:03:39 +05:30
Guillaume Desmottes
28e3e3199c meson: add test wrapper
Allow us to run the tests using 'meson test'.

Needed for https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/46
2020-01-07 14:19:13 +05:30
Guillaume Desmottes
accd10dfea meson: add 'command' argument to cargo wrapper
Will be used to add test support.
2020-01-07 14:06:14 +05:30
Guillaume Desmottes
46dda60db9 meson: don't pass empty --exclude when building all plugins
''.split(',') returns [''] and not [].
2020-01-03 09:41:41 +05:30
Guillaume Desmottes
e158f4ef88 meson: rename cargo.py to cargo_wrapper.py
Fix 'cargo build' on Windows as its $PATH includes $PWD, it seems to
pick our script rather than the actual cargo.
2020-01-03 09:35:10 +05:30
Renamed from cargo.py (Browse further)