summaryrefslogtreecommitdiff
path: root/test cases/unit/99 custom target name
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-10-24 01:00:57 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2022-10-25 00:03:32 +0300
commit458dcf8aac74903380c2adceb2b16a87f231b42b (patch)
treeb84536ec74c1eb4131282f4a4caecbbe644c8def /test cases/unit/99 custom target name
parent1a1aad317f71731d8440f695d29bc12c28011de2 (diff)
downloadmeson-458dcf8aac74903380c2adceb2b16a87f231b42b.tar.gz
Condense test directory numbers.
Diffstat (limited to 'test cases/unit/99 custom target name')
-rw-r--r--test cases/unit/99 custom target name/file.txt.in0
-rw-r--r--test cases/unit/99 custom target name/meson.build14
-rw-r--r--test cases/unit/99 custom target name/subdir/meson.build9
3 files changed, 23 insertions, 0 deletions
diff --git a/test cases/unit/99 custom target name/file.txt.in b/test cases/unit/99 custom target name/file.txt.in
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/test cases/unit/99 custom target name/file.txt.in
diff --git a/test cases/unit/99 custom target name/meson.build b/test cases/unit/99 custom target name/meson.build
new file mode 100644
index 000000000..8d148a88d
--- /dev/null
+++ b/test cases/unit/99 custom target name/meson.build
@@ -0,0 +1,14 @@
+project('custom target name', 'c')
+
+python = import('python').find_installation()
+
+# Name argument is optional and should default to 'file.txt'
+custom_target(
+ input: 'file.txt.in',
+ output: '@BASENAME@',
+ command: [python, '--version'],
+ build_by_default: true,
+ capture: true,
+)
+
+subdir('subdir')
diff --git a/test cases/unit/99 custom target name/subdir/meson.build b/test cases/unit/99 custom target name/subdir/meson.build
new file mode 100644
index 000000000..785a7b366
--- /dev/null
+++ b/test cases/unit/99 custom target name/subdir/meson.build
@@ -0,0 +1,9 @@
+# Name argument is optional and should default to 'file.txt', but should be
+# displayed as 'subdir/file.txt' by ninja.
+custom_target(
+ input: '../file.txt.in',
+ output: ['@BASENAME@'],
+ command: [python, '--version'],
+ build_by_default: true,
+ capture: true,
+)