summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-13 13:36:16 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-13 13:36:16 +0100
commit34852b296a372a81d0b97ab4c12f32be6d294cd3 (patch)
tree4f751a1551d21c24e7fe66d2a7ddf4444d10a569 /meson.build
parent80aa3fe15f6346102c29b9c4236fe1e89c283d3b (diff)
parent4098950bba8e6d8609395eb9b223c276cb5954b6 (diff)
Merge branch 'release/debian/0.32.10-1'HEADdebian/0.32.10-1master
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build18
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',