2016-08-12 14:55:17 +00:00
|
|
|
gst_net_sources = [
|
|
|
|
'gstnetaddressmeta.c',
|
|
|
|
'gstnetclientclock.c',
|
|
|
|
'gstnetcontrolmessagemeta.c',
|
|
|
|
'gstnettimepacket.c',
|
|
|
|
'gstnettimeprovider.c',
|
|
|
|
'gstptpclock.c',
|
|
|
|
'gstntppacket.c',
|
2017-11-01 10:27:31 +00:00
|
|
|
'gstnetutils.c',
|
2016-08-12 14:55:17 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
gst_net_headers = [
|
|
|
|
'gstnet.h',
|
|
|
|
'gstnetaddressmeta.h',
|
|
|
|
'gstnetclientclock.h',
|
|
|
|
'gstnetcontrolmessagemeta.h',
|
|
|
|
'gstnettimepacket.h',
|
|
|
|
'gstnettimeprovider.h',
|
2018-11-13 12:41:53 +00:00
|
|
|
'gstnetutils.h',
|
2016-08-12 14:55:17 +00:00
|
|
|
'gstptpclock.h',
|
2018-03-12 23:03:26 +00:00
|
|
|
'net-prelude.h',
|
2016-08-12 14:55:17 +00:00
|
|
|
'net.h',
|
|
|
|
]
|
|
|
|
install_headers(gst_net_headers, subdir : 'gstreamer-1.0/gst/net/')
|
|
|
|
|
2017-01-18 21:16:26 +00:00
|
|
|
gst_net_gen_sources = []
|
2018-03-23 16:48:37 +00:00
|
|
|
gst_net = library('gstnet-@0@'.format(apiversion),
|
|
|
|
gst_net_sources,
|
2018-08-25 21:09:12 +00:00
|
|
|
c_args : gst_c_args + ['-DBUILDING_GST_NET'],
|
2018-03-23 16:48:37 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-28 20:33:28 +00:00
|
|
|
darwin_versions : osxversion,
|
2018-03-23 16:48:37 +00:00
|
|
|
install : true,
|
|
|
|
dependencies : [gio_dep, gst_base_dep],
|
|
|
|
)
|
|
|
|
|
2018-10-27 17:01:02 +00:00
|
|
|
pkgconfig.generate(gst_net,
|
|
|
|
libraries : [libgst],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
|
|
|
name : 'gstreamer-net-1.0',
|
|
|
|
description : 'Network-enabled GStreamer plug-ins and clocking',
|
|
|
|
)
|
|
|
|
|
2018-03-23 16:48:37 +00:00
|
|
|
if build_gir
|
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/net/net.h' ]
|
|
|
|
gst_net_gir = gnome.generate_gir(gst_net,
|
|
|
|
sources : gst_net_sources + gst_net_headers,
|
|
|
|
namespace : 'GstNet',
|
|
|
|
nsversion : apiversion,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-net-1.0',
|
|
|
|
dependencies : [gst_base_dep],
|
2016-08-12 14:55:17 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
2018-03-23 16:48:37 +00:00
|
|
|
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gio-2.0', 'Gst-1.0'],
|
2016-08-12 14:55:17 +00:00
|
|
|
install : true,
|
2018-03-23 16:48:37 +00:00
|
|
|
extra_args : gst_gir_extra_args,
|
2016-08-12 14:55:17 +00:00
|
|
|
)
|
2018-03-23 16:48:37 +00:00
|
|
|
gst_net_gen_sources += [gst_net_gir]
|
2016-08-12 14:55:17 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
gst_net_dep = declare_dependency(link_with : gst_net,
|
|
|
|
include_directories : [libsinc],
|
2017-01-18 21:16:26 +00:00
|
|
|
sources: gst_net_gen_sources,
|
2016-11-10 23:12:30 +00:00
|
|
|
dependencies : [gst_base_dep])
|
2018-10-27 17:01:02 +00:00
|
|
|
|
|
|
|
meson.override_dependency('gstreamer-net-1.0', gst_net_dep)
|