This repository has been archived on 2022-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
fortuna/meson.build
surtur 7626158f76
All checks were successful
continuous-integration/drone/push Build is passing
add basic meson.build file
2022-02-03 21:39:35 +01:00

32 lines
722 B
Meson

# configure and build with: meson build && ninja -C build
project('fortuna', ['cpp'], license: 'GPL', default_options: ['cpp_std=c++20'])
cc = meson.get_compiler('cpp')
fmt_dep = cc.find_library('fmt', required : true)
cryptopp_dep = cc.find_library('cryptopp', required : true)
thread_dep = dependency('threads')
sources = [
'main.cpp',
'fortuna.cpp',
'generator.cpp',
'accumulator.cpp',
'pool.cpp',
'seed_file_management.cpp',
'urandom_entropy_src.cpp',
'do_task.cpp',
]
cc_args = ['-std=c++20']
incdir = include_directories('.')
executable('fortuna', sources,
dependencies : [thread_dep, fmt_dep, cryptopp_dep],
include_directories: incdir,
cpp_args: cc_args)
# [binaries]
cpp_ld = 'lld'