-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmeson.build
37 lines (30 loc) · 1.22 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
project('LibMebo', 'c',
version : '0.1.0.1',
meson_version : '>= 0.49',
default_options: [ 'warning_level=2',
'buildtype=debugoptimized' ])
libmebo_soname_version = '0.1.0'
libmebo_version_array = libmebo_soname_version.split('.')
libmebo_version_major = libmebo_version_array[0]
libmebo_version_minor = libmebo_version_array[1]
libmebo_version_revision = libmebo_version_array[2]
LIBMEBO_ENABLE_VP8 = get_option('with_vp8') != 'no'
LIBMEBO_ENABLE_VP9 = get_option('with_vp9') != 'no'
LIBMEBO_ENABLE_AV1 = get_option('with_av1') != 'no'
cdata = configuration_data()
cdata.set10('LIBMEBO_ENABLE_VP8', LIBMEBO_ENABLE_VP8)
cdata.set10('LIBMEBO_ENABLE_VP9', LIBMEBO_ENABLE_VP9)
cdata.set10('LIBMEBO_ENABLE_AV1', LIBMEBO_ENABLE_AV1)
configure_file(output: 'libmebo_config.h', configuration: cdata)
libmebo_args = ['-DHAVE_LIBMEBO_CONFIG_H']
configinc = include_directories ('.')
libbrcinc = include_directories ('src')
libmebo_inc = include_directories('src/lib')
libmebo_install_dir = '@0@/libmebo'.format(get_option('libdir'))
pkgconfig = import ('pkgconfig')
subdir('src')
subdir('test')
doxygen = find_program('doxygen', required: false)
if get_option('enable_docs') and doxygen.found()
subdir('docs')
endif