[gnome-disk-utility] build: Rename build options
- From: Kai Lüke <kailueke src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] build: Rename build options
- Date: Wed, 15 Nov 2017 02:24:09 +0000 (UTC)
commit 91d9b72c4f769b57c39db0c93e71055b6a3bd479
Author: Iñigo Martínez <inigomartinez gmail com>
Date: Mon Nov 13 18:54:55 2017 +0100
build: Rename build options
Following the new meson porting guidelines, this patch renames the
build options. The list of changes is as follows:
- Remove the enable prefix from boolean options.
- The character separator from multi-word options has been changed
to underscore.
https://bugzilla.gnome.org/show_bug.cgi?id=790303
meson.build | 4 ++--
meson_options.txt | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index 4d196a0..d1d302b 100644
--- a/meson.build
+++ b/meson.build
@@ -166,7 +166,7 @@ config_h.set('HAVE_UDISKS2_7_2', udisks2_7_2_dep.found(),
description: 'Define to 1 if UDisks version >= 2.7.2 for resize, repair, check')
# *** Check for libsystemd ***
-enable_libsystemd = get_option('enable-libsystemd')
+enable_libsystemd = get_option('libsystemd')
if enable_libsystemd
libsystemd_dep = dependency('libsystemd', version: '>= 209', required: false)
config_h.set('HAVE_LIBSYSTEMD', libsystemd_dep.found(),
@@ -190,7 +190,7 @@ subdir('src/disks')
subdir('src/disk-image-mounter')
# *** gnome-settings-daemon plug-in ***
-enable_gsd_plugin = get_option('enable-gsd-plugin')
+enable_gsd_plugin = get_option('gsd_plugin')
if enable_gsd_plugin
subdir('src/notify')
endif
diff --git a/meson_options.txt b/meson_options.txt
index 6474b48..952f5d2 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,2 +1,2 @@
-option('enable-libsystemd', type: 'boolean', value: true, description: 'build with libsystemd')
-option('enable-gsd-plugin', type: 'boolean', value: true, description: 'build gnome-settings-daemon plug-in')
+option('libsystemd', type: 'boolean', value: true, description: 'build with libsystemd')
+option('gsd_plugin', type: 'boolean', value: true, description: 'build gnome-settings-daemon plug-in')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]