MESON(1) User Commands MESON(1) (NAME) meson - Ninja (DESCRIPTION) (Meson) . Valgrind Ccache . . setup . : meson setup [ options ] [ build directory ] [ source directory ] . . . Ninja : ninja [ target ] : . . . . -D : meson setup -Dopt1=value1 -Dopt2=value2 rest of the command line... (options): --version --help configure meson configure . : meson configure [ build directory ] [ options to set ] . meson configure . -D : meson configure -Dopt1=value1 -Dopt2=value2 dist meson dist (release archive) . meson dist [ options ] (options): -h, --help -C WD (cd) --allow-dirty (uncommitted) . --formats FORMATS . xztar () gztar zip . --include-subprojects . --no-tests . install meson install . meson install [ options ] (options): -h, --help -C WD (cd) --no-rebuild . --only-changed . --quiet . --destdir DESTDIR DESTDIR. ( 0.57.0) --dry-run, -n . ( 0.57.0) --skip-subprojects [SKIP_SUBPROJECTS] . ( 0.58.0) --tags TAGS . ( 0.60.0) --strip (strip) strip configure . ( 0.62.0) introspect Meson introspect (IDE) . JSON . meson introspect [ build directory ] [ option ] . (options): --targets ( ) --target-files --buildsystem-files (meson.build meson.options meson_options.txt ) --tests --help init meson init . meson init [ options ] [ sourcefile... ] (positional arguments): sourcefile... . : (options): -h, --help -C WD (cd) -n NAME, --name NAME . : -e EXECUTABLE, --executable EXECUTABLE . : -d DEPS, --deps DEPS -l {c,cpp,cs,cuda,d,fortran,java,objc,objcpp,rust,vala}, --language {c,cpp,cs,cuda,d,fortran,java,objc,objcpp,rust,vala} . : -b, --build --builddir BUILDDIR -f, --force . --type {executable,library} . : (executable) --version VERSION . : 0.1 test meson test . : ninja [ test ] meson test . meson test Ninja . meson test 125 . git bisect run . git bisect : git bisect run meson test -C build_dir (options): --repeat --gdb gdb --list --wrapper ( valgrind) -C ( ). --suite (suite) --no-suite --exclude --no-stdsplit stderr stdout --benchmark --logbase --num-processes --verbose stdout stderr ( ) -t (timeout) ( 100 Valgrind) --setup --slice SLICE/NUM_SLICES NUM_SLICES SLICE. ( 1.8.0) wrap Wraptool wrapdb . meson wrap < command > [ options ] . (commands): list search install update info status subprojects meson subprojects . meson subprojects [ options ] [ command ] (options): -h, --help (commands): update wrap checkout ( git) download . . (configure) . foreach . purge wrap packagefiles packagefiles rewrite meson rewrite . meson rewrite [ options ] [ command ] (options): -h, --help -s SRCDIR, --sourcedir SRCDIR . -V, --verbose -S, --skip-errors (commands): target (tgt) (target) kwargs (keyword arguments) default-options (def) command (cmd) JSON compile meson compile . meson compile [ options ] [ TARGET... ] (positional arguments): TARGET . : [PATH_TO_TARGET/]TARGET_NAME.TARGET_SUFFIX[:TARGET_TYPE]. (options): -h, --help --clean . -C WD (cd) -j JOBS, --jobs JOBS (worker jobs) ( ). . -l LOAD_AVERAGE, --load-average LOAD_AVERAGE (load average) ( ). -v, --verbose . --ninja-args NINJA_ARGS `ninja` ( `ninja` ). --vs-args VS_ARGS `msbuild` ( `vs` ). --xcode-args XCODE_ARGS `xcodebuild` ( `xcode` ). devenv meson devenv . meson devenv [ options ] [ command ] (positional arguments): command (: ) (options): -h, --help -C BUILDDIR --workdir WORKDIR, -w WORKDIR (cd) (: builddir 1.0.0) --dump [DUMP] ( 0.62.0) ( 1.1.0) --dump-format {sh,export,vscode} --dump ( 1.1.0) env2mfile meson env2mfile cross native . meson env2mfile [ options ] (options): -h, --help --debarch DEBARCH dpkg . --gccsuffix GCCSUFFIX gcc . -o OUTFILE . --cross (cross compilation). --native (native compilation). --system SYSTEM . --subsystem SUBSYSTEM . --kernel KERNEL . --cpu CPU (cpu) . --cpu-family CPU_FAMILY (cpu family) . --endian {big,little} (endianness) . format meson format () . meson format [ options ] [ sources... ] (positional arguments): sources... (options): -h, --help -q, --check-only 1 meson format -i, --inplace ( ) -r, --recursive ( --check-only --inplace) -c meson.format, --configuration meson.format meson.format -e, --editor-config .editorconfig -o OUTPUT, --output OUTPUT ( ) meson setup . . meson setup . (EXIT STATUS) 0 . 1 meson.build. 2 . 125 meson test . (SEE ALSO) https://mesonbuild.com https://wrapdb.mesonbuild.com meson 1.12.0 August 2026 MESON(1)