summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
commit5b7b3b1dfd5ce7c275881098310667b09562ad27 (patch)
treed2760df372d76da84d901cfc3a20514d5dc73bdf /meson.build
parentf6062696f6bbd00d4eaa8a6e994dabfefc455f31 (diff)
New upstream version 0.32.10upstream/0.32.10upstream
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',