From c4821c8e6bf1f81c6ea31e11ebc0fc1666e9337b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 25 Feb 2021 10:27:59 -0500 Subject: Add exess from git@gitlab.com:drobilla/exess.git 4638b1f --- subprojects/exess/bindings/cpp/meson.build | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 subprojects/exess/bindings/cpp/meson.build (limited to 'subprojects/exess/bindings/cpp/meson.build') diff --git a/subprojects/exess/bindings/cpp/meson.build b/subprojects/exess/bindings/cpp/meson.build new file mode 100644 index 00000000..61e3616e --- /dev/null +++ b/subprojects/exess/bindings/cpp/meson.build @@ -0,0 +1,54 @@ +add_languages(['cpp']) +cpp = meson.get_compiler('cpp') + +# Set ultra strict warnings for developers, if requested +if get_option('strict') + if cpp.get_id() == 'clang' + cpp_suppressions = [ + '-Wno-c++14-extensions', + '-Wno-c++98-compat', + '-Wno-c++98-compat-pedantic', + '-Wno-documentation-unknown-command', + '-Wno-nullability-extension', + '-Wno-padded', + ] + + elif cpp.get_id() == 'gcc' + cpp_suppressions = [ + '-Wno-inline', + '-Wno-padded', + '-Wno-switch-default', + '-Wno-unused-const-variable', + '-Wno-useless-cast', + ] + + elif cpp.get_id() == 'msvc' + cpp_suppressions = [ + '/wd4028', # formal parameter different from declaration + '/wd4204', # nonstandard extension: non-constant aggregate initializer + '/wd4706', # assignment within conditional expression + '/wd4710', # function not inlined + '/wd4711', # function selected for automatic inline expansion + '/wd4820', # padding added after data member + '/wd5045', # will insert Spectre mitigation + ] + endif + +else + if cpp.get_id() == 'clang' + cpp_suppressions = [ + '-Wno-nullability-extension', + ] + endif +endif + +exess_cpp_args = cc.get_supported_arguments(cpp_suppressions) + +cpp_headers = ['include/exess/exess.hpp'] +cpp_header_files = files(cpp_headers) + +exess_hpp_dep = declare_dependency( + dependencies: exess_dep, + include_directories: include_directories('include')) + +subdir('test') -- cgit v1.2.1