aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/65 alias target/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/65 alias target/meson.build')
-rw-r--r--meson/test cases/unit/65 alias target/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/meson/test cases/unit/65 alias target/meson.build b/meson/test cases/unit/65 alias target/meson.build
new file mode 100644
index 000000000..6934cc79b
--- /dev/null
+++ b/meson/test cases/unit/65 alias target/meson.build
@@ -0,0 +1,15 @@
+project('alias target', 'c')
+
+python3 = import('python').find_installation()
+
+exe_target = executable('prog', 'main.c',
+ build_by_default : false)
+
+custom_target = custom_target('custom-target',
+ output : 'hello.txt',
+ command : [python3, '-c', 'print("hello")'],
+ capture : true,
+ build_by_default : false
+)
+
+alias_target('build-all', [exe_target, custom_target])