From 7b4be6b80e8ba5df391540584eacc239ef614fec Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 5 Jan 2018 00:29:08 +0100 Subject: [PATCH] don't install extra.mo files (#47) * don't install extra.mo files This uses the new "install" argument to the i18n.gettext() call in meson, which is only present in version 0.43.0 and later. * README.md: note meson >= 0.43.0 requirement * specify meson version >= 0.43 requirement in meson.build --- README.md | 3 ++- meson.build | 5 ++++- po/extra/meson.build | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d028889b..4306cee3 100644 --- a/README.md +++ b/README.md @@ -6,8 +6,9 @@ ## Building, Testing, and Installation You'll need the following dependencies: + * libgranite-dev -* meson +* meson >= 0.43.0 * valac Run `meson build` to configure the build environment. Change to the build directory and run `ninja test` to build and run automated tests diff --git a/meson.build b/meson.build index e8617d26..cb97e9f3 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,7 @@ -project('io.elementary.calculator', 'vala', 'c') +project( + 'io.elementary.calculator', 'vala', 'c', + meson_version : '>= 0.43' +) i18n = import('i18n') diff --git a/po/extra/meson.build b/po/extra/meson.build index 272ddc49..afbf195d 100644 --- a/po/extra/meson.build +++ b/po/extra/meson.build @@ -1,3 +1,4 @@ i18n.gettext('extra', - args: '--directory=' + meson.source_root() + args: '--directory=' + meson.source_root(), + install: false )