Debian Codegraph @

test cases/common/268 install functions and follow symlinks/meson.build

raw
1 project('install_data following symlinks')
2
3 if build_machine.system() == 'windows'
4 error('MESON_SKIP_TEST symlinks (typically) do not work on Windows.')
5 endif
6
7 install_data(
8 'foo/link1',
9 install_dir: get_option('datadir') / 'followed',
10 follow_symlinks: true,
11 )
12
13 install_headers(
14 'foo/link2.h',
15 follow_symlinks: true,
16 subdir: 'followed'
17 )
18
19 install_data(
20 'foo/link1',
21 install_dir: get_option('datadir'),
22 follow_symlinks: false,
23 )
24
25 install_headers(
26 'foo/link2.h',
27 follow_symlinks: false,
28 )
29
30 install_subdir(
31 'foo',
32 install_dir: get_option('datadir') / 'subdir',
33 strip_directory: true,
34 follow_symlinks: false,
35 )
36
37 install_subdir(
38 'foo',
39 install_dir: get_option('datadir') / 'subdir_followed',
40 strip_directory: true,
41 follow_symlinks: true,
42 )