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.')
12 hotdoc_p = find_program('hotdoc', required: get_option('doc'))
13 if not hotdoc_p.found()
14 message('Hotdoc not found, not building the documentation')
18 required_hotdoc_extensions = ['gi-extension']
20 if get_option('doc').enabled()
21 error('Documentation enabled but introspection not built.')
24 message('Introspection not built, can\'t build the documentation')
28 hotdoc = import('hotdoc')
29 foreach extension: required_hotdoc_extensions
30 if not hotdoc.has_extensions(extension)
31 if get_option('doc').enabled()
32 error('Documentation enabled but @0@ missing'.format(extension))
35 message('@0@ extension not found, not building documentation'.format(extension))
40 excludes = ['gettext.h',
41 'gst-validate-internal.h',
42 'gst-validate-i18n-lib.c'
46 validate_excludes = []
48 validate_excludes += [join_paths(meson.current_source_dir(), '..',
49 'validate', 'gst', 'validate', f)]
53 foreach f: gstvalidate_headers + gstvalidate_sources
54 validate_sources += [join_paths(meson.current_source_dir(), '..',
55 'validate', 'gst', 'validate', f)]
58 hotdoc = import('hotdoc')
60 libs_doc = [hotdoc.generate_doc('gst-devtools',
61 project_version: apiversion,
62 sitemap: 'sitemap.txt',
64 gi_c_sources: validate_sources,
65 gi_c_source_filters: validate_excludes,
66 gi_index: 'gi-index.md',
68 gi_sources: [validate_gir[0].full_path()],
69 disable_incremental_build: true,
70 dependencies : [validate_dep],