From 9ed180209a5cbab875a425e158ca315a58e2934b Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 27 Jan 2024 12:35:50 +0100 Subject: [PATCH] docs: Prefer using gi-docgen from a subproject As that is the recommended process from the upstream developers Part-of: --- meson.build | 5 ----- subprojects/gi-docgen.wrap | 9 +++++++++ 2 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 subprojects/gi-docgen.wrap diff --git a/meson.build b/meson.build index b780d16c0..b628033a0 100644 --- a/meson.build +++ b/meson.build @@ -333,11 +333,6 @@ if have_introspection endif have_documentation = get_option('docs') -if have_documentation - gidocgen_dep = dependency('gi-docgen', version: '>= 2021.1', - fallback: ['gi-docgen', 'dummy_dep']) -endif - have_tests = get_option('tests') have_core_tests = false have_cogl_tests = false diff --git a/subprojects/gi-docgen.wrap b/subprojects/gi-docgen.wrap new file mode 100644 index 000000000..ccfa14eda --- /dev/null +++ b/subprojects/gi-docgen.wrap @@ -0,0 +1,9 @@ +[wrap-git] +directory=gi-docgen +url=https://gitlab.gnome.org/GNOME/gi-docgen.git +push-url=ssh://git@gitlab.gnome.org:GNOME/gi-docgen.git +revision=main +depth=1 + +[provide] +program_names = gi-docgen