aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/common/143 list of file sources
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/common/143 list of file sources')
-rw-r--r--meson/test cases/common/143 list of file sources/foo1
-rw-r--r--meson/test cases/common/143 list of file sources/gen.py7
-rw-r--r--meson/test cases/common/143 list of file sources/meson.build12
3 files changed, 20 insertions, 0 deletions
diff --git a/meson/test cases/common/143 list of file sources/foo b/meson/test cases/common/143 list of file sources/foo
new file mode 100644
index 000000000..7b57bd29e
--- /dev/null
+++ b/meson/test cases/common/143 list of file sources/foo
@@ -0,0 +1 @@
+some text
diff --git a/meson/test cases/common/143 list of file sources/gen.py b/meson/test cases/common/143 list of file sources/gen.py
new file mode 100644
index 000000000..2337d3d6b
--- /dev/null
+++ b/meson/test cases/common/143 list of file sources/gen.py
@@ -0,0 +1,7 @@
+import shutil
+import sys
+
+if __name__ == '__main__':
+ if len(sys.argv) != 3:
+ raise Exception('Requires exactly 2 args')
+ shutil.copy2(sys.argv[1], sys.argv[2])
diff --git a/meson/test cases/common/143 list of file sources/meson.build b/meson/test cases/common/143 list of file sources/meson.build
new file mode 100644
index 000000000..819509dd6
--- /dev/null
+++ b/meson/test cases/common/143 list of file sources/meson.build
@@ -0,0 +1,12 @@
+project('test', 'c')
+
+mod_py = import('python3')
+python = mod_py.find_python()
+
+test_target = custom_target(
+ 'test_target',
+ input : [files('gen.py'), files('foo')],
+ output : 'bar',
+ command : [python, '@INPUT0@', '@INPUT1@', '@OUTPUT@'],
+ build_by_default : true,
+)