diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:21:53 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-02-26 21:21:53 +0200 |
| commit | ea60a22cd5a2613652942e48e143d7a3da68bbc0 (patch) | |
| tree | ae351eb81558c49dd7fc76c5ca380e6b6fc99774 /test cases/python3/2 extmodule/ext/meson.build | |
| parent | 003696fc27e1f560a8448cc5998443696a162927 (diff) | |
| parent | efceac497fa2702124398b2712761015d9a1c78a (diff) | |
| download | meson-ea60a22cd5a2613652942e48e143d7a3da68bbc0.tar.gz | |
Merge Python 3 module support.
Diffstat (limited to 'test cases/python3/2 extmodule/ext/meson.build')
| -rw-r--r-- | test cases/python3/2 extmodule/ext/meson.build | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test cases/python3/2 extmodule/ext/meson.build b/test cases/python3/2 extmodule/ext/meson.build new file mode 100644 index 000000000..7d67953cb --- /dev/null +++ b/test cases/python3/2 extmodule/ext/meson.build @@ -0,0 +1,17 @@ +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 + +pylib = shared_library('tachyon', + 'tachyon_module.c', + dependencies : py3_dep, + name_prefix : '', + name_suffix : suffix) + +pypathdir = meson.current_build_dir() |
