| 1 |
name: alias_target |
| 2 |
since: 0.52.0 |
| 3 |
returns: alias_tgt |
| 4 |
description: | |
| 5 |
This function creates a new top-level target. Like all top-level |
| 6 |
targets, this integrates with the selected backend. For instance, with |
| 7 |
you can run it as `meson compile target_name`. This is a dummy target |
| 8 |
that does not execute any command, but ensures that all dependencies |
| 9 |
are built. Dependencies can be any build target. Since 0.60.0, this includes |
| 10 |
[[@run_tgt]]. |
| 11 |
|
| 12 |
*Since 1.6.0* passing a [[@both_libs]] object builds both shared and |
| 13 |
static libraries. |
| 14 |
|
| 15 |
posargs: |
| 16 |
target_name: |
| 17 |
type: str |
| 18 |
description: The name of the alias target |
| 19 |
|
| 20 |
varargs: |
| 21 |
name: Dep |
| 22 |
type: tgt |
| 23 |
min_varargs: 1 |
| 24 |
description: The targets to depend on |