diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-11-26 18:07:41 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2021-01-04 14:26:45 +0300 |
commit | 8bc2e5ebb872612140a986897a78b37d3e52f78e (patch) | |
tree | d42da5f971f5c30f1e9deebd17c87c14b4ad96e6 /net | |
parent | fc1bae347e51f08d53631ab3319cc490b6a9cca4 (diff) |
use cargo-c to produce cdy and static libs
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.
Diffstat (limited to 'net')
-rw-r--r-- | net/reqwest/Cargo.toml | 19 | ||||
-rw-r--r-- | net/rusoto/Cargo.toml | 19 |
2 files changed, 36 insertions, 2 deletions
diff --git a/net/reqwest/Cargo.toml b/net/reqwest/Cargo.toml index 7dc52731e..02df32b61 100644 --- a/net/reqwest/Cargo.toml +++ b/net/reqwest/Cargo.toml @@ -24,8 +24,25 @@ hyper = "0.13" [lib] name = "gstreqwest" -crate-type = ["cdylib", "rlib", "staticlib"] +crate-type = ["cdylib", "rlib"] path = "src/lib.rs" [build-dependencies] gst-plugin-version-helper = { path="../../version-helper" } + +[features] +# GStreamer 1.14 is required for static linking +static = ["gst/v1_14"] + +[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" diff --git a/net/rusoto/Cargo.toml b/net/rusoto/Cargo.toml index a961e5a84..81695d869 100644 --- a/net/rusoto/Cargo.toml +++ b/net/rusoto/Cargo.toml @@ -34,8 +34,25 @@ atomic_refcell = "0.1" [lib] name = "gstrusoto" -crate-type = ["cdylib", "rlib", "staticlib"] +crate-type = ["cdylib", "rlib"] path = "src/lib.rs" [build-dependencies] gst-plugin-version-helper = { path="../../version-helper" } + +[features] +# GStreamer 1.14 is required for static linking +static = ["gst/v1_14"] + +[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, libssl" |