gecko-dev/third_party/rust/cose/build.rs
Franziskus Kiefer 7b10164f9f Bug 1403840 - add cose rust lib with a test, r=keeler,ttaubert
Summary:
This adds the COSE rust library from https://github.com/franziskuskiefer/cose-rust with its C API from https://github.com/franziskuskiefer/cose-c-api to gecko with a basic test.
The COSE library will be used for verifying add-on signatures in future.

Reviewers: keeler, ttaubert

Reviewed By: keeler

Bug #: 1403840

Differential Revision: https://phabricator.services.mozilla.com/D232

--HG--
extra : rebase_source : 433ca6894d88ccda333bfac53507eba4e84924fb
2017-11-22 16:37:15 +01:00

12 lines
313 B
Rust

use std::env;
fn main() {
// Use NSS_LIB_DIR lazily. If it's not set and we can't find NSS in the path,
// the build will fail.
#[cfg(test)]
let lib_dir = env::var("NSS_LIB_DIR");
if let Ok(lib_dir) = env::var("NSS_LIB_DIR") {
println!("cargo:rustc-link-search={}", lib_dir);
}
}