Spaces:
Sleeping
Sleeping
f7f99c5fad22e81446665868c7abce181f4062b747931e7df021b93706ec4afe
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/001_port_fixes.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/002_fix_dependencies.patch +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/portfile.cmake +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/benchmark/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/benchmark/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bento4/LICENSE +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bento4/fix-install-and-c4996-error.patch +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bento4/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bento4/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/CMakeLists.txt +278 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/fix-conflict-macro.patch +123 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-di/portfile.cmake +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-di/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-sml/portfile.cmake +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-sml/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-ut/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-ut/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-wintls/portfile.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-wintls/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bfgroup-lyra/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bfgroup-lyra/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bigint/CMakeLists.txt +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bigint/fix-osx-usage.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bigint/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bigint/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/0001_fix_uwp.patch +54 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/CMakeLists.txt +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitmagic/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitmagic/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-cpprestjson/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-cpprestjson/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-pugixml/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-pugixml/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidjson/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidjson/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidyaml/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidyaml/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer/vcpkg.json +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitsery/portfile.cmake +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitsery/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/blas/CMakeLists.txt +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/blas/portfile.cmake +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/blas/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/blaze/fix-vm-build.patch +20 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/001_port_fixes.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a390aed..658f994 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -233,7 +233,7 @@ if( ZMQ_FOUND )
|
6 |
+
endif()
|
7 |
+
|
8 |
+
if(MSVC)
|
9 |
+
- target_compile_options(${BEHAVIOR_TREE_LIBRARY} PRIVATE /W3 /WX)
|
10 |
+
+ target_compile_options(${BEHAVIOR_TREE_LIBRARY} PRIVATE /W3 /wd4702)
|
11 |
+
else()
|
12 |
+
target_compile_options(${BEHAVIOR_TREE_LIBRARY} PRIVATE
|
13 |
+
-Wall -Wextra -Werror=return-type)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/002_fix_dependencies.patch
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 658f994..a04cf27 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -14,7 +14,7 @@ if(MSVC)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
#---- Include boost to add coroutines ----
|
9 |
+
-find_package(Boost COMPONENTS coroutine QUIET)
|
10 |
+
+find_package(Boost REQUIRED) # coroutine2 is header-only
|
11 |
+
|
12 |
+
if(Boost_FOUND)
|
13 |
+
string(REPLACE "." "0" Boost_VERSION_NODOT ${Boost_VERSION})
|
14 |
+
@@ -46,17 +46,18 @@ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
15 |
+
|
16 |
+
#---- Find other packages ----
|
17 |
+
find_package(Threads)
|
18 |
+
-find_package(ZMQ)
|
19 |
+
+find_package(cppzmq)
|
20 |
+
|
21 |
+
list(APPEND BEHAVIOR_TREE_PUBLIC_LIBRARIES
|
22 |
+
${CMAKE_THREAD_LIBS_INIT}
|
23 |
+
${CMAKE_DL_LIBS}
|
24 |
+
)
|
25 |
+
|
26 |
+
-if( ZMQ_FOUND )
|
27 |
+
+if( ZMQ_FOUND OR ON )
|
28 |
+
message(STATUS "ZeroMQ found.")
|
29 |
+
add_definitions( -DZMQ_FOUND )
|
30 |
+
list(APPEND BT_SOURCE src/loggers/bt_zmq_publisher.cpp)
|
31 |
+
+ list(APPEND BEHAVIOR_TREE_EXTERNAL_LIBRARIES cppzmq)
|
32 |
+
else()
|
33 |
+
message(WARNING "ZeroMQ NOT found. Skipping the build of [PublisherZMQ] and [bt_recorder].")
|
34 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "https://github.com/BehaviorTree/BehaviorTree.CPP/archive/3.5.6.tar.gz"
|
5 |
+
FILENAME "BehaviorTree.CPP.3.5.6.tar.gz"
|
6 |
+
SHA512 cd3b15eb7c5bab68239b697da166220b4df8dd7e6cf5e831f316d411e24be56c9ed74e54a3e3dd332164d740159eaf9ce62d005601fd65133809dab29430c9b7
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
PATCHES
|
13 |
+
001_port_fixes.patch
|
14 |
+
002_fix_dependencies.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_ament_cmake=1
|
22 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Curses=1
|
23 |
+
-DBUILD_EXAMPLES=OFF
|
24 |
+
-DBUILD_UNIT_TESTS=OFF
|
25 |
+
-DBUILD_TOOLS=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_cmake()
|
29 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/BehaviorTreeV3/cmake TARGET_PATH share/behaviortreev3)
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
|
32 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE
|
35 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
36 |
+
"${CURRENT_PACKAGES_DIR}/lib/BehaviorTreeV3"
|
37 |
+
"${CURRENT_PACKAGES_DIR}/debug/lib/BehaviorTreeV3"
|
38 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/behaviortree-cpp/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "behaviortree-cpp",
|
3 |
+
"version": "3.5.6",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Behavior Trees Library in C++.",
|
6 |
+
"homepage": "https://www.behaviortree.dev",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"boost-coroutine2",
|
10 |
+
"cppzmq"
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/benchmark/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/benchmark
|
6 |
+
REF v1.6.1
|
7 |
+
SHA512 7d3e3baf5a2d92e9552ab5007c37253b3510ac269edf8922a2794ff3dfbd0bf5b4c519240d4577b1ec30ef9e8a64caa17a809054c3dc7f2b1bcd410596177d67
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
OPTIONS
|
14 |
+
-DBENCHMARK_ENABLE_TESTING=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/benchmark)
|
21 |
+
|
22 |
+
vcpkg_fixup_pkgconfig()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
26 |
+
|
27 |
+
# Handle copyright
|
28 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/benchmark/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "https://github.com/google/benchmark/issues/661 describes the missing UWP support upstream",
|
3 |
+
"name": "benchmark",
|
4 |
+
"version-semver": "1.6.1",
|
5 |
+
"description": "A library to support the benchmarking of functions, similar to unit-tests.",
|
6 |
+
"homepage": "https://github.com/google/benchmark",
|
7 |
+
"supports": "!uwp",
|
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/bento4/LICENSE
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Bento4 is developed by Axiomatic Systems LLC in San Francisco, California.
|
2 |
+
|
3 |
+
This software is available under two different licenses
|
4 |
+
For applications that are entirely distributable under the terms of the GPL(https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html), the Bento4 GPL license applies.
|
5 |
+
For applications that cannot be entirely distributable under the terms of the GPL (either the application, or code modules linked with the application are not compatible with the terms of the GPL licence), a non-GPL commercial license is available from Axiomatic Systems LLC.
|
6 |
+
Contact Gilles Boccon-Gibod ([email protected] or [email protected]) for more information.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bento4/fix-install-and-c4996-error.patch
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 2f08b2f..fccf2a8 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -35,6 +35,8 @@ endif()
|
6 |
+
|
7 |
+
add_library(ap4 STATIC ${AP4_SOURCES})
|
8 |
+
|
9 |
+
+add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
10 |
+
+
|
11 |
+
# Includes
|
12 |
+
include_directories(
|
13 |
+
${SOURCE_CORE}
|
14 |
+
@@ -43,6 +45,14 @@ include_directories(
|
15 |
+
${SOURCE_METADATA}
|
16 |
+
)
|
17 |
+
|
18 |
+
+# AP4 includes
|
19 |
+
+file(GLOB AP4_INCLUDES
|
20 |
+
+ ${SOURCE_CODECS}/*.h
|
21 |
+
+ ${SOURCE_CORE}/*.h
|
22 |
+
+ ${SOURCE_CRYPTO}/*.h
|
23 |
+
+ ${SOURCE_METADATA}/*.h
|
24 |
+
+)
|
25 |
+
+
|
26 |
+
# Apps
|
27 |
+
file(GLOB BENTO4_APPS RELATIVE ${SOURCE_ROOT}/Apps ${SOURCE_ROOT}/Apps/*)
|
28 |
+
foreach(app ${BENTO4_APPS})
|
29 |
+
@@ -50,3 +60,13 @@ foreach(app ${BENTO4_APPS})
|
30 |
+
add_executable(${binary_name} ${SOURCE_ROOT}/Apps/${app}/${app}.cpp)
|
31 |
+
target_link_libraries(${binary_name} ap4)
|
32 |
+
endforeach()
|
33 |
+
+
|
34 |
+
+# Install targets
|
35 |
+
+install(TARGETS ap4
|
36 |
+
+ RUNTIME DESTINATION bin
|
37 |
+
+ LIBRARY DESTINATION lib
|
38 |
+
+ ARCHIVE DESTINATION lib
|
39 |
+
+)
|
40 |
+
+
|
41 |
+
+# Install headers
|
42 |
+
+install(FILES ${AP4_INCLUDES} DESTINATION include)
|
43 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bento4/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO axiomatic-systems/Bento4
|
6 |
+
REF v1.5.1-628
|
7 |
+
SHA512 2bf44f55307178cc9128e323904acbfaa2f88e06beff26cf27fc0a7707875942de89778a0ee1a8315ef2c3b19754edad77d32fdb74f3d651f03c2623e7a9122d
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES fix-install-and-c4996-error.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_configure_cmake(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
PREFER_NINJA
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
20 |
+
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bento4/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bento4",
|
3 |
+
"version-string": "1.5.1",
|
4 |
+
"port-version": 629,
|
5 |
+
"description": "Bento4 is a C++ class library and tools designed to read and write ISO-MP4 files. This format is defined in international specifications ISO/IEC 14496-12, 14496-14 and 14496-15.",
|
6 |
+
"homepage": "https://github.com/axiomatic-systems/Bento4"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/CMakeLists.txt
ADDED
@@ -0,0 +1,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(berkeleydb C CXX)
|
3 |
+
|
4 |
+
option(INSTALL_HEADERS "Install header files" ON)
|
5 |
+
|
6 |
+
add_definitions(
|
7 |
+
-DWIN32
|
8 |
+
-D_WINDOWS
|
9 |
+
-D_CRT_SECURE_NO_DEPRECATE
|
10 |
+
-D_CRT_NONSTDC_NO_DEPRECATE
|
11 |
+
-D_LIB
|
12 |
+
-DUNICODE
|
13 |
+
-D_UNICODE
|
14 |
+
)
|
15 |
+
|
16 |
+
if (BUILD_SHARED_LIBS)
|
17 |
+
add_definitions(
|
18 |
+
-DDB_CREATE_DLL
|
19 |
+
-D_USRDLL
|
20 |
+
)
|
21 |
+
else()
|
22 |
+
add_definitions(
|
23 |
+
-D_LIB
|
24 |
+
)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
add_library(libdb48
|
28 |
+
btree/bt_compact.c
|
29 |
+
btree/bt_compare.c
|
30 |
+
btree/bt_compress.c
|
31 |
+
btree/bt_conv.c
|
32 |
+
btree/bt_curadj.c
|
33 |
+
btree/bt_cursor.c
|
34 |
+
btree/bt_delete.c
|
35 |
+
btree/bt_method.c
|
36 |
+
btree/bt_open.c
|
37 |
+
btree/bt_put.c
|
38 |
+
btree/bt_rec.c
|
39 |
+
btree/bt_reclaim.c
|
40 |
+
btree/bt_recno.c
|
41 |
+
btree/bt_rsearch.c
|
42 |
+
btree/bt_search.c
|
43 |
+
btree/bt_split.c
|
44 |
+
btree/bt_stat.c
|
45 |
+
btree/bt_upgrade.c
|
46 |
+
btree/bt_verify.c
|
47 |
+
btree/btree_auto.c
|
48 |
+
db/crdel_auto.c
|
49 |
+
db/crdel_rec.c
|
50 |
+
common/crypto_stub.c
|
51 |
+
cxx/cxx_db.cpp
|
52 |
+
cxx/cxx_dbc.cpp
|
53 |
+
cxx/cxx_dbt.cpp
|
54 |
+
cxx/cxx_env.cpp
|
55 |
+
cxx/cxx_except.cpp
|
56 |
+
cxx/cxx_lock.cpp
|
57 |
+
cxx/cxx_logc.cpp
|
58 |
+
cxx/cxx_mpool.cpp
|
59 |
+
cxx/cxx_multi.cpp
|
60 |
+
cxx/cxx_seq.cpp
|
61 |
+
cxx/cxx_txn.cpp
|
62 |
+
db/db.c
|
63 |
+
db/db_am.c
|
64 |
+
db/db_auto.c
|
65 |
+
common/db_byteorder.c
|
66 |
+
db/db_cam.c
|
67 |
+
db/db_cds.c
|
68 |
+
db/db_conv.c
|
69 |
+
db/db_dispatch.c
|
70 |
+
db/db_dup.c
|
71 |
+
common/db_err.c
|
72 |
+
common/db_getlong.c
|
73 |
+
common/db_idspace.c
|
74 |
+
common/db_compint.c
|
75 |
+
db/db_iface.c
|
76 |
+
db/db_join.c
|
77 |
+
common/db_log2.c
|
78 |
+
db/db_meta.c
|
79 |
+
db/db_method.c
|
80 |
+
db/db_open.c
|
81 |
+
db/db_overflow.c
|
82 |
+
db/db_ovfl_vrfy.c
|
83 |
+
db/db_pr.c
|
84 |
+
db/db_rec.c
|
85 |
+
db/db_reclaim.c
|
86 |
+
db/db_remove.c
|
87 |
+
db/db_rename.c
|
88 |
+
db/db_ret.c
|
89 |
+
db/db_setid.c
|
90 |
+
db/db_setlsn.c
|
91 |
+
common/db_shash.c
|
92 |
+
db/db_sort_multiple.c
|
93 |
+
db/db_stati.c
|
94 |
+
db/db_truncate.c
|
95 |
+
db/db_upg.c
|
96 |
+
db/db_upg_opd.c
|
97 |
+
db/db_vrfy.c
|
98 |
+
db/db_vrfyutil.c
|
99 |
+
db/partition.c
|
100 |
+
dbm/dbm.c
|
101 |
+
dbreg/dbreg.c
|
102 |
+
dbreg/dbreg_auto.c
|
103 |
+
dbreg/dbreg_rec.c
|
104 |
+
dbreg/dbreg_stat.c
|
105 |
+
dbreg/dbreg_util.c
|
106 |
+
common/dbt.c
|
107 |
+
env/env_alloc.c
|
108 |
+
env/env_config.c
|
109 |
+
env/env_failchk.c
|
110 |
+
env/env_file.c
|
111 |
+
env/env_globals.c
|
112 |
+
env/env_method.c
|
113 |
+
env/env_name.c
|
114 |
+
env/env_open.c
|
115 |
+
env/env_recover.c
|
116 |
+
env/env_region.c
|
117 |
+
env/env_register.c
|
118 |
+
env/env_sig.c
|
119 |
+
env/env_stat.c
|
120 |
+
fileops/fileops_auto.c
|
121 |
+
fileops/fop_basic.c
|
122 |
+
fileops/fop_rec.c
|
123 |
+
fileops/fop_util.c
|
124 |
+
hash/hash.c
|
125 |
+
hash/hash_auto.c
|
126 |
+
hash/hash_conv.c
|
127 |
+
hash/hash_dup.c
|
128 |
+
hash/hash_func.c
|
129 |
+
hash/hash_meta.c
|
130 |
+
hash/hash_method.c
|
131 |
+
hash/hash_open.c
|
132 |
+
hash/hash_page.c
|
133 |
+
hash/hash_rec.c
|
134 |
+
hash/hash_reclaim.c
|
135 |
+
hash/hash_stat.c
|
136 |
+
hash/hash_upgrade.c
|
137 |
+
hash/hash_verify.c
|
138 |
+
hmac/hmac.c
|
139 |
+
hsearch/hsearch.c
|
140 |
+
build_windows/libdb.def
|
141 |
+
lock/lock.c
|
142 |
+
lock/lock_deadlock.c
|
143 |
+
lock/lock_failchk.c
|
144 |
+
lock/lock_id.c
|
145 |
+
lock/lock_list.c
|
146 |
+
lock/lock_method.c
|
147 |
+
lock/lock_region.c
|
148 |
+
lock/lock_stat.c
|
149 |
+
lock/lock_timer.c
|
150 |
+
lock/lock_util.c
|
151 |
+
log/log.c
|
152 |
+
log/log_archive.c
|
153 |
+
log/log_compare.c
|
154 |
+
log/log_debug.c
|
155 |
+
log/log_get.c
|
156 |
+
log/log_method.c
|
157 |
+
log/log_put.c
|
158 |
+
log/log_stat.c
|
159 |
+
common/mkpath.c
|
160 |
+
mp/mp_alloc.c
|
161 |
+
mp/mp_bh.c
|
162 |
+
mp/mp_fget.c
|
163 |
+
mp/mp_fmethod.c
|
164 |
+
mp/mp_fopen.c
|
165 |
+
mp/mp_fput.c
|
166 |
+
mp/mp_fset.c
|
167 |
+
mp/mp_method.c
|
168 |
+
mp/mp_mvcc.c
|
169 |
+
mp/mp_region.c
|
170 |
+
mp/mp_register.c
|
171 |
+
mp/mp_resize.c
|
172 |
+
mp/mp_stat.c
|
173 |
+
mp/mp_sync.c
|
174 |
+
mp/mp_trickle.c
|
175 |
+
mutex/mut_alloc.c
|
176 |
+
mutex/mut_failchk.c
|
177 |
+
mutex/mut_method.c
|
178 |
+
mutex/mut_region.c
|
179 |
+
mutex/mut_stat.c
|
180 |
+
mutex/mut_win32.c
|
181 |
+
common/openflags.c
|
182 |
+
os/os_abort.c
|
183 |
+
os/os_addrinfo.c
|
184 |
+
os_windows/os_abs.c
|
185 |
+
os/os_alloc.c
|
186 |
+
os_windows/os_clock.c
|
187 |
+
os_windows/os_config.c
|
188 |
+
os_windows/os_cpu.c
|
189 |
+
os/os_ctime.c
|
190 |
+
os_windows/os_dir.c
|
191 |
+
os_windows/os_errno.c
|
192 |
+
os_windows/os_fid.c
|
193 |
+
os_windows/os_flock.c
|
194 |
+
os_windows/os_fsync.c
|
195 |
+
os_windows/os_getenv.c
|
196 |
+
os_windows/os_handle.c
|
197 |
+
os_windows/os_map.c
|
198 |
+
os_windows/os_mkdir.c
|
199 |
+
os_windows/os_open.c
|
200 |
+
os/os_pid.c
|
201 |
+
os_windows/os_rename.c
|
202 |
+
os/os_root.c
|
203 |
+
os/os_rpath.c
|
204 |
+
os_windows/os_rw.c
|
205 |
+
os_windows/os_seek.c
|
206 |
+
os/os_stack.c
|
207 |
+
os_windows/os_stat.c
|
208 |
+
os/os_tmpdir.c
|
209 |
+
os_windows/os_truncate.c
|
210 |
+
os/os_uid.c
|
211 |
+
os_windows/os_unlink.c
|
212 |
+
os_windows/os_yield.c
|
213 |
+
qam/qam.c
|
214 |
+
qam/qam_auto.c
|
215 |
+
qam/qam_conv.c
|
216 |
+
qam/qam_files.c
|
217 |
+
qam/qam_method.c
|
218 |
+
qam/qam_open.c
|
219 |
+
qam/qam_rec.c
|
220 |
+
qam/qam_stat.c
|
221 |
+
qam/qam_upgrade.c
|
222 |
+
qam/qam_verify.c
|
223 |
+
rep/rep_auto.c
|
224 |
+
rep/rep_backup.c
|
225 |
+
rep/rep_elect.c
|
226 |
+
rep/rep_lease.c
|
227 |
+
rep/rep_log.c
|
228 |
+
rep/rep_method.c
|
229 |
+
rep/rep_record.c
|
230 |
+
rep/rep_region.c
|
231 |
+
rep/rep_stat.c
|
232 |
+
rep/rep_util.c
|
233 |
+
rep/rep_verify.c
|
234 |
+
repmgr/repmgr_auto.c
|
235 |
+
repmgr/repmgr_elect.c
|
236 |
+
repmgr/repmgr_method.c
|
237 |
+
repmgr/repmgr_msg.c
|
238 |
+
repmgr/repmgr_net.c
|
239 |
+
repmgr/repmgr_queue.c
|
240 |
+
repmgr/repmgr_sel.c
|
241 |
+
repmgr/repmgr_stat.c
|
242 |
+
repmgr/repmgr_util.c
|
243 |
+
repmgr/repmgr_windows.c
|
244 |
+
sequence/seq_stat.c
|
245 |
+
sequence/sequence.c
|
246 |
+
hmac/sha1.c
|
247 |
+
clib/strsep.c
|
248 |
+
txn/txn.c
|
249 |
+
txn/txn_auto.c
|
250 |
+
txn/txn_chkpt.c
|
251 |
+
txn/txn_failchk.c
|
252 |
+
txn/txn_method.c
|
253 |
+
txn/txn_rec.c
|
254 |
+
txn/txn_recover.c
|
255 |
+
txn/txn_region.c
|
256 |
+
txn/txn_stat.c
|
257 |
+
txn/txn_util.c
|
258 |
+
common/os_method.c
|
259 |
+
common/util_cache.c
|
260 |
+
common/util_log.c
|
261 |
+
common/util_sig.c
|
262 |
+
common/zerofill.c
|
263 |
+
)
|
264 |
+
|
265 |
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR} build_windows dbinc)
|
266 |
+
|
267 |
+
target_link_libraries(libdb48 PUBLIC ws2_32.lib)
|
268 |
+
|
269 |
+
install(TARGETS libdb48
|
270 |
+
RUNTIME DESTINATION bin
|
271 |
+
ARCHIVE DESTINATION lib
|
272 |
+
LIBRARY DESTINATION lib
|
273 |
+
)
|
274 |
+
|
275 |
+
if(INSTALL_HEADERS)
|
276 |
+
file(GLOB HEADERS build_windows/*.h)
|
277 |
+
install(FILES ${HEADERS} DESTINATION include)
|
278 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/fix-conflict-macro.patch
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/dbinc/atomic.h b/dbinc/atomic.h
|
2 |
+
index 0034dcc..2dd5e03 100644
|
3 |
+
--- a/dbinc/atomic.h
|
4 |
+
+++ b/dbinc/atomic.h
|
5 |
+
@@ -70,7 +70,7 @@ typedef struct {
|
6 |
+
* These have no memory barriers; the caller must include them when necessary.
|
7 |
+
*/
|
8 |
+
#define atomic_read(p) ((p)->value)
|
9 |
+
-#define atomic_init(p, val) ((p)->value = (val))
|
10 |
+
+#define bdb_atomic_init(p, val) ((p)->value = (val))
|
11 |
+
|
12 |
+
#ifdef HAVE_ATOMIC_SUPPORT
|
13 |
+
|
14 |
+
@@ -206,7 +206,7 @@ static inline int __atomic_compare_exchange(
|
15 |
+
#define atomic_dec(env, p) (--(p)->value)
|
16 |
+
#define atomic_compare_exchange(env, p, oldval, newval) \
|
17 |
+
(DB_ASSERT(env, atomic_read(p) == (oldval)), \
|
18 |
+
- atomic_init(p, (newval)), 1)
|
19 |
+
+ bdb_atomic_init(p, (newval)), 1)
|
20 |
+
#else
|
21 |
+
#define atomic_inc(env, p) __atomic_inc(env, p)
|
22 |
+
#define atomic_dec(env, p) __atomic_dec(env, p)
|
23 |
+
diff --git a/mp/mp_fget.c b/mp/mp_fget.c
|
24 |
+
index 5fdee5a..452ef17 100644
|
25 |
+
--- a/mp/mp_fget.c
|
26 |
+
+++ b/mp/mp_fget.c
|
27 |
+
@@ -617,7 +617,7 @@ alloc: /* Allocate a new buffer header and data space. */
|
28 |
+
|
29 |
+
/* Initialize enough so we can call __memp_bhfree. */
|
30 |
+
alloc_bhp->flags = 0;
|
31 |
+
- atomic_init(&alloc_bhp->ref, 1);
|
32 |
+
+ bdb_atomic_init(&alloc_bhp->ref, 1);
|
33 |
+
#ifdef DIAGNOSTIC
|
34 |
+
if ((uintptr_t)alloc_bhp->buf & (sizeof(size_t) - 1)) {
|
35 |
+
__db_errx(env,
|
36 |
+
@@ -911,7 +911,7 @@ alloc: /* Allocate a new buffer header and data space. */
|
37 |
+
MVCC_MPROTECT(bhp->buf, mfp->stat.st_pagesize,
|
38 |
+
PROT_READ);
|
39 |
+
|
40 |
+
- atomic_init(&alloc_bhp->ref, 1);
|
41 |
+
+ bdb_atomic_init(&alloc_bhp->ref, 1);
|
42 |
+
MUTEX_LOCK(env, alloc_bhp->mtx_buf);
|
43 |
+
alloc_bhp->priority = bhp->priority;
|
44 |
+
alloc_bhp->pgno = bhp->pgno;
|
45 |
+
diff --git a/mp/mp_mvcc.c b/mp/mp_mvcc.c
|
46 |
+
index 34467d2..b604388 100644
|
47 |
+
--- a/mp/mp_mvcc.c
|
48 |
+
+++ b/mp/mp_mvcc.c
|
49 |
+
@@ -276,7 +276,7 @@ __memp_bh_freeze(dbmp, infop, hp, bhp, need_frozenp)
|
50 |
+
#else
|
51 |
+
memcpy(frozen_bhp, bhp, SSZA(BH, buf));
|
52 |
+
#endif
|
53 |
+
- atomic_init(&frozen_bhp->ref, 0);
|
54 |
+
+ bdb_atomic_init(&frozen_bhp->ref, 0);
|
55 |
+
if (mutex != MUTEX_INVALID)
|
56 |
+
frozen_bhp->mtx_buf = mutex;
|
57 |
+
else if ((ret = __mutex_alloc(env, MTX_MPOOL_BH,
|
58 |
+
@@ -428,7 +428,7 @@ __memp_bh_thaw(dbmp, infop, hp, frozen_bhp, alloc_bhp)
|
59 |
+
#endif
|
60 |
+
alloc_bhp->mtx_buf = mutex;
|
61 |
+
MUTEX_LOCK(env, alloc_bhp->mtx_buf);
|
62 |
+
- atomic_init(&alloc_bhp->ref, 1);
|
63 |
+
+ bdb_atomic_init(&alloc_bhp->ref, 1);
|
64 |
+
F_CLR(alloc_bhp, BH_FROZEN);
|
65 |
+
}
|
66 |
+
|
67 |
+
diff --git a/mp/mp_region.c b/mp/mp_region.c
|
68 |
+
index e6cece9..e3e3382 100644
|
69 |
+
--- a/mp/mp_region.c
|
70 |
+
+++ b/mp/mp_region.c
|
71 |
+
@@ -224,7 +224,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
|
72 |
+
MTX_MPOOL_FILE_BUCKET, 0, &htab[i].mtx_hash)) != 0)
|
73 |
+
return (ret);
|
74 |
+
SH_TAILQ_INIT(&htab[i].hash_bucket);
|
75 |
+
- atomic_init(&htab[i].hash_page_dirty, 0);
|
76 |
+
+ bdb_atomic_init(&htab[i].hash_page_dirty, 0);
|
77 |
+
}
|
78 |
+
|
79 |
+
/*
|
80 |
+
@@ -269,7 +269,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
|
81 |
+
hp->mtx_hash = (mtx_base == MUTEX_INVALID) ? MUTEX_INVALID :
|
82 |
+
mtx_base + i;
|
83 |
+
SH_TAILQ_INIT(&hp->hash_bucket);
|
84 |
+
- atomic_init(&hp->hash_page_dirty, 0);
|
85 |
+
+ bdb_atomic_init(&hp->hash_page_dirty, 0);
|
86 |
+
#ifdef HAVE_STATISTICS
|
87 |
+
hp->hash_io_wait = 0;
|
88 |
+
hp->hash_frozen = hp->hash_thawed = hp->hash_frozen_freed = 0;
|
89 |
+
diff --git a/mutex/mut_method.c b/mutex/mut_method.c
|
90 |
+
index 2588763..56b6723 100644
|
91 |
+
--- a/mutex/mut_method.c
|
92 |
+
+++ b/mutex/mut_method.c
|
93 |
+
@@ -426,7 +426,7 @@ atomic_compare_exchange(env, v, oldval, newval)
|
94 |
+
MUTEX_LOCK(env, mtx);
|
95 |
+
ret = atomic_read(v) == oldval;
|
96 |
+
if (ret)
|
97 |
+
- atomic_init(v, newval);
|
98 |
+
+ bdb_atomic_init(v, newval);
|
99 |
+
MUTEX_UNLOCK(env, mtx);
|
100 |
+
|
101 |
+
return (ret);
|
102 |
+
diff --git a/mutex/mut_tas.c b/mutex/mut_tas.c
|
103 |
+
index f3922e0..934a654 100644
|
104 |
+
--- a/mutex/mut_tas.c
|
105 |
+
+++ b/mutex/mut_tas.c
|
106 |
+
@@ -46,7 +46,7 @@ __db_tas_mutex_init(env, mutex, flags)
|
107 |
+
|
108 |
+
#ifdef HAVE_SHARED_LATCHES
|
109 |
+
if (F_ISSET(mutexp, DB_MUTEX_SHARED))
|
110 |
+
- atomic_init(&mutexp->sharecount, 0);
|
111 |
+
+ bdb_atomic_init(&mutexp->sharecount, 0);
|
112 |
+
else
|
113 |
+
#endif
|
114 |
+
if (MUTEX_INIT(&mutexp->tas)) {
|
115 |
+
@@ -486,7 +486,7 @@ __db_tas_mutex_unlock(env, mutex)
|
116 |
+
F_CLR(mutexp, DB_MUTEX_LOCKED);
|
117 |
+
/* Flush flag update before zeroing count */
|
118 |
+
MEMBAR_EXIT();
|
119 |
+
- atomic_init(&mutexp->sharecount, 0);
|
120 |
+
+ bdb_atomic_init(&mutexp->sharecount, 0);
|
121 |
+
} else {
|
122 |
+
DB_ASSERT(env, sharecount > 0);
|
123 |
+
MEMBAR_EXIT();
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://download.oracle.com/berkeley-db/db-4.8.30.NC.zip"
|
3 |
+
FILENAME "db-4.8.30.NC.zip"
|
4 |
+
SHA512 59c1d2d5a3551f988ab1dc063900572b67ad087537e0d71760de34601f9ebd4d5c070a49b809bec4a599a62417e9a162683ce0f6442deb1a0dadb80764bf6eab
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive_ex(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
ARCHIVE ${ARCHIVE}
|
10 |
+
PATCHES fix-conflict-macro.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_install_cmake()
|
22 |
+
|
23 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/berkeleydb/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "berkeleydb",
|
3 |
+
"version": "4.8.30",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "BDB - A high-performance embedded database for key/value data.",
|
6 |
+
"homepage": "https://download.oracle.com/",
|
7 |
+
"supports": "!(uwp | linux | osx)"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-di/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO boost-ext/di
|
4 |
+
REF 6078f073feb8560127fbf0308b3794a551146252 # v1.2.0
|
5 |
+
SHA512 d7876b10b0365a92095ee7edefdc9cb9a0e237baf2bad124a927f22ed6ec30e18802b20517bc032184f39b7b4d71f44e965bdcea074646871d0194bd4e851d43
|
6 |
+
HEAD_REF cpp14
|
7 |
+
)
|
8 |
+
|
9 |
+
file(INSTALL ${SOURCE_PATH}/include/boost
|
10 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
11 |
+
|
12 |
+
vcpkg_download_distfile(LICENSE
|
13 |
+
URLS https://www.boost.org/LICENSE_1_0.txt
|
14 |
+
FILENAME "di-copyright"
|
15 |
+
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
|
16 |
+
)
|
17 |
+
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-di/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bext-di",
|
3 |
+
"version": "1.2.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "C++14 Dependency Injection Library.",
|
6 |
+
"homepage": "https://github.com/boost-ext/di"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-sml/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO boost-ext/sml
|
5 |
+
REF v1.1.4
|
6 |
+
SHA512 0ded162e5d9d7cc9d8769fd9131d7a5cfc98187c8e9d98393eda9e0804c282e510707de38fe7229d2fe16aea70c9a8e300f14e992fff3ddedd0fa1b6a66ab1ba
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(INSTALL "${SOURCE_PATH}/include/boost/sml.hpp"
|
11 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include/boost"
|
12 |
+
)
|
13 |
+
|
14 |
+
# Handle copyright
|
15 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-sml/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bext-sml",
|
3 |
+
"version": "1.1.4",
|
4 |
+
"description": "Your scalable C++14 one header only State Machine Library with no dependencies",
|
5 |
+
"homepage": "https://github.com/boost-ext/sml"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-ut/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO boost-ext/ut
|
4 |
+
REF v1.1.8
|
5 |
+
SHA512 0df2f8ce784dc69c3cca5554a8b2be7c1664dd66bf52e83f305db5fae84d416a851e9282e9a8cfe50fbcada85b17da00fb25c1228d9cca32226a18bae18acb83
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_download_distfile(LICENSE_FILE
|
10 |
+
URLS https://www.boost.org/LICENSE_1_0.txt
|
11 |
+
FILENAME d6078467835dba893231.txt
|
12 |
+
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS
|
19 |
+
-DBOOST_UT_BUILD_BENCHMARKS=OFF
|
20 |
+
-DBOOST_UT_BUILD_EXAMPLES=OFF
|
21 |
+
-DBOOST_UT_BUILD_TESTS=OFF
|
22 |
+
)
|
23 |
+
vcpkg_install_cmake()
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/ut TARGET_PATH share/ut)
|
26 |
+
|
27 |
+
configure_file("${LICENSE_FILE}" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug
|
30 |
+
${CURRENT_PACKAGES_DIR}/lib
|
31 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-ut/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bext-ut",
|
3 |
+
"version": "1.1.8",
|
4 |
+
"description": "UT: C++20 μ(micro)/Unit Testing Framework",
|
5 |
+
"homepage": "https://boost-ext.github.io/ut/"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-wintls/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO laudrup/boost-wintls
|
4 |
+
REF v0.9.5
|
5 |
+
SHA512 5b6a88d64225c0f065d18f65319d44b90eb594431c53d9fbff72edfe2fc909613a966062b5636db7a3d0e36a389a0948dada0fbfa61b21b7b52b1af952d93071
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${SOURCE_PATH}/include/boost/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/boost/")
|
10 |
+
|
11 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bext-wintls/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bext-wintls",
|
3 |
+
"version": "0.9.5",
|
4 |
+
"description": "Native Windows TLS stream wrapper for use with boost::asio",
|
5 |
+
"homepage": "https://github.com/laudrup/boost-wintls",
|
6 |
+
"supports": "windows",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-asio",
|
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/bfgroup-lyra/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO bfgroup/Lyra
|
4 |
+
REF 1.5.1
|
5 |
+
SHA512 e349c57614fe18cfee49b6a3977f133de3e567aa6b1c148abf9510432f7db34b75488739850e48c7943a15151fe2eedb129179d8d73eb61fb4f9a11c54b61086
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
vcpkg_cmake_install()
|
13 |
+
vcpkg_cmake_config_fixup(
|
14 |
+
PACKAGE_NAME lyra
|
15 |
+
CONFIG_PATH share/lyra/cmake
|
16 |
+
)
|
17 |
+
|
18 |
+
# Library is header-only, so no debug content.
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bfgroup-lyra/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bfgroup-lyra",
|
3 |
+
"version": "1.5.1",
|
4 |
+
"description": "A simple to use, composable, command line parser for C++ 11 and beyond",
|
5 |
+
"homepage": "https://bfgroup.github.io/Lyra/",
|
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/bigint/CMakeLists.txt
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14.0)
|
2 |
+
project(bigint CXX)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
set(BIGINT_SRCS
|
9 |
+
BigUnsigned.cc
|
10 |
+
BigInteger.cc
|
11 |
+
BigIntegerAlgorithms.cc
|
12 |
+
BigUnsignedInABase.cc
|
13 |
+
BigIntegerUtils.cc
|
14 |
+
)
|
15 |
+
|
16 |
+
set(BIGINT_HH
|
17 |
+
NumberlikeArray.hh
|
18 |
+
BigUnsigned.hh
|
19 |
+
BigInteger.hh
|
20 |
+
BigIntegerAlgorithms.hh
|
21 |
+
BigUnsignedInABase.hh
|
22 |
+
BigIntegerLibrary.hh
|
23 |
+
BigIntegerUtils.hh
|
24 |
+
)
|
25 |
+
|
26 |
+
add_library(bigint ${BIGINT_SRCS})
|
27 |
+
target_include_directories(bigint PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
28 |
+
|
29 |
+
install(
|
30 |
+
TARGETS bigint
|
31 |
+
EXPORT bigint-config
|
32 |
+
)
|
33 |
+
|
34 |
+
install(
|
35 |
+
EXPORT bigint-config
|
36 |
+
NAMESPACE bigint::
|
37 |
+
DESTINATION share/bigint
|
38 |
+
)
|
39 |
+
|
40 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
41 |
+
install(FILES ${BIGINT_HH} DESTINATION include/bigint)
|
42 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bigint/fix-osx-usage.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/BigUnsigned.hh b/BigUnsigned.hh
|
2 |
+
index adf1c00..9228753 100644
|
3 |
+
--- a/BigUnsigned.hh
|
4 |
+
+++ b/BigUnsigned.hh
|
5 |
+
@@ -20,7 +20,7 @@ public:
|
6 |
+
typedef unsigned long Blk;
|
7 |
+
|
8 |
+
typedef NumberlikeArray<Blk>::Index Index;
|
9 |
+
- NumberlikeArray<Blk>::N;
|
10 |
+
+ using NumberlikeArray<Blk>::N;
|
11 |
+
|
12 |
+
protected:
|
13 |
+
// Creates a BigUnsigned with a capacity; for internal use.
|
14 |
+
@@ -84,8 +84,8 @@ public:
|
15 |
+
// BIT/BLOCK ACCESSORS
|
16 |
+
|
17 |
+
// Expose these from NumberlikeArray directly.
|
18 |
+
- NumberlikeArray<Blk>::getCapacity;
|
19 |
+
- NumberlikeArray<Blk>::getLength;
|
20 |
+
+ using NumberlikeArray<Blk>::getCapacity;
|
21 |
+
+ using NumberlikeArray<Blk>::getLength;
|
22 |
+
|
23 |
+
/* Returns the requested block, or 0 if it is beyond the length (as if
|
24 |
+
* the number had 0s infinitely to the left). */
|
25 |
+
diff --git a/BigUnsignedInABase.hh b/BigUnsignedInABase.hh
|
26 |
+
index 8f9bdce..0ea89c6 100644
|
27 |
+
--- a/BigUnsignedInABase.hh
|
28 |
+
+++ b/BigUnsignedInABase.hh
|
29 |
+
@@ -100,8 +100,8 @@ public:
|
30 |
+
Base getBase() const { return base; }
|
31 |
+
|
32 |
+
// Expose these from NumberlikeArray directly.
|
33 |
+
- NumberlikeArray<Digit>::getCapacity;
|
34 |
+
- NumberlikeArray<Digit>::getLength;
|
35 |
+
+ using NumberlikeArray<Digit>::getCapacity;
|
36 |
+
+ using NumberlikeArray<Digit>::getLength;
|
37 |
+
|
38 |
+
/* Returns the requested digit, or 0 if it is beyond the length (as if
|
39 |
+
* the number had 0s infinitely to the left). */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bigint/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "https://mattmccutchen.net/bigint/bigint-2010.04.30.tar.bz2"
|
5 |
+
FILENAME "bigint-2010.04.30.tar.bz2"
|
6 |
+
SHA512 bb64380e51991f97a2489c04801ab4372f795b5e23870ad12d71087f1a2afba9b32f74dcdbdcb5228ebf0dd74a37185285bac7653dd3c62d6118d63c298689af
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
PATCHES fix-osx-usage.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_install_cmake()
|
24 |
+
vcpkg_fixup_cmake_targets()
|
25 |
+
|
26 |
+
file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bigint/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bigint",
|
3 |
+
"version-string": "2010.04.30",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "C++ Big Integer Library",
|
6 |
+
"homepage": "https://mattmccutchen.net/bigint"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/0001_fix_uwp.patch
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/binn.c b/src/binn.c
|
2 |
+
index ef32f35..d12d473 100644
|
3 |
+
--- a/src/binn.c
|
4 |
+
+++ b/src/binn.c
|
5 |
+
@@ -142,8 +142,14 @@ BINN_PRIVATE void copy_be64(u64 *pdest, u64 *psource) {
|
6 |
+
/***************************************************************************/
|
7 |
+
|
8 |
+
#ifndef WIN32
|
9 |
+
#define stricmp strcasecmp
|
10 |
+
#define strnicmp strncasecmp
|
11 |
+
+#define sprintf_s(b, n, ...) sprintf(b, __VA_ARGS__)
|
12 |
+
+#define strcpy_s(b, n, s) strcpy(b, s)
|
13 |
+
+#else
|
14 |
+
+#define stricmp _stricmp
|
15 |
+
+#define strnicmp _strnicmp
|
16 |
+
+#define strdup _strdup
|
17 |
+
#endif
|
18 |
+
|
19 |
+
BINN_PRIVATE BOOL IsValidBinnHeader(void *pbuf, int *ptype, int *pcount, int *psize, int *pheadersize);
|
20 |
+
@@ -1582,6 +1588,7 @@ BINN_PRIVATE BOOL binn_read_pair(int expected_type, void *ptr, int pos, int *pid
|
21 |
+
base = p;
|
22 |
+
plimit = p + size - 1;
|
23 |
+
p += header_size;
|
24 |
+
+ key = 0;
|
25 |
+
|
26 |
+
for (i = 0; i < count; i++) {
|
27 |
+
switch (type) {
|
28 |
+
@@ -3333,7 +3340,7 @@ char * APIENTRY binn_get_str(binn *value) {
|
29 |
+
|
30 |
+
if (type_family(value->type) == BINN_FAMILY_INT) {
|
31 |
+
if (copy_int_value(value->ptr, &vint, value->type, BINN_INT64) == FALSE) return NULL;
|
32 |
+
- sprintf(buf, "%" INT64_FORMAT, vint);
|
33 |
+
+ sprintf_s(buf, sizeof buf, "%" INT64_FORMAT, vint);
|
34 |
+
goto loc_convert_value;
|
35 |
+
}
|
36 |
+
|
37 |
+
@@ -3341,14 +3348,14 @@ char * APIENTRY binn_get_str(binn *value) {
|
38 |
+
case BINN_FLOAT:
|
39 |
+
value->vdouble = value->vfloat;
|
40 |
+
case BINN_DOUBLE:
|
41 |
+
- sprintf(buf, "%g", value->vdouble);
|
42 |
+
+ sprintf_s(buf, sizeof buf, "%g", value->vdouble);
|
43 |
+
goto loc_convert_value;
|
44 |
+
case BINN_STRING:
|
45 |
+
return (char*) value->ptr;
|
46 |
+
case BINN_BOOL:
|
47 |
+
if (value->vbool)
|
48 |
+
- strcpy(buf, "true");
|
49 |
+
+ strcpy_s(buf, sizeof buf, "true");
|
50 |
+
else
|
51 |
+
- strcpy(buf, "false");
|
52 |
+
+ strcpy_s(buf, sizeof buf, "false");
|
53 |
+
goto loc_convert_value;
|
54 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/CMakeLists.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
|
3 |
+
project(binn
|
4 |
+
VERSION 1.0
|
5 |
+
DESCRIPTION "Binn is a binary data serialization format designed to be compact, fast and easy to use."
|
6 |
+
HOMEPAGE_URL "https://github.com/liteserver/binn"
|
7 |
+
)
|
8 |
+
|
9 |
+
add_library (binn src/binn.h src/binn.c)
|
10 |
+
|
11 |
+
target_include_directories(binn
|
12 |
+
PUBLIC
|
13 |
+
${PROJECT_SOURCE_DIR}/src
|
14 |
+
)
|
15 |
+
|
16 |
+
install(
|
17 |
+
TARGETS binn
|
18 |
+
RUNTIME DESTINATION bin
|
19 |
+
LIBRARY DESTINATION lib
|
20 |
+
ARCHIVE DESTINATION lib
|
21 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO liteserver/binn
|
6 |
+
REF b657ef3f38b37aa1e5dea88a9332889d0fbf3a81 # 3.0
|
7 |
+
SHA512 14bf572152ec5343a161dea9ebfd2b63cd5ce48c0db3decf5591aa94ae7766771cf521ba22978e9ae8855feef694bad85951f3c4a29cb9ddd881918fc6d3722a
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
0001_fix_uwp.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
14 |
+
|
15 |
+
file(INSTALL ${SOURCE_PATH}/src/binn.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/binn)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
# Handle copyright
|
25 |
+
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/binn)
|
26 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/binn/LICENSE ${CURRENT_PACKAGES_DIR}/share/binn/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/binn/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "binn",
|
3 |
+
"version-string": "3.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Binn is a binary data serialization format designed to be compact, fast and easy to use."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitmagic/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO tlk00/BitMagic
|
5 |
+
REF v7.5.0
|
6 |
+
SHA512 237D81D6AED1DAF612BF4F64DD7C883018198C1E1F5A58837B04D010971950C27C91B978AA8D774145B45A5B0C4121AC45CFF1094793E56066F2EFA8B4C3D6ED
|
7 |
+
HEAD_REF master
|
8 |
+
|
9 |
+
)
|
10 |
+
|
11 |
+
file(GLOB HEADER_LIST "${SOURCE_PATH}/src/*.h")
|
12 |
+
file(INSTALL ${HEADER_LIST} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
13 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitmagic/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitmagic",
|
3 |
+
"version": "7.5.0",
|
4 |
+
"description": "Algorithms and tools for Algebra of Sets for information retrieval, indexing of databases, scientific algorithms, ranking, clustering, unsupervised machine learning and signal processing.",
|
5 |
+
"homepage": "http://bitmagic.io"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-cpprestjson/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-cpprestjson/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitserializer-cpprestjson",
|
3 |
+
"version-string": "alias",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Deprecated alias for bitserializer-cpprestjson",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "bitserializer",
|
9 |
+
"features": [
|
10 |
+
"cpprestjson-archive"
|
11 |
+
]
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-pugixml/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-pugixml/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitserializer-pugixml",
|
3 |
+
"version-string": "alias",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Deprecated alias for bitserializer-pugixml",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "bitserializer",
|
9 |
+
"features": [
|
10 |
+
"pugixml-archive"
|
11 |
+
]
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidjson/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidjson/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitserializer-rapidjson",
|
3 |
+
"version-string": "alias",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Deprecated alias for bitserializer-rapidjson",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "bitserializer",
|
9 |
+
"features": [
|
10 |
+
"rapidjson-archive"
|
11 |
+
]
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidyaml/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer-rapidyaml/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitserializer-rapidyaml",
|
3 |
+
"version-string": "alias",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Deprecated alias for bitserializer-rapidyaml",
|
6 |
+
"supports": "!osx",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "bitserializer",
|
10 |
+
"features": [
|
11 |
+
"rapidyaml-archive"
|
12 |
+
]
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_bitbucket(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Pavel_Kisliak/BitSerializer
|
4 |
+
REF 0.44
|
5 |
+
SHA512 0629acc93807254bd51d9eed761a92be4780d01604a9ae4bf8a933af70fdb206ea9b4f4db3489805b4163f5071246529ea22f8b3e7fbcd77ed936c3ab24697b2
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
"cpprestjson-archive" BUILD_CPPRESTJSON_ARCHIVE
|
12 |
+
"rapidjson-archive" BUILD_RAPIDJSON_ARCHIVE
|
13 |
+
"pugixml-archive" BUILD_PUGIXML_ARCHIVE
|
14 |
+
"rapidyaml-archive" BUILD_RAPIDYAML_ARCHIVE
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
${FEATURE_OPTIONS}
|
22 |
+
)
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/bitserializer)
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitserializer/vcpkg.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitserializer",
|
3 |
+
"version": "0.44",
|
4 |
+
"description": "C++ 17 library for serialization to JSON, XML, YAML",
|
5 |
+
"homepage": "https://bitbucket.org/Pavel_Kisliak/bitserializer",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"cpprestjson-archive": {
|
18 |
+
"description": "Module for support JSON (implementation based on the CppRestSDK library)",
|
19 |
+
"dependencies": [
|
20 |
+
"cpprestsdk"
|
21 |
+
]
|
22 |
+
},
|
23 |
+
"pugixml-archive": {
|
24 |
+
"description": "Module for support XML (implementation based on the PugiXml library)",
|
25 |
+
"dependencies": [
|
26 |
+
"pugixml"
|
27 |
+
]
|
28 |
+
},
|
29 |
+
"rapidjson-archive": {
|
30 |
+
"description": "Module for support JSON (implementation based on the RapidJson library)",
|
31 |
+
"dependencies": [
|
32 |
+
"rapidjson"
|
33 |
+
]
|
34 |
+
},
|
35 |
+
"rapidyaml-archive": {
|
36 |
+
"description": "Module for support YAML (implementation based on the RapidYaml library)",
|
37 |
+
"dependencies": [
|
38 |
+
{
|
39 |
+
"name": "ryml",
|
40 |
+
"platform": "!osx"
|
41 |
+
}
|
42 |
+
]
|
43 |
+
}
|
44 |
+
}
|
45 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitsery/portfile.cmake
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO fraillt/bitsery
|
4 |
+
REF c0fc083c9de805e5825d7553507569febf6a6f93 # v5.2.2
|
5 |
+
SHA512 a4c8660f6e8dcb5162f6f75e0f1e4716032b8403e9461f42e0628955eb07dc7c17aec9f774f45c2c15cce28a231699a71815d3d6d7d0f34a1367ee1e2d944305
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_install()
|
14 |
+
|
15 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
16 |
+
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
19 |
+
|
20 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bitsery/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitsery",
|
3 |
+
"version": "5.2.2",
|
4 |
+
"description": "Header only C++ binary serialization library",
|
5 |
+
"homepage": "https://github.com/fraillt/bitsery",
|
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/blas/CMakeLists.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.17)
|
2 |
+
|
3 |
+
project(Find_BLAS_external)
|
4 |
+
find_package(BLAS REQUIRED)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/blas/portfile.cmake
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
2 |
+
|
3 |
+
# Make sure BLAS can be found
|
4 |
+
vcpkg_configure_cmake(SOURCE_PATH ${CURRENT_PORT_DIR}
|
5 |
+
OPTIONS -DCMAKE_PREFIX_PATH="${CURRENT_PACKAGES_DIR}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/blas/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "blas",
|
3 |
+
"version-string": "1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Metapackage for packages which provide BLAS",
|
6 |
+
"dependencies": [
|
7 |
+
"openblas"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/blaze/fix-vm-build.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index e5ab1f460..a23c6dbf5 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -145,12 +145,13 @@ if (${BLAZE_CACHE_SIZE_AUTO})
|
6 |
+
endif (flag EQUAL 0)
|
7 |
+
endif (APPLE)
|
8 |
+
|
9 |
+
- if (flag)
|
10 |
+
+ string(REGEX MATCH "([0-9][0-9]+)" tmp ${tmp}) # Get a number containing at least 2 digits in the string tmp
|
11 |
+
+
|
12 |
+
+ if (flag OR NOT tmp)
|
13 |
+
message("Cache size not found automatically. Using default value as cache size.")
|
14 |
+
set(tmp ${BLAZE_CACHE_SIZE_DEFAULT})
|
15 |
+
endif (flag)
|
16 |
+
|
17 |
+
- string(REGEX MATCH "([0-9][0-9]+)" tmp ${tmp}) # Get a number containing at least 2 digits in the string tmp
|
18 |
+
math(EXPR BLAZE_CACHE_SIZE ${tmp}*1024) # Convert to bytes (assuming that the value is given in kibibytes)
|
19 |
+
|
20 |
+
endif (${BLAZE_CACHE_SIZE_AUTO})
|