subdir_done()
endif
+if static_build
+ if get_option('doc').enabled()
+ error('Documentation enabled but not supported when building statically.')
+ endif
+
+ message('Building statically, can\'t build the documentation')
+ subdir_done()
+endif
+
hotdoc_plugin_scanner = executable('gst-hotdoc-plugins-scanner',
'gst-hotdoc-plugins-scanner.c',
c_args : gst_c_args,
include_directories : [configinc],
- dependencies : [gobject_dep, gmodule_dep, glib_dep, gio_dep, gst_dep],
+ dependencies : [gst_dep, gmodule_dep, gio_dep],
install_dir : helpers_install_dir,
link_with: [printf_lib],
install: true,
plugins_cache_generator = find_program(join_paths(meson.current_build_dir(), 'gst-plugins-doc-cache-generator'))
plugins_cache = join_paths(meson.current_source_dir(), 'plugins', 'gst_plugins_cache.json')
-plugins_doc_dep = custom_target('build-doc-cache',
+gst_plugins_doc_dep = custom_target('build-doc-cache',
command: [plugins_cache_generator, plugins_cache, '@OUTPUT@', '@INPUT@'],
input: plugins,
output: 'gst_plugins_cache.json',
endif
hotdoc_req = '>= 0.11.0'
-hotdoc_version = run_command(hotdoc_p, '--version').stdout()
+hotdoc_version = run_command(hotdoc_p, '--version', check: false).stdout()
if not hotdoc_version.version_compare(hotdoc_req)
if get_option('doc').enabled()
error('Hotdoc version @0@ not found, got @1@'.format(hotdoc_req, hotdoc_version))
endif
endforeach
+if static_build
+ if get_option('doc').enabled()
+ error('Documentation enabled but not supported when building statically.')
+ endif
+
+ message('Building statically, can\'t build the documentation')
+ subdir_done()
+endif
if not build_gir
if get_option('doc').enabled()
gst_excludes = []
foreach h: ['gettext.h', 'glib-compat-private.h', 'glib-compat.h',
- 'gst-i18n-app.h', 'gst-i18n-lib.h', 'gst_private.h',
+ 'gst_private.h',
'gstelementdetails.h', 'gstmacros.h', 'gstmarshal.h',
'math-compat.h', 'parse/grammar.tab.h',
'../libs/gst/base/gstindex.h',
gi_index: 'gst/gi-index.md',
gi_smart_index: true,
gi_c_source_roots: [join_paths(meson.current_source_dir(), '../gst/'), ],
- dependencies: [gst_dep, glib_dep, gobject_dep, gmodule_dep, hotdoc_plugin_scanner],
+ dependencies: [gst_dep, gmodule_dep],
extra_assets: [join_paths(meson.current_source_dir(), 'images')],
)]
gi_index: join_paths('libs/', name, 'index.md'),
gi_smart_index: true,
gi_order_generated_subpages: true,
- dependencies: deps + [hotdoc_plugin_scanner],
+ dependencies: deps,
install: false,
)]
endforeach
gst_index: 'plugins/index.md',
gst_smart_index: true,
gst_c_sources: ['../plugins/elements/*.c', '../plugins/elements/*.h'],
- dependencies: [plugins_doc_dep],
+ dependencies: [gst_plugins_doc_dep],
gst_cache_file: plugins_cache,
gst_plugin_name: 'coreelements',
),
hotdoc.generate_doc('coretracers',
project_version: apiversion,
- sitemap: 'plugins/sitemap.txt',
- index: 'plugins/blank.md',
- gst_index: 'plugins/blank.md',
+ sitemap: 'plugins/coretracers/sitemap.txt',
+ index: 'plugins/coretracers/index.md',
+ gst_index: 'plugins/coretracers/index.md',
gst_smart_index: true,
gst_c_sources: ['../plugins/tracers/*.c', '../plugins/tracers/*.h'],
- dependencies: [plugins_doc_dep],
+ dependencies: [gst_plugins_doc_dep],
gst_cache_file: plugins_cache,
gst_plugin_name: 'coretracers',
)