-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
71 lines (64 loc) · 1.14 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(
'passgen',
'cpp',
version: '1.0.0',
default_options: [
'cpp_std=c++17',
'cpp_args=-Wall -Wextra -Wpedantic'
]
)
name = meson.project_name()
version = meson.project_version()
arch = host_machine.cpu_family()
system = host_machine.system()
add_project_arguments(
'-DMT_VERSION="' + version + '"',
language: 'cpp'
)
deps = []
incs = [
include_directories('include')
]
srcs = [
'src/main.cpp',
'src/mt/passgen/passgen.cpp'
]
exe = executable(
name + '.' + version + '.' + arch,
srcs,
dependencies: deps,
include_directories: incs,
install: true
)
custom_target(
'compress_man',
command: [
find_program('scripts/compress_man.sh'),
'@INPUT@',
'@OUTPUT@'
],
input: 'passgen.1',
output: 'passgen.1.gz',
build_by_default: true,
install: true,
install_dir: join_paths(get_option('mandir'), 'man1')
)
custom_target(
'create_symlink',
command: [
find_program('scripts/create_symlink.sh'),
'@INPUT@',
'@OUTPUT@'
],
input: exe,
output: name,
build_by_default: true,
install: true,
install_dir: get_option('bindir')
)
run_target(
'doxygen',
command: [
'doxygen'
]
)