1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-12-04 20:07:36 +00:00

build: Actually translate metainfo

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/751>
This commit is contained in:
Balló György 2024-08-30 23:10:13 +02:00 committed by Marge Bot
parent 5fde6bcc3a
commit ef5467fb64
5 changed files with 13 additions and 6 deletions

View file

@ -1,3 +1,6 @@
gnome = import('gnome')
i18n = import('i18n')
datadir = get_option('datadir') datadir = get_option('datadir')
sysconfdir = get_option('sysconfdir') sysconfdir = get_option('sysconfdir')
@ -67,8 +70,12 @@ endif
# Metainfo file # Metainfo file
install_data('org.gnome.Calls.metainfo.xml', metainfo_file = i18n.merge_file(
install_dir: join_paths(datadir, 'metainfo'), input: 'org.gnome.Calls.metainfo.xml.in',
output: 'org.gnome.Calls.metainfo.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(datadir, 'metainfo')
) )
appstreamcli = find_program('appstreamcli', required: false) appstreamcli = find_program('appstreamcli', required: false)
@ -77,8 +84,7 @@ if appstreamcli.found()
args: ['validate', args: ['validate',
'--pedantic', '--pedantic',
'--no-net', '--no-net',
join_paths(meson.current_source_dir(), metainfo_file
'org.gnome.Calls.metainfo.xml')
]) ])
endif endif

View file

@ -159,11 +159,11 @@ summary({
}) })
subdir('po') subdir('po')
subdir('data')
subdir('src') subdir('src')
subdir('plugins') subdir('plugins')
subdir('tests') subdir('tests')
subdir('doc') subdir('doc')
subdir('data')
# gnome.post_install() is available since meson 0.59.0 # gnome.post_install() is available since meson 0.59.0
# Distributions use their own tooling (e.g. postinst, triggers, etc) # Distributions use their own tooling (e.g. postinst, triggers, etc)

View file

@ -1,7 +1,7 @@
# List of source files containing translatable strings. # List of source files containing translatable strings.
data/org.gnome.Calls.desktop.in data/org.gnome.Calls.desktop.in
data/org.gnome.Calls-daemon.desktop.in data/org.gnome.Calls-daemon.desktop.in
data/org.gnome.Calls.metainfo.xml data/org.gnome.Calls.metainfo.xml.in
data/org.gnome.Calls.gschema.xml data/org.gnome.Calls.gschema.xml
src/calls-account.c src/calls-account.c
src/calls-account-overview.c src/calls-account-overview.c

View file

@ -78,6 +78,7 @@ calls_resources = gnome.compile_resources(
'calls.gresources.xml', 'calls.gresources.xml',
source_dir: ['ui', '../data'], source_dir: ['ui', '../data'],
c_name: 'call', c_name: 'call',
dependencies: metainfo_file,
) )
calls_generated_sources = [ calls_generated_sources = [