Meson
$ meson Community Low RiskMeson (meson) configures native projects using readable meson.build files, compiles via Ninja, and ships a built-in test runner (meson test). Its meson introspect subcommand exposes targets, build options, dependencies, and tests as clean JSON.
brew install meson meson configures local C/C++/Rust build directories, drives Ninja compilation, and runs unit tests locally on disk.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Provides meson introspect JSON output across targets, tests, buildoptions, and dependencies, plus meson install --dry-run and meson test --print-errorlogs.
meson introspect --targets --testsreturns structured JSONmeson install --dry-runpreviews install mutations
Enforces out-of-source build directories (refusing in-source pollution) and offers --dry-run on meson install.
- Out-of-source build directories keep source trees clean
Installable via Homebrew, PyPI, pipx, uvx, and MSI installers across macOS, Linux, and Windows, requiring Python and ninja.
- Cross-platform Python CLI paired with
ninja
Clean setup -> compile -> test workflow with automatic Ninja backend and --print-errorlogs noise reduction.
- Built-in
meson test --print-errorlogsandmeson format
Mature community project (mesonbuild/meson) under Apache-2.0 license, standard across GNOME, Mesa, systemd, and QEMU.
- Active
mesonbuild/mesonrepository under Apache-2.0
Well-structured command and introspection docs at mesonbuild.com.
- Official docs at mesonbuild.com/Commands.html
Security, Auth & Guardrails
No authentication required; build state and WrapDB downloads live inside the configured build directory and subprojects/.
Apache-2.0 open-source CLI; free to use.
# Meson (meson) Agent Rules - Always configure out-of-source (`meson setup builddir`) and inspect targets via `meson introspect builddir --targets`. - Run `meson test -C builddir --print-errorlogs` to avoid noisy passing-test logs.
Agent-Ready Command Recipes
Safe Read-Only Queries
meson introspect builddir --targets --indent
Dumps all executables, libraries, and output paths in structured JSON.
meson introspect builddir --tests --indent
Exports all registered meson test suites and commands in JSON.
Controlled Writes & Previews
meson test -C builddir --print-errorlogs
Rebuilds stale targets and runs tests while printing logs only for failing cases.
Strengths for Agents
- +
meson introspectgives agents complete JSON visibility into targets, tests, and build options. - + Enforces out-of-source builds by default and supports
meson install --dry-run. - +
meson test --print-errorlogssurfaces only failing test logs cleanly.
Caveats & Pitfalls
- ! Requires both Python and
ninja(plus host C/C++ compilers) to configure and build. - !
meson setupandmeson compileemit plain text rather than JSON.