Minor cleanup of sdp/rtsp/rtsp-server crates

- Add myself to authors so I can upload the crate whenever doing releases
- Add missing features/versions to build.rs
- Simplify glib/gobject/gio-sys dependencies in Cargo.toml
This commit is contained in:
Sebastian Dröge 2018-02-09 11:23:49 +02:00
parent 2f22e8c325
commit fcee935e0d
6 changed files with 30 additions and 28 deletions

View file

@ -8,15 +8,9 @@ pkg-config = "0.3.7"
[dependencies]
bitflags = "1.0"
libc = "0.2"
[dependencies.gio-sys]
git = "https://github.com/gtk-rs/sys"
[dependencies.glib-sys]
git = "https://github.com/gtk-rs/sys"
[dependencies.gobject-sys]
git = "https://github.com/gtk-rs/sys"
glib-sys = { git = "https://github.com/gtk-rs/sys" }
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
gio-sys = { git = "https://github.com/gtk-rs/sys" }
[dependencies.gstreamer-net-sys]
path = "../gstreamer-net-sys"
@ -42,7 +36,7 @@ v1_12 = ["v1_10"]
name = "gstreamer_rtsp_server_sys"
[package]
authors = ["Mathieu Duponchelle <mathieu@centricular.com>"]
authors = ["Mathieu Duponchelle <mathieu@centricular.com>", "Sebastian Dröge <sebastian@centricular.com>"]
build = "build.rs"
description = "FFI bindings to libgstrtspserver-1.0"
homepage = "https://gstreamer.freedesktop.org"

View file

@ -18,10 +18,16 @@ fn find() -> Result<(), Error> {
let shared_libs = ["gstrtspserver-1.0"];
let version = if cfg!(feature = "v1_12") {
"1.12"
} else if cfg!(feature = "v1_10") {
"1.10"
} else if cfg!(feature = "v1_8") {
"1.8"
} else if cfg!(feature = "v1_6") {
"1.6"
} else if cfg!(feature = "v1_4") {
"1.4"
} else if cfg!(feature = "v1_2") {
"1.2"
} else {
"1.0"
};

View file

@ -4,15 +4,9 @@ pkg-config = "0.3.7"
[dependencies]
bitflags = "1.0"
libc = "0.2"
[dependencies.gio-sys]
git = "https://github.com/gtk-rs/sys"
[dependencies.glib-sys]
git = "https://github.com/gtk-rs/sys"
[dependencies.gobject-sys]
git = "https://github.com/gtk-rs/sys"
glib-sys = { git = "https://github.com/gtk-rs/sys" }
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
gio-sys = { git = "https://github.com/gtk-rs/sys" }
[dependencies.gstreamer-sdp-sys]
path = "../gstreamer-sdp-sys"
@ -38,7 +32,7 @@ build = "build.rs"
links = "gstrtsp-1.0"
name = "gstreamer-rtsp-sys"
version = "0.5.0"
authors = ["Mathieu Duponchelle <mathieu@centricular.com>"]
authors = ["Mathieu Duponchelle <mathieu@centricular.com>", "Sebastian Dröge <sebastian@centricular.com>"]
description = "FFI bindings to libgstrtsp-1.0"
homepage = "https://gstreamer.freedesktop.org"
keywords = ["ffi", "gstreamer", "gnome", "multimedia"]

View file

@ -18,12 +18,18 @@ fn find() -> Result<(), Error> {
let shared_libs = ["gstrtsp-1.0"];
let version = if cfg!(feature = "v1_12") {
"1.12"
} else if cfg!(feature = "v1_10") {
"1.10"
} else if cfg!(feature = "v1_8") {
"1.8"
} else if cfg!(feature = "v1_6") {
"1.6"
} else if cfg!(feature = "v1_4") {
"1.4"
} else if cfg!(feature = "v1_2_1") {
"1.2.1"
} else if cfg!(feature = "v1_2") {
"1.2"
} else {
"1.0"
};

View file

@ -4,12 +4,8 @@ pkg-config = "0.3.7"
[dependencies]
bitflags = "1.0"
libc = "0.2"
[dependencies.glib-sys]
git = "https://github.com/gtk-rs/sys"
[dependencies.gobject-sys]
git = "https://github.com/gtk-rs/sys"
glib-sys = { git = "https://github.com/gtk-rs/sys" }
gobject-sys = { git = "https://github.com/gtk-rs/sys" }
[dependencies.gstreamer-sys]
path = "../gstreamer-sys"
@ -32,7 +28,7 @@ build = "build.rs"
links = "gstsdp-1.0"
name = "gstreamer-sdp-sys"
version = "0.5.0"
authors = ["Mathieu Duponchelle <mathieu@centricular.com>"]
authors = ["Mathieu Duponchelle <mathieu@centricular.com>", "Sebastian Dröge <sebastian@centricular.com>"]
description = "FFI bindings to libgstsdp-1.0"
homepage = "https://gstreamer.freedesktop.org"
keywords = ["ffi", "gstreamer", "gnome", "multimedia"]

View file

@ -16,12 +16,18 @@ fn main() {
fn find() -> Result<(), Error> {
let package_name = "gstreamer-sdp-1.0";
let shared_libs = ["gstsdp-1.0"];
let version = if cfg!(feature = "v1_8_1") {
let version = if cfg!(feature = "v1_12") {
"1.12"
} else if cfg!(feature = "v1_10") {
"1.10"
} else if cfg!(feature = "v1_8_1") {
"1.8.1"
} else if cfg!(feature = "v1_8") {
"1.8"
} else if cfg!(feature = "v1_4") {
"1.4"
} else if cfg!(feature = "v1_2") {
"1.2"
} else {
"1.0"
};