3 if meson.is_cross_build()
4 if get_option('doc').enabled()
5 error('Documentation enabled but building the doc while cross building is not supported yet.')
8 message('Documentation not built as building it while cross building is not supported yet.')
13 if get_option('doc').enabled()
14 error('Documentation enabled but not supported when building statically.')
17 message('Building statically, can\'t build the documentation')
22 if get_option('doc').enabled()
23 error('Documentation enabled but introspection not built.')
26 message('Introspection not built, won\'t build documentation requiring it')
30 hotdoc_p = find_program('hotdoc', required: get_option('doc'))
31 if not hotdoc_p.found()
32 message('Hotdoc not found, not building the documentation')
36 required_hotdoc_extensions = ['gi-extension']
37 hotdoc = import('hotdoc')
38 foreach extension: required_hotdoc_extensions
39 if not hotdoc.has_extensions(extension)
40 if get_option('doc').enabled()
41 error('Documentation enabled but @0@ missing'.format(extension))
44 message('@0@ extension not found, not building documentation'.format(extension))
49 excludes = ['gettext.h',
50 'gst-validate-internal.h',
51 'gst-validate-i18n-lib.c'
55 validate_excludes = []
57 validate_excludes += [join_paths(meson.current_source_dir(), '..',
58 'validate', 'gst', 'validate', f)]
61 validate_sources = gstvalidate_headers + gstvalidate_sources
62 hotdoc = import('hotdoc')
64 libs_doc = [hotdoc.generate_doc('gst-devtools',
65 project_version: apiversion,
66 sitemap: 'sitemap.txt',
68 gi_c_sources: validate_sources,
69 gi_c_source_filters: validate_excludes,
70 gi_index: 'gi-index.md',
72 gi_sources: [validate_gir[0].full_path()],
73 disable_incremental_build: true,
74 dependencies : [validate_dep],