2016-08-12 15:26:31 +00:00
|
|
|
gst_sdp_headers = [
|
|
|
|
'sdp.h',
|
|
|
|
'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,
|
2016-08-12 15:26:31 +00:00
|
|
|
c_args : gst_plugins_base_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
|
|
|
install : true,
|
2016-10-20 20:17:27 +00:00
|
|
|
dependencies : rtsp_deps,
|
2016-08-12 15:26:31 +00:00
|
|
|
vs_module_defs: vs_module_defs_dir + 'libgstsdp.def',
|
|
|
|
)
|
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' ]
|
2016-10-20 20:17:27 +00:00
|
|
|
sdp_gen_sources += [gnome.generate_gir(gstsdp,
|
|
|
|
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
|
|
|
|
)]
|
|
|
|
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)
|