Spaces:
Sleeping
Sleeping
15c4fbb53a8bd92bb0e10cc225362365d5cc9797b253378d976cab7ab83099b9
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/continuable/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fix-builderror.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fix-dependency.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fix-install.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fmt-fix.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/portfile.cmake +102 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/add-noexcept-to-frame.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/fix-errorC7651.patch +68 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/gsl-4_0_0.patch +80 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/corrade/fix-vs2019.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/corrade/portfile.cmake +70 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/corrade/vcpkg.json +51 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-base64/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-base64/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-httplib/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-httplib/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-ipc/portfile.cmake +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-ipc/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-jwt/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-jwt/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-netlib/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-netlib/stream-handler-executor.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-netlib/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-peglib/portfile.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-peglib/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/fix-sleep_for.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/portfile.cmake +62 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/tacopie/CMakeLists.txt +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-taskflow/portfile.cmake +2 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-taskflow/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-timsort/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-timsort/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppad/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppad/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppad/windows-fix.patch +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcms/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcms/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcodec/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcodec/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcoro/CMakeLists.txt +202 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcoro/portfile.cmake +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcoro/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/LibCrypto-fix.patch +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/cmake-export-fix.patch +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/vcpkg.json +17 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/continuable/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "continuable",
|
3 |
+
"version-string": "4.1.0",
|
4 |
+
"description": "C++14 asynchronous allocation aware futures (supporting then, exception handling, coroutines and connections)",
|
5 |
+
"homepage": "https://naios.github.io/continuable/",
|
6 |
+
"dependencies": [
|
7 |
+
"function2"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fix-builderror.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/ODEIntegrators.cpp b/src/ODEIntegrators.cpp
|
2 |
+
index 4152f01..e5986ca 100644
|
3 |
+
--- a/src/ODEIntegrators.cpp
|
4 |
+
+++ b/src/ODEIntegrators.cpp
|
5 |
+
@@ -4,6 +4,8 @@
|
6 |
+
#include "CPstrings.h"
|
7 |
+
#include "Exceptions.h"
|
8 |
+
#include <algorithm>
|
9 |
+
+#undef max
|
10 |
+
+#undef min
|
11 |
+
|
12 |
+
bool ODEIntegrators::AdaptiveRK54(AbstractODEIntegrator &ode, double tstart, double tend, double hmin, double hmax, double eps_allowed, double step_relax)
|
13 |
+
{
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fix-dependency.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 2d61aff..80ac50a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -237,10 +237,10 @@ list(REMOVE_ITEM APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Tests/CoolProp-Te
|
6 |
+
list(REMOVE_ITEM APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/CoolPropLib.cpp")
|
7 |
+
|
8 |
+
set (APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}")
|
9 |
+
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/Eigen")
|
10 |
+
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/msgpack-c/include")
|
11 |
+
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/fmtlib/include")
|
12 |
+
-list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/externals/fmtlib") # should be deprecated
|
13 |
+
+find_package(Eigen3 CONFIG REQUIRED)
|
14 |
+
+find_package(msgpack CONFIG REQUIRED)
|
15 |
+
+find_package(fmt CONFIG REQUIRED)
|
16 |
+
+link_libraries(Eigen3::Eigen msgpackc msgpackc-cxx fmt::fmt)
|
17 |
+
list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
18 |
+
list (APPEND APP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src")
|
19 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fix-install.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 80ac50a..36819dd 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -493,13 +493,13 @@ IF ( COOLPROP_OBJECT_LIBRARY OR COOLPROP_STATIC_LIBRARY OR COOLPROP_SHARED_LIBRA
|
6 |
+
SET_PROPERTY(TARGET ${LIB_NAME} PROPERTY RELEASE_POSTFIX )
|
7 |
+
modify_msvc_flags("/MD") # Note that the default is not used if ${COOLPROP_MSVC_REL} or ${COOLPROP_MSVC_DBG} is set
|
8 |
+
ENDIF (MSVC)
|
9 |
+
- INSTALL(TARGETS ${LIB_NAME} DESTINATION static_library/${CMAKE_SYSTEM_NAME}/${BITNESS}bit_${CMAKE_CXX_COMPILER_ID}_${CMAKE_CXX_COMPILER_VERSION} )
|
10 |
+
- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${COOLPROP_LIBRARY_HEADER} DESTINATION static_library)
|
11 |
+
+ INSTALL(TARGETS ${LIB_NAME} RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
|
12 |
+
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${COOLPROP_LIBRARY_HEADER} DESTINATION include)
|
13 |
+
ELSEIF (COOLPROP_SHARED_LIBRARY)
|
14 |
+
LIST(APPEND APP_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${COOLPROP_LIBRARY_SOURCE}")
|
15 |
+
ADD_LIBRARY(${LIB_NAME} SHARED ${APP_SOURCES} ${COOLPROP_LIBRARY_EXPORTS})
|
16 |
+
- INSTALL(TARGETS ${LIB_NAME} DESTINATION shared_library/${CMAKE_SYSTEM_NAME}/${BITNESS}bit${CONVENTION} )
|
17 |
+
- INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${COOLPROP_LIBRARY_HEADER} DESTINATION shared_library)
|
18 |
+
+ INSTALL(TARGETS ${LIB_NAME} RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
|
19 |
+
+ INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${COOLPROP_LIBRARY_HEADER} DESTINATION include)
|
20 |
+
SET_PROPERTY (TARGET ${LIB_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS " -DCOOLPROP_LIB")
|
21 |
+
# Now all the compiler specific settings for Visual Studio
|
22 |
+
IF (MSVC)
|
23 |
+
@@ -732,7 +732,7 @@ if (COOLPROP_EES_MODULE)
|
24 |
+
VERBATIM
|
25 |
+
)
|
26 |
+
# install the generated library and the other files
|
27 |
+
- install(TARGETS COOLPROP_EES DESTINATION "${CMAKE_INSTALL_PREFIX}/EES/${CMAKE_SYSTEM_NAME}")
|
28 |
+
+ install(TARGETS COOLPROP_EES RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
|
29 |
+
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/wrappers/EES/CoolProp.htm" DESTINATION "${CMAKE_INSTALL_PREFIX}/EES/${CMAKE_SYSTEM_NAME}")
|
30 |
+
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/wrappers/EES/CoolProp.LIB" DESTINATION "${CMAKE_INSTALL_PREFIX}/EES/${CMAKE_SYSTEM_NAME}")
|
31 |
+
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/wrappers/EES/CoolProp_EES_Sample.EES" DESTINATION "${CMAKE_INSTALL_PREFIX}/EES/${CMAKE_SYSTEM_NAME}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/fmt-fix.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/CPstrings.h b/include/CPstrings.h
|
2 |
+
index b99820a..fe6a2aa 100644
|
3 |
+
--- a/include/CPstrings.h
|
4 |
+
+++ b/include/CPstrings.h
|
5 |
+
@@ -6,6 +6,8 @@
|
6 |
+
#include <algorithm>
|
7 |
+
#include <functional>
|
8 |
+
#include <cctype>
|
9 |
+
+ #include <vector>
|
10 |
+
+ #include <string>
|
11 |
+
|
12 |
+
#if !defined(NO_FMTLIB)
|
13 |
+
#ifndef FMT_HEADER_ONLY
|
14 |
+
@@ -14,9 +16,6 @@
|
15 |
+
#include "fmt/format.h" // For addition of the string formatting functions and macros from fmtlib
|
16 |
+
#include "fmt/printf.h" // For sprintf
|
17 |
+
#undef FMT_HEADER_ONLY
|
18 |
+
-#else
|
19 |
+
- #include <vector>
|
20 |
+
- #include <string>
|
21 |
+
#endif
|
22 |
+
|
23 |
+
#include "Exceptions.h"
|
24 |
+
@@ -58,11 +57,11 @@
|
25 |
+
// Missing string formatting function, this old guy is needed for ancient gcc compilers on PowerPC for VxWorks
|
26 |
+
inline std::string format(const char* fmt, ...);
|
27 |
+
#else
|
28 |
+
- // Missing std::string formatting function - provided by the fmtlib library
|
29 |
+
- inline std::string format(const char *format, fmt::ArgList args) {
|
30 |
+
- return fmt::sprintf(format, args);
|
31 |
+
+ template<class...Args>
|
32 |
+
+ std::string format(const Args & ... args)
|
33 |
+
+ {
|
34 |
+
+ return fmt::sprintf(args...);
|
35 |
+
}
|
36 |
+
- FMT_VARIADIC(std::string, format, const char *)
|
37 |
+
// For latest FMTLIB
|
38 |
+
/*template <typename... Args>
|
39 |
+
inline std::string format(const char *format_str, const Args & ... args) {
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/portfile.cmake
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(PORT_VERSION 6.1.0)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO CoolProp/CoolProp
|
6 |
+
REF f5ebb4e655add4c23bb327ab5209f3dbf919bc6d # v6.4.1
|
7 |
+
SHA512 916d00777fe56035171ed0a6cbe09b8d4487317772802e4fe9b43f5965f3212dcb3754e18fe1db9c748a4d17facbbe6cb2244451cf5cf66334465760fc1701b7
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fmt-fix.patch
|
11 |
+
fix-builderror.patch
|
12 |
+
fix-dependency.patch
|
13 |
+
fix-install.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_find_acquire_program(PYTHON2)
|
17 |
+
get_filename_component(PYTHON2_DIR ${PYTHON2} DIRECTORY)
|
18 |
+
vcpkg_add_to_path(${PYTHON2_DIR})
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/externals)
|
21 |
+
|
22 |
+
# Patch up the file locations
|
23 |
+
file(COPY
|
24 |
+
${CURRENT_INSTALLED_DIR}/include/catch.hpp
|
25 |
+
DESTINATION ${SOURCE_PATH}/externals/Catch/single_include
|
26 |
+
)
|
27 |
+
|
28 |
+
file(COPY
|
29 |
+
${CURRENT_INSTALLED_DIR}/include/eigen3/Eigen
|
30 |
+
DESTINATION ${SOURCE_PATH}/externals/Eigen
|
31 |
+
)
|
32 |
+
file(COPY
|
33 |
+
${CURRENT_INSTALLED_DIR}/include/eigen3/unsupported/Eigen
|
34 |
+
DESTINATION ${SOURCE_PATH}/externals/Eigen/unsupported
|
35 |
+
)
|
36 |
+
|
37 |
+
file(COPY
|
38 |
+
${CURRENT_INSTALLED_DIR}/include/rapidjson
|
39 |
+
DESTINATION ${SOURCE_PATH}/externals/rapidjson/include
|
40 |
+
)
|
41 |
+
|
42 |
+
file(COPY
|
43 |
+
${CURRENT_INSTALLED_DIR}/include/IF97.h
|
44 |
+
DESTINATION ${SOURCE_PATH}/externals/IF97
|
45 |
+
)
|
46 |
+
|
47 |
+
file(COPY
|
48 |
+
${CURRENT_INSTALLED_DIR}/include/msgpack.h
|
49 |
+
${CURRENT_INSTALLED_DIR}/include/msgpack.hpp
|
50 |
+
${CURRENT_INSTALLED_DIR}/include/msgpack
|
51 |
+
DESTINATION ${SOURCE_PATH}/externals/msgpack-c/include
|
52 |
+
)
|
53 |
+
|
54 |
+
file(COPY
|
55 |
+
${CURRENT_INSTALLED_DIR}/include/fmt
|
56 |
+
DESTINATION ${SOURCE_PATH}/externals/cppformat
|
57 |
+
)
|
58 |
+
|
59 |
+
file(COPY
|
60 |
+
${CURRENT_INSTALLED_DIR}/include/REFPROP_lib.h
|
61 |
+
DESTINATION ${SOURCE_PATH}/externals/REFPROP-headers/
|
62 |
+
)
|
63 |
+
|
64 |
+
# Use a nasty hack to include the correct header
|
65 |
+
file(APPEND
|
66 |
+
${SOURCE_PATH}/externals/msgpack-c/include/fmt/format.h
|
67 |
+
"#include \"fmt/printf.h\""
|
68 |
+
)
|
69 |
+
|
70 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" COOLPROP_SHARED_LIBRARY)
|
71 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" COOLPROP_STATIC_LIBRARY)
|
72 |
+
|
73 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "dynamic" COOLPROP_MSVC_DYNAMIC)
|
74 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" COOLPROP_MSVC_STATIC)
|
75 |
+
|
76 |
+
vcpkg_configure_cmake(
|
77 |
+
SOURCE_PATH ${SOURCE_PATH}
|
78 |
+
PREFER_NINJA
|
79 |
+
OPTIONS
|
80 |
+
-DCOOLPROP_SHARED_LIBRARY=${COOLPROP_SHARED_LIBRARY}
|
81 |
+
-DCOOLPROP_STATIC_LIBRARY=${COOLPROP_STATIC_LIBRARY}
|
82 |
+
-DCOOLPROP_MSVC_DYNAMIC=${COOLPROP_MSVC_DYNAMIC}
|
83 |
+
-DCOOLPROP_MSVC_STATIC=${COOLPROP_MSVC_STATIC}
|
84 |
+
OPTIONS_RELEASE
|
85 |
+
-DCOOLPROP_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}
|
86 |
+
OPTIONS_DEBUG
|
87 |
+
-DCOOLPROP_INSTALL_PREFIX=${CURRENT_PACKAGES_DIR}/debug
|
88 |
+
)
|
89 |
+
|
90 |
+
vcpkg_install_cmake()
|
91 |
+
vcpkg_copy_pdbs()
|
92 |
+
|
93 |
+
if (VCPKG_TARGET_IS_WINDOWS AND COOLPROP_SHARED_LIBRARY)
|
94 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/CoolPropLib.h
|
95 |
+
"#if defined(COOLPROP_LIB)" "#if 1"
|
96 |
+
)
|
97 |
+
endif()
|
98 |
+
|
99 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
100 |
+
|
101 |
+
# Handle copyright
|
102 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coolprop/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "coolprop",
|
3 |
+
"version-semver": "6.4.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Thermophysical properties for the masses",
|
6 |
+
"homepage": "https://github.com/CoolProp/CoolProp",
|
7 |
+
"dependencies": [
|
8 |
+
"catch",
|
9 |
+
"eigen3",
|
10 |
+
"fmt",
|
11 |
+
"if97",
|
12 |
+
"msgpack",
|
13 |
+
"pybind11",
|
14 |
+
"rapidjson",
|
15 |
+
"refprop-headers"
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/add-noexcept-to-frame.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/interface/coroutine/frame.h
|
2 |
+
+++ a/interface/coroutine/frame.h
|
3 |
+
@@ -119,8 +119,8 @@
|
4 |
+
return *this;
|
5 |
+
}
|
6 |
+
// 17.12.3.2, export/import
|
7 |
+
- static /*constexpr*/ coroutine_handle from_address(void* _Addr) {
|
8 |
+
+ static /*constexpr*/ coroutine_handle from_address(void* _Addr) noexcept {
|
9 |
+
coroutine_handle _Result{};
|
10 |
+
_Result._Ptr = reinterpret_cast<portable_coro_prefix*>(_Addr);
|
11 |
+
return _Result;
|
12 |
+
}
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/fix-errorC7651.patch
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/modules/portable/frame.cpp b/modules/portable/frame.cpp
|
2 |
+
index 2cedf81..f413f28 100644
|
3 |
+
--- a/modules/portable/frame.cpp
|
4 |
+
+++ b/modules/portable/frame.cpp
|
5 |
+
@@ -77,13 +77,31 @@ size_t _coro_done(void*);
|
6 |
+
//
|
7 |
+
// intrinsic: Clang/GCC
|
8 |
+
//
|
9 |
+
-extern "C" {
|
10 |
+
-bool __builtin_coro_done(void*);
|
11 |
+
-void __builtin_coro_resume(void*);
|
12 |
+
-void __builtin_coro_destroy(void*);
|
13 |
+
-// void* __builtin_coro_promise(void* ptr, int align, bool p);
|
14 |
+
+//extern "C" {
|
15 |
+
+template <bool B>
|
16 |
+
+void resume_wrapper(void *p)
|
17 |
+
+{
|
18 |
+
+ if constexpr (B)
|
19 |
+
+ __builtin_coro_resume(p);
|
20 |
+
+}
|
21 |
+
+
|
22 |
+
+template <bool B>
|
23 |
+
+void destroy_wrapper(void *p)
|
24 |
+
+{
|
25 |
+
+ if constexpr(B)
|
26 |
+
+ __builtin_coro_destroy(p);
|
27 |
+
}
|
28 |
+
|
29 |
+
+template <bool B>
|
30 |
+
+bool done_wrapper(void *p)
|
31 |
+
+{
|
32 |
+
+ if constexpr(B)
|
33 |
+
+ return __builtin_coro_done(p);
|
34 |
+
+ return false;
|
35 |
+
+}
|
36 |
+
+// void* __builtin_coro_promise(void* ptr, int align, bool p);
|
37 |
+
+//}
|
38 |
+
+
|
39 |
+
bool _coro_finished(portable_coro_prefix* _Handle);
|
40 |
+
|
41 |
+
#if defined(__clang__)
|
42 |
+
@@ -124,7 +142,7 @@ bool portable_coro_done(portable_coro_prefix* _Handle) {
|
43 |
+
if constexpr (is_msvc) {
|
44 |
+
return _coro_finished(_Handle);
|
45 |
+
} else if constexpr (is_clang) {
|
46 |
+
- return __builtin_coro_done(_Handle);
|
47 |
+
+ return done_wrapper<true>(_Handle);
|
48 |
+
}
|
49 |
+
return false; // follow `noop_coroutine`
|
50 |
+
}
|
51 |
+
@@ -133,7 +151,7 @@ void portable_coro_resume(portable_coro_prefix* _Handle) {
|
52 |
+
if constexpr (is_msvc) {
|
53 |
+
_coro_resume(_Handle);
|
54 |
+
} else if constexpr (is_clang) {
|
55 |
+
- __builtin_coro_resume(_Handle);
|
56 |
+
+ resume_wrapper<true>(_Handle);
|
57 |
+
}
|
58 |
+
}
|
59 |
+
|
60 |
+
@@ -141,7 +159,7 @@ void portable_coro_destroy(portable_coro_prefix* _Handle) {
|
61 |
+
if constexpr (is_msvc) {
|
62 |
+
_coro_destroy(_Handle);
|
63 |
+
} else if constexpr (is_clang) {
|
64 |
+
- __builtin_coro_destroy(_Handle);
|
65 |
+
+ destroy_wrapper<true>(_Handle);
|
66 |
+
}
|
67 |
+
}
|
68 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/gsl-4_0_0.patch
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/interface/coroutine/net.h b/interface/coroutine/net.h
|
2 |
+
index 17b70a8..3c44827 100644
|
3 |
+
--- a/interface/coroutine/net.h
|
4 |
+
+++ b/interface/coroutine/net.h
|
5 |
+
@@ -344,7 +344,7 @@ void poll_net_tasks(uint64_t nano) noexcept(false);
|
6 |
+
* @ingroup Network
|
7 |
+
*/
|
8 |
+
uint32_t get_address(const addrinfo& hint, //
|
9 |
+
- gsl::czstring<> host, gsl::czstring<> serv,
|
10 |
+
+ gsl::czstring host, gsl::czstring serv,
|
11 |
+
gsl::span<sockaddr_in> output) noexcept;
|
12 |
+
|
13 |
+
/**
|
14 |
+
@@ -361,7 +361,7 @@ uint32_t get_address(const addrinfo& hint, //
|
15 |
+
* @ingroup Network
|
16 |
+
*/
|
17 |
+
uint32_t get_address(const addrinfo& hint, //
|
18 |
+
- gsl::czstring<> host, gsl::czstring<> serv,
|
19 |
+
+ gsl::czstring host, gsl::czstring serv,
|
20 |
+
gsl::span<sockaddr_in6> output) noexcept;
|
21 |
+
|
22 |
+
/**
|
23 |
+
@@ -377,7 +377,7 @@ uint32_t get_address(const addrinfo& hint, //
|
24 |
+
* @ingroup Network
|
25 |
+
*/
|
26 |
+
uint32_t get_name(const sockaddr_in& addr, //
|
27 |
+
- gsl::zstring<NI_MAXHOST> name, gsl::zstring<NI_MAXSERV> serv,
|
28 |
+
+ gsl::basic_zstring<char, NI_MAXHOST> name, gsl::basic_zstring<char, NI_MAXSERV> serv,
|
29 |
+
int32_t flags = NI_NUMERICHOST | NI_NUMERICSERV) noexcept;
|
30 |
+
|
31 |
+
/**
|
32 |
+
@@ -392,7 +392,7 @@ uint32_t get_name(const sockaddr_in& addr, //
|
33 |
+
* @ingroup Network
|
34 |
+
*/
|
35 |
+
uint32_t get_name(const sockaddr_in6& addr, //
|
36 |
+
- gsl::zstring<NI_MAXHOST> name, gsl::zstring<NI_MAXSERV> serv,
|
37 |
+
+ gsl::basic_zstring<char, NI_MAXHOST> name, gsl::basic_zstring<char, NI_MAXSERV> serv,
|
38 |
+
int32_t flags = NI_NUMERICHOST | NI_NUMERICSERV) noexcept;
|
39 |
+
|
40 |
+
} // namespace coro
|
41 |
+
diff --git a/modules/net/resolver.cpp b/modules/net/resolver.cpp
|
42 |
+
index 21a9800..5328939 100644
|
43 |
+
--- a/modules/net/resolver.cpp
|
44 |
+
+++ b/modules/net/resolver.cpp
|
45 |
+
@@ -9,7 +9,7 @@ namespace coro {
|
46 |
+
|
47 |
+
GSL_SUPPRESS(type .1)
|
48 |
+
uint32_t get_name(const sockaddr_in& addr, //
|
49 |
+
- gsl::zstring<NI_MAXHOST> name, gsl::zstring<NI_MAXSERV> serv,
|
50 |
+
+ gsl::basic_zstring<char, NI_MAXHOST> name, gsl::basic_zstring<char, NI_MAXSERV> serv,
|
51 |
+
int32_t flags) noexcept {
|
52 |
+
const auto* ptr = reinterpret_cast<const sockaddr*>(addressof(addr));
|
53 |
+
return ::getnameinfo(ptr, sizeof(sockaddr_in), //
|
54 |
+
@@ -20,7 +20,7 @@ uint32_t get_name(const sockaddr_in& addr, //
|
55 |
+
|
56 |
+
GSL_SUPPRESS(type .1)
|
57 |
+
uint32_t get_name(const sockaddr_in6& addr, //
|
58 |
+
- gsl::zstring<NI_MAXHOST> name, gsl::zstring<NI_MAXSERV> serv,
|
59 |
+
+ gsl::basic_zstring<char, NI_MAXHOST> name, gsl::basic_zstring<char, NI_MAXSERV> serv,
|
60 |
+
int32_t flags) noexcept {
|
61 |
+
const auto* ptr = reinterpret_cast<const sockaddr*>(addressof(addr));
|
62 |
+
return ::getnameinfo(ptr, sizeof(sockaddr_in6), //
|
63 |
+
@@ -58,7 +58,7 @@ auto get_address(addrinfo* list, sockaddr_in6 addr) noexcept
|
64 |
+
}
|
65 |
+
|
66 |
+
uint32_t get_address(const addrinfo& hint, //
|
67 |
+
- gsl::czstring<> host, gsl::czstring<> serv,
|
68 |
+
+ gsl::czstring host, gsl::czstring serv,
|
69 |
+
gsl::span<sockaddr_in> output) noexcept {
|
70 |
+
addrinfo* list = nullptr;
|
71 |
+
if (const auto ec = ::getaddrinfo(host, serv, //
|
72 |
+
@@ -74,7 +74,7 @@ uint32_t get_address(const addrinfo& hint, //
|
73 |
+
}
|
74 |
+
|
75 |
+
uint32_t get_address(const addrinfo& hint, //
|
76 |
+
- gsl::czstring<> host, gsl::czstring<> serv,
|
77 |
+
+ gsl::czstring host, gsl::czstring serv,
|
78 |
+
gsl::span<sockaddr_in6> output) noexcept {
|
79 |
+
addrinfo* list = nullptr;
|
80 |
+
if (const auto ec = ::getaddrinfo(host, serv, //
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_LINUX)
|
2 |
+
message("Warning: `coroutine` requires libc++ and Clang or GCC 10+ on Linux")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO luncliff/coroutine
|
8 |
+
REF 1.5.0
|
9 |
+
SHA512 61b91fdc641b6905b884e99c5bf193ec2cf6962144ab3baafdb9432115757d96f3797f116b30356f0d21417b23082bc908f75042721caeab3329c4910b654594
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-errorC7651.patch
|
13 |
+
add-noexcept-to-frame.patch
|
14 |
+
gsl-4_0_0.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
-DGSL_INCLUDE_DIR=${CURRENT_INSTALLED_DIR}/include
|
22 |
+
-DBUILD_TESTING=False
|
23 |
+
)
|
24 |
+
vcpkg_install_cmake()
|
25 |
+
vcpkg_fixup_cmake_targets()
|
26 |
+
|
27 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE
|
28 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
29 |
+
RENAME copyright
|
30 |
+
)
|
31 |
+
vcpkg_copy_pdbs()
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coroutine/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "coroutine",
|
3 |
+
"version": "1.5.0",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "C++ 20 Coroutines helper/example library",
|
6 |
+
"homepage": "https://github.com/luncliff/coroutine",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"ms-gsl"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/corrade/fix-vs2019.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index e0cc288..e5a4648 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -195,7 +195,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
6 |
+
set(MSVC2017_COMPATIBILITY ON)
|
7 |
+
message(WARNING "MSVC 2017 detected, automatically enabling MSVC2017_COMPATIBILITY. Note that some features may not be available with this compiler.")
|
8 |
+
endif()
|
9 |
+
- elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.30")
|
10 |
+
+ elseif(CMAKE_CXX_COMPILER_VERSION GREATER "19.20")
|
11 |
+
if(NOT MSVC2019_COMPATIBILITY)
|
12 |
+
set(MSVC2019_COMPATIBILITY ON)
|
13 |
+
message(WARNING "MSVC 2019 detected, automatically enabling MSVC2019_COMPATIBILITY. Note that some features may not be available with this compiler.")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/corrade/portfile.cmake
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mosra/corrade
|
4 |
+
REF v2020.06
|
5 |
+
SHA512 94cc8959b0ee43ecd8d13a25307e7829d53dc6601628d97c32288d1704e2c0835b755bffc06b2105e6aa5a612f119a60e83cb475860b51e6a35999215c100227
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES fix-vs2019.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
11 |
+
|
12 |
+
# Handle features
|
13 |
+
set(_COMPONENTS "")
|
14 |
+
foreach(_feature IN LISTS ALL_FEATURES)
|
15 |
+
# Uppercase the feature name and replace "-" with "_"
|
16 |
+
string(TOUPPER "${_feature}" _FEATURE)
|
17 |
+
string(REPLACE "-" "_" _FEATURE "${_FEATURE}")
|
18 |
+
|
19 |
+
# Final feature is empty, ignore it
|
20 |
+
if(_feature)
|
21 |
+
list(APPEND _COMPONENTS ${_feature} WITH_${_FEATURE})
|
22 |
+
endif()
|
23 |
+
endforeach()
|
24 |
+
|
25 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES ${_COMPONENTS})
|
26 |
+
|
27 |
+
vcpkg_configure_cmake(
|
28 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
29 |
+
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
30 |
+
OPTIONS
|
31 |
+
${FEATURE_OPTIONS}
|
32 |
+
-DUTILITY_USE_ANSI_COLORS=ON
|
33 |
+
-DBUILD_STATIC=${BUILD_STATIC}
|
34 |
+
)
|
35 |
+
|
36 |
+
vcpkg_install_cmake()
|
37 |
+
|
38 |
+
# Debug includes and share are the same as release
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
41 |
+
|
42 |
+
# Install tools
|
43 |
+
if("utility" IN_LIST FEATURES)
|
44 |
+
# Drop a copy of tools
|
45 |
+
vcpkg_copy_tools(TOOL_NAMES "corrade-rc" AUTO_CLEAN)
|
46 |
+
endif()
|
47 |
+
|
48 |
+
# Ensure no empty folders are left behind
|
49 |
+
if(NOT FEATURES)
|
50 |
+
# No features, no binaries (only Corrade.h).
|
51 |
+
file(REMOVE_RECURSE
|
52 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
53 |
+
"${CURRENT_PACKAGES_DIR}/lib"
|
54 |
+
"${CURRENT_PACKAGES_DIR}/debug")
|
55 |
+
# debug is completely empty, as include and share
|
56 |
+
# have already been removed.
|
57 |
+
|
58 |
+
elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
59 |
+
# No dlls
|
60 |
+
file(REMOVE_RECURSE
|
61 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
62 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin")
|
63 |
+
endif()
|
64 |
+
|
65 |
+
# Handle copyright
|
66 |
+
file(INSTALL "${SOURCE_PATH}/COPYING"
|
67 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
68 |
+
RENAME copyright)
|
69 |
+
|
70 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/corrade/vcpkg.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "corrade",
|
3 |
+
"version-string": "2020.06",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "C++11/C++14 multiplatform utility library.",
|
6 |
+
"homepage": "https://magnum.graphics/corrade/",
|
7 |
+
"default-features": [
|
8 |
+
"interconnect",
|
9 |
+
"pluginmanager",
|
10 |
+
"testsuite",
|
11 |
+
"utility"
|
12 |
+
],
|
13 |
+
"features": {
|
14 |
+
"interconnect": {
|
15 |
+
"description": "Interconnect library",
|
16 |
+
"dependencies": [
|
17 |
+
{
|
18 |
+
"name": "corrade",
|
19 |
+
"features": [
|
20 |
+
"utility"
|
21 |
+
]
|
22 |
+
}
|
23 |
+
]
|
24 |
+
},
|
25 |
+
"pluginmanager": {
|
26 |
+
"description": "PluginManager library",
|
27 |
+
"dependencies": [
|
28 |
+
{
|
29 |
+
"name": "corrade",
|
30 |
+
"features": [
|
31 |
+
"utility"
|
32 |
+
]
|
33 |
+
}
|
34 |
+
]
|
35 |
+
},
|
36 |
+
"testsuite": {
|
37 |
+
"description": "TestSuite library",
|
38 |
+
"dependencies": [
|
39 |
+
{
|
40 |
+
"name": "corrade",
|
41 |
+
"features": [
|
42 |
+
"utility"
|
43 |
+
]
|
44 |
+
}
|
45 |
+
]
|
46 |
+
},
|
47 |
+
"utility": {
|
48 |
+
"description": "Utility library"
|
49 |
+
}
|
50 |
+
}
|
51 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-base64/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ReneNyffenegger/cpp-base64
|
4 |
+
REF V2.rc.08 # V2.rc.08
|
5 |
+
SHA512 8d115c3341bee31c3d83f5ad07d457a507f42d58bb5db8d9ead213494f7f25065eeeac06226f9cc34235c0360eb893e7bc66a95aa3bfbc9ea0d179f5a0b7af0a
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY ${SOURCE_PATH}/base64.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
10 |
+
file(COPY ${SOURCE_PATH}/base64.cpp DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
11 |
+
|
12 |
+
# Handle copyright
|
13 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-base64/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-base64",
|
3 |
+
"version-string": "V2.rc.08",
|
4 |
+
"description": "Base64 encoding and decoding with c++.",
|
5 |
+
"homepage": "https://github.com/ReneNyffenegger/cpp-base64/"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-httplib/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO yhirose/cpp-httplib
|
5 |
+
REF d73395e1dc652465fa9524266cd26ad57365491f #v0.10.3
|
6 |
+
SHA512 cace318611a1e306b774b4bb08e0312ad06fc10acb829b1df6d5cef9c1d6b018c0c5ebb8e3859fa2bee974dbd51fc5df90a43aa81107c97377d55bb36595b67d
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY "${SOURCE_PATH}/httplib.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
11 |
+
|
12 |
+
# Handle copyright
|
13 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-httplib/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-httplib",
|
3 |
+
"version": "0.10.3",
|
4 |
+
"description": "A single file C++11 header-only HTTP/HTTPS server and client library",
|
5 |
+
"homepage": "https://github.com/yhirose/cpp-httplib",
|
6 |
+
"license": "MIT"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-ipc/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mutouyun/cpp-ipc
|
4 |
+
REF a5722957b25a2a429e4e893c427ecd278f2eb0fe #v1.0.1
|
5 |
+
SHA512 e5eb7dbec8a3932db78f658422dfe32d377edf50ec594810765718896b32f61b4e6c02e29225cb103279e3313650e31e2b4241ac1adb538172af50fc75a6b0bb
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBIPC_BUILD_SHARED_LIBS)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" LIBIPC_USE_STATIC_CRT)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DLIBIPC_BUILD_SHARED_LIBS:BOOL=${LIBIPC_BUILD_SHARED_LIBS}
|
16 |
+
-DLIBIPC_USE_STATIC_CRT:BOOL=${LIBIPC_USE_STATIC_CRT}
|
17 |
+
-DLIBIPC_BUILD_TESTS:BOOL=OFF
|
18 |
+
-DLIBIPC_BUILD_DEMOS:BOOL=OFF
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
|
23 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/cpp-ipc")
|
24 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cpp-ipc)
|
25 |
+
elseif(EXISTS "${CURRENT_PACKAGES_DIR}/share/cpp-ipc")
|
26 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/cpp-ipc)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
30 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libipc/export.h" "#elif defined(LIBIPC_LIBRARY_SHARED_USING__)" "#elif 1")
|
31 |
+
endif()
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-ipc/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-ipc",
|
3 |
+
"version": "1.0.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C++ IPC Library: A high-performance inter-process communication using shared memory on Linux/Windows.",
|
6 |
+
"homepage": "https://github.com/mutouyun/cpp-ipc",
|
7 |
+
"supports": "!osx",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-jwt/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO arun11299/cpp-jwt
|
4 |
+
REF 0d662241daf54d8b9911bf8f54784bd2da5a3d19
|
5 |
+
SHA512 06a508872f0920ed078b5f9250fe1d5011ad41773c4b8631d7c7947d9f9be4d5e24ca4a7d98c79eb8cd14118effa8893a862089bdc90af6d75031bbb9fc2ee5f
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DCPP_JWT_BUILD_EXAMPLES=off
|
13 |
+
-DCPP_JWT_BUILD_TESTS=off
|
14 |
+
-DCPP_JWT_USE_VENDORED_NLOHMANN_JSON=off
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
22 |
+
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-jwt/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-jwt",
|
3 |
+
"version-date": "2021-10-18",
|
4 |
+
"description": "JSON Web Token library for C++",
|
5 |
+
"homepage": "https://github.com/arun11299/cpp-jwt",
|
6 |
+
"dependencies": [
|
7 |
+
"nlohmann-json",
|
8 |
+
"openssl",
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-netlib/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO cpp-netlib/cpp-netlib
|
6 |
+
REF 31d304cdf52b485f465ada433d8905171b61cbff
|
7 |
+
SHA512 6d157e6d950dd76a6d16b9c13d4d29f188d9f540eb0b44ab169016e1d7a360995e51d9923b532503a17dd2c8e0e2a38b2f9b531db03b33239e7fb9ca4d047b0c
|
8 |
+
HEAD_REF master
|
9 |
+
# Updator's note: cpp-netlib has many templates that are not fully instantiated when not building examples.
|
10 |
+
# This patch specifically fixes one of those issues
|
11 |
+
# To test updates, enable building examples below (may also require patching out uses of cxxopts)
|
12 |
+
PATCHES stream-handler-executor.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS
|
19 |
+
-DCPP-NETLIB_BUILD_TESTS=OFF
|
20 |
+
-DCPP-NETLIB_BUILD_EXAMPLES=OFF
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_install_cmake()
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
26 |
+
|
27 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
28 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/cppnetlib)
|
29 |
+
else()
|
30 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cppnetlib TARGET_PATH share/cppnetlib)
|
31 |
+
endif()
|
32 |
+
|
33 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-netlib/stream-handler-executor.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/boost/network/protocol/stream_handler.hpp b/boost/network/protocol/stream_handler.hpp
|
2 |
+
index ffb09b8..f3b3e99 100644
|
3 |
+
--- a/boost/network/protocol/stream_handler.hpp
|
4 |
+
+++ b/boost/network/protocol/stream_handler.hpp
|
5 |
+
@@ -41,6 +40,7 @@ typedef boost::asio::ssl::context ssl_context;
|
6 |
+
|
7 |
+
struct stream_handler {
|
8 |
+
public:
|
9 |
+
+ typedef tcp_socket::executor_type executor_type;
|
10 |
+
stream_handler(std::shared_ptr<tcp_socket> socket)
|
11 |
+
: tcp_sock_(std::move(socket)), ssl_enabled(false) {}
|
12 |
+
|
13 |
+
@@ -52,12 +52,12 @@ struct stream_handler {
|
14 |
+
stream_handler(boost::asio::io_service& io,
|
15 |
+
std::shared_ptr<ssl_context> ctx =
|
16 |
+
std::shared_ptr<ssl_context>()) {
|
17 |
+
- tcp_sock_ = std::make_shared<tcp_socket>(boost::ref(io));
|
18 |
+
+ tcp_sock_ = std::make_shared<tcp_socket>(io.get_executor());
|
19 |
+
ssl_enabled = false;
|
20 |
+
if (ctx) {
|
21 |
+
/// SSL is enabled
|
22 |
+
ssl_sock_ =
|
23 |
+
- std::make_shared<ssl_socket>(boost::ref(io), boost::ref(*ctx));
|
24 |
+
+ std::make_shared<ssl_socket>(io.get_executor(), boost::ref(*ctx));
|
25 |
+
ssl_enabled = true;
|
26 |
+
}
|
27 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-netlib/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-netlib",
|
3 |
+
"version-string": "0.13.0",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "A collection of network-related routines/implementations geared towards providing a robust cross-platform networking library",
|
6 |
+
"homepage": "https://cpp-netlib.org/",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"boost-asio",
|
10 |
+
"boost-assign",
|
11 |
+
"boost-logic",
|
12 |
+
"boost-program-options",
|
13 |
+
"boost-scope-exit",
|
14 |
+
"boost-smart-ptr",
|
15 |
+
"boost-spirit"
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-peglib/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO yhirose/cpp-peglib
|
5 |
+
REF v0.1.0
|
6 |
+
SHA512 7efe9da8fe75d766a50d6508c81369b71981aa1e36c0d9981d57b75822fde81074b8803753bfa599ab4ce2a7047be731c22476d0938728ebb9a9dbf63aaeb9e6
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY ${SOURCE_PATH}/peglib.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
11 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
12 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
13 |
+
|
14 |
+
# Handle copyright
|
15 |
+
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cpp-peglib)
|
16 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/cpp-peglib/LICENSE ${CURRENT_PACKAGES_DIR}/share/cpp-peglib/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-peglib/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-peglib",
|
3 |
+
"version-string": "0.1.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C++11 header-only PEG (Parsing Expression Grammars) library."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/fix-sleep_for.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/sources/core/client.cpp b/sources/core/client.cpp
|
2 |
+
index 7ea20e2..c5d2c40 100644
|
3 |
+
--- a/sources/core/client.cpp
|
4 |
+
+++ b/sources/core/client.cpp
|
5 |
+
@@ -23,6 +23,7 @@
|
6 |
+
#include <cpp_redis/core/client.hpp>
|
7 |
+
#include <cpp_redis/misc/error.hpp>
|
8 |
+
#include <cpp_redis/misc/macro.hpp>
|
9 |
+
+#include <thread>
|
10 |
+
|
11 |
+
namespace cpp_redis {
|
12 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/portfile.cmake
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO cpp-redis/cpp_redis
|
6 |
+
REF 4.3.1
|
7 |
+
SHA512 abf372542c53f37f504b3211b840b100d07a8f4b2e7f5584cc7550ab16ed617838e2df79064374c7a409458d8567f4834686318ea3a40249c767e36c744c7a47
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
"fix-sleep_for.patch"
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/tacopie/CMakeLists.txt DESTINATION ${SOURCE_PATH}/tacopie)
|
14 |
+
|
15 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
16 |
+
set(MSVC_RUNTIME_LIBRARY_CONFIG "/MD")
|
17 |
+
else()
|
18 |
+
set(MSVC_RUNTIME_LIBRARY_CONFIG "/MT")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
|
22 |
+
# cpp-redis forcibly removes "/RTC1" in its cmake file. Because this is an ABI-sensitive flag, we need to re-add it in a form that won't be detected.
|
23 |
+
set(VCPKG_CXX_FLAGS_DEBUG "${VCPKG_CXX_FLAGS_DEBUG} -RTC1")
|
24 |
+
set(VCPKG_C_FLAGS_DEBUG "${VCPKG_C_FLAGS_DEBUG} -RTC1")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
vcpkg_cmake_configure(
|
28 |
+
SOURCE_PATH ${SOURCE_PATH}
|
29 |
+
OPTIONS
|
30 |
+
-DMSVC_RUNTIME_LIBRARY_CONFIG=${MSVC_RUNTIME_LIBRARY_CONFIG}
|
31 |
+
)
|
32 |
+
|
33 |
+
vcpkg_cmake_install()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
36 |
+
|
37 |
+
file(GLOB_RECURSE FILES "${CURRENT_PACKAGES_DIR}/include/*")
|
38 |
+
foreach(file ${FILES})
|
39 |
+
file(READ ${file} _contents)
|
40 |
+
string(REPLACE "ifndef __CPP_REDIS_USE_CUSTOM_TCP_CLIENT" "if 1" _contents "${_contents}")
|
41 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
42 |
+
string(REPLACE
|
43 |
+
"extern std::unique_ptr<logger_iface> active_logger;"
|
44 |
+
"extern __declspec(dllimport) std::unique_ptr<logger_iface> active_logger;"
|
45 |
+
_contents "${_contents}")
|
46 |
+
endif()
|
47 |
+
file(WRITE ${file} "${_contents}")
|
48 |
+
endforeach()
|
49 |
+
|
50 |
+
file(GLOB FILES_TO_REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/cpp_redis.ilk" "${CURRENT_PACKAGES_DIR}/bin/cpp_redis.dll.manifest")
|
51 |
+
if(FILES_TO_REMOVE)
|
52 |
+
file(REMOVE_RECURSE ${FILES_TO_REMOVE})
|
53 |
+
endif()
|
54 |
+
|
55 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
56 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
57 |
+
endif()
|
58 |
+
|
59 |
+
vcpkg_copy_pdbs()
|
60 |
+
|
61 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
62 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/tacopie/CMakeLists.txt
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_library(TACOPIE tacopie)
|
2 |
+
find_path(TACOPIE_H tacopie/tacopie)
|
3 |
+
|
4 |
+
message(STATUS "TACOPIE_H: ${TACOPIE_H}")
|
5 |
+
|
6 |
+
add_library(tacopie INTERFACE)
|
7 |
+
target_link_libraries(tacopie INTERFACE "${TACOPIE}")
|
8 |
+
target_include_directories(tacopie INTERFACE "${TACOPIE_H}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-redis/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-redis",
|
3 |
+
"version": "4.3.1",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "cpp-redis is a C++11 Asynchronous Multi-Platform Lightweight Redis Client, with support for synchronous operations and pipelining.",
|
6 |
+
"homepage": "https://github.com/cpp-redis/cpp_redis",
|
7 |
+
"license": "MIT",
|
8 |
+
"dependencies": [
|
9 |
+
"tacopie",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-taskflow/portfile.cmake
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
message(WARNING "The port 'cpp-taskflow' has been replaced with 'taskflow'.")
|
2 |
+
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-taskflow/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-taskflow",
|
3 |
+
"version-string": "2.6.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Fast Parallel Tasking Programming Library using Modern C++.",
|
6 |
+
"homepage": "https://github.com/taskflow/taskflow",
|
7 |
+
"dependencies": [
|
8 |
+
"taskflow"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-timsort/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO timsort/cpp-TimSort
|
4 |
+
REF v2.1.0
|
5 |
+
SHA512 57fe79d3174d9939a3212282cf64f4fdd90586eba806f57df65eb42c2b4783a68f39bd2b6709830b1688ae15f1a83f554468059b2ddf52b31805bfd23efc7db1
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DBUILD_TESTING=OFF
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/gfx PACKAGE_NAME gfx-timsort)
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
21 |
+
|
22 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cpp-timsort/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-timsort",
|
3 |
+
"version": "2.1.0",
|
4 |
+
"description": "A C++ implementation of timsort",
|
5 |
+
"homepage": "https://github.com/timsort/cpp-TimSort",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppad/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO coin-or/CppAD
|
4 |
+
REF 90c510458b61049c51f937fc6ed2e611fbb17b8b #20210000.7
|
5 |
+
SHA512 112a4663a3e13f2d852c4ce4e57f6bee2dc7584915fcbab75972568258faab0d4a5761c4eaa4c664543cb8674e8e70c0623054c07dff933f9513a47f1c7d6261
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
windows-fix.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
DISABLE_PARALLEL_CONFIGURE
|
14 |
+
OPTIONS
|
15 |
+
-Dcppad_prefix=${CURRENT_PACKAGES_DIR}
|
16 |
+
OPTIONS_RELEASE
|
17 |
+
-Dcmake_install_libdirs=lib
|
18 |
+
-Dcppad_debug_which:STRING=debug_none
|
19 |
+
OPTIONS_DEBUG
|
20 |
+
-Dcmake_install_libdirs=debug/lib
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_fixup_pkgconfig()
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/pkgconfig")
|
26 |
+
|
27 |
+
# Add the copyright
|
28 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppad/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "See related issue for compilation failure on UWP and ARM: https://github.com/microsoft/vcpkg/pull/12560#issuecomment-668412073",
|
3 |
+
"name": "cppad",
|
4 |
+
"version-string": "20210000.7",
|
5 |
+
"port-version": 3,
|
6 |
+
"description": "CppAD: A Package for Differentiation of C++ Algorithms",
|
7 |
+
"homepage": "https://github.com/coin-or/CppAD",
|
8 |
+
"supports": "!(arm | uwp)",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppad/windows-fix.patch
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/cppad/local/cppad_colpack.hpp b/include/cppad/local/cppad_colpack.hpp
|
2 |
+
index ee96ab5fe..6dd022180 100644
|
3 |
+
--- a/include/cppad/local/cppad_colpack.hpp
|
4 |
+
+++ b/include/cppad/local/cppad_colpack.hpp
|
5 |
+
@@ -59,7 +59,7 @@ it is not the case that both
|
6 |
+
This routine tries to minimize, with respect to the choice of colors,
|
7 |
+
the number of colors.
|
8 |
+
*/
|
9 |
+
-extern void cppad_colpack_general(
|
10 |
+
+CPPAD_LIB_EXPORT void cppad_colpack_general(
|
11 |
+
CppAD::vector<size_t>& color ,
|
12 |
+
size_t m ,
|
13 |
+
size_t n ,
|
14 |
+
@@ -91,7 +91,7 @@ The properties of this coloring have not yet been determined; see
|
15 |
+
Efficient Computation of Sparse Hessians Using Coloring
|
16 |
+
and Automatic Differentiation (pdf/ad/gebemedhin14.pdf)
|
17 |
+
*/
|
18 |
+
-extern void cppad_colpack_symmetric(
|
19 |
+
+CPPAD_LIB_EXPORT void cppad_colpack_symmetric(
|
20 |
+
CppAD::vector<size_t>& color ,
|
21 |
+
size_t n ,
|
22 |
+
const CppAD::vector<unsigned int*>& adolc_pattern
|
23 |
+
diff --git a/include/cppad/local/graph/json_parser.hpp b/include/cppad/local/graph/json_parser.hpp
|
24 |
+
index 17bcc7c7e..a28d2c045 100644
|
25 |
+
--- a/include/cppad/local/graph/json_parser.hpp
|
26 |
+
+++ b/include/cppad/local/graph/json_parser.hpp
|
27 |
+
@@ -42,7 +42,7 @@ Upon return it is a $cref cpp_ad_graph$$ representation of this function.
|
28 |
+
$head Prototype$$
|
29 |
+
$srccode%hpp% */
|
30 |
+
namespace CppAD { namespace local { namespace graph {
|
31 |
+
- void json_parser(
|
32 |
+
+ CPPAD_LIB_EXPORT void json_parser(
|
33 |
+
const std::string& json ,
|
34 |
+
cpp_graph& graph_obj
|
35 |
+
);
|
36 |
+
diff --git a/include/cppad/local/graph/json_writer.hpp b/include/cppad/local/graph/json_writer.hpp
|
37 |
+
index 36a4cb39f..299c56cc0 100644
|
38 |
+
--- a/include/cppad/local/graph/json_writer.hpp
|
39 |
+
+++ b/include/cppad/local/graph/json_writer.hpp
|
40 |
+
@@ -41,7 +41,7 @@ This is a $code cpp_graph$$ object.
|
41 |
+
$head Prototype$$
|
42 |
+
$srccode%hpp% */
|
43 |
+
namespace CppAD { namespace local { namespace graph {
|
44 |
+
- void json_writer(
|
45 |
+
+ CPPAD_LIB_EXPORT void json_writer(
|
46 |
+
std::string& json ,
|
47 |
+
const cpp_graph& graph_obj
|
48 |
+
);
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcms/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO artyom-beilis/cppcms
|
6 |
+
REF b72b19915794d1af63c9a9e9bea58e20a4ad93d4
|
7 |
+
SHA512 e99d34d14fbde22be725ac2c0bec069fb584e45c66767af75efaf454ca61a7a5e57434bf86109f910884c72202b8cf98fe16505e7d3d30d9218abd4d8b27d5df
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_find_acquire_program(PYTHON2)
|
11 |
+
|
12 |
+
vcpkg_configure_cmake(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
PREFER_NINJA
|
15 |
+
OPTIONS
|
16 |
+
-DPYTHON=${PYTHON2} # Switch to python3 on the next update
|
17 |
+
-DUSE_WINDOWS6_API=ON
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
22 |
+
|
23 |
+
file(GLOB EXE_DEBUG_FILES ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
24 |
+
file(REMOVE ${EXE_DEBUG_FILES})
|
25 |
+
file(GLOB EXE_FILES ${CURRENT_PACKAGES_DIR}/bin/*.exe)
|
26 |
+
file(REMOVE ${EXE_FILES})
|
27 |
+
|
28 |
+
file(INSTALL ${SOURCE_PATH}/MIT.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcms/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cppcms",
|
3 |
+
"version-string": "1.2.1",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "CppCMS is a Free High Performance Web Development Framework (not a CMS) aimed at Rapid Web Application Development",
|
6 |
+
"homepage": "https://github.com/artyom-beilis/cppcms",
|
7 |
+
"supports": "!(linux | osx)",
|
8 |
+
"dependencies": [
|
9 |
+
"icu",
|
10 |
+
"openssl",
|
11 |
+
"pcre",
|
12 |
+
"zlib"
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcodec/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO tplgy/cppcodec
|
4 |
+
REF v0.2
|
5 |
+
SHA512 50c9c81cdb12560c87e513e1fd22c1ad24ea37b7d20a0e3044d43fb887f4c6494c69468e4d0811cd2fc1ae8fdb01b01cfb9f3cfdd8611d4bb0221cbd38cbead3
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
OPTIONS
|
13 |
+
-DBUILD_TESTING=OFF
|
14 |
+
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
20 |
+
|
21 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
22 |
+
|
23 |
+
|
24 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcodec/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cppcodec",
|
3 |
+
"version-string": "0.2",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Header-only C++11 library to encode/decode base64, base64url, base32, base32hex and hex (a.k.a. base16) as specified in RFC 4648, plus Crockford's base32."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcoro/CMakeLists.txt
ADDED
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(cppcoro VERSION 2020.2 LANGUAGES CXX)
|
3 |
+
|
4 |
+
set(CMAKE_CXX_STANDARD 17)
|
5 |
+
|
6 |
+
add_library(cppcoro
|
7 |
+
lib/async_mutex.cpp
|
8 |
+
lib/lightweight_manual_reset_event.cpp
|
9 |
+
lib/async_auto_reset_event.cpp
|
10 |
+
lib/async_manual_reset_event.cpp
|
11 |
+
lib/auto_reset_event.cpp
|
12 |
+
lib/auto_reset_event.hpp
|
13 |
+
lib/cancellation_registration.cpp
|
14 |
+
lib/cancellation_source.cpp
|
15 |
+
lib/cancellation_state.cpp
|
16 |
+
lib/cancellation_state.hpp
|
17 |
+
lib/cancellation_token.cpp
|
18 |
+
lib/spin_mutex.cpp
|
19 |
+
lib/spin_mutex.hpp
|
20 |
+
lib/spin_wait.cpp
|
21 |
+
lib/spin_wait.hpp
|
22 |
+
lib/static_thread_pool.cpp
|
23 |
+
lib/ip_address.cpp
|
24 |
+
lib/ip_endpoint.cpp
|
25 |
+
lib/ipv4_address.cpp
|
26 |
+
lib/ipv4_endpoint.cpp
|
27 |
+
lib/ipv6_address.cpp
|
28 |
+
lib/ipv6_endpoint.cpp
|
29 |
+
)
|
30 |
+
|
31 |
+
if(APPLE)
|
32 |
+
message(STATUS "using sysroot: ${CMAKE_OSX_SYSROOT}")
|
33 |
+
elseif(WIN32)
|
34 |
+
message(STATUS "using platform: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
|
35 |
+
# for now, build in single target
|
36 |
+
target_sources(cppcoro
|
37 |
+
PRIVATE
|
38 |
+
lib/win32.cpp
|
39 |
+
lib/file.cpp
|
40 |
+
lib/file_read_operation.cpp
|
41 |
+
lib/file_write_operation.cpp
|
42 |
+
lib/read_only_file.cpp
|
43 |
+
lib/read_write_file.cpp
|
44 |
+
lib/readable_file.cpp
|
45 |
+
lib/writable_file.cpp
|
46 |
+
lib/write_only_file.cpp
|
47 |
+
lib/socket.cpp
|
48 |
+
lib/socket_accept_operation.cpp
|
49 |
+
lib/socket_connect_operation.cpp
|
50 |
+
lib/socket_send_operation.cpp
|
51 |
+
lib/socket_send_to_operation.cpp
|
52 |
+
lib/socket_disconnect_operation.cpp
|
53 |
+
lib/socket_helpers.cpp
|
54 |
+
lib/socket_helpers.hpp
|
55 |
+
lib/socket_recv_from_operation.cpp
|
56 |
+
lib/socket_recv_operation.cpp
|
57 |
+
lib/io_service.cpp
|
58 |
+
)
|
59 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
60 |
+
message(STATUS "using system: ${CMAKE_HOST_SYSTEM_VERSION}")
|
61 |
+
endif()
|
62 |
+
|
63 |
+
target_include_directories(cppcoro
|
64 |
+
PUBLIC
|
65 |
+
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
66 |
+
$<INSTALL_INTERFACE:include>
|
67 |
+
)
|
68 |
+
|
69 |
+
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
70 |
+
if(WIN32)
|
71 |
+
message(FATAL_ERROR "<experimental/resumable> doesn't support clang-cl compiler")
|
72 |
+
else()
|
73 |
+
target_compile_options(cppcoro
|
74 |
+
PUBLIC
|
75 |
+
-std=c++1z -fcoroutines-ts
|
76 |
+
-stdlib=libc++
|
77 |
+
)
|
78 |
+
target_link_libraries(cppcoro
|
79 |
+
PUBLIC
|
80 |
+
c++ pthread
|
81 |
+
)
|
82 |
+
endif()
|
83 |
+
|
84 |
+
elseif(MSVC)
|
85 |
+
target_compile_options(cppcoro
|
86 |
+
PUBLIC
|
87 |
+
/await
|
88 |
+
PRIVATE
|
89 |
+
"/analyze:max_paths 512"
|
90 |
+
-D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING=1
|
91 |
+
)
|
92 |
+
if(CMAKE_GENERATOR_PLATFORM STREQUAL x64)
|
93 |
+
target_compile_options(cppcoro
|
94 |
+
PUBLIC
|
95 |
+
/await:heapelide
|
96 |
+
)
|
97 |
+
endif()
|
98 |
+
|
99 |
+
endif()
|
100 |
+
|
101 |
+
if(WIN32)
|
102 |
+
target_link_libraries(cppcoro
|
103 |
+
PUBLIC
|
104 |
+
kernel32 synchronization ws2_32 mswsock
|
105 |
+
# msvcrt[d] msvcprt[d] vcruntime ucrt
|
106 |
+
)
|
107 |
+
elseif(APPLE)
|
108 |
+
|
109 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES Linux)
|
110 |
+
target_link_libraries(cppcoro
|
111 |
+
PUBLIC
|
112 |
+
c++ # stdc++ # expect libc++ instead of libstdc++
|
113 |
+
)
|
114 |
+
endif()
|
115 |
+
|
116 |
+
install(DIRECTORY include/cppcoro
|
117 |
+
DESTINATION include
|
118 |
+
)
|
119 |
+
|
120 |
+
install(TARGETS cppcoro
|
121 |
+
EXPORT ${PROJECT_NAME}-config
|
122 |
+
RUNTIME DESTINATION bin
|
123 |
+
LIBRARY DESTINATION lib
|
124 |
+
ARCHIVE DESTINATION lib
|
125 |
+
)
|
126 |
+
|
127 |
+
install(EXPORT ${PROJECT_NAME}-config
|
128 |
+
DESTINATION share/${PROJECT_NAME}
|
129 |
+
)
|
130 |
+
|
131 |
+
include(CMakePackageConfigHelpers)
|
132 |
+
set(VERSION_FILE_PATH ${CMAKE_BINARY_DIR}/cmake/${PROJECT_NAME}-config-version.cmake)
|
133 |
+
write_basic_package_version_file(${VERSION_FILE_PATH}
|
134 |
+
VERSION ${PROJECT_VERSION}
|
135 |
+
COMPATIBILITY SameMajorVersion
|
136 |
+
)
|
137 |
+
|
138 |
+
install(FILES ${VERSION_FILE_PATH}
|
139 |
+
DESTINATION share/${PROJECT_NAME}
|
140 |
+
)
|
141 |
+
|
142 |
+
if(NOT BUILD_TESTING)
|
143 |
+
return()
|
144 |
+
endif()
|
145 |
+
enable_testing()
|
146 |
+
find_package(Threads REQUIRED)
|
147 |
+
|
148 |
+
add_executable(cppcoro_test
|
149 |
+
test/main.cpp test/counted.cpp
|
150 |
+
test/generator_tests.cpp
|
151 |
+
# test/recursive_generator_tests.cpp # clang crash
|
152 |
+
test/async_generator_tests.cpp
|
153 |
+
test/async_auto_reset_event_tests.cpp
|
154 |
+
test/async_manual_reset_event_tests.cpp
|
155 |
+
test/async_mutex_tests.cpp
|
156 |
+
test/async_latch_tests.cpp
|
157 |
+
test/cancellation_token_tests.cpp
|
158 |
+
test/task_tests.cpp
|
159 |
+
test/sequence_barrier_tests.cpp
|
160 |
+
test/shared_task_tests.cpp
|
161 |
+
test/sync_wait_tests.cpp
|
162 |
+
test/single_consumer_async_auto_reset_event_tests.cpp
|
163 |
+
test/single_producer_sequencer_tests.cpp
|
164 |
+
test/multi_producer_sequencer_tests.cpp
|
165 |
+
test/when_all_tests.cpp
|
166 |
+
test/when_all_ready_tests.cpp
|
167 |
+
test/ip_address_tests.cpp
|
168 |
+
test/ip_endpoint_tests.cpp
|
169 |
+
test/ipv4_address_tests.cpp
|
170 |
+
test/ipv4_endpoint_tests.cpp
|
171 |
+
test/ipv6_address_tests.cpp
|
172 |
+
test/ipv6_endpoint_tests.cpp
|
173 |
+
test/static_thread_pool_tests.cpp
|
174 |
+
)
|
175 |
+
|
176 |
+
target_link_libraries(cppcoro_test
|
177 |
+
PRIVATE
|
178 |
+
cppcoro
|
179 |
+
Threads::Threads
|
180 |
+
)
|
181 |
+
|
182 |
+
find_package(doctest CONFIG REQUIRED)
|
183 |
+
get_target_property(DOCTEST_INCLUDE_DIR doctest::doctest
|
184 |
+
INTERFACE_INCLUDE_DIRECTORIES
|
185 |
+
)
|
186 |
+
message(STATUS "using doctest: ${DOCTEST_INCLUDE_DIR}")
|
187 |
+
target_link_libraries(cppcoro_test
|
188 |
+
PRIVATE
|
189 |
+
doctest::doctest
|
190 |
+
)
|
191 |
+
|
192 |
+
if(WIN32)
|
193 |
+
target_sources(cppcoro_test
|
194 |
+
PRIVATE
|
195 |
+
test/scheduling_operator_tests.cpp
|
196 |
+
test/io_service_tests.cpp
|
197 |
+
test/file_tests.cpp
|
198 |
+
test/socket_tests.cpp
|
199 |
+
)
|
200 |
+
endif()
|
201 |
+
|
202 |
+
add_test(NAME test_all COMMAND cppcoro_test --duration=true )
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcoro/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
if(VCPKG_TARGET_IS_LINUX)
|
4 |
+
message("Warning: cppcoro requires libc++ and Clang on Linux. See https://github.com/microsoft/vcpkg/pull/10693#issuecomment-610394650.")
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO lewissbaker/cppcoro
|
10 |
+
REF 92892f31d0c41b8e34e6292d7c9d99228da5c501
|
11 |
+
SHA512 d1997b7449f1c5c0790575d0755ffbb5f9eef13a7610f3ec666a585bdbb93bb1553f79214c1023a1ef23aaeef64078ca6ee3784107645d7a75c7bba943c10b84
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
16 |
+
DESTINATION ${SOURCE_PATH}
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_configure_cmake(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
PREFER_NINJA
|
22 |
+
OPTIONS
|
23 |
+
-DBUILD_TESTING=False
|
24 |
+
)
|
25 |
+
vcpkg_install_cmake()
|
26 |
+
|
27 |
+
vcpkg_fixup_cmake_targets()
|
28 |
+
|
29 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt
|
30 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
|
31 |
+
RENAME copyright
|
32 |
+
)
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
36 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppcoro/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cppcoro",
|
3 |
+
"version-date": "2020-02-28",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A library of C++ coroutine abstractions for the Coroutines TS",
|
6 |
+
"homepage": "https://github.com/lewissbaker/cppcoro",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/LibCrypto-fix.patch
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index ea9fd15..af63d1e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -7,7 +7,7 @@
|
6 |
+
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
7 |
+
|
8 |
+
# Include cmake modules
|
9 |
+
-list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
10 |
+
+# list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
11 |
+
|
12 |
+
include(GenerateExportHeader)
|
13 |
+
|
14 |
+
diff --git a/source/cppfs/CMakeLists.txt b/source/cppfs/CMakeLists.txt
|
15 |
+
index aa37eda..d29176a 100644
|
16 |
+
--- a/source/cppfs/CMakeLists.txt
|
17 |
+
+++ b/source/cppfs/CMakeLists.txt
|
18 |
+
@@ -4,18 +4,18 @@
|
19 |
+
#
|
20 |
+
|
21 |
+
find_package(LibSSH2)
|
22 |
+
-find_package(LibCrypto)
|
23 |
+
+# find_package(LibCrypto)
|
24 |
+
find_package(ZLIB)
|
25 |
+
find_package(OpenSSL)
|
26 |
+
|
27 |
+
-if (LibSSH2_FOUND AND LibCrypto_FOUND AND ZLIB_FOUND AND OpenSSL_FOUND)
|
28 |
+
+if (LibSSH2_FOUND AND ZLIB_FOUND AND OpenSSL_FOUND)
|
29 |
+
set(SSH_DEPS_MET TRUE)
|
30 |
+
else()
|
31 |
+
set(SSH_DEPS_MET FALSE)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
if (OPTION_BUILD_SSH_BACKEND AND NOT SSH_DEPS_MET)
|
35 |
+
- message(FATAL_ERROR "Requested to build ssh module but not all dependencies are found! LibSSH2: ${LibSSH2_FOUND}, LibCrypto: ${LibCrypto_FOUND}, ZLIB: ${ZLIB_FOUND}, OpenSSL: ${OpenSSL_FOUND}")
|
36 |
+
+ message(FATAL_ERROR "Requested to build ssh module but not all dependencies are found! LibSSH2: ${LibSSH2_FOUND}, ZLIB: ${ZLIB_FOUND}, OpenSSL: ${OpenSSL_FOUND}")
|
37 |
+
endif()
|
38 |
+
|
39 |
+
|
40 |
+
@@ -207,10 +207,9 @@ target_link_libraries(${target}
|
41 |
+
if (OPTION_BUILD_SSH_BACKEND)
|
42 |
+
target_link_libraries(${target}
|
43 |
+
PRIVATE
|
44 |
+
- ${OPENSSL_LIBRARIES}
|
45 |
+
- ${LIBSSH2_LIBRARY}
|
46 |
+
- ${LIBCRYPTO_LIBRARY}
|
47 |
+
- ${ZLIB_LIBRARY}
|
48 |
+
+ Libssh2::libssh2
|
49 |
+
+ OpenSSL::SSL OpenSSL::Crypto
|
50 |
+
+ ZLIB::ZLIB
|
51 |
+
)
|
52 |
+
|
53 |
+
if("${CMAKE_SYSTEM_NAME}" MATCHES "Windows")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/cmake-export-fix.patch
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index ea9fd15..c62c6fd 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -124,7 +124,7 @@ endif()
|
6 |
+
if((UNIX AND SYSTEM_DIR_INSTALL) OR OPTION_FORCE_SYSTEM_DIR_INSTALL)
|
7 |
+
# Install into the system (/usr/bin or /usr/local/bin)
|
8 |
+
set(INSTALL_ROOT "share/${project}") # /usr/[local]/share/<project>
|
9 |
+
- set(INSTALL_CMAKE "share/${project}/cmake") # /usr/[local]/share/<project>/cmake
|
10 |
+
+ set(INSTALL_CMAKE "share/${project}") # /usr/[local]/share/<project>
|
11 |
+
set(INSTALL_EXAMPLES "share/${project}") # /usr/[local]/share/<project>
|
12 |
+
set(INSTALL_DATA "share/${project}") # /usr/[local]/share/<project>
|
13 |
+
set(INSTALL_BIN "bin") # /usr/[local]/bin
|
14 |
+
@@ -183,7 +183,7 @@ add_subdirectory(deploy)
|
15 |
+
install(FILES "${PROJECT_BINARY_DIR}/VERSION" DESTINATION ${INSTALL_ROOT} COMPONENT runtime)
|
16 |
+
|
17 |
+
# Install cmake find script for the project
|
18 |
+
-install(FILES ${META_PROJECT_NAME}-config.cmake DESTINATION ${INSTALL_ROOT} COMPONENT dev)
|
19 |
+
+# install(FILES ${META_PROJECT_NAME}-config.cmake DESTINATION ${INSTALL_ROOT} COMPONENT dev)
|
20 |
+
|
21 |
+
# Install the project meta files
|
22 |
+
install(FILES AUTHORS DESTINATION ${INSTALL_ROOT} COMPONENT runtime)
|
23 |
+
diff --git a/source/cppfs/CMakeLists.txt b/source/cppfs/CMakeLists.txt
|
24 |
+
index aa37eda..e8a59e0 100644
|
25 |
+
--- a/source/cppfs/CMakeLists.txt
|
26 |
+
+++ b/source/cppfs/CMakeLists.txt
|
27 |
+
@@ -283,7 +283,7 @@ perform_health_checks(
|
28 |
+
|
29 |
+
# Library
|
30 |
+
install(TARGETS ${target}
|
31 |
+
- EXPORT "${target}-export" COMPONENT dev
|
32 |
+
+ EXPORT "${target}-config" COMPONENT dev
|
33 |
+
RUNTIME DESTINATION ${INSTALL_BIN} COMPONENT runtime
|
34 |
+
LIBRARY DESTINATION ${INSTALL_SHARED} COMPONENT runtime
|
35 |
+
ARCHIVE DESTINATION ${INSTALL_LIB} COMPONENT dev
|
36 |
+
@@ -302,8 +302,8 @@ install(DIRECTORY
|
37 |
+
)
|
38 |
+
|
39 |
+
# CMake config
|
40 |
+
-install(EXPORT ${target}-export
|
41 |
+
+install(EXPORT ${target}-config
|
42 |
+
NAMESPACE ${META_PROJECT_NAME}::
|
43 |
+
- DESTINATION ${INSTALL_CMAKE}/${target}
|
44 |
+
+ DESTINATION ${INSTALL_CMAKE}
|
45 |
+
COMPONENT dev
|
46 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO cginternals/cppfs
|
4 |
+
REF 156d72e2cf0a9b12bdce369fc5b5d98fb5dffe2d # v1.3.0
|
5 |
+
SHA512 da1e09f79d9e65e7676784f47196645aabe1e1284f0ea5e48e845a244f5d49f5ea4b032f9e2e38c8e6a29657ebe636c9b1c9a4601c4bbc7637e7f592c52a8961
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
LibCrypto-fix.patch
|
9 |
+
cmake-export-fix.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
if(${TARGET_TRIPLET} MATCHES "uwp")
|
13 |
+
message(FATAL_ERROR "cppfs does not support uwp")
|
14 |
+
endif()
|
15 |
+
|
16 |
+
set(SSH_BACKEND OFF)
|
17 |
+
if("ssh" IN_LIST FEATURES)
|
18 |
+
set(SSH_BACKEND ON)
|
19 |
+
if("${VCPKG_TARGET_ARCHITECTURE}" STREQUAL "arm64")
|
20 |
+
message(FATAL_ERROR "SSH backend of cppfs does not support arm64.")
|
21 |
+
endif()
|
22 |
+
endif()
|
23 |
+
|
24 |
+
vcpkg_configure_cmake(
|
25 |
+
SOURCE_PATH ${SOURCE_PATH}
|
26 |
+
PREFER_NINJA
|
27 |
+
OPTIONS
|
28 |
+
-DOPTION_BUILD_SSH_BACKEND=${SSH_BACKEND}
|
29 |
+
-DOPTION_BUILD_TESTS=Off
|
30 |
+
-DOPTION_FORCE_SYSTEM_DIR_INSTALL=On
|
31 |
+
)
|
32 |
+
|
33 |
+
vcpkg_install_cmake()
|
34 |
+
vcpkg_copy_pdbs()
|
35 |
+
|
36 |
+
vcpkg_fixup_cmake_targets()
|
37 |
+
|
38 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
39 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
40 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cppfs RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cppfs/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cppfs",
|
3 |
+
"version-string": "1.3.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Cross-platform C++ file system library supporting multiple backends",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"features": {
|
8 |
+
"ssh": {
|
9 |
+
"description": "SSH backend for cppfs",
|
10 |
+
"dependencies": [
|
11 |
+
"libssh2",
|
12 |
+
"openssl",
|
13 |
+
"zlib"
|
14 |
+
]
|
15 |
+
}
|
16 |
+
}
|
17 |
+
}
|