-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
84 lines (75 loc) · 1.69 KB
/
meson.build
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
project(
'esp32-audio-processing',
'cpp',
)
cxx = meson.get_compiler('cpp')
deps = []
deps += dependency('threads')
args = []
args += '-DCONFIG_PROC_HAVE_LOG=1'
args += '-DCONFIG_PROC_INFO_BUFFER_SIZE=1024'
args += '-std=gnu++11'
if host_machine.system() == 'windows'
args += '-D_WIN32_WINNT=_WIN32_WINNT_WIN10'
args += '-DWINVER=_WIN32_WINNT_WIN10'
deps += cxx.find_library('ws2_32')
endif
# https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
warnings = [
'-Wall',
'-Wextra',
'-Wpedantic',
'-Werror',
'-Wfatal-errors',
'-Wreorder',
'-Wswitch-enum',
'-Wuseless-cast',
'-Wparentheses',
'-Wshift-overflow',
'-Wsign-compare',
'-Wzero-as-null-pointer-constant',
'-Wcast-align',
'-Wcast-qual',
'-Wcatch-value',
'-Wchar-subscripts',
'-Wswitch-default',
'-Wctor-dtor-privacy',
'-Wduplicated-branches',
'-Wduplicated-cond',
'-Wempty-body',
'-Wextra-semi',
'-Wfloat-equal',
'-Wformat',
'-Wformat-extra-args',
'-Wimplicit-fallthrough',
'-Wmissing-field-initializers',
'-Wnull-dereference',
'-Wshadow',
]
args += warnings
myApp = executable(
'app',
[
'components/ProcessingCore/Processing.cpp',
'components/ProcessingCore/Log.cpp',
'components/ProcessingCore/SystemDebugging.cpp',
'components/ProcessingCore/SystemCommanding.cpp',
'components/ProcessingCore/TcpListening.cpp',
'components/ProcessingCore/TcpTransfering.cpp',
'components/ProcessingCommon/LibTime.cpp',
'components/ProcessingCommon/ThreadPooling.cpp',
'main/main.cpp',
'main/AppSupervising.cpp',
'main/AudioProcessing.cpp',
],
include_directories : include_directories([
'components/ProcessingCore',
'components/ProcessingCommon',
]),
dependencies : [
deps,
],
cpp_args : [
args,
],
)