Skip to content
Snippets Groups Projects
Commit a6ce0a1b authored by Timo Teräs's avatar Timo Teräs
Browse files

build/crypto: minor clean up for crypto defines

parent cc1d955e
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@
#include "apk_crypto_openssl.h"
#elif defined(CRYPTO_USE_MBEDTLS)
#include "apk_crypto_mbedtls.h"
#else
#error Crypto backend not selected
#endif
// Digest
......
......@@ -91,16 +91,11 @@ apk_src = [
]
apk_cargs = [
'-DAPK_VERSION="' + meson.project_version() + '"',
'-D_ATFILE_SOURCE',
'-DAPK_VERSION="' + meson.project_version() + '"',
'-DCRYPTO_USE_@0@'.format(crypto_backend.to_upper()),
]
if crypto_backend == 'openssl'
apk_cargs += [ '-DCRYPTO_USE_OPENSSL' ]
elif crypto_backend == 'mbedtls'
apk_cargs += [ '-DCRYPTO_USE_MBEDTLS' ]
endif
if lua_bin.found()
genhelp_script = files('genhelp.lua')
genhelp_args = [lua_bin, genhelp_script, '@INPUT@']
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment