-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
51 lines (41 loc) · 1.12 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
project('dmdlint', 'd')
dcompiler = meson.get_compiler('d')
# External dependencies
argparse_dep = dependency('argparse', method: 'dub')
emsi_containers_dep = dependency('emsi_containers', method: 'dub')
subdir('compiler')
# DMDLint
dmdlint_incdir = include_directories('source')
dmdlint_common_src = [
'source/dmdlint/common/diag.d',
'source/dmdlint/common/rules.d',
'source/dmdlint/common/scanopt.d',
'source/dmdlint/common/utils.d',
]
dmdlint_common_lib = static_library('dmdlint_common',
dmdlint_common_src,
include_directories: dmdlint_incdir
)
dmdlint_linter_src = [
'source/dmdlint/linter/app.d',
]
dmdlint_scanner_src = [
'source/dmdlint/scanner/app.d',
'source/dmdlint/scanner/compiler.d',
'source/dmdlint/scanner/diag.d',
'source/dmdlint/scanner/utils.d',
'source/dmdlint/scanner/rules/useless.d',
]
executable('dmdlint-scan',
dmdlint_scanner_src,
include_directories: dmdlint_incdir,
d_import_dirs: dmd_d_import_dirs,
d_module_versions: dmd_d_module_versions,
dependencies: [
dmd_dep,
argparse_dep,
emsi_containers_dep,
],
link_with: [dmdlint_common_lib],
install: true
)