diff options
Diffstat (limited to 'meson/test cases/frameworks/6 gettext/data')
7 files changed, 97 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/6 gettext/data/data3/meson.build b/meson/test cases/frameworks/6 gettext/data/data3/meson.build new file mode 100644 index 000000000..044b498bf --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/data/data3/meson.build @@ -0,0 +1,9 @@ +# Target name will contain a path separator +i18n.merge_file( + input: 'test.desktop.in', + output: 'test4.desktop', + type: 'desktop', + po_dir: '../../po', + install: true, + install_dir: join_paths(get_option('datadir'), 'applications') +) diff --git a/meson/test cases/frameworks/6 gettext/data/data3/test.desktop.in b/meson/test cases/frameworks/6 gettext/data/data3/test.desktop.in new file mode 100644 index 000000000..33b9a9fd8 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/data/data3/test.desktop.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Test +GenericName=Application +Comment=Test Application +Type=Application + diff --git a/meson/test cases/frameworks/6 gettext/data/meson.build b/meson/test cases/frameworks/6 gettext/data/meson.build new file mode 100644 index 000000000..1afb40370 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/data/meson.build @@ -0,0 +1,58 @@ +# 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') diff --git a/meson/test cases/frameworks/6 gettext/data/test.desktop.in b/meson/test cases/frameworks/6 gettext/data/test.desktop.in new file mode 100644 index 000000000..33b9a9fd8 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/data/test.desktop.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Test +GenericName=Application +Comment=Test Application +Type=Application + diff --git a/meson/test cases/frameworks/6 gettext/data/test2.desktop.in b/meson/test cases/frameworks/6 gettext/data/test2.desktop.in new file mode 100644 index 000000000..41f931c36 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/data/test2.desktop.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Test 2 +GenericName=Application +Comment=Test Application +Type=Application + diff --git a/meson/test cases/frameworks/6 gettext/data/test5.desktop.in.in b/meson/test cases/frameworks/6 gettext/data/test5.desktop.in.in new file mode 100644 index 000000000..c75bf7391 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/data/test5.desktop.in.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Test 2 +GenericName=@NAME@ +Comment=Test Application +Type=Application + diff --git a/meson/test cases/frameworks/6 gettext/data/test6.desktop.in.in b/meson/test cases/frameworks/6 gettext/data/test6.desktop.in.in new file mode 100644 index 000000000..c75bf7391 --- /dev/null +++ b/meson/test cases/frameworks/6 gettext/data/test6.desktop.in.in @@ -0,0 +1,6 @@ +[Desktop Entry] +Name=Test 2 +GenericName=@NAME@ +Comment=Test Application +Type=Application + |