2020-06-27 04:37:39 +00:00
|
|
|
gst_sdp_headers = files([
|
2016-08-12 15:26:31 +00:00
|
|
|
'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',
|
2020-06-27 04:37:39 +00:00
|
|
|
])
|
2016-08-12 15:26:31 +00:00
|
|
|
install_headers(gst_sdp_headers, subdir : 'gstreamer-1.0/gst/sdp/')
|
|
|
|
|
2021-12-03 01:45:49 +00:00
|
|
|
sdp_deps = [rtp_dep, gst_dep, gio_dep, pbutils_dep]
|
2020-06-27 04:37:39 +00:00
|
|
|
gst_sdp_sources = files(['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,
|
2021-10-01 14:30:27 +00:00
|
|
|
c_args : gst_plugins_base_args + ['-DBUILDING_GST_SDP', '-DG_LOG_DOMAIN="GStreamer-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,
|
2021-05-20 15:24:15 +00:00
|
|
|
dependencies : sdp_deps,
|
2016-08-12 15:26:31 +00:00
|
|
|
)
|
2016-10-20 20:17:27 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gstsdp}
|
|
|
|
pkg_name = 'gstreamer-sdp-1.0'
|
|
|
|
sdp_gen_sources = []
|
2018-04-08 00:52:12 +00:00
|
|
|
pkgconfig.generate(gstsdp,
|
|
|
|
libraries : [glib_deps],
|
|
|
|
variables : pkgconfig_variables,
|
|
|
|
subdirs : pkgconfig_subdirs,
|
2020-06-27 04:39:00 +00:00
|
|
|
name : pkg_name,
|
2018-04-08 00:52:12 +00:00
|
|
|
description : 'SDP helper functions',
|
|
|
|
)
|
|
|
|
|
2016-10-20 20:17:27 +00:00
|
|
|
if build_gir
|
2017-04-12 14:06:45 +00:00
|
|
|
gst_gir_extra_args = gir_init_section + [ '--c-include=gst/sdp/sdp.h' ]
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : gst_sdp_sources + gst_sdp_headers,
|
|
|
|
'namespace' : 'GstSdp',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'includes' : ['Gst-1.0'],
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gst_gir_extra_args,
|
|
|
|
'dependencies' : sdp_deps
|
|
|
|
}
|
2018-10-22 09:44:37 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': library_def['lib'], 'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
sdp_gir = gnome.generate_gir(gstsdp, kwargs: gir)
|
|
|
|
sdp_gen_sources += [sdp_gir]
|
|
|
|
endif
|
2016-10-20 20:17:27 +00:00
|
|
|
endif
|
2020-06-27 04:39:00 +00:00
|
|
|
libraries += [[pkg_name, library_def]]
|
2016-08-12 15:26:31 +00:00
|
|
|
|
|
|
|
sdp_dep = declare_dependency(link_with: gstsdp,
|
|
|
|
include_directories : [libsinc],
|
2021-05-20 15:24:15 +00:00
|
|
|
dependencies : sdp_deps,
|
2016-10-20 20:17:27 +00:00
|
|
|
sources: sdp_gen_sources)
|
2018-04-08 00:52:12 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, sdp_dep)
|