project: 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=790234
This commit is contained in:
Iñigo Martínez
2018-01-22 08:06:16 +01:00
parent 1a246116ea
commit 66b113ac83
3 changed files with 5 additions and 5 deletions
Vendored
+1 -1
View File
@@ -159,7 +159,7 @@ END
cmd_options=""
for key in "${!meson_options[@]}"; do
cmd_options="$cmd_options -Denable-$key=${meson_options[$key]}"
cmd_options="$cmd_options -D${key/\-/_}=${meson_options[$key]}"
done
exec ${MESON} \
+2 -2
View File
@@ -36,8 +36,8 @@ calendar_schemadir = join_paths(calendar_datadir, 'glib-2.0', 'schemas')
calendar_buildtype = get_option('buildtype')
calendar_debug = calendar_minor_version.is_odd() or buildtype.contains('debug')
enable_tracing = get_option('enable-tracing')
enable_gtk_doc = get_option('enable-gtk-doc')
enable_tracing = get_option('tracing')
enable_gtk_doc = get_option('gtk_doc')
cc = meson.get_compiler('c')
+2 -2
View File
@@ -1,2 +1,2 @@
option('enable-tracing', type: 'boolean', value: false, description: 'add extra debugging information')
option('enable-gtk-doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation')
option('tracing', type: 'boolean', value: false, description: 'add extra debugging information')
option('gtk_doc', type: 'boolean', value: false, description: 'use gtk-doc to build documentation')