-
-
Notifications
You must be signed in to change notification settings - Fork 342
Expand file tree
/
Copy pathmeson.build
More file actions
46 lines (40 loc) · 1.03 KB
/
meson.build
File metadata and controls
46 lines (40 loc) · 1.03 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
# This is just a stub project to include all the others as subprojects
# for development shell purposes
project('hydra-dev-shell', 'cpp',
version: files('version.txt'),
license: 'GPL-3.0',
default_options: [
'debug=true',
'optimization=2',
'cpp_std=c++23',
],
)
subproject('hydra')
subproject('hydra-linters')
subproject('hydra-manual')
# Build rust workspace (dev build only; in Nix release builds, Rust is built separately)
cargo = find_program('cargo', native: true)
cargo_toml = files('Cargo.toml')
build_type = get_option('buildtype')
if build_type == 'debug'
cargo_profile = 'debug'
cargo_build_args = ['build']
else
cargo_profile = 'release'
cargo_build_args = ['build', '--release']
endif
rust_build = custom_target(
'rust-workspace-build',
input: cargo_toml,
output: ['build-stamp'],
command: [
cargo,
cargo_build_args,
'--manifest-path', '@INPUT@',
'--workspace',
'--message-format=json-render-diagnostics'
],
build_by_default: true,
install: false,
)
subproject('hydra-tests')