Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-11-16 17:23:51 +0300
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-11-16 17:30:32 +0300
commitb9f8ce999538aa1a8880a8e41202b9e70f514e71 (patch)
treed17e40f13e35a42c28a343afdb30af1cdbe54c38 /utils
parent717477fd36f00c5f1b8dbb64ec4dadc602d5fc22 (diff)
meson: add support for static build
There is no way to dynamically ask Cargo to build static or dynamic lib so we have to build both and pick the one we care when doing the meson processing. Fix #88
Diffstat (limited to 'utils')
-rw-r--r--utils/fallbackswitch/Cargo.toml2
-rw-r--r--utils/togglerecord/Cargo.toml2
2 files changed, 2 insertions, 2 deletions
diff --git a/utils/fallbackswitch/Cargo.toml b/utils/fallbackswitch/Cargo.toml
index 6f9994155..5084d0b25 100644
--- a/utils/fallbackswitch/Cargo.toml
+++ b/utils/fallbackswitch/Cargo.toml
@@ -27,7 +27,7 @@ gst-check = { package = "gstreamer-check", git = "https://gitlab.freedesktop.org
[lib]
name = "gstfallbackswitch"
-crate-type = ["cdylib", "rlib"]
+crate-type = ["cdylib", "rlib", "staticlib"]
path = "src/lib.rs"
[[example]]
diff --git a/utils/togglerecord/Cargo.toml b/utils/togglerecord/Cargo.toml
index 44c5ab5d2..627286395 100644
--- a/utils/togglerecord/Cargo.toml
+++ b/utils/togglerecord/Cargo.toml
@@ -23,7 +23,7 @@ either = "1.0"
[lib]
name = "gsttogglerecord"
-crate-type = ["cdylib", "rlib"]
+crate-type = ["cdylib", "rlib", "staticlib"]
path = "src/lib.rs"
[[example]]