-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmeson.build
More file actions
33 lines (28 loc) · 747 Bytes
/
meson.build
File metadata and controls
33 lines (28 loc) · 747 Bytes
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
project(
'proj',
['cpp'],
version: '0.1',
default_options: [
'warning_level=3',
'cpp_std=c++20',
'backend=ninja'
]
)
sources = run_command('py', 'globber.py', check : true).stdout().strip().split('\n')
message('source files: ')
foreach f : sources
message(' ' + f)
endforeach
cmake = import('cmake')
root_path = meson.global_source_root()
hh_path = root_path / 'highwayhash'
executable(
'fast_unique',
[sources],
cpp_args : ['-march=znver2', '-Ofast', '-fno-exceptions', '-fno-rtti', '-g'],
include_directories : [hh_path],
dependencies : [],
install : true
)
# meson build --wipe -Ddebug=true -Doptimization=3
# meson build --wipe -Dbuildtype=release -Doptimization=3