From b4b089c4278f041f69c3253f84901de226d38558 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 6 Mar 2023 04:40:04 +0200 Subject: [PATCH] [docs] Disable gtdoc-check by default It slows build as it causes documentation to be always rebuilt. We now disable it by default and enable it on relevant CI jobs. --- .github/workflows/linux-ci.yml | 1 + docs/meson.build | 2 +- meson_options.txt | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index d9094efd1..3ec2eea47 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -49,6 +49,7 @@ jobs: -Dgraphite=enabled \ -Doptimization=2 \ -Db_coverage=true \ + -Ddoc_tests=true \ -Dragel_subproject=true - name: Build run: meson compile -Cbuild diff --git a/docs/meson.build b/docs/meson.build index 10d92509b..faf558a77 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -60,5 +60,5 @@ gnome.gtkdoc('harfbuzz', ignore_headers: ignore_headers, dependencies: [libharfbuzz_dep], install: true, - check: true, + check: get_option('doc_tests'), ) diff --git a/meson_options.txt b/meson_options.txt index 9ebba72c6..195d556e8 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -29,6 +29,8 @@ option('introspection', type: 'feature', value: 'auto', yield: true, description: 'Generate gobject-introspection bindings (.gir/.typelib files)') option('docs', type: 'feature', value: 'auto', yield: true, description: 'Generate documentation with gtk-doc') +option('doc_tests', type: 'boolean', value: false, + description: 'Run gtkdoc-check tests') option('benchmark', type: 'feature', value: 'disabled', description: 'Enable benchmark tests')