summaryrefslogtreecommitdiff
path: root/meson_options.txt
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2018-02-12 12:23:42 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2018-02-12 12:23:42 +0000
commitf553ec30390caddbbfb44336a48a51b63ba9e9f1 (patch)
treea6b5d4b2a50859ebcaafce122220a06e1c93c7c7 /meson_options.txt
parentb0a75495df58d71d8809c223b6a327f1bc90c844 (diff)
downloadpango-f553ec30390caddbbfb44336a48a51b63ba9e9f1.tar.gz
meson: Update rules for introspection
Building introspection should not be gated on cross-compilation: it's perfectly acceptable to use an helper binary to run the introspection scanner when cross-compiling — in fact, it's what projects like Yocto do. Instead, we should have an option to disable the introspection generation explicitly. Additionally, when building introspection data for ancillary Pango libraries, like PangoCairo or PangoXft, we should depend on the GIR target, instead of adding an `--include-uninstalled` extra argument for the introspection scanner; this allows building Pango as a sub-project of another project, and lets Meson deal with the appropriate paths and arguments when invoking the scanner.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt
index e5f60225..ac641269 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -2,3 +2,7 @@ option('enable_docs',
description: 'Build API reference for Pango using GTK-Doc',
type: 'boolean',
value: false)
+option('gir',
+ description: 'Build the GObject introspection data for Pango',
+ type: 'boolean',
+ value: true)