[gnome-documents] build: Rename build options



commit fa2dfc84919bf672d65c981c1f39f72edb075d98
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Nov 17 17:03:01 2017 +0100

    build: Rename build options
    
    Following the new meson porting guidelines, this patch renames the
    build options as follows:
    
    - Remove the 'enable' prefix from boolean options.
    - The character separator in multi-word options has been changed
      to underscore.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787013

 meson.build       |    4 ++--
 meson_options.txt |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index e0d3ac3..55b52c3 100644
--- a/meson.build
+++ b/meson.build
@@ -160,11 +160,11 @@ subdir('src')
 subdir('data')
 subdir('po')
 
-if get_option('enable-documentation')
+if get_option('documentation')
   subdir('man')
 endif
 
-if get_option('enable-getting-started')
+if get_option('getting_started')
   subdir('getting-started')
 endif
 
diff --git a/meson_options.txt b/meson_options.txt
index 86d514b..aa4f389 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,2 @@
-option('enable-documentation', type: 'boolean', value: true, description: 'build documentation')
-option('enable-getting-started', type: 'boolean', value: false, description: 'build getting started PDFs')
+option('documentation', type: 'boolean', value: true, description: 'build documentation')
+option('getting_started', type: 'boolean', value: false, description: 'build getting started PDFs')


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