mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-08 09:40:10 +00:00
build: Move the gtk-doc dep to the toplevel
We want to include the gtk-doc subproject in release tarballs, using --include-subprojects, but that only works if we've actually built the subproject. And enabling gtk-doc for dist builds is problematic - it tends to break meson dist. So declare the gtk-doc dependency independent of -Dgtk_doc, and use --force-fallback-for for it.
This commit is contained in:
parent
1a131a04d3
commit
a8eae7afaa
@ -3,12 +3,6 @@ if get_option('gtk_doc')
|
||||
error('Building the GTK documentation requires Meson 0.52.0')
|
||||
endif
|
||||
|
||||
# Use gtk-doc as a sub-project from the gtk-doc-for-gtk4 branch
|
||||
# for the time being
|
||||
dependency('gtk-doc', version: '>=1.99',
|
||||
fallback: ['gtk-doc', 'dummy_dep'],
|
||||
default_options: ['tests=false', 'yelp_manual=false'])
|
||||
|
||||
glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
|
||||
glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
|
||||
|
||||
|
@ -382,6 +382,11 @@ graphene_dep = dependency('graphene-gobject-1.0', version: graphene_req,
|
||||
fallback: ['graphene', 'graphene_dep'])
|
||||
iso_codes_dep = dependency('iso-codes', required: false)
|
||||
|
||||
gtk_doc_dep = dependency('gtk-doc', version: '>=1.99',
|
||||
fallback: ['gtk-doc', 'dummy_dep'],
|
||||
default_options: ['tests=false', 'yelp_manual=false'],
|
||||
required: get_option('gtk_doc'))
|
||||
|
||||
fontconfig_dep = [] # only used in x11 backend
|
||||
|
||||
if os_win32
|
||||
|
Loading…
Reference in New Issue
Block a user