[evince/BUG_new_meson_option_build_doc: 4/4] meson: add 'user_doc' option



commit 9e979b820648ccf9c001d84c1a0dc9748cf9e6e9
Author: Nelson Benítez León <nbenitezl gmail com>
Date:   Wed May 20 16:08:21 2020 -0400

    meson: add 'user_doc' option
    
    so we have the option to not build the yelp
    user documentation so to speed up builds
    while developing. Defaults to true to keep
    existing behaviour.

 help/meson.build  | 179 +++++++++++++++++++++++++++---------------------------
 meson.build       |   1 +
 meson_options.txt |   1 +
 3 files changed, 93 insertions(+), 88 deletions(-)
---
diff --git a/help/meson.build b/help/meson.build
index db5172d3..747f851e 100644
--- a/help/meson.build
+++ b/help/meson.build
@@ -1,4 +1,5 @@
 enable_gtk_doc = get_option('gtk_doc')
+enable_user_doc = get_option('user_doc')
 if enable_gtk_doc
   glib_prefix = glib_dep.get_pkgconfig_variable('prefix')
   gtk_prefix = gtk_dep.get_pkgconfig_variable('prefix')
@@ -18,93 +19,95 @@ if enable_gtk_doc
   endif
 endif
 
-sources = [
-  'annotation-properties.page',
-  'annotations-delete.page',
-  'annotations-disabled.page',
-  'annotations-navigate.page',
-  'annotations.page',
-  'annotations-save.page',
-  'bookmarks.page',
-  'bug-filing.page',
-  'commandline.page',
-  'convertpdf.page',
-  'convertPostScript.page',
-  'convertSVG.page',
-  'default-settings.page',
-  'develop.page',
-  'documentation.page',
-  'duplex-10pages.page',
-  'duplex-11pages.page',
-  'duplex-12pages.page',
-  'duplex-13pages.page',
-  'duplex-14pages.page',
-  'duplex-15pages.page',
-  'duplex-16pages.page',
-  'duplex-3pages.page',
-  'duplex-4pages.page',
-  'duplex-5pages.page',
-  'duplex-6pages.page',
-  'duplex-7pages.page',
-  'duplex-8pages.page',
-  'duplex-9pages.page',
-  'duplex-npages.page',
-  'editing.page',
-  'finding.page',
-  'formats.page',
-  'forms.page',
-  'forms-saving.page',
-  'headerbar.page',
-  'index.page',
-  'introduction.page',
-  'invert-colors.page',
-  'license.page',
-  'legal.xml',
-  'legal-unported.xml',
-  'movingaround.page',
-  'noprint.page',
-  'openerror.page',
-  'opening.page',
-  'password.page',
-  'presentations.page',
-  'print-2sided.page',
-  'print-booklet.page',
-  'print-differentsize.page',
-  'printing.page',
-  'print-order.page',
-  'print-pagescaling.page',
-  'print-select.page',
-  'reload.page',
-  'shortcuts.page',
-  'singlesided-13-16pages.page',
-  'singlesided-17-20pages.page',
-  'singlesided-3-4pages.page',
-  'singlesided-5-8pages.page',
-  'singlesided-9-12pages.page',
-  'singlesided-npages.page',
-  'synctex-beamer.page',
-  'synctex-compile.page',
-  'synctex-editors.page',
-  'synctex.page',
-  'synctex-search.page',
-  'synctex-support.page',
-  'textselection.page',
-  'translate.page',
-]
+if enable_user_doc
+  sources = [
+    'annotation-properties.page',
+    'annotations-delete.page',
+    'annotations-disabled.page',
+    'annotations-navigate.page',
+    'annotations.page',
+    'annotations-save.page',
+    'bookmarks.page',
+    'bug-filing.page',
+    'commandline.page',
+    'convertpdf.page',
+    'convertPostScript.page',
+    'convertSVG.page',
+    'default-settings.page',
+    'develop.page',
+    'documentation.page',
+    'duplex-10pages.page',
+    'duplex-11pages.page',
+    'duplex-12pages.page',
+    'duplex-13pages.page',
+    'duplex-14pages.page',
+    'duplex-15pages.page',
+    'duplex-16pages.page',
+    'duplex-3pages.page',
+    'duplex-4pages.page',
+    'duplex-5pages.page',
+    'duplex-6pages.page',
+    'duplex-7pages.page',
+    'duplex-8pages.page',
+    'duplex-9pages.page',
+    'duplex-npages.page',
+    'editing.page',
+    'finding.page',
+    'formats.page',
+    'forms.page',
+    'forms-saving.page',
+    'headerbar.page',
+    'index.page',
+    'introduction.page',
+    'invert-colors.page',
+    'license.page',
+    'legal.xml',
+    'legal-unported.xml',
+    'movingaround.page',
+    'noprint.page',
+    'openerror.page',
+    'opening.page',
+    'password.page',
+    'presentations.page',
+    'print-2sided.page',
+    'print-booklet.page',
+    'print-differentsize.page',
+    'printing.page',
+    'print-order.page',
+    'print-pagescaling.page',
+    'print-select.page',
+    'reload.page',
+    'shortcuts.page',
+    'singlesided-13-16pages.page',
+    'singlesided-17-20pages.page',
+    'singlesided-3-4pages.page',
+    'singlesided-5-8pages.page',
+    'singlesided-9-12pages.page',
+    'singlesided-npages.page',
+    'synctex-beamer.page',
+    'synctex-compile.page',
+    'synctex-editors.page',
+    'synctex.page',
+    'synctex-search.page',
+    'synctex-support.page',
+    'textselection.page',
+    'translate.page',
+  ]
 
-media = [
-  'figures/add-text-annotation.png',
-  'figures/annotations-nav-to-page.png',
-  'figures/evincelogo.png',
-  'figures/evince-trail.png',
-  'figures/print-select.png',
-  'figures/reverse-collate.png',
-  'figures/zoom.png',
-]
+  media = [
+    'figures/add-text-annotation.png',
+    'figures/annotations-nav-to-page.png',
+    'figures/evincelogo.png',
+    'figures/evince-trail.png',
+    'figures/print-select.png',
+    'figures/reverse-collate.png',
+    'figures/zoom.png',
+  ]
 
-gnome.yelp(
-  ev_name,
-  sources: sources,
-  media: media,
-  symlink_media: true,
-)
+  gnome.yelp(
+    ev_name,
+    sources: sources,
+    media: media,
+    symlink_media: true,
+  )
+endif
diff --git a/meson.build b/meson.build
index 4cf59211..cff6f3a6 100644
--- a/meson.build
+++ b/meson.build
@@ -527,6 +527,7 @@ output += 'TIFF .....................:  ' + enable_tiff.to_string() + '\n'
 output += 'XPS ......................:  ' + enable_xps.to_string() + '\n\n\n'
 output += 'FEATURES\n\n'
 output += 'GTK Doc reference ........:  ' + enable_gtk_doc.to_string() + '\n'
+output += 'User documentation .......:  ' + enable_user_doc.to_string() + '\n'
 output += 'GObject Introspection ....:  ' + enable_introspection.to_string() + '\n'
 output += 'DBUS communication .......:  ' + enable_dbus.to_string() + '\n'
 output += 'systemd units installation:  ' + systemd_user_unit_dir + '\n'
diff --git a/meson_options.txt b/meson_options.txt
index 7d4740fa..32f92e75 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -15,6 +15,7 @@ option('tiff', type: 'feature', value: 'auto', description: 'whether TIFF suppor
 option('xps', type: 'feature', value: 'auto', description: 'whether XPS support is requested')
 
 option('gtk_doc', type: 'boolean', value: true, description: 'whether GTK Doc reference is requested')
+option('user_doc', type: 'boolean', value: true, description: 'whether User documentation is requested')
 option('introspection', type: 'boolean', value: true, description: 'whether introspection support is 
requested')
 option('dbus', type: 'boolean', value: true, description: 'whether DBUS support is requested')
 option('keyring', type: 'feature', value: 'auto', description: 'whether keyring support is requested')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]