[librsvg/cargo-c: 20/25] Make cargo-c emit Cflags in the .pc file




commit 47bf1c9c3b0f3acc9ec4d1e80a7a0d811bc718c6
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 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"


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]