diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-08-02 13:58:42 -0700 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2021-08-10 15:33:47 +0530 |
commit | 1d82002d6530a642e57e6755805b83e89ccf8f0f (patch) | |
tree | 4b0b3d73d42dbf7caf0055c15628ea2f313490ee /test cases | |
parent | bf99c5e718b79d61e809dd32f02762afbb6eecb6 (diff) | |
download | meson-1d82002d6530a642e57e6755805b83e89ccf8f0f.zip meson-1d82002d6530a642e57e6755805b83e89ccf8f0f.tar.gz meson-1d82002d6530a642e57e6755805b83e89ccf8f0f.tar.bz2 |
ninjabackend: use get_subdir() instead of subdir attribute for cython
As this works correctly for CustomTarget, CustomTargetIndex, and
GeneratedList, but .subdir doesn't work for CustomTargetIndex.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/cython/2 generated sources/meson.build | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test cases/cython/2 generated sources/meson.build b/test cases/cython/2 generated sources/meson.build index 89dacfa..cfe6260 100644 --- a/test cases/cython/2 generated sources/meson.build +++ b/test cases/cython/2 generated sources/meson.build @@ -26,6 +26,16 @@ test( env : ['PYTHONPATH=' + meson.current_build_dir()] ) +# Test a CustomTargetIndex +cti = custom_target( + 'cti', + input : 'gen.py', + output : 'cti.pyx', + command : [py3, '@INPUT@', '@OUTPUT@'], +) + +cti_ext = py3.extension_module('cti', cti[0], dependencies : py3_dep) + cf = configure_file( input : 'configure.pyx.in', output : 'cf.pyx', |