use std::process::Command;
fn main() {
cc::Build::new()
.file("extern/nrlmsise/nrlmsise-00.c")
.file("extern/nrlmsise/nrlmsise-00_data.c")
.compile("nrlmsise");
let output = Command::new("git")
.args(["rev-parse", "HEAD"])
.output()
.unwrap();
let git_hash = String::from_utf8(output.stdout).unwrap();
println!("cargo:rustc-env=GIT_HASH={}", git_hash);
let build_date = chrono::Utc::now().to_rfc3339();
println!("cargo:rustc-env=BUILD_DATE={}", build_date);
let output = Command::new("git")
.args(["describe", "--tags"])
.output()
.unwrap();
println!("cargo:rustc-env=GIT_TAG={}", String::from_utf8(output.stdout).unwrap());
#[cfg(feature = "pybindings")]
pyo3_build_config::add_extension_module_link_args();
}