...@@ -39,6 +39,16 @@ fn main() -> Result<(), std::io::Error> { ...@@ -39,6 +39,16 @@ fn main() -> Result<(), std::io::Error> {
// This is set to allow the use of the library from the build // This is set to allow the use of the library from the build
// directory. // directory.
let content = String::from_utf8(content).unwrap() let content = String::from_utf8(content).unwrap()
.replace("REQUIRES",
if cfg!(feature = "crypto-botan") {
"botan-2"
} else if cfg!(feature = "crypto-nettle") {
"nettle"
} else if cfg!(feature = "crypto-cng") {
""
} else {
panic!("Don't know dependencies to add to .pc file")
})
.replace("LIBDIR", .replace("LIBDIR",
&build_dir &build_dir
.to_str() .to_str()
......
...@@ -5,6 +5,6 @@ Name: pEpEngineSequoiaBackend ...@@ -5,6 +5,6 @@ Name: pEpEngineSequoiaBackend
Description: An implementation of the pEp Engine's crypttext interface using Sequoia Description: An implementation of the pEp Engine's crypttext interface using Sequoia
URL: https://sequoia-pgp.org/ URL: https://sequoia-pgp.org/
Version: VERSION Version: VERSION
Requires: botan-2 Requires: REQUIRES
Cflags: Cflags:
Libs: -L${libdir} -lpep_engine_sequoia_backend Libs: -L${libdir} -lpep_engine_sequoia_backend