mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-09-16 20:59:58 +00:00
data/misc/meson.build: Fix referencing possibly undefined variable "appstreamcli"
If meson is passed -Dinstall-plugin-metainfo=false, the "appstreamcli" will not be defined, but it is later referenced in global scope, which causes and "undefined variable" error in Meson Signed-off-by: Christopher Byrne <salah.coronya@gmail.com>
This commit is contained in:
@@ -2,6 +2,7 @@ appdir = join_paths(get_option('datadir'), 'applications')
|
|||||||
metainfodir = join_paths(get_option('datadir'), 'metainfo')
|
metainfodir = join_paths(get_option('datadir'), 'metainfo')
|
||||||
mimedir = join_paths(get_option('datadir'), 'mime', 'packages')
|
mimedir = join_paths(get_option('datadir'), 'mime', 'packages')
|
||||||
desktop_utils = find_program('desktop-file-validate', required: false)
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
||||||
|
appstreamcli = find_program('appstreamcli', required: false)
|
||||||
|
|
||||||
if get_option('gtk-frontend')
|
if get_option('gtk-frontend')
|
||||||
if get_option('install-appdata')
|
if get_option('install-appdata')
|
||||||
@@ -13,7 +14,6 @@ if get_option('gtk-frontend')
|
|||||||
install_dir: metainfodir
|
install_dir: metainfodir
|
||||||
)
|
)
|
||||||
|
|
||||||
appstreamcli = find_program('appstreamcli', required: false)
|
|
||||||
if appstreamcli.found()
|
if appstreamcli.found()
|
||||||
test('Validate net.zoite.Zoitechat.appdata.xml', appstreamcli,
|
test('Validate net.zoite.Zoitechat.appdata.xml', appstreamcli,
|
||||||
args: ['validate', zoitechat_appdata]
|
args: ['validate', zoitechat_appdata]
|
||||||
|
|||||||
Reference in New Issue
Block a user