Use gst-plugin-version-helper crate to populate the plugin metadata

This commit is contained in:
Sebastian Dröge 2019-07-09 17:51:57 +03:00
parent def42b5514
commit 3acd848b5f
3 changed files with 15 additions and 6 deletions

View file

@ -4,6 +4,7 @@ version = "1.0.0"
authors = ["Ruben Gonzalez <rubenrua@teltek.es>", "Daniel Vilar <daniel.peiteado@teltek.es>"]
repository = "https://github.com/teltek/gst-plugin-ndi"
license = "LGPL"
description = "NewTek NDI Plugin"
[dependencies]
glib = { version = "0.8.0", features = ["subclassing"] }
@ -14,6 +15,9 @@ gstreamer-video = "0.14.0"
lazy_static = "1.1.0"
byte-slice-cast = "0.2.0"
[build-dependencies]
gst-plugin-version-helper = "0.1"
[lib]
name = "gstndi"
crate-type = ["cdylib"]

5
build.rs Normal file
View file

@ -0,0 +1,5 @@
extern crate gst_plugin_version_helper;
fn main() {
gst_plugin_version_helper::get_info()
}

View file

@ -255,12 +255,12 @@ fn stop_ndi(cat: gst::DebugCategory, element: &gst_base::BaseSrc, id: i8) -> boo
gst_plugin_define!(
ndi,
"NewTek NDI Plugin",
env!("CARGO_PKG_DESCRIPTION"),
plugin_init,
"1.0.0",
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
"LGPL",
"ndi",
"ndi",
"https://github.com/teltek/gst-plugin-ndi",
"2018-04-09"
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_NAME"),
env!("CARGO_PKG_REPOSITORY"),
env!("BUILD_REL_DATE")
);