-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmeson.build
More file actions
54 lines (49 loc) · 1.09 KB
/
meson.build
File metadata and controls
54 lines (49 loc) · 1.09 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
project(
'ccache-storage-http-cpp',
'cpp',
version: files('version.txt'),
default_options: [
'cpp_std=c++17',
'b_ndebug=if-release',
],
)
configure_file(
input: 'src/version.hpp.in',
output: 'version.hpp',
configuration: {'PROJECT_VERSION': meson.project_version()},
)
sources = files(
'src/config.cpp',
'src/ipc_server.cpp',
'src/logger.cpp',
'src/main.cpp',
'src/storage_client.cpp',
)
ccache_storage_http = executable(
'ccache-storage-http',
sources,
dependencies: [dependency('libcurl'), dependency('libuv')],
install: true,
)
if host_machine.system() == 'windows'
fs = import('fs')
fs.copyfile(
ccache_storage_http.full_path(),
'ccache-storage-https.exe',
install: true,
install_dir: get_option('bindir'),
)
else
install_symlink(
'ccache-storage-https',
pointing_to: 'ccache-storage-http',
install_dir: get_option('bindir'),
)
endif
if host_machine.system() != 'windows'
test(
'integration',
find_program('tests/integration/test_storage_helper'),
args: ['--binary', ccache_storage_http.full_path()],
)
endif