expand tests to check both static and shared intl dependency

pull/8989/head
Eli Schwartz 4 years ago
parent 1fb6c93947
commit 82e92e90ec
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      test cases/frameworks/6 gettext/meson.build
  2. 1
      test cases/frameworks/6 gettext/meson_options.txt
  3. 8
      test cases/frameworks/6 gettext/test.json

@ -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

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

@ -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"]
}

Loading…
Cancel
Save