From 4f882ff8ec81cbc42b097d3aee8ca4a8013f538b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Mon, 22 Nov 2021 15:46:15 +0100 Subject: add install_symlink function Allows installing symlinks directly from meson, which can become useful in multiple scenarios. Current main use is to help moving forward #9557 --- docs/markdown/snippets/install_symlink.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docs/markdown/snippets/install_symlink.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/install_symlink.md b/docs/markdown/snippets/install_symlink.md new file mode 100644 index 0000000..752c422 --- /dev/null +++ b/docs/markdown/snippets/install_symlink.md @@ -0,0 +1,11 @@ +## install_symlink function + +It is now possible to request for symbolic links to be installed during +installation. The `install_symlink` function takes a positional argument to +the link name, and installs a symbolic link pointing to `pointing_to` target. +The link will be created under `install_dir` directory and cannot contain path +separators. + +```meson +install_symlink('target', pointing_to: '../bin/target', install_dir: '/usr/sbin') +``` -- cgit v1.1