diff options
| -rw-r--r-- | mesonbuild/compilers/compilers.py | 2 | ||||
| -rw-r--r-- | test cases/cython/2 generated sources/meson.build | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index af6b05015..76d8d72e7 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -42,7 +42,7 @@ _T = T.TypeVar('_T') about. To support a new compiler, add its information below. Also add corresponding autodetection code in detect.py.""" -header_suffixes = {'h', 'hh', 'hpp', 'hxx', 'H', 'ipp', 'moc', 'vapi', 'di'} +header_suffixes = {'h', 'hh', 'hpp', 'hxx', 'H', 'ipp', 'moc', 'vapi', 'di', 'pxd', 'pxi'} obj_suffixes = {'o', 'obj', 'res'} # To the emscripten compiler, .js files are libraries lib_suffixes = {'a', 'lib', 'dll', 'dll.a', 'dylib', 'so', 'js'} diff --git a/test cases/cython/2 generated sources/meson.build b/test cases/cython/2 generated sources/meson.build index d438d8091..3d2837d42 100644 --- a/test cases/cython/2 generated sources/meson.build +++ b/test cases/cython/2 generated sources/meson.build @@ -79,13 +79,20 @@ stuff_pxi = fs.copyfile( 'stuff.pxi' ) +stuff_pxi_2 = configure_file( + input: 'stuff.pxi.in', + output: 'stuff.pxi', + configuration: configuration_data(), + install: false +) + # Need to copy the cython source to the build directory # since meson can only generate the .pxi there includestuff_pyx = fs.copyfile( 'includestuff.pyx' ) -stuff_pxi_dep = declare_dependency(sources: stuff_pxi) +stuff_pxi_dep = declare_dependency(sources: [stuff_pxi, stuff_pxi_2]) includestuff_ext = py3.extension_module( 'includestuff', |
