[gtk/release-script: 1/2] build: Move the gtk-doc dep to the toplevel
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/release-script: 1/2] build: Move the gtk-doc dep to the toplevel
- Date: Fri, 4 Sep 2020 14:26:38 +0000 (UTC)
commit a8eae7afaa8560b8aa949b2de14f4da0027af42b
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 4 09:52:37 2020 -0400
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.
docs/reference/meson.build | 6 ------
meson.build | 5 +++++
2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/docs/reference/meson.build b/docs/reference/meson.build
index 905af97d00..76525011ba 100644
--- a/docs/reference/meson.build
+++ b/docs/reference/meson.build
@@ -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')
diff --git a/meson.build b/meson.build
index 5ad8508fb3..019b608c2a 100644
--- a/meson.build
+++ b/meson.build
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]