Spaces:
Sleeping
Sleeping
4f5c562ad2347dbc44ea3ff0416a1d2095b83d2d2bf83a2001dda21befcf8791
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/0020-fix-pc-file.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/0021-normaliz.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/0022-deduplicate-libs.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/cmake-project-include.cmake +82 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/export-components.patch +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/mbedtls-ws2_32.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/portfile.cmake +146 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/vcpkg-cmake-wrapper.cmake +51 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/vcpkg.json +188 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/fix-cmake.patch +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/fix-findzliberror.patch +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/vcpkg-cmake-wrapper.cmake +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cute-headers/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cute-headers/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cutelyst2/fix-static-build.patch +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cutelyst2/portfile.cmake +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cutelyst2/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cwalk/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cwalk/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cxxopts/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cxxopts/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Findlibcurl.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Findlibmicrohttpd.cmake +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Findlibzmq.cmake +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Findlz4.cmake +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Finduuid.cmake +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/fix-dependencies.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/portfile.cmake +81 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/vcpkg-cmake-wrapper.cmake +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/vcpkg.json +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3d12-memory-allocator/CMakeLists.txt +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3d12-memory-allocator/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3d12-memory-allocator/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3dx12/portfile.cmake +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3dx12/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/darknet/portfile.cmake +63 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/darknet/vcpkg.json +124 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/darts-clone/CMakeLists.txt +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/darts-clone/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/darts-clone/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dartsim/disable_unit_tests_examples_and_tutorials.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dartsim/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dartsim/vcpkg.json +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dataframe/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/dataframe/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/date/0001-fix-uwp.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/date/0002-fix-cmake-3.14.patch +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/date/fix-uninitialized-values.patch +40 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/0020-fix-pc-file.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8b2e428..ea430f4 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1505,7 +1505,9 @@ set(includedir "\${prefix}/include")
|
6 |
+
set(LDFLAGS "${CMAKE_SHARED_LINKER_FLAGS}")
|
7 |
+
set(LIBCURL_LIBS "")
|
8 |
+
set(libdir "${CMAKE_INSTALL_PREFIX}/lib")
|
9 |
+
-foreach(_lib ${CMAKE_C_IMPLICIT_LINK_LIBRARIES} ${CURL_LIBS})
|
10 |
+
+set(CURL_LIBS_FLAT "")
|
11 |
+
+vcpkg_curl_flatten(CURL_LIBS CURL_LIBS_FLAT)
|
12 |
+
+foreach(_lib ${CURL_LIBS_FLAT})
|
13 |
+
if(TARGET "${_lib}")
|
14 |
+
set(_libname "${_lib}")
|
15 |
+
get_target_property(_imported "${_libname}" IMPORTED)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/0021-normaliz.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6d209be..9f6de81 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -638,7 +638,7 @@ endif()
|
6 |
+
if(WIN32)
|
7 |
+
option(USE_WIN32_IDN "Use WinIDN for IDN support" OFF)
|
8 |
+
if(USE_WIN32_IDN)
|
9 |
+
- list(APPEND CURL_LIBS "Normaliz")
|
10 |
+
+ list(APPEND CURL_LIBS "normaliz")
|
11 |
+
set(WANT_IDN_PROTOTYPES ON)
|
12 |
+
endif()
|
13 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/0022-deduplicate-libs.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 09d82f1..f0d99e6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1507,6 +1507,7 @@ else()
|
6 |
+
set(ENABLE_SHARED "no")
|
7 |
+
set(ENABLE_STATIC "yes")
|
8 |
+
set(LIBCURL_NO_SHARED "${LIBCURL_LIBS}")
|
9 |
+
+ set(LIBCURL_LIBS "")
|
10 |
+
endif()
|
11 |
+
# "a" (Linux) or "lib" (Windows)
|
12 |
+
string(REPLACE "." "" libext "${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/cmake-project-include.cmake
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Process the libs and targets in the variable named by `input`
|
2 |
+
# into a flat list of libs in the variable named by `output`.
|
3 |
+
# Simplify -framework elements.
|
4 |
+
# Use -l where possible.
|
5 |
+
# Avoid duplicates.
|
6 |
+
function(vcpkg_curl_flatten input output)
|
7 |
+
set(output_libs "${${output}}")
|
8 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
9 |
+
string(REGEX REPLACE ";optimized;[^;]*|;debug" "" input_libs "VCPKG;${${input}}")
|
10 |
+
else()
|
11 |
+
string(REGEX REPLACE ";debug;[^;]*|;optimized" "" input_libs "VCPKG;${${input}}")
|
12 |
+
endif()
|
13 |
+
list(REMOVE_AT input_libs 0)
|
14 |
+
while(input_libs)
|
15 |
+
list(POP_BACK input_libs lib)
|
16 |
+
if(TARGET "${lib}")
|
17 |
+
set(import_lib "")
|
18 |
+
set(import_location "")
|
19 |
+
get_target_property(type "${lib}" TYPE)
|
20 |
+
if(NOT type STREQUAL "INTERFACE_LIBRARY")
|
21 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
22 |
+
get_target_property(link_libs "${lib}" IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG)
|
23 |
+
get_target_property(import_lib "${lib}" IMPORTED_IMPLIB_DEBUG)
|
24 |
+
get_target_property(import_location "${lib}" IMPORTED_LOCATION_DEBUG)
|
25 |
+
else()
|
26 |
+
get_target_property(link_libs "${lib}" IMPORTED_LINK_INTERFACE_LIBRARIES_RELEASE)
|
27 |
+
get_target_property(import_lib "${lib}" IMPORTED_IMPLIB_RELEASE)
|
28 |
+
get_target_property(import_location "${lib}" IMPORTED_LOCATION_RELEASE)
|
29 |
+
endif()
|
30 |
+
if(link_libs)
|
31 |
+
vcpkg_curl_flatten(link_libs output_libs)
|
32 |
+
endif()
|
33 |
+
get_target_property(link_libs "${lib}" IMPORTED_LINK_INTERFACE_LIBRARIES)
|
34 |
+
if(link_libs)
|
35 |
+
vcpkg_curl_flatten(link_libs output_libs)
|
36 |
+
endif()
|
37 |
+
if(NOT import_lib)
|
38 |
+
get_target_property(import_lib "${lib}" IMPORTED_IMPLIB)
|
39 |
+
endif()
|
40 |
+
if(NOT import_location)
|
41 |
+
get_target_property(import_location "${lib}" IMPORTED_LOCATION)
|
42 |
+
endif()
|
43 |
+
endif()
|
44 |
+
get_target_property(link_libs "${lib}" INTERFACE_LINK_LIBRARIES)
|
45 |
+
if(link_libs)
|
46 |
+
vcpkg_curl_flatten(link_libs output_libs)
|
47 |
+
endif()
|
48 |
+
if(import_lib)
|
49 |
+
set(lib "${import_lib}")
|
50 |
+
elseif(import_location)
|
51 |
+
set(lib "${import_location}")
|
52 |
+
endif()
|
53 |
+
endif()
|
54 |
+
if(lib MATCHES "^(.*)/([^/]*)[.]framework$")
|
55 |
+
if(CMAKE_MATCH_1 IN_LIST CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES)
|
56 |
+
set(lib "-framework ${CMAKE_MATCH_2}")
|
57 |
+
else()
|
58 |
+
set(lib "-framework ${lib}")
|
59 |
+
endif()
|
60 |
+
elseif(WIN32 AND lib MATCHES ".*/${CMAKE_IMPORT_LIBRARY_PREFIX}([^/]*)${CMAKE_IMPORT_LIBRARY_SUFFIX}")
|
61 |
+
set(lib -l${CMAKE_MATCH_1})
|
62 |
+
elseif(lib MATCHES ".*/${CMAKE_STATIC_LIBRARY_PREFIX}([^/]*)${CMAKE_STATIC_LIBRARY_SUFFIX}")
|
63 |
+
set(lib -l${CMAKE_MATCH_1})
|
64 |
+
endif()
|
65 |
+
if(NOT "${lib}" IN_LIST output_libs)
|
66 |
+
list(PREPEND output_libs "${lib}")
|
67 |
+
endif()
|
68 |
+
endwhile()
|
69 |
+
set("${output}" "${output_libs}" PARENT_SCOPE)
|
70 |
+
endfunction()
|
71 |
+
|
72 |
+
if(CURL_USE_LIBSSH2)
|
73 |
+
find_package(Libssh2 CONFIG REQUIRED)
|
74 |
+
set(LIBSSH2_FOUND TRUE)
|
75 |
+
get_target_property(LIBSSH2_INCLUDE_DIR Libssh2::libssh2 INTERFACE_INCLUDE_DIRECTORIES)
|
76 |
+
set(LIBSSH2_LIBRARY Libssh2::libssh2)
|
77 |
+
endif()
|
78 |
+
|
79 |
+
if(USE_LIBIDN2)
|
80 |
+
find_package(PkgConfig REQUIRED)
|
81 |
+
pkg_check_modules(LIBIDN2 REQUIRED libidn2)
|
82 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/export-components.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 874a237..3974956 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1617,8 +1617,17 @@ if(CURL_ENABLE_EXPORT_TARGET)
|
6 |
+
)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
+set(components_file "${CMAKE_CURRENT_BINARY_DIR}/CURLConfigComponents.cmake")
|
10 |
+
+file(CONFIGURE OUTPUT "${components_file}" CONTENT [[
|
11 |
+
+foreach(z_vcpkg_curl_component IN ITEMS @SUPPORT_FEATURES@ @SUPPORT_PROTOCOLS@)
|
12 |
+
+ if(z_vcpkg_curl_component MATCHES "^[-_a-zA-Z0-9]*$")
|
13 |
+
+ set(CURL_${z_vcpkg_curl_component}_FOUND TRUE)
|
14 |
+
+ endif()
|
15 |
+
+endforeach()
|
16 |
+
+]] @ONLY)
|
17 |
+
+
|
18 |
+
install(
|
19 |
+
- FILES ${version_config} ${project_config}
|
20 |
+
+ FILES ${version_config} ${project_config} ${components_file}
|
21 |
+
DESTINATION ${CURL_INSTALL_CMAKE_DIR}
|
22 |
+
)
|
23 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/mbedtls-ws2_32.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMake/FindMbedTLS.cmake b/CMake/FindMbedTLS.cmake
|
2 |
+
index 7bdb197..c8c5a73 100644
|
3 |
+
--- a/CMake/FindMbedTLS.cmake
|
4 |
+
+++ b/CMake/FindMbedTLS.cmake
|
5 |
+
@@ -26,6 +26,9 @@ find_library(MBEDX509_LIBRARY mbedx509)
|
6 |
+
find_library(MBEDCRYPTO_LIBRARY mbedcrypto)
|
7 |
+
|
8 |
+
set(MBEDTLS_LIBRARIES "${MBEDTLS_LIBRARY}" "${MBEDX509_LIBRARY}" "${MBEDCRYPTO_LIBRARY}")
|
9 |
+
+if(WIN32)
|
10 |
+
+ list(APPEND MBEDTLS_LIBRARIES ws2_32)
|
11 |
+
+endif()
|
12 |
+
|
13 |
+
include(FindPackageHandleStandardArgs)
|
14 |
+
find_package_handle_standard_args(MbedTLS DEFAULT_MSG
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/portfile.cmake
ADDED
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO curl/curl
|
4 |
+
REF curl-7_82_0
|
5 |
+
SHA512 5b42e3c520e540059113fb4a5da2bbb82a4eea88e05ba17d661ab04e16e4b1f5f0ac2d16e51e17c9c2c4f5aca07e23015564a11bd0d034e1544c6f603b800c21
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
0002_fix_uwp.patch
|
9 |
+
0005_remove_imp_suffix.patch
|
10 |
+
0012-fix-dependency-idn2.patch
|
11 |
+
0020-fix-pc-file.patch
|
12 |
+
0021-normaliz.patch # for mingw on case-sensitive file system
|
13 |
+
0022-deduplicate-libs.patch
|
14 |
+
mbedtls-ws2_32.patch
|
15 |
+
export-components.patch
|
16 |
+
)
|
17 |
+
|
18 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CURL_STATICLIB)
|
19 |
+
|
20 |
+
# schannel will enable sspi, but sspi do not support uwp
|
21 |
+
foreach(feature IN ITEMS "schannel" "sspi" "tool" "winldap")
|
22 |
+
if(feature IN_LIST FEATURES AND VCPKG_TARGET_IS_UWP)
|
23 |
+
message(FATAL_ERROR "Feature ${feature} is not supported on UWP.")
|
24 |
+
endif()
|
25 |
+
endforeach()
|
26 |
+
|
27 |
+
if("sectransp" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_OSX)
|
28 |
+
message(FATAL_ERROR "sectransp is not supported on non-Apple platforms")
|
29 |
+
endif()
|
30 |
+
|
31 |
+
foreach(feature IN ITEMS "winldap" "winidn")
|
32 |
+
if(feature IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_WINDOWS)
|
33 |
+
message(FATAL_ERROR "Feature ${feature} is not supported on non-Windows platforms.")
|
34 |
+
endif()
|
35 |
+
endforeach()
|
36 |
+
|
37 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
38 |
+
FEATURES
|
39 |
+
# Support HTTP2 TLS Download https://curl.haxx.se/ca/cacert.pem rename to curl-ca-bundle.crt, copy it to libcurl.dll location.
|
40 |
+
http2 USE_NGHTTP2
|
41 |
+
openssl CURL_USE_OPENSSL
|
42 |
+
mbedtls CURL_USE_MBEDTLS
|
43 |
+
ssh CURL_USE_LIBSSH2
|
44 |
+
tool BUILD_CURL_EXE
|
45 |
+
c-ares ENABLE_ARES
|
46 |
+
sspi CURL_WINDOWS_SSPI
|
47 |
+
brotli CURL_BROTLI
|
48 |
+
schannel CURL_USE_SCHANNEL
|
49 |
+
sectransp CURL_USE_SECTRANSP
|
50 |
+
idn2 USE_LIBIDN2
|
51 |
+
winidn USE_WIN32_IDN
|
52 |
+
winldap USE_WIN32_LDAP
|
53 |
+
INVERTED_FEATURES
|
54 |
+
non-http HTTP_ONLY
|
55 |
+
winldap CURL_DISABLE_LDAP # Only WinLDAP support ATM
|
56 |
+
)
|
57 |
+
|
58 |
+
set(OPTIONS "")
|
59 |
+
set(OPTIONS_RELEASE "")
|
60 |
+
set(OPTIONS_DEBUG "")
|
61 |
+
if("idn2" IN_LIST FEATURES)
|
62 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
63 |
+
list(APPEND OPTIONS "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}")
|
64 |
+
endif()
|
65 |
+
|
66 |
+
if("sectransp" IN_LIST FEATURES)
|
67 |
+
list(APPEND OPTIONS -DCURL_CA_PATH=none)
|
68 |
+
endif()
|
69 |
+
|
70 |
+
# UWP targets
|
71 |
+
if(VCPKG_TARGET_IS_UWP)
|
72 |
+
list(APPEND OPTIONS
|
73 |
+
-DCURL_DISABLE_TELNET=ON
|
74 |
+
-DENABLE_IPV6=OFF
|
75 |
+
-DENABLE_UNIX_SOCKETS=OFF
|
76 |
+
)
|
77 |
+
endif()
|
78 |
+
|
79 |
+
vcpkg_cmake_configure(
|
80 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
81 |
+
OPTIONS
|
82 |
+
"-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
|
83 |
+
${FEATURE_OPTIONS}
|
84 |
+
${OPTIONS}
|
85 |
+
-DBUILD_TESTING=OFF
|
86 |
+
-DENABLE_MANUAL=OFF
|
87 |
+
-DCURL_STATICLIB=${CURL_STATICLIB}
|
88 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Perl=ON
|
89 |
+
-DENABLE_DEBUG=ON
|
90 |
+
-DCURL_CA_FALLBACK=ON
|
91 |
+
OPTIONS_RELEASE
|
92 |
+
${OPTIONS_RELEASE}
|
93 |
+
OPTIONS_DEBUG
|
94 |
+
${OPTIONS_DEBUG}
|
95 |
+
)
|
96 |
+
vcpkg_cmake_install()
|
97 |
+
vcpkg_copy_pdbs()
|
98 |
+
|
99 |
+
if ("tool" IN_LIST FEATURES)
|
100 |
+
vcpkg_copy_tools(TOOL_NAMES curl AUTO_CLEAN)
|
101 |
+
endif()
|
102 |
+
|
103 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CURL)
|
104 |
+
|
105 |
+
vcpkg_fixup_pkgconfig()
|
106 |
+
set(namespec "curl")
|
107 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
108 |
+
set(namespec "libcurl")
|
109 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libcurl.pc" " -lcurl" " -l${namespec}")
|
110 |
+
endif()
|
111 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE)
|
112 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libcurl.pc" " -lcurl" " -l${namespec}-d")
|
113 |
+
endif()
|
114 |
+
|
115 |
+
#Fix install path
|
116 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/curl-config" "${CURRENT_PACKAGES_DIR}" "\${prefix}")
|
117 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/curl-config" "${CURRENT_INSTALLED_DIR}" "\${prefix}")
|
118 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/curl-config" "\nprefix=\${prefix}" [=[prefix=$(CDPATH= cd -- "$(dirname -- "$0")"/../../.. && pwd -P)]=])
|
119 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin")
|
120 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/curl-config" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/curl-config")
|
121 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/curl-config")
|
122 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curl-config" "${CURRENT_PACKAGES_DIR}" "\${prefix}")
|
123 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curl-config" "${CURRENT_INSTALLED_DIR}" "\${prefix}")
|
124 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curl-config" "\nprefix=\${prefix}/debug" [=[prefix=$(CDPATH= cd -- "$(dirname -- "$0")"/../../../.. && pwd -P)]=])
|
125 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curl-config" "-lcurl" "-l${namespec}-d")
|
126 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curl-config" "curl." "curl-d.")
|
127 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin")
|
128 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/bin/curl-config" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/curl-config")
|
129 |
+
endif()
|
130 |
+
|
131 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
132 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
133 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
|
134 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
|
135 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
|
136 |
+
endif()
|
137 |
+
|
138 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
139 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/curl/curl.h"
|
140 |
+
"#ifdef CURL_STATICLIB"
|
141 |
+
"#if 1"
|
142 |
+
)
|
143 |
+
endif()
|
144 |
+
|
145 |
+
file(INSTALL "${CURRENT_PORT_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
146 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_policy(PUSH)
|
2 |
+
cmake_policy(SET CMP0012 NEW)
|
3 |
+
cmake_policy(SET CMP0054 NEW)
|
4 |
+
cmake_policy(SET CMP0057 NEW)
|
5 |
+
|
6 |
+
if(NOT CMAKE_VERSION VERSION_LESS 3.14 AND COMPONENTS IN_LIST ARGS)
|
7 |
+
include("${CMAKE_CURRENT_LIST_DIR}/CURLConfigComponents.cmake")
|
8 |
+
endif()
|
9 |
+
|
10 |
+
list(REMOVE_ITEM ARGS "NO_MODULE" "CONFIG" "MODULE")
|
11 |
+
_find_package(${ARGS} CONFIG)
|
12 |
+
|
13 |
+
if(CURL_FOUND)
|
14 |
+
get_target_property(_curl_include_dirs CURL::libcurl INTERFACE_INCLUDE_DIRECTORIES)
|
15 |
+
get_target_property(_curl_link_libraries CURL::libcurl INTERFACE_LINK_LIBRARIES)
|
16 |
+
|
17 |
+
if (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
18 |
+
get_target_property(_curl_location_debug CURL::libcurl IMPORTED_IMPLIB_DEBUG)
|
19 |
+
get_target_property(_curl_location_release CURL::libcurl IMPORTED_IMPLIB_RELEASE)
|
20 |
+
endif()
|
21 |
+
|
22 |
+
if(NOT _curl_location_debug AND NOT _curl_location_release)
|
23 |
+
get_target_property(_curl_location_debug CURL::libcurl IMPORTED_LOCATION_DEBUG)
|
24 |
+
get_target_property(_curl_location_release CURL::libcurl IMPORTED_LOCATION_RELEASE)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
if(NOT _curl_link_libraries)
|
28 |
+
set(_curl_link_libraries "")
|
29 |
+
endif()
|
30 |
+
|
31 |
+
if("Libssh2::libssh2" IN_LIST _curl_link_libraries)
|
32 |
+
find_package(Libssh2 CONFIG QUIET)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
set(CURL_INCLUDE_DIRS "${_curl_include_dirs}")
|
36 |
+
set(CURL_LIBRARY_DEBUG "${_curl_location_debug}")
|
37 |
+
set(CURL_LIBRARY_RELEASE "${_curl_location_release}")
|
38 |
+
|
39 |
+
#For builds which rely on CURL_LIBRAR(Y/IES)
|
40 |
+
include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake)
|
41 |
+
select_library_configurations(CURL)
|
42 |
+
|
43 |
+
set(CURL_LIBRARIES ${CURL_LIBRARY} ${_curl_link_libraries})
|
44 |
+
set(CURL_VERSION_STRING "${CURL_VERSION}")
|
45 |
+
|
46 |
+
unset(_curl_include_dirs)
|
47 |
+
unset(_curl_link_libraries)
|
48 |
+
unset(_curl_location_debug)
|
49 |
+
unset(_curl_location_release)
|
50 |
+
endif()
|
51 |
+
cmake_policy(POP)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curl/vcpkg.json
ADDED
@@ -0,0 +1,188 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "curl",
|
3 |
+
"version": "7.82.0",
|
4 |
+
"description": "A library for transferring data with URLs",
|
5 |
+
"homepage": "https://curl.se/",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"zlib"
|
17 |
+
],
|
18 |
+
"default-features": [
|
19 |
+
"non-http",
|
20 |
+
"ssl"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"brotli": {
|
24 |
+
"description": "brotli support (brotli)",
|
25 |
+
"dependencies": [
|
26 |
+
"brotli"
|
27 |
+
]
|
28 |
+
},
|
29 |
+
"c-ares": {
|
30 |
+
"description": "c-ares support",
|
31 |
+
"dependencies": [
|
32 |
+
"c-ares"
|
33 |
+
]
|
34 |
+
},
|
35 |
+
"http2": {
|
36 |
+
"description": "HTTP2 support",
|
37 |
+
"dependencies": [
|
38 |
+
{
|
39 |
+
"name": "curl",
|
40 |
+
"default-features": false,
|
41 |
+
"features": [
|
42 |
+
"ssl"
|
43 |
+
]
|
44 |
+
},
|
45 |
+
"nghttp2"
|
46 |
+
]
|
47 |
+
},
|
48 |
+
"idn": {
|
49 |
+
"description": "Default IDN support",
|
50 |
+
"dependencies": [
|
51 |
+
{
|
52 |
+
"name": "curl",
|
53 |
+
"default-features": false,
|
54 |
+
"features": [
|
55 |
+
"winidn"
|
56 |
+
],
|
57 |
+
"platform": "windows"
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"name": "curl",
|
61 |
+
"default-features": false,
|
62 |
+
"features": [
|
63 |
+
"idn2"
|
64 |
+
],
|
65 |
+
"platform": "!windows"
|
66 |
+
}
|
67 |
+
]
|
68 |
+
},
|
69 |
+
"idn2": {
|
70 |
+
"description": "idn2 support (libidn2)",
|
71 |
+
"dependencies": [
|
72 |
+
"libidn2"
|
73 |
+
]
|
74 |
+
},
|
75 |
+
"mbedtls": {
|
76 |
+
"description": "SSL support (mbedTLS)",
|
77 |
+
"dependencies": [
|
78 |
+
"mbedtls"
|
79 |
+
]
|
80 |
+
},
|
81 |
+
"non-http": {
|
82 |
+
"description": "Enables protocols beyond HTTP/HTTPS/HTTP2"
|
83 |
+
},
|
84 |
+
"openssl": {
|
85 |
+
"description": "SSL support (OpenSSL)",
|
86 |
+
"dependencies": [
|
87 |
+
"openssl"
|
88 |
+
]
|
89 |
+
},
|
90 |
+
"schannel": {
|
91 |
+
"description": "SSL support (Secure Channel)",
|
92 |
+
"dependencies": [
|
93 |
+
{
|
94 |
+
"name": "curl",
|
95 |
+
"default-features": false,
|
96 |
+
"features": [
|
97 |
+
"sspi"
|
98 |
+
]
|
99 |
+
}
|
100 |
+
]
|
101 |
+
},
|
102 |
+
"sectransp": {
|
103 |
+
"description": "SSL support (sectransp)"
|
104 |
+
},
|
105 |
+
"ssh": {
|
106 |
+
"description": "SSH support via libssh2",
|
107 |
+
"dependencies": [
|
108 |
+
{
|
109 |
+
"name": "curl",
|
110 |
+
"default-features": false,
|
111 |
+
"features": [
|
112 |
+
"non-http"
|
113 |
+
]
|
114 |
+
},
|
115 |
+
{
|
116 |
+
"name": "curl",
|
117 |
+
"default-features": false,
|
118 |
+
"features": [
|
119 |
+
"openssl"
|
120 |
+
]
|
121 |
+
},
|
122 |
+
"libssh2"
|
123 |
+
]
|
124 |
+
},
|
125 |
+
"ssl": {
|
126 |
+
"description": "Default SSL backend",
|
127 |
+
"dependencies": [
|
128 |
+
{
|
129 |
+
"name": "curl",
|
130 |
+
"default-features": false,
|
131 |
+
"features": [
|
132 |
+
"sectransp"
|
133 |
+
],
|
134 |
+
"platform": "osx"
|
135 |
+
},
|
136 |
+
{
|
137 |
+
"name": "curl",
|
138 |
+
"default-features": false,
|
139 |
+
"features": [
|
140 |
+
"schannel"
|
141 |
+
],
|
142 |
+
"platform": "(windows & !uwp) | mingw"
|
143 |
+
},
|
144 |
+
{
|
145 |
+
"name": "curl",
|
146 |
+
"default-features": false,
|
147 |
+
"features": [
|
148 |
+
"openssl"
|
149 |
+
],
|
150 |
+
"platform": "(uwp | !windows) & !osx & !mingw"
|
151 |
+
}
|
152 |
+
]
|
153 |
+
},
|
154 |
+
"sspi": {
|
155 |
+
"description": "SSPI support"
|
156 |
+
},
|
157 |
+
"tool": {
|
158 |
+
"description": "Builds curl executable"
|
159 |
+
},
|
160 |
+
"winidn": {
|
161 |
+
"description": "WinIDN support"
|
162 |
+
},
|
163 |
+
"winldap": {
|
164 |
+
"description": "LDAP support (WinLDAP). This feature does not include LDAPS support.",
|
165 |
+
"dependencies": [
|
166 |
+
{
|
167 |
+
"name": "curl",
|
168 |
+
"default-features": false,
|
169 |
+
"features": [
|
170 |
+
"non-http"
|
171 |
+
]
|
172 |
+
}
|
173 |
+
]
|
174 |
+
},
|
175 |
+
"winssl": {
|
176 |
+
"description": "Legacy name for schannel",
|
177 |
+
"dependencies": [
|
178 |
+
{
|
179 |
+
"name": "curl",
|
180 |
+
"default-features": false,
|
181 |
+
"features": [
|
182 |
+
"schannel"
|
183 |
+
]
|
184 |
+
}
|
185 |
+
]
|
186 |
+
}
|
187 |
+
}
|
188 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/fix-cmake.patch
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8b183a0..a801ae8 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -85,11 +85,12 @@ endif()
|
6 |
+
|
7 |
+
file(GLOB_RECURSE HeaderFileList "${CMAKE_CURRENT_SOURCE_DIR}/include/*")
|
8 |
+
file(GLOB_RECURSE SourceFileList "${CMAKE_CURRENT_SOURCE_DIR}/src/*")
|
9 |
+
+if(BUILD_SHARED_LIBS)
|
10 |
+
add_library(${PROJECT_NAME} SHARED ${HeaderFileList} ${SourceFileList})
|
11 |
+
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES} ${CONAN_LIBS})
|
12 |
+
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 1 VERSION 1.0.0)
|
13 |
+
-
|
14 |
+
-add_library(${PROJECT_NAME}_static STATIC ${HeaderFileList} ${SourceFileList})
|
15 |
+
+else()
|
16 |
+
+add_library(${PROJECT_NAME} STATIC ${HeaderFileList} ${SourceFileList})
|
17 |
+
|
18 |
+
# Make sure that on unix-platforms shared and static libraries have
|
19 |
+
# the same root name, but different suffixes.
|
20 |
+
@@ -97,19 +98,28 @@ add_library(${PROJECT_NAME}_static STATIC ${HeaderFileList} ${SourceFileList})
|
21 |
+
# (solution taken from https://cmake.org/Wiki/CMake_FAQ#How_do_I_make_my_shared_and_static_libraries_have_the_same_root_name.2C_but_different_suffixes.3F)
|
22 |
+
#
|
23 |
+
# Making shared and static libraries have the same root name, but different suffixes
|
24 |
+
-SET_TARGET_PROPERTIES(${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
25 |
+
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
26 |
+
# Now the library target "curlpp_static" will be named "curlpp.lib" with MS tools.
|
27 |
+
# This conflicts with the "curlpp.lib" import library corresponding to "curlpp.dll",
|
28 |
+
# so we add a "lib" prefix (which is default on other platforms anyway):
|
29 |
+
-SET_TARGET_PROPERTIES(${PROJECT_NAME}_static PROPERTIES PREFIX "lib")
|
30 |
+
-target_link_libraries(${PROJECT_NAME}_static ${CURL_LIBRARIES} ${CONAN_LIBS})
|
31 |
+
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES PREFIX "lib")
|
32 |
+
+target_link_libraries(${PROJECT_NAME} CURL::libcurl)
|
33 |
+
+endif()
|
34 |
+
+
|
35 |
+
+target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
|
36 |
+
|
37 |
+
# install headers
|
38 |
+
install(DIRECTORY include/utilspp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/utilspp")
|
39 |
+
install(DIRECTORY include/curlpp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/curlpp")
|
40 |
+
|
41 |
+
-install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_static
|
42 |
+
+install(TARGETS ${PROJECT_NAME}
|
43 |
+
+ EXPORT ${PROJECT_NAME}-config
|
44 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
45 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
46 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
47 |
+
|
48 |
+
+install(EXPORT ${PROJECT_NAME}-config
|
49 |
+
+ FILE unofficial-${PROJECT_NAME}-config.cmake
|
50 |
+
+ NAMESPACE unofficial::${PROJECT_NAME}::
|
51 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
52 |
+
+)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/fix-findzliberror.patch
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c42943c..12d402c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,3 +1,4 @@
|
6 |
+
+cmake_minimum_required(VERSION 2.8)
|
7 |
+
project(curlpp)
|
8 |
+
|
9 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jpbarrette/curlpp
|
4 |
+
REF 8810334c830faa3b38bcd94f5b1ab695a4f05eb9
|
5 |
+
SHA512 47eb0738d7cd2d4262c455f9472a21535343bcf08bda6de19771dab9204e068272b41782c87057d50e3781683a29e79d6387577be68d175a7fa890367f15d0d2
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-cmake.patch
|
9 |
+
fix-findzliberror.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT} PACKAGE_NAME unofficial-${PORT})
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
23 |
+
file(REMOVE_RECURSE
|
24 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
25 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
26 |
+
)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT (VCPKG_LIBRARY_LINKAGE STREQUAL static))
|
30 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/curlpp-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/..")
|
31 |
+
if(NOT VCPKG_BUILD_TYPE)
|
32 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curlpp-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
|
33 |
+
endif()
|
34 |
+
endif()
|
35 |
+
|
36 |
+
vcpkg_copy_pdbs()
|
37 |
+
vcpkg_fixup_pkgconfig()
|
38 |
+
|
39 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}")
|
40 |
+
file(INSTALL "${SOURCE_PATH}/doc/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(FIND_CURLPP_ARGS ${ARGS})
|
2 |
+
include(CMakeFindDependencyMacro)
|
3 |
+
find_dependency(CURL)
|
4 |
+
|
5 |
+
_find_package(${FIND_CURLPP_ARGS})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/curlpp/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "curlpp",
|
3 |
+
"version-date": "2018-06-15",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "C++ wrapper around libcURL",
|
6 |
+
"dependencies": [
|
7 |
+
"curl",
|
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/cute-headers/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO RandyGaul/cute_headers
|
6 |
+
REF 4f765abf4a59660e72f9f49c444371ba373e834b
|
7 |
+
SHA512 e898520dc668ce9d1f51c748da1c674f9fa0540bac7a0d10a45fde5ebb0ca6573dc5178ce41199a138e3153343b1ff0c589bc7908a8edcd4a7753d5a1440030b
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(GLOB CUTE_HEADERS_FILES ${SOURCE_PATH}/*.h)
|
12 |
+
file(COPY ${CUTE_HEADERS_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
13 |
+
|
14 |
+
# Handle copyright
|
15 |
+
file(STRINGS "${SOURCE_PATH}/cute_math2d.h" SOURCE_LINES)
|
16 |
+
list(REVERSE SOURCE_LINES)
|
17 |
+
|
18 |
+
set(line_no 0)
|
19 |
+
foreach(line ${SOURCE_LINES})
|
20 |
+
math(EXPR line_no "${line_no} + 1")
|
21 |
+
if(line STREQUAL "/*")
|
22 |
+
break()
|
23 |
+
endif()
|
24 |
+
endforeach()
|
25 |
+
|
26 |
+
list(SUBLIST SOURCE_LINES 0 ${line_no} SOURCE_LINES)
|
27 |
+
list(REVERSE SOURCE_LINES)
|
28 |
+
list(JOIN SOURCE_LINES "\n" _contents)
|
29 |
+
|
30 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "${_contents}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cute-headers/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cute-headers",
|
3 |
+
"version-string": "2019-09-20",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Collection of cross-platform one-file C/C++ libraries with no dependencies",
|
6 |
+
"homepage": "https://github.com/RandyGaul/cute_headers"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cutelyst2/fix-static-build.patch
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9a695fd..0667668 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -129,6 +129,33 @@ add_definitions(
|
6 |
+
-DQT_DISABLE_DEPRECATED_BEFORE=0x050c00
|
7 |
+
)
|
8 |
+
|
9 |
+
+if (BUILD_WIN_STATIC)
|
10 |
+
+ add_definitions(
|
11 |
+
+ -DCutelyst2Qt5_EXPORTS
|
12 |
+
+ -DActionRenderView_EXPORTS
|
13 |
+
+ -DActionREST_EXPORTS
|
14 |
+
+ -DActionRoleACL_EXPORTS
|
15 |
+
+ -DCutelyst2Qt5Authentication_EXPORTS
|
16 |
+
+ -DCutelyst2Qt5Session_EXPORTS
|
17 |
+
+ -DCutelyst2Qt5StaticSimple_EXPORTS
|
18 |
+
+ -DCutelyst2Qt5StaticCompressed_EXPORTS
|
19 |
+
+ -DCutelyst2Qt5UtilsPagination_EXPORTS
|
20 |
+
+ -DCutelyst2Qt5StatusMessage_EXPORTS
|
21 |
+
+ -DCutelyst2Qt5Memcached_EXPORTS
|
22 |
+
+ -DCutelyst2Qt5MemcachedSessionStore_EXPORTS
|
23 |
+
+ -DCutelyst2Qt5CSRFProtection_EXPORTS
|
24 |
+
+ -DCutelyst2Qt5UtilsSql_EXPORTS
|
25 |
+
+ -DCutelyst2Qt5UtilsValidator_EXPORTS
|
26 |
+
+ -DCutelyst2Qt5UtilsLangSelect_EXPORTS
|
27 |
+
+ -DCutelyst2Qt5ViewClearSilver_EXPORTS
|
28 |
+
+ -DCutelyst2Qt5ViewEmail_EXPORTS
|
29 |
+
+ -DCutelyst2Qt5ViewGrantlee_EXPORTS
|
30 |
+
+ -DCutelyst2Qt5ViewJson_EXPORTS
|
31 |
+
+ -DCutelyst2Qt5Wsgi_EXPORTS
|
32 |
+
+ -DCutelyst2Qt5UserAgent_EXPORTS
|
33 |
+
+ )
|
34 |
+
+endif()
|
35 |
+
+
|
36 |
+
set(CMAKE_CXX_STANDARD 11)
|
37 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
38 |
+
set(CMAKE_CXX_EXTENSIONS OFF)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cutelyst2/portfile.cmake
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO cutelyst/cutelyst
|
4 |
+
REF 526aef6b4c1a48f8e91d59607763fade9157d01f # v2.12.0
|
5 |
+
SHA512 0960801ae8d772a93e3f2dcd221f919ff28000076cecd4d1a2ff7b6e62575805738292257e63a48e455f6fc0bc446c90214fc33679ea1deb17b0c31d6f125e2a
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES fix-static-build.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
set(BUILD_WIN_STATIC OFF)
|
11 |
+
if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
12 |
+
set(BUILD_WIN_STATIC ON)
|
13 |
+
endif()
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS
|
18 |
+
-DBUILD_TESTS:BOOL=OFF
|
19 |
+
-DBUILD_WIN_STATIC=${BUILD_WIN_STATIC}
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
# Move CMake config files to the right place
|
25 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Cutelyst2Qt5)
|
26 |
+
|
27 |
+
file(GLOB EXES "${CURRENT_PACKAGES_DIR}/bin/cutelyst2" "${CURRENT_PACKAGES_DIR}/bin/cutelyst2-wsgi" "${CURRENT_PACKAGES_DIR}/bin/cutelyst2.exe" "${CURRENT_PACKAGES_DIR}/bin/cutelyst-wsgi2.exe")
|
28 |
+
file(GLOB DEBUG_EXES "${CURRENT_PACKAGES_DIR}/debug/bin/cutelyst2" "${CURRENT_PACKAGES_DIR}/debug/bin/cutelyst2-wsgi" "${CURRENT_PACKAGES_DIR}/debug/bin/cutelyst2.exe" "${CURRENT_PACKAGES_DIR}/debug/bin/cutelyst-wsgi2.exe")
|
29 |
+
if(EXES OR DEBUG_EXES)
|
30 |
+
file(COPY ${EXES} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/cutelyst2")
|
31 |
+
file(REMOVE ${EXES} ${DEBUG_EXES})
|
32 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/cutelyst2")
|
33 |
+
endif()
|
34 |
+
|
35 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cutelyst2-plugins/ActionREST.dll")
|
36 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/cutelyst2-plugins" "${CURRENT_PACKAGES_DIR}/bin/cutelyst2-plugins")
|
37 |
+
endif()
|
38 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/cutelyst2-plugins/ActionREST.dll")
|
39 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/cutelyst2-plugins" "${CURRENT_PACKAGES_DIR}/debug/bin/cutelyst2-plugins")
|
40 |
+
endif()
|
41 |
+
|
42 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
44 |
+
|
45 |
+
# Handle copyright
|
46 |
+
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/cutelyst2/copyright" COPYONLY)
|
47 |
+
|
48 |
+
vcpkg_copy_pdbs()
|
49 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
50 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
51 |
+
else()
|
52 |
+
vcpkg_fixup_pkgconfig()
|
53 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cutelyst2/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cutelyst2",
|
3 |
+
"version": "2.12.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A C++ Web Framework built on top of Qt, using the simple approach of Catalyst (Perl) framework",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "qt5-base",
|
9 |
+
"default-features": false
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cwalk/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO likle/cwalk
|
4 |
+
REF v1.2.6
|
5 |
+
SHA512 d43f339178367facd2f80944f5491631edab24fa4a92e30fd8f4d9c533ec3a2edbc04105066148be8458b64d0fac9e7d86408ca9601db291b93df222dc875fd4
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DENABLE_TESTS=OFF
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_copy_pdbs()
|
17 |
+
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cwalk)
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cwalk/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cwalk",
|
3 |
+
"version": "1.2.6",
|
4 |
+
"description": "Path library for C/C++. Cross-Platform for Windows, MacOS and Linux. Supports UNIX and Windows path styles on those platforms.",
|
5 |
+
"homepage": "https://likle.github.io/cwalk/",
|
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/cxxopts/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jarro2783/cxxopts
|
4 |
+
REF v3.0.0
|
5 |
+
SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DCXXOPTS_BUILD_EXAMPLES=OFF
|
13 |
+
-DCXXOPTS_BUILD_TESTS=OFF
|
14 |
+
-DCXXOPTS_ENABLE_WARNINGS=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cxxopts)
|
20 |
+
|
21 |
+
vcpkg_fixup_pkgconfig()
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
24 |
+
|
25 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cxxopts" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cxxopts/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cxxopts",
|
3 |
+
"version-semver": "3.0.0",
|
4 |
+
"description": "This is a lightweight C++ option parser library, supporting the standard GNU style syntax for options",
|
5 |
+
"homepage": "https://github.com/jarro2783/cxxopts",
|
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/czmq/Findlibcurl.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_package(CURL CONFIG QUIET)
|
2 |
+
|
3 |
+
if(CURL_FOUND)
|
4 |
+
set(LIBCURL_INCLUDE_DIRS ${CURL_INCLUDE_DIRS})
|
5 |
+
set(LIBCURL_LIBRARIES CURL::libcurl)
|
6 |
+
set(LIBCURL_FOUND TRUE)
|
7 |
+
message(STATUS "Found libcurl: ${LIBCURL_LIBRARIES}")
|
8 |
+
else()
|
9 |
+
set(LIBCURL_FOUND FALSE)
|
10 |
+
message(STATUS "Could not find libcurl")
|
11 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Findlibmicrohttpd.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_path(LIBMICROHTTPD_INCLUDE_DIR NAMES microhttpd.h)
|
2 |
+
|
3 |
+
get_filename_component(_prefix_path ${LIBMICROHTTPD_INCLUDE_DIR} PATH)
|
4 |
+
|
5 |
+
find_library(
|
6 |
+
LIBMICROHTTPD_LIBRARY_DEBUG
|
7 |
+
NAMES libmicrohttpd-dll_d libmicrohttpd microhttpd
|
8 |
+
PATHS ${_prefix_path}/debug/lib
|
9 |
+
NO_DEFAULT_PATH
|
10 |
+
)
|
11 |
+
|
12 |
+
find_library(
|
13 |
+
LIBMICROHTTPD_LIBRARY_RELEASE
|
14 |
+
NAMES libmicrohttpd-dll libmicrohttpd microhttpd
|
15 |
+
PATHS ${_prefix_path}/lib
|
16 |
+
NO_DEFAULT_PATH
|
17 |
+
)
|
18 |
+
|
19 |
+
unset(_prefix_path)
|
20 |
+
|
21 |
+
include(SelectLibraryConfigurations)
|
22 |
+
select_library_configurations(LIBMICROHTTPD)
|
23 |
+
|
24 |
+
include(FindPackageHandleStandardArgs)
|
25 |
+
find_package_handle_standard_args(
|
26 |
+
LIBMICROHTTPD
|
27 |
+
REQUIRED_VARS LIBMICROHTTPD_LIBRARY LIBMICROHTTPD_INCLUDE_DIR
|
28 |
+
)
|
29 |
+
|
30 |
+
if(LIBMICROHTTPD_FOUND)
|
31 |
+
set(LIBMICROHTTPD_INCLUDE_DIRS ${LIBMICROHTTPD_INCLUDE_DIR})
|
32 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Findlibzmq.cmake
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_package(ZeroMQ CONFIG REQUIRED)
|
2 |
+
|
3 |
+
set(LIBZMQ_INCLUDE_DIRS ${ZeroMQ_INCLUDE_DIR})
|
4 |
+
set(LIBZMQ_LIBRARIES libzmq libzmq-static)
|
5 |
+
set(LIBZMQ_FOUND TRUE)
|
6 |
+
message(STATUS "Found libzmq: ${LIBZMQ_LIBRARIES}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Findlz4.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_path(LZ4_INCLUDE_DIR NAMES lz4.h)
|
2 |
+
|
3 |
+
find_library(LZ4_LIBRARY_DEBUG NAMES lz4d)
|
4 |
+
find_library(LZ4_LIBRARY_RELEASE NAMES lz4)
|
5 |
+
|
6 |
+
include(SelectLibraryConfigurations)
|
7 |
+
select_library_configurations(LZ4)
|
8 |
+
|
9 |
+
include(FindPackageHandleStandardArgs)
|
10 |
+
find_package_handle_standard_args(
|
11 |
+
LZ4
|
12 |
+
REQUIRED_VARS LZ4_LIBRARY LZ4_INCLUDE_DIR
|
13 |
+
)
|
14 |
+
|
15 |
+
if(LZ4_FOUND)
|
16 |
+
set(LZ4_INCLUDE_DIRS ${LZ4_INCLUDE_DIR})
|
17 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/Finduuid.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_path(
|
2 |
+
UUID_INCLUDE_DIR
|
3 |
+
NAMES uuid/uuid.h
|
4 |
+
)
|
5 |
+
|
6 |
+
get_filename_component(_prefix_path ${UUID_INCLUDE_DIR} PATH)
|
7 |
+
|
8 |
+
find_library(
|
9 |
+
UUID_LIBRARY_DEBUG
|
10 |
+
NAMES uuid
|
11 |
+
PATHS ${_prefix_path}/debug/lib
|
12 |
+
NO_DEFAULT_PATH
|
13 |
+
)
|
14 |
+
|
15 |
+
find_library(
|
16 |
+
UUID_LIBRARY_RELEASE
|
17 |
+
NAMES uuid
|
18 |
+
PATHS ${_prefix_path}/lib
|
19 |
+
NO_DEFAULT_PATH
|
20 |
+
)
|
21 |
+
|
22 |
+
unset(_prefix_path)
|
23 |
+
|
24 |
+
include(SelectLibraryConfigurations)
|
25 |
+
select_library_configurations(UUID)
|
26 |
+
|
27 |
+
include(FindPackageHandleStandardArgs)
|
28 |
+
find_package_handle_standard_args(
|
29 |
+
UUID
|
30 |
+
REQUIRED_VARS UUID_LIBRARY UUID_INCLUDE_DIR
|
31 |
+
)
|
32 |
+
|
33 |
+
if(UUID_FOUND)
|
34 |
+
set(UUID_INCLUDE_DIRS ${UUID_INCLUDE_DIR})
|
35 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/fix-dependencies.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/builds/cmake/Config.cmake.in b/builds/cmake/Config.cmake.in
|
2 |
+
index 9c15f36a..5afff016 100644
|
3 |
+
--- a/builds/cmake/Config.cmake.in
|
4 |
+
+++ b/builds/cmake/Config.cmake.in
|
5 |
+
@@ -1,4 +1,12 @@
|
6 |
+
@PACKAGE_INIT@
|
7 |
+
|
8 |
+
+include(CMakeFindDependencyMacro)
|
9 |
+
+
|
10 |
+
+find_dependency(ZeroMQ)
|
11 |
+
+
|
12 |
+
+if ("@CZMQ_WITH_LIBCURL@" AND "@LIBCURL_FOUND@")
|
13 |
+
+ find_dependency(CURL)
|
14 |
+
+endif ()
|
15 |
+
+
|
16 |
+
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
|
17 |
+
check_required_components("@PROJECT_NAME@")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/portfile.cmake
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO zeromq/czmq
|
4 |
+
REF v4.2.1
|
5 |
+
SHA512 65a21f7bd5935b119e1b24ce3b2ce8462031ab7c9a4ba587bb99fe618c9f8cb672cfa202993ddd79e0fb0f154ada06560b79a1b4f762fcce8f88f2f450ecee01
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-dependencies.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
foreach(_cmake_module
|
12 |
+
Findlibcurl.cmake
|
13 |
+
Findlibmicrohttpd.cmake
|
14 |
+
Findlibzmq.cmake
|
15 |
+
Findlz4.cmake
|
16 |
+
Finduuid.cmake
|
17 |
+
)
|
18 |
+
file(COPY
|
19 |
+
${CMAKE_CURRENT_LIST_DIR}/${_cmake_module}
|
20 |
+
DESTINATION ${SOURCE_PATH}
|
21 |
+
)
|
22 |
+
endforeach()
|
23 |
+
|
24 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
25 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
|
26 |
+
|
27 |
+
vcpkg_check_features(
|
28 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
29 |
+
FEATURES
|
30 |
+
draft ENABLE_DRAFTS
|
31 |
+
curl CZMQ_WITH_LIBCURL
|
32 |
+
httpd CZMQ_WITH_LIBMICROHTTPD
|
33 |
+
lz4 CZMQ_WITH_LZ4
|
34 |
+
uuid CZMQ_WITH_UUID
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_cmake_configure(
|
38 |
+
SOURCE_PATH ${SOURCE_PATH}
|
39 |
+
DISABLE_PARALLEL_CONFIGURE
|
40 |
+
OPTIONS
|
41 |
+
-DCZMQ_BUILD_SHARED=${BUILD_SHARED}
|
42 |
+
-DCZMQ_BUILD_STATIC=${BUILD_STATIC}
|
43 |
+
-DBUILD_TESTING=OFF
|
44 |
+
${FEATURE_OPTIONS}
|
45 |
+
)
|
46 |
+
|
47 |
+
vcpkg_cmake_install()
|
48 |
+
|
49 |
+
vcpkg_copy_pdbs()
|
50 |
+
|
51 |
+
if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake)
|
52 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
53 |
+
endif()
|
54 |
+
if(EXISTS ${CURRENT_PACKAGES_DIR}/share/cmake/${PORT})
|
55 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/${PORT})
|
56 |
+
endif()
|
57 |
+
|
58 |
+
vcpkg_fixup_pkgconfig()
|
59 |
+
|
60 |
+
file(COPY
|
61 |
+
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
|
62 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
63 |
+
)
|
64 |
+
|
65 |
+
if ("tool" IN_LIST FEATURES)
|
66 |
+
vcpkg_copy_tools(TOOL_NAMES zmakecert)
|
67 |
+
endif()
|
68 |
+
|
69 |
+
vcpkg_clean_executables_in_bin(FILE_NAMES zmakecert)
|
70 |
+
|
71 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
72 |
+
|
73 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
74 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/czmq_library.h
|
75 |
+
"if defined CZMQ_STATIC"
|
76 |
+
"if 1 //if defined CZMQ_STATIC"
|
77 |
+
)
|
78 |
+
endif()
|
79 |
+
|
80 |
+
# Handle copyright
|
81 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
|
3 |
+
if(TARGET czmq AND NOT TARGET czmq-static)
|
4 |
+
add_library(czmq-static INTERFACE IMPORTED)
|
5 |
+
set_target_properties(czmq-static PROPERTIES INTERFACE_LINK_LIBRARIES czmq)
|
6 |
+
elseif(TARGET czmq-static AND NOT TARGET czmq)
|
7 |
+
add_library(czmq INTERFACE IMPORTED)
|
8 |
+
set_target_properties(czmq PROPERTIES INTERFACE_LINK_LIBRARIES czmq-static)
|
9 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/czmq/vcpkg.json
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "czmq",
|
3 |
+
"version-semver": "4.2.1",
|
4 |
+
"description": "High-level C binding for ZeroMQ",
|
5 |
+
"homepage": "https://github.com/zeromq/czmq",
|
6 |
+
"license": "MPL-2.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"zeromq"
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"curl": {
|
20 |
+
"description": "Build with libcurl",
|
21 |
+
"dependencies": [
|
22 |
+
"curl"
|
23 |
+
]
|
24 |
+
},
|
25 |
+
"draft": {
|
26 |
+
"description": "Build and install draft APIs"
|
27 |
+
},
|
28 |
+
"httpd": {
|
29 |
+
"description": "Build with HTTP server support (libmicrohttpd)",
|
30 |
+
"dependencies": [
|
31 |
+
"libmicrohttpd"
|
32 |
+
]
|
33 |
+
},
|
34 |
+
"lz4": {
|
35 |
+
"description": "Build with lz4",
|
36 |
+
"dependencies": [
|
37 |
+
"lz4"
|
38 |
+
]
|
39 |
+
},
|
40 |
+
"tool": {
|
41 |
+
"description": "Build and install czmq tools (zmakecert)"
|
42 |
+
},
|
43 |
+
"uuid": {
|
44 |
+
"description": "Build with libuuid",
|
45 |
+
"dependencies": [
|
46 |
+
{
|
47 |
+
"name": "libuuid",
|
48 |
+
"platform": "!windows & !uwp & !osx"
|
49 |
+
}
|
50 |
+
]
|
51 |
+
}
|
52 |
+
}
|
53 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3d12-memory-allocator/CMakeLists.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(d3d12-memory-allocator)
|
3 |
+
|
4 |
+
add_library(${PROJECT_NAME} STATIC
|
5 |
+
"src/D3D12MemAlloc.h"
|
6 |
+
"src/D3D12MemAlloc.cpp"
|
7 |
+
)
|
8 |
+
|
9 |
+
set_target_properties(${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "src/D3D12MemAlloc.h")
|
10 |
+
#target_include_directories(${PROJECT_NAME} PRIVATE "src/")
|
11 |
+
|
12 |
+
install(
|
13 |
+
TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-config
|
14 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
15 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
16 |
+
PUBLIC_HEADER DESTINATION include/
|
17 |
+
)
|
18 |
+
install(
|
19 |
+
EXPORT ${PROJECT_NAME}-config DESTINATION cmake/
|
20 |
+
NAMESPACE "unofficial::"
|
21 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3d12-memory-allocator/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator
|
6 |
+
REF 10f148cef0dfd34ae1a9373b9396beb1581c992a
|
7 |
+
SHA512 c99934a606ce5a5c9c59e05faf2e659bfad2e485b58aaf00f38219a6c89f17b62033f4a69935915f0d5269a4f0ecba41037b044913ae6f4077fa981eaab470c8
|
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 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake/)
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3d12-memory-allocator/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "d3d12-memory-allocator",
|
3 |
+
"version-date": "2021-05-05",
|
4 |
+
"description": "Easy to integrate D3d12 memory allocation library from GPUOpen",
|
5 |
+
"homepage": "https://gpuopen.com/gaming-product/d3d12-memory-allocator/",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "windows",
|
8 |
+
"dependencies": [
|
9 |
+
"directx-headers",
|
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/d3dx12/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VERSION may2021)
|
2 |
+
|
3 |
+
# The official D3DX12.H is hosted on https://github.com/microsoft/DirectX-Headers.
|
4 |
+
#
|
5 |
+
# This port uses the version from directx-vs-templates instead because it is compatible with multiple
|
6 |
+
# versions of the Windows 10 SDK. The official version only supports the 'latest' Windows 10 SDK.
|
7 |
+
|
8 |
+
message(NOTICE "Consider using the 'directx-headers' port instead. See https://aka.ms/directx12agility")
|
9 |
+
|
10 |
+
vcpkg_download_distfile(D3DX12_H
|
11 |
+
URLS "https://raw.githubusercontent.com/walbourn/directx-vs-templates/${VERSION}/d3d12game_win32_dr/d3dx12.h"
|
12 |
+
FILENAME "directx-vs-templates-${VERSION}-d3dx12.h"
|
13 |
+
SHA512 b053a8e6593c701a0827f8a52f20e160070b8b71242fd60a57617e46b87e909e11f814fc15b084b4f83b7ff5b9a562280da64a77cee3a171ef17839315df4245
|
14 |
+
)
|
15 |
+
vcpkg_download_distfile(LICENSE
|
16 |
+
URLS "https://raw.githubusercontent.com/walbourn/directx-vs-templates/${VERSION}/LICENSE"
|
17 |
+
FILENAME "directx-vs-templates-${VERSION}-LICENSE"
|
18 |
+
SHA512 ce7d8ec7bfb58ef36a95b20f6f0fc4e3cd4923bb3ac6bd1f62e8215df2ee83d2a594ce84b15951310f05a819a0370468af781e73a10e536d23965421466851f4
|
19 |
+
)
|
20 |
+
|
21 |
+
file(INSTALL "${D3DX12_H}" DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME d3dx12.h)
|
22 |
+
file(INSTALL "${LICENSE}" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/d3dx12/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "d3dx12",
|
3 |
+
"version-string": "may2021",
|
4 |
+
"description": "The D3D12 Helper Library",
|
5 |
+
"homepage": "https://docs.microsoft.com/en-us/windows/win32/direct3d12/helper-structures-and-functions-for-d3d12"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/darknet/portfile.cmake
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO AlexeyAB/darknet
|
4 |
+
REF 8a0bf84c19e38214219dbd3345f04ce778426c57
|
5 |
+
SHA512 6253d5b498f4f6eba7fc539d5a4b4e163139f4841623f11d84760bcf1ffabe6519f85e98e3d4aeac6846313fea3b98451407134b6b6f5b91137c62d1647109d9
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
cuda ENABLE_CUDA
|
12 |
+
cudnn ENABLE_CUDNN
|
13 |
+
)
|
14 |
+
|
15 |
+
#do not move following features to vcpkg_check_features because they break themselves: one off will turn off the others even if true
|
16 |
+
set(ENABLE_OPENCV FALSE)
|
17 |
+
if ("opencv-base" IN_LIST FEATURES OR "opencv2-base" IN_LIST FEATURES OR "opencv3-base" IN_LIST FEATURES OR "opencv-cuda" IN_LIST FEATURES OR "opencv2-cuda" IN_LIST FEATURES OR "opencv3-cuda" IN_LIST FEATURES)
|
18 |
+
set(ENABLE_OPENCV TRUE)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if ("cuda" IN_LIST FEATURES)
|
22 |
+
if (NOT VCPKG_CMAKE_SYSTEM_NAME AND NOT ENV{CUDACXX})
|
23 |
+
#CMake looks for nvcc only in PATH and CUDACXX env vars for the Ninja generator. Since we filter path on vcpkg and CUDACXX env var is not set by CUDA installer on Windows, CMake cannot find CUDA when using Ninja generator, so we need to manually enlight it if necessary (https://gitlab.kitware.com/cmake/cmake/issues/19173). Otherwise we could just disable Ninja and use MSBuild, but unfortunately CUDA installer does not integrate with some distributions of MSBuild (like the ones inside Build Tools), making CUDA unavailable otherwise in those cases, which we want to avoid
|
24 |
+
set(ENV{CUDACXX} "$ENV{CUDA_PATH}/bin/nvcc.exe")
|
25 |
+
endif()
|
26 |
+
endif()
|
27 |
+
|
28 |
+
#make sure we don't use any integrated pre-built library nor any unnecessary CMake module
|
29 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/3rdparty")
|
30 |
+
file(REMOVE "${SOURCE_PATH}/cmake/Modules/FindPThreads_windows.cmake")
|
31 |
+
file(REMOVE "${SOURCE_PATH}/cmake/Modules/FindCUDNN.cmake")
|
32 |
+
file(REMOVE "${SOURCE_PATH}/cmake/Modules/FindStb.cmake")
|
33 |
+
|
34 |
+
vcpkg_cmake_configure(
|
35 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
36 |
+
DISABLE_PARALLEL_CONFIGURE
|
37 |
+
OPTIONS ${FEATURE_OPTIONS}
|
38 |
+
-DINSTALL_BIN_DIR:STRING=bin
|
39 |
+
-DINSTALL_LIB_DIR:STRING=lib
|
40 |
+
-DENABLE_OPENCV:BOOL=${ENABLE_OPENCV}
|
41 |
+
)
|
42 |
+
|
43 |
+
vcpkg_cmake_install()
|
44 |
+
vcpkg_copy_tools(AUTO_CLEAN TOOL_NAMES darknet uselib)
|
45 |
+
if ("opencv-cuda" IN_LIST FEATURES OR "opencv3-cuda" IN_LIST FEATURES)
|
46 |
+
vcpkg_copy_tools(AUTO_CLEAN TOOL_NAMES uselib_track)
|
47 |
+
endif()
|
48 |
+
|
49 |
+
file(COPY "${SOURCE_PATH}/cfg" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
50 |
+
file(COPY "${SOURCE_PATH}/data" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
51 |
+
|
52 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
54 |
+
endif()
|
55 |
+
|
56 |
+
vcpkg_cmake_config_fixup()
|
57 |
+
|
58 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
59 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
60 |
+
|
61 |
+
file(INSTALL "${SOURCE_PATH}/scripts/download_weights.ps1" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/scripts")
|
62 |
+
message(STATUS "To download weight files, please go to ${CURRENT_INSTALLED_DIR}/tools/${PORT}/scripts and run ./download_weights.ps1")
|
63 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/darknet/vcpkg.json
ADDED
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "darknet",
|
3 |
+
"version-date": "2022-03-06",
|
4 |
+
"description": "Darknet is an open source neural network framework written in C and CUDA. You only look once (YOLO) is a state-of-the-art, real-time object detection system, best example of darknet functionalities.",
|
5 |
+
"homepage": "https://github.com/alexeyab/darknet",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
"pthreads",
|
9 |
+
"stb",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"features": {
|
20 |
+
"cuda": {
|
21 |
+
"description": "Build darknet with support for CUDA",
|
22 |
+
"dependencies": [
|
23 |
+
"cuda"
|
24 |
+
]
|
25 |
+
},
|
26 |
+
"cudnn": {
|
27 |
+
"description": "Build darknet with support for cuDNN",
|
28 |
+
"dependencies": [
|
29 |
+
"cuda",
|
30 |
+
"cudnn"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"full": {
|
34 |
+
"description": "Build darknet fully featured",
|
35 |
+
"dependencies": [
|
36 |
+
{
|
37 |
+
"name": "darknet",
|
38 |
+
"features": [
|
39 |
+
"cuda",
|
40 |
+
"cudnn",
|
41 |
+
"opencv-cuda"
|
42 |
+
]
|
43 |
+
}
|
44 |
+
]
|
45 |
+
},
|
46 |
+
"opencv-base": {
|
47 |
+
"description": "Build darknet with support for latest version of OpenCV",
|
48 |
+
"dependencies": [
|
49 |
+
{
|
50 |
+
"name": "opencv",
|
51 |
+
"features": [
|
52 |
+
"contrib",
|
53 |
+
"dnn",
|
54 |
+
"ffmpeg"
|
55 |
+
]
|
56 |
+
}
|
57 |
+
]
|
58 |
+
},
|
59 |
+
"opencv-cuda": {
|
60 |
+
"description": "Build darknet with support for latest version of CUDA-enabled OpenCV",
|
61 |
+
"dependencies": [
|
62 |
+
{
|
63 |
+
"name": "opencv",
|
64 |
+
"features": [
|
65 |
+
"contrib",
|
66 |
+
"cuda",
|
67 |
+
"dnn",
|
68 |
+
"ffmpeg"
|
69 |
+
]
|
70 |
+
}
|
71 |
+
]
|
72 |
+
},
|
73 |
+
"opencv2-base": {
|
74 |
+
"description": "Build darknet with support for OpenCV2",
|
75 |
+
"dependencies": [
|
76 |
+
{
|
77 |
+
"name": "opencv2",
|
78 |
+
"features": [
|
79 |
+
"ffmpeg"
|
80 |
+
]
|
81 |
+
}
|
82 |
+
]
|
83 |
+
},
|
84 |
+
"opencv2-cuda": {
|
85 |
+
"description": "Build darknet with support for CUDA-enabled OpenCV2",
|
86 |
+
"dependencies": [
|
87 |
+
{
|
88 |
+
"name": "opencv2",
|
89 |
+
"features": [
|
90 |
+
"cuda",
|
91 |
+
"ffmpeg"
|
92 |
+
]
|
93 |
+
}
|
94 |
+
]
|
95 |
+
},
|
96 |
+
"opencv3-base": {
|
97 |
+
"description": "Build darknet with support for OpenCV3",
|
98 |
+
"dependencies": [
|
99 |
+
{
|
100 |
+
"name": "opencv3",
|
101 |
+
"features": [
|
102 |
+
"contrib",
|
103 |
+
"dnn",
|
104 |
+
"ffmpeg"
|
105 |
+
]
|
106 |
+
}
|
107 |
+
]
|
108 |
+
},
|
109 |
+
"opencv3-cuda": {
|
110 |
+
"description": "Build darknet with support for CUDA-enabled OpenCV3",
|
111 |
+
"dependencies": [
|
112 |
+
{
|
113 |
+
"name": "opencv3",
|
114 |
+
"features": [
|
115 |
+
"contrib",
|
116 |
+
"cuda",
|
117 |
+
"dnn",
|
118 |
+
"ffmpeg"
|
119 |
+
]
|
120 |
+
}
|
121 |
+
]
|
122 |
+
}
|
123 |
+
}
|
124 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/darts-clone/CMakeLists.txt
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(darts)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
add_library(darts src/darts.cc)
|
9 |
+
|
10 |
+
target_include_directories(darts
|
11 |
+
PUBLIC
|
12 |
+
$<INSTALL_INTERFACE:include>
|
13 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
14 |
+
PRIVATE
|
15 |
+
${CMAKE_CURRENT_SOURCE_DIR}/src
|
16 |
+
)
|
17 |
+
|
18 |
+
install(
|
19 |
+
TARGETS darts
|
20 |
+
RUNTIME DESTINATION bin
|
21 |
+
LIBRARY DESTINATION lib
|
22 |
+
ARCHIVE DESTINATION lib
|
23 |
+
)
|
24 |
+
|
25 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
26 |
+
install(
|
27 |
+
DIRECTORY include/ DESTINATION include/
|
28 |
+
)
|
29 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/darts-clone/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(
|
2 |
+
ONLY_STATIC_LIBRARY
|
3 |
+
)
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO s-yata/darts-clone
|
7 |
+
REF 1767ab87cffe7302856d1bb41e1c21b1df93f19e
|
8 |
+
SHA512 63112a4d8d6302d2602a8f161bf5fe5ec1b5b3b3097de9b28331f5261d76c06efb48601c08df26f242ddc881b917928baf54f24ccebac65da29e94380b6db0f5
|
9 |
+
HEAD_REF master
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
13 |
+
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
OPTIONS_DEBUG
|
19 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_install_cmake()
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
file(REMOVE ${CURRENT_PACKAGES_DIR}/include/Makefile.am)
|
26 |
+
|
27 |
+
file(INSTALL ${SOURCE_PATH}/COPYING.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/darts-clone RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/darts-clone/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "darts-clone",
|
3 |
+
"version-string": "1767ab87cffe",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A static double-array trie structure"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dartsim/disable_unit_tests_examples_and_tutorials.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9940065eb8..b25fa4919a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -298,7 +298,7 @@ add_subdirectory(dart)
|
6 |
+
|
7 |
+
set(DART_IN_SOURCE_BUILD TRUE)
|
8 |
+
|
9 |
+
-if(TARGET dart)
|
10 |
+
+if(false)
|
11 |
+
|
12 |
+
# Add a "tests" target to build unit tests.
|
13 |
+
enable_testing()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dartsim/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Shared library support is broken upstream (https://github.com/dartsim/dart/issues/1005#issuecomment-375406260)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO dartsim/dart
|
7 |
+
REF v6.11.0
|
8 |
+
SHA512 01fbff039bcec71d41334db2d07d0973b1ba58d30d05b29e35e1e3cee853917753b64e1101881113a33adb801559855d38d274fbb3383cfb24d85565254d112d
|
9 |
+
HEAD_REF main
|
10 |
+
PATCHES
|
11 |
+
disable_unit_tests_examples_and_tutorials.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS
|
17 |
+
-DDART_VERBOSE=ON
|
18 |
+
-DDART_MSVC_DEFAULT_OPTIONS=ON
|
19 |
+
-DDART_SKIP_DOXYGEN=ON
|
20 |
+
-DDART_SKIP_FLANN=ON
|
21 |
+
-DDART_SKIP_IPOPT=ON
|
22 |
+
-DDART_SKIP_NLOPT=ON
|
23 |
+
-DDART_SKIP_OPENGL=ON
|
24 |
+
-DDART_SKIP_pagmo=ON
|
25 |
+
-Durdfdom_headers_VERSION_MAJOR=1
|
26 |
+
-Durdfdom_headers_VERSION_MINOR=0
|
27 |
+
-Durdfdom_headers_VERSION_PATCH=4
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_install()
|
31 |
+
|
32 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/dart/cmake PACKAGE_NAME dart)
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
37 |
+
|
38 |
+
# only used for tests and examples (we removed the examples in share/doc above):
|
39 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dart/config.hpp" "#define DART_ROOT_PATH \"${SOURCE_PATH}/\"" "")
|
40 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dart/config.hpp" "#define DART_DATA_PATH \"${SOURCE_PATH}/data/\"" "")
|
41 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dart/config.hpp" "#define DART_DATA_LOCAL_PATH \"${SOURCE_PATH}/data/\"" "")
|
42 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/dart/config.hpp" "#define DART_DATA_GLOBAL_PATH \"${CURRENT_PACKAGES_DIR}/share/doc/dart/data/\"" "")
|
43 |
+
|
44 |
+
# Handle copyright
|
45 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dartsim/vcpkg.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dartsim",
|
3 |
+
"version": "6.11.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Dynamic Animation and Robotics Toolkit",
|
6 |
+
"homepage": "https://dartsim.github.io/",
|
7 |
+
"dependencies": [
|
8 |
+
"assimp",
|
9 |
+
"boost-algorithm",
|
10 |
+
"boost-filesystem",
|
11 |
+
"boost-functional",
|
12 |
+
"boost-lexical-cast",
|
13 |
+
"boost-math",
|
14 |
+
"boost-optional",
|
15 |
+
"boost-regex",
|
16 |
+
"boost-system",
|
17 |
+
"bullet3",
|
18 |
+
"ccd",
|
19 |
+
"eigen3",
|
20 |
+
"fcl",
|
21 |
+
"octomap",
|
22 |
+
"ode",
|
23 |
+
"tinyxml2",
|
24 |
+
"urdfdom",
|
25 |
+
{
|
26 |
+
"name": "vcpkg-cmake",
|
27 |
+
"host": true
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "vcpkg-cmake-config",
|
31 |
+
"host": true
|
32 |
+
}
|
33 |
+
]
|
34 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dataframe/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO hosseinmoein/DataFrame
|
4 |
+
REF 1.19.0
|
5 |
+
SHA512 4415644b04d9c3b5ab3487ee896d0f020f0659d71b8bc128a649e14c6edb22c4848d228016a0108a122060d5aa9452260a3936761cf228eb7a7a436a64f031ff
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
vcpkg_cmake_configure(
|
9 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
10 |
+
OPTIONS
|
11 |
+
-DENABLE_TESTING:BOOL=OFF
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
|
16 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
17 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
18 |
+
else()
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/DataFrame)
|
20 |
+
endif()
|
21 |
+
vcpkg_fixup_pkgconfig()
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
24 |
+
|
25 |
+
file(INSTALL "${SOURCE_PATH}/License" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/dataframe/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dataframe",
|
3 |
+
"version": "1.19.0",
|
4 |
+
"description": "This is a C++ statistical library that provides an interface similar to Pandas package in Python",
|
5 |
+
"homepage": "https://github.com/hosseinmoein/DataFrame",
|
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 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/date/0001-fix-uwp.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git i/include/date/date.h w/include/date/date.h
|
2 |
+
index fce6200..6a77ad4 100644
|
3 |
+
--- i/include/date/date.h
|
4 |
+
+++ w/include/date/date.h
|
5 |
+
@@ -82,7 +82,7 @@
|
6 |
+
#ifdef _MSC_VER
|
7 |
+
# pragma warning(push)
|
8 |
+
// warning C4127: conditional expression is constant
|
9 |
+
-# pragma warning(disable : 4127)
|
10 |
+
+# pragma warning(disable : 4127 4996)
|
11 |
+
#endif
|
12 |
+
|
13 |
+
namespace date
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/date/0002-fix-cmake-3.14.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index ad74900..42d55af 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -73,7 +73,7 @@ target_sources( date INTERFACE
|
6 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/date/iso_week.h>
|
7 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/date/julian.h>
|
8 |
+
)
|
9 |
+
-if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.15)
|
10 |
+
+if (0)
|
11 |
+
# public headers will get installed:
|
12 |
+
set_target_properties( date PROPERTIES PUBLIC_HEADER include/date/date.h )
|
13 |
+
endif ()
|
14 |
+
@@ -144,7 +144,6 @@ if( BUILD_TZ_LIB )
|
15 |
+
endif( )
|
16 |
+
set_target_properties( date-tz PROPERTIES
|
17 |
+
POSITION_INDEPENDENT_CODE ON
|
18 |
+
- PUBLIC_HEADER "${TZ_HEADERS}"
|
19 |
+
VERSION "${PROJECT_VERSION}"
|
20 |
+
SOVERSION "${ABI_VERSION}" )
|
21 |
+
if( NOT MSVC )
|
22 |
+
@@ -169,8 +169,8 @@ write_basic_package_version_file( "${version_config}"
|
23 |
+
COMPATIBILITY SameMajorVersion )
|
24 |
+
|
25 |
+
install( TARGETS date
|
26 |
+
- EXPORT dateConfig
|
27 |
+
- PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
28 |
+
+ EXPORT dateConfig )
|
29 |
+
+install( FILES include/date/date.h ${TZ_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/date )
|
30 |
+
export( TARGETS date NAMESPACE date:: FILE dateTargets.cmake )
|
31 |
+
if (CMAKE_VERSION VERSION_LESS 3.15)
|
32 |
+
install(
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/date/fix-uninitialized-values.patch
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/date/date.h b/include/date/date.h
|
2 |
+
index 9c6f335..3967d6b 100644
|
3 |
+
--- a/include/date/date.h
|
4 |
+
+++ b/include/date/date.h
|
5 |
+
@@ -6767,7 +6767,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
6 |
+
CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width;
|
7 |
+
int tH;
|
8 |
+
int tM;
|
9 |
+
- long double S;
|
10 |
+
+ long double S{};
|
11 |
+
read(is, ru{tH, 1, 2}, CharT{':'}, ru{tM, 1, 2},
|
12 |
+
CharT{':'}, rld{S, 1, w});
|
13 |
+
checked_set(H, tH, not_a_hour, is);
|
14 |
+
@@ -7202,7 +7202,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
15 |
+
// "%I:%M:%S %p"
|
16 |
+
using dfs = detail::decimal_format_seconds<Duration>;
|
17 |
+
CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width;
|
18 |
+
- long double S;
|
19 |
+
+ long double S{};
|
20 |
+
int tI = not_a_hour_12_value;
|
21 |
+
int tM = not_a_minute;
|
22 |
+
read(is, ru{tI, 1, 2}, CharT{':'}, ru{tM, 1, 2},
|
23 |
+
@@ -7258,7 +7258,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
24 |
+
{
|
25 |
+
using dfs = detail::decimal_format_seconds<Duration>;
|
26 |
+
CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width;
|
27 |
+
- long double S;
|
28 |
+
+ long double S{};
|
29 |
+
read(is, rld{S, 1, width == -1 ? w : static_cast<unsigned>(width)});
|
30 |
+
checked_set(s, round_i<Duration>(duration<long double>{S}),
|
31 |
+
not_a_second, is);
|
32 |
+
@@ -7292,7 +7292,7 @@ from_stream(std::basic_istream<CharT, Traits>& is, const CharT* fmt,
|
33 |
+
CONSTDATA auto w = Duration::period::den == 1 ? 2 : 3 + dfs::width;
|
34 |
+
int tH = not_a_hour;
|
35 |
+
int tM = not_a_minute;
|
36 |
+
- long double S;
|
37 |
+
+ long double S{};
|
38 |
+
read(is, ru{tH, 1, 2}, CharT{':'}, ru{tM, 1, 2},
|
39 |
+
CharT{':'}, rld{S, 1, w});
|
40 |
+
checked_set(H, tH, not_a_hour, is);
|