Log/meson.build

20 lines
386 B
Meson
Raw Permalink Normal View History

2021-08-15 05:19:52 +02:00
inc = include_directories('.')
cpp_args = []
if get_variable('log_thread_safe', false)
cpp_args += '-DLOG_MUTEX=1'
endif
2021-08-15 16:30:21 +02:00
lib_okaestne_log = static_library('okaestne-log',
2021-08-15 05:19:52 +02:00
'Log.cpp',
include_directories: inc,
cpp_args: cpp_args
2021-08-15 05:19:52 +02:00
)
# to depend on in other projects:
2021-08-15 16:30:21 +02:00
okaestne_log_dep = declare_dependency(
2021-08-15 05:19:52 +02:00
link_with: lib_okaestne_log,
include_directories: inc
)