diff options
author | Dave Reisner <dreisner@archlinux.org> | 2018-07-07 16:29:48 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2018-11-02 08:16:34 +0100 |
commit | 51db84750ece4de58923d4ce43cb0638ef150f5f (patch) | |
tree | 6aec4d1ed84ca324d61359f2d8408ff078f3bb28 /test/scripts/meson.build | |
parent | dab45f0808951afc2e3146211a1c6d7ebb8bd06d (diff) | |
download | pacman-51db84750ece4de58923d4ce43cb0638ef150f5f.tar.gz pacman-51db84750ece4de58923d4ce43cb0638ef150f5f.tar.xz |
Add meson.build files to build with meson
Provide both build systems in parallel for now, to ensure that we work
out all the differences between the two. Some time from now, we'll give
up on autotools.
Meson tends to be faster and probably easier to read/maintain. On my
machine, the full meson configure+build+install takes a little under
half as long as a similar autotools-based invocation.
Building with meson is a two step process. First, configure the build:
meson build
Then, compile the project:
ninja -C build
There's some mild differences in functionality between meson and
autotools. specifically:
1) No singular update-po target. meson only generates individual
update-po targets for each textdomain (of which we have 3). To make
this easier, there's a build-aux/update-po script which finds all
update-po targets and runs them.
2) No 'make dist' equivalent. Just run 'git archive' to generate a
suitable tarball for distribution.
Diffstat (limited to 'test/scripts/meson.build')
-rw-r--r-- | test/scripts/meson.build | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/scripts/meson.build b/test/scripts/meson.build new file mode 100644 index 00000000..0bdbfb2f --- /dev/null +++ b/test/scripts/meson.build @@ -0,0 +1,15 @@ +tests = [ + 'parseopts_test.sh', + 'makepkg-template_test.sh', + 'human_to_size_test.sh', +] + +foreach tst : tests + test(tst, + PYTHON, + env : TEST_ENV, + args : [ + join_paths(meson.source_root(), 'build-aux/tap-driver.py'), + join_paths(meson.current_source_dir(), tst), + ]) +endforeach |