expand tests to check both static and shared intl dependency

This commit is contained in:
Eli Schwartz 2021-07-04 17:50:41 -04:00
parent 1fb6c93947
commit 82e92e90ec
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
3 changed files with 10 additions and 1 deletions

View File

@ -10,7 +10,7 @@ if not xgettext.found()
error('MESON_SKIP_TEST xgettext not found.')
endif
intl = dependency('intl', required: false)
intl = dependency('intl', required: false, static: get_option('static'))
if not intl.found()
error('MESON_SKIP_TEST libintl/gettext functions not found.')
endif

View File

@ -0,0 +1 @@
option('static', type : 'boolean', value : false, description : 'build statically linked binaries')

View File

@ -11,5 +11,13 @@
{"type": "file", "file": "usr/share/applications/test3.desktop"},
{"type": "file", "file": "usr/share/applications/test4.desktop"}
],
"matrix": {
"options": {
"static": [
{ "val": "true" },
{ "val": "false" }
]
}
},
"skip_on_jobname": ["azure", "cygwin"]
}