-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
51 lines (40 loc) · 1.53 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
project('gst-timecode', 'c', version : '1.0.0', license : 'LGPL')
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', version : '>=1.19',
required : true, fallback : ['gstreamer', 'gst_dep'])
gstbase_dep = dependency('gstreamer-base-1.0', version : '>=1.19',
fallback : ['gstreamer', 'gst_base_dep'])
gstvideo_dep = dependency('gstreamer-video-1.0', version : '>=1.19',
fallback : ['gstreamer', 'gst_base_dep'])
plugin_c_args = ['-DHAVE_CONFIG_H']
cdata = configuration_data()
cdata.set_quoted('PACKAGE_VERSION', gst_version)
cdata.set_quoted('PACKAGE', 'gst-timecode')
cdata.set_quoted('GST_LICENSE', 'LGPL')
cdata.set_quoted('GST_API_VERSION', api_version)
cdata.set_quoted('GST_PACKAGE_NAME', 'GStreamer Timecode')
cdata.set_quoted('GST_PACKAGE_ORIGIN', 'https://gstreamer.freedesktop.org')
configure_file(output : 'config.h', configuration : cdata)
gsttimecodeoverlay_sources = [
'src/gsttimecodeoverlay.c',
]
gsttimecodeoverlay = library('gsttimecodeoverlay',
gsttimecodeoverlay_sources,
c_args: plugin_c_args,
dependencies : [gst_dep, gstbase_dep, gstvideo_dep],
install : true,
install_dir : plugins_install_dir,
)
gsttimecodeparse_sources = [
'src/gsttimecodeparse.c',
]
gsttimecodeparse = library('gsttimecodeparse',
gsttimecodeparse_sources,
c_args: plugin_c_args,
dependencies : [gst_dep, gstbase_dep, gstvideo_dep],
install : true,
install_dir : plugins_install_dir,
)