codemp/build.rs

19 lines
337 B
Rust
Raw Normal View History

2024-03-10 12:42:56 +01:00
#[cfg(feature = "js")]
extern crate napi_build;
#[cfg(feature = "python")]
extern crate pyo3_build_config;
2024-03-09 23:27:08 +01:00
/// The main method of the buildscript, required by some glue modules.
fn main() {
#[cfg(feature = "js")]
{
2024-03-10 12:42:56 +01:00
napi_build::setup();
}
#[cfg(feature = "python")]
{
pyo3_build_config::add_extension_module_link_args();
}
2024-03-09 23:27:08 +01:00
}