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:
parent
5fde6bcc3a
commit
ef5467fb64
5 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,6 @@
|
|||
gnome = import('gnome')
|
||||
i18n = import('i18n')
|
||||
|
||||
datadir = get_option('datadir')
|
||||
sysconfdir = get_option('sysconfdir')
|
||||
|
||||
|
@ -67,8 +70,12 @@ endif
|
|||
|
||||
|
||||
# Metainfo file
|
||||
install_data('org.gnome.Calls.metainfo.xml',
|
||||
install_dir: join_paths(datadir, 'metainfo'),
|
||||
metainfo_file = i18n.merge_file(
|
||||
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)
|
||||
|
@ -77,8 +84,7 @@ if appstreamcli.found()
|
|||
args: ['validate',
|
||||
'--pedantic',
|
||||
'--no-net',
|
||||
join_paths(meson.current_source_dir(),
|
||||
'org.gnome.Calls.metainfo.xml')
|
||||
metainfo_file
|
||||
])
|
||||
endif
|
||||
|
||||
|
|
|
@ -159,11 +159,11 @@ summary({
|
|||
})
|
||||
|
||||
subdir('po')
|
||||
subdir('data')
|
||||
subdir('src')
|
||||
subdir('plugins')
|
||||
subdir('tests')
|
||||
subdir('doc')
|
||||
subdir('data')
|
||||
|
||||
# gnome.post_install() is available since meson 0.59.0
|
||||
# Distributions use their own tooling (e.g. postinst, triggers, etc)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# List of source files containing translatable strings.
|
||||
data/org.gnome.Calls.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
|
||||
src/calls-account.c
|
||||
src/calls-account-overview.c
|
||||
|
|
|
@ -78,6 +78,7 @@ calls_resources = gnome.compile_resources(
|
|||
'calls.gresources.xml',
|
||||
source_dir: ['ui', '../data'],
|
||||
c_name: 'call',
|
||||
dependencies: metainfo_file,
|
||||
)
|
||||
|
||||
calls_generated_sources = [
|
||||
|
|
Loading…
Reference in a new issue