Add shared library support for Windows
This commit is contained in:
		@@ -14,12 +14,12 @@
 | 
			
		||||
//
 | 
			
		||||
#ifdef _WIN32
 | 
			
		||||
#include <spdlog/sinks/wincolor_sink-inl.h>
 | 
			
		||||
template class spdlog::sinks::wincolor_sink<spdlog::details::console_mutex>;
 | 
			
		||||
template class spdlog::sinks::wincolor_sink<spdlog::details::console_nullmutex>;
 | 
			
		||||
template class spdlog::sinks::wincolor_stdout_sink<spdlog::details::console_mutex>;
 | 
			
		||||
template class spdlog::sinks::wincolor_stdout_sink<spdlog::details::console_nullmutex>;
 | 
			
		||||
template class spdlog::sinks::wincolor_stderr_sink<spdlog::details::console_mutex>;
 | 
			
		||||
template class spdlog::sinks::wincolor_stderr_sink<spdlog::details::console_nullmutex>;
 | 
			
		||||
template class SPDLOG_API spdlog::sinks::wincolor_sink<spdlog::details::console_mutex>;
 | 
			
		||||
template class SPDLOG_API spdlog::sinks::wincolor_sink<spdlog::details::console_nullmutex>;
 | 
			
		||||
template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink<spdlog::details::console_mutex>;
 | 
			
		||||
template class SPDLOG_API spdlog::sinks::wincolor_stdout_sink<spdlog::details::console_nullmutex>;
 | 
			
		||||
template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink<spdlog::details::console_mutex>;
 | 
			
		||||
template class SPDLOG_API spdlog::sinks::wincolor_stderr_sink<spdlog::details::console_nullmutex>;
 | 
			
		||||
#else
 | 
			
		||||
#include "spdlog/sinks/ansicolor_sink-inl.h"
 | 
			
		||||
template class spdlog::sinks::ansicolor_sink<spdlog::details::console_mutex>;
 | 
			
		||||
@@ -32,16 +32,16 @@ template class spdlog::sinks::ansicolor_stderr_sink<spdlog::details::console_nul
 | 
			
		||||
 | 
			
		||||
// factory methods for color loggers
 | 
			
		||||
#include "spdlog/sinks/stdout_color_sinks-inl.h"
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::synchronous_factory>(
 | 
			
		||||
    const std::string &logger_name, color_mode mode);
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::synchronous_factory>(
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::synchronous_factory>(
 | 
			
		||||
    const std::string &logger_name, color_mode mode);
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::synchronous_factory>(
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::synchronous_factory>(
 | 
			
		||||
    const std::string &logger_name, color_mode mode);
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::synchronous_factory>(
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::synchronous_factory>(
 | 
			
		||||
    const std::string &logger_name, color_mode mode);
 | 
			
		||||
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
template std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_mt<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stdout_color_st<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_mt<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
template SPDLOG_API std::shared_ptr<spdlog::logger> spdlog::stderr_color_st<spdlog::async_factory>(const std::string &logger_name, color_mode mode);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user