This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
71 lines (60 loc) · 1.71 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
project(
'appcenter-sdk', 'cpp',
default_options: ['cpp_std=c++17'],
version: '0.0.1 v2022',
license: 'BSD-3'
)
appcenter_sdk_ver = meson.project_version()
appcenter_sdk_version = appcenter_sdk_ver
# catch2 for unit tests
catch2_dep = dependency(
'catch2',
fallback: ['catch2', 'catch2_dep']
)
# libuuid for UUID generation
cpp_libuuid_dep = dependency(
'cpp_libuuid',
fallback: ['cpp_libuuid', 'cpp_libuuid_dep']
)
# nlohmann json for serialization in the SDK
nlohmann_json_dep = dependency(
'nlohmann_json',
fallback: ['nlohmann_json', 'nlohmann_json_dep']
)
# resclient-cpp for the SDK ingestion
restclient_cpp_dep = dependency(
'restclient_cpp',
fallback: ['restclient-cpp', 'restclient_cpp_dep']
)
# Date library
hinnant_date_dep = dependency(
'hinnant_date',
fallback: ['hinnant-date', 'date_dep']
)
# fmt dep, when c++ 20 is generally available, we will use std::format
fmt_dep = dependency(
'fmt',
fallback: ['fmt', 'fmt_dep']
)
# cpp_libcfgpath
cpp_libcfgpath_dep = dependency(
'cpp_libcfgpath',
fallback: ['cpp-libcfgpath', 'cpp_libcfgpath_dep']
)
# SQLiteCpp
sqlitecpp_dep = dependency(
'sqlitecpp_dep',
fallback: ['SQLiteCpp', 'sqlitecpp_dep']
)
thread_dep = dependency('threads')
subdir('sdk')
if get_option('build_tests')
subdir('test')
else
message('Skipping tests')
endif
if get_option('build_samples')
subdir('samples')
else
message('Skipping samples')
endif