2024-03-10 12:42:56 +01:00
|
|
|
#[cfg(feature = "js")]
|
|
|
|
extern crate napi_build;
|
|
|
|
|
2024-09-13 22:21:53 +02:00
|
|
|
#[cfg(feature = "py")]
|
2024-03-16 14:36:41 +01:00
|
|
|
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() {
|
2024-03-16 14:36:41 +01:00
|
|
|
#[cfg(feature = "js")]
|
|
|
|
{
|
2024-03-10 12:42:56 +01:00
|
|
|
napi_build::setup();
|
|
|
|
}
|
2024-03-16 14:36:41 +01:00
|
|
|
|
2024-09-13 22:21:53 +02:00
|
|
|
#[cfg(feature = "py")]
|
2024-03-16 14:36:41 +01:00
|
|
|
{
|
|
|
|
pyo3_build_config::add_extension_module_link_args();
|
|
|
|
}
|
2024-03-09 23:27:08 +01:00
|
|
|
}
|