-
Notifications
You must be signed in to change notification settings - Fork 58
/
meson.build
37 lines (29 loc) · 984 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
project(
'droidmedia', 'c',
default_options : ['warning_level=1', 'buildtype=debugoptimized'],
)
droidmedia_version = meson.project_version()
droidmedia = meson.project_name()
cc = meson.get_compiler('c')
root_dir = include_directories('.')
droidmedia_source = [
'hybris.c',
]
libdroidmedia_a = static_library('droidmedia',
droidmedia_source,
install: true,
dependencies: cc.find_library('dl', required : true))
droidmedia_headers = [
'droidmediacamera.h',
'droidmediacodec.h',
'droidmediaconstants.h',
'droidmediaconvert.h',
'droidmedia.h',
'droidmediarecorder.h'
]
install_headers(droidmedia_headers, subdir : meson.project_name())
install_data('hybris.c', install_dir : get_option('datadir') / meson.project_name())
pkg = import('pkgconfig')
pkg.generate(libdroidmedia_a,
libraries: ['-ldl'],
subdirs: ['droidmedia'])