-# Mandatory GST deps
-gst_dep = dependency('gstreamer-1.0', version : gst_req,
- fallback : ['gstreamer', 'gst_dep'])
-gstbase_dep = dependency('gstreamer-base-1.0', version : gst_req,
- fallback : ['gstreamer', 'gst_base_dep'])
-gstnet_dep = dependency('gstreamer-net-1.0', version : gst_req,
- fallback : ['gstreamer', 'gst_net_dep'])
-gstcontroller_dep = dependency('gstreamer-controller-1.0', version : gst_req,
- fallback : ['gstreamer', 'gst_controller_dep'])
-
-gstpbutils_dep = dependency('gstreamer-pbutils-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'pbutils_dep'])
-gstallocators_dep = dependency('gstreamer-allocators-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'allocators_dep'])
-gstapp_dep = dependency('gstreamer-app-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'app_dep'])
-gstaudio_dep = dependency('gstreamer-audio-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'audio_dep'])
-gstfft_dep = dependency('gstreamer-fft-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'fft_dep'])
-gstriff_dep = dependency('gstreamer-riff-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'riff_dep'])
-gstrtp_dep = dependency('gstreamer-rtp-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'rtp_dep'])
-gstrtsp_dep = dependency('gstreamer-rtsp-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'rtsp_dep'])
-gstsdp_dep = dependency('gstreamer-sdp-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'sdp_dep'])
-gsttag_dep = dependency('gstreamer-tag-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'tag_dep'])
-gstvideo_dep = dependency('gstreamer-video-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'video_dep'])
-gstcheck_dep = dependency('gstreamer-check-1.0', version : gst_req,
- required : get_option('tests'),
- fallback : ['gstreamer', 'gst_check_dep'])
-
-# GStreamer OpenGL
-gstgl_dep = dependency('gstreamer-gl-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'gstgl_dep'], required: get_option('gl'))
-gstglproto_dep = dependency('gstreamer-gl-prototypes-1.0', version : gst_req,
- fallback : ['gst-plugins-base', 'gstglproto_dep'], required: get_option('gl'))
-gstglx11_dep = dependency('', required : false)
-gstglwayland_dep = dependency('', required : false)
-gstglegl_dep = dependency('', required : false)
-
-if gstgl_dep.found()
- if gstgl_dep.type_name() == 'pkgconfig'
- gst_gl_apis = gstgl_dep.get_pkgconfig_variable('gl_apis').split()
- gst_gl_winsys = gstgl_dep.get_pkgconfig_variable('gl_winsys').split()
- gst_gl_platforms = gstgl_dep.get_pkgconfig_variable('gl_platforms').split()
- else
- gstbase = subproject('gst-plugins-base')
- gst_gl_apis = gstbase.get_variable('enabled_gl_apis')
- gst_gl_winsys = gstbase.get_variable('enabled_gl_winsys')
- gst_gl_platforms = gstbase.get_variable('enabled_gl_platforms')
+gst_plugins_doc_dep = custom_target('plugins-doc-cache',
+ command: [python3, '-c', 'print("Built all doc caches")'],
+ input: plugins_doc_caches,
+ output: 'plugins_doc_caches',
+ capture: true,
+)
+
+if meson.is_cross_build() or build_machine.system() == 'windows'
+ if get_option('doc').enabled()
+ error('Documentation enabled but building the doc while cross building or building on windows is not supported yet.')
+ endif
+
+ documented_projects = ''
+ message('Documentation not built as building the documentation while cross building or building on windows is not supported yet.')
+else
+ hotdoc_p = find_program('hotdoc', required : get_option('doc'))
+ if not hotdoc_p.found()
+ documented_projects = ''
+ message('Not building documentation as hotdoc was not found')