mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
18 lines
337 B
Rust
18 lines
337 B
Rust
#[cfg(feature = "js")]
|
|
extern crate napi_build;
|
|
|
|
#[cfg(feature = "python")]
|
|
extern crate pyo3_build_config;
|
|
|
|
/// The main method of the buildscript, required by some glue modules.
|
|
fn main() {
|
|
#[cfg(feature = "js")]
|
|
{
|
|
napi_build::setup();
|
|
}
|
|
|
|
#[cfg(feature = "python")]
|
|
{
|
|
pyo3_build_config::add_extension_module_link_args();
|
|
}
|
|
}
|