Commit bbad543e authored by Patrick Griffis's avatar Patrick Griffis Committed by Michael Catanzaro

build: Don't build mock PKCS #11 module on unsupported backends

Fixes #101
parent a972f07f
Pipeline #124217 passed with stage
in 2 minutes and 15 seconds
......@@ -21,15 +21,19 @@ envs = [
'G_TEST_BUILDDIR=' + meson.current_build_dir(),
]
mock_pkcs11_module = shared_module('mock-pkcs11',
sources: 'mock-pkcs11.c',
name_prefix: '',
gnu_symbol_visibility: 'hidden',
dependencies: [
gio_dep,
gnutls_dep,
]
)
if backends.contains('gnutls')
mock_pkcs11_module = shared_module('mock-pkcs11',
sources: 'mock-pkcs11.c',
name_prefix: '',
gnu_symbol_visibility: 'hidden',
dependencies: [
gio_dep,
gnutls_dep,
]
)
else
mock_pkcs11_module = []
endif
test_programs = [
['certificate', [], deps, [], [mock_pkcs11_module]],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment