diff options
author | aqua <aqua@iserlohn-fortress.net> | 2023-10-08 19:50:00 +0300 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2023-11-27 21:02:22 +0200 |
commit | fc13fb2ba5993d06d9d6ae5e80bc337aebbdc119 (patch) | |
tree | 9607ab4d5f1d4069d4f761a0b25eada36088bd6b /lib/blake2/meson.build | |
parent | rules.mk: make include paths absolute (diff) | |
download | kernel-fc13fb2ba5993d06d9d6ae5e80bc337aebbdc119.tar.xz |
Use meson build system
Diffstat (limited to 'lib/blake2/meson.build')
-rw-r--r-- | lib/blake2/meson.build | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/blake2/meson.build b/lib/blake2/meson.build new file mode 100644 index 0000000..dc06f3e --- /dev/null +++ b/lib/blake2/meson.build @@ -0,0 +1,24 @@ + +blake2s_srcs = files('blake2s.c') +blake2s_incl = include_directories('include') + +blake2s = declare_dependency( + link_with: static_library('blake2s', blake2s_srcs, + include_directories: blake2s_incl, + dependencies: libk), + include_directories: blake2s_incl, +) + +# tests +blake2s_sut = declare_dependency( + link_with: library('blake2s_sut', blake2s_srcs, + include_directories: blake2s_incl, + native: true), + include_directories: blake2s_incl, +) + +test('blake2s selftest', + executable('test_blake2s_selftest', 'tests/blake2s_selftest.cc', + dependencies: [ blake2s_sut, gtest ], + native: true) +) |