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
f36be4d5
Commit
f36be4d5
authored
Mar 30, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved lite source to folders|
parent
c2b0e223
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
24 additions
and
19 deletions
+24
-19
CMakeLists.txt
CMakeLists.txt
+1
-2
CMakeLists.txt
lite/CMakeLists.txt
+0
-6
CMakeLists.txt
spdlite/CMakeLists.txt
+14
-0
CMakeLists.txt
spdlite/example/CMakeLists.txt
+3
-5
create_logger.cpp
spdlite/example/create_logger.cpp
+1
-1
example.cpp
spdlite/example/example.cpp
+3
-3
spdlite.h
spdlite/include/spdlite/spdlite.h
+0
-0
spdlite_global.h
spdlite/include/spdlite/spdlite_global.h
+0
-0
spdlite_macros.h
spdlite/include/spdlite/spdlite_macros.h
+0
-0
spdlite.cpp
spdlite/src/spdlite.cpp
+1
-1
spdlite_global.cpp
spdlite/src/spdlite_global.cpp
+1
-1
No files found.
CMakeLists.txt
View file @
f36be4d5
...
@@ -89,8 +89,7 @@ if(SPDLOG_BUILD_BENCH)
...
@@ -89,8 +89,7 @@ if(SPDLOG_BUILD_BENCH)
endif
()
endif
()
if
(
SPDLOG_BUILD_LITE
)
if
(
SPDLOG_BUILD_LITE
)
add_subdirectory
(
lite
)
add_subdirectory
(
spdlite
)
add_subdirectory
(
lite-example
)
endif
()
endif
()
#---------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------
...
...
lite/CMakeLists.txt
deleted
100644 → 0
View file @
c2b0e223
cmake_minimum_required
(
VERSION 3.1
)
project
(
spdlog_lite
)
add_library
(
spdlog_lite spdlite.cpp spdlite.h spdlite_global.cpp spdlite_global.h spdlite_macros.h
)
target_link_libraries
(
spdlog_lite spdlog::spdlog
)
spdlite/CMakeLists.txt
0 → 100644
View file @
f36be4d5
cmake_minimum_required
(
VERSION 3.1
)
project
(
spdlite
)
include_directories
(
${
PROJECT_SOURCE_DIR
}
/include
)
file
(
GLOB SRC_FILES
${
PROJECT_SOURCE_DIR
}
/src/*.cpp
)
file
(
GLOB HEADER_FILES
${
PROJECT_SOURCE_DIR
}
/include/*.h
)
add_library
(
spdlite
${
SRC_FILES
}
${
HEADER_FILES
}
)
target_link_libraries
(
spdlite spdlog::spdlog
)
add_subdirectory
(
example
)
lite-
example/CMakeLists.txt
→
spdlite/
example/CMakeLists.txt
View file @
f36be4d5
project
(
spdlog-lite-example CXX
)
project
(
spdlite-example CXX
)
find_package
(
Threads REQUIRED
)
set
(
LITE_SOURCES example.cpp create_logger.cpp
)
set
(
LITE_SOURCES example.cpp create_logger.cpp
)
add_executable
(
${
PROJECT_NAME
}
${
LITE_SOURCES
}
)
add_executable
(
${
PROJECT_NAME
}
${
LITE_SOURCES
}
)
include_directories
(
../lite
)
find_package
(
Threads
)
target_link_libraries
(
${
PROJECT_NAME
}
PRIVATE Threads::Threads
)
target_link_libraries
(
${
PROJECT_NAME
}
PRIVATE Threads::Threads
)
target_link_libraries
(
${
PROJECT_NAME
}
PRIVATE spdl
og_l
ite
)
target_link_libraries
(
${
PROJECT_NAME
}
PRIVATE spdlite
)
lite-
example/create_logger.cpp
→
spdlite/
example/create_logger.cpp
View file @
f36be4d5
// Copyright(c) 2015-present Gabi Melman.
// Copyright(c) 2015-present Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include "spdlite.h"
#include "spdlite
/spdlite
.h"
#include "spdlog/spdlog.h"
#include "spdlog/spdlog.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/basic_file_sink.h"
...
...
lite-
example/example.cpp
→
spdlite/
example/example.cpp
View file @
f36be4d5
// Copyright(c) 2015-present Gabi Melman.
// Copyright(c) 2015-present Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include "spdlite
.h"
#include "spdlite
/spdlite.h"
#include "spdlite
_global.h"
#include "spdlite
/spdlite_global.h"
#define SPDLITE_ACTIVE_LEVEL SPDLITE_LEVEL_TRACE
#define SPDLITE_ACTIVE_LEVEL SPDLITE_LEVEL_TRACE
#include "spdlite
_macros.h"
#include "spdlite
/spdlite_macros.h"
int
main
()
int
main
()
{
{
SPDLITE_TRACE
(
"SOME INFO {}"
,
123
);
SPDLITE_TRACE
(
"SOME INFO {}"
,
123
);
...
...
lite/spdlite.h
→
spdlite/include/spd
lite/spdlite.h
View file @
f36be4d5
File moved
lite/spdlite_global.h
→
spdlite/include/spd
lite/spdlite_global.h
View file @
f36be4d5
File moved
lite/spdlite_macros.h
→
spdlite/include/spd
lite/spdlite_macros.h
View file @
f36be4d5
File moved
lite
/spdlite.cpp
→
spdlite/src
/spdlite.cpp
View file @
f36be4d5
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
//
//
#include "spdlite
.h"
#include "spdlite
/spdlite.h"
#include "spdlog/spdlog.h"
#include "spdlog/spdlog.h"
static
spdlog
::
level
::
level_enum
to_spdlog_level
(
spdlite
::
level
level
)
static
spdlog
::
level
::
level_enum
to_spdlog_level
(
spdlite
::
level
level
)
...
...
lite
/spdlite_global.cpp
→
spdlite/src
/spdlite_global.cpp
View file @
f36be4d5
// Copyright(c) 2015-present Gabi Melman.
// Copyright(c) 2015-present Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include "spdlite
_global.h"
#include "spdlite
/spdlite_global.h"
spdlite
::
logger
&
spdlite
::
default_logger
()
spdlite
::
logger
&
spdlite
::
default_logger
()
{
{
...
...
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