Clarify multi-component source directory behavior of install_subdir()

pull/3010/head
Aleksey Filippov 7 years ago
parent 549f9a41e5
commit 13f91840e3
  1. 8
      docs/markdown/Reference-manual.md

@ -787,6 +787,7 @@ The following keyword arguments are supported:
Names are interpreted as paths relative to the `subdir_name` location. Names are interpreted as paths relative to the `subdir_name` location.
- `install_dir`: the location to place the installed subdirectory. - `install_dir`: the location to place the installed subdirectory.
- `strip_directory`: install directory contents. `strip_directory=false` by default. - `strip_directory`: install directory contents. `strip_directory=false` by default.
If `strip_directory=false` only last component of source path is used.
Since 0.45.0 Since 0.45.0
For a given directory `foo`: For a given directory `foo`:
@ -813,6 +814,13 @@ share/
file2 file2
``` ```
`install_subdir('foo/bar', install_dir : 'share', stripe_directory : false)` creates
```
share/
bar/
file1
```
### is_variable() ### is_variable()
``` meson ``` meson

Loading…
Cancel
Save