xmake

Crates.ioxmake
lib.rsxmake
version0.2.2
sourcesrc
created_at2023-05-02 13:16:46.517388
updated_at2024-07-03 18:45:15.646346
descriptionA build dependency for running `xmake` to build a native library
homepagehttps://github.com/A2va/xmake-rs
repositoryhttps://github.com/A2va/xmake-rs
max_upload_size
id854548
size20,651
(A2va)

documentation

https://docs.rs/xmake

README

xmake

A build dependency for running the xmake build tool to compile a native library.

# Cargo.toml
[build-dependencies]
xmake = "0.2.2"

The XMake executable is assumed to be xmake unless the XMAKE environmental variable is set.

If you need to cross-compile your project, xmake provides a built-in package manager that can set up the emscripten or Android NDK toolchains. The first two lines of the code snippet below enter a single package environment, overwriting the previous environment. However, the last line enters both the emscripten and NDK environments simultaneously.

xrepo env -b ndk shell
xrepo env -b emscripten shell
xrepo env -b "emscripten, ndk" shell

After executing one of these commands, xmake will automatically detect either the emscripten or NDK toolchain.

If you prefer to use your own toolchain, you can set either the ANDROID_NDK_HOME or EMSCRIPTEN_HOME environment variables to specify the path to the corresponding toolchain.

An example is available in the test-crate folder of the repo.

Commit count: 34

cargo fmt