mirror of
https://github.com/hexedtech/codemp.git
synced 2024-10-22 17:59:20 +02:00
f6c0b878cb
This is needed because if we want to ship to sublime, having the `pyo3/abi-*` feature enabled will result in a wheel that needs the `python3.dll` (f****g windows) which sublime does not ship. This works fine for Linux and Mac Os, but for windows we will need to build without abi and for Python3.8 directly for sublime specifically and also with the abi for the generic python wheel to be used everywhere else.
18 lines
383 B
Rust
18 lines
383 B
Rust
#[cfg(feature = "js")]
|
|
extern crate napi_build;
|
|
|
|
#[cfg(any(feature = "py", feature = "py-noabi"))]
|
|
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(any(feature = "py", feature = "py-noabi"))]
|
|
{
|
|
pyo3_build_config::add_extension_module_link_args();
|
|
}
|
|
}
|