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




commit 5b30a878fa359ab2fbc2be041baa47054b3e036a
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]