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',
|
|
|
|
'gstptpclock.h',
|
|
|
|
'net.h',
|
|
|
|
]
|
|
|
|
install_headers(gst_net_headers, subdir : 'gstreamer-1.0/gst/net/')
|
|
|
|
|
|
|
|
if libtype != 'shared'
|
|
|
|
gst_net_static = static_library('gstnet-@0@'.format(apiversion),
|
|
|
|
gst_net_sources,
|
|
|
|
c_args : gst_c_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
install : true,
|
|
|
|
dependencies : [gio_dep, gst_base_dep],
|
|
|
|
)
|
|
|
|
gst_net = gst_net_static
|
|
|
|
endif
|
|
|
|
|
2017-01-18 21:16:26 +00:00
|
|
|
gst_net_gen_sources = []
|
2016-08-12 14:55:17 +00:00
|
|
|
if libtype != 'static'
|
|
|
|
gst_net_shared = shared_library('gstnet-@0@'.format(apiversion),
|
|
|
|
gst_net_sources,
|
|
|
|
c_args : gst_c_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
install : true,
|
|
|
|
dependencies : [gio_dep, gst_base_dep],
|
|
|
|
)
|
|
|
|
gst_net = gst_net_shared
|
|
|
|
if build_gir
|
2017-04-10 14:28:57 +00:00
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/net/net.h' ]
|
2017-01-18 21:16:26 +00:00
|
|
|
gst_net_gir = gnome.generate_gir(gst_net_shared,
|
2016-08-12 14:55:17 +00:00
|
|
|
sources : gst_net_sources + gst_net_headers,
|
|
|
|
namespace : 'GstNet',
|
|
|
|
nsversion : apiversion,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-net-1.0',
|
2016-11-10 23:12:30 +00:00
|
|
|
dependencies : [gst_base_dep],
|
2016-08-12 14:55:17 +00:00
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
includes : ['GLib-2.0', 'GObject-2.0', 'GModule-2.0', 'Gio-2.0', 'Gst-1.0'],
|
|
|
|
install : true,
|
2017-04-10 14:28:57 +00:00
|
|
|
extra_args : gst_gir_extra_args,
|
2016-08-12 14:55:17 +00:00
|
|
|
)
|
2017-01-18 21:16:26 +00:00
|
|
|
gst_net_gen_sources += [gst_net_gir]
|
2016-08-12 14:55:17 +00:00
|
|
|
endif
|
|
|
|
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])
|