aboutsummaryrefslogtreecommitdiff
path: root/test cases/unit/100 custom target name/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/unit/100 custom target name/meson.build')
-rw-r--r--test cases/unit/100 custom target name/meson.build14
1 files changed, 14 insertions, 0 deletions
diff --git a/test cases/unit/100 custom target name/meson.build b/test cases/unit/100 custom target name/meson.build
new file mode 100644
index 0000000..8287614
--- /dev/null
+++ b/test cases/unit/100 custom target name/meson.build
@@ -0,0 +1,14 @@
+project('custom target name', 'c')
+
+python = find_program('python3')
+
+# 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')