1+ /* runcpp2
2+
3+ Dependencies:
4+ - Name: ssLogger
5+ Platforms: [Windows, Linux, MacOS]
6+ Source:
7+ Type: Git
8+ Value: "https://github.com/Neko-Box-Coder/ssLogger.git"
9+ # LibraryType: Static
10+ LibraryType: Header
11+ IncludePaths:
12+ - "Include"
13+
14+ # (Optional if LibraryType is Header) Link properties of the dependency
15+ # LinkProperties:
16+ # # Properties for searching the library binary for the profile
17+ # "g++":
18+ # # The library names to be searched for when linking against the script
19+ # SearchLibraryNames: ["ssLogger"]
20+ #
21+ # # (Optional) The library names to be excluded from being searched
22+ # ExcludeLibraryNames: ["ssLogger_SRC"]
23+ #
24+ # # The path (relative to the dependency folder) to be searched for the dependency binaries
25+ # SearchDirectories: ["./build"]
26+ #
27+ # # (Optional) Additional link options for this dependency
28+ # AdditionalLinkOptions:
29+ # All: []
30+
31+
32+ # (Optional) List of setup commands for the supported platforms
33+ Setup:
34+ # Setup commands for the specified platform
35+ All:
36+ # Setup commands for the specified profile.
37+ # All commands are run in the dependency folder
38+ "g++":
39+ - "git submodule update --init --recursive"
40+ - "mkdir build"
41+ - "cd build && cmake .."
42+ - "cd build && cmake --build . -j 16"
43+ */
44+
45+
46+ #include " ssLogger/ssLogSwitches.hpp"
47+
48+ #define ssLOG_USE_SOURCE 0
49+ #if !ssLOG_USE_SOURCE
50+ #include " ssLogger/ssLogInit.hpp"
51+ #endif
52+
53+ #include " ssLogger/ssLog.hpp"
54+
55+ #include < iostream>
56+ #include < chrono>
57+
58+ int main (int argc, char * argv[])
59+ {
60+ std::cout << " Hello World" << std::endl;
61+
62+ for (int i = 0 ; i < argc; ++i)
63+ std::cout << " Arg" << i << " : " << argv[i] << std::endl;
64+
65+ #if ssLOG_USE_SOURCE
66+ ssLOG_LINE (" Source dependency is working!!!" );
67+ #else
68+ ssLOG_LINE (" Header only dependency is working!!!" );
69+ #endif
70+
71+ int CheckCounter = 5 ;
72+ ssLOG_FATAL (" Test fatal: " << CheckCounter);
73+ ssLOG_ERROR (" Test error: " << CheckCounter);
74+ ssLOG_WARNING (" Test warning: " << CheckCounter);
75+ ssLOG_INFO (" Test info: " << CheckCounter);
76+ ssLOG_DEBUG (" Test debug: " << CheckCounter);
77+
78+ for (int i = 0 ; i < 10000 ; ++i)
79+ {
80+ ssLOG_LINE (" Logging test: " << i);
81+ std::this_thread::sleep_for (std::chrono::milliseconds (10 ));
82+ }
83+
84+
85+
86+ return 0 ;
87+ }
0 commit comments