early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,14 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 080cefa..b73072a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,9 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_library(msgpack11 STATIC msgpack11.cpp)
target_include_directories(msgpack11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_options(msgpack11 PRIVATE -fno-rtti)
-if(NOT MSVC)
- target_compile_options(msgpack11 PRIVATE -Wall -Wextra -Werror)
-endif()
configure_file("msgpack11.pc.in" "msgpack11.pc" @ONLY)
if (MSGPACK11_BUILD_TESTS)

View File

@@ -0,0 +1,12 @@
diff --git a/msgpack11.cpp b/msgpack11.cpp
index fa572fa..640ba9a 100644
--- a/msgpack11.cpp
+++ b/msgpack11.cpp
@@ -10,6 +10,7 @@
#include <algorithm>
#include <functional>
#include <stdexcept>
+#include <iterator>
namespace msgpack11 {

19
externals/vcpkg/ports/msgpack11/msvc.patch vendored Executable file
View File

@@ -0,0 +1,19 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9424838..080cefa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,9 +6,12 @@ option(MSGPACK11_BUILD_TESTS "Build unit tests" ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
-add_library(msgpack11 msgpack11.cpp)
+add_library(msgpack11 STATIC msgpack11.cpp)
target_include_directories(msgpack11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
-target_compile_options(msgpack11 PRIVATE -fno-rtti -Wall -Wextra -Werror)
+target_compile_options(msgpack11 PRIVATE -fno-rtti)
+if(NOT MSVC)
+ target_compile_options(msgpack11 PRIVATE -Wall -Wextra -Werror)
+endif()
configure_file("msgpack11.pc.in" "msgpack11.pc" @ONLY)
if (MSGPACK11_BUILD_TESTS)

View File

@@ -0,0 +1,29 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ar90n/msgpack11
REF v0.0.10
SHA512 7b90893f9cdec529789f6e75703f5945c6fc5c946b8708a7a2cb295faf4af111c8cc61265b636f385641031b85181929205be9c5d155f405909445dce85b4ce8
HEAD_REF master
PATCHES
msvc.patch
fix-additerator.patch
disable-werror.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DMSGPACK11_BUILD_TESTS=OFF
-DMSGPACK11_BUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig()

10
externals/vcpkg/ports/msgpack11/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,10 @@
{
"name": "msgpack11",
"version": "0.0.10",
"port-version": 3,
"description": "msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.",
"homepage": "https://msgpack.org",
"dependencies": [
"gtest"
]
}