32 lines
722 B
Meson
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'
|