-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
61 lines (47 loc) · 1.65 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
project('gst-ebur128', 'c', version : '1.0.0.0', license : 'MIT')
plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
cc = meson.get_compiler('c')
gst_version = meson.project_version()
api_version = '1.0'
gst_dep = dependency('gstreamer-1.0', fallback : ['gstreamer', 'gst_dep'])
gstbase_dep = dependency('gstreamer-base-1.0', fallback : ['gstreamer', 'gst_base_dep'])
gstaudio_dep = dependency('gstreamer-audio-1.0', fallback : ['gst-plugins-base', 'audio_dep'])
gstvideo_dep = dependency('gstreamer-video-1.0', fallback : ['gst-plugins-base', 'video_dep'])
libebur128_dep = dependency('libebur128')
cairo_dep = dependency('cairo')
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
plugin_c_args = ['-DHAVE_CONFIG_H']
cdata = configuration_data()
cdata.set_quoted('PACKAGE_VERSION', gst_version)
cdata.set_quoted('PACKAGE', 'gst-ebur128-plugin')
cdata.set_quoted('GST_LICENSE', 'LGPL')
cdata.set_quoted('GST_API_VERSION', api_version)
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer ebur128 Plug-ins')
cdata.set_quoted('GST_PACKAGE_ORIGIN', 'https://mazdermind.de')
configure_file(output : 'config.h', configuration : cdata)
plugin_sources = [
'src/gstebur128plugin.c',
'src/gstebur128shared.c',
'src/gstebur128element.c',
'src/gstebur128graphelement.c',
'src/gstebur128graphrender.c',
]
ebur128 = library('gstebur128',
plugin_sources,
c_args: plugin_c_args,
dependencies : [
gst_dep,
gstbase_dep,
gstaudio_dep,
gstvideo_dep,
libebur128_dep,
cairo_dep,
m_dep
],
install : true,
install_dir : plugins_install_dir,
)
if not get_option('tests').disabled()
subdir('tests')
endif