-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
52 lines (45 loc) · 1017 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
project('videofs', ['c', 'cpp'],
version: '0.0.1',
license: ' GPL-3.0-or-later',
default_options: [
'buildtype=debug',
'werror=false',
'warning_level=3'
]
)
common_srcs = [
'src/config.cpp',
'src/log.cpp',
'src/util.cpp',
'src/FrameEncoder/interconverter.cpp',
]
cpp_args = [
'-pthread',
'-D_GNU_SOURCE',
'-DVERSION="' + meson.project_version() + '"'
]
opencv_dep = dependency('opencv4')
fuse_dep = dependency('fuse3')
common_dep = [opencv_dep]
encoder = executable('encoder_test',
[common_srcs,
'src/encoder_test.cpp'],
dependencies : [
common_dep,
],
cpp_args: cpp_args,
install: true,
install_dir: get_option('bindir')
)
decoder = executable('decoder_test',
[common_srcs,
'src/decoder_test.cpp'],
dependencies : [
common_dep,
],
cpp_args: cpp_args,
install: true,
install_dir: get_option('bindir')
)
run_target('format',
command : 'scripts/format.sh')