-
Notifications
You must be signed in to change notification settings - Fork 33
/
meson.build
46 lines (38 loc) · 1 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
project(
'libv4l-rkmpp',
'c',
version : '1.7.1',
meson_version : '>=0.50.0',
default_options : ['buildtype=release', 'warning_level=3'],
)
libthreads_dep = dependency('threads')
libv4l_dep = dependency('libv4l2')
mpp_dep = dependency('rockchip_mpp')
cdata = configuration_data()
if get_option('verbose')
cdata.set10('DEBUG', 1)
endif
cdata.set('MAX_DEC_WIDTH', get_option('max-dec-width'))
cdata.set('MAX_DEC_HEIGHT', get_option('max-dec-height'))
cdata.set('MAX_ENC_WIDTH', get_option('max-enc-width'))
cdata.set('MAX_ENC_HEIGHT', get_option('max-enc-height'))
configure_file(output : 'config.h', configuration : cdata)
deps = [
libthreads_dep,
libv4l_dep,
mpp_dep,
]
srcs = [
'src/libv4l-rkmpp.c',
'src/libv4l-rkmpp-dec.c',
'src/libv4l-rkmpp-enc.c',
'src/utils.c',
]
shared_library(
'v4l-rkmpp',
srcs,
include_directories : include_directories('.', 'include'),
dependencies : deps,
install : true,
install_dir : get_option('libdir') / get_option('libv4l2subdir') / 'plugins',
)