[gnome-shell-extensions] build: Use the new array type



commit 6a0a247668f4ae9076fadd9559f8c19238141f95
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Fri Dec 15 13:00:52 2017 +0100

    build: Use the new array type
    
    meson 0.44 features a new option type called `array` that allows
    more than one string to be passed.
    
    This feature fits perfectly the `enable_extensions` option needs,
    so it has been changed to be an `array` type. the option has not
    been limited to a set of choices to avoid duplication.

 meson.build       | 4 ++--
 meson_options.txt | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 92cf371..c7e0418 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
 project('gnome-shell-extensions',
   version: '3.27.1',
-  meson_version: '>= 0.37.0',
+  meson_version: '>= 0.44.0',
   license: 'GPL2+'
 )
 
@@ -56,7 +56,7 @@ all_extensions += [
   'user-theme'
 ]
 
-enabled_extensions = get_option('enable_extensions').split()
+enabled_extensions = get_option('enable_extensions')
 
 if enabled_extensions.length() == 0
   set = get_option('extension_set')
diff --git a/meson_options.txt b/meson_options.txt
index 5a157df..8d2eaf8 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -6,8 +6,8 @@ option('extension_set',
 )
 
 option('enable_extensions',
-  type: 'string',
-  value: '',
+  type: 'array',
+  value: [],
   description: 'Space separated list of extensions to enable instead of a predefined set.'
 )
 


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