diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-11-16 17:23:51 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-11-16 17:30:32 +0300 |
commit | b9f8ce999538aa1a8880a8e41202b9e70f514e71 (patch) | |
tree | d17e40f13e35a42c28a343afdb30af1cdbe54c38 /net | |
parent | 717477fd36f00c5f1b8dbb64ec4dadc602d5fc22 (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 'net')
-rw-r--r-- | net/reqwest/Cargo.toml | 2 | ||||
-rw-r--r-- | net/rusoto/Cargo.toml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/reqwest/Cargo.toml b/net/reqwest/Cargo.toml index 367f6fc72..cc9a6b6ef 100644 --- a/net/reqwest/Cargo.toml +++ b/net/reqwest/Cargo.toml @@ -24,7 +24,7 @@ hyper = "0.13" [lib] name = "gstreqwest" -crate-type = ["cdylib", "rlib"] +crate-type = ["cdylib", "rlib", "staticlib"] path = "src/lib.rs" [build-dependencies] diff --git a/net/rusoto/Cargo.toml b/net/rusoto/Cargo.toml index 8e898bbc5..aecee5e9c 100644 --- a/net/rusoto/Cargo.toml +++ b/net/rusoto/Cargo.toml @@ -34,7 +34,7 @@ serde_json = "1" [lib] name = "gstrusoto" -crate-type = ["cdylib", "rlib"] +crate-type = ["cdylib", "rlib", "staticlib"] path = "src/lib.rs" [build-dependencies] |