mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 05:20:17 +00:00
build: fix gi-docgen detection in cross builds
gi-docgen is supposed to be ran natively on the build machine, without native: true dependency() searches for gi-docgen on the host system. When it doesn't find it, it falls back to a subproject even if gi-docgen is available on the build machine. also make gtk_doc require introspection
This commit is contained in:
parent
2bbf7d267a
commit
98796d4513
@ -443,7 +443,8 @@ iso_codes_dep = dependency('iso-codes', required: false)
|
|||||||
|
|
||||||
gidocgen_dep = dependency('gi-docgen', version: '>= 2021.1',
|
gidocgen_dep = dependency('gi-docgen', version: '>= 2021.1',
|
||||||
fallback: ['gi-docgen', 'dummy_dep'],
|
fallback: ['gi-docgen', 'dummy_dep'],
|
||||||
required: get_option('gtk_doc'))
|
required: get_option('gtk_doc') and get_option('introspection').enabled(),
|
||||||
|
native: true)
|
||||||
gi_dep = dependency('gobject-introspection-1.0', version: introspection_req,
|
gi_dep = dependency('gobject-introspection-1.0', version: introspection_req,
|
||||||
required: get_option('introspection').enabled() and
|
required: get_option('introspection').enabled() and
|
||||||
get_option('build-tests'))
|
get_option('build-tests'))
|
||||||
|
Loading…
Reference in New Issue
Block a user