CMake builds: Support introspection builds
authorChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 19 Oct 2017 10:36:32 +0000 (18:36 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Thu, 19 Oct 2017 10:36:32 +0000 (18:36 +0800)
commit41b1825196235d4337c76f97e09f0b7c6d6c56ae
tree2b40f1765f82485a68109fd32996d9a0158de594
parent53db221259b5eea4d2244321b2fe96beb39aef7d
CMake builds: Support introspection builds

This adds support for introspection builds on Windows that is enabled by
the HB_HAVE_INTROSPECTION option, which will also enable HB_HAVE_GOBJECT
(and so HB_HAVE_GLIB) as they are required for introspection.

In order for this to work one must ensure that the Python installation
listed in PYTHON_EXECUTABLE is the same Python release series that was
used to build _giscanner.pyd (the Python module that is used by
g-ir-scanner), with the same architecture.  PKG_CONFIG_PATH and PATH
must be set correctly if $(PREFIX)\bin and/or $(PREFIX)\lib\pkgconfig
are not in the standard PATH and PKG_CONFIG_PATH, which is actually
in-line with the *NIX builds.
CMakeLists.txt