blob: 026bc0d291877e2babdac577fdbf3779cabc1afb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# 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')
|