Spaces:
Sleeping
Sleeping
d12ac8b0f02ad2b19fc61cb284f7a85f71262c6e5e8383caeaad0a7204cb067f
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/0003-create_symlink_unix_only.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/portfile.cmake +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/vcpkg.json +70 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/0001-Fix-UWP.patch +64 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/0002-fix-macros.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/0003-fix-openssl3.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/portfile.cmake +50 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/vcpkg.json +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/CMakeLists.txt +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/LICENSE +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstk/CMakeLists.txt +215 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstk/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstk/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsvm/CMakeLists.txt +62 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsvm/portfile.cmake +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsvm/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtasn1/msvc_fixes.patch +86 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtasn1/portfile.cmake +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtasn1/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtcod/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtcod/vcpkg.json +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/CMakeLists.txt +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/0001-fix-uwp.patch +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/CMakeLists.txt +114 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/libtheora.def +61 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/portfile.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/unofficial-theora-config.cmake.in +3 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/find-pcap_static.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/fix-source-writes.patch +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/portfile.cmake +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtomcrypt/portfile.cmake +95 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtomcrypt/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtommath/portfile.cmake +91 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtommath/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtorrent/portfile.cmake +90 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtorrent/vcpkg.json +64 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/CMakeLists.txt +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/portfile.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/strndup-fix.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/u2f-server-version.h +94 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/windows.patch +41 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/0003-create_symlink_unix_only.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 53e6bd5..51d76c5 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -231,10 +231,11 @@ endif (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
|
6 |
+
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source DEPENDS ${_SYMBOL_TARGET} VERBATIM)
|
7 |
+
|
8 |
+
# Link compile database for clangd
|
9 |
+
+if(UNIX)
|
10 |
+
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
|
11 |
+
"${CMAKE_BINARY_DIR}/compile_commands.json"
|
12 |
+
"${CMAKE_SOURCE_DIR}/compile_commands.json")
|
13 |
+
-
|
14 |
+
+endif()
|
15 |
+
message(STATUS "********************************************")
|
16 |
+
message(STATUS "********** ${PROJECT_NAME} build options : **********")
|
17 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/portfile.cmake
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_git(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
URL https://git.libssh.org/projects/libssh.git
|
4 |
+
REF 47fd6e56c1058dca54afee1638c11fb6ec41911d # REFERENCE VERSION 0.9.6
|
5 |
+
PATCHES
|
6 |
+
0001-export-pkgconfig-file.patch
|
7 |
+
0002-mingw_for_Android.patch
|
8 |
+
0003-create_symlink_unix_only.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
mbedtls WITH_MBEDTLS
|
14 |
+
zlib WITH_ZLIB
|
15 |
+
)
|
16 |
+
|
17 |
+
if (VCPKG_TARGET_IS_ANDROID)
|
18 |
+
set(EXTRA_ARGS "-DWITH_SERVER=FALSE"
|
19 |
+
"-DWITH_PCAP=FALSE"
|
20 |
+
)
|
21 |
+
endif ()
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS
|
26 |
+
${EXTRA_ARGS}
|
27 |
+
${FEATURE_OPTIONS}
|
28 |
+
-DWITH_EXAMPLES=OFF
|
29 |
+
-DUNIT_TESTING=OFF
|
30 |
+
-DCLIENT_TESTING=OFF
|
31 |
+
-DSERVER_TESTING=OFF
|
32 |
+
-DWITH_NACL=OFF
|
33 |
+
-DWITH_GSSAPI=OFF
|
34 |
+
-DWITH_SYMBOL_VERSIONING=OFF)
|
35 |
+
|
36 |
+
vcpkg_cmake_install()
|
37 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
38 |
+
vcpkg_copy_pdbs()
|
39 |
+
#Fixup pthread naming
|
40 |
+
if(NOT VCPKG_TARGET_IS_MINGW AND VCPKG_TARGET_IS_WINDOWS)
|
41 |
+
if(NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
42 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libssh.pc" "-lpthread" "-lpthreadVC3d")
|
43 |
+
endif()
|
44 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libssh.pc" "-lpthread" "-lpthreadVC3")
|
45 |
+
endif()
|
46 |
+
vcpkg_fixup_pkgconfig()
|
47 |
+
|
48 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
49 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
50 |
+
vcpkg_replace_string(
|
51 |
+
"${CURRENT_PACKAGES_DIR}/include/libssh/libssh.h"
|
52 |
+
"#ifdef LIBSSH_STATIC"
|
53 |
+
"#if 1"
|
54 |
+
)
|
55 |
+
endif()
|
56 |
+
|
57 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
58 |
+
vcpkg_replace_string(
|
59 |
+
"${CURRENT_PACKAGES_DIR}/share/libssh/libssh-config.cmake"
|
60 |
+
".dll"
|
61 |
+
".lib"
|
62 |
+
)
|
63 |
+
endif()
|
64 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
65 |
+
|
66 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
67 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libssh is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
find_package(libssh CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE ssh)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh/vcpkg.json
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libssh",
|
3 |
+
"version": "0.9.6",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side",
|
6 |
+
"homepage": "https://www.libssh.org/",
|
7 |
+
"supports": "!(uwp | arm)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "libssh",
|
11 |
+
"default-features": false,
|
12 |
+
"features": [
|
13 |
+
"mbedtls"
|
14 |
+
],
|
15 |
+
"platform": "android"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "vcpkg-cmake",
|
19 |
+
"host": true
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "vcpkg-cmake-config",
|
23 |
+
"host": true
|
24 |
+
}
|
25 |
+
],
|
26 |
+
"default-features": [
|
27 |
+
"crypto"
|
28 |
+
],
|
29 |
+
"features": {
|
30 |
+
"crypto": {
|
31 |
+
"description": "Default crypto backend",
|
32 |
+
"dependencies": [
|
33 |
+
{
|
34 |
+
"name": "libssh",
|
35 |
+
"features": [
|
36 |
+
"mbedtls"
|
37 |
+
]
|
38 |
+
}
|
39 |
+
]
|
40 |
+
},
|
41 |
+
"mbedtls": {
|
42 |
+
"description": "Crypto support (mbedTLS)",
|
43 |
+
"dependencies": [
|
44 |
+
{
|
45 |
+
"name": "mbedtls",
|
46 |
+
"default-features": false
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"name": "mbedtls",
|
50 |
+
"features": [
|
51 |
+
"pthreads"
|
52 |
+
],
|
53 |
+
"platform": "!android"
|
54 |
+
}
|
55 |
+
]
|
56 |
+
},
|
57 |
+
"openssl": {
|
58 |
+
"description": "Crypto support (OpenSSL)",
|
59 |
+
"dependencies": [
|
60 |
+
"openssl"
|
61 |
+
]
|
62 |
+
},
|
63 |
+
"zlib": {
|
64 |
+
"description": "libssh with zlib",
|
65 |
+
"dependencies": [
|
66 |
+
"zlib"
|
67 |
+
]
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/0001-Fix-UWP.patch
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 6401acf..64de3e9 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -349,7 +349,7 @@ target_include_directories(libssh2 PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
6 |
+
# Check for the OS.
|
7 |
+
# Daniel's note: this should not be necessary and we need to work to
|
8 |
+
# get this removed.
|
9 |
+
-if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
|
10 |
+
+if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows" OR ${CMAKE_SYSTEM_NAME} STREQUAL "WindowsStore")
|
11 |
+
target_compile_definitions(libssh2 PRIVATE LIBSSH2_WIN32)
|
12 |
+
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
13 |
+
target_compile_definitions(libssh2 PRIVATE LIBSSH2_DARWIN)
|
14 |
+
diff --git a/src/agent.c b/src/agent.c
|
15 |
+
index c2ba422..f1799f8 100644
|
16 |
+
--- a/src/agent.c
|
17 |
+
+++ b/src/agent.c
|
18 |
+
@@ -55,6 +55,10 @@
|
19 |
+
#include <stdlib.h>
|
20 |
+
#endif
|
21 |
+
|
22 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
|
23 |
+
+#define IS_UWP 1
|
24 |
+
+#endif /* #if defined(WINAPI_FAMILY) */
|
25 |
+
+
|
26 |
+
/* Requests from client to agent for protocol 1 key operations */
|
27 |
+
#define SSH_AGENTC_REQUEST_RSA_IDENTITIES 1
|
28 |
+
#define SSH_AGENTC_RSA_CHALLENGE 3
|
29 |
+
@@ -254,7 +258,7 @@ struct agent_ops agent_ops_unix = {
|
30 |
+
};
|
31 |
+
#endif /* PF_UNIX */
|
32 |
+
|
33 |
+
-#ifdef WIN32
|
34 |
+
+#if defined(WIN32) && !defined(IS_UWP)
|
35 |
+
/* Code to talk to Pageant was taken from PuTTY.
|
36 |
+
*
|
37 |
+
* Portions copyright Robert de Bath, Joris van Rantwijk, Delian
|
38 |
+
@@ -362,8 +366,8 @@ static struct {
|
39 |
+
const char *name;
|
40 |
+
struct agent_ops *ops;
|
41 |
+
} supported_backends[] = {
|
42 |
+
-#ifdef WIN32
|
43 |
+
- {"Pageant", &agent_ops_pageant},
|
44 |
+
+#if defined(WIN32) && !defined(IS_UWP)
|
45 |
+
+ {"Pageant", &agent_ops_pageant},
|
46 |
+
{"OpenSSH", &agent_ops_openssh},
|
47 |
+
#endif /* WIN32 */
|
48 |
+
#ifdef PF_UNIX
|
49 |
+
diff --git a/src/agent_win.c b/src/agent_win.c
|
50 |
+
--- a/src/agent_win.c
|
51 |
+
+++ b/src/agent_win.c
|
52 |
+
@@ -55,7 +55,11 @@
|
53 |
+
#include <stdlib.h>
|
54 |
+
#endif
|
55 |
+
|
56 |
+
-#ifdef WIN32
|
57 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
|
58 |
+
+#define IS_UWP 1
|
59 |
+
+#endif /* #if defined(WINAPI_FAMILY) */
|
60 |
+
+
|
61 |
+
+#if defined(WIN32) && !defined(IS_UWP)
|
62 |
+
/* Code to talk to OpenSSH was taken and modified from the Win32 port of
|
63 |
+
* Portable OpenSSH by the PowerShell team. Commit
|
64 |
+
* 8ab565c53f3619d6a1f5ac229e212cad8a52852c of
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/0002-fix-macros.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 2539607..eceb5a0 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -355,9 +355,12 @@ target_include_directories(libssh2 PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
|
6 |
+
# Daniel's note: this should not be necessary and we need to work to
|
7 |
+
# get this removed.
|
8 |
+
if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows" OR ${CMAKE_SYSTEM_NAME} STREQUAL "WindowsStore")
|
9 |
+
- target_compile_definitions(libssh2 PRIVATE LIBSSH2_WIN32)
|
10 |
+
+ target_compile_definitions(libssh2 PUBLIC LIBSSH2_WIN32)
|
11 |
+
+ if (BUILD_SHARED_LIBS)
|
12 |
+
+ target_compile_definitions(libssh2 PUBLIC _WINDLL PRIVATE LIBSSH2_LIBRARY)
|
13 |
+
+ endif()
|
14 |
+
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
15 |
+
- target_compile_definitions(libssh2 PRIVATE LIBSSH2_DARWIN)
|
16 |
+
+ target_compile_definitions(libssh2 PUBLIC LIBSSH2_DARWIN)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
if(MSVC)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/0003-fix-openssl3.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/max_warnings.cmake b/cmake/max_warnings.cmake
|
2 |
+
index b176d30..e986461 100644
|
3 |
+
--- a/cmake/max_warnings.cmake
|
4 |
+
+++ b/cmake/max_warnings.cmake
|
5 |
+
@@ -13,6 +13,8 @@ if(MSVC)
|
6 |
+
|
7 |
+
# Disable broken warnings
|
8 |
+
add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)
|
9 |
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4996")
|
10 |
+
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996")
|
11 |
+
elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
12 |
+
if(NOT CMAKE_CXX_FLAGS MATCHES "-Wall")
|
13 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/portfile.cmake
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libssh2/libssh2
|
4 |
+
REF libssh2-1.10.0
|
5 |
+
SHA512 615E28880695911F5700CC7AC3DDA6B894384C0B1D8B02B53C2EB58F1839F47211934A292F490AD7DDEF7E63F332E0EBF44F8E6334F64BE8D143C72032356C1F
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
0001-Fix-UWP.patch
|
9 |
+
0002-fix-macros.patch
|
10 |
+
0003-fix-openssl3.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
zlib ENABLE_ZLIB_COMPRESSION
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS
|
21 |
+
-DBUILD_EXAMPLES=OFF
|
22 |
+
-DBUILD_TESTING=OFF
|
23 |
+
${FEATURE_OPTIONS}
|
24 |
+
OPTIONS_DEBUG
|
25 |
+
-DENABLE_DEBUG_LOGGING=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libssh2)
|
32 |
+
|
33 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
34 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libssh2.h" "ifdef LIBSSH2_WIN32" "if 1")
|
35 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
36 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libssh2.h" "ifdef _WINDLL" "if 1")
|
37 |
+
else()
|
38 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/libssh2.h" "ifdef _WINDLL" "if 0")
|
39 |
+
endif()
|
40 |
+
endif()
|
41 |
+
|
42 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
44 |
+
# Do not delete the entire share directory as it contains the *-config.cmake files
|
45 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
46 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")
|
47 |
+
|
48 |
+
vcpkg_fixup_pkgconfig()
|
49 |
+
|
50 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libssh2/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libssh2",
|
3 |
+
"version": "1.10.0",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "libssh2 is a client-side C library implementing the SSH2 protocol.",
|
6 |
+
"homepage": "https://www.libssh2.org",
|
7 |
+
"license": "BSD-3-Clause",
|
8 |
+
"dependencies": [
|
9 |
+
"openssl",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"default-features": [
|
20 |
+
"zlib"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"zlib": {
|
24 |
+
"description": "Use compressing via zlib",
|
25 |
+
"dependencies": [
|
26 |
+
"zlib"
|
27 |
+
]
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/CMakeLists.txt
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
|
3 |
+
project(libstemmer)
|
4 |
+
|
5 |
+
file(GLOB SNOWBALL_SOURCES
|
6 |
+
src_c/*.c
|
7 |
+
runtime/api.c
|
8 |
+
runtime/utilities.c
|
9 |
+
libstemmer/libstemmer.c
|
10 |
+
)
|
11 |
+
|
12 |
+
add_library(stemmer ${SNOWBALL_SOURCES})
|
13 |
+
|
14 |
+
install(
|
15 |
+
TARGETS stemmer
|
16 |
+
RUNTIME DESTINATION bin
|
17 |
+
LIBRARY DESTINATION lib
|
18 |
+
ARCHIVE DESTINATION lib
|
19 |
+
)
|
20 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
21 |
+
install(FILES include/libstemmer.h DESTINATION include)
|
22 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Snowball - License
|
2 |
+
Except where explicitly noted, all the software given out on this Snowball site is covered by the 3-clause BSD License:
|
3 |
+
|
4 |
+
Copyright (c) 2001, Dr Martin Porter,
|
5 |
+
Copyright (c) 2002, Richard Boulton.
|
6 |
+
All rights reserved.
|
7 |
+
|
8 |
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
9 |
+
|
10 |
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
11 |
+
|
12 |
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
13 |
+
|
14 |
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
15 |
+
|
16 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
17 |
+
Essentially, all this means is that you can do what you like with the code, except claim another Copyright for it, or claim that it is issued under a different license. The software is also issued without warranties, which means that if anyone suffers through its use, they cannot come back and sue you. You also have to alert anyone to whom you give the Snowball software to the fact that it is covered by the BSD license.
|
18 |
+
|
19 |
+
We have not bothered to insert the licensing arrangement into the text of the Snowball software.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "http://snowball.tartarus.org/dist/libstemmer_c.tgz"
|
5 |
+
FILENAME "libstemmer_c.tgz"
|
6 |
+
SHA512 9ab5b8bfd5b4071dbbd63d769e09fae3971b49ee441ad970aa95d90b3297f5ffc9deed1613d99974d1485bf3b69292663591957f52bbeddcadbf9d9a4af432f2
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
15 |
+
|
16 |
+
vcpkg_configure_cmake(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
PREFER_NINJA
|
19 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libstemmer RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstemmer/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libstemmer",
|
3 |
+
"version-string": "2017-9",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval",
|
6 |
+
"homepage": "https://snowball.tartarus.org/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstk/CMakeLists.txt
ADDED
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(libstk)
|
3 |
+
|
4 |
+
set(LIBSTK_SOURCES
|
5 |
+
src/ADSR.cpp
|
6 |
+
src/Asymp.cpp
|
7 |
+
src/BandedWG.cpp
|
8 |
+
src/BeeThree.cpp
|
9 |
+
src/BiQuad.cpp
|
10 |
+
src/Blit.cpp
|
11 |
+
src/BlitSaw.cpp
|
12 |
+
src/BlitSquare.cpp
|
13 |
+
src/BlowBotl.cpp
|
14 |
+
src/BlowHole.cpp
|
15 |
+
src/Bowed.cpp
|
16 |
+
src/Brass.cpp
|
17 |
+
src/Chorus.cpp
|
18 |
+
src/Clarinet.cpp
|
19 |
+
src/Delay.cpp
|
20 |
+
src/DelayA.cpp
|
21 |
+
src/DelayL.cpp
|
22 |
+
src/Drummer.cpp
|
23 |
+
src/Echo.cpp
|
24 |
+
src/Envelope.cpp
|
25 |
+
src/FileLoop.cpp
|
26 |
+
src/FileRead.cpp
|
27 |
+
src/FileWrite.cpp
|
28 |
+
src/FileWvIn.cpp
|
29 |
+
src/FileWvOut.cpp
|
30 |
+
src/Fir.cpp
|
31 |
+
src/Flute.cpp
|
32 |
+
src/FM.cpp
|
33 |
+
src/FMVoices.cpp
|
34 |
+
src/FormSwep.cpp
|
35 |
+
src/FreeVerb.cpp
|
36 |
+
src/Granulate.cpp
|
37 |
+
src/Guitar.cpp
|
38 |
+
src/HevyMetl.cpp
|
39 |
+
src/Iir.cpp
|
40 |
+
src/JCRev.cpp
|
41 |
+
src/LentPitShift.cpp
|
42 |
+
src/Makefile.in
|
43 |
+
src/Mandolin.cpp
|
44 |
+
src/Mesh2D.cpp
|
45 |
+
src/Messager.cpp
|
46 |
+
src/MidiFileIn.cpp
|
47 |
+
src/Modal.cpp
|
48 |
+
src/ModalBar.cpp
|
49 |
+
src/Modulate.cpp
|
50 |
+
src/Moog.cpp
|
51 |
+
src/Noise.cpp
|
52 |
+
src/NRev.cpp
|
53 |
+
src/OnePole.cpp
|
54 |
+
src/OneZero.cpp
|
55 |
+
src/PercFlut.cpp
|
56 |
+
src/Phonemes.cpp
|
57 |
+
src/PitShift.cpp
|
58 |
+
src/Plucked.cpp
|
59 |
+
src/PoleZero.cpp
|
60 |
+
src/PRCRev.cpp
|
61 |
+
src/Resonate.cpp
|
62 |
+
src/Rhodey.cpp
|
63 |
+
src/Sampler.cpp
|
64 |
+
src/Saxofony.cpp
|
65 |
+
src/Shakers.cpp
|
66 |
+
src/Simple.cpp
|
67 |
+
src/SineWave.cpp
|
68 |
+
src/SingWave.cpp
|
69 |
+
src/Sitar.cpp
|
70 |
+
src/Skini.cpp
|
71 |
+
src/Sphere.cpp
|
72 |
+
src/StifKarp.cpp
|
73 |
+
src/Stk.cpp
|
74 |
+
src/TapDelay.cpp
|
75 |
+
src/TubeBell.cpp
|
76 |
+
src/Twang.cpp
|
77 |
+
src/TwoPole.cpp
|
78 |
+
src/TwoZero.cpp
|
79 |
+
src/Voicer.cpp
|
80 |
+
src/VoicForm.cpp
|
81 |
+
src/Whistle.cpp
|
82 |
+
src/Wurley.cpp)
|
83 |
+
|
84 |
+
set(LIBSTK_REALTIME_SOURCES
|
85 |
+
src/InetWvIn.cpp
|
86 |
+
src/InetWvOut.cpp
|
87 |
+
src/Mutex.cpp
|
88 |
+
src/RtAudio.cpp
|
89 |
+
src/RtMidi.cpp
|
90 |
+
src/RtWvIn.cpp
|
91 |
+
src/RtWvOut.cpp
|
92 |
+
src/Socket.cpp
|
93 |
+
src/TcpClient.cpp
|
94 |
+
src/TcpServer.cpp
|
95 |
+
src/Thread.cpp
|
96 |
+
src/UdpSocket.cpp
|
97 |
+
)
|
98 |
+
|
99 |
+
set(LIBSTK_HEADERS
|
100 |
+
include/ADSR.h
|
101 |
+
include/Asymp.h
|
102 |
+
include/BandedWG.h
|
103 |
+
include/BeeThree.h
|
104 |
+
include/BiQuad.h
|
105 |
+
include/Blit.h
|
106 |
+
include/BlitSaw.h
|
107 |
+
include/BlitSquare.h
|
108 |
+
include/BlowBotl.h
|
109 |
+
include/BlowHole.h
|
110 |
+
include/Bowed.h
|
111 |
+
include/BowTable.h
|
112 |
+
include/Brass.h
|
113 |
+
include/Chorus.h
|
114 |
+
include/Clarinet.h
|
115 |
+
include/Cubic.h
|
116 |
+
include/Delay.h
|
117 |
+
include/DelayA.h
|
118 |
+
include/DelayL.h
|
119 |
+
include/Drummer.h
|
120 |
+
include/Echo.h
|
121 |
+
include/Effect.h
|
122 |
+
include/Envelope.h
|
123 |
+
include/FileLoop.h
|
124 |
+
include/FileRead.h
|
125 |
+
include/FileWrite.h
|
126 |
+
include/FileWvIn.h
|
127 |
+
include/FileWvOut.h
|
128 |
+
include/Filter.h
|
129 |
+
include/Fir.h
|
130 |
+
include/Flute.h
|
131 |
+
include/FM.h
|
132 |
+
include/FMVoices.h
|
133 |
+
include/FormSwep.h
|
134 |
+
include/FreeVerb.h
|
135 |
+
include/Function.h
|
136 |
+
include/Generator.h
|
137 |
+
include/Granulate.h
|
138 |
+
include/Guitar.h
|
139 |
+
include/HevyMetl.h
|
140 |
+
include/Iir.h
|
141 |
+
include/InetWvIn.h
|
142 |
+
include/InetWvOut.h
|
143 |
+
include/Instrmnt.h
|
144 |
+
include/JCRev.h
|
145 |
+
include/JetTable.h
|
146 |
+
include/LentPitShift.h
|
147 |
+
include/Mandolin.h
|
148 |
+
include/Mesh2D.h
|
149 |
+
include/Messager.h
|
150 |
+
include/MidiFileIn.h
|
151 |
+
include/Modal.h
|
152 |
+
include/ModalBar.h
|
153 |
+
include/Modulate.h
|
154 |
+
include/Moog.h
|
155 |
+
include/Mutex.h
|
156 |
+
include/Noise.h
|
157 |
+
include/NRev.h
|
158 |
+
include/OnePole.h
|
159 |
+
include/OneZero.h
|
160 |
+
include/PercFlut.h
|
161 |
+
include/Phonemes.h
|
162 |
+
include/PitShift.h
|
163 |
+
include/Plucked.h
|
164 |
+
include/PoleZero.h
|
165 |
+
include/PRCRev.h
|
166 |
+
include/ReedTable.h
|
167 |
+
include/Resonate.h
|
168 |
+
include/Rhodey.h
|
169 |
+
include/RtAudio.h
|
170 |
+
include/RtMidi.h
|
171 |
+
include/RtWvIn.h
|
172 |
+
include/RtWvOut.h
|
173 |
+
include/Sampler.h
|
174 |
+
include/Saxofony.h
|
175 |
+
include/Shakers.h
|
176 |
+
include/Simple.h
|
177 |
+
include/SineWave.h
|
178 |
+
include/SingWave.h
|
179 |
+
include/Sitar.h
|
180 |
+
include/Skini.h
|
181 |
+
include/SKINImsg.h
|
182 |
+
include/SKINItbl.h
|
183 |
+
include/Socket.h
|
184 |
+
include/Sphere.h
|
185 |
+
include/StifKarp.h
|
186 |
+
include/Stk.h
|
187 |
+
include/TapDelay.h
|
188 |
+
include/TcpClient.h
|
189 |
+
include/TcpServer.h
|
190 |
+
include/Thread.h
|
191 |
+
include/TubeBell.h
|
192 |
+
include/Twang.h
|
193 |
+
include/TwoPole.h
|
194 |
+
include/TwoZero.h
|
195 |
+
include/UdpSocket.h
|
196 |
+
include/Vector3D.h
|
197 |
+
include/Voicer.h
|
198 |
+
include/VoicForm.h
|
199 |
+
include/Whistle.h
|
200 |
+
include/Wurley.h
|
201 |
+
include/WvIn.h
|
202 |
+
include/WvOut.h
|
203 |
+
)
|
204 |
+
|
205 |
+
add_library(libstk ${LIBSTK_SOURCES})
|
206 |
+
target_include_directories(libstk PRIVATE include PUBLIC $<INSTALL_INTERFACE:include>)
|
207 |
+
set_target_properties(libstk PROPERTIES PUBLIC_HEADER "${LIBSTK_HEADERS}")
|
208 |
+
target_compile_definitions(libstk PRIVATE __LITTLE_ENDIAN__)
|
209 |
+
|
210 |
+
install(TARGETS libstk EXPORT unofficial-libstk-config
|
211 |
+
LIBRARY DESTINATION lib
|
212 |
+
ARCHIVE DESTINATION lib
|
213 |
+
RUNTIME DESTINATION bin
|
214 |
+
PUBLIC_HEADER DESTINATION include/stk)
|
215 |
+
install(EXPORT unofficial-libstk-config NAMESPACE unofficial::libstk:: DESTINATION share/unofficial-libstk)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstk/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO thestk/stk
|
6 |
+
REF 4.6.1
|
7 |
+
SHA512 61d4db7b4a45446e231dedc13e139cb488e2ce805278f0b20aa95e69ddb1fa9be549ab5f1fe24c69aa865ebc2940d5fba6e3819a1a7fb1d68e236131fcfb4cac
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
|
13 |
+
vcpkg_configure_cmake(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
PREFER_NINJA
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
|
20 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-libstk TARGET_PATH share/unofficial-libstk)
|
21 |
+
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
25 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
26 |
+
|
27 |
+
# Handle copyright
|
28 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libstk RENAME copyright)
|
29 |
+
|
30 |
+
file(GLOB RAWFILES ${SOURCE_PATH}/rawwaves/*.raw)
|
31 |
+
file(COPY ${RAWFILES} DESTINATION ${CURRENT_PACKAGES_DIR}/share/libstk/rawwaves)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libstk/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libstk",
|
3 |
+
"version-string": "4.6.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "The Synthesis ToolKit in C++ (STK) is a set of open source audio signal processing and algorithmic synthesis classes written in the C++ programming language."
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsvm/CMakeLists.txt
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
project(libsvm LANGUAGES C CXX)
|
4 |
+
|
5 |
+
include(GNUInstallDirs)
|
6 |
+
|
7 |
+
option(SVM_BUILD_TOOLS "Build SVM tools" OFF)
|
8 |
+
|
9 |
+
set(libsvm_sources svm.cpp)
|
10 |
+
if (WIN32)
|
11 |
+
list(APPEND libsvm_sources svm.def)
|
12 |
+
endif ()
|
13 |
+
|
14 |
+
add_library(libsvm ${libsvm_sources})
|
15 |
+
|
16 |
+
target_compile_definitions(
|
17 |
+
libsvm
|
18 |
+
PRIVATE
|
19 |
+
$<$<C_COMPILER_ID:MSVC>:
|
20 |
+
_CRT_SECURE_NO_WARNINGS
|
21 |
+
strdup=_strdup
|
22 |
+
>
|
23 |
+
)
|
24 |
+
|
25 |
+
target_include_directories(
|
26 |
+
libsvm
|
27 |
+
PUBLIC
|
28 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
29 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
30 |
+
)
|
31 |
+
|
32 |
+
set_target_properties(libsvm PROPERTIES PUBLIC_HEADER svm.h)
|
33 |
+
|
34 |
+
install(TARGETS libsvm EXPORT unofficial-libsvm-config)
|
35 |
+
|
36 |
+
install(
|
37 |
+
EXPORT unofficial-libsvm-config
|
38 |
+
NAMESPACE unofficial::libsvm::
|
39 |
+
DESTINATION share/unofficial-libsvm
|
40 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
41 |
+
)
|
42 |
+
|
43 |
+
if (SVM_BUILD_TOOLS)
|
44 |
+
add_executable(svm-predict svm-predict.c)
|
45 |
+
target_link_libraries(svm-predict PRIVATE libsvm)
|
46 |
+
|
47 |
+
add_executable(svm-scale svm-scale.c)
|
48 |
+
target_link_libraries(svm-scale PRIVATE libsvm)
|
49 |
+
|
50 |
+
add_executable(svm-train svm-train.c)
|
51 |
+
target_link_libraries(svm-train PRIVATE libsvm)
|
52 |
+
|
53 |
+
install(TARGETS svm-predict svm-scale svm-train)
|
54 |
+
|
55 |
+
if (WIN32)
|
56 |
+
add_executable(svm-toy svm-toy/windows/svm-toy.cpp)
|
57 |
+
target_link_libraries(svm-toy PRIVATE libsvm)
|
58 |
+
set_target_properties(svm-toy PROPERTIES WIN32_EXECUTABLE ON)
|
59 |
+
|
60 |
+
install(TARGETS svm-toy)
|
61 |
+
endif ()
|
62 |
+
endif ()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsvm/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO cjlin1/libsvm
|
4 |
+
REF v325
|
5 |
+
SHA512 D5323B128DFCDC7F64B2161E70FA7999C0A93D47C90B366BE066AA01EA92B5817F04812DEF2E05469DEE1F26C6A83DA5E50EEAE3F50B4062D9B24AC0944C6203
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
tools SVM_BUILD_TOOLS
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
OPTIONS_DEBUG
|
20 |
+
-DSVM_BUILD_TOOLS=OFF
|
21 |
+
OPTIONS_RELEASE
|
22 |
+
${FEATURE_OPTIONS}
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
28 |
+
|
29 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-${PORT}" CONFIG_PATH "share/unofficial-${PORT}")
|
30 |
+
|
31 |
+
if("tools" IN_LIST FEATURES)
|
32 |
+
if(WIN32)
|
33 |
+
vcpkg_copy_tools(TOOL_NAMES svm-predict svm-scale svm-toy svm-train AUTO_CLEAN)
|
34 |
+
else()
|
35 |
+
vcpkg_copy_tools(TOOL_NAMES svm-predict svm-scale svm-train AUTO_CLEAN)
|
36 |
+
endif()
|
37 |
+
endif()
|
38 |
+
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
40 |
+
|
41 |
+
file(INSTALL "${SOURCE_PATH}/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libsvm/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsvm",
|
3 |
+
"version": "3.25",
|
4 |
+
"description": "A library for Support Vector Machines.",
|
5 |
+
"homepage": "https://www.csie.ntu.edu.tw/~cjlin/libsvm/",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"tools": {
|
18 |
+
"description": "build libsvm CLI tools."
|
19 |
+
}
|
20 |
+
}
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtasn1/msvc_fixes.patch
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/asn1Coding.c b/src/asn1Coding.c
|
2 |
+
index 86c1d07..6fcfc4d 100644
|
3 |
+
--- a/src/asn1Coding.c
|
4 |
+
+++ b/src/asn1Coding.c
|
5 |
+
@@ -23,7 +23,12 @@
|
6 |
+
#include <stdio.h>
|
7 |
+
#include <string.h>
|
8 |
+
#include <stdlib.h>
|
9 |
+
+#ifdef HAVE_UNISTD_H
|
10 |
+
#include <unistd.h>
|
11 |
+
+#endif
|
12 |
+
+#ifdef _MSC_VER
|
13 |
+
+#include <io.h>
|
14 |
+
+#endif
|
15 |
+
#include <getopt.h>
|
16 |
+
#include <assert.h>
|
17 |
+
|
18 |
+
diff --git a/src/asn1Decoding.c b/src/asn1Decoding.c
|
19 |
+
index c6f192e..3e4e21d 100644
|
20 |
+
--- a/src/asn1Decoding.c
|
21 |
+
+++ b/src/asn1Decoding.c
|
22 |
+
@@ -23,7 +23,12 @@
|
23 |
+
#include <stdio.h>
|
24 |
+
#include <string.h>
|
25 |
+
#include <stdlib.h>
|
26 |
+
+#ifdef HAVE_UNISTD_H
|
27 |
+
#include <unistd.h>
|
28 |
+
+#endif
|
29 |
+
+#ifdef _MSC_VER
|
30 |
+
+#include <io.h>
|
31 |
+
+#endif
|
32 |
+
#include <getopt.h>
|
33 |
+
#include <sys/types.h>
|
34 |
+
#include <sys/stat.h>
|
35 |
+
diff --git a/src/asn1Parser.c b/src/asn1Parser.c
|
36 |
+
index b6844a8..445c716 100644
|
37 |
+
--- a/src/asn1Parser.c
|
38 |
+
+++ b/src/asn1Parser.c
|
39 |
+
@@ -23,7 +23,12 @@
|
40 |
+
#include <stdio.h>
|
41 |
+
#include <string.h>
|
42 |
+
#include <stdlib.h>
|
43 |
+
+#ifdef HAVE_UNISTD_H
|
44 |
+
#include <unistd.h>
|
45 |
+
+#endif
|
46 |
+
+#ifdef _MSC_VER
|
47 |
+
+#include <io.h>
|
48 |
+
+#endif
|
49 |
+
#include <getopt.h>
|
50 |
+
#include <assert.h>
|
51 |
+
|
52 |
+
diff --git a/src/benchmark.c b/src/benchmark.c
|
53 |
+
index 010d58e..6c613df 100644
|
54 |
+
--- a/src/benchmark.c
|
55 |
+
+++ b/src/benchmark.c
|
56 |
+
@@ -21,9 +21,16 @@
|
57 |
+
#include <stdio.h>
|
58 |
+
#include <string.h>
|
59 |
+
#include <signal.h>
|
60 |
+
+#ifndef _MSC_VER
|
61 |
+
#include <sys/time.h>
|
62 |
+
+#endif
|
63 |
+
#include <time.h>
|
64 |
+
+#ifdef HAVE_UNISTD_H
|
65 |
+
#include <unistd.h>
|
66 |
+
+#endif
|
67 |
+
+#ifdef _MSC_VER
|
68 |
+
+#include <io.h>
|
69 |
+
+#endif
|
70 |
+
#include "benchmark.h"
|
71 |
+
|
72 |
+
int benchmark_must_finish = 0;
|
73 |
+
diff --git a/src/benchmark.h b/src/benchmark.h
|
74 |
+
index 3272649..6b6bf32 100644
|
75 |
+
--- a/src/benchmark.h
|
76 |
+
+++ b/src/benchmark.h
|
77 |
+
@@ -21,7 +21,9 @@
|
78 |
+
# define BENCHMARK_H
|
79 |
+
|
80 |
+
#include <config.h>
|
81 |
+
+#ifndef _MSC_VER
|
82 |
+
#include <sys/time.h>
|
83 |
+
+#endif
|
84 |
+
#include <time.h>
|
85 |
+
#include <signal.h>
|
86 |
+
#if defined _WIN32
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtasn1/portfile.cmake
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VERSION 4.17.0)
|
2 |
+
|
3 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
4 |
+
set(PATCHES msvc_fixes.patch)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_download_distfile(ARCHIVE
|
8 |
+
URLS "https://ftp.gnu.org/gnu/libtasn1/libtasn1-${VERSION}.tar.gz"
|
9 |
+
FILENAME "libtasn1-${VERSION}.tar.gz"
|
10 |
+
SHA512 9cbd920196d1e4c8f5aa613259cded2510d40edb583ce20cc2702e2dee9bf32bee85a159c74600ffbebc2af2787e28ed0fe0adf15fc46839283747f4fe166d3d
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_extract_source_archive_ex(
|
14 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
15 |
+
ARCHIVE ${ARCHIVE}
|
16 |
+
REF ${VERSION}
|
17 |
+
PATCHES
|
18 |
+
${PATCHES}
|
19 |
+
)
|
20 |
+
|
21 |
+
set(EXTRA_OPTS "")
|
22 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
23 |
+
# $LIBS is an environment variable that vcpkg already pre-populated with some libraries.
|
24 |
+
# We need to re-purpose it when passing LIBS option to make to avoid overriding the vcpkg's own list.
|
25 |
+
list(APPEND EXTRA_OPTS "LIBS=-lgettimeofday -lgetopt \$LIBS")
|
26 |
+
else()
|
27 |
+
# restore the default ac_cv_prog_cc_g flags, otherwise it fails to compile
|
28 |
+
set(VCPKG_C_FLAGS "-g -O2")
|
29 |
+
set(VCPKG_CXX_FLAGS "-g -O2")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
# The upstream doesn't add this macro to the configure
|
33 |
+
if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
34 |
+
list(APPEND EXTRA_OPTS "CFLAGS=\$CFLAGS -DASN1_STATIC")
|
35 |
+
endif()
|
36 |
+
|
37 |
+
set(ENV{GTKDOCIZE} true)
|
38 |
+
vcpkg_configure_make(
|
39 |
+
AUTOCONFIG
|
40 |
+
SOURCE_PATH ${SOURCE_PATH}
|
41 |
+
OPTIONS
|
42 |
+
--disable-doc
|
43 |
+
--disable-gtk-doc
|
44 |
+
--disable-gcc-warnings
|
45 |
+
${EXTRA_OPTS}
|
46 |
+
)
|
47 |
+
|
48 |
+
vcpkg_install_make()
|
49 |
+
vcpkg_fixup_pkgconfig()
|
50 |
+
|
51 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools" "${CURRENT_PACKAGES_DIR}/debug/share")
|
52 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtasn1/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtasn1",
|
3 |
+
"version": "4.17.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A secure communications library implementing the SSL, TLS and DTLS protocols",
|
6 |
+
"homepage": "https://www.gnutls.org/",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "getopt",
|
11 |
+
"platform": "windows & !mingw"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "gettimeofday",
|
15 |
+
"platform": "windows & !mingw"
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtcod/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libtcod/libtcod
|
4 |
+
REF 1.20.1
|
5 |
+
SHA512 bef3751dd1b190769163ff7c188479fe100d425fa98d3f0f97a3a81045fe0f0c24690b64bcde29f7af1eb7fd34915371223146598b1f0cab173e69a78c1dfc76
|
6 |
+
HEAD_REF develop
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
OPTIONS
|
12 |
+
${FEATURE_OPTIONS}
|
13 |
+
-DCMAKE_INSTALL_INCLUDEDIR=${CURRENT_PACKAGES_DIR}/include
|
14 |
+
-DLIBTCOD_SDL2=find_package
|
15 |
+
-DLIBTCOD_ZLIB=find_package
|
16 |
+
-DLIBTCOD_GLAD=find_package
|
17 |
+
-DLIBTCOD_LODEPNG=find_package
|
18 |
+
-DLIBTCOD_UTF8PROC=vcpkg
|
19 |
+
-DLIBTCOD_STB=vcpkg
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
vcpkg_cmake_config_fixup()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtcod/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtcod",
|
3 |
+
"version": "1.20.1",
|
4 |
+
"maintainers": "Kyle Benesch <[email protected]>",
|
5 |
+
"description": "Common algorithms and tools for roguelikes.",
|
6 |
+
"homepage": "https://github.com/libtcod/libtcod",
|
7 |
+
"documentation": "https://libtcod.readthedocs.io/en/latest/",
|
8 |
+
"dependencies": [
|
9 |
+
"glad",
|
10 |
+
"lodepng-c",
|
11 |
+
"sdl2",
|
12 |
+
"stb",
|
13 |
+
"utf8proc",
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake-config",
|
20 |
+
"host": true
|
21 |
+
},
|
22 |
+
"zlib"
|
23 |
+
]
|
24 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/CMakeLists.txt
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.21)
|
2 |
+
|
3 |
+
project(libtess2)
|
4 |
+
|
5 |
+
# Tesselator
|
6 |
+
add_library(libtess2 STATIC)
|
7 |
+
|
8 |
+
target_sources(libtess2 PRIVATE
|
9 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/Source/bucketalloc.c"
|
10 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/Source/dict.c"
|
11 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/Source/geom.c"
|
12 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/Source/mesh.c"
|
13 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/Source/priorityq.c"
|
14 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/Source/sweep.c"
|
15 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/Source/tess.c")
|
16 |
+
|
17 |
+
target_include_directories(libtess2 PUBLIC
|
18 |
+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Include>"
|
19 |
+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/Source>"
|
20 |
+
)
|
21 |
+
set_target_properties(libtess2 PROPERTIES LINKER_LANGUAGE CXX)
|
22 |
+
|
23 |
+
install(TARGETS libtess2 EXPORT unofficial-libtess2-config)
|
24 |
+
|
25 |
+
install(
|
26 |
+
FILES "${CMAKE_CURRENT_SOURCE_DIR}/Include/tesselator.h"
|
27 |
+
TYPE INCLUDE
|
28 |
+
)
|
29 |
+
|
30 |
+
install(
|
31 |
+
EXPORT unofficial-libtess2-config
|
32 |
+
NAMESPACE unofficial::libtess2::
|
33 |
+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/unofficial-libtess2"
|
34 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
35 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO memononen/libtess2
|
6 |
+
REF fc52516467dfa124bdd967c15c7cf9faf02a34ca
|
7 |
+
SHA512 2b3efb8934d1da8c1b3f0a79139275e89d9187e1e881c699f8623993165eae04068ce5927fe2a5e21e1298b79ffc57eb3e9bbc4bc07872d757a91189bc5f1cce
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup(
|
21 |
+
PACKAGE_NAME "unofficial-${PORT}"
|
22 |
+
CONFIG_PATH "lib/cmake/unofficial-${PORT}"
|
23 |
+
)
|
24 |
+
|
25 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
26 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libtess2 provides CMake targets:
|
2 |
+
|
3 |
+
find_package(unofficial-libtess2 CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PUBLIC unofficial::libtess2::libtess2)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtess2/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtess2",
|
3 |
+
"version-date": "2021-12-27",
|
4 |
+
"description": "Game and tools oriented refactored version of GLU tesselator.",
|
5 |
+
"homepage": "https://github.com/memononen/libtess2",
|
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/libtheora/0001-fix-uwp.patch
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 47eb8d07a8caaa6cc1e6e906a7cd5b44ee0fb624 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Mikhail Paulyshka <[email protected]>
|
3 |
+
Date: Thu, 27 Jul 2017 04:24:36 +0300
|
4 |
+
Subject: [PATCH] remove redundant assignments
|
5 |
+
|
6 |
+
---
|
7 |
+
lib/tokenize.c | 16 ++++++++--------
|
8 |
+
1 file changed, 8 insertions(+), 8 deletions(-)
|
9 |
+
|
10 |
+
diff --git a/lib/tokenize.c b/lib/tokenize.c
|
11 |
+
index 57b7aa8..3f53fb5 100644
|
12 |
+
--- a/lib/tokenize.c
|
13 |
+
+++ b/lib/tokenize.c
|
14 |
+
@@ -487,11 +487,11 @@ int oc_enc_tokenize_ac(oc_enc_ctx *_enc,int _pli,ptrdiff_t _fragi,
|
15 |
+
zzj=64;
|
16 |
+
for(zzi=OC_MINI(_zzi,63);zzi>0;zzi--){
|
17 |
+
ogg_uint32_t best_cost;
|
18 |
+
- int best_bits=best_bits;
|
19 |
+
- int best_next=best_next;
|
20 |
+
- int best_token=best_token;
|
21 |
+
- int best_eb=best_eb;
|
22 |
+
- int best_qc=best_qc;
|
23 |
+
+ int best_bits;
|
24 |
+
+ int best_next;
|
25 |
+
+ int best_token;
|
26 |
+
+ int best_eb;
|
27 |
+
+ int best_qc;
|
28 |
+
ogg_uint32_t d2;
|
29 |
+
int dq;
|
30 |
+
int qc_m;
|
31 |
+
@@ -1091,8 +1091,8 @@ void oc_enc_tokenize_dc_frag_list(oc_enc_ctx *_enc,int _pli,
|
32 |
+
int neobs1;
|
33 |
+
int token;
|
34 |
+
int eb;
|
35 |
+
- int token1=token1;
|
36 |
+
- int eb1=eb1;
|
37 |
+
+ int token1;
|
38 |
+
+ int eb1;
|
39 |
+
/*Return immediately if there are no coded fragments; otherwise we'd flush
|
40 |
+
any trailing EOB run into the AC 1 list and never read it back out.*/
|
41 |
+
if(_ncoded_fragis<=0)return;
|
42 |
+
@@ -1328,7 +1328,7 @@ void oc_enc_tokenize_finish(oc_enc_ctx *_enc){
|
43 |
+
int new_eb;
|
44 |
+
int zzj;
|
45 |
+
int plj;
|
46 |
+
- ptrdiff_t ti=ti;
|
47 |
+
+ ptrdiff_t ti;
|
48 |
+
int run_count;
|
49 |
+
/*Make sure this coefficient has tokens at all.*/
|
50 |
+
if(_enc->ndct_tokens[pli][zzi]<=0)continue;
|
51 |
+
--
|
52 |
+
2.12.2.windows.2
|
53 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/CMakeLists.txt
ADDED
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(theora LANGUAGES C)
|
3 |
+
|
4 |
+
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}")
|
5 |
+
FIND_PACKAGE(Ogg REQUIRED)
|
6 |
+
|
7 |
+
file(GLOB HEADERS
|
8 |
+
"include/theora/codec.h"
|
9 |
+
"include/theora/theora.h"
|
10 |
+
"include/theora/theoradec.h"
|
11 |
+
"include/theora/theoraenc.h"
|
12 |
+
)
|
13 |
+
|
14 |
+
set(LIBTHEORA_COMMON
|
15 |
+
"lib/apiwrapper.c"
|
16 |
+
"lib/bitpack.c"
|
17 |
+
"lib/dequant.c"
|
18 |
+
"lib/fragment.c"
|
19 |
+
"lib/idct.c"
|
20 |
+
"lib/info.c"
|
21 |
+
"lib/internal.c"
|
22 |
+
"lib/state.c"
|
23 |
+
"lib/quant.c"
|
24 |
+
|
25 |
+
"lib/x86_vc/mmxfrag.c"
|
26 |
+
"lib/x86_vc/mmxidct.c"
|
27 |
+
"lib/x86_vc/mmxstate.c"
|
28 |
+
"lib/x86_vc/x86cpu.c"
|
29 |
+
"lib/x86_vc/x86state.c"
|
30 |
+
)
|
31 |
+
|
32 |
+
set(LIBTHEORA_ENC
|
33 |
+
"lib/analyze.c"
|
34 |
+
"lib/encapiwrapper.c"
|
35 |
+
"lib/encfrag.c"
|
36 |
+
"lib/encinfo.c"
|
37 |
+
"lib/encode.c"
|
38 |
+
"lib/enquant.c"
|
39 |
+
"lib/fdct.c"
|
40 |
+
"lib/huffenc.c"
|
41 |
+
"lib/mathops.c"
|
42 |
+
"lib/mcenc.c"
|
43 |
+
"lib/rate.c"
|
44 |
+
"lib/tokenize.c"
|
45 |
+
|
46 |
+
"lib/x86_vc/mmxencfrag.c"
|
47 |
+
"lib/x86_vc/mmxfdct.c"
|
48 |
+
"lib/x86_vc/x86enc.c"
|
49 |
+
)
|
50 |
+
|
51 |
+
set(LIBTHEORA_DEC
|
52 |
+
"lib/decapiwrapper.c"
|
53 |
+
"lib/decinfo.c"
|
54 |
+
"lib/decode.c"
|
55 |
+
"lib/huffdec.c"
|
56 |
+
)
|
57 |
+
|
58 |
+
add_definitions(-D_CRT_SECURE_NO_DEPRECATE)
|
59 |
+
add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE)
|
60 |
+
|
61 |
+
option(USE_X86 "Use x86 optimization" OFF)
|
62 |
+
if(USE_X86)
|
63 |
+
add_definitions(-DOC_X86_ASM)
|
64 |
+
endif()
|
65 |
+
|
66 |
+
if (BUILD_SHARED_LIBS)
|
67 |
+
add_definitions(-DLIBTHEORA_EXPORTS)
|
68 |
+
endif()
|
69 |
+
|
70 |
+
add_library(theora-common OBJECT ${LIBTHEORA_COMMON} ${HEADERS})
|
71 |
+
target_link_libraries(theora-common PUBLIC Ogg::ogg)
|
72 |
+
target_include_directories(theora-common PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
73 |
+
add_library(theora-enc OBJECT ${LIBTHEORA_ENC} ${HEADERS})
|
74 |
+
target_link_libraries(theora-enc PUBLIC Ogg::ogg)
|
75 |
+
target_include_directories(theora-enc PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
76 |
+
add_library(theora-dec OBJECT ${LIBTHEORA_DEC} ${HEADERS})
|
77 |
+
target_link_libraries(theora-dec PUBLIC Ogg::ogg)
|
78 |
+
target_include_directories(theora-dec PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
79 |
+
|
80 |
+
add_library(theora $<TARGET_OBJECTS:theora-common> $<TARGET_OBJECTS:theora-enc> $<TARGET_OBJECTS:theora-dec> "libtheora.def")
|
81 |
+
target_link_libraries(theora PUBLIC Ogg::ogg)
|
82 |
+
target_include_directories(theora PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
83 |
+
|
84 |
+
add_library(theoraenc $<TARGET_OBJECTS:theora-common> $<TARGET_OBJECTS:theora-enc> "win32/xmingw32/libtheoraenc-all.def")
|
85 |
+
target_link_libraries(theoraenc PUBLIC Ogg::ogg)
|
86 |
+
target_include_directories(theoraenc PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
87 |
+
|
88 |
+
add_library(theoradec $<TARGET_OBJECTS:theora-common> $<TARGET_OBJECTS:theora-dec> "win32/xmingw32/libtheoradec-all.def")
|
89 |
+
target_link_libraries(theoradec PUBLIC Ogg::ogg)
|
90 |
+
target_include_directories(theoradec PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
|
91 |
+
|
92 |
+
include(CMakePackageConfigHelpers)
|
93 |
+
|
94 |
+
configure_package_config_file(unofficial-theora-config.cmake.in unofficial-theora-config.cmake
|
95 |
+
INSTALL_DESTINATION "lib/unofficial-theora")
|
96 |
+
|
97 |
+
install(FILES ${HEADERS} DESTINATION include/theora)
|
98 |
+
|
99 |
+
install(
|
100 |
+
FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-theora-config.cmake"
|
101 |
+
DESTINATION "lib/unofficial-theora"
|
102 |
+
)
|
103 |
+
|
104 |
+
install(TARGETS theora theoraenc theoradec
|
105 |
+
EXPORT unofficial-theora-targets
|
106 |
+
RUNTIME DESTINATION bin
|
107 |
+
LIBRARY DESTINATION bin
|
108 |
+
ARCHIVE DESTINATION lib
|
109 |
+
)
|
110 |
+
|
111 |
+
install(EXPORT unofficial-theora-targets
|
112 |
+
NAMESPACE unofficial::theora::
|
113 |
+
DESTINATION "lib/unofficial-theora"
|
114 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/libtheora.def
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
; Old alpha API
|
3 |
+
theora_version_string
|
4 |
+
theora_version_number
|
5 |
+
theora_decode_header
|
6 |
+
theora_decode_init
|
7 |
+
theora_decode_packetin
|
8 |
+
theora_decode_YUVout
|
9 |
+
theora_control
|
10 |
+
theora_packet_isheader
|
11 |
+
theora_packet_iskeyframe
|
12 |
+
theora_granule_shift
|
13 |
+
theora_granule_frame
|
14 |
+
theora_granule_time
|
15 |
+
theora_info_init
|
16 |
+
theora_info_clear
|
17 |
+
theora_clear
|
18 |
+
theora_comment_init
|
19 |
+
theora_comment_add
|
20 |
+
theora_comment_add_tag
|
21 |
+
theora_comment_query
|
22 |
+
theora_comment_query_count
|
23 |
+
theora_comment_clear
|
24 |
+
; New theora-exp API
|
25 |
+
th_version_string
|
26 |
+
th_version_number
|
27 |
+
th_decode_headerin
|
28 |
+
th_decode_alloc
|
29 |
+
th_setup_free
|
30 |
+
th_decode_ctl
|
31 |
+
th_decode_packetin
|
32 |
+
th_decode_ycbcr_out
|
33 |
+
th_decode_free
|
34 |
+
th_packet_isheader
|
35 |
+
th_packet_iskeyframe
|
36 |
+
th_granule_frame
|
37 |
+
th_granule_time
|
38 |
+
th_info_init
|
39 |
+
th_info_clear
|
40 |
+
th_comment_init
|
41 |
+
th_comment_add
|
42 |
+
th_comment_add_tag
|
43 |
+
th_comment_query
|
44 |
+
th_comment_query_count
|
45 |
+
th_comment_clear
|
46 |
+
; Old alpha API
|
47 |
+
theora_encode_init
|
48 |
+
theora_encode_YUVin
|
49 |
+
theora_encode_packetout
|
50 |
+
theora_encode_header
|
51 |
+
theora_encode_comment
|
52 |
+
theora_encode_tables
|
53 |
+
; New theora-exp API
|
54 |
+
th_encode_alloc
|
55 |
+
th_encode_ctl
|
56 |
+
th_encode_flushheader
|
57 |
+
th_encode_ycbcr_in
|
58 |
+
th_encode_packetout
|
59 |
+
th_encode_free
|
60 |
+
TH_VP31_QUANT_INFO
|
61 |
+
TH_VP31_HUFF_CODES
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO xiph/theora
|
4 |
+
REF fa5707d68c2a4338d58aa8b6afc95539ba89fecb
|
5 |
+
SHA512 e33da23a17e93709dfe4421b512cedbd9aab0d706f5650e0436f9c8e1cde76b902c3338d46750bb86d83e1bceb111ee84e90df36fb59b5c2e7f7aee1610752b2
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
0001-fix-uwp.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
12 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/libtheora.def DESTINATION ${SOURCE_PATH})
|
13 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/unofficial-theora-config.cmake.in DESTINATION ${SOURCE_PATH})
|
14 |
+
|
15 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
16 |
+
set(THEORA_X86_OPT ON)
|
17 |
+
else()
|
18 |
+
set(THEORA_X86_OPT OFF)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_configure_cmake(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
23 |
+
PREFER_NINJA
|
24 |
+
OPTIONS
|
25 |
+
-DUSE_X86=${THEORA_X86_OPT}
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_cmake()
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/unofficial-theora TARGET_PATH share/unofficial-theora)
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
33 |
+
|
34 |
+
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libtheora)
|
35 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libtheora/LICENSE ${CURRENT_PACKAGES_DIR}/share/libtheora/copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/unofficial-theora-config.cmake.in
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-theora-targets.cmake")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtheora/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtheora",
|
3 |
+
"version-string": "1.2.0alpha1-20170719",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Theora is a free and open video compression format from the Xiph.org Foundation.",
|
6 |
+
"homepage": "https://github.com/xiph/theora",
|
7 |
+
"dependencies": [
|
8 |
+
"libogg"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/find-pcap_static.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/Modules/FindPCAP.cmake b/cmake/Modules/FindPCAP.cmake
|
2 |
+
index 388b30b..f5264c3 100644
|
3 |
+
--- a/cmake/Modules/FindPCAP.cmake
|
4 |
+
+++ b/cmake/Modules/FindPCAP.cmake
|
5 |
+
@@ -38,7 +38,7 @@ if (${CMAKE_SIZEOF_VOID_P} EQUAL 8 AND WIN32)
|
6 |
+
endif ()
|
7 |
+
|
8 |
+
find_library(PCAP_LIBRARY
|
9 |
+
- NAMES pcap wpcap
|
10 |
+
+ NAMES pcap wpcap pcap_static NAMES_PER_DIR
|
11 |
+
HINTS ${HINT_DIR}
|
12 |
+
)
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/fix-source-writes.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 1e13def..eda8d68 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -228,8 +228,9 @@ ENDIF(DOXYGEN_FOUND)
|
6 |
+
# Configuration file
|
7 |
+
CONFIGURE_FILE(
|
8 |
+
"${PROJECT_SOURCE_DIR}/include/tins/config.h.in"
|
9 |
+
- "${PROJECT_SOURCE_DIR}/include/tins/config.h"
|
10 |
+
+ "${PROJECT_BINARY_DIR}/include/tins/config.h"
|
11 |
+
)
|
12 |
+
+INCLUDE_DIRECTORIES("${CMAKE_CURRENT_BINARY_DIR}/include")
|
13 |
+
|
14 |
+
IF (NOT CMAKE_INSTALL_LIBDIR)
|
15 |
+
SET(CMAKE_INSTALL_LIBDIR lib)
|
16 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
17 |
+
index e07772e..94bc8bf 100644
|
18 |
+
--- a/src/CMakeLists.txt
|
19 |
+
+++ b/src/CMakeLists.txt
|
20 |
+
@@ -82,7 +82,7 @@ set(HEADERS
|
21 |
+
${LIBTINS_INCLUDE_DIR}/tins/handshake_capturer.h
|
22 |
+
${LIBTINS_INCLUDE_DIR}/tins/stp.h
|
23 |
+
${LIBTINS_INCLUDE_DIR}/tins/pppoe.h
|
24 |
+
- ${LIBTINS_INCLUDE_DIR}/tins/config.h
|
25 |
+
+ ${PROJECT_BINARY_DIR}/include/tins/config.h
|
26 |
+
${LIBTINS_INCLUDE_DIR}/tins/constants.h
|
27 |
+
${LIBTINS_INCLUDE_DIR}/tins/crypto.h
|
28 |
+
${LIBTINS_INCLUDE_DIR}/tins/cxxstd.h
|
29 |
+
@@ -229,6 +229,7 @@ MACRO(INSTALL_HEADERS_WITH_DIRECTORY HEADER_LIST)
|
30 |
+
FOREACH(HEADER ${HEADERS})
|
31 |
+
# Extract directory name and remove leading '../'
|
32 |
+
get_filename_component(DIR ${HEADER} PATH)
|
33 |
+
+ string(REPLACE "${PROJECT_BINARY_DIR}/" "" DIR ${DIR})
|
34 |
+
STRING(REGEX REPLACE "^\\.\\.\\/" "" DIR ${DIR})
|
35 |
+
INSTALL(FILES ${HEADER} DESTINATION ${DIR})
|
36 |
+
ENDFOREACH(HEADER)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/portfile.cmake
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mfontanini/libtins
|
4 |
+
REF v4.3
|
5 |
+
SHA512 29d606004fe9a440c9a53eede42fd5c6dbd049677d2cca2c5cfd26311ee2ca4c64ca3e665fbc81efd5bfab5577a5181ed0754c617e139317d9ae0cabba05aff7
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-source-writes.patch
|
9 |
+
find-pcap_static.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBTINS_BUILD_SHARED)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS
|
17 |
+
-DLIBTINS_BUILD_SHARED=${LIBTINS_BUILD_SHARED}
|
18 |
+
-DLIBTINS_ENABLE_CXX11=1
|
19 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=1
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
|
25 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
26 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
27 |
+
else()
|
28 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libtins)
|
29 |
+
endif()
|
30 |
+
|
31 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libtins/libtinsConfig.cmake" "set(LIBTINS_INCLUDE_DIRS \"${SOURCE_PATH}/include\")" [[
|
32 |
+
get_filename_component(LIBTINS_CMAKE_DIR "${LIBTINS_CMAKE_DIR}" PATH)
|
33 |
+
get_filename_component(LIBTINS_CMAKE_DIR "${LIBTINS_CMAKE_DIR}" PATH)
|
34 |
+
set(LIBTINS_INCLUDE_DIRS "${LIBTINS_CMAKE_DIR}/include")
|
35 |
+
]])
|
36 |
+
|
37 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libtins/libtinsConfig.cmake" "\${LIBTINS_CMAKE_DIR}/libtinsTargets.cmake" "\${CMAKE_CURRENT_LIST_DIR}/libtinsTargets.cmake")
|
38 |
+
|
39 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
40 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/tins/macros.h" "!defined(TINS_STATIC)" "1")
|
41 |
+
else()
|
42 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/tins/macros.h" "!defined(TINS_STATIC)" "0")
|
43 |
+
endif()
|
44 |
+
|
45 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
46 |
+
|
47 |
+
# Handle copyright
|
48 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libtins" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtins/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtins",
|
3 |
+
"version": "4.3",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "High-level, multiplatform C++ network packet sniffing and crafting library",
|
6 |
+
"license": "BSD-2-Clause",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"boost-any",
|
10 |
+
"boost-icl",
|
11 |
+
"libpcap",
|
12 |
+
"openssl",
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "vcpkg-cmake-config",
|
19 |
+
"host": true
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtomcrypt/portfile.cmake
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libtom/libtomcrypt
|
4 |
+
REF v1.18.2
|
5 |
+
SHA512 53accb4f92077ff1c52102bece270e77c497e599c392aa0bf4dbc173b6789e7e4f1012d8b5f257c438764197cb7bac8ba409a9d4e3a70e69bec5863b9495329e
|
6 |
+
HEAD_REF develop
|
7 |
+
)
|
8 |
+
|
9 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
10 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
11 |
+
|
12 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
13 |
+
set(CRTFLAG "/MD")
|
14 |
+
else()
|
15 |
+
set(CRTFLAG "/MT")
|
16 |
+
endif()
|
17 |
+
|
18 |
+
# Make sure we start from a clean slate
|
19 |
+
vcpkg_execute_build_process(
|
20 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc clean
|
21 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
22 |
+
LOGNAME clean-${TARGET_TRIPLET}-dbg
|
23 |
+
)
|
24 |
+
|
25 |
+
#Debug Build
|
26 |
+
vcpkg_execute_build_process(
|
27 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc "CFLAGS=${CRTFLAG}d /DUSE_LTM /DLTM_DESC \"/I${CURRENT_INSTALLED_DIR}/include\""
|
28 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
29 |
+
LOGNAME build-${TARGET_TRIPLET}-dbg
|
30 |
+
)
|
31 |
+
|
32 |
+
file(INSTALL
|
33 |
+
${SOURCE_PATH}/tomcrypt.lib
|
34 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
35 |
+
)
|
36 |
+
|
37 |
+
# Clean up necessary to rebuild without debug symbols
|
38 |
+
vcpkg_execute_build_process(
|
39 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc clean
|
40 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
41 |
+
LOGNAME clean-${TARGET_TRIPLET}-rel
|
42 |
+
)
|
43 |
+
|
44 |
+
#Release Build
|
45 |
+
vcpkg_execute_build_process(
|
46 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc "CFLAGS=${CRTFLAG} /Ox /DNDEBUG /DUSE_LTM /DLTM_DESC \"/I${CURRENT_INSTALLED_DIR}/include\""
|
47 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
48 |
+
LOGNAME build-${TARGET_TRIPLET}-rel
|
49 |
+
)
|
50 |
+
|
51 |
+
file(INSTALL
|
52 |
+
${SOURCE_PATH}/tomcrypt.lib
|
53 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
54 |
+
)
|
55 |
+
|
56 |
+
file(INSTALL
|
57 |
+
${SOURCE_PATH}/src/headers/
|
58 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
59 |
+
)
|
60 |
+
else()
|
61 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
62 |
+
set(MAKE_FILE "makefile.shared")
|
63 |
+
else()
|
64 |
+
set(MAKE_FILE "makefile")
|
65 |
+
endif()
|
66 |
+
|
67 |
+
set(ENV{CFLAGS} "-fPIC -DUSE_LTM -DLTM_DESC -I${CURRENT_INSTALLED_DIR}/include")
|
68 |
+
|
69 |
+
vcpkg_execute_build_process(
|
70 |
+
COMMAND make -f ${MAKE_FILE} clean
|
71 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
72 |
+
)
|
73 |
+
vcpkg_execute_build_process(
|
74 |
+
COMMAND make -j${VCPKG_CONCURRENCY} -f ${MAKE_FILE} PREFIX=${CURRENT_PACKAGES_DIR}/debug LTC_DEBUG=1 install
|
75 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
76 |
+
)
|
77 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
78 |
+
|
79 |
+
vcpkg_execute_build_process(
|
80 |
+
COMMAND make -f ${MAKE_FILE} clean
|
81 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
82 |
+
)
|
83 |
+
vcpkg_execute_build_process(
|
84 |
+
COMMAND make -j${VCPKG_CONCURRENCY} -f ${MAKE_FILE} PREFIX=${CURRENT_PACKAGES_DIR} install
|
85 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
86 |
+
)
|
87 |
+
|
88 |
+
endif()
|
89 |
+
|
90 |
+
#Copy license
|
91 |
+
file(
|
92 |
+
INSTALL
|
93 |
+
${SOURCE_PATH}/LICENSE
|
94 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
|
95 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtomcrypt/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtomcrypt",
|
3 |
+
"version-string": "1.18.2",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "LibTomCrypt is a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.",
|
6 |
+
"homepage": "https://www.libtom.net/LibTomCrypt/",
|
7 |
+
"dependencies": [
|
8 |
+
"libtommath"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtommath/portfile.cmake
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libtom/libtommath
|
4 |
+
REF v1.2.0
|
5 |
+
SHA512 500bce4467d6cdb0b014e6c66d3b994a8d63b51475db6c3cd77c15c8368fbab4e3b5c458fcd5b35838b74c457a33c15b42d2356964f5ef2a0bd31fd544735c9a
|
6 |
+
HEAD_REF develop
|
7 |
+
)
|
8 |
+
|
9 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
10 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
11 |
+
|
12 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
13 |
+
set(CRTFLAG "/MD")
|
14 |
+
else()
|
15 |
+
set(CRTFLAG "/MT")
|
16 |
+
endif()
|
17 |
+
|
18 |
+
# Make sure we start from a clean slate
|
19 |
+
vcpkg_execute_build_process(
|
20 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc clean
|
21 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
22 |
+
LOGNAME clean-${TARGET_TRIPLET}-dbg
|
23 |
+
)
|
24 |
+
|
25 |
+
#Debug Build
|
26 |
+
vcpkg_execute_build_process(
|
27 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc CFLAGS="${CRTFLAG}d"
|
28 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
29 |
+
LOGNAME build-${TARGET_TRIPLET}-dbg
|
30 |
+
)
|
31 |
+
|
32 |
+
file(INSTALL
|
33 |
+
${SOURCE_PATH}/tommath.lib
|
34 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
35 |
+
)
|
36 |
+
|
37 |
+
# Clean up necessary to rebuild without debug symbols
|
38 |
+
vcpkg_execute_build_process(
|
39 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc clean
|
40 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
41 |
+
LOGNAME clean-${TARGET_TRIPLET}-rel
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_execute_build_process(
|
45 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc CFLAGS="${CRTFLAG}"
|
46 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
47 |
+
LOGNAME build-${TARGET_TRIPLET}-rel
|
48 |
+
)
|
49 |
+
|
50 |
+
file(INSTALL
|
51 |
+
${SOURCE_PATH}/tommath.lib
|
52 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
53 |
+
)
|
54 |
+
|
55 |
+
file(INSTALL
|
56 |
+
${SOURCE_PATH}/tommath.h
|
57 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
58 |
+
)
|
59 |
+
else()
|
60 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
61 |
+
set(MAKE_FILE "makefile.shared")
|
62 |
+
else()
|
63 |
+
set(MAKE_FILE "makefile")
|
64 |
+
endif()
|
65 |
+
|
66 |
+
vcpkg_execute_build_process(
|
67 |
+
COMMAND make -f ${MAKE_FILE} clean
|
68 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
69 |
+
)
|
70 |
+
|
71 |
+
vcpkg_execute_build_process(
|
72 |
+
COMMAND make -j${VCPKG_CONCURRENCY} -f ${MAKE_FILE} PREFIX=${CURRENT_PACKAGES_DIR}/debug COMPILE_DEBUG=1 install
|
73 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
74 |
+
)
|
75 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
76 |
+
|
77 |
+
vcpkg_execute_build_process(
|
78 |
+
COMMAND make -f ${MAKE_FILE} clean
|
79 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
80 |
+
)
|
81 |
+
|
82 |
+
vcpkg_execute_build_process(
|
83 |
+
COMMAND make -j${VCPKG_CONCURRENCY} -f ${MAKE_FILE} PREFIX=${CURRENT_PACKAGES_DIR} install
|
84 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
85 |
+
)
|
86 |
+
endif()
|
87 |
+
|
88 |
+
file(INSTALL
|
89 |
+
${SOURCE_PATH}/LICENSE
|
90 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
|
91 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtommath/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtommath",
|
3 |
+
"version-string": "1.2.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.",
|
6 |
+
"homepage": "https://www.libtom.net/LibTomMath/"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtorrent/portfile.cmake
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
# Building python bindings is currently broken on Windows
|
3 |
+
if("python" IN_LIST FEATURES)
|
4 |
+
message(FATAL_ERROR "The python feature is currently broken on Windows")
|
5 |
+
endif()
|
6 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
7 |
+
set(_static_runtime ON)
|
8 |
+
endif()
|
9 |
+
endif()
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
deprfun deprecated-functions
|
15 |
+
examples build_examples
|
16 |
+
iconv iconv
|
17 |
+
python python-bindings
|
18 |
+
test build_tests
|
19 |
+
tools build_tools
|
20 |
+
)
|
21 |
+
|
22 |
+
if("python" IN_LIST FEATURES)
|
23 |
+
vcpkg_find_acquire_program(PYTHON3)
|
24 |
+
get_filename_component(PYTHON3_PATH ${PYTHON3} DIRECTORY)
|
25 |
+
vcpkg_add_to_path(${PYTHON3_PATH})
|
26 |
+
file(GLOB BOOST_PYTHON_LIB "${CURRENT_INSTALLED_DIR}/lib/*boost_python*")
|
27 |
+
string(REGEX REPLACE ".*(python)([0-9])([0-9]+).*" "\\1\\2\\3" _boost-python-module-name "${BOOST_PYTHON_LIB}")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
vcpkg_from_github(
|
31 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
32 |
+
REPO arvidn/libtorrent
|
33 |
+
REF 44e285c30f06772e48f515580f961998e1037b7e # v2.0.5
|
34 |
+
SHA512 c7ce747930ab8c1852d0efdc6268d9faa39643abd6b6560b4b5e0b06a12ab207ec61ac301a0bcc7622521a8ae490cc02cbe0b6e43208bc216c08bf472b40cb85
|
35 |
+
HEAD_REF RC_2_0
|
36 |
+
)
|
37 |
+
|
38 |
+
vcpkg_from_github(
|
39 |
+
OUT_SOURCE_PATH TRYSIGNAL_SOURCE_PATH
|
40 |
+
REPO arvidn/try_signal
|
41 |
+
REF 334fd139e2bb387017b42d36753a03935e3bca75
|
42 |
+
SHA512 a25d439b2d979e975f9dd125a34072f70bfc7a08fab950e3829130742c05c584ae88d9f58fc0f1b4fa0b51df2c0e32c5b24c5828d53b121b4bc183a4c68d6a5a
|
43 |
+
HEAD_REF master
|
44 |
+
)
|
45 |
+
|
46 |
+
vcpkg_from_github(
|
47 |
+
OUT_SOURCE_PATH ASIO_GNUTLS_SOURCE_PATH
|
48 |
+
REPO paullouisageneau/boost-asio-gnutls
|
49 |
+
REF a57d4d36923c5fafa9698e14be16b8bc2913700a
|
50 |
+
SHA512 1e093dd4e999cce9c6d74f1d4c2d20f73512258b83505c307c7d53b8c7ed15626a8e90c8e6a6280827aafa069bc233c0c6f4c9276f1c332e4b141c7c350c47c0
|
51 |
+
HEAD_REF master
|
52 |
+
)
|
53 |
+
|
54 |
+
vcpkg_from_github(
|
55 |
+
OUT_SOURCE_PATH LIB_SIMULATOR_SOURCE_PATH
|
56 |
+
REPO arvidn/libsimulator
|
57 |
+
REF 64fb5b4fde1879abc09c018604d57e485a12e999
|
58 |
+
SHA512 20b57eb436127028339528f34a9db7e7149d2c5d86149114444205370482d3f5284e76493f2fbc1c6904175e6482671bfcaeb98d0bee7d399e546abef02f32f3
|
59 |
+
HEAD_REF master
|
60 |
+
)
|
61 |
+
|
62 |
+
file(COPY ${TRYSIGNAL_SOURCE_PATH}/ DESTINATION ${SOURCE_PATH}/deps/try_signal)
|
63 |
+
file(COPY ${ASIO_GNUTLS_SOURCE_PATH}/ DESTINATION ${SOURCE_PATH}/deps/asio-gnutls)
|
64 |
+
file(COPY ${LIB_SIMULATOR_SOURCE_PATH}/ DESTINATION ${SOURCE_PATH}/simulation/libsimulator)
|
65 |
+
|
66 |
+
vcpkg_cmake_configure(
|
67 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
68 |
+
OPTIONS
|
69 |
+
${FEATURE_OPTIONS}
|
70 |
+
-Dboost-python-module-name=${_boost-python-module-name}
|
71 |
+
-Dstatic_runtime=${_static_runtime}
|
72 |
+
-DPython3_USE_STATIC_LIBS=ON
|
73 |
+
)
|
74 |
+
|
75 |
+
|
76 |
+
vcpkg_cmake_install()
|
77 |
+
|
78 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME LibtorrentRasterbar CONFIG_PATH lib/cmake/LibtorrentRasterbar)
|
79 |
+
|
80 |
+
# Handle copyright
|
81 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
82 |
+
|
83 |
+
# Do not duplicate include files
|
84 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share" "${CURRENT_PACKAGES_DIR}/share/cmake")
|
85 |
+
|
86 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
87 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
88 |
+
endif()
|
89 |
+
|
90 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libtorrent/vcpkg.json
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtorrent",
|
3 |
+
"version": "2.0.5",
|
4 |
+
"maintainers": "Arvid Norberg <[email protected]>",
|
5 |
+
"description": "An efficient feature complete C++ BitTorrent implementation",
|
6 |
+
"homepage": "https://libtorrent.org",
|
7 |
+
"documentation": "https://libtorrent.org/reference.html",
|
8 |
+
"license": "BSD-2-Clause",
|
9 |
+
"supports": "!uwp & !(windows & arm)",
|
10 |
+
"dependencies": [
|
11 |
+
"boost-asio",
|
12 |
+
"boost-chrono",
|
13 |
+
"boost-config",
|
14 |
+
"boost-crc",
|
15 |
+
"boost-date-time",
|
16 |
+
"boost-iterator",
|
17 |
+
"boost-logic",
|
18 |
+
"boost-multi-index",
|
19 |
+
"boost-multiprecision",
|
20 |
+
"boost-pool",
|
21 |
+
"boost-random",
|
22 |
+
"boost-scope-exit",
|
23 |
+
"boost-system",
|
24 |
+
"boost-variant",
|
25 |
+
"openssl",
|
26 |
+
{
|
27 |
+
"name": "vcpkg-cmake",
|
28 |
+
"host": true
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"name": "vcpkg-cmake-config",
|
32 |
+
"host": true
|
33 |
+
}
|
34 |
+
],
|
35 |
+
"default-features": [
|
36 |
+
"iconv"
|
37 |
+
],
|
38 |
+
"features": {
|
39 |
+
"deprfun": {
|
40 |
+
"description": "build with deprecated functions enabled"
|
41 |
+
},
|
42 |
+
"examples": {
|
43 |
+
"description": "build the examples in the examples directory"
|
44 |
+
},
|
45 |
+
"iconv": {
|
46 |
+
"description": "build with libiconv",
|
47 |
+
"dependencies": [
|
48 |
+
"libiconv"
|
49 |
+
]
|
50 |
+
},
|
51 |
+
"python": {
|
52 |
+
"description": "build the python bindings in bindings/python directory",
|
53 |
+
"dependencies": [
|
54 |
+
"boost-python"
|
55 |
+
]
|
56 |
+
},
|
57 |
+
"test": {
|
58 |
+
"description": "build the libtorrent tests"
|
59 |
+
},
|
60 |
+
"tools": {
|
61 |
+
"description": "build the tools in the tools directory"
|
62 |
+
}
|
63 |
+
}
|
64 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/CMakeLists.txt
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
|
3 |
+
project(libu2f-server C)
|
4 |
+
|
5 |
+
file(GLOB_RECURSE LIBU2F_SERVER_HEADERS u2f-server/*.h)
|
6 |
+
file(GLOB_RECURSE LIBU2F_SERVER_SOURCE u2f-server/*.c)
|
7 |
+
|
8 |
+
add_library(libu2f-server ${LIBU2F_SERVER_SOURCE})
|
9 |
+
|
10 |
+
target_include_directories(libu2f-server PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
11 |
+
target_compile_definitions(libu2f-server PRIVATE _CRT_SECURE_NO_WARNINGS _CRT_NONSTDC_NO_DEPRECATE)
|
12 |
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4996")
|
13 |
+
|
14 |
+
find_package(json-c CONFIG REQUIRED)
|
15 |
+
find_package(OpenSSL REQUIRED)
|
16 |
+
target_link_libraries(libu2f-server PRIVATE OpenSSL::SSL OpenSSL::Crypto json-c::json-c)
|
17 |
+
|
18 |
+
install(TARGETS libu2f-server
|
19 |
+
EXPORT libu2f-serverConfig
|
20 |
+
RUNTIME DESTINATION "bin"
|
21 |
+
ARCHIVE DESTINATION "lib"
|
22 |
+
LIBRARY DESTINATION "lib"
|
23 |
+
)
|
24 |
+
|
25 |
+
INSTALL(FILES ${LIBU2F_SERVER_HEADERS} DESTINATION "include/libu2f-server")
|
26 |
+
|
27 |
+
install(EXPORT libu2f-serverConfig
|
28 |
+
FILE libu2f-serverConfig.cmake
|
29 |
+
NAMESPACE libu2f-server::
|
30 |
+
DESTINATION "share/libu2f-server"
|
31 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Yubico/libu2f-server
|
6 |
+
REF libu2f-server-1.1.0
|
7 |
+
SHA512 085f8e7d74c1efb347747b8930386f18ba870f668f82e9bd479c9f8431585c5dc7f95b2f6b82bdd3a6de0c06f8cb2fbf51c363ced54255a936ab96536158ee59
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
windows.patch
|
11 |
+
strndup-fix.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
15 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/u2f-server-version.h DESTINATION ${SOURCE_PATH}/u2f-server)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
|
24 |
+
# The include file must be patched after the build has completed, because the source files use the wrong subdirectory name!
|
25 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libu2f-server/u2f-server.h
|
26 |
+
"#include <u2f-server/u2f-server-version.h>"
|
27 |
+
"#include <libu2f-server/u2f-server-version.h>"
|
28 |
+
)
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
31 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
32 |
+
vcpkg_copy_pdbs()
|
33 |
+
|
34 |
+
# Handle copyright
|
35 |
+
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/strndup-fix.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/u2f-server/core.c b/u2f-server/core.c
|
2 |
+
index 294c94b..746932b 100644
|
3 |
+
--- a/u2f-server/core.c
|
4 |
+
+++ b/u2f-server/core.c
|
5 |
+
@@ -211,7 +211,7 @@ u2fs_rc u2fs_set_keyHandle(u2fs_ctx_t * ctx, const char *keyHandle)
|
6 |
+
ctx->keyHandle = NULL;
|
7 |
+
}
|
8 |
+
|
9 |
+
- ctx->keyHandle = strndup(keyHandle, strlen(keyHandle));
|
10 |
+
+ ctx->keyHandle = strdup(keyHandle);
|
11 |
+
|
12 |
+
if (ctx->keyHandle == NULL)
|
13 |
+
return U2FS_MEMORY_ERROR;
|
14 |
+
@@ -726,7 +726,7 @@ static u2fs_rc decode_clientData(const char *clientData, char **output)
|
15 |
+
fprintf(stderr, "clientData: %s\n", data);
|
16 |
+
}
|
17 |
+
|
18 |
+
- *output = strndup(data, strlen(data));
|
19 |
+
+ *output = strdup(data);
|
20 |
+
|
21 |
+
free(data);
|
22 |
+
data = NULL;
|
23 |
+
@@ -870,7 +870,7 @@ u2fs_rc u2fs_registration_verify(u2fs_ctx_t * ctx, const char *response,
|
24 |
+
goto failure;
|
25 |
+
|
26 |
+
u2fs_EC_KEY_t *key_ptr;
|
27 |
+
- (*output)->keyHandle = strndup(buf, strlen(buf));
|
28 |
+
+ (*output)->keyHandle = strdup(buf);
|
29 |
+
|
30 |
+
rc = decode_user_key(user_public_key, &key_ptr);
|
31 |
+
if (rc != U2FS_OK)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/u2f-server-version.h
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
* Copyright (c) 2014 Yubico AB
|
3 |
+
* All rights reserved.
|
4 |
+
*
|
5 |
+
* Redistribution and use in source and binary forms, with or without
|
6 |
+
* modification, are permitted provided that the following conditions are
|
7 |
+
* met:
|
8 |
+
*
|
9 |
+
* * Redistributions of source code must retain the above copyright
|
10 |
+
* notice, this list of conditions and the following disclaimer.
|
11 |
+
*
|
12 |
+
* * Redistributions in binary form must reproduce the above
|
13 |
+
* copyright notice, this list of conditions and the following
|
14 |
+
* disclaimer in the documentation and/or other materials provided
|
15 |
+
* with the distribution.
|
16 |
+
*
|
17 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
18 |
+
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
19 |
+
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
20 |
+
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
21 |
+
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
22 |
+
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
23 |
+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
24 |
+
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
25 |
+
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
26 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
27 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28 |
+
*/
|
29 |
+
|
30 |
+
#ifndef U2F_SERVER_VERSION_H
|
31 |
+
#define U2F_SERVER_VERSION_H
|
32 |
+
|
33 |
+
#ifdef __cplusplus
|
34 |
+
extern "C" {
|
35 |
+
#endif
|
36 |
+
|
37 |
+
/**
|
38 |
+
* U2FS_VERSION_STRING
|
39 |
+
*
|
40 |
+
* Pre-processor symbol with a string that describe the header file
|
41 |
+
* version number. Used together with u2fs_check_version() to verify
|
42 |
+
* header file and run-time library consistency.
|
43 |
+
*/
|
44 |
+
#define U2FS_VERSION_STRING "1.1.0"
|
45 |
+
|
46 |
+
/**
|
47 |
+
* U2FS_VERSION_NUMBER
|
48 |
+
*
|
49 |
+
* Pre-processor symbol with a hexadecimal value describing the header
|
50 |
+
* file version number. For example, when the header version is 1.2.3
|
51 |
+
* this symbol will have the value 0x01020300. The last two digits
|
52 |
+
* are only used between public releases, and will otherwise be 00.
|
53 |
+
*/
|
54 |
+
#define U2FS_VERSION_NUMBER 0x01010000
|
55 |
+
|
56 |
+
/**
|
57 |
+
* U2FS_VERSION_MAJOR
|
58 |
+
*
|
59 |
+
* Pre-processor symbol with a decimal value that describe the major
|
60 |
+
* level of the header file version number. For example, when the
|
61 |
+
* header version is 1.2.3 this symbol will be 1.
|
62 |
+
*/
|
63 |
+
#define U2FS_VERSION_MAJOR 1
|
64 |
+
|
65 |
+
/**
|
66 |
+
* U2FS_VERSION_MINOR
|
67 |
+
*
|
68 |
+
* Pre-processor symbol with a decimal value that describe the minor
|
69 |
+
* level of the header file version number. For example, when the
|
70 |
+
* header version is 1.2.3 this symbol will be 2.
|
71 |
+
*/
|
72 |
+
#define U2FS_VERSION_MINOR 1
|
73 |
+
|
74 |
+
/**
|
75 |
+
* U2FS_VERSION_PATCH
|
76 |
+
*
|
77 |
+
* Pre-processor symbol with a decimal value that describe the patch
|
78 |
+
* level of the header file version number. For example, when the
|
79 |
+
* header version is 1.2.3 this symbol will be 3.
|
80 |
+
*/
|
81 |
+
#define U2FS_VERSION_PATCH 0
|
82 |
+
|
83 |
+
#ifndef TRUE
|
84 |
+
#define TRUE 1
|
85 |
+
#endif
|
86 |
+
|
87 |
+
#ifndef FALSE
|
88 |
+
#define FALSE 0
|
89 |
+
#endif
|
90 |
+
|
91 |
+
#ifdef __cplusplus
|
92 |
+
}
|
93 |
+
#endif
|
94 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libu2f-server",
|
3 |
+
"version": "1.1.0",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "Yubico Universal 2nd Factor (U2F) Server C Library",
|
6 |
+
"homepage": "https://developers.yubico.com/libu2f-server/",
|
7 |
+
"supports": "(x86 | x64) & windows",
|
8 |
+
"dependencies": [
|
9 |
+
"json-c",
|
10 |
+
"openssl"
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/libu2f-server/windows.patch
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/u2f-server/cdecode.c b/u2f-server/cdecode.c
|
2 |
+
index 6fff114..dc05ca5 100644
|
3 |
+
--- a/u2f-server/cdecode.c
|
4 |
+
+++ b/u2f-server/cdecode.c
|
5 |
+
@@ -5,7 +5,7 @@ This is part of the libb64 project, and has been placed in the public domain.
|
6 |
+
For details, see http://sourceforge.net/projects/libb64
|
7 |
+
*/
|
8 |
+
|
9 |
+
-#include <b64/cdecode.h>
|
10 |
+
+#include "b64/cdecode.h"
|
11 |
+
|
12 |
+
int base64_decode_value(char value_in)
|
13 |
+
{
|
14 |
+
diff --git a/u2f-server/cencode.c b/u2f-server/cencode.c
|
15 |
+
index eebb24a..f3b7fa4 100644
|
16 |
+
--- a/u2f-server/cencode.c
|
17 |
+
+++ b/u2f-server/cencode.c
|
18 |
+
@@ -5,7 +5,7 @@ This is part of the libb64 project, and has been placed in the public domain.
|
19 |
+
For details, see http://sourceforge.net/projects/libb64
|
20 |
+
*/
|
21 |
+
|
22 |
+
-#include <b64/cencode.h>
|
23 |
+
+#include "b64/cencode.h"
|
24 |
+
|
25 |
+
const int CHARS_PER_LINE = 72;
|
26 |
+
|
27 |
+
diff --git a/u2f-server/core.c b/u2f-server/core.c
|
28 |
+
index da440ec..294c94b 100644
|
29 |
+
--- a/u2f-server/core.c
|
30 |
+
+++ b/u2f-server/core.c
|
31 |
+
@@ -30,8 +30,7 @@
|
32 |
+
#include "internal.h"
|
33 |
+
|
34 |
+
#include <string.h>
|
35 |
+
-#include <unistd.h>
|
36 |
+
-#include <json.h>
|
37 |
+
+#include <json-c/json.h>
|
38 |
+
#include "crypto.h"
|
39 |
+
#include "b64/cencode.h"
|
40 |
+
#include "b64/cdecode.h"
|
41 |
+
|