From 12d4031f52a8c09014a840b2cf263478602618d0 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Wed, 3 Jul 2019 13:32:24 -0400 Subject: Add alias_target() function --- docs/markdown/snippets/alias_target.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 docs/markdown/snippets/alias_target.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/alias_target.md b/docs/markdown/snippets/alias_target.md new file mode 100644 index 0000000..129730d --- /dev/null +++ b/docs/markdown/snippets/alias_target.md @@ -0,0 +1,12 @@ +## alias_target + +``` meson +runtarget alias_target(target_name, dep1, ...) +``` + +This function creates a new top-level target. Like all top-level targets, this +integrates with the selected backend. For instance, with Ninja you can +run it as `ninja target_name`. This is a dummy target that does not execute any +command, but ensures that all dependencies are built. Dependencies can be any +build target (e.g. return value of executable(), custom_target(), etc) + -- cgit v1.1