Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
8b244ca9
Commit
8b244ca9
authored
May 11, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved format.cpp into spdlog.cpp - this way only one src file is needed
parent
fb9e51d9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
52 additions
and
53 deletions
+52
-53
CMakeLists.txt
CMakeLists.txt
+1
-1
common.h
include/spdlog/common.h
+0
-1
format.cpp
src/format.cpp
+0
-51
spdlog.cpp
src/spdlog.cpp
+51
-0
No files found.
CMakeLists.txt
View file @
8b244ca9
...
...
@@ -60,7 +60,7 @@ message(STATUS "Static lib: " ${SPDLOG_STATIC_LIB})
if
(
SPDLOG_STATIC_LIB
)
add_definitions
(
-DSPDLOG_STATIC_LIB
)
set
(
SRC_BASE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/src"
)
set
(
SRC_FILES
"
${
SRC_BASE
}
/spdlog.cpp"
"
${
SRC_BASE
}
/format.cpp"
)
set
(
SRC_FILES
"
${
SRC_BASE
}
/spdlog.cpp"
)
add_library
(
spdlog STATIC
${
SRC_FILES
}
)
target_include_directories
(
spdlog PUBLIC
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>"
)
target_link_libraries
(
spdlog -Wl,--as-needed
)
...
...
include/spdlog/common.h
View file @
8b244ca9
...
...
@@ -19,7 +19,6 @@
#include <locale>
#endif
#ifdef SPDLOG_STATIC_LIB
#undef SPDLOG_HEADER_ONLY
#define SPDLOG_INLINE
...
...
src/format.cpp
deleted
100644 → 0
View file @
fb9e51d9
// Copyright (c) 2012 - 2016, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
// Slightly modified version of fmt lib to include bundled format-inl.h
#if !defined(SPDLOG_FMT_EXTERNAL)
#include "spdlog/fmt/bundled/format-inl.h"
#else
#include "fmt/format-inl.h"
#endif
FMT_BEGIN_NAMESPACE
template
struct
internal
::
basic_data
<
void
>
;
template
FMT_API
internal
::
locale_ref
::
locale_ref
(
const
std
::
locale
&
loc
);
template
FMT_API
std
::
locale
internal
::
locale_ref
::
get
<
std
::
locale
>
()
const
;
// Explicit instantiations for char.
template
FMT_API
char
internal
::
thousands_sep_impl
(
locale_ref
);
template
FMT_API
void
internal
::
basic_buffer
<
char
>::
append
(
const
char
*
,
const
char
*
);
template
FMT_API
void
internal
::
arg_map
<
format_context
>::
init
(
const
basic_format_args
<
format_context
>
&
args
);
template
FMT_API
int
internal
::
char_traits
<
char
>::
format_float
(
char
*
,
std
::
size_t
,
const
char
*
,
int
,
double
);
template
FMT_API
int
internal
::
char_traits
<
char
>::
format_float
(
char
*
,
std
::
size_t
,
const
char
*
,
int
,
long
double
);
template
FMT_API
std
::
string
internal
::
vformat
<
char
>
(
string_view
,
basic_format_args
<
format_context
>
);
template
FMT_API
format_context
::
iterator
internal
::
vformat_to
(
internal
::
buffer
&
,
string_view
,
basic_format_args
<
format_context
>
);
template
FMT_API
void
internal
::
sprintf_format
(
double
,
internal
::
buffer
&
,
core_format_specs
);
template
FMT_API
void
internal
::
sprintf_format
(
long
double
,
internal
::
buffer
&
,
core_format_specs
);
// Explicit instantiations for wchar_t.
template
FMT_API
wchar_t
internal
::
thousands_sep_impl
(
locale_ref
);
template
FMT_API
void
internal
::
basic_buffer
<
wchar_t
>::
append
(
const
wchar_t
*
,
const
wchar_t
*
);
template
FMT_API
void
internal
::
arg_map
<
wformat_context
>::
init
(
const
basic_format_args
<
wformat_context
>
&
);
template
FMT_API
int
internal
::
char_traits
<
wchar_t
>::
format_float
(
wchar_t
*
,
std
::
size_t
,
const
wchar_t
*
,
int
,
double
);
template
FMT_API
int
internal
::
char_traits
<
wchar_t
>::
format_float
(
wchar_t
*
,
std
::
size_t
,
const
wchar_t
*
,
int
,
long
double
);
template
FMT_API
std
::
wstring
internal
::
vformat
<
wchar_t
>
(
wstring_view
,
basic_format_args
<
wformat_context
>
);
FMT_END_NAMESPACE
src/spdlog.cpp
View file @
8b244ca9
...
...
@@ -56,3 +56,54 @@ template class spdlog::sinks::ansicolor_sink<spdlog::details::console_stderr, sp
#include "spdlog/details/fmt_helper.h"
template
void
spdlog
::
details
::
fmt_helper
::
append_string_view
(
spdlog
::
string_view_t
view
,
fmt
::
memory_buffer
&
dest
);
template
spdlog
::
string_view_t
spdlog
::
details
::
fmt_helper
::
to_string_view
(
const
fmt
::
memory_buffer
&
buf
)
SPDLOG_NOEXCEPT
;
/////////////////////////////////////////////////////////////////////////
// Slightly modified version of fmt lib's format.cc source file
// Copyright (c) 2012 - 2016, Victor Zverovich
// All rights reserved.
/////////////////////////////////////////////////////////////////////////
#if !defined(SPDLOG_FMT_EXTERNAL)
#include "spdlog/fmt/bundled/format-inl.h"
#else
#include "fmt/format-inl.h"
#endif
FMT_BEGIN_NAMESPACE
template
struct
internal
::
basic_data
<
void
>
;
template
FMT_API
internal
::
locale_ref
::
locale_ref
(
const
std
::
locale
&
loc
);
template
FMT_API
std
::
locale
internal
::
locale_ref
::
get
<
std
::
locale
>
()
const
;
// Explicit instantiations for char.
template
FMT_API
char
internal
::
thousands_sep_impl
(
locale_ref
);
template
FMT_API
void
internal
::
basic_buffer
<
char
>::
append
(
const
char
*
,
const
char
*
);
template
FMT_API
void
internal
::
arg_map
<
format_context
>::
init
(
const
basic_format_args
<
format_context
>
&
args
);
template
FMT_API
int
internal
::
char_traits
<
char
>::
format_float
(
char
*
,
std
::
size_t
,
const
char
*
,
int
,
double
);
template
FMT_API
int
internal
::
char_traits
<
char
>::
format_float
(
char
*
,
std
::
size_t
,
const
char
*
,
int
,
long
double
);
template
FMT_API
std
::
string
internal
::
vformat
<
char
>
(
string_view
,
basic_format_args
<
format_context
>
);
template
FMT_API
format_context
::
iterator
internal
::
vformat_to
(
internal
::
buffer
&
,
string_view
,
basic_format_args
<
format_context
>
);
template
FMT_API
void
internal
::
sprintf_format
(
double
,
internal
::
buffer
&
,
core_format_specs
);
template
FMT_API
void
internal
::
sprintf_format
(
long
double
,
internal
::
buffer
&
,
core_format_specs
);
// Explicit instantiations for wchar_t.
template
FMT_API
wchar_t
internal
::
thousands_sep_impl
(
locale_ref
);
template
FMT_API
void
internal
::
basic_buffer
<
wchar_t
>::
append
(
const
wchar_t
*
,
const
wchar_t
*
);
template
FMT_API
void
internal
::
arg_map
<
wformat_context
>::
init
(
const
basic_format_args
<
wformat_context
>
&
);
template
FMT_API
int
internal
::
char_traits
<
wchar_t
>::
format_float
(
wchar_t
*
,
std
::
size_t
,
const
wchar_t
*
,
int
,
double
);
template
FMT_API
int
internal
::
char_traits
<
wchar_t
>::
format_float
(
wchar_t
*
,
std
::
size_t
,
const
wchar_t
*
,
int
,
long
double
);
template
FMT_API
std
::
wstring
internal
::
vformat
<
wchar_t
>
(
wstring_view
,
basic_format_args
<
wformat_context
>
);
FMT_END_NAMESPACE
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment