[libgepub: 1/2] Rename introspection build option



commit f0721a73b97a3d18f7e8e35d46b24a203f64b070
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Sun Nov 12 11:19:15 2017 +0100

    Rename introspection build option
    
    Following the new meson porting guidelines, this patch renames the
    introspection build option.

 configure_meson      |    2 +-
 libgepub/meson.build |    2 +-
 meson_options.txt    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/configure_meson b/configure_meson
index 8ac2753..0501157 100755
--- a/configure_meson
+++ b/configure_meson
@@ -163,7 +163,7 @@ echo "
 
 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} \
diff --git a/libgepub/meson.build b/libgepub/meson.build
index 2e37de4..6429e2e 100644
--- a/libgepub/meson.build
+++ b/libgepub/meson.build
@@ -65,7 +65,7 @@ pkg.generate(
   install_dir: join_paths(gepub_libdir, 'pkgconfig')
 )
 
-if get_option('enable-introspection') and get_option('default_library') == 'shared'
+if get_option('introspection') and get_option('default_library') == 'shared'
   gir_incs = [
     'GObject-2.0',
     'libxml2-2.0',
diff --git a/meson_options.txt b/meson_options.txt
index cdb100d..d33e9ec 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1 +1 @@
-option('enable-introspection', type: 'boolean', value: true, description: 'Enable GObject Introspection 
(depends on GObject)')
+option('introspection', type: 'boolean', value: true, description: 'Enable GObject Introspection (depends on 
GObject)')


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