The Meson Build System http://mesonbuild.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.4 KiB

# Use filename substitution
i18n.merge_file(
input: 'test.desktop.in',
output: '@BASENAME@',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
# Use filename substitution for another file
i18n.merge_file(
input: files('test2.desktop.in'),
output: '@BASENAME@',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
i18n.merge_file(
input: 'test.desktop.in',
output: 'test3.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
# Regression test when passing File object as input and '@BASENAME@' as output
# in multiple i18n.merge_file() calls. It used to make target name collision.
# https://github.com/mesonbuild/meson/issues/9022
i18n.merge_file(
input: configure_file(
input: 'test5.desktop.in.in',
output: '@BASENAME@',
configuration: { 'NAME': 'Application' },
),
output: '@BASENAME@',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
i18n.merge_file(
input: configure_file(
input: 'test6.desktop.in.in',
output: '@BASENAME@',
configuration: { 'NAME': 'Application' },
),
output: '@BASENAME@',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications')
)
subdir('data3')