meson: add variable check for mutex usage

This commit is contained in:
Oliver 2021-08-15 18:27:11 +02:00
parent b53b9d44e1
commit bdf69f395d
Signed by untrusted user: okaestne
GPG Key ID: 06A81B143EA9588F
1 changed files with 7 additions and 1 deletions

View File

@ -1,9 +1,15 @@
inc = include_directories('.')
cpp_args = []
if get_variable('log_thread_safe', false)
cpp_args += '-DLOG_MUTEX=1'
endif
lib_okaestne_log = static_library('okaestne-log',
'Log.cpp',
include_directories: inc,
cpp_args: ['-O2', '-std=c++11', '-Wall', '-Wextra', '-pedantic-errors', '-g']
cpp_args: cpp_args
)
# to depend on in other projects: