| 1 |
project('install a whole subdir', |
| 2 |
default_options : ['install_umask=preserve']) |
| 3 |
|
| 4 |
# A subdir with an exclusion: |
| 5 |
install_subdir('sub2', |
| 6 |
exclude_files : ['excluded-three.dat'], |
| 7 |
exclude_directories : ['excluded'], |
| 8 |
install_dir : 'share') |
| 9 |
|
| 10 |
# More exclusions |
| 11 |
install_subdir('sub3', |
| 12 |
exclude_files : ['data/excluded.txt'], |
| 13 |
exclude_directories : ['data/excluded'], |
| 14 |
install_dir : 'share') |
| 15 |
|
| 16 |
subdir('subdir') |
| 17 |
# A subdir with write perms only for the owner |
| 18 |
# and read-list perms for owner and group |
| 19 |
install_subdir('sub1', install_dir : 'share', install_mode : ['rwxr-x--t', 'root']) |
| 20 |
install_subdir('sub/sub1', install_dir : 'share') |
| 21 |
|
| 22 |
# strip_directory |
| 23 |
install_subdir('sub_elided', install_dir : 'share', strip_directory : true) |
| 24 |
install_subdir('nested_elided/sub', install_dir : 'share', strip_directory : true) |
| 25 |
|
| 26 |
# Create new empty directory that doesn't exist in the source tree |
| 27 |
install_subdir('new_directory', install_dir : 'share') |