Add support for meson build system.

For now, let's keep support for both - autotools and meson.
This commit is contained in:
Daniel Zatovic
2022-11-29 18:25:13 +01:00
committed by Milan Broz
parent 9d5327c37b
commit 114a13af84
20 changed files with 2067 additions and 14 deletions

View File

@@ -0,0 +1,28 @@
libargon2_sources = files(
'blake2/blake2b.c',
'argon2.c',
'core.c',
'encoding.c',
'thread.c',
)
if use_internal_sse_argon2
libargon2_sources += files(
'opt.c',
)
else
libargon2_sources += files(
'ref.c',
)
endif
libargon2 = static_library('argon2',
libargon2_sources,
override_options : ['c_std=c89', 'optimization=3'],
build_by_default : false,
include_directories: include_directories(
'blake2',
),
dependencies : [
threads,
])