mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-06-27 18:40:35 +00:00
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:
commit
13ce2da387
|
@ -4,6 +4,7 @@ version = "1.0.0"
|
||||||
authors = ["Ruben Gonzalez <rubenrua@teltek.es>", "Daniel Vilar <daniel.peiteado@teltek.es>"]
|
authors = ["Ruben Gonzalez <rubenrua@teltek.es>", "Daniel Vilar <daniel.peiteado@teltek.es>"]
|
||||||
repository = "https://github.com/teltek/gst-plugin-ndi"
|
repository = "https://github.com/teltek/gst-plugin-ndi"
|
||||||
license = "LGPL"
|
license = "LGPL"
|
||||||
|
description = "NewTek NDI Plugin"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glib = { version = "0.8.0", features = ["subclassing"] }
|
glib = { version = "0.8.0", features = ["subclassing"] }
|
||||||
|
@ -14,6 +15,9 @@ gstreamer-video = "0.14.0"
|
||||||
lazy_static = "1.1.0"
|
lazy_static = "1.1.0"
|
||||||
byte-slice-cast = "0.2.0"
|
byte-slice-cast = "0.2.0"
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
gst-plugin-version-helper = "0.1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name = "gstndi"
|
name = "gstndi"
|
||||||
crate-type = ["cdylib"]
|
crate-type = ["cdylib"]
|
||||||
|
|
5
build.rs
Normal file
5
build.rs
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
extern crate gst_plugin_version_helper;
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
gst_plugin_version_helper::get_info()
|
||||||
|
}
|
12
src/lib.rs
12
src/lib.rs
|
@ -254,12 +254,12 @@ fn stop_ndi(cat: gst::DebugCategory, element: &gst_base::BaseSrc, id: i8) -> boo
|
||||||
|
|
||||||
gst_plugin_define!(
|
gst_plugin_define!(
|
||||||
ndi,
|
ndi,
|
||||||
"NewTek NDI Plugin",
|
env!("CARGO_PKG_DESCRIPTION"),
|
||||||
plugin_init,
|
plugin_init,
|
||||||
"1.0.0",
|
concat!(env!("CARGO_PKG_VERSION"), "-", env!("COMMIT_ID")),
|
||||||
"LGPL",
|
"LGPL",
|
||||||
"ndi",
|
env!("CARGO_PKG_NAME"),
|
||||||
"ndi",
|
env!("CARGO_PKG_NAME"),
|
||||||
"https://github.com/teltek/gst-plugin-ndi",
|
env!("CARGO_PKG_REPOSITORY"),
|
||||||
"2018-04-09"
|
env!("BUILD_REL_DATE")
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue