[PATCH rendercheck 0/5] Convert to meson.

Peter Hutterer peter.hutterer at who-t.net
Tue Mar 28 00:01:19 UTC 2017

On Fri, Mar 24, 2017 at 01:17:45PM -0700, Eric Anholt wrote:
> Having bitten off a bit more than I can chew in 3 days with the X
> Server (hw/xfree86/sdksyms.c is the worst), I decided to take a quick
> pass at converting a project that's my own fault.
> rendercheck is the best case scenario for autotools, and meson still
> cuts its build time to practically nothing: I can do a git clean -fdx;
> meson build; ninja -C build; ninja -C build install in about half a
> second.  And, as you can see from the diffstat, the build time isn't
> the only reason to love it.

Assuming $PWD is $top_srcdir, here's a quick lookup table for autotool

./autogen.sh --prefix=foo
  → meson --prefix=foo build
  → ninja -C build
make check
  → ninja -C build test
make clean
  → ninja -C build clean
make distclean
  → rm -rf build
make install
  → ninja -C build install
make uninstall
  → ninja -C build uninstall
make dist
  → no equivalent, use git-archive or something
make distcheck
  → no equivalent, see make dist

Note that "build" above is not a target, it's the $build_dir directory name
given to meson, so feel free to run 'meson warmfuzzyfeeling' if you're so
inclined. All the documentation uses "build" though, so let's stick with

On Fedora at least, ninja annoyingly is called ninja-build which is easily
fixed with a bit of blood, sweat, tears, and a shell alias.


More information about the xorg-devel mailing list