[librsvg/cargo-c: 11/14] Make cargo-c emit Cflags in the .pc file
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/cargo-c: 11/14] Make cargo-c emit Cflags in the .pc file
- Date: Sat, 3 Jul 2021 00:52:55 +0000 (UTC)
commit 02bc18ebd66b9f1eaace671eac067292c9ed032b
Author: Federico Mena Quintero <federico gnome org>
Date: Tue Jun 22 18:29:03 2021 -0500
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.
Cargo.toml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/Cargo.toml b/Cargo.toml
index 492237b4..94506255 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,8 +36,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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]