From ddcea2da93e363e696d79f6a2a11f182e75f69c6 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Tue, 11 Oct 2022 11:52:58 +0100 Subject: build: Modernise the project() declaration - Use `gnu99` as the C standard, and let Meson deal with the fallback when using non-GNU-compatible toolchains - Use warning level 2, to catch more annoying C warnings - Use SPDX license identifier for the license field - Require a newer version of Meson --- meson.build | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/meson.build b/meson.build index 386ac7d..7d156bb 100644 --- a/meson.build +++ b/meson.build @@ -1,11 +1,13 @@ -project('json-glib', 'c', version: '1.7.1', - license: 'LGPLv2.1+', - default_options: [ - 'warning_level=1', - 'buildtype=debugoptimized', - 'c_std=c99', - ], - meson_version: '>= 0.55.3') +project('json-glib', 'c', + version: '1.7.1', + license: 'LGPL-2.1-or-later', + default_options: [ + 'warning_level=2', + 'buildtype=debugoptimized', + 'c_std=gnu99', + ], + meson_version: '>= 0.62.0', +) # Versioning json_version = meson.project_version() -- cgit v1.2.1