-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tinyutf8] Updating to v4.0.2 (#13706)
Update DuffsDevice/tinyutf8 library from v3.0.1 to v4.0.2
- Loading branch information
1 parent
5d33bd3
commit de09af8
Showing
3 changed files
with
46 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Source: tinyutf8 | ||
Version: 3.0.1 | ||
Version: 4.0.2 | ||
Description: TINYUTF8 is a library for extremely easy integration of Unicode into an arbitrary C++11 project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,43 @@ | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index 4ec8787..cfea5b3 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1,7 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(tinyutf8) | ||
|
||
-set(CMAKE_CXX_STANDARD 11) | ||
+set(CMAKE_CXX_STANDARD 17) | ||
|
||
option(TINYUTF8_BUILD_STATIC "Build as static library" On) | ||
|
||
@@ -14,3 +14,14 @@ endif() | ||
add_library(tinyutf8 ${LIB_BUILD_TYPE} lib/tinyutf8.cpp) | ||
|
||
target_include_directories(tinyutf8 PUBLIC include) | ||
+ | ||
+if(MSVC) | ||
+ ADD_DEFINITIONS(-D_UNICODE) | ||
+endif() | ||
+ | ||
+install(TARGETS tinyutf8 | ||
+ RUNTIME DESTINATION bin | ||
+ ARCHIVE DESTINATION lib | ||
+ LIBRARY DESTINATION lib) | ||
+ | ||
+install(FILES include/tinyutf8.h DESTINATION include) | ||
\ No newline at end of file | ||
diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
index eef0c41..5d2c0d1 100644 | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -1,7 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(tinyutf8) | ||
|
||
-set(CMAKE_CXX_STANDARD 11) | ||
+set(CMAKE_CXX_STANDARD 17) | ||
|
||
option(TINYUTF8_BUILD_STATIC "Build as static library" On) | ||
|
||
@@ -12,3 +12,14 @@ else() | ||
endif() | ||
|
||
add_library(tinyutf8 ${LIB_BUILD_TYPE} tinyutf8.cpp) | ||
+ | ||
+if(MSVC) | ||
+ ADD_DEFINITIONS(-D_UNICODE) | ||
+endif() | ||
+ | ||
+install(TARGETS tinyutf8 | ||
+ RUNTIME DESTINATION bin | ||
+ ARCHIVE DESTINATION lib | ||
+ LIBRARY DESTINATION lib) | ||
+ | ||
+install(FILES tinyutf8.h DESTINATION include) | ||
diff --git a/tinyutf8.cpp b/tinyutf8.cpp | ||
index ca07b1e..502312f 100644 | ||
--- a/tinyutf8.cpp | ||
+++ b/tinyutf8.cpp | ||
@@ -1,6 +1,6 @@ | ||
#include "tinyutf8.h" | ||
|
||
// Explicit template instantiations for utf8_string | ||
-template struct tiny_utf8::basic_utf8_string<>; | ||
-template extern std::ostream& operator<<( std::ostream& stream , const tiny_utf8::basic_utf8_string<>& str ); | ||
-template extern std::istream& operator>>( std::istream& stream , tiny_utf8::basic_utf8_string<>& str ); | ||
\ No newline at end of file | ||
+template class tiny_utf8::basic_utf8_string<>; | ||
+extern template std::ostream& operator<<( std::ostream& stream , const tiny_utf8::basic_utf8_string<>& str ); | ||
+extern template std::istream& operator>>( std::istream& stream , tiny_utf8::basic_utf8_string<>& str ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters