alias_target()

This function creates a new top-level target. Like all top-level targets, this integrates with the selected backend. For instance, with you can run it as meson compile 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. Since 0.60.0, this includes run_tgt.

Since 1.6.0 passing a both_libs object builds both shared and static libraries.

Signature

(since 0.52.0)

# This function creates a new top-level target
alias_tgt alias_target(
  str target_name,     # The name of the alias target
  tgt Dep...,          # The targets to depend on
)

Arguments

The function alias_target() accepts the following positional arguments:

Name Type Description Tags
target_name str

The name of the alias target

Additionally, the function accepts between 1 and infinity variadic arguments (Dep...) of type tgt.

The targets to depend on

The results of the search are