meson: specify minimum required version

The minimum version in practice used to be 0.50.0, however that can be
lowered by removing unneeded kwargs from a couple of functions.

- i18n.gettext() `install_dir` defaults to the localedir option, and
  doesn't need to be manually overridden to that location

- configure_file() `install` defaults to true if `install_dir` is set,
  and before 0.50 that was also the *only* way to mark it as installed

Removing both these kwargs means that there is more leeway with the minimum
required version.
This commit is contained in:
Eli Schwartz 2022-04-03 19:28:00 -04:00
parent d4f77d6b25
commit 08831fbe66
No known key found for this signature in database
GPG key ID: CEB167EFB5722BD6
2 changed files with 2 additions and 3 deletions

View file

@ -1,6 +1,7 @@
project(
'lutris',
license: 'GPL-3.0-or-later'
license: 'GPL-3.0-or-later',
meson_version: '>=0.46.0',
)
# Find Python installation
@ -24,7 +25,6 @@ configure_file(
input: 'optional_settings.py.in',
output: 'optional_settings.py',
configuration: config,
install: true,
install_dir: lutrisdir,
)

View file

@ -2,6 +2,5 @@ i18n = import('i18n')
i18n.gettext(
'lutris',
install_dir: localedir,
args: '--from-code=UTF-8'
)