[gnome-documents/wip/inigomartinez/meson: 4/7] build: Rename build options



commit 83b919141accf4210695a60aaf4114e008fdd9bb
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 7ce8968..2cb5c55 100644
--- a/meson.build
+++ b/meson.build
@@ -162,11 +162,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]