mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 23:11:01 +00:00
8bc2e5ebb8
cargo-c will produce a pkg-config file making it easier to statically link plugins. Also add 'static' features for plugins depending on < 1.14 as this is the minimal required version to use static linking because of ABI changes in core.
57 lines
2 KiB
TOML
57 lines
2 KiB
TOML
[package]
|
|
name = "gst-plugin-fallbackswitch"
|
|
version = "0.6.0"
|
|
authors = ["Sebastian Dröge <sebastian@centricular.com>"]
|
|
repository = "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
|
|
license = "LGPL-2.1-or-later"
|
|
edition = "2018"
|
|
description = "Fallback Switcher Plugin"
|
|
|
|
[dependencies]
|
|
libc = { version = "0.2", optional = true }
|
|
glib = { git = "https://github.com/gtk-rs/gtk-rs" }
|
|
gst = { package = "gstreamer", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_14"] }
|
|
gst-base = { package = "gstreamer-base", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_16"] }
|
|
gst-audio = { package = "gstreamer-audio", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_14"] }
|
|
gst-video = { package = "gstreamer-video", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_14"] }
|
|
gtk = { git = "https://github.com/gtk-rs/gtk-rs", optional = true }
|
|
gio = { git = "https://github.com/gtk-rs/gtk-rs", optional = true }
|
|
once_cell = "1.0"
|
|
|
|
[dev-dependencies]
|
|
gst-app = { package = "gstreamer-app", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_14"]}
|
|
gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org/gstreamer/gstreamer-rs", features = ["v1_14"]}
|
|
|
|
[lib]
|
|
name = "gstfallbackswitch"
|
|
crate-type = ["cdylib", "rlib"]
|
|
path = "src/lib.rs"
|
|
|
|
[[example]]
|
|
name = "gtk-fallbackswitch"
|
|
path = "examples/gtk_fallbackswitch.rs"
|
|
required-features = ["gtk", "gio"]
|
|
|
|
[build-dependencies]
|
|
gst-plugin-version-helper = { path="../../version-helper" }
|
|
cc = "1.0"
|
|
pkg-config = "0.3"
|
|
|
|
[features]
|
|
default = ["libc"]
|
|
v1_18 = ["gst-base/v1_18"]
|
|
# We already use 1.14 which is new enough for static build
|
|
static = []
|
|
|
|
[package.metadata.capi]
|
|
min_version = "0.7.0"
|
|
|
|
[package.metadata.capi.header]
|
|
enabled = false
|
|
|
|
[package.metadata.capi.library]
|
|
install_subdir = "gstreamer-1.0"
|
|
versioning = false
|
|
|
|
[package.metadata.capi.pkg_config]
|
|
requires_private = "gstreamer-1.0, gstreamer-base-1.0, gobject-2.0, glib-2.0, gmodule-2.0"
|