# SPDX-License-Identifier: CC0-1.0 project('vsp-tests', 'c', meson_version : '>= 0.60', version : '0.0.0', default_options : [ 'werror=true', 'warning_level=2', ], license : 'GPL 2.0+') # # Configure the build environment # cc = meson.get_compiler('c') cc_arguments = [ '-Wno-unused-parameter', ] if cc.get_id() == 'clang' # Turn _FORTIFY_SOURCE by default on optimised builds (as it requires -O1 # or higher). This is needed on clang only as gcc enables it by default. if get_option('optimization') != '0' cc_arguments += [ '-D_FORTIFY_SOURCE=2', ] endif endif add_project_arguments(cc_arguments, language : 'c') subdir('data') subdir('scripts') subdir('src') subdir('tests')