[librsvg/master.msvc: 2/5] Cargo.toml: Make some more packages optional on Windows
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/master.msvc: 2/5] Cargo.toml: Make some more packages optional on Windows
- Date: Thu, 8 Jul 2021 16:30:04 +0000 (UTC)
commit edb728d52b87629d3ff2eddaad11e83265be1212
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Thu Jul 8 16:41:47 2021 +0800
Cargo.toml: Make some more packages optional on Windows
The underlying issue is that these packages' build systems may not have
pkg-config files generated for us for their Visual Studio build system,
so we feed things into the linker instead.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/565>
Cargo.toml | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/Cargo.toml b/Cargo.toml
index e74794ef..9afb5480 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,27 +6,33 @@ build = "build.rs"
edition = "2018"
[package.metadata.system-deps]
-cairo = "1.16"
-cairo-gobject = "1.16"
cairo-pdf = { version = "1.16", optional = true }
-cairo-png = "1.16"
cairo-ps = { version = "1.16", optional = true }
cairo-svg = { version = "1.16", optional = true }
-freetype2 = "20.0.14"
gdk-pixbuf = { name = "gdk-pixbuf-2.0", version = "2.20" }
gio = { name = "gio-2.0", version = "2.24" }
glib = { name = "glib-2.0", version = "2.50" }
-harfbuzz = "2.0"
-libxml2 = { name = "libxml-2.0", version = "2.9" }
pangocairo = "1.44"
[package.metadata.system-deps.'cfg(windows)']
fontconfig = { version = "1.7", optional = true }
pangoft2 = { version = "1.44", optional = true }
+harfbuzz = { version = "2.0", optional = true }
+freetype2 = { version = "20.0.14", optional = true }
+cairo = { version = "1.16", optional = true }
+cairo-gobject = { version = "1.16", optional = true }
+cairo-png = { version = "1.16", optional = true }
+libxml2 = { name = "libxml-2.0", version = "2.9", optional = true }
[package.metadata.system-deps.'cfg(not(windows))']
fontconfig = { version = "1.7" }
pangoft2 = { version = "1.44" }
+cairo = "1.16"
+cairo-gobject = "1.16"
+cairo-png = "1.16"
+harfbuzz = "2.0"
+freetype2 = "20.0.14"
+libxml2 = { name = "libxml-2.0", version = "2.9" }
[lib]
name = "librsvg"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]