#[path = "build/review_assets.rs"]
mod review_assets;
fn main() {
println!("cargo:rerun-if-env-changed=PROVENANCE_REVIEW_ASSETS_DIR");
let root = std::env::var_os("PROVENANCE_REVIEW_ASSETS_DIR").map_or_else(
|| std::path::PathBuf::from("review-assets"),
std::path::PathBuf::from,
);
let output =
std::path::PathBuf::from(std::env::var_os("OUT_DIR").expect("Cargo output directory"));
review_assets::generate(&root, &output.join("review_assets.rs"))
.expect("valid review asset bundle");
println!("cargo:warning=Next step: run cargo provenance init in your project.");
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
let target_env = std::env::var("CARGO_CFG_TARGET_ENV").unwrap_or_default();
if target_os == "windows" && target_env == "msvc" {
println!("cargo:rustc-link-arg-bin=provenance=/STACK:8388608");
}
}