-
Notifications
You must be signed in to change notification settings - Fork 6
/
meson.build
36 lines (32 loc) · 838 Bytes
/
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
# todo(mdegans) read the version from the version file
project('nvalhalla', ['c', 'vala'],
version: run_command(
'head', '-n', '1', files('VERSION'),
).stdout().strip(),
meson_version: '>= 0.49.0',
license: 'MIT',
)
if target_machine.cpu_family() == 'aarch64'
message('TEGRA Detected')
add_project_arguments(
[
'--define=TEGRA',
],
language: 'vala'
)
endif
if run_command('cat', '/proc/device-tree/nvidia,dtsfilename').stdout().contains('t19x')
message('XAVIER/TX2 Detected')
add_project_arguments(
[
'--define=TX2_XAV',
],
language: 'vala'
)
endif
subdir('src')
subdir('test')
subdir('docs')
install_subdir('models', install_dir: 'share/nvalhalla')
install_subdir('nvinfer_configs', install_dir: 'share/nvalhalla')
install_subdir('scripts', install_dir: 'share/nvalhalla')