native_toolchain_ninja 0.1.1 copy "native_toolchain_ninja: ^0.1.1" to clipboard
native_toolchain_ninja: ^0.1.1 copied to clipboard

A library to generate Ninja build files for native assets and run Ninja builds.

pub package package publisher

A library to invoke the native C compiler installed on the host machine through ninja build.

Status: Experimental #

This package mirrors the API of native_toolchain_c. Simply replace CBuilder with NinjaBuilder and the build will be run through ninja instead of invoking the compiler directly.

Building through ninja allows for incremental nad parallel builds, better dependency tracking and automatic compile_commands.json generation.

Ninja does not need to be installed on the host system, if missing it will be downloaded during the build. The download is checked against original sha256 checksum to ensure integrity. See ninja_releases.json for more information.

Example #

An example can be found in example/package.

0
likes
150
points
151
downloads

Documentation

API reference

Publisher

verified publisherwidgetbakery.dev

Weekly Downloads

A library to generate Ninja build files for native assets and run Ninja builds.

Repository (GitHub)
View/report issues

Topics

#compiler #ffi #interop #native-assets #native-toolchain

License

BSD-3-Clause (license)

Dependencies

archive, code_assets, crypto, glob, hooks, logging, meta, pub_semver

More

Packages that depend on native_toolchain_ninja