diff options
| author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-08-21 16:27:56 +0200 |
|---|---|---|
| committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-10-03 11:46:34 +0200 |
| commit | 2b482e39a90fa1929e0fa4006861f4264f28adb2 (patch) | |
| tree | 0af5ef229d25bef1b974445406fc3c9d28c0756f /docs/yaml/functions/install_data.yaml | |
| parent | ad65a699f93a7659739287882ca27c58c564670b (diff) | |
| download | meson-2b482e39a90fa1929e0fa4006861f4264f28adb2.tar.gz | |
docs: Add the YAML Reference manual
Diffstat (limited to 'docs/yaml/functions/install_data.yaml')
| -rw-r--r-- | docs/yaml/functions/install_data.yaml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/docs/yaml/functions/install_data.yaml b/docs/yaml/functions/install_data.yaml new file mode 100644 index 000000000..be5dcfe56 --- /dev/null +++ b/docs/yaml/functions/install_data.yaml @@ -0,0 +1,49 @@ +name: install_data +returns: void +description: | + Installs files from the source tree that are listed as positional arguments. + + See [Installing](Installing.md) for more examples. + +varargs: + name: file + type: file | str + description: Files to install. + +kwargs: + install_dir: + type: str + description: | + The absolute or relative path to the installation directory. + If this is a relative path, it is assumed to be relative to the prefix. + + If omitted, the directory defaults to `{datadir}/{projectname}` *(since 0.45.0)*. + + install_mode: + type: list[str | int] + since: 0.38.0 + description: | + specify the file mode in symbolic format and + optionally the owner/uid and group/gid for the installed files. For + example: + + `install_mode: 'rw-r--r--'` for just the file mode + + `install_mode: ['rw-r--r--', 'nobody', 'nogroup']` for the file mode and the user/group + + `install_mode: ['rw-r-----', 0, 0]` for the file mode and uid/gid + + To leave any of these three as the default, specify `false`. + + rename: + type: list[str] + since: 0.46.0 + description: | + If specified renames each source file into corresponding file from `rename` list. + Nested paths are allowed and they are + joined with `install_dir`. Length of `rename` list must be equal to + the number of sources. + + sources: + type: list[file | str] + description: Additional files to install. |
