diff options
author | David Robillard <d@drobilla.net> | 2021-05-27 18:43:30 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-05-27 19:16:02 -0400 |
commit | 9ecda141fe54d0e515a80c20cbe681982c5797e6 (patch) | |
tree | 5ea2d32b1908593d6b0c04cd1be043271ce4239d /meson.build | |
parent | 5e1ca2099a912d88c57320f61a6f316d2e7c67b7 (diff) | |
download | pugl-9ecda141fe54d0e515a80c20cbe681982c5797e6.tar.gz pugl-9ecda141fe54d0e515a80c20cbe681982c5797e6.tar.bz2 pugl-9ecda141fe54d0e515a80c20cbe681982c5797e6.zip |
Add test for building the implementation as included C++
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/meson.build b/meson.build index 50cc19f..f5e8f12 100644 --- a/meson.build +++ b/meson.build @@ -140,7 +140,15 @@ if get_option('strict') # Objective C warnings if is_variable('objcc') - add_project_arguments(objcc.get_supported_arguments(all_objc_warnings), + objc_warnings = all_objc_warnings + + objc_warnings += [ + '-Wno-deprecated-declarations', + '-Wno-direct-ivar-access', + '-Wno-pedantic', + ] + + add_project_arguments(objcc.get_supported_arguments(objc_warnings), language: ['objc']) endif endif @@ -204,9 +212,6 @@ if host_machine.system() == 'darwin' core_deps = [cocoa_dep, corevideo_dep] extension = '.m' - add_project_arguments(['-Wno-deprecated-declarations'], language: ['objc']) - add_project_arguments(['-Wno-direct-ivar-access'], language: ['objc']) - add_project_arguments(['-DGL_SILENCE_DEPRECATION'], language: ['c', 'objc']) |