mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 23:11:01 +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
3 changed files with 15 additions and 6 deletions
|
@ -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
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!(
|
||||
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")
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue