forked from djarek/certify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
56 lines (49 loc) · 1.01 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
#
# to build with Meson build system (https://mesonbuild.com/index.html),
#
# ```
# meson build
# cd build
# ninja
# ```
#
# You can get meson from here (https://mesonbuild.com/Getting-meson.html).
#
project('certify',
'cpp',
version: '0.0.0',
default_options: [
'cpp_std=c++11',
],
license: 'BSL-1.0',
)
certify_dep = declare_dependency(
include_directories: include_directories('include'),
)
# build examples
if not meson.is_subproject()
extra_deps = declare_dependency(
dependencies: [
dependency('boost'),
dependency('openssl'),
dependency('threads'),
]
)
if host_machine.system() == 'windows'
os_unique_deps = declare_dependency(
link_args: ['Crypt32.lib']
)
elif host_machine.system() == 'darwin'
os_unique_deps = declare_dependency(
link_args: [
'-framework CoreFoundation',
'-framework Security',
'-Wl',
'-F/Library/Frameworks',
]
)
else
error('unknown OS detected.')
endif
subdir('examples')
endif