dart-setup-ffi-assets - Build Dart Native Assets from C/C++
Guides the setup of Dart Native Assets hooks to compile, link, package, and optionally download C/C++ libraries.
Tags
Updated: 2026-10-05Typical Outputs
What this skill does
- Configure build hooks
- Configure link hooks
- Compile C/C++ sources
- Package native libraries
- Download prebuilt binaries
- Verify binary hashes
- Apply linker tree-shaking
- Generate FFI bindings
Inputs
- C/C++ source files
- Native library specifications
- FFI bindings
- Record-use mappings
- Binary download URLs
- Binary hash tables
- Target architecture
- Package configuration
Outputs
- Build hook files
- Link hook files
- Compiled code assets
- Packaged native libraries
- Downloaded native binaries
- Tree-shaken native binaries
- FFI binding files
- Record-use mapping files
Requirements
- Dart SDK with Native Assets support
- package:hooks
- package:native_toolchain_c
- package:code_assets
- pub.dev access
- Host C compiler for local builds
- FFIgen for binding generation
