diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
commit | 483b2e960f24c370d9e0260ab4ba8b3453408590 (patch) | |
tree | ec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /meson.build | |
parent | 1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff) | |
parent | cb001bb8056869f98e9a62248bdd509a69d08faf (diff) |
Merge branch 'feature/upstrem' into develop
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', |