summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@gnome.org>2021-06-22 18:29:03 -0500
committerChun-wei Fan <fanchunwei@src.gnome.org>2021-07-09 10:35:20 +0800
commit5b30a878fa359ab2fbc2be041baa47054b3e036a (patch)
treeed5281f01e9d77ae5f7930ea0a5970a5b91c4d60
parentd630fdeaf394c58be024d9e550540072eb899a87 (diff)
downloadlibrsvg-5b30a878fa359ab2fbc2be041baa47054b3e036a.tar.gz
Make cargo-c emit Cflags in the .pc file
We don't want it to generate headers, but we want it to generate the Cflags with the correct includedir.
-rw-r--r--Cargo.toml4
1 files changed, 3 insertions, 1 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c918d9d3..52606e5d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -42,8 +42,10 @@ default = []
capi = []
[package.metadata.capi.header]
+# This is so cargo-c will put the correct Cflags in the .pc file, otherwise it leaves them empty
+enabled = true
+generation = false
# For now we have hand-written .h files, so disable generation of headers
-enabled = false
[package.metadata.capi.pkg_config]
name = "librsvg"