2016-08-12 15:26:31 +00:00
|
|
|
gst_sdp_headers = [
|
|
|
|
'sdp.h',
|
2018-03-13 11:27:11 +00:00
|
|
|
'sdp-prelude.h',
|
2016-08-12 15:26:31 +00:00
|
|
|
'gstsdp.h',
|
|
|
|
'gstmikey.h',
|
|
|
|
'gstsdpmessage.h',
|
|
|
|
]
|
|
|
|
install_headers(gst_sdp_headers, subdir : 'gstreamer-1.0/gst/sdp/')
|
|
|
|
|
2016-10-20 20:17:27 +00:00
|
|
|
rtsp_deps = [rtp_dep, gst_dep, gio_dep]
|
|
|
|
gst_sdp_sources = ['gstsdpmessage.c', 'gstmikey.c']
|
2016-08-12 15:26:31 +00:00
|
|
|
gstsdp = library('gstsdp-@0@'.format(api_version),
|
2016-10-20 20:17:27 +00:00
|
|
|
gst_sdp_sources,
|
2018-04-28 13:50:11 +00:00
|
|
|
c_args : gst_plugins_base_args + ['-DBUILDING_GST_SDP'],
|
2016-08-12 15:26:31 +00:00
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:06:30 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-08-12 15:26:31 +00:00
|
|
|
install : true,
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : rtsp_deps,
|
2016-08-12 15:26:31 +00:00
|
|
|
)
|
2016-10-20 20:17:27 +00:00
|
|
|
|
2018-04-08 00:52:12 +00:00
|
|
|
pkgconfig.generate(gstsdp,
|
|
|
|
libraries : [glib_deps],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
|
|
|
name : 'gstreamer-sdp-1.0',
|
|
|
|
description : 'SDP helper functions',
|
|
|
|
)
|
|
|
|
|
2016-10-20 20:17:27 +00:00
|
|
|
sdp_gen_sources = []
|
|
|
|
if build_gir
|
2017-04-12 14:06:45 +00:00
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/sdp/sdp.h' ]
|
2018-10-22 09:44:37 +00:00
|
|
|
sdp_gir = gnome.generate_gir(gstsdp,
|
2016-10-20 20:17:27 +00:00
|
|
|
sources : gst_sdp_sources + gst_sdp_headers,
|
|
|
|
namespace : 'GstSdp',
|
|
|
|
nsversion : api_version,
|
|
|
|
identifier_prefix : 'Gst',
|
|
|
|
symbol_prefix : 'gst',
|
|
|
|
export_packages : 'gstreamer-sdp-1.0',
|
|
|
|
includes : ['Gst-1.0'],
|
|
|
|
install : true,
|
2017-04-12 14:06:45 +00:00
|
|
|
extra_args : gst_gir_extra_args,
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : rtsp_deps
|
2018-10-22 09:44:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
sdp_gen_sources += [sdp_gir]
|
2016-10-20 20:17:27 +00:00
|
|
|
endif
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
sdp_dep = declare_dependency(link_with: gstsdp,
|
|
|
|
include_directories : [libsinc],
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : rtsp_deps,
|
|
|
|
sources: sdp_gen_sources)
|
2018-04-08 00:52:12 +00:00
|
|
|
|
|
|
|
meson.override_dependency('gstreamer-sdp-1.0', sdp_dep)
|