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




commit b3935a763dee313f580253a90b445425b19131aa
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 141f1970..eb77dd0f 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]