-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
44 lines (38 loc) · 1.24 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
project(
'ntStat',
'cpp',
version: '1.0.1',
license: 'GPL-3',
default_options: [
'cpp_std=c++17',
'werror=false',
'optimization=3',
'b_lto=true',
],
)
conf = configuration_data()
conf.set('PROJECT_VERSION', meson.project_version())
configure_file(
input: 'src/ntstat.py',
output: 'ntstat',
configuration: conf,
install: true,
install_dir: 'bin',
install_mode: 'rwxr-xr-x',
)
py = import('python').find_installation('python3')
python3_conf = find_program('python3-config')
python3_include_path = run_command(python3_conf, ['--includes'], check: true).stdout().split('-I')[-1].strip()
python3_ldflags = run_command(python3_conf, ['--ldflags'], check: true).stdout().strip().split()
python_dep = declare_dependency(
include_directories: include_directories(python3_include_path),
link_args: python3_ldflags,
)
pybind11_conf = find_program('pybind11-config')
pybind11_include = run_command(pybind11_conf, ['--includes'], check: true).stdout().split('-I')[-1].strip()
pybind11 = declare_dependency(include_directories: [pybind11_include])
py_deps = [pybind11, python_dep]
subdir('src/modules/filter')
subdir('src/modules/hist')
subdir('src/modules/query')
subdir('src/modules/count')