summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-08-02 13:58:42 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-08-03 14:03:33 -0700
commit630a41eb815e2638b741cdbee42d9bb8509cd0a8 (patch)
tree1bd068a9b20f5b0167effc0cddd44f4fc44025ca /test cases
parentbc31c2307411b5fa7c1e0ccb058d1bdbdc2c7b45 (diff)
downloadmeson-630a41eb815e2638b741cdbee42d9bb8509cd0a8.tar.gz
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.build10
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 89dacfa55..cfe62602d 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',