-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmeson.build
More file actions
63 lines (50 loc) · 1.49 KB
/
meson.build
File metadata and controls
63 lines (50 loc) · 1.49 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
project('Flex Message Decoder',
['c', 'cpp'],
default_options : [
# `build.*` options affect `native: true targets`
# plain options affect `native: false` targets.
'c_std=c99', 'build.c_std=c99',
],
license: 'MIT',
meson_version: '>=1.1.0',
version: '0.9')
########################
# Identify Compiler(s) #
########################
# Pick up our common compiler variables + desired_*_flags variables
subdir('meson/compiler')
subdir('meson/compiler/c')
# Process the compilation flags
subdir('meson/compiler/check-and-apply-flags')
#########################
# Process Build Options #
#########################
if get_option('enable-werror') == true
add_project_arguments('-Werror', language : ['c', 'cpp'])
endif
if get_option('enable-pedantic-error') == true
add_project_arguments('-pedantic-error', language : ['c', 'cpp'])
endif
#################
# Build Modules #
#################
subdir('meson/test/cmocka')
#######################
# Process source tree #
#######################
# Library build definition
subdir('src/')
# Test build definition
subdir('test/')
############################
# Supporting Build Targets #
############################
# We only need to run these tools if we are the primary project.
# This reduces config time and target clutting when in subproject mode.
if meson.is_subproject() == false
subdir('meson/analysis/clang-tidy')
subdir('meson/analysis/complexity')
subdir('meson/analysis/cppcheck')
subdir('meson/format')
subdir('meson/docs/doxygen')
endif