diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-13 13:36:16 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-13 13:36:16 +0100 |
commit | 34852b296a372a81d0b97ab4c12f32be6d294cd3 (patch) | |
tree | 4f751a1551d21c24e7fe66d2a7ddf4444d10a569 /meson.build | |
parent | 80aa3fe15f6346102c29b9c4236fe1e89c283d3b (diff) | |
parent | 4098950bba8e6d8609395eb9b223c276cb5954b6 (diff) |
Merge branch 'release/debian/0.32.10-1'HEADdebian/0.32.10-1master
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/meson.build b/meson.build index 91f315d..9eb58cf 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('shotwell', ['vala', 'c'], - version : '0.32.7', + version : '0.32.10', meson_version : '>= 0.59.0', default_options : ['buildtype=debugoptimized']) @@ -20,9 +20,25 @@ config_incdir = include_directories('.') vapi_incdir = include_directories('vapi') shotwell_plugin_dir = join_paths(get_option('libdir'), 'shotwell', 'plugins', 'builtin') +cc = meson.get_compiler('c') +disabled_warning_flags = [] +if cc.get_id() == 'gcc' or cc.get_id() == 'clang' + disabled_warning_flags = cc.get_supported_arguments([ + '-Wno-unused-but-set-variable', + '-Wno-unused-variable', + '-Wno-incompatible-pointer-types', + '-Wno-discarded-qualifiers', + '-Wno-unused-label', + '-Wno-unused-function', + '-Wno-unused-value' + ]) +endif + + add_global_arguments(['-DHAVE_CONFIG_H=1'], ['-include'], ['config.h'], language : 'c') +add_global_arguments(disabled_warning_flags, language: 'c') add_global_arguments( [ '--target-glib=2.40', |