Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2019-09-18 15:01:23 +0300
committergabime <gmelman1@gmail.com>2019-09-18 15:01:23 +0300
commit77338494786c96836fb336ac107ae76d5b0366a7 (patch)
tree21af3bd39b158e374ca4001d78d074ade353023b /meson.build
parente771f4e75e0275c436bfad2ef03910347918e7c0 (diff)
Updated meson build
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build28
1 files changed, 23 insertions, 5 deletions
diff --git a/meson.build b/meson.build
index 05288abb..5d3ac101 100644
--- a/meson.build
+++ b/meson.build
@@ -27,21 +27,37 @@ if get_option('external_fmt')
compile_args += '-DSPDLOG_FMT_EXTERNAL'
endif
+if get_option('no_exceptions')
+ compile_args += '-DSPDLOG_NO_EXCEPTIONS'
+endif
+
# ------------------------------------
# --- Compiled library version ---
# ------------------------------------
spdlog_inc = include_directories('./include')
+spdlog_srcs = files([
+ 'src/async.cpp',
+ 'src/color_sinks.cpp',
+ 'src/file_sinks.cpp',
+ 'src/fmt.cpp',
+ 'src/spdlog.cpp',
+ 'src/stdout_sinks.cpp'
+])
+
if get_option('library_type') == 'static'
- spdlog = static_library('spdlog', ['src/spdlog.cpp'],
+ spdlog = static_library(
+ 'spdlog',
+ spdlog_srcs,
cpp_args : [compile_args] + ['-DSPDLOG_COMPILED_LIB'],
include_directories : spdlog_inc,
dependencies : dep_list,
- install : not meson.is_subproject(),
- )
+ install : not meson.is_subproject()
+ )
else
- spdlog = shared_library('spdlog', ['src/spdlog.cpp'],
+ spdlog = shared_library('spdlog',
+ spdlog_srcs,
cpp_args : [compile_args] + ['-DSPDLOG_COMPILED_LIB'],
include_directories : spdlog_inc,
dependencies : dep_list,
@@ -112,12 +128,14 @@ summary_str = '''spdlog build summary:
- building examples: @2@
- building benchmarks: @3@
- library type: @4@
+ - no exceptions: @5@
'''.format(
get_option('external_fmt'),
get_option('enable_tests'),
get_option('enable_examples'),
get_option('enable_benchmarks'),
- get_option('library_type')
+ get_option('library_type'),
+ get_option('no_exceptions')
)
message(summary_str)