Debian Codegraph @

test cases/frameworks/6 gettext/data/meson.build

raw
1 # Use filename substitution
2 i18n.merge_file(
3 input: 'test.desktop.in',
4 output: '@BASENAME@',
5 type: 'desktop',
6 po_dir: '../po',
7 data_dirs: '../po',
8 install: true,
9 install_dir: join_paths(get_option('datadir'), 'applications')
10 )
11
12 # Use filename substitution for another file
13 i18n.merge_file(
14 input: files('test2.desktop.in'),
15 output: '@BASENAME@',
16 type: 'desktop',
17 po_dir: '../po',
18 install: true,
19 install_dir: join_paths(get_option('datadir'), 'applications')
20 )
21
22 i18n.merge_file(
23 input: 'test.desktop.in',
24 output: 'test3.desktop',
25 type: 'desktop',
26 po_dir: '../po',
27 install: true,
28 install_dir: join_paths(get_option('datadir'), 'applications')
29 )
30
31 # Regression test when passing File object as input and '@BASENAME@' as output
32 # in multiple i18n.merge_file() calls. It used to make target name collision.
33 # https://github.com/mesonbuild/meson/issues/9022
34 i18n.merge_file(
35 input: configure_file(
36 input: 'test5.desktop.in.in',
37 output: '@BASENAME@',
38 configuration: { 'NAME': 'Application' },
39 ),
40 output: '@BASENAME@',
41 type: 'desktop',
42 po_dir: '../po',
43 install: true,
44 install_dir: join_paths(get_option('datadir'), 'applications')
45 )
46 i18n.merge_file(
47 input: configure_file(
48 input: 'test6.desktop.in.in',
49 output: '@BASENAME@',
50 configuration: { 'NAME': 'Application' },
51 ),
52 output: '@BASENAME@',
53 type: 'desktop',
54 po_dir: '../po',
55 install: true,
56 install_dir: join_paths(get_option('datadir'), 'applications')
57 )
58
59 subdir('data3')