mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-24 06:52:24 +08:00
30 lines
856 B
Meson
30 lines
856 B
Meson
project('spdlog', 'cpp', version : '1.12.0', license: 'MIT',
|
|
default_options : ['cpp_std=c++20'])
|
|
|
|
inc = include_directories('include')
|
|
|
|
thread_dep = dependency('threads')
|
|
|
|
spdlog_dependencies = [thread_dep]
|
|
spdlog_compile_args = []
|
|
|
|
|
|
if get_option('external_fmt')
|
|
fmt_dep = dependency('fmt')
|
|
spdlog_dependencies += fmt_dep
|
|
spdlog_compile_args += '-DSPDLOG_FMT_EXTERNAL'
|
|
endif
|
|
|
|
if get_option('compile_library')
|
|
spdlog_compile_args += '-DSPDLOG_COMPILED_LIB'
|
|
subdir('src')
|
|
|
|
spdlog_dep = declare_dependency(include_directories : inc, dependencies : spdlog_dependencies, link_with : spdlog_lib, compile_args : spdlog_compile_args)
|
|
else
|
|
spdlog_dep = declare_dependency(include_directories : inc, dependencies : spdlog_dependencies, compile_args : spdlog_compile_args)
|
|
endif
|
|
|
|
if get_option('tests')
|
|
subdir('tests')
|
|
endif
|