Merge pull request #27 from sdroege/plugin-version-helper

Use gst-plugin-version-helper crate to populate the plugin metadata
This commit is contained in:
Alfonso Rodríguez Pereira 2019-07-11 11:09:36 +02:00 committed by GitHub
commit 13ce2da387
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -254,12 +254,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")
);