diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2022-10-11 11:52:58 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2022-10-11 11:52:58 +0100 |
commit | ddcea2da93e363e696d79f6a2a11f182e75f69c6 (patch) | |
tree | 9adc97c7d81fd510d22a39c12bf6db5b68c5ef39 | |
parent | a3a646da9561494361aef54e710d7cabec8106f2 (diff) | |
download | json-glib-ddcea2da93e363e696d79f6a2a11f182e75f69c6.tar.gz |
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
-rw-r--r-- | meson.build | 18 |
1 files 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() |