2020-06-27 04:37:39 +00:00
|
|
|
rtsp_server_sources = files(
|
2016-01-27 01:03:52 +00:00
|
|
|
'rtsp-address-pool.c',
|
|
|
|
'rtsp-auth.c',
|
|
|
|
'rtsp-client.c',
|
|
|
|
'rtsp-context.c',
|
2018-09-12 09:55:15 +00:00
|
|
|
'rtsp-latency-bin.c',
|
2016-01-27 01:03:52 +00:00
|
|
|
'rtsp-media.c',
|
|
|
|
'rtsp-media-factory.c',
|
|
|
|
'rtsp-media-factory-uri.c',
|
|
|
|
'rtsp-mount-points.c',
|
|
|
|
'rtsp-params.c',
|
|
|
|
'rtsp-permissions.c',
|
|
|
|
'rtsp-sdp.c',
|
|
|
|
'rtsp-server.c',
|
|
|
|
'rtsp-session.c',
|
|
|
|
'rtsp-session-media.c',
|
|
|
|
'rtsp-session-pool.c',
|
|
|
|
'rtsp-stream.c',
|
|
|
|
'rtsp-stream-transport.c',
|
|
|
|
'rtsp-thread-pool.c',
|
|
|
|
'rtsp-token.c',
|
2018-11-01 13:20:16 +00:00
|
|
|
'rtsp-onvif-server.c',
|
|
|
|
'rtsp-onvif-client.c',
|
|
|
|
'rtsp-onvif-media-factory.c',
|
|
|
|
'rtsp-onvif-media.c',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
2016-01-27 01:03:52 +00:00
|
|
|
|
2020-06-27 04:37:39 +00:00
|
|
|
rtsp_server_headers = files(
|
2016-01-27 01:03:52 +00:00
|
|
|
'rtsp-auth.h',
|
|
|
|
'rtsp-address-pool.h',
|
|
|
|
'rtsp-context.h',
|
|
|
|
'rtsp-params.h',
|
|
|
|
'rtsp-sdp.h',
|
|
|
|
'rtsp-thread-pool.h',
|
|
|
|
'rtsp-media.h',
|
|
|
|
'rtsp-media-factory.h',
|
|
|
|
'rtsp-media-factory-uri.h',
|
|
|
|
'rtsp-mount-points.h',
|
|
|
|
'rtsp-permissions.h',
|
|
|
|
'rtsp-stream.h',
|
|
|
|
'rtsp-stream-transport.h',
|
|
|
|
'rtsp-session.h',
|
|
|
|
'rtsp-session-media.h',
|
|
|
|
'rtsp-session-pool.h',
|
|
|
|
'rtsp-token.h',
|
|
|
|
'rtsp-client.h',
|
|
|
|
'rtsp-server.h',
|
2018-11-01 08:18:22 +00:00
|
|
|
'rtsp-server-object.h',
|
2018-03-13 13:30:41 +00:00
|
|
|
'rtsp-server-prelude.h',
|
2018-11-01 10:49:51 +00:00
|
|
|
'rtsp-onvif-server.h',
|
|
|
|
'rtsp-onvif-client.h',
|
|
|
|
'rtsp-onvif-media-factory.h',
|
|
|
|
'rtsp-onvif-media.h',
|
2020-06-27 04:37:39 +00:00
|
|
|
)
|
2018-11-01 13:20:16 +00:00
|
|
|
|
2016-01-27 01:03:52 +00:00
|
|
|
install_headers(rtsp_server_headers, subdir : 'gstreamer-1.0/gst/rtsp-server')
|
|
|
|
|
2021-12-20 12:03:34 +00:00
|
|
|
gst_rtsp_server_deps = [gstrtsp_dep, gstrtp_dep, gstsdp_dep, gstnet_dep, gstapp_dep, gst_dep]
|
2016-01-27 01:03:52 +00:00
|
|
|
gst_rtsp_server = library('gstrtspserver-@0@'.format(api_version),
|
|
|
|
rtsp_server_sources,
|
|
|
|
include_directories : rtspserver_incs,
|
2021-10-01 14:32:58 +00:00
|
|
|
c_args: rtspserver_args + ['-DBUILDING_GST_RTSP_SERVER', '-DG_LOG_DOMAIN="GStreamer-RTSP-Server"'],
|
2016-01-27 01:03:52 +00:00
|
|
|
version : libversion,
|
|
|
|
soversion : soversion,
|
2018-08-31 09:12:15 +00:00
|
|
|
darwin_versions : osxversion,
|
2016-01-27 01:03:52 +00:00
|
|
|
install : true,
|
2017-11-26 12:53:42 +00:00
|
|
|
dependencies : gst_rtsp_server_deps)
|
2016-01-27 01:03:52 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
library_def = {'lib': gst_rtsp_server}
|
|
|
|
pkg_name = 'gstreamer-rtsp-server-' + api_version
|
2018-10-29 13:19:33 +00:00
|
|
|
pkgconfig.generate(gst_rtsp_server,
|
|
|
|
libraries : [gst_dep],
|
|
|
|
subdirs : pkgconfig_subdirs,
|
|
|
|
name : 'gstreamer-rtsp-server-1.0',
|
|
|
|
description : 'GStreamer based RTSP server',
|
|
|
|
)
|
|
|
|
|
2017-04-13 16:52:26 +00:00
|
|
|
rtsp_server_gen_sources = []
|
|
|
|
if build_gir
|
|
|
|
gst_gir_extra_args = gir_init_section + ['--c-include=gst/rtsp-server/rtsp-server.h']
|
2020-06-27 04:39:00 +00:00
|
|
|
gir = {
|
|
|
|
'sources' : rtsp_server_headers + rtsp_server_sources,
|
|
|
|
'namespace' : 'GstRtspServer',
|
|
|
|
'nsversion' : api_version,
|
|
|
|
'identifier_prefix' : 'Gst',
|
|
|
|
'symbol_prefix' : 'gst',
|
|
|
|
'export_packages' : pkg_name,
|
|
|
|
'install' : true,
|
|
|
|
'extra_args' : gst_gir_extra_args,
|
|
|
|
'includes' : ['Gst-1.0', 'GstRtsp-1.0', 'GstNet-1.0'],
|
|
|
|
'dependencies' : gst_rtsp_server_deps,
|
|
|
|
}
|
|
|
|
# FIXME: Expose gir for use in gstreamer-full
|
|
|
|
# Disabled for now as we get `undefined reference` to many symbols
|
|
|
|
# library_def = {'gir': [gir]}
|
|
|
|
if not static_build
|
|
|
|
rtsp_server_gir = gnome.generate_gir(gst_rtsp_server, kwargs: gir)
|
|
|
|
rtsp_server_gen_sources += [rtsp_server_gir]
|
|
|
|
endif
|
2017-04-13 16:52:26 +00:00
|
|
|
endif
|
2020-06-27 04:39:00 +00:00
|
|
|
libraries += [[pkg_name, library_def]]
|
2017-04-13 16:52:26 +00:00
|
|
|
|
2016-01-27 01:03:52 +00:00
|
|
|
gst_rtsp_server_dep = declare_dependency(link_with : gst_rtsp_server,
|
|
|
|
include_directories : rtspserver_incs,
|
2017-04-13 16:52:26 +00:00
|
|
|
sources : rtsp_server_gen_sources,
|
2016-01-27 01:03:52 +00:00
|
|
|
dependencies : [gstrtsp_dep, gstrtp_dep, gstsdp_dep, gstnet_dep, gstapp_dep])
|
2018-10-29 13:19:33 +00:00
|
|
|
|
2020-06-27 04:39:00 +00:00
|
|
|
meson.override_dependency(pkg_name, gst_rtsp_server_dep)
|