File tree Expand file tree Collapse file tree 8 files changed +14
-40
lines changed Expand file tree Collapse file tree 8 files changed +14
-40
lines changed Original file line number Diff line number Diff line change 20
20
[submodule "3rdparty/zlib "]
21
21
path = 3rdparty/zlib
22
22
url = https://github.com/madler/zlib.git
23
- [submodule "3rdparty/utfcpp "]
24
- path = 3rdparty/utfcpp
25
- url = https://github.com/nemtrif/utfcpp.git
26
- [submodule "3rdparty/convertutf "]
27
- path = 3rdparty/convertutf
28
- url = https://github.com/plenluno/convertutf.git
29
23
[submodule "3rdparty/libpng "]
30
24
path = 3rdparty/libpng
31
25
url = https://github.com/glennrp/libpng.git
Original file line number Diff line number Diff line change @@ -18,8 +18,6 @@ if(NBL_UPDATE_GIT_SUBMODULE)
18
18
update_git_submodule (./nbl_spirv_cross )
19
19
update_git_submodule (./zlib )
20
20
update_git_submodule (./openexr )
21
- update_git_submodule (./utfcpp ) # TODO: remove
22
- update_git_submodule (./convertutf ) # TODO: remove
23
21
update_git_submodule (./libpng )
24
22
update_git_submodule (./openssl )
25
23
update_git_submodule (./libjpeg-turbo )
@@ -269,12 +267,6 @@ add_library(spirv_cross OBJECT
269
267
target_compile_definitions (spirv_cross PUBLIC SPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS )
270
268
271
269
272
- # TODO: remove
273
- add_library (convert_utf OBJECT
274
- convertutf/ConvertUTF.cpp
275
- )
276
-
277
-
278
270
add_library (aesGladman OBJECT
279
271
aesGladman/aes_ni.c
280
272
aesGladman/aescrypt.c
@@ -350,7 +342,6 @@ set(NBL_3RDPARTY_TARGETS
350
342
shaderc_util
351
343
shaderc
352
344
jpeg-static
353
- convert_utf
354
345
bzip2
355
346
glslang
356
347
OGLCompiler
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 6
6
7
7
namespace nbl ::system
8
8
{
9
- class CStdoutLogger : public IThreadsafeLogger
10
- {
9
+
10
+ class CStdoutLogger : public IThreadsafeLogger
11
+ {
12
+ public:
11
13
CStdoutLogger (core::bitflag<E_LOG_LEVEL> logLevelMask = ILogger::defaultLogMask()) : IThreadsafeLogger(logLevelMask) {}
14
+
15
+ protected:
12
16
virtual void threadsafeLog_impl (const std::string_view& fmt, E_LOG_LEVEL logLevel, va_list args) override
13
17
{
14
18
printf (constructLogString (fmt, logLevel, args).data ());
15
19
fflush (stdout);
16
20
}
17
21
18
- };
22
+ };
23
+
19
24
}
20
25
21
26
#endif
Original file line number Diff line number Diff line change 1
1
#ifndef _NBL_SYSTEM_CSYSTEMWIN32_H_INCLUDED_
2
2
#define _NBL_SYSTEM_CSYSTEMWIN32_H_INCLUDED_
3
+
3
4
#ifdef _NBL_PLATFORM_WINDOWS_
4
5
#include < windows.h>
5
6
#include < powerbase.h>
Original file line number Diff line number Diff line change 13
13
#include < iomanip>
14
14
#include < regex>
15
15
#include < cstdarg>
16
- #include < codecvt>
17
16
18
17
19
18
namespace nbl ::system
@@ -31,10 +30,6 @@ class ILogger : public core::IReferenceCounted
31
30
ELL_PERFORMANCE = 8 ,
32
31
ELL_ERROR = 16
33
32
};
34
- protected:
35
- static core::bitflag<E_LOG_LEVEL> defaultLogMask ();
36
- public:
37
- ILogger (core::bitflag<E_LOG_LEVEL> logLevelMask) : m_logLevelMask(logLevelMask) {}
38
33
39
34
void log (const std::string_view& fmtString, E_LOG_LEVEL logLevel = ELL_DEBUG, ...)
40
35
{
@@ -53,6 +48,10 @@ class ILogger : public core::IReferenceCounted
53
48
}
54
49
55
50
protected:
51
+ static core::bitflag<E_LOG_LEVEL> defaultLogMask ();
52
+
53
+ ILogger (core::bitflag<E_LOG_LEVEL> logLevelMask) : m_logLevelMask(logLevelMask) {}
54
+
56
55
virtual void log_impl (const std::string_view& fmtString, E_LOG_LEVEL logLevel, va_list args) = 0;
57
56
virtual std::string constructLogString (const std::string_view& fmtString, E_LOG_LEVEL logLevel, va_list l)
58
57
{
@@ -106,14 +105,7 @@ class ILogger : public core::IReferenceCounted
106
105
return out_str;
107
106
return " " ;
108
107
}
109
- virtual std::wstring constructLogWstring (const std::wstring_view& fmtString, E_LOG_LEVEL logLevel, va_list l)
110
- {
111
- std::wstring_convert<std::codecvt_utf8_utf16<wchar_t >> converter;
112
- std::string narrow = converter.to_bytes (std::wstring (fmtString));
113
- std::string narrowStr = constructLogString (narrow, logLevel, l);
114
- std::wstring wide = converter.from_bytes (narrowStr);
115
- return wide;
116
- }
108
+
117
109
private:
118
110
core::bitflag<E_LOG_LEVEL> m_logLevelMask;
119
111
};
Original file line number Diff line number Diff line change @@ -376,8 +376,6 @@ if (NBL_EMBED_BUILTIN_RESOURCES)
376
376
endif ()
377
377
378
378
set (COMMON_INCLUDE_DIRS
379
- ${THIRD_PARTY_SOURCE_DIR} /convertutf # TODO: remove
380
- ${THIRD_PARTY_SOURCE_DIR} /utfcpp/source # TODO: remove
381
379
${THIRD_PARTY_SOURCE_DIR} /glm
382
380
${THIRD_PARTY_SOURCE_DIR} /renderdoc # for renderdoc api header
383
381
${CMAKE_BINARY_DIR} /3rdparty/zlib #for dynamically generated zconf.h
@@ -387,10 +385,6 @@ set(COMMON_INCLUDE_DIRS
387
385
$< TARGET_PROPERTY:jpeg-static,BINARY_DIR> #for dynamically generated jconfig.h
388
386
)
389
387
390
- macro (nbl_target_link_utfcpp _trgt ) # TODO: remove
391
- target_include_directories (${_trgt} PUBLIC ${THIRD_PARTY_SOURCE_DIR} /utfcpp/source )
392
- endmacro ()
393
-
394
388
# TODO: Change all MACROS into FUNCTIONS (if possible, need to clarify variable scoping rules)
395
389
macro (nbl_target_link_zlib _trgt )
396
390
add_dependencies (zlibstatic zlib_copy )
@@ -505,7 +499,6 @@ add_library(Nabla STATIC
505
499
${NABLA_HEADERS}
506
500
$< TARGET_OBJECTS:aesGladman>
507
501
$< TARGET_OBJECTS:bzip2>
508
- $< TARGET_OBJECTS:convert_utf>
509
502
$< TARGET_OBJECTS:lz4>
510
503
$< TARGET_OBJECTS:lzma>
511
504
$< TARGET_OBJECTS:spirv_cross>
You can’t perform that action at this time.
0 commit comments