New-Cli-Installer/subprojects/packagefiles/fmt/meson.build
Vladislav Nepogodin 45cc463df1
♻ update deps
2023-12-03 19:39:03 +04:00

38 lines
838 B
Meson

project('fmt', 'cpp',
version : '10.1.1',
license : 'BSD',
default_options : [
'cpp_std=c++20',
'default_library=static',
]
)
fmt_private_cpp_args = [ ]
fmt_interface_cpp_args = [ ]
libtype = get_option('default_library')
if libtype == 'shared'
fmt_private_cpp_args += [ '-DFMT_EXPORT' ]
fmt_interface_cpp_args += [ '-DFMT_SHARED' ]
endif
fmt_inc = include_directories('include')
fmt_lib = library('fmt',
sources : [
'src/format.cc',
'src/os.cc'
],
cpp_args : fmt_private_cpp_args,
include_directories : fmt_inc
)
fmt_dep = declare_dependency(
include_directories : fmt_inc,
compile_args : fmt_interface_cpp_args,
link_with : fmt_lib
)
fmt_header_only_dep = declare_dependency(
include_directories : fmt_inc,
compile_args : '-DFMT_HEADER_ONLY'
)