Commit f0721a73 authored by Iñigo Martínez's avatar Iñigo Martínez

Rename introspection build option

Following the new meson porting guidelines, this patch renames the
introspection build option.
parent 27f0d374
...@@ -163,7 +163,7 @@ echo " ...@@ -163,7 +163,7 @@ echo "
cmd_options="" cmd_options=""
for key in "${!meson_options[@]}"; do 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 done
exec ${MESON} \ exec ${MESON} \
......
...@@ -65,7 +65,7 @@ pkg.generate( ...@@ -65,7 +65,7 @@ pkg.generate(
install_dir: join_paths(gepub_libdir, 'pkgconfig') 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 = [ gir_incs = [
'GObject-2.0', 'GObject-2.0',
'libxml2-2.0', 'libxml2-2.0',
......
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)')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment