build: Remove dummy gi-docgen dependency

Instead, add a provide to the wrap that allows it to be pulled in
by the `find_program('gi-docgen')` call.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3131>
This commit is contained in:
Florian Müllner 2024-01-21 00:12:18 +01:00
parent 79b0c9c726
commit 569293fad6
2 changed files with 3 additions and 5 deletions

View File

@ -94,11 +94,6 @@ x11_dep = dependency('x11')
schemas_dep = dependency('gsettings-desktop-schemas', version: schemas_req)
gnome_desktop_dep = dependency('gnome-desktop-4', version: gnome_desktop_req)
gidocgen_dep = dependency('gi-docgen',
version: '>= 2021.1',
fallback: ['gi-docgen', 'dummy_dep'],
required: get_option('gtk_doc'))
nm_deps = []
if get_option('networkmanager')
nm_deps += dependency('libnm', version: nm_req)

View File

@ -4,3 +4,6 @@ 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