From 20972ae65f8c023600e5f1533a572b7e2658e301 Mon Sep 17 00:00:00 2001 From: Vivia Nikolaidou Date: Thu, 30 Apr 2020 19:07:44 +0300 Subject: [PATCH] Add DEVELOPMENT.md To explain how the development process works (how to update the bindings) --- DEVELOPMENT.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 DEVELOPMENT.md diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md new file mode 100644 index 000000000..982d62e5d --- /dev/null +++ b/DEVELOPMENT.md @@ -0,0 +1,13 @@ +# How to update the bindings + + * Take the updated .gir files (e.g. from your gst-build checkout) and put + them in the gir-files directory + * In the gir-files directory, run ./fix.sh + * In the GstVideo-1.0.gir file, the `GST_VIDEO_BUFFER_FLAG_ONEFIELD` and + `GST_VIDEO_FRAME_FLAG_ONEFIELD` flags are twice. This is a gir bug. Delete + the second one. + * If there is a new GStreamer version: Manually update `gst*/Cargo.toml` and + `gst*/build.rs` files. generator.py will mess these up. + * Run generator.py + * `git checkout gst*/Cargo.toml gst*/build.rs` + * Investigate the diff and fix any mess-ups