-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
42 lines (36 loc) · 1.04 KB
/
meson.build
File metadata and controls
42 lines (36 loc) · 1.04 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
project(
'agrirouter-api-cpp'
, 'c'
, 'cpp'
, meson_version : '>=0.47.2'
, default_options : [
'buildtype=minsize'
, 'warning_level=1'
, 'cpp_std=c++11'
]
)
subdir('lib/AgrirouterClient')
if get_option('prod')
message('production build')
linker_flags=['-s']
else
message('debug build')
linker_flags=[]
endif
if get_option('buildTester')
agrirouter_client_tester_include_dir = include_directories('./AgrirouterClientTester/inc')
agrirouter_client_tester_sources = [
'./AgrirouterClientTester/src/Application.cpp',
'./AgrirouterClientTester/src/Communicator.cpp',
'./AgrirouterClientTester/src/main.cpp'
]
uuid_dep = dependency('uuid')
agrirouterClientTester_exe = executable(
'agrirouterClientTester',
sources: agrirouter_client_tester_sources,
include_directories: agrirouter_client_tester_include_dir,
dependencies: [libagrirouter_dep, uuid_dep],
link_args : linker_flags,
install : false
)
endif