diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:04:11 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:04:11 +0200 |
commit | efceac497fa2702124398b2712761015d9a1c78a (patch) | |
tree | fd5ce9ff4664bf6111572e094ea186f003dcd76c /test cases/python3/3 cython | |
parent | 836b121a9cebce2c5bde2cf07df147a382363348 (diff) | |
download | meson-efceac497fa2702124398b2712761015d9a1c78a.zip meson-efceac497fa2702124398b2712761015d9a1c78a.tar.gz meson-efceac497fa2702124398b2712761015d9a1c78a.tar.bz2 |
Python extension module finally works on Windows.
Diffstat (limited to 'test cases/python3/3 cython')
-rw-r--r-- | test cases/python3/3 cython/libdir/meson.build | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test cases/python3/3 cython/libdir/meson.build b/test cases/python3/3 cython/libdir/meson.build index baa4c1d..5c0352e 100644 --- a/test cases/python3/3 cython/libdir/meson.build +++ b/test cases/python3/3 cython/libdir/meson.build @@ -1,3 +1,13 @@ +if host_machine.system() == 'darwin' + # Default suffix is 'dylib' but Python does not use for extensions. + suffix = 'so' +elif host_machine.system() == 'windows' + # On Windows the extension is pyd for some unexplainable reason. + suffix = 'pyd' +else + suffix = [] +endif + pyx_c = custom_target('storer_pyx', output : 'storer_pyx.c', input : 'storer.pyx', @@ -7,6 +17,7 @@ pyx_c = custom_target('storer_pyx', slib = shared_library('storer', 'storer.c', pyx_c, name_prefix : '', + name_suffix : suffix, dependencies : py3_dep) pydir = meson.current_build_dir() |