[jsonrpc-glib] build: be consistent with option names



commit 96f1e237ca4b666cc2efe0400d1fdaa0c57b11d9
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jun 18 14:14:19 2017 -0700

    build: be consistent with option names
    
    We want all these to be the same, and _ seems to be the preferred thing
    around meson.

 meson.build       |    2 +-
 meson_options.txt |    4 ++--
 tests/meson.build |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/meson.build b/meson.build
index f308c93..a620363 100644
--- a/meson.build
+++ b/meson.build
@@ -98,6 +98,6 @@ gnome = import('gnome')
 subdir('src')
 subdir('tests')
 
-if get_option('enable-gtk-doc')
+if get_option('enable_gtk_doc')
   subdir('doc')
 endif
diff --git a/meson_options.txt b/meson_options.txt
index 4c910b1..6ee1c4e 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -6,11 +6,11 @@ option('enable_profiling', type: 'boolean', value: false)
 option('with_introspection', type: 'boolean', value: true)
 option('with_vapi', type: 'boolean', value: true)
 
-option('enable-gtk-doc',
+option('enable_gtk_doc',
        type: 'boolean', value: false,
        description: 'Whether to generate the API reference for Jsonrpc-GLib')
 
-option('enable-tests',
+option('enable_tests',
        type: 'boolean', value: true,
        description: 'Whether to compile unit tests')
 
diff --git a/tests/meson.build b/tests/meson.build
index ce0be52..beed9ad 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -1,4 +1,4 @@
-if get_option('enable-tests')
+if get_option('enable_tests')
 
 test_env = [
   'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),


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