[json-glib/ebassi/for-master: 6/6] build: Modernise the project() declaration




commit ddcea2da93e363e696d79f6a2a11f182e75f69c6
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue Oct 11 11:52:58 2022 +0100

    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()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]