Spaces:
Sleeping
Sleeping
fd22d996009fab4133583856d8c88756b07fd3c9ffa46cf7999e385228eeba88
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minio-cpp/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minisat-master-keying/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minisat-master-keying/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minitrace/CMakeLists.txt +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minitrace/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minitrace/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniupnpc/cmakelists.diff +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniupnpc/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniupnpc/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniz/fix-pkgconfig-location.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniz/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniz/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip-ng/Modify-header-file-path.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip-ng/portfile.cmake +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip-ng/vcpkg.json +87 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/0001-remove-ifndef-NOUNCRYPT.patch +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/0002-add-declaration-for-mkdir.patch +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/0003-no-io64.patch +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/CMakeLists.txt +109 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/minizipConfig.cmake.in +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/portfile.cmake +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mio/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mio/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/cmakelists.patch +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/fix-configure-error.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/fix-dependencies.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/fix-test-dependency.patch +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/portfile.cmake +106 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/vcpkg.json +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/mman-static.patch +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmloader/portfile.cmake +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmloader/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmx/copyright +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmx/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmx/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mnn/portfile.cmake +126 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mnn/use-package-and-install.patch +194 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mnn/vcpkg.json +51 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/CMakeLists.txt +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/config.h.cmake +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/libmodpbase64.def +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/modp_b64_data.h +480 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/portfile.cmake +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/disable-source-write.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/disable-static-when-dynamic-build.patch +42 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minio-cpp/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minio-cpp",
|
3 |
+
"version-date": "2022-01-03",
|
4 |
+
"description": "MinIO C++ Client SDK for Amazon S3 Compatible Cloud Storage",
|
5 |
+
"supports": "!uwp",
|
6 |
+
"dependencies": [
|
7 |
+
"curlpp",
|
8 |
+
"openssl",
|
9 |
+
"pugixml",
|
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/minisat-master-keying/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 master-keying/minisat
|
6 |
+
REF v2.3.6
|
7 |
+
SHA512 48E7AC1C97EA58070EAB9310F977404295E881B1403D527A33E059A0BB5A16CAA9AF2FA9E5230AD7E53E008B83077E300B3BAEEB0C220BE4E52B6B85887A05E1
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME MiniSat CONFIG_PATH lib/cmake/MiniSat)
|
17 |
+
|
18 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
20 |
+
endif()
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minisat-master-keying/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minisat-master-keying",
|
3 |
+
"version": "2.3.6",
|
4 |
+
"description": [
|
5 |
+
"A minimalistic high-performance SAT solver",
|
6 |
+
"This is a modernized, cross-platform, CMake-enabled fork of the original MiniSat."
|
7 |
+
],
|
8 |
+
"homepage": "https://github.com/master-keying/minisat",
|
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/minitrace/CMakeLists.txt
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(minitrace C)
|
3 |
+
|
4 |
+
set(minitrace_HEADERS minitrace.h)
|
5 |
+
set(minitrace_SOURCES minitrace.c)
|
6 |
+
|
7 |
+
add_library(minitrace ${minitrace_SOURCES})
|
8 |
+
|
9 |
+
# Install headers
|
10 |
+
install(FILES ${minitrace_HEADERS} DESTINATION include/minitrace)
|
11 |
+
|
12 |
+
# Install minitrace
|
13 |
+
install(
|
14 |
+
TARGETS minitrace EXPORT minitraceConfig
|
15 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
|
16 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
|
17 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
|
18 |
+
)
|
19 |
+
|
20 |
+
# Export config file for minitrace
|
21 |
+
export(
|
22 |
+
TARGETS minitrace
|
23 |
+
NAMESPACE minitrace::
|
24 |
+
FILE "${CMAKE_CURRENT_BINARY_DIR}/minitrace-config.cmake"
|
25 |
+
)
|
26 |
+
|
27 |
+
# Install config file
|
28 |
+
install(
|
29 |
+
EXPORT minitraceConfig
|
30 |
+
DESTINATION "${CMAKE_INSTALL_PREFIX}/share/minitrace"
|
31 |
+
NAMESPACE minitrace::
|
32 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minitrace/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO hrydgard/minitrace
|
6 |
+
REF a48215c409dd848fa0a76c5eb4dfaba4ca3bca39
|
7 |
+
SHA512 591fa52132b6bbe8e7e121526a43d07056deff8fe026227c1a4c26bebf95536e5d68750fa8551d23afebf048fe8b8503017b9a93650e18a992cf2e5678d46135
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_cmake_config_fixup()
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/minitrace" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minitrace/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minitrace",
|
3 |
+
"version-string": "2019.02.06",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Simple C/C++ library for producing JSON traces suitable for Chrome's built-in trace viewer.",
|
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/miniupnpc/cmakelists.diff
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/miniupnpc/CMakeLists.txt 2018-05-07 13:12:58.000000000 +0200
|
2 |
+
+++ b/miniupnpc/CMakeLists.txt 2018-11-13 11:51:57.897598000 +0100
|
3 |
+
@@ -124,7 +124,7 @@
|
4 |
+
target_link_libraries (libminiupnpc-shared PRIVATE miniupnpc-private)
|
5 |
+
target_compile_definitions(libminiupnpc-shared PRIVATE MINIUPNP_EXPORTS)
|
6 |
+
|
7 |
+
- target_include_directories(libminiupnpc-static INTERFACE ../${CMAKE_CURRENT_SOURCE_DIR})
|
8 |
+
+ target_include_directories(libminiupnpc-shared INTERFACE ../${CMAKE_CURRENT_SOURCE_DIR})
|
9 |
+
if (WIN32)
|
10 |
+
target_link_libraries(libminiupnpc-shared INTERFACE ws2_32 iphlpapi)
|
11 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniupnpc/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO miniupnp/miniupnp
|
4 |
+
REF miniupnpc_2_1
|
5 |
+
SHA512 f2ab5116c094982f7838ccab460d3db07a99de1094448277fc45841e0e64ea1b4216d75a7e5dd471c79ff9b0132b89e4d801c3ad1b60d55631c12c916df658f5
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
cmakelists.diff
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "dynamic" MINIUPNPC_BUILD_SHARED)
|
12 |
+
string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "static" MINIUPNPC_BUILD_STATIC)
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}/miniupnpc
|
16 |
+
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
17 |
+
OPTIONS
|
18 |
+
-DUPNPC_BUILD_STATIC=${MINIUPNPC_BUILD_STATIC}
|
19 |
+
-DUPNPC_BUILD_SHARED=${MINIUPNPC_BUILD_SHARED}
|
20 |
+
-DUPNPC_BUILD_TESTS=OFF
|
21 |
+
-DUPNPC_BUILD_SAMPLE=OFF
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_install_cmake()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
27 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/miniupnpc RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniupnpc/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "miniupnpc",
|
3 |
+
"version-string": "2.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "UPnP client library/tool to access Internet Gateway Devices"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniz/fix-pkgconfig-location.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f12435b..edee1f4 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -163,7 +163,7 @@ if(NOT BUILD_HEADER_ONLY)
|
6 |
+
if(INSTALL_PROJECT)
|
7 |
+
install(FILES
|
8 |
+
${CMAKE_CURRENT_BINARY_DIR}/miniz.pc
|
9 |
+
- DESTINATION ${CMAKE_INSTALL_DATADIR}/pkgconfig)
|
10 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
|
11 |
+
endif()
|
12 |
+
endif()
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniz/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO richgel999/miniz
|
4 |
+
REF 2.2.0
|
5 |
+
SHA512 0bb2b0ac627715b90ff9fd69ca8958a0bea387bd7ddf5c200daba953b98ef788092e3009842f4f123234e85570159250c8897a30c1c1f2d4dea9bca9837f6111
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-pkgconfig-location.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_EXAMPLES=OFF
|
15 |
+
-DINSTALL_PROJECT=ON
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_copy_pdbs(BUILD_PATHS "${CURRENT_PACKAGES_DIR}/bin/*.dll")
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/miniz)
|
22 |
+
vcpkg_fixup_pkgconfig()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
25 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/miniz/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "miniz",
|
3 |
+
"version": "2.2.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Single C source file zlib-replacement library",
|
6 |
+
"homepage": "https://github.com/richgel999/miniz",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip-ng/Modify-header-file-path.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9ef8023..ec1ee55 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -81,7 +81,7 @@ include(FeatureSummary)
|
6 |
+
|
7 |
+
set(INSTALL_BIN_DIR ${CMAKE_INSTALL_BINDIR} CACHE PATH "Installation directory for executables")
|
8 |
+
set(INSTALL_LIB_DIR ${CMAKE_INSTALL_LIBDIR} CACHE PATH "Installation directory for libraries")
|
9 |
+
-set(INSTALL_INC_DIR ${CMAKE_INSTALL_INCLUDEDIR} CACHE PATH "Installation directory for headers")
|
10 |
+
+set(INSTALL_INC_DIR ${CMAKE_INSTALL_INCLUDEDIR}/minizip-ng CACHE PATH "Installation directory for headers")
|
11 |
+
set(INSTALL_MAN_DIR ${CMAKE_INSTALL_MANDIR} CACHE PATH "Installation directory for manual pages")
|
12 |
+
|
13 |
+
set(STDLIB_DEF)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip-ng/portfile.cmake
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO zlib-ng/minizip-ng
|
8 |
+
REF 3.0.5
|
9 |
+
SHA512 da0c230951caafd986331300b840d09a4c27a677183174f8b1782c2515209b51cf00133dd5fc5f9fc88a349134db7f93d3daa7c05b7d0270be99b9cf85a6c133
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
Modify-header-file-path.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_check_features(
|
16 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
17 |
+
FEATURES
|
18 |
+
pkcrypt MZ_PKCRYPT
|
19 |
+
signing MZ_SIGNING
|
20 |
+
wzaes MZ_WZAES
|
21 |
+
openssl MZ_OPENSSL
|
22 |
+
bzip2 MZ_BZIP2
|
23 |
+
lzma MZ_LZMA
|
24 |
+
zlib MZ_ZLIB
|
25 |
+
zstd MZ_ZSTD
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_configure(
|
29 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
30 |
+
DISABLE_PARALLEL_CONFIGURE
|
31 |
+
OPTIONS
|
32 |
+
${FEATURE_OPTIONS}
|
33 |
+
-DMZ_FETCH_LIBS=OFF
|
34 |
+
-DMZ_PROJECT_SUFFIX:STRING=-ng
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_cmake_install()
|
38 |
+
|
39 |
+
vcpkg_fixup_pkgconfig()
|
40 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
41 |
+
vcpkg_copy_pdbs()
|
42 |
+
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
44 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
45 |
+
|
46 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip-ng/vcpkg.json
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minizip-ng",
|
3 |
+
"version": "3.0.5",
|
4 |
+
"description": "minizip-ng is a zip manipulation library written in C that is supported on Windows, macOS, and Linux.",
|
5 |
+
"homepage": "https://github.com/zlib-ng/minizip-ng",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"default-features": [
|
18 |
+
"bzip2",
|
19 |
+
"lzma",
|
20 |
+
"pkcrypt",
|
21 |
+
"signing",
|
22 |
+
"wzaes",
|
23 |
+
"zlib",
|
24 |
+
"zstd"
|
25 |
+
],
|
26 |
+
"features": {
|
27 |
+
"bzip2": {
|
28 |
+
"description": "Enables BZIP2 compression",
|
29 |
+
"dependencies": [
|
30 |
+
"bzip2"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"lzma": {
|
34 |
+
"description": "Enables LZMA compression",
|
35 |
+
"dependencies": [
|
36 |
+
"liblzma"
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"openssl": {
|
40 |
+
"description": "Enables OpenSSL for encryption",
|
41 |
+
"dependencies": [
|
42 |
+
"openssl"
|
43 |
+
]
|
44 |
+
},
|
45 |
+
"pkcrypt": {
|
46 |
+
"description": "Enables PKWARE traditional encryption"
|
47 |
+
},
|
48 |
+
"signing": {
|
49 |
+
"description": "Enables zip signing support",
|
50 |
+
"dependencies": [
|
51 |
+
{
|
52 |
+
"name": "minizip-ng",
|
53 |
+
"default-features": false,
|
54 |
+
"features": [
|
55 |
+
"openssl"
|
56 |
+
],
|
57 |
+
"platform": "!windows & !osx"
|
58 |
+
}
|
59 |
+
]
|
60 |
+
},
|
61 |
+
"wzaes": {
|
62 |
+
"description": "Enables WinZIP AES encryption",
|
63 |
+
"dependencies": [
|
64 |
+
{
|
65 |
+
"name": "minizip-ng",
|
66 |
+
"default-features": false,
|
67 |
+
"features": [
|
68 |
+
"openssl"
|
69 |
+
],
|
70 |
+
"platform": "!windows & !osx"
|
71 |
+
}
|
72 |
+
]
|
73 |
+
},
|
74 |
+
"zlib": {
|
75 |
+
"description": "Enables ZLIB compression",
|
76 |
+
"dependencies": [
|
77 |
+
"zlib"
|
78 |
+
]
|
79 |
+
},
|
80 |
+
"zstd": {
|
81 |
+
"description": "Enables ZSTD compression",
|
82 |
+
"dependencies": [
|
83 |
+
"zstd"
|
84 |
+
]
|
85 |
+
}
|
86 |
+
}
|
87 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/0001-remove-ifndef-NOUNCRYPT.patch
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From a6fd3992d44053a523a67aa16f5ae88fecfb20e1 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Nicole Mazzuca <[email protected]>
|
3 |
+
Date: Tue, 22 Sep 2020 14:09:53 -0700
|
4 |
+
Subject: [PATCH 1/2] remove `#ifndef NOUNCRYPT`
|
5 |
+
|
6 |
+
enable decrypt support for password-encrypted ZIP files
|
7 |
+
|
8 |
+
---
|
9 |
+
contrib/minizip/unzip.c | 4 ----
|
10 |
+
1 file changed, 4 deletions(-)
|
11 |
+
|
12 |
+
diff --git a/contrib/minizip/unzip.c b/contrib/minizip/unzip.c
|
13 |
+
index bcfb941..1895a0f 100644
|
14 |
+
--- a/contrib/minizip/unzip.c
|
15 |
+
+++ b/contrib/minizip/unzip.c
|
16 |
+
@@ -68,10 +68,6 @@
|
17 |
+
#include <stdlib.h>
|
18 |
+
#include <string.h>
|
19 |
+
|
20 |
+
-#ifndef NOUNCRYPT
|
21 |
+
- #define NOUNCRYPT
|
22 |
+
-#endif
|
23 |
+
-
|
24 |
+
#include "zlib.h"
|
25 |
+
#include "unzip.h"
|
26 |
+
|
27 |
+
--
|
28 |
+
2.24.3 (Apple Git-128)
|
29 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/0002-add-declaration-for-mkdir.patch
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 6c38b6f544b55f9fc554f0fe22e2cbaddfaed7f8 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Nicole Mazzuca <[email protected]>
|
3 |
+
Date: Tue, 22 Sep 2020 14:15:04 -0700
|
4 |
+
Subject: [PATCH 2/2] add declaration for mkdir
|
5 |
+
|
6 |
+
It's invalid in C99 to implicitly declare mkdir
|
7 |
+
|
8 |
+
---
|
9 |
+
contrib/minizip/miniunz.c | 4 ++++
|
10 |
+
1 file changed, 4 insertions(+)
|
11 |
+
|
12 |
+
diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
|
13 |
+
index 3d65401..5341af2 100644
|
14 |
+
--- a/contrib/minizip/miniunz.c
|
15 |
+
+++ b/contrib/minizip/miniunz.c
|
16 |
+
@@ -12,6 +12,10 @@
|
17 |
+
Copyright (C) 2009-2010 Mathias Svensson ( http://result42.com )
|
18 |
+
*/
|
19 |
+
|
20 |
+
+#if !defined(_WIN32)
|
21 |
+
+#include <sys/stat.h>
|
22 |
+
+#endif
|
23 |
+
+
|
24 |
+
#if (!defined(_WIN32)) && (!defined(WIN32)) && (!defined(__APPLE__))
|
25 |
+
#ifndef __USE_FILE_OFFSET64
|
26 |
+
#define __USE_FILE_OFFSET64
|
27 |
+
--
|
28 |
+
2.24.3 (Apple Git-128)
|
29 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/0003-no-io64.patch
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/contrib/minizip/ioapi.c b/contrib/minizip/ioapi.c
|
2 |
+
index 7f5c191..d42e050 100644
|
3 |
+
--- a/contrib/minizip/ioapi.c
|
4 |
+
+++ b/contrib/minizip/ioapi.c
|
5 |
+
@@ -17,8 +17,8 @@
|
6 |
+
#if defined(__APPLE__) || defined(IOAPI_NO_64)
|
7 |
+
// In darwin and perhaps other BSD variants off_t is a 64 bit value, hence no need for specific 64 bit functions
|
8 |
+
#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
|
9 |
+
-#define FTELLO_FUNC(stream) ftello(stream)
|
10 |
+
-#define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
|
11 |
+
+#define FTELLO_FUNC(stream) ftell(stream)
|
12 |
+
+#define FSEEKO_FUNC(stream, offset, origin) fseek(stream, offset, origin)
|
13 |
+
#else
|
14 |
+
#define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
|
15 |
+
#define FTELLO_FUNC(stream) ftello64(stream)
|
16 |
+
diff --git a/contrib/minizip/miniunz.c b/contrib/minizip/miniunz.c
|
17 |
+
index 3d65401..a1269ea 100644
|
18 |
+
--- a/contrib/minizip/miniunz.c
|
19 |
+
+++ b/contrib/minizip/miniunz.c
|
20 |
+
@@ -33,9 +33,9 @@
|
21 |
+
#define FTELLO_FUNC(stream) ftello(stream)
|
22 |
+
#define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
|
23 |
+
#else
|
24 |
+
-#define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
|
25 |
+
-#define FTELLO_FUNC(stream) ftello64(stream)
|
26 |
+
-#define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
|
27 |
+
+#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
|
28 |
+
+#define FTELLO_FUNC(stream) ftell(stream)
|
29 |
+
+#define FSEEKO_FUNC(stream, offset, origin) fseek(stream, offset, origin)
|
30 |
+
#endif
|
31 |
+
|
32 |
+
|
33 |
+
diff --git a/contrib/minizip/minizip.c b/contrib/minizip/minizip.c
|
34 |
+
index 4288962..02267fb 100644
|
35 |
+
--- a/contrib/minizip/minizip.c
|
36 |
+
+++ b/contrib/minizip/minizip.c
|
37 |
+
@@ -34,9 +34,9 @@
|
38 |
+
#define FTELLO_FUNC(stream) ftello(stream)
|
39 |
+
#define FSEEKO_FUNC(stream, offset, origin) fseeko(stream, offset, origin)
|
40 |
+
#else
|
41 |
+
-#define FOPEN_FUNC(filename, mode) fopen64(filename, mode)
|
42 |
+
-#define FTELLO_FUNC(stream) ftello64(stream)
|
43 |
+
-#define FSEEKO_FUNC(stream, offset, origin) fseeko64(stream, offset, origin)
|
44 |
+
+#define FOPEN_FUNC(filename, mode) fopen(filename, mode)
|
45 |
+
+#define FTELLO_FUNC(stream) ftell(stream)
|
46 |
+
+#define FSEEKO_FUNC(stream, offset, origin) fseek(stream, offset, origin)
|
47 |
+
#endif
|
48 |
+
|
49 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/CMakeLists.txt
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(minizip C)
|
3 |
+
|
4 |
+
set(PROJECT_VERSION 1.2.11)
|
5 |
+
set(PROJECT_VERSION_MAJOR 1)
|
6 |
+
set(PROJECT_VERSION_MINOR 2)
|
7 |
+
set(PROJECT_VERSION_PATCH 11)
|
8 |
+
|
9 |
+
if(MSVC)
|
10 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
11 |
+
endif()
|
12 |
+
|
13 |
+
find_package(ZLIB REQUIRED)
|
14 |
+
set(MIN_SRC contrib/minizip)
|
15 |
+
|
16 |
+
include_directories(${MIN_SRC} ${ZLIB_INCLUDE_DIRS})
|
17 |
+
|
18 |
+
set(MINIZIP_LIBRARIES ZLIB::ZLIB)
|
19 |
+
if(ENABLE_BZIP2)
|
20 |
+
message(STATUS "Building with bzip2 support")
|
21 |
+
find_package(BZip2)
|
22 |
+
|
23 |
+
include_directories(${BZIP2_INCLUDE_DIR})
|
24 |
+
set(MINIZIP_LIBRARIES ${MINIZIP_LIBRARIES} ${BZIP2_LIBRARIES})
|
25 |
+
else()
|
26 |
+
message(STATUS "Building without bzip2 support")
|
27 |
+
endif()
|
28 |
+
|
29 |
+
set(SRC
|
30 |
+
${MIN_SRC}/ioapi.c
|
31 |
+
${MIN_SRC}/unzip.c
|
32 |
+
${MIN_SRC}/zip.c
|
33 |
+
${MIN_SRC}/mztools.c
|
34 |
+
)
|
35 |
+
if(WIN32)
|
36 |
+
list(APPEND SRC ${MIN_SRC}/iowin32.c)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
set(HEADERS
|
40 |
+
${MIN_SRC}/crypt.h
|
41 |
+
${MIN_SRC}/ioapi.h
|
42 |
+
${MIN_SRC}/unzip.h
|
43 |
+
${MIN_SRC}/zip.h
|
44 |
+
${MIN_SRC}/mztools.h
|
45 |
+
)
|
46 |
+
if(WIN32)
|
47 |
+
list(APPEND HEADERS ${MIN_SRC}/iowin32.h)
|
48 |
+
endif()
|
49 |
+
|
50 |
+
add_library(minizip ${SRC})
|
51 |
+
|
52 |
+
target_link_libraries(minizip PRIVATE ZLIB::ZLIB)
|
53 |
+
target_compile_definitions(minizip PRIVATE -D_ZLIB_H)
|
54 |
+
|
55 |
+
if(ENABLE_BZIP2)
|
56 |
+
target_link_libraries(minizip PUBLIC ${BZIP2_LIBRARIES})
|
57 |
+
target_compile_definitions(minizip PRIVATE -DHAVE_BZIP2=1)
|
58 |
+
endif()
|
59 |
+
if(ANDROID)
|
60 |
+
target_compile_definitions(minizip PRIVATE IOAPI_NO_64)
|
61 |
+
endif()
|
62 |
+
if(NOT DISABLE_INSTALL_TOOLS)
|
63 |
+
add_executable(minizip_bin ${MIN_SRC}/minizip.c)
|
64 |
+
add_executable(miniunz_bin ${MIN_SRC}/miniunz.c)
|
65 |
+
|
66 |
+
target_link_libraries(minizip_bin minizip ${MINIZIP_LIBRARIES})
|
67 |
+
target_link_libraries(miniunz_bin minizip ${MINIZIP_LIBRARIES})
|
68 |
+
|
69 |
+
set_target_properties(minizip_bin PROPERTIES OUTPUT_NAME minizip)
|
70 |
+
set_target_properties(miniunz_bin PROPERTIES OUTPUT_NAME miniunz)
|
71 |
+
endif()
|
72 |
+
|
73 |
+
install(
|
74 |
+
TARGETS minizip
|
75 |
+
EXPORT minizipTargets
|
76 |
+
RUNTIME DESTINATION bin
|
77 |
+
LIBRARY DESTINATION lib
|
78 |
+
ARCHIVE DESTINATION lib
|
79 |
+
)
|
80 |
+
|
81 |
+
include(CMakePackageConfigHelpers)
|
82 |
+
write_basic_package_version_file("${PROJECT_BINARY_DIR}/minizipConfigVersion.cmake"
|
83 |
+
COMPATIBILITY SameMajorVersion)
|
84 |
+
|
85 |
+
configure_package_config_file(${PROJECT_SOURCE_DIR}/cmake/minizipConfig.cmake.in
|
86 |
+
minizipConfig.cmake
|
87 |
+
INSTALL_DESTINATION share/minizip)
|
88 |
+
|
89 |
+
install(FILES
|
90 |
+
"${PROJECT_BINARY_DIR}/minizipConfig.cmake"
|
91 |
+
"${PROJECT_BINARY_DIR}/minizipConfigVersion.cmake"
|
92 |
+
DESTINATION share/minizip
|
93 |
+
)
|
94 |
+
|
95 |
+
install(EXPORT minizipTargets
|
96 |
+
NAMESPACE minizip::
|
97 |
+
DESTINATION share/minizip
|
98 |
+
)
|
99 |
+
|
100 |
+
if(NOT DISABLE_INSTALL_TOOLS)
|
101 |
+
install (
|
102 |
+
TARGETS minizip_bin miniunz_bin
|
103 |
+
RUNTIME DESTINATION tools/minizip
|
104 |
+
)
|
105 |
+
endif()
|
106 |
+
|
107 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
108 |
+
install(FILES ${HEADERS} DESTINATION include/minizip)
|
109 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/minizipConfig.cmake.in
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include(CMakeFindDependencyMacro)
|
4 |
+
|
5 |
+
find_dependency(ZLIB)
|
6 |
+
|
7 |
+
if (@ENABLE_BZIP2@)
|
8 |
+
find_dependency(BZip2)
|
9 |
+
endif()
|
10 |
+
|
11 |
+
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
|
12 |
+
check_required_components("@PROJECT_NAME@")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/portfile.cmake
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO madler/zlib
|
6 |
+
REF v1.2.11
|
7 |
+
SHA512 104c62ed1228b5f1199bc037081861576900eb0697a226cafa62a35c4c890b5cb46622e399f9aad82ee5dfb475bae26ae75e2bd6da3d261361b1c8b996970faf
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
0001-remove-ifndef-NOUNCRYPT.patch
|
11 |
+
0002-add-declaration-for-mkdir.patch
|
12 |
+
0003-no-io64.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
16 |
+
bzip2 ENABLE_BZIP2
|
17 |
+
)
|
18 |
+
|
19 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/minizipConfig.cmake.in ${SOURCE_PATH}/cmake/minizipConfig.cmake.in COPYONLY)
|
20 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt ${SOURCE_PATH}/CMakeLists.txt COPYONLY)
|
21 |
+
|
22 |
+
vcpkg_configure_cmake(
|
23 |
+
SOURCE_PATH ${SOURCE_PATH}
|
24 |
+
PREFER_NINJA
|
25 |
+
OPTIONS
|
26 |
+
${FEATURE_OPTIONS}
|
27 |
+
-DDISABLE_INSTALL_TOOLS=${VCPKG_TARGET_IS_IOS}
|
28 |
+
OPTIONS_DEBUG
|
29 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
30 |
+
)
|
31 |
+
|
32 |
+
vcpkg_install_cmake()
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
vcpkg_fixup_cmake_targets()
|
35 |
+
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/minizip)
|
36 |
+
|
37 |
+
if ("bzip2" IN_LIST FEATURES)
|
38 |
+
file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/minizip/*.h")
|
39 |
+
foreach(HEADER ${HEADERS})
|
40 |
+
file(READ "${HEADER}" _contents)
|
41 |
+
string(REPLACE "#ifdef HAVE_BZIP2" "#if 1" _contents "${_contents}")
|
42 |
+
file(WRITE "${HEADER}" "${_contents}")
|
43 |
+
endforeach()
|
44 |
+
endif()
|
45 |
+
|
46 |
+
file(INSTALL ${SOURCE_PATH}/contrib/minizip/MiniZip64_info.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/minizip/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "minizip",
|
3 |
+
"version-semver": "1.2.11",
|
4 |
+
"port-version": 10,
|
5 |
+
"description": "Zip compression library",
|
6 |
+
"homepage": "https://github.com/madler/zlib",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"zlib"
|
10 |
+
],
|
11 |
+
"features": {
|
12 |
+
"bzip2": {
|
13 |
+
"description": "Support compression using bzip2 library",
|
14 |
+
"dependencies": [
|
15 |
+
"bzip2"
|
16 |
+
]
|
17 |
+
}
|
18 |
+
}
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mio/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO mandreyel/mio
|
5 |
+
REF cafa31360fee8866be89b4c602d8b9a7a18dbf5e
|
6 |
+
SHA512 21a5e6c6b90b9ac39bfe7fef59b6dc9c6dc3516b850de5897df63672e81e22abea7bdd7e363e8206dcb72697af797af2501b1c14480bbb8a9284f28c70ca9d67
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_cmake(
|
11 |
+
SOURCE_PATH ${SOURCE_PATH}
|
12 |
+
PREFER_NINJA
|
13 |
+
OPTIONS
|
14 |
+
-Dmio.tests=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_install_cmake()
|
18 |
+
|
19 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/mio)
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
22 |
+
|
23 |
+
# Handle copyright
|
24 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mio RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mio/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mio",
|
3 |
+
"version-string": "2019-02-10",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Cross-platform header-only C++11 library for memory mapped file IO."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/cmakelists.patch
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6fe6d81..b59555c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -291,7 +291,7 @@ endif()
|
6 |
+
# ENSMALLEN_INCLUDE_DIR - include directory for ensmallen
|
7 |
+
# STB_IMAGE_INCLUDE_DIR - include directory for STB image library
|
8 |
+
# MATHJAX_ROOT - root of MathJax installation
|
9 |
+
-find_package(Armadillo "${ARMADILLO_VERSION}" REQUIRED)
|
10 |
+
+find_package(Armadillo CONFIG "${ARMADILLO_VERSION}" REQUIRED)
|
11 |
+
|
12 |
+
# Include directories for the previous dependencies.
|
13 |
+
set(MLPACK_INCLUDE_DIRS ${MLPACK_INCLUDE_DIRS} ${ARMADILLO_INCLUDE_DIRS})
|
14 |
+
@@ -388,8 +388,8 @@ if (NOT ENSMALLEN_FOUND)
|
15 |
+
"Successfully downloaded ensmallen into ${CMAKE_BINARY_DIR}/deps/${ENSMALLEN_INCLUDE_DIR}/")
|
16 |
+
|
17 |
+
# Now we have to also ensure these header files get installed.
|
18 |
+
- install(DIRECTORY "${CMAKE_BINARY_DIR}/deps/${ENSMALLEN_INCLUDE_DIR}/include/ensmallen_bits/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ensmallen_bits")
|
19 |
+
- install(FILES "${CMAKE_BINARY_DIR}/deps/${ENSMALLEN_INCLUDE_DIR}/include/ensmallen.hpp" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
20 |
+
+ #install(DIRECTORY "${CMAKE_BINARY_DIR}/deps/${ENSMALLEN_INCLUDE_DIR}/include/ensmallen_bits/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/ensmallen_bits")
|
21 |
+
+ #install(FILES "${CMAKE_BINARY_DIR}/deps/${ENSMALLEN_INCLUDE_DIR}/include/ensmallen.hpp" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
22 |
+
else ()
|
23 |
+
message(FATAL_ERROR "Problem unpacking ensmallen! Expected only one directory ensmallen-x.y.z/; found ${ENS_DIRECTORIES}. Try removing the directory ${CMAKE_BINARY_DIR}/deps and reconfiguring.")
|
24 |
+
endif ()
|
25 |
+
@@ -446,6 +446,7 @@ find_package(Boost "${BOOST_VERSION}"
|
26 |
+
REQUIRED
|
27 |
+
)
|
28 |
+
|
29 |
+
+if(0)
|
30 |
+
link_directories(${Boost_LIBRARY_DIRS})
|
31 |
+
|
32 |
+
# In Visual Studio, automatic linking is performed, so we don't need to worry
|
33 |
+
@@ -457,10 +458,12 @@ if (MSVC)
|
34 |
+
message("boost lib dirs ${Boost_LIBRARY_DIRS}")
|
35 |
+
set(Boost_LIBRARIES "")
|
36 |
+
endif ()
|
37 |
+
+endif()
|
38 |
+
|
39 |
+
+link_directories(${Boost_LIBRARIES})
|
40 |
+
set(MLPACK_INCLUDE_DIRS ${MLPACK_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
|
41 |
+
set(MLPACK_LIBRARIES ${MLPACK_LIBRARIES} ${Boost_LIBRARIES})
|
42 |
+
-set(MLPACK_LIBRARY_DIRS ${MLPACK_LIBRARY_DIRS} ${Boost_LIBRARY_DIRS})
|
43 |
+
+set(MLPACK_LIBRARY_DIRS ${MLPACK_LIBRARY_DIRS} ${Boost_LIBRARIES})
|
44 |
+
|
45 |
+
# For Boost testing framework (will have no effect on non-testing executables).
|
46 |
+
# This specifies to Boost that we are dynamically linking to the Boost test
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/fix-configure-error.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMake/go/AppendModel.cmake b/CMake/go/AppendModel.cmake
|
2 |
+
index eeb28f7..ec50f15 100644
|
3 |
+
--- a/CMake/go/AppendModel.cmake
|
4 |
+
+++ b/CMake/go/AppendModel.cmake
|
5 |
+
@@ -44,8 +44,8 @@ function(append_model SERIALIZATION_FILE PROGRAM_MAIN_FILE)
|
6 |
+
else ()
|
7 |
+
string(APPEND GOMODEL_SAFE_TYPE ${MODEL_CHAR})
|
8 |
+
endif()
|
9 |
+
- endif()
|
10 |
+
- endforeach()
|
11 |
+
+ endforeach()
|
12 |
+
+ endif()
|
13 |
+
|
14 |
+
# See if the model type already exists.
|
15 |
+
file(READ "${SERIALIZATION_FILE}" SERIALIZATION_FILE_CONTENTS)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/fix-dependencies.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 4dd92f0..bfa697d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -488,7 +488,7 @@ add_definitions(-DBOOST_TEST_DYN_LINK)
|
6 |
+
# }
|
7 |
+
# #endif
|
8 |
+
if (USE_OPENMP)
|
9 |
+
- find_package(OpenMP)
|
10 |
+
+ find_package(OpenMP REQUIRED)
|
11 |
+
endif ()
|
12 |
+
|
13 |
+
if (OPENMP_FOUND)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/fix-test-dependency.patch
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b59555c..4dd92f0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -441,11 +441,18 @@ set(Boost_ADDITIONAL_VERSIONS
|
6 |
+
set(Boost_NO_BOOST_CMAKE 1)
|
7 |
+
find_package(Boost "${BOOST_VERSION}"
|
8 |
+
COMPONENTS
|
9 |
+
- unit_test_framework
|
10 |
+
serialization
|
11 |
+
REQUIRED
|
12 |
+
)
|
13 |
+
|
14 |
+
+if (BUILD_TESTS)
|
15 |
+
+ find_package(Boost "${BOOST_VERSION}"
|
16 |
+
+ COMPONENTS
|
17 |
+
+ unit_test_framework
|
18 |
+
+ REQUIRED
|
19 |
+
+ )
|
20 |
+
+endif()
|
21 |
+
+
|
22 |
+
if(0)
|
23 |
+
link_directories(${Boost_LIBRARY_DIRS})
|
24 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/portfile.cmake
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mlpack/mlpack
|
4 |
+
REF 7ae9ddda86c1751b6509ceb48b27d182feaae439 # 3.4.1
|
5 |
+
SHA512 db68c16b80af7037ac562f93775b6262f1552fbc89daa0c621075e2ff70a8306523da8eb74e33ac15ba34c9ccef8f2746bd1e4efa7c280a5be77b53c69d3f9a1
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
cmakelists.patch
|
9 |
+
fix-configure-error.patch
|
10 |
+
fix-test-dependency.patch
|
11 |
+
fix-dependencies.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindACML.cmake")
|
15 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindACMLMP.cmake")
|
16 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindARPACK.cmake")
|
17 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindBLAS.cmake")
|
18 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindCBLAS.cmake")
|
19 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindCLAPACK.cmake")
|
20 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindLAPACK.cmake")
|
21 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindMKL.cmake")
|
22 |
+
file(REMOVE "${SOURCE_PATH}/CMake/ARMA_FindOpenBLAS.cmake")
|
23 |
+
file(REMOVE "${SOURCE_PATH}/CMake/FindArmadillo.cmake")
|
24 |
+
|
25 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
26 |
+
FEATURES
|
27 |
+
tools BUILD_CLI_EXECUTABLES
|
28 |
+
openmp USE_OPENMP
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_cmake_configure(
|
32 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
33 |
+
DISABLE_PARALLEL_CONFIGURE
|
34 |
+
OPTIONS
|
35 |
+
-DBUILD_TESTS=OFF
|
36 |
+
-DDOWNLOAD_STB_IMAGE=OFF
|
37 |
+
-DDOWNLOAD_ENSMALLEN=OFF
|
38 |
+
-DBUILD_PYTHON_BINDINGS=OFF
|
39 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
40 |
+
${FEATURE_OPTIONS}
|
41 |
+
)
|
42 |
+
vcpkg_cmake_install()
|
43 |
+
|
44 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mlpack)
|
45 |
+
|
46 |
+
vcpkg_copy_pdbs()
|
47 |
+
|
48 |
+
vcpkg_fixup_pkgconfig()
|
49 |
+
|
50 |
+
if("tools" IN_LIST FEATURES)
|
51 |
+
vcpkg_copy_tools(AUTO_CLEAN TOOL_NAMES
|
52 |
+
mlpack_adaboost
|
53 |
+
mlpack_approx_kfn
|
54 |
+
mlpack_cf
|
55 |
+
mlpack_dbscan
|
56 |
+
mlpack_decision_stump
|
57 |
+
mlpack_decision_tree
|
58 |
+
mlpack_det
|
59 |
+
mlpack_emst
|
60 |
+
mlpack_fastmks
|
61 |
+
mlpack_gmm_generate
|
62 |
+
mlpack_gmm_probability
|
63 |
+
mlpack_gmm_train
|
64 |
+
mlpack_hmm_generate
|
65 |
+
mlpack_hmm_loglik
|
66 |
+
mlpack_hmm_train
|
67 |
+
mlpack_hmm_viterbi
|
68 |
+
mlpack_hoeffding_tree
|
69 |
+
mlpack_kde
|
70 |
+
mlpack_kernel_pca
|
71 |
+
mlpack_kfn
|
72 |
+
mlpack_kmeans
|
73 |
+
mlpack_knn
|
74 |
+
mlpack_krann
|
75 |
+
mlpack_lars
|
76 |
+
mlpack_linear_regression
|
77 |
+
mlpack_linear_svm
|
78 |
+
mlpack_lmnn
|
79 |
+
mlpack_local_coordinate_coding
|
80 |
+
mlpack_logistic_regression
|
81 |
+
mlpack_lsh
|
82 |
+
mlpack_mean_shift
|
83 |
+
mlpack_nbc
|
84 |
+
mlpack_nca
|
85 |
+
mlpack_nmf
|
86 |
+
mlpack_pca
|
87 |
+
mlpack_perceptron
|
88 |
+
mlpack_preprocess_binarize
|
89 |
+
mlpack_preprocess_describe
|
90 |
+
mlpack_preprocess_imputer
|
91 |
+
mlpack_preprocess_scale
|
92 |
+
mlpack_preprocess_split
|
93 |
+
mlpack_radical
|
94 |
+
mlpack_random_forest
|
95 |
+
mlpack_range_search
|
96 |
+
mlpack_softmax_regression
|
97 |
+
mlpack_sparse_coding
|
98 |
+
mlpack_image_converter
|
99 |
+
mlpack_bayesian_linear_regression
|
100 |
+
mlpack_preprocess_one_hot_encoding
|
101 |
+
)
|
102 |
+
endif()
|
103 |
+
|
104 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
105 |
+
|
106 |
+
file(INSTALL "${SOURCE_PATH}/COPYRIGHT.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mlpack/vcpkg.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mlpack",
|
3 |
+
"version": "3.4.1",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "mlpack is a fast, flexible machine learning library, written in C++, that aims to provide fast, extensible implementations of cutting-edge machine learning algorithms.",
|
6 |
+
"homepage": "https://github.com/mlpack/mlpack",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"armadillo",
|
10 |
+
"boost-heap",
|
11 |
+
"boost-math",
|
12 |
+
"boost-program-options",
|
13 |
+
"boost-random",
|
14 |
+
"boost-serialization",
|
15 |
+
"boost-serialization",
|
16 |
+
"ensmallen",
|
17 |
+
"stb",
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake",
|
20 |
+
"host": true
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "vcpkg-cmake-config",
|
24 |
+
"host": true
|
25 |
+
}
|
26 |
+
],
|
27 |
+
"features": {
|
28 |
+
"openmp": {
|
29 |
+
"description": "use OpenMP for parallelization."
|
30 |
+
},
|
31 |
+
"tools": {
|
32 |
+
"description": "Build command-line executables.",
|
33 |
+
"dependencies": [
|
34 |
+
"boost-format"
|
35 |
+
]
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/mman-static.patch
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 4696ad4..a72bbce 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -8,6 +8,10 @@ option (BUILD_TESTS "tests?" OFF)
|
6 |
+
set (headers mman.h)
|
7 |
+
set (sources mman.c)
|
8 |
+
|
9 |
+
+if(NOT BUILD_SHARED_LIBS)
|
10 |
+
+ add_definitions(-DMMANSHARED_EXPORT=)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
add_library (mman ${sources})
|
14 |
+
|
15 |
+
install (TARGETS mman RUNTIME DESTINATION bin
|
16 |
+
diff --git a/mman.h b/mman.h
|
17 |
+
index 4065bc6..435ea26 100644
|
18 |
+
--- a/mman.h
|
19 |
+
+++ b/mman.h
|
20 |
+
@@ -15,11 +15,13 @@
|
21 |
+
#include <_mingw.h>
|
22 |
+
#endif
|
23 |
+
|
24 |
+
+#if !defined(MMANSHARED_EXPORT)
|
25 |
+
#if defined(MMAN_LIBRARY)
|
26 |
+
#define MMANSHARED_EXPORT __declspec(dllexport)
|
27 |
+
#else
|
28 |
+
#define MMANSHARED_EXPORT __declspec(dllimport)
|
29 |
+
#endif
|
30 |
+
+#endif
|
31 |
+
|
32 |
+
/* Determine offset type */
|
33 |
+
#include <stdint.h>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO witwall/mman-win32
|
4 |
+
REF f5ff813c53935c3078f48e1f03a6944c4e7b459c
|
5 |
+
SHA512 49c9a63a0a3c6fa585a76e65425f6fb1fdaa23cc87e53d5afb7a1298bcd4956298c076ee78f24dd5df5f5a0c5f6244c6abb63b40818e4d2546185fa37a73bf0d
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
mman-static.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/mman)
|
18 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/include/sys ${CURRENT_PACKAGES_DIR}/include/mman/sys)
|
19 |
+
|
20 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/mman)
|
21 |
+
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/mman RENAME copyright)
|
22 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
23 |
+
|
24 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
25 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/mman/sys/mman.h" "__declspec(dllimport)" "")
|
26 |
+
endif()
|
27 |
+
|
28 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The mman.h header deployed by mman is placed in mman/sys/mman.h to avoid accidental inclusion.
|
2 |
+
|
3 |
+
find_path(MMAN_DIR NAMES sys/mman.h PATH_SUFFIXES mman)
|
4 |
+
target_include_directories(main PRIVATE ${MMAN_DIR})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mman/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mman",
|
3 |
+
"version-string": "git-f5ff813",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A light implementation of the mmap functions for MinGW.",
|
6 |
+
"homepage": "https://github.com/witwall/mman-win32",
|
7 |
+
"supports": "windows",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmloader/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# source
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO tishion/mmLoader
|
5 |
+
REF 1.0.1
|
6 |
+
SHA512 a41749e1b62d5549b821429a03e456a0cb41fbc1ea3fe5e8067f80994fb4645c3145dd1e2a3ccaed13b091ec24338d4e542849628d346f26d2275b0cbff8f4c6
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
# feature
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
shellcode BUILD_SHELLCODE_GEN
|
14 |
+
)
|
15 |
+
|
16 |
+
# config
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
OPTIONS
|
20 |
+
${FEATURE_OPTIONS}
|
21 |
+
)
|
22 |
+
|
23 |
+
# pre-clean
|
24 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/output")
|
25 |
+
|
26 |
+
# build and install
|
27 |
+
vcpkg_install_cmake(DISABLE_PARALLEL)
|
28 |
+
|
29 |
+
# remove the debug/include directory
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
31 |
+
|
32 |
+
# collect license files
|
33 |
+
file(INSTALL "${SOURCE_PATH}/License" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmloader/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mmloader",
|
3 |
+
"version-date": "2021-12-13",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A library for loading dll module bypassing windows PE loader from memory (x86/x64)",
|
6 |
+
"homepage": "http://tishion.github.io/mmLoader/",
|
7 |
+
"supports": "(x86 | x64) & windows & static",
|
8 |
+
"features": {
|
9 |
+
"shellcode": {
|
10 |
+
"description": "Generate mmLoader shell code headers"
|
11 |
+
}
|
12 |
+
}
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmx/copyright
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Licenses are stated in each header file
|
2 |
+
|
3 |
+
json.h - public domain - Micha Mettke
|
4 |
+
|
5 |
+
lexer.h - zlib LICENSE
|
6 |
+
LICENSE: (zlib)
|
7 |
+
Copyright (c) 2016 Micha Mettke
|
8 |
+
|
9 |
+
sched.h - zlib LICENSE
|
10 |
+
LICENSE: (zlib)
|
11 |
+
Copyright (c) 2016 Doug Binks
|
12 |
+
|
13 |
+
vec.h - zlib LICENSE
|
14 |
+
LICENSE: (zlib)
|
15 |
+
Copyright (c) 2015 Micha Mettke
|
16 |
+
|
17 |
+
This software is provided 'as-is', without any express or implied
|
18 |
+
warranty. In no event will the authors be held liable for any damages
|
19 |
+
arising from the use of this software.
|
20 |
+
Permission is granted to anyone to use this software for any purpose,
|
21 |
+
including commercial applications, and to alter it and redistribute it
|
22 |
+
freely, subject to the following restrictions:
|
23 |
+
1. The origin of this software must not be misrepresented; you must not
|
24 |
+
claim that you wrote the original software. If you use this software
|
25 |
+
in a product, an acknowledgment in the product documentation would be
|
26 |
+
appreciated but is not required.
|
27 |
+
2. Altered source versions must be plainly marked as such, and must not be
|
28 |
+
misrepresented as being the original software.
|
29 |
+
3. This notice may not be removed or altered from any source distribution.
|
30 |
+
|
31 |
+
|
32 |
+
web.h - BSD LICENSE - Andreas Fredriksson
|
33 |
+
LICENSE: (BSD)
|
34 |
+
Copyright (c) 2016, Andreas Fredriksson, Micha Mettke
|
35 |
+
All rights reserved.
|
36 |
+
Redistribution and use in source and binary forms, with or without
|
37 |
+
modification, are permitted provided that the following conditions are met:
|
38 |
+
1. Redistributions of source code must retain the above copyright notice, this
|
39 |
+
list of conditions and the following disclaimer.
|
40 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
41 |
+
this list of conditions and the following disclaimer in the documentation
|
42 |
+
and/or other materials provided with the distribution.
|
43 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
44 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
45 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
46 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
47 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
48 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
49 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
50 |
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
51 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
52 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmx/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO vurtun/mmx
|
4 |
+
REF b99867658dadcaed2fbfb95ad0e0c461a7a80a0c
|
5 |
+
SHA512 3ad01562f439fac364c45d9e4091d136c7cec36adeab219773c2df0d32b09f4e258bdb11884cbeed7dc2835381d2b409c55fe80e0913e995e54a1b7ebbe0f2bc
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(GLOB_RECURSE MMX_HEADERS "${SOURCE_PATH}/*.h")
|
10 |
+
file(INSTALL ${MMX_HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
11 |
+
|
12 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mmx/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mmx",
|
3 |
+
"version-string": "2019-09-29",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Single header libraries for C/C++",
|
6 |
+
"homepage": "https://github.com/vurtun/mmx"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mnn/portfile.cmake
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO alibaba/MNN
|
8 |
+
REF 1.1.0
|
9 |
+
SHA512 3e31eec9a876be571cb2d29e0a2bcdb8209a43a43a5eeae19b295fadfb1252dd5bd4ed5b7c584706171e1b531710248193bc04520a796963e2b21546acbedae0
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
use-package-and-install.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
16 |
+
FEATURES
|
17 |
+
test MNN_BUILD_TEST
|
18 |
+
test MNN_BUILD_BENCHMARK
|
19 |
+
cuda MNN_CUDA
|
20 |
+
cuda MNN_GPU_TRACE
|
21 |
+
vulkan MNN_VULKAN
|
22 |
+
vulkan MNN_GPU_TRACE
|
23 |
+
vulkan MNN_USE_SYSTEM_LIB
|
24 |
+
opencl MNN_OPENCL
|
25 |
+
opencl MNN_USE_SYSTEM_LIB
|
26 |
+
metal MNN_METAL
|
27 |
+
metal MNN_GPU_TRACE
|
28 |
+
tools MNN_BUILD_TOOLS
|
29 |
+
tools MNN_BUILD_QUANTOOLS
|
30 |
+
tools MNN_BUILD_TRAIN
|
31 |
+
tools MNN_EVALUATION
|
32 |
+
tools MNN_BUILD_CONVERTER
|
33 |
+
)
|
34 |
+
|
35 |
+
# 'cuda' feature in Windows failes with Ninja because of parallel PDB access. Make it optional
|
36 |
+
set(NINJA_OPTION PREFER_NINJA)
|
37 |
+
if("cuda" IN_LIST FEATURES)
|
38 |
+
unset(NINJA_OPTION)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
set(FLATC_EXEC ${CURRENT_HOST_INSTALLED_DIR}/tools/flatbuffers/flatc${VCPKG_HOST_EXECUTABLE_SUFFIX})
|
42 |
+
if (NOT EXISTS "${FLATC_EXEC}")
|
43 |
+
message(FATAL_ERROR "Expected ${FLATC_EXEC} to exist.")
|
44 |
+
endif()
|
45 |
+
|
46 |
+
# regenerate some code files by schemes and flatbuffers
|
47 |
+
vcpkg_execute_build_process(
|
48 |
+
COMMAND "${FLATC_EXEC}" "-c" "-b" "--gen-object-api" "--reflect-names"
|
49 |
+
"../default/BasicOptimizer.fbs"
|
50 |
+
"../default/CaffeOp.fbs"
|
51 |
+
"../default/GpuLibrary.fbs"
|
52 |
+
"../default/MNN.fbs"
|
53 |
+
"../default/Tensor.fbs"
|
54 |
+
"../default/TensorflowOp.fbs"
|
55 |
+
"../default/TFQuantizeOp.fbs"
|
56 |
+
"../default/Type.fbs"
|
57 |
+
"../default/UserDefine.fbs"
|
58 |
+
WORKING_DIRECTORY "${SOURCE_PATH}/schema/current/"
|
59 |
+
LOGNAME flatc-${TARGET_TRIPLET}
|
60 |
+
)
|
61 |
+
|
62 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
63 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" USE_RUNTIME_MT)
|
64 |
+
list(APPEND PLATFORM_OPTIONS -DMNN_WIN_RUNTIME_MT=${USE_RUNTIME_MT})
|
65 |
+
endif()
|
66 |
+
|
67 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
68 |
+
|
69 |
+
vcpkg_configure_cmake(
|
70 |
+
SOURCE_PATH ${SOURCE_PATH}
|
71 |
+
${NINJA_OPTION}
|
72 |
+
OPTIONS
|
73 |
+
${FEATURE_OPTIONS} ${PLATFORM_OPTIONS}
|
74 |
+
-DMNN_BUILD_SHARED_LIBS=${BUILD_SHARED}
|
75 |
+
# 1.1.0.0-${commit}
|
76 |
+
-DMNN_VERSION_MAJOR=1 -DMNN_VERSION_MINOR=1 -DMNN_VERSION_PATCH=0 -DMNN_VERSION_BUILD=0 -DMNN_VERSION_SUFFIX=-d6795ad
|
77 |
+
OPTIONS_DEBUG
|
78 |
+
-DMNN_DEBUG_MEMORY=ON -DMNN_DEBUG_TENSOR_SIZE=ON
|
79 |
+
)
|
80 |
+
vcpkg_install_cmake()
|
81 |
+
vcpkg_copy_pdbs()
|
82 |
+
|
83 |
+
vcpkg_download_distfile(COPYRIGHT_PATH
|
84 |
+
URLS "https://apache.org/licenses/LICENSE-2.0.txt"
|
85 |
+
FILENAME 98f6b79b778f7b0a1541.txt
|
86 |
+
SHA512 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8
|
87 |
+
)
|
88 |
+
|
89 |
+
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
90 |
+
file(RENAME ${COPYRIGHT_PATH} ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)
|
91 |
+
|
92 |
+
if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS)
|
93 |
+
if("metal" IN_LIST FEATURES)
|
94 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/bin/mnn.metallib
|
95 |
+
${CURRENT_PACKAGES_DIR}/share/${PORT}/mnn.metallib)
|
96 |
+
endif()
|
97 |
+
else()
|
98 |
+
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
99 |
+
endif()
|
100 |
+
|
101 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
102 |
+
if("test" IN_LIST FEATURES)
|
103 |
+
# no install(TARGETS) for the following binaries. check the buildtrees...
|
104 |
+
# vcpkg_copy_tools(
|
105 |
+
# TOOL_NAMES run_test.out benchmark.out benchmarkExprModels.out # test/
|
106 |
+
# AUTO_CLEAN
|
107 |
+
# )
|
108 |
+
endif()
|
109 |
+
if("tools" IN_LIST FEATURES)
|
110 |
+
vcpkg_copy_tools(
|
111 |
+
TOOL_NAMES MNNV2Basic.out mobilenetTest.out backendTest.out testModel.out testModelWithDescrisbe.out getPerformance.out checkInvalidValue.out timeProfile.out # tools/cpp
|
112 |
+
quantized.out # tools/quantization
|
113 |
+
classficationTopkEval.out # tools/evaluation
|
114 |
+
MNNDump2Json MNNConvert # tools/converter
|
115 |
+
transformer.out train.out dataTransformer.out runTrainDemo.out # tools/train
|
116 |
+
AUTO_CLEAN
|
117 |
+
)
|
118 |
+
if(BUILD_SHARED)
|
119 |
+
vcpkg_copy_tools(TOOL_NAMES TestConvertResult AUTO_CLEAN) # tools/converter
|
120 |
+
endif()
|
121 |
+
endif()
|
122 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
123 |
+
# remove the others. ex) mnn.metallib
|
124 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin
|
125 |
+
${CURRENT_PACKAGES_DIR}/debug/bin)
|
126 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mnn/use-package-and-install.patch
ADDED
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 993f15d..53f24ae 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -270,18 +270,24 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "^Linux")
|
6 |
+
include_directories(${aarch64_linux_include})
|
7 |
+
endif()
|
8 |
+
endif()
|
9 |
+
+
|
10 |
+
+if(MNN_OPENCL)
|
11 |
+
+ find_package(OpenCL REQUIRED)
|
12 |
+
+endif()
|
13 |
+
+find_package(RapidJSON CONFIG REQUIRED)
|
14 |
+
+find_path(STB_INCLUDE_DIRS "stb.h")
|
15 |
+
+find_package(Flatbuffers CONFIG REQUIRED)
|
16 |
+
include_directories(${CMAKE_CURRENT_LIST_DIR}/include/
|
17 |
+
${CMAKE_CURRENT_LIST_DIR}/source/
|
18 |
+
${CMAKE_CURRENT_LIST_DIR}/express/
|
19 |
+
${CMAKE_CURRENT_LIST_DIR}/tools/
|
20 |
+
${CMAKE_CURRENT_LIST_DIR}/schema/current/
|
21 |
+
- ${CMAKE_CURRENT_LIST_DIR}/3rd_party/
|
22 |
+
- ${CMAKE_CURRENT_LIST_DIR}/3rd_party/flatbuffers/include
|
23 |
+
${CMAKE_CURRENT_LIST_DIR}/3rd_party/half
|
24 |
+
- ${CMAKE_CURRENT_LIST_DIR}/3rd_party/imageHelper
|
25 |
+
- ${CMAKE_CURRENT_LIST_DIR}/3rd_party/OpenCLHeaders/
|
26 |
+
+ ${RAPIDJSON_INCLUDE_DIRS}
|
27 |
+
+ ${STB_INCLUDE_DIRS}
|
28 |
+
+ ${OpenCL_INCLUDE_DIRS}
|
29 |
+
)
|
30 |
+
-
|
31 |
+
+link_libraries(flatbuffers::flatbuffers ${OpenCL_LIBRARIES})
|
32 |
+
|
33 |
+
set(MNN_OBJECTS_TO_LINK "")
|
34 |
+
set(MNN_TARGETS "")
|
35 |
+
@@ -631,10 +637,14 @@ ELSEIF(NOT APPLE)
|
36 |
+
INSTALL(FILES ${MNN_PUB_HDRS} DESTINATION include/MNN/)
|
37 |
+
INSTALL(FILES ${MNN_EXPR_PUB_HDRS} DESTINATION include/MNN/expr/)
|
38 |
+
install(TARGETS MNN
|
39 |
+
+ RUNTIME DESTINATION bin
|
40 |
+
LIBRARY DESTINATION lib
|
41 |
+
ARCHIVE DESTINATION lib
|
42 |
+
)
|
43 |
+
+
|
44 |
+
ELSE()
|
45 |
+
+ INSTALL(FILES ${MNN_PUB_HDRS} DESTINATION include/MNN/)
|
46 |
+
+ INSTALL(FILES ${MNN_EXPR_PUB_HDRS} DESTINATION include/MNN/expr/)
|
47 |
+
install(TARGETS MNN
|
48 |
+
LIBRARY DESTINATION lib
|
49 |
+
ARCHIVE DESTINATION lib
|
50 |
+
@@ -648,5 +658,6 @@ ELSE()
|
51 |
+
ENDFOREACH()
|
52 |
+
IF(MNN_METAL)
|
53 |
+
SET_SOURCE_FILES_PROPERTIES(${CMAKE_CURRENT_BINARY_DIR}/mnn.metallib PROPERTIES MACOSX_PACKAGE_LOCATION Resources/)
|
54 |
+
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/mnn.metallib DESTINATION bin)
|
55 |
+
ENDIF()
|
56 |
+
ENDIF()
|
57 |
+
diff --git a/source/backend/cuda/CMakeLists.txt b/source/backend/cuda/CMakeLists.txt
|
58 |
+
index f9a24cc..8b1f96f 100644
|
59 |
+
--- a/source/backend/cuda/CMakeLists.txt
|
60 |
+
+++ b/source/backend/cuda/CMakeLists.txt
|
61 |
+
@@ -16,9 +16,26 @@ endif()
|
62 |
+
file(GLOB_RECURSE MNN_CUDA_SRC ${CMAKE_CURRENT_LIST_DIR}/core/* ${CMAKE_CURRENT_SOURCE_DIR}/execution/*)
|
63 |
+
message(STATUS "message ${CUDA_NVCC_FLAGS} !!!!!!!!!!!")
|
64 |
+
|
65 |
+
+# see https://github.com/microsoft/vcpkg/blob/master/ports/cudnn/FindCUDNN.cmake
|
66 |
+
+find_package(CUDNN REQUIRED)
|
67 |
+
+message(STATUS "using cudnn: ${CUDNN_LIBRARIES}")
|
68 |
+
+
|
69 |
+
+if(WIN32)
|
70 |
+
+ find_library(CUBLAS_LIB NAMES cublas PATHS $ENV{CUDA_PATH}/lib/x64)
|
71 |
+
+else()
|
72 |
+
+ find_library(CUBLAS_LIB cublas)
|
73 |
+
+endif()
|
74 |
+
+if(NOT CUBLAS_LIB)
|
75 |
+
+ message(FATAL_ERROR "cublas not found")
|
76 |
+
+else()
|
77 |
+
+ message(STATUS "using cublas: ${CUBLAS_LIB}")
|
78 |
+
+endif()
|
79 |
+
+
|
80 |
+
# add_library(MNN_Cuda SHARED ${MNN_CUDA_SRC} )
|
81 |
+
-cuda_add_library(MNN_Cuda_Main SHARED ${MNN_CUDA_SRC} )
|
82 |
+
-set(MNN_CUDA_LIBS MNN_Cuda_Main cudnn cublas PARENT_SCOPE)
|
83 |
+
+cuda_add_library(MNN_Cuda_Main STATIC ${MNN_CUDA_SRC} )
|
84 |
+
+target_link_libraries(MNN_Cuda_Main CuDNN::CuDNN ${CUBLAS_LIB})
|
85 |
+
+
|
86 |
+
+set(MNN_CUDA_LIBS MNN_Cuda_Main ${CUDNN_LIB} PARENT_SCOPE)
|
87 |
+
add_library(MNN_CUDA OBJECT Register.cpp)
|
88 |
+
|
89 |
+
include_directories(
|
90 |
+
diff --git a/source/backend/tensorrt/CMakeLists.txt b/source/backend/tensorrt/CMakeLists.txt
|
91 |
+
index aadabd6..3a0d81e 100644
|
92 |
+
--- a/source/backend/tensorrt/CMakeLists.txt
|
93 |
+
+++ b/source/backend/tensorrt/CMakeLists.txt
|
94 |
+
@@ -7,7 +7,7 @@ FIND_PACKAGE(CUDA REQUIRED)
|
95 |
+
|
96 |
+
add_library( MNN_TRT OBJECT ${MNN_TRT_SRCS})
|
97 |
+
|
98 |
+
-include_directories(/usr/local/cuda/include/)
|
99 |
+
+include_directories(${CUDA_INCLUDE_DIRS})
|
100 |
+
include_directories(${CMAKE_CURRENT_LIST_DIR}/backend/)
|
101 |
+
include_directories(${CMAKE_CURRENT_LIST_DIR}/execution/)
|
102 |
+
include_directories(${CMAKE_CURRENT_LIST_DIR}/execution/plugin/)
|
103 |
+
diff --git a/tools/converter/CMakeLists.txt b/tools/converter/CMakeLists.txt
|
104 |
+
index 2d5133a..d39977a 100644
|
105 |
+
--- a/tools/converter/CMakeLists.txt
|
106 |
+
+++ b/tools/converter/CMakeLists.txt
|
107 |
+
@@ -38,11 +38,12 @@ IF(MNN_BUILD_CONVERTER)
|
108 |
+
${CMAKE_CURRENT_LIST_DIR}/source/cli.cpp
|
109 |
+
${CMAKE_CURRENT_LIST_DIR}/source/config.cpp
|
110 |
+
)
|
111 |
+
- IF(MNN_BUILD_SHARED_LIBS)
|
112 |
+
- add_library(MNNConvertDeps SHARED ${COMMON_SRC} ${MNN_CONVERTER_BACKENDS_OBJECTS} ${CMAKE_CURRENT_LIST_DIR}/../../3rd_party/flatbuffers/src/util.cpp $<TARGET_OBJECTS:MNNUtils>)
|
113 |
+
+ # if Windows, meld MNNConvertDeps(lib) into MNNConvert(exe)
|
114 |
+
+ IF(MNN_BUILD_SHARED_LIBS AND NOT WIN32)
|
115 |
+
+ add_library(MNNConvertDeps SHARED ${COMMON_SRC} ${MNN_CONVERTER_BACKENDS_OBJECTS} $<TARGET_OBJECTS:MNNUtils>)
|
116 |
+
add_dependencies(MNNConvertDeps MNN)
|
117 |
+
ELSE()
|
118 |
+
- add_library(MNNConvertDeps STATIC ${COMMON_SRC} ${MNN_CONVERTER_BACKENDS_OBJECTS} ${CMAKE_CURRENT_LIST_DIR}/../../3rd_party/flatbuffers/src/util.cpp)
|
119 |
+
+ add_library(MNNConvertDeps STATIC ${COMMON_SRC} ${MNN_CONVERTER_BACKENDS_OBJECTS})
|
120 |
+
ENDIF()
|
121 |
+
|
122 |
+
|
123 |
+
@@ -68,5 +69,7 @@ IF(MNN_BUILD_CONVERTER)
|
124 |
+
add_executable(TestConvertResult ${CMAKE_CURRENT_LIST_DIR}/source/TestConvertResult.cpp)
|
125 |
+
target_link_libraries(TestConvertResult MNNConvertDeps)
|
126 |
+
target_link_libraries(MNNConvert MNNConvertDeps)
|
127 |
+
+ install(TARGETS TestConvertResult RUNTIME DESTINATION bin)
|
128 |
+
ENDIF()
|
129 |
+
+ install(TARGETS MNNDump2Json MNNConvert RUNTIME DESTINATION bin)
|
130 |
+
ENDIF()
|
131 |
+
diff --git a/tools/cpp/CMakeLists.txt b/tools/cpp/CMakeLists.txt
|
132 |
+
index def574c..f4e48c6 100644
|
133 |
+
--- a/tools/cpp/CMakeLists.txt
|
134 |
+
+++ b/tools/cpp/CMakeLists.txt
|
135 |
+
@@ -53,3 +53,5 @@ if (MSVC)
|
136 |
+
endif()
|
137 |
+
endforeach()
|
138 |
+
endif()
|
139 |
+
+
|
140 |
+
+install(TARGETS ${MNN_CPP_TOOLS} RUNTIME DESTINATION bin)
|
141 |
+
diff --git a/tools/evaluation/CMakeLists.txt b/tools/evaluation/CMakeLists.txt
|
142 |
+
index 8773372..e40b66d 100644
|
143 |
+
--- a/tools/evaluation/CMakeLists.txt
|
144 |
+
+++ b/tools/evaluation/CMakeLists.txt
|
145 |
+
@@ -7,4 +7,5 @@ IF(MNN_EVALUATION)
|
146 |
+
target_link_options(classficationTopkEval.out PRIVATE /WHOLEARCHIVE:$<TARGET_FILE:${DEPEND}>)
|
147 |
+
endforeach ()
|
148 |
+
endif()
|
149 |
+
+ install(TARGETS classficationTopkEval.out RUNTIME DESTINATION bin)
|
150 |
+
ENDIF()
|
151 |
+
diff --git a/tools/quantization/CMakeLists.txt b/tools/quantization/CMakeLists.txt
|
152 |
+
index 1e84ee0..86f3cbc 100644
|
153 |
+
--- a/tools/quantization/CMakeLists.txt
|
154 |
+
+++ b/tools/quantization/CMakeLists.txt
|
155 |
+
@@ -1,3 +1,5 @@
|
156 |
+
file(GLOB QUANFILES ${CMAKE_CURRENT_LIST_DIR}/*.cpp)
|
157 |
+
add_executable(quantized.out ${QUANFILES})
|
158 |
+
target_link_libraries(quantized.out ${MNN_DEPS})
|
159 |
+
+
|
160 |
+
+install(TARGETS quantized.out RUNTIME DESTINATION bin)
|
161 |
+
diff --git a/tools/train/CMakeLists.txt b/tools/train/CMakeLists.txt
|
162 |
+
index 48f355b..026dc24 100644
|
163 |
+
--- a/tools/train/CMakeLists.txt
|
164 |
+
+++ b/tools/train/CMakeLists.txt
|
165 |
+
@@ -27,6 +27,10 @@ if (MNN_BUILD_TRAIN_MINI)
|
166 |
+
else()
|
167 |
+
add_library(MNNTrain ${MNN_LIBARY_TYPE} ${GRAD} ${BASIC_INCLUDE} ${OPTIMIZER} ${DATALOADER} ${TRANSFORMER} ${MODELS} ${DATASETS})
|
168 |
+
endif()
|
169 |
+
+IF(MNN_BUILD_SHARED_LIBS)
|
170 |
+
+ target_compile_definitions(MNNTrain PRIVATE BUILDING_MNN_DLL)
|
171 |
+
+ENDIF()
|
172 |
+
+
|
173 |
+
target_link_libraries(MNNTrain ${MNN_DEPS})
|
174 |
+
|
175 |
+
add_executable(transformer.out ${CMAKE_CURRENT_LIST_DIR}/source/exec/transformerExecution.cpp)
|
176 |
+
@@ -38,7 +42,7 @@ target_link_libraries(train.out MNN)
|
177 |
+
|
178 |
+
add_executable(rawDataTransform.out ${CMAKE_CURRENT_LIST_DIR}/source/exec/rawDataTransform.cpp ${SCHEMA} ${BASIC_INCLUDE})
|
179 |
+
|
180 |
+
-include_directories(../../3rd_party/imageHelper/)
|
181 |
+
+# include_directories(../../3rd_party/imageHelper/)
|
182 |
+
add_executable(dataTransformer.out ${CMAKE_CURRENT_LIST_DIR}/source/exec/dataTransformer.cpp ${SCHEMA} ${BASIC_INCLUDE})
|
183 |
+
target_link_libraries(dataTransformer.out MNN)
|
184 |
+
|
185 |
+
@@ -59,3 +63,9 @@ if (MNN_USE_OPENCV)
|
186 |
+
add_definitions(-D MNN_USE_OPENCV)
|
187 |
+
target_link_libraries(runTrainDemo.out ${OpenCV_LIBS})
|
188 |
+
endif()
|
189 |
+
+
|
190 |
+
+install(TARGETS MNNTrain transformer.out train.out dataTransformer.out runTrainDemo.out
|
191 |
+
+ RUNTIME DESTINATION bin
|
192 |
+
+ LIBRARY DESTINATION lib
|
193 |
+
+ ARCHIVE DESTINATION lib
|
194 |
+
+)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mnn/vcpkg.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mnn",
|
3 |
+
"version": "1.1.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "MNN is a blazing fast, lightweight deep learning framework, battle-tested by business-critical use cases in Alibaba",
|
6 |
+
"homepage": "https://www.mnn.zone/",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"supports": "!(arm | uwp | ios | android)",
|
9 |
+
"dependencies": [
|
10 |
+
"flatbuffers",
|
11 |
+
{
|
12 |
+
"name": "flatbuffers",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
"rapidjson",
|
16 |
+
"stb"
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"cuda": {
|
20 |
+
"description": "Enable CUDA API backend",
|
21 |
+
"dependencies": [
|
22 |
+
"cuda",
|
23 |
+
"cudnn"
|
24 |
+
]
|
25 |
+
},
|
26 |
+
"metal": {
|
27 |
+
"description": "Enable Metal API backend for Apple platforms"
|
28 |
+
},
|
29 |
+
"opencl": {
|
30 |
+
"description": "Enable OpenCL API backend",
|
31 |
+
"dependencies": [
|
32 |
+
"opencl"
|
33 |
+
]
|
34 |
+
},
|
35 |
+
"test": {
|
36 |
+
"description": "Build MNN test programs"
|
37 |
+
},
|
38 |
+
"tools": {
|
39 |
+
"description": "Build MNN tools",
|
40 |
+
"dependencies": [
|
41 |
+
"protobuf"
|
42 |
+
]
|
43 |
+
},
|
44 |
+
"vulkan": {
|
45 |
+
"description": "Enable Vulkan API backend",
|
46 |
+
"dependencies": [
|
47 |
+
"vulkan"
|
48 |
+
]
|
49 |
+
}
|
50 |
+
}
|
51 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/CMakeLists.txt
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(libmodpbase64 C)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
configure_file(config.h.cmake config.h @ONLY)
|
9 |
+
|
10 |
+
include_directories(. ${SOURCE_PATH}/src ${CMAKE_CURRENT_BINARY_DIR})
|
11 |
+
|
12 |
+
add_library(libmodpbase64 ${SOURCE_PATH}/src/modp_b64.c libmodpbase64.def)
|
13 |
+
|
14 |
+
install(
|
15 |
+
TARGETS libmodpbase64
|
16 |
+
RUNTIME DESTINATION bin
|
17 |
+
LIBRARY DESTINATION lib
|
18 |
+
ARCHIVE DESTINATION lib
|
19 |
+
)
|
20 |
+
|
21 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
22 |
+
install(
|
23 |
+
FILES ${SOURCE_PATH}/src/modp_b64.h
|
24 |
+
DESTINATION include
|
25 |
+
)
|
26 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/config.h.cmake
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef MODP_CONFIG_H
|
2 |
+
#define MODP_CONFIG_H
|
3 |
+
|
4 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/libmodpbase64.def
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
LIBRARY libmodpbase64
|
2 |
+
EXPORTS
|
3 |
+
modp_b64_encode @1
|
4 |
+
modp_b64_decode @2
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/modp_b64_data.h
ADDED
@@ -0,0 +1,480 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#include <stdint.h>
|
2 |
+
#define CHAR62 '+'
|
3 |
+
#define CHAR63 '/'
|
4 |
+
#define CHARPAD '='
|
5 |
+
static const char e0[256] = {
|
6 |
+
'A', 'A', 'A', 'A', 'B', 'B', 'B', 'B', 'C', 'C',
|
7 |
+
'C', 'C', 'D', 'D', 'D', 'D', 'E', 'E', 'E', 'E',
|
8 |
+
'F', 'F', 'F', 'F', 'G', 'G', 'G', 'G', 'H', 'H',
|
9 |
+
'H', 'H', 'I', 'I', 'I', 'I', 'J', 'J', 'J', 'J',
|
10 |
+
'K', 'K', 'K', 'K', 'L', 'L', 'L', 'L', 'M', 'M',
|
11 |
+
'M', 'M', 'N', 'N', 'N', 'N', 'O', 'O', 'O', 'O',
|
12 |
+
'P', 'P', 'P', 'P', 'Q', 'Q', 'Q', 'Q', 'R', 'R',
|
13 |
+
'R', 'R', 'S', 'S', 'S', 'S', 'T', 'T', 'T', 'T',
|
14 |
+
'U', 'U', 'U', 'U', 'V', 'V', 'V', 'V', 'W', 'W',
|
15 |
+
'W', 'W', 'X', 'X', 'X', 'X', 'Y', 'Y', 'Y', 'Y',
|
16 |
+
'Z', 'Z', 'Z', 'Z', 'a', 'a', 'a', 'a', 'b', 'b',
|
17 |
+
'b', 'b', 'c', 'c', 'c', 'c', 'd', 'd', 'd', 'd',
|
18 |
+
'e', 'e', 'e', 'e', 'f', 'f', 'f', 'f', 'g', 'g',
|
19 |
+
'g', 'g', 'h', 'h', 'h', 'h', 'i', 'i', 'i', 'i',
|
20 |
+
'j', 'j', 'j', 'j', 'k', 'k', 'k', 'k', 'l', 'l',
|
21 |
+
'l', 'l', 'm', 'm', 'm', 'm', 'n', 'n', 'n', 'n',
|
22 |
+
'o', 'o', 'o', 'o', 'p', 'p', 'p', 'p', 'q', 'q',
|
23 |
+
'q', 'q', 'r', 'r', 'r', 'r', 's', 's', 's', 's',
|
24 |
+
't', 't', 't', 't', 'u', 'u', 'u', 'u', 'v', 'v',
|
25 |
+
'v', 'v', 'w', 'w', 'w', 'w', 'x', 'x', 'x', 'x',
|
26 |
+
'y', 'y', 'y', 'y', 'z', 'z', 'z', 'z', '0', '0',
|
27 |
+
'0', '0', '1', '1', '1', '1', '2', '2', '2', '2',
|
28 |
+
'3', '3', '3', '3', '4', '4', '4', '4', '5', '5',
|
29 |
+
'5', '5', '6', '6', '6', '6', '7', '7', '7', '7',
|
30 |
+
'8', '8', '8', '8', '9', '9', '9', '9', '+', '+',
|
31 |
+
'+', '+', '/', '/', '/', '/'
|
32 |
+
};
|
33 |
+
|
34 |
+
static const char e1[256] = {
|
35 |
+
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
|
36 |
+
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
|
37 |
+
'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
|
38 |
+
'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
|
39 |
+
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
|
40 |
+
'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7',
|
41 |
+
'8', '9', '+', '/', 'A', 'B', 'C', 'D', 'E', 'F',
|
42 |
+
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
43 |
+
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
44 |
+
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
|
45 |
+
'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
|
46 |
+
'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3',
|
47 |
+
'4', '5', '6', '7', '8', '9', '+', '/', 'A', 'B',
|
48 |
+
'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
|
49 |
+
'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
|
50 |
+
'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
|
51 |
+
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
|
52 |
+
'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
53 |
+
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
|
54 |
+
'+', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
55 |
+
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
|
56 |
+
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b',
|
57 |
+
'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
|
58 |
+
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
|
59 |
+
'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5',
|
60 |
+
'6', '7', '8', '9', '+', '/'
|
61 |
+
};
|
62 |
+
|
63 |
+
static const char e2[256] = {
|
64 |
+
'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
|
65 |
+
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T',
|
66 |
+
'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
|
67 |
+
'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
|
68 |
+
'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x',
|
69 |
+
'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7',
|
70 |
+
'8', '9', '+', '/', 'A', 'B', 'C', 'D', 'E', 'F',
|
71 |
+
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
|
72 |
+
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z',
|
73 |
+
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j',
|
74 |
+
'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
|
75 |
+
'u', 'v', 'w', 'x', 'y', 'z', '0', '1', '2', '3',
|
76 |
+
'4', '5', '6', '7', '8', '9', '+', '/', 'A', 'B',
|
77 |
+
'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L',
|
78 |
+
'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
|
79 |
+
'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
|
80 |
+
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
|
81 |
+
'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',
|
82 |
+
'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
|
83 |
+
'+', '/', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
|
84 |
+
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
|
85 |
+
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b',
|
86 |
+
'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
|
87 |
+
'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
|
88 |
+
'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5',
|
89 |
+
'6', '7', '8', '9', '+', '/'
|
90 |
+
};
|
91 |
+
|
92 |
+
|
93 |
+
|
94 |
+
#ifdef WORDS_BIGENDIAN
|
95 |
+
|
96 |
+
|
97 |
+
/* SPECIAL DECODE TABLES FOR BIG ENDIAN (IBM/MOTOROLA/SUN) CPUS */
|
98 |
+
|
99 |
+
static const uint32_t d0[256] = {
|
100 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
101 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
102 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
103 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
104 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
105 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
106 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
107 |
+
0x01ffffff, 0x00f80000, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00fc0000,
|
108 |
+
0x00d00000, 0x00d40000, 0x00d80000, 0x00dc0000, 0x00e00000, 0x00e40000,
|
109 |
+
0x00e80000, 0x00ec0000, 0x00f00000, 0x00f40000, 0x01ffffff, 0x01ffffff,
|
110 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
111 |
+
0x00040000, 0x00080000, 0x000c0000, 0x00100000, 0x00140000, 0x00180000,
|
112 |
+
0x001c0000, 0x00200000, 0x00240000, 0x00280000, 0x002c0000, 0x00300000,
|
113 |
+
0x00340000, 0x00380000, 0x003c0000, 0x00400000, 0x00440000, 0x00480000,
|
114 |
+
0x004c0000, 0x00500000, 0x00540000, 0x00580000, 0x005c0000, 0x00600000,
|
115 |
+
0x00640000, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
116 |
+
0x01ffffff, 0x00680000, 0x006c0000, 0x00700000, 0x00740000, 0x00780000,
|
117 |
+
0x007c0000, 0x00800000, 0x00840000, 0x00880000, 0x008c0000, 0x00900000,
|
118 |
+
0x00940000, 0x00980000, 0x009c0000, 0x00a00000, 0x00a40000, 0x00a80000,
|
119 |
+
0x00ac0000, 0x00b00000, 0x00b40000, 0x00b80000, 0x00bc0000, 0x00c00000,
|
120 |
+
0x00c40000, 0x00c80000, 0x00cc0000, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
121 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
122 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
123 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
124 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
125 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
126 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
127 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
128 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
129 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
130 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
131 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
132 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
133 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
134 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
135 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
136 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
137 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
138 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
139 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
140 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
141 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
142 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
143 |
+
};
|
144 |
+
|
145 |
+
|
146 |
+
static const uint32_t d1[256] = {
|
147 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
148 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
149 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
150 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
151 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
152 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
153 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
154 |
+
0x01ffffff, 0x0003e000, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x0003f000,
|
155 |
+
0x00034000, 0x00035000, 0x00036000, 0x00037000, 0x00038000, 0x00039000,
|
156 |
+
0x0003a000, 0x0003b000, 0x0003c000, 0x0003d000, 0x01ffffff, 0x01ffffff,
|
157 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
158 |
+
0x00001000, 0x00002000, 0x00003000, 0x00004000, 0x00005000, 0x00006000,
|
159 |
+
0x00007000, 0x00008000, 0x00009000, 0x0000a000, 0x0000b000, 0x0000c000,
|
160 |
+
0x0000d000, 0x0000e000, 0x0000f000, 0x00010000, 0x00011000, 0x00012000,
|
161 |
+
0x00013000, 0x00014000, 0x00015000, 0x00016000, 0x00017000, 0x00018000,
|
162 |
+
0x00019000, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
163 |
+
0x01ffffff, 0x0001a000, 0x0001b000, 0x0001c000, 0x0001d000, 0x0001e000,
|
164 |
+
0x0001f000, 0x00020000, 0x00021000, 0x00022000, 0x00023000, 0x00024000,
|
165 |
+
0x00025000, 0x00026000, 0x00027000, 0x00028000, 0x00029000, 0x0002a000,
|
166 |
+
0x0002b000, 0x0002c000, 0x0002d000, 0x0002e000, 0x0002f000, 0x00030000,
|
167 |
+
0x00031000, 0x00032000, 0x00033000, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
168 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
169 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
170 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
171 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
172 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
173 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
174 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
175 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
176 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
177 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
178 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
179 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
180 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
181 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
182 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
183 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
184 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
185 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
186 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
187 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
188 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
189 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
190 |
+
};
|
191 |
+
|
192 |
+
|
193 |
+
static const uint32_t d2[256] = {
|
194 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
195 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
196 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
197 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
198 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
199 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
200 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
201 |
+
0x01ffffff, 0x00000f80, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000fc0,
|
202 |
+
0x00000d00, 0x00000d40, 0x00000d80, 0x00000dc0, 0x00000e00, 0x00000e40,
|
203 |
+
0x00000e80, 0x00000ec0, 0x00000f00, 0x00000f40, 0x01ffffff, 0x01ffffff,
|
204 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
205 |
+
0x00000040, 0x00000080, 0x000000c0, 0x00000100, 0x00000140, 0x00000180,
|
206 |
+
0x000001c0, 0x00000200, 0x00000240, 0x00000280, 0x000002c0, 0x00000300,
|
207 |
+
0x00000340, 0x00000380, 0x000003c0, 0x00000400, 0x00000440, 0x00000480,
|
208 |
+
0x000004c0, 0x00000500, 0x00000540, 0x00000580, 0x000005c0, 0x00000600,
|
209 |
+
0x00000640, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
210 |
+
0x01ffffff, 0x00000680, 0x000006c0, 0x00000700, 0x00000740, 0x00000780,
|
211 |
+
0x000007c0, 0x00000800, 0x00000840, 0x00000880, 0x000008c0, 0x00000900,
|
212 |
+
0x00000940, 0x00000980, 0x000009c0, 0x00000a00, 0x00000a40, 0x00000a80,
|
213 |
+
0x00000ac0, 0x00000b00, 0x00000b40, 0x00000b80, 0x00000bc0, 0x00000c00,
|
214 |
+
0x00000c40, 0x00000c80, 0x00000cc0, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
215 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
216 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
217 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
218 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
219 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
220 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
221 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
222 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
223 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
224 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
225 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
226 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
227 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
228 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
229 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
230 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
231 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
232 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
233 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
234 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
235 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
236 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
237 |
+
};
|
238 |
+
|
239 |
+
|
240 |
+
static const uint32_t d3[256] = {
|
241 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
242 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
243 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
244 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
245 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
246 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
247 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
248 |
+
0x01ffffff, 0x0000003e, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x0000003f,
|
249 |
+
0x00000034, 0x00000035, 0x00000036, 0x00000037, 0x00000038, 0x00000039,
|
250 |
+
0x0000003a, 0x0000003b, 0x0000003c, 0x0000003d, 0x01ffffff, 0x01ffffff,
|
251 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
252 |
+
0x00000001, 0x00000002, 0x00000003, 0x00000004, 0x00000005, 0x00000006,
|
253 |
+
0x00000007, 0x00000008, 0x00000009, 0x0000000a, 0x0000000b, 0x0000000c,
|
254 |
+
0x0000000d, 0x0000000e, 0x0000000f, 0x00000010, 0x00000011, 0x00000012,
|
255 |
+
0x00000013, 0x00000014, 0x00000015, 0x00000016, 0x00000017, 0x00000018,
|
256 |
+
0x00000019, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
257 |
+
0x01ffffff, 0x0000001a, 0x0000001b, 0x0000001c, 0x0000001d, 0x0000001e,
|
258 |
+
0x0000001f, 0x00000020, 0x00000021, 0x00000022, 0x00000023, 0x00000024,
|
259 |
+
0x00000025, 0x00000026, 0x00000027, 0x00000028, 0x00000029, 0x0000002a,
|
260 |
+
0x0000002b, 0x0000002c, 0x0000002d, 0x0000002e, 0x0000002f, 0x00000030,
|
261 |
+
0x00000031, 0x00000032, 0x00000033, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
262 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
263 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
264 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
265 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
266 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
267 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
268 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
269 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
270 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
271 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
272 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
273 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
274 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
275 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
276 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
277 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
278 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
279 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
280 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
281 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
282 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
283 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
284 |
+
};
|
285 |
+
|
286 |
+
|
287 |
+
#else
|
288 |
+
|
289 |
+
|
290 |
+
/* SPECIAL DECODE TABLES FOR LITTLE ENDIAN (INTEL) CPUS */
|
291 |
+
|
292 |
+
static const uint32_t d0[256] = {
|
293 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
294 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
295 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
296 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
297 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
298 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
299 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
300 |
+
0x01ffffff, 0x000000f8, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x000000fc,
|
301 |
+
0x000000d0, 0x000000d4, 0x000000d8, 0x000000dc, 0x000000e0, 0x000000e4,
|
302 |
+
0x000000e8, 0x000000ec, 0x000000f0, 0x000000f4, 0x01ffffff, 0x01ffffff,
|
303 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
304 |
+
0x00000004, 0x00000008, 0x0000000c, 0x00000010, 0x00000014, 0x00000018,
|
305 |
+
0x0000001c, 0x00000020, 0x00000024, 0x00000028, 0x0000002c, 0x00000030,
|
306 |
+
0x00000034, 0x00000038, 0x0000003c, 0x00000040, 0x00000044, 0x00000048,
|
307 |
+
0x0000004c, 0x00000050, 0x00000054, 0x00000058, 0x0000005c, 0x00000060,
|
308 |
+
0x00000064, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
309 |
+
0x01ffffff, 0x00000068, 0x0000006c, 0x00000070, 0x00000074, 0x00000078,
|
310 |
+
0x0000007c, 0x00000080, 0x00000084, 0x00000088, 0x0000008c, 0x00000090,
|
311 |
+
0x00000094, 0x00000098, 0x0000009c, 0x000000a0, 0x000000a4, 0x000000a8,
|
312 |
+
0x000000ac, 0x000000b0, 0x000000b4, 0x000000b8, 0x000000bc, 0x000000c0,
|
313 |
+
0x000000c4, 0x000000c8, 0x000000cc, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
314 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
315 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
316 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
317 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
318 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
319 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
320 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
321 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
322 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
323 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
324 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
325 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
326 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
327 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
328 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
329 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
330 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
331 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
332 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
333 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
334 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
335 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
336 |
+
};
|
337 |
+
|
338 |
+
|
339 |
+
static const uint32_t d1[256] = {
|
340 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
341 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
342 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
343 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
344 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
345 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
346 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
347 |
+
0x01ffffff, 0x0000e003, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x0000f003,
|
348 |
+
0x00004003, 0x00005003, 0x00006003, 0x00007003, 0x00008003, 0x00009003,
|
349 |
+
0x0000a003, 0x0000b003, 0x0000c003, 0x0000d003, 0x01ffffff, 0x01ffffff,
|
350 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
351 |
+
0x00001000, 0x00002000, 0x00003000, 0x00004000, 0x00005000, 0x00006000,
|
352 |
+
0x00007000, 0x00008000, 0x00009000, 0x0000a000, 0x0000b000, 0x0000c000,
|
353 |
+
0x0000d000, 0x0000e000, 0x0000f000, 0x00000001, 0x00001001, 0x00002001,
|
354 |
+
0x00003001, 0x00004001, 0x00005001, 0x00006001, 0x00007001, 0x00008001,
|
355 |
+
0x00009001, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
356 |
+
0x01ffffff, 0x0000a001, 0x0000b001, 0x0000c001, 0x0000d001, 0x0000e001,
|
357 |
+
0x0000f001, 0x00000002, 0x00001002, 0x00002002, 0x00003002, 0x00004002,
|
358 |
+
0x00005002, 0x00006002, 0x00007002, 0x00008002, 0x00009002, 0x0000a002,
|
359 |
+
0x0000b002, 0x0000c002, 0x0000d002, 0x0000e002, 0x0000f002, 0x00000003,
|
360 |
+
0x00001003, 0x00002003, 0x00003003, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
361 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
362 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
363 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
364 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
365 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
366 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
367 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
368 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
369 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
370 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
371 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
372 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
373 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
374 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
375 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
376 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
377 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
378 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
379 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
380 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
381 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
382 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
383 |
+
};
|
384 |
+
|
385 |
+
|
386 |
+
static const uint32_t d2[256] = {
|
387 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
388 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
389 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
390 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
391 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
392 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
393 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
394 |
+
0x01ffffff, 0x00800f00, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00c00f00,
|
395 |
+
0x00000d00, 0x00400d00, 0x00800d00, 0x00c00d00, 0x00000e00, 0x00400e00,
|
396 |
+
0x00800e00, 0x00c00e00, 0x00000f00, 0x00400f00, 0x01ffffff, 0x01ffffff,
|
397 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
398 |
+
0x00400000, 0x00800000, 0x00c00000, 0x00000100, 0x00400100, 0x00800100,
|
399 |
+
0x00c00100, 0x00000200, 0x00400200, 0x00800200, 0x00c00200, 0x00000300,
|
400 |
+
0x00400300, 0x00800300, 0x00c00300, 0x00000400, 0x00400400, 0x00800400,
|
401 |
+
0x00c00400, 0x00000500, 0x00400500, 0x00800500, 0x00c00500, 0x00000600,
|
402 |
+
0x00400600, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
403 |
+
0x01ffffff, 0x00800600, 0x00c00600, 0x00000700, 0x00400700, 0x00800700,
|
404 |
+
0x00c00700, 0x00000800, 0x00400800, 0x00800800, 0x00c00800, 0x00000900,
|
405 |
+
0x00400900, 0x00800900, 0x00c00900, 0x00000a00, 0x00400a00, 0x00800a00,
|
406 |
+
0x00c00a00, 0x00000b00, 0x00400b00, 0x00800b00, 0x00c00b00, 0x00000c00,
|
407 |
+
0x00400c00, 0x00800c00, 0x00c00c00, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
408 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
409 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
410 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
411 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
412 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
413 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
414 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
415 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
416 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
417 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
418 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
419 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
420 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
421 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
422 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
423 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
424 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
425 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
426 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
427 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
428 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
429 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
430 |
+
};
|
431 |
+
|
432 |
+
|
433 |
+
static const uint32_t d3[256] = {
|
434 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
435 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
436 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
437 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
438 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
439 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
440 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
441 |
+
0x01ffffff, 0x003e0000, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x003f0000,
|
442 |
+
0x00340000, 0x00350000, 0x00360000, 0x00370000, 0x00380000, 0x00390000,
|
443 |
+
0x003a0000, 0x003b0000, 0x003c0000, 0x003d0000, 0x01ffffff, 0x01ffffff,
|
444 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x00000000,
|
445 |
+
0x00010000, 0x00020000, 0x00030000, 0x00040000, 0x00050000, 0x00060000,
|
446 |
+
0x00070000, 0x00080000, 0x00090000, 0x000a0000, 0x000b0000, 0x000c0000,
|
447 |
+
0x000d0000, 0x000e0000, 0x000f0000, 0x00100000, 0x00110000, 0x00120000,
|
448 |
+
0x00130000, 0x00140000, 0x00150000, 0x00160000, 0x00170000, 0x00180000,
|
449 |
+
0x00190000, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
450 |
+
0x01ffffff, 0x001a0000, 0x001b0000, 0x001c0000, 0x001d0000, 0x001e0000,
|
451 |
+
0x001f0000, 0x00200000, 0x00210000, 0x00220000, 0x00230000, 0x00240000,
|
452 |
+
0x00250000, 0x00260000, 0x00270000, 0x00280000, 0x00290000, 0x002a0000,
|
453 |
+
0x002b0000, 0x002c0000, 0x002d0000, 0x002e0000, 0x002f0000, 0x00300000,
|
454 |
+
0x00310000, 0x00320000, 0x00330000, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
455 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
456 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
457 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
458 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
459 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
460 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
461 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
462 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
463 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
464 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
465 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
466 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
467 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
468 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
469 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
470 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
471 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
472 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
473 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
474 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
475 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff,
|
476 |
+
0x01ffffff, 0x01ffffff, 0x01ffffff, 0x01ffffff
|
477 |
+
};
|
478 |
+
|
479 |
+
|
480 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO client9/stringencoders
|
4 |
+
REF e1448a9415f4ebf6f559c86718193ba067cbb99d
|
5 |
+
SHA512 68c9b9a9eb09075c792cfc0a8ce1959c60a86e5256de8568b0cb6934f748fd9e95c5f1801a8982fecac65850a8f2d633a64dc98e4505ee8e6914bd0b0fb996cf
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR}
|
11 |
+
PREFER_NINJA
|
12 |
+
OPTIONS -DSOURCE_PATH=${SOURCE_PATH}
|
13 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_install_cmake()
|
17 |
+
|
18 |
+
# Handle copyright
|
19 |
+
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/modp-base64/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "modp-base64",
|
3 |
+
"version-string": "2020-09-26",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "High performance base64 encoder/decoder"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/disable-source-write.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 7ff8bbf..32c2e00 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -114,8 +114,8 @@ if (BUILD_VERSION STREQUAL "0.0.0")
|
6 |
+
file (WRITE ${PROJECT_SOURCE_DIR}/VERSION_CURRENT ${BUILD_VERSION})
|
7 |
+
endif ()
|
8 |
+
else ()
|
9 |
+
- message ("storing BUILD_VERSION ${BUILD_VERSION} in file VERSION_CURRENT for later use")
|
10 |
+
- file (WRITE ${PROJECT_SOURCE_DIR}/VERSION_CURRENT ${BUILD_VERSION})
|
11 |
+
+ #message ("storing BUILD_VERSION ${BUILD_VERSION} in file VERSION_CURRENT for later use")
|
12 |
+
+ #file (WRITE ${PROJECT_SOURCE_DIR}/VERSION_CURRENT ${BUILD_VERSION})
|
13 |
+
endif ()
|
14 |
+
|
15 |
+
include (LoadVersion)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mongo-c-driver/disable-static-when-dynamic-build.patch
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
|
2 |
+
index de96ab864..5b7f448f2 100644
|
3 |
+
--- a/src/libmongoc/CMakeLists.txt
|
4 |
+
+++ b/src/libmongoc/CMakeLists.txt
|
5 |
+
@@ -725,6 +725,7 @@ if (MONGOC_ENABLE_MONGODB_AWS_AUTH)
|
6 |
+
endif()
|
7 |
+
endif ()
|
8 |
+
|
9 |
+
+if (NOT MONGOC_ENABLE_STATIC_BUILD)
|
10 |
+
add_library (mongoc_shared SHARED ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
|
11 |
+
set_target_properties (mongoc_shared PROPERTIES CMAKE_CXX_VISIBILITY_PRESET hidden)
|
12 |
+
target_link_libraries (mongoc_shared PRIVATE ${LIBRARIES} PUBLIC mongo::bson_shared)
|
13 |
+
@@ -745,7 +746,7 @@ target_compile_definitions (mongoc_shared PRIVATE MONGOC_COMPILATION ${KMS_MSG_D
|
14 |
+
set_target_properties (mongoc_shared PROPERTIES VERSION 0.0.0 SOVERSION 0)
|
15 |
+
set_target_properties (mongoc_shared PROPERTIES OUTPUT_NAME "${MONGOC_OUTPUT_BASENAME}-${MONGOC_API_VERSION}")
|
16 |
+
|
17 |
+
-if (MONGOC_ENABLE_STATIC_BUILD)
|
18 |
+
+else ()
|
19 |
+
add_library (mongoc_static STATIC ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
|
20 |
+
target_link_libraries (mongoc_static ${STATIC_LIBRARIES} mongo::bson_static)
|
21 |
+
if (NOT WIN32 AND ENABLE_PIC)
|
22 |
+
@@ -778,7 +779,11 @@ if (ENABLE_APPLE_FRAMEWORK)
|
23 |
+
endif ()
|
24 |
+
|
25 |
+
add_executable (mongoc-stat ${PROJECT_SOURCE_DIR}/../../src/tools/mongoc-stat.c)
|
26 |
+
+if (NOT MONGOC_ENABLE_STATIC_BUILD)
|
27 |
+
target_link_libraries (mongoc-stat mongoc_shared ${LIBRARIES})
|
28 |
+
+else()
|
29 |
+
+target_link_libraries (mongoc-stat mongoc_static ${LIBRARIES})
|
30 |
+
+endif()
|
31 |
+
|
32 |
+
# mongoc-stat works if shared memory performance counters are enabled.
|
33 |
+
if (ENABLE_SHM_COUNTERS STREQUAL "ON")
|
34 |
+
@@ -1040,7 +1045,7 @@ file (COPY ${PROJECT_SOURCE_DIR}/tests/x509gen DESTINATION ${PROJECT_BINARY_DIR}
|
35 |
+
file (COPY ${PROJECT_SOURCE_DIR}/tests/release_files DESTINATION ${PROJECT_BINARY_DIR}/tests)
|
36 |
+
|
37 |
+
if (MONGOC_ENABLE_STATIC_INSTALL)
|
38 |
+
- set (TARGETS_TO_INSTALL mongoc_shared mongoc_static)
|
39 |
+
+ set (TARGETS_TO_INSTALL mongoc_static)
|
40 |
+
else ()
|
41 |
+
set (TARGETS_TO_INSTALL mongoc_shared)
|
42 |
+
endif ()
|