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




commit 63db8f524b78ac464e85e79aeb03d307121db686
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]