diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-17 20:26:25 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-12-17 20:26:25 +0100 |
commit | a6f2c00c0c414a850ddac3a06189e9e7858bb882 (patch) | |
tree | a8f92db98841e379a4e87693e77941258085899d /giscanner | |
parent | 00a9916668b57b7ace1ddba49be73a9356afdb1c (diff) | |
download | gobject-introspection-a6f2c00c0c414a850ddac3a06189e9e7858bb882.tar.gz |
meson: only link against libpython on Windows
Like we currently do with autotools.
See https://github.com/mesonbuild/meson/issues/4117
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/giscanner/meson.build b/giscanner/meson.build index e9f75e73..6ac74aaf 100644 --- a/giscanner/meson.build +++ b/giscanner/meson.build @@ -81,12 +81,19 @@ giscanner_lib = static_library('giscanner', dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_dep], ) +# https://github.com/mesonbuild/meson/issues/4117 +if host_machine.system() == 'windows' + python_ext_dep = python.dependency() +else + python_ext_dep = python.dependency().partial_dependency(compile_args: true) +endif + giscanner_pymod = python.extension_module('_giscanner', ['giscannermodule.c'], link_with: giscanner_lib, c_args: [gi_hidden_visibility_cflags], include_directories : configinc, dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_dep, - python.dependency()], + python_ext_dep], install: true, install_dir: giscannerdir, ) |