mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-01 19:09:03 +08:00
wip static-lib
This commit is contained in:
@@ -65,6 +65,6 @@ private:
|
||||
};
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/async_logger.cpp"
|
||||
#endif // SPDLOG_HEADER_ONLY
|
||||
#endif
|
||||
|
@@ -23,10 +23,11 @@
|
||||
|
||||
#include "spdlog/fmt/fmt.h"
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#define SPDLOG_INLINE inline
|
||||
#else
|
||||
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#define SPDLOG_INLINE
|
||||
#else
|
||||
#define SPDLOG_INLINE inline
|
||||
#endif
|
||||
|
||||
// visual studio upto 2013 does not support noexcept nor constexpr
|
||||
|
@@ -57,6 +57,6 @@ private:
|
||||
} // namespace details
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/file_helper.cpp"
|
||||
#endif // ! SPDLOG_HEADER_ONLY
|
||||
#endif
|
||||
|
@@ -33,6 +33,6 @@ struct log_msg
|
||||
} // namespace details
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/log_msg.cpp"
|
||||
#endif // SPDLOG_HEADER_ONLY
|
||||
#endif
|
||||
|
@@ -88,6 +88,6 @@ void wbuf_to_utf8buf(const fmt::wmemory_buffer &wbuf, fmt::memory_buffer &target
|
||||
} // namespace details
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/os.cpp"
|
||||
#endif
|
||||
|
@@ -97,6 +97,6 @@ private:
|
||||
};
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/pattern_formatter.cpp"
|
||||
#endif
|
||||
|
@@ -101,6 +101,6 @@ private:
|
||||
} // namespace details
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/registry.cpp"
|
||||
#endif // SPDLOG_HEADER_ONLY
|
||||
#endif
|
||||
|
@@ -11,6 +11,8 @@
|
||||
#include <vector>
|
||||
|
||||
namespace spdlog {
|
||||
class async_logger;
|
||||
|
||||
namespace details {
|
||||
|
||||
using async_logger_ptr = std::shared_ptr<spdlog::async_logger>;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/async_logger.h"
|
||||
#endif
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
//
|
||||
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/details/file_helper.h"
|
||||
|
||||
#endif
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#include "spdlog/details/os.h"
|
||||
#include "spdlog/sinks/sink.h"
|
||||
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/details/log_msg.h"
|
||||
#endif
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/logger.h"
|
||||
#endif
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
// Copyright(c) 2015 Gabi Melman.
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
//
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/details/os.h"
|
||||
#endif
|
||||
|
||||
|
@@ -3,9 +3,9 @@
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
//
|
||||
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/details/pattern_formatter.h"
|
||||
#endif // !SPDLOG_HEADER_ONLY
|
||||
#endif
|
||||
|
||||
#include "spdlog/details/fmt_helper.h"
|
||||
#include "spdlog/details/log_msg.h"
|
||||
|
@@ -2,7 +2,7 @@
|
||||
// Copyright(c) 2015 Gabi Melman.
|
||||
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
|
||||
//
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/details/registry.h"
|
||||
#endif
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#include "spdlog/common.h"
|
||||
#include "spdlog/details/pattern_formatter.h"
|
||||
|
||||
#ifndef SPDLOG_HEADER_ONLY
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/sinks/sink.h"
|
||||
#endif
|
||||
|
||||
|
@@ -340,6 +340,6 @@ protected:
|
||||
};
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/logger.cpp"
|
||||
#endif // SPDLOG_HEADER_ONLY
|
||||
#endif
|
||||
|
@@ -41,6 +41,6 @@ protected:
|
||||
} // namespace sinks
|
||||
} // namespace spdlog
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#include "spdlog/impl/sink.cpp"
|
||||
#endif // SPDLOG_HEADER_ONLY
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user