Techt3o commited on
Commit
9395918
·
verified ·
1 Parent(s): 5e0986d

0cd0e22a683daaec9f1d175cfe2df75462db4de2e790523d0380ca8242ca182e

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-consul/portfile.cmake +25 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-consul/vcpkg.json +17 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-curl/fix-find-curl.patch +51 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-curl/portfile.cmake +26 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-curl/vcpkg.json +18 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-libressl/libress-submodule-downgrade-required-libressl-version.patch +63 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-libressl/portfile.cmake +28 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-libressl/vcpkg.json +18 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mbedtls/find-mbedtls.patch +135 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mbedtls/portfile.cmake +25 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mbedtls/vcpkg.json +18 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mongo/portfile.cmake +27 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mongo/vcpkg.json +17 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-openssl/portfile.cmake +25 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-openssl/vcpkg.json +18 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-postgresql/portfile.cmake +27 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-postgresql/vcpkg.json +18 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-sqlite/portfile.cmake +25 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-sqlite/vcpkg.json +18 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/fix_String_to_string.patch +20 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/fix_win_close.patch +20 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/portfile.cmake +28 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/vcpkg.json +17 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-swagger/portfile.cmake +32 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-swagger/vcpkg.json +17 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-websocket/portfile.cmake +31 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-websocket/vcpkg.json +17 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-zlib/portfile.cmake +27 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-zlib/vcpkg.json +17 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp/portfile.cmake +32 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp/vcpkg.json +16 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/observer-ptr-lite/portfile.cmake +29 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/observer-ptr-lite/vcpkg.json +6 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ocilib/fix-DisableWC4191.patch +40 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ocilib/portfile.cmake +51 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ocilib/vcpkg.json +9 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/001-fix-exported-targets.patch +78 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/portfile.cmake +46 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake +15 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/vcpkg.json +7 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ode/portfile.cmake +29 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ode/vcpkg.json +17 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/offscale-libetcd-cpp/fix-dependency-grpc.patch +13 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/offscale-libetcd-cpp/install-debug.patch +11 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake +20 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/offscale-libetcd-cpp/vcpkg.json +19 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ogdf/fix-c4723.patch +13 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ogdf/portfile.cmake +27 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ogdf/vcpkg.json +7 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ogre/disable-dependency-qt.patch +14 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-consul/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-consul
8
+ REF ${OATPP_VERSION}
9
+ SHA512 b7bfff564e70fe94f99e959e8bc095b6cda704764c54e3837fc5f808b610c9197fbd0d601cb481a9cbf0d17fc1dece8d7cce6881a604fccbe63bd9b1c2b871f0
10
+ HEAD_REF master
11
+ )
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
17
+ "-DCMAKE_CXX_FLAGS=-D_CRT_SECURE_NO_WARNINGS"
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-consul CONFIG_PATH lib/cmake/oatpp-consul-${OATPP_VERSION})
22
+ vcpkg_copy_pdbs()
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
25
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-consul/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-consul",
3
+ "version": "1.3.0",
4
+ "description": "OAT++ Modern web framework consul module.",
5
+ "homepage": "https://github.com/oatpp/oatpp-consul",
6
+ "dependencies": [
7
+ "oatpp",
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/oatpp-curl/fix-find-curl.patch ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 85edfe7..a8aa02b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -94,7 +94,7 @@ message("## ${OATPP_THIS_MODULE_NAME} module. Resolving dependencies...\n")
6
+
7
+ ##############################
8
+ ## Find libcurl dependency
9
+ -
10
+ +if(0)
11
+ include(FindPkgConfig)
12
+ pkg_check_modules(PKG_CURL REQUIRED libcurl)
13
+
14
+ @@ -103,9 +103,10 @@ message("[libcurl] LIBRARIES=${PKG_CURL_LIBRARIES}")
15
+ message("[libcurl] LIBRARY_DIRS=${PKG_CURL_LIBRARY_DIRS}")
16
+ message("[libcurl] INCLUDE_DIRS=${PKG_CURL_INCLUDE_DIRS}")
17
+ message("[libcurl] VERSION=${PKG_CURL_VERSION}\n")
18
+ -
19
+ +endif()
20
+ +find_package(CURL CONFIG REQUIRED)
21
+ link_directories(
22
+ - ${PKG_CURL_LIBRARY_DIRS}
23
+ + CURL::libcurl
24
+ )
25
+
26
+ message("\n############################################################################\n")
27
+ diff --git a/cmake/module-config.cmake.in b/cmake/module-config.cmake.in
28
+ index 5cc12b0..4ff34bc 100644
29
+ --- a/cmake/module-config.cmake.in
30
+ +++ b/cmake/module-config.cmake.in
31
+ @@ -1,5 +1,6 @@
32
+ @PACKAGE_INIT@
33
+ -
34
+ +include(CMakeFindDependencyMacro)
35
+ +find_dependency(CURL)
36
+ if(NOT TARGET oatpp::@OATPP_MODULE_NAME@)
37
+ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
38
+ endif()
39
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
40
+ index 8c2087f..1da41c6 100644
41
+ --- a/src/CMakeLists.txt
42
+ +++ b/src/CMakeLists.txt
43
+ @@ -43,7 +43,7 @@ target_include_directories(${OATPP_THIS_MODULE_NAME}
44
+ #)
45
+
46
+ target_link_libraries(${OATPP_THIS_MODULE_NAME}
47
+ - PRIVATE ${PKG_CURL_LIBRARIES}
48
+ + PRIVATE CURL::libcurl
49
+ )
50
+
51
+ #######################################################################################################
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-curl/portfile.cmake ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-curl
8
+ REF ${OATPP_VERSION}
9
+ SHA512 d9437a6b3a214bf0f17561e905709d741cd7d5fcad30ec0cdddeaacb3a72142bf8b24034d13201cd416898ffd0ab07ca50ec66d4025406acee1518ae65dac45e
10
+ HEAD_REF master
11
+ PATCHES "fix-find-curl.patch"
12
+ )
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ OPTIONS
17
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
18
+ "-DCMAKE_CXX_FLAGS=-D_CRT_SECURE_NO_WARNINGS"
19
+ )
20
+
21
+ vcpkg_cmake_install()
22
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-curl CONFIG_PATH lib/cmake/oatpp-curl-${OATPP_VERSION})
23
+ vcpkg_copy_pdbs()
24
+
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
26
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-curl/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-curl",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ Modern web framework curl module to use libcurl as a RequestExecutor on the oatpp's ApiClient.",
5
+ "homepage": "https://github.com/oatpp/oatpp-curl",
6
+ "dependencies": [
7
+ "curl",
8
+ "oatpp",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-libressl/libress-submodule-downgrade-required-libressl-version.patch ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 4663a65..b91077a 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -95,19 +95,25 @@ message("## ${OATPP_THIS_MODULE_NAME} module. Resolving dependencies...\n")
6
+ ##############################
7
+ ## Find Libressl dependency
8
+
9
+ -include(FindPkgConfig)
10
+ -list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/module")
11
+ -
12
+ -find_package(LibreSSL 3.0.0 REQUIRED)
13
+ -
14
+ -message("LIBRESSL_INCLUDE_DIR=${LIBRESSL_INCLUDE_DIR}")
15
+ -message("LIBRESSL_TLS_LIBRARY=${LIBRESSL_TLS_LIBRARY}")
16
+ -message("LIBRESSL_SSL_LIBRARY=${LIBRESSL_SSL_LIBRARY}")
17
+ -message("LIBRESSL_CRYPTO_LIBRARY=${LIBRESSL_CRYPTO_LIBRARY}")
18
+ -message("LIBRESSL_LIBRARIES=${LIBRESSL_LIBRARIES}")
19
+ -message("LIBRESSL_VERSION=${LIBRESSL_VERSION}")
20
+ -
21
+ -message("\n############################################################################\n")
22
+ +find_file(LIBRESSL_INCLUDE_DIR tls.h)
23
+ +if (NOT LIBRESSL_INCLUDE_DIR)
24
+ + find_file(_OPENSSL_SSL_INCLUDE_FILE openssl/ssl.h)
25
+ + if (NOT _OPENSSL_SSL_INCLUDE_FILE)
26
+ + message(FATAL_ERROR "LibreSSL and OpenSSL not found. LibreSSL must be installed.")
27
+ + else()
28
+ + message(FATAL_ERROR "OpenSSL installed instead of LibreSSL. oatpp-libressl requires LibreSSL.")
29
+ + endif()
30
+ +endif()
31
+ +get_filename_component(LIBRESSL_INCLUDE_DIR ${LIBRESSL_INCLUDE_DIR} DIRECTORY)
32
+ +find_library(LIBRESSL_TLS_LIBRARY NAMES tls tls-21 tls-20 tls-19)
33
+ +find_library(LIBRESSL_SSL_LIBRARY NAMES ssl ssl-49 ssl-48 ssl-47)
34
+ +find_library(LIBRESSL_CRYPTO_LIBRARY NAMES crypto crypto-47 crypto-46 crypto-45)
35
+ +find_library(LIBRESSL_LIBRARIES "${LIBRESSL_CRYPTO_LIBRARY};${LIBRESSL_SSL_LIBRARY};${LIBRESSL_TLS_LIBRARY}")
36
+ +message(STATUS "LIBRESSL_INCLUDE_DIR=${LIBRESSL_INCLUDE_DIR}")
37
+ +message(STATUS "LIBRESSL_TLS_LIBRARY=${LIBRESSL_TLS_LIBRARY}")
38
+ +message(STATUS "LIBRESSL_SSL_LIBRARY=${LIBRESSL_SSL_LIBRARY}")
39
+ +message(STATUS "LIBRESSL_CRYPTO_LIBRARY=${LIBRESSL_CRYPTO_LIBRARY}")
40
+ +message(STATUS "LIBRESSL_LIBRARIES=${LIBRESSL_LIBRARIES}")
41
+
42
+ ###################################################################################################
43
+ ## define targets
44
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
45
+ index ace3b13..489fbb1 100644
46
+ --- a/src/CMakeLists.txt
47
+ +++ b/src/CMakeLists.txt
48
+ @@ -30,10 +30,12 @@ target_include_directories(${OATPP_THIS_MODULE_NAME}
49
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
50
+ )
51
+
52
+ +target_include_directories(${OATPP_THIS_MODULE_NAME}
53
+ + SYSTEM PRIVATE "${LIBRESSL_INCLUDE_DIR}"
54
+ +)
55
+ +
56
+ target_link_libraries(${OATPP_THIS_MODULE_NAME}
57
+ - PUBLIC LibreSSL::TLS
58
+ - PUBLIC LibreSSL::SSL
59
+ - PUBLIC LibreSSL::Crypto
60
+ + PUBLIC "${LIBRESSL_TLS_LIBRARY}" "${LIBRESSL_SSL_LIBRARY}" "${LIBRESSL_CRYPTO_LIBRARY}"
61
+ )
62
+
63
+ #######################################################################################################
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-libressl/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ # get the source
6
+ vcpkg_from_github(
7
+ OUT_SOURCE_PATH SOURCE_PATH
8
+ REPO oatpp/oatpp-libressl
9
+ REF ${OATPP_VERSION}
10
+ SHA512 8f16c4e0341dc20e4a8a5fcdcf8e58bac1cfbef51b8cac6f5ca4894acf296333fcc2b8f34c6353cbd31a1f2f2be021550ce859489a45f388f4b5ccec4c67eee9
11
+ HEAD_REF master
12
+ PATCHES "libress-submodule-downgrade-required-libressl-version.patch"
13
+ )
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
19
+ "-DCMAKE_CXX_FLAGS=-D_CRT_SECURE_NO_WARNINGS"
20
+ "-DLIBRESSL_ROOT_DIR=${CURRENT_INSTALLED_DIR}"
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-libressl CONFIG_PATH lib/cmake/oatpp-libressl-${OATPP_VERSION})
25
+ vcpkg_copy_pdbs()
26
+
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
28
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-libressl/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-libressl",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ libressl module providing secure server and client connection providers.",
5
+ "homepage": "https://github.com/oatpp/oatpp-libressl",
6
+ "dependencies": [
7
+ "libressl",
8
+ "oatpp",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mbedtls/find-mbedtls.patch ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 6b1e8c0f2..b0ef5518d 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -97,7 +97,7 @@ message("## ${OATPP_THIS_MODULE_NAME} module. Resolving dependencies...\n")
6
+ include(FindPkgConfig)
7
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake/module")
8
+
9
+ -find_package(mbedtls 2.16.0 REQUIRED)
10
+ +find_package(mbedtls 2.16.3 REQUIRED)
11
+
12
+ message("MBEDTLS_INCLUDE_DIR=${MBEDTLS_INCLUDE_DIR}")
13
+ message("MBEDTLS_TLS_LIBRARY=${MBEDTLS_TLS_LIBRARY}")
14
+ diff --git a/cmake/module/Findmbedtls.cmake b/cmake/module/Findmbedtls.cmake
15
+ index 8c76d0a73..5c223a615 100644
16
+ --- a/cmake/module/Findmbedtls.cmake
17
+ +++ b/cmake/module/Findmbedtls.cmake
18
+ @@ -14,10 +14,10 @@ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
20
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21
+
22
+ -FindmbedTLS
23
+ +Findmbedtls
24
+ ------------
25
+
26
+ -Find the mbedTLS encryption library.
27
+ +Find the mbedtls encryption library.
28
+
29
+ Optional Components
30
+ ^^^^^^^^^^^^^^^^^^^
31
+ @@ -31,16 +31,16 @@ Imported Targets
32
+ This module defines the following imported targets:
33
+
34
+ mbedtls::Crypto
35
+ - The mbedTLS crypto library, if found.
36
+ + The mbedtls crypto library, if found.
37
+
38
+ mbedtls::X509
39
+ - The mbedTLS x509 library, if found.
40
+ + The mbedtls x509 library, if found.
41
+
42
+ mbedtls::SSL
43
+ - The mbedTLS ssl library, if found. Requires and includes mbedtls::Crypto automatically.
44
+ + The mbedtls ssl library, if found. Requires and includes mbedtls::Crypto automatically.
45
+
46
+ mbedtls::TLS
47
+ - The mbedTLS tls library, if found. Requires and includes mbedtls::SSL and mbedtls::Crypto automatically.
48
+ + The mbedtls tls library, if found. Requires and includes mbedtls::SSL and mbedtls::Crypto automatically.
49
+
50
+ Result Variables
51
+ ^^^^^^^^^^^^^^^^
52
+ @@ -48,26 +48,26 @@ Result Variables
53
+ This module will set the following variables in your project:
54
+
55
+ MBEDTLS_FOUND
56
+ - System has the mbedTLS library. If no components are requested it only requires the crypto library.
57
+ + System has the mbedtls library. If no components are requested it only requires the crypto library.
58
+ MBEDTLS_INCLUDE_DIR
59
+ - The mbedTLS include directory.
60
+ + The mbedtls include directory.
61
+ MBEDTLS_X509_LIBRARY
62
+ - The mbedTLS crypto library.
63
+ + The mbedtls crypto library.
64
+ MBEDTLS_CRYPTO_LIBRARY
65
+ - The mbedTLS crypto library.
66
+ + The mbedtls crypto library.
67
+ MBEDTLS_SSL_LIBRARY
68
+ - The mbedTLS SSL library.
69
+ + The mbedtls SSL library.
70
+ MBEDTLS_TLS_LIBRARY
71
+ - The mbedTLS TLS library.
72
+ + The mbedtls TLS library.
73
+ MBEDTLS_LIBRARIES
74
+ - All mbedTLS libraries.
75
+ + All mbedtls libraries.
76
+ MBEDTLS_VERSION
77
+ This is set to $major.$minor.$revision (e.g. 2.6.8).
78
+
79
+ Hints
80
+ ^^^^^
81
+
82
+ -Set MBEDTLS_ROOT_DIR to the root directory of an mbedTLS installation.
83
+ +Set MBEDTLS_ROOT_DIR to the root directory of an mbedtls installation.
84
+
85
+ ]=======================================================================]
86
+
87
+ @@ -175,7 +175,7 @@ if(MBEDTLS_INCLUDE_DIR AND EXISTS "${MBEDTLS_INCLUDE_DIR}/mbedtls/version.h")
88
+ endif()
89
+
90
+ # Set Find Package Arguments
91
+ -find_package_handle_standard_args(mbedTLS
92
+ +find_package_handle_standard_args(mbedtls
93
+ REQUIRED_VARS
94
+ MBEDTLS_X509_LIBRARY
95
+ MBEDTLS_TLS_LIBRARY
96
+ @@ -185,12 +185,12 @@ find_package_handle_standard_args(mbedTLS
97
+ MBEDTLS_VERSION
98
+ HANDLE_COMPONENTS
99
+ FAIL_MESSAGE
100
+ - "Could NOT find mbedTLS, try setting the path to mbedTLS using the MBEDTLS_ROOT_DIR environment variable"
101
+ + "Could NOT find mbedtls, try setting the path to mbedtls using the MBEDTLS_ROOT_DIR environment variable"
102
+ )
103
+
104
+ -# mbedTLS Found
105
+ -if(MBEDTLS_FOUND)
106
+ -
107
+ +# mbedtls Found
108
+ +if(mbedtls_FOUND)
109
+ + set(MBEDTLS_FOUND ${mbedtls_FOUND})
110
+ # Set mbedtls::Crypto
111
+ if(NOT TARGET mbedtls::Crypto AND EXISTS "${MBEDTLS_CRYPTO_LIBRARY}")
112
+
113
+ @@ -257,4 +257,4 @@ if(MBEDTLS_FOUND)
114
+
115
+ endif() # mbedtls::TLS
116
+
117
+ -endif(MBEDTLS_FOUND)
118
+ +endif(mbedtls_FOUND)
119
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
120
+ index 6811f05ea..d80430c3e 100644
121
+ --- a/src/CMakeLists.txt
122
+ +++ b/src/CMakeLists.txt
123
+ @@ -31,9 +31,9 @@ target_include_directories(${OATPP_THIS_MODULE_NAME}
124
+ )
125
+
126
+ target_link_libraries(${OATPP_THIS_MODULE_NAME}
127
+ - PRIVATE mbedtls::TLS
128
+ - PRIVATE mbedtls::X509
129
+ - PRIVATE mbedtls::Crypto
130
+ + PRIVATE ${MBEDTLS_TLS_LIBRARY}
131
+ + PRIVATE ${MBEDTLS_X509_LIBRARY}
132
+ + PRIVATE ${MBEDTLS_CRYPTO_LIBRARY}
133
+ )
134
+
135
+ if(${OATPP_MBEDTLS_DEBUG} GREATER 0)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mbedtls/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-mbedtls
8
+ REF ${OATPP_VERSION}
9
+ SHA512 3eea805f2a02110daec25b7455543c59d8e72acd37d412fa98cb1c90f58e4edcd9cc62c16331efcca36a524834fa0f314f2f69a7a4d0d1108a758f811a68e021
10
+ HEAD_REF master
11
+ PATCHES find-mbedtls.patch
12
+ )
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ OPTIONS
17
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-mbedtls CONFIG_PATH lib/cmake/oatpp-mbedtls-${OATPP_VERSION})
22
+ vcpkg_copy_pdbs()
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
25
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mbedtls/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-mbedtls",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ Mbed TLS submodule providing secure server and client connection providers.",
5
+ "homepage": "https://github.com/oatpp/oatpp-mbedtls",
6
+ "dependencies": [
7
+ "mbedtls",
8
+ "oatpp",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mongo/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-mongo
8
+ REF ${OATPP_VERSION}
9
+ SHA512 11f4164948feb63ed3f5e8554a54348e29cd4d90333761f98c37f4eb49f129c6589955755e8e052c5c29e6b2980f1bb899657415d6480c3ae7a50fc2445afbfe
10
+ HEAD_REF master
11
+ )
12
+
13
+ set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
14
+ set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-mongo CONFIG_PATH lib/cmake/oatpp-mongo-${OATPP_VERSION})
24
+ vcpkg_copy_pdbs()
25
+
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
27
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-mongo/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-mongo",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ MongoDB adapter for Oat++ ORM (native client). It contains DTO to BSON mapper plus database driver.",
5
+ "homepage": "https://github.com/oatpp/oatpp-mongo",
6
+ "dependencies": [
7
+ "oatpp",
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/oatpp-openssl/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ # get the source
6
+ vcpkg_from_github(
7
+ OUT_SOURCE_PATH SOURCE_PATH
8
+ REPO oatpp/oatpp-openssl
9
+ REF ${OATPP_VERSION}
10
+ SHA512 a358a98e4c7e779c4c799e55667af67530fea537103500bf07b62ee434e87241c8ce3899bd19945a942b81ae9df86e318f0a725a56f4cb7cfceb0f98e3c0378b
11
+ HEAD_REF master
12
+ )
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ OPTIONS
17
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-openssl CONFIG_PATH "lib/cmake/oatpp-openssl-${OATPP_VERSION}")
22
+ vcpkg_copy_pdbs()
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
25
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-openssl/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-openssl",
3
+ "version-semver": "1.3.0",
4
+ "description": "Oat++ openssl module providing secure server and client connection providers.",
5
+ "homepage": "https://github.com/oatpp/oatpp-openssl",
6
+ "dependencies": [
7
+ "oatpp",
8
+ "openssl",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-postgresql/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-postgresql
8
+ REF ${OATPP_VERSION}
9
+ SHA512 6926194ae7d77db2a071fcb805ce048954908cf18d59f3095e1bf779748d9e5b9ceb657d97b1fc8a6ebfcf71936b211e2b10e68a62983e847c68ab58e1f3f2ba
10
+ HEAD_REF master
11
+ )
12
+
13
+ set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
14
+ set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-postgresql CONFIG_PATH lib/cmake/oatpp-postgresql-${OATPP_VERSION})
24
+ vcpkg_copy_pdbs()
25
+
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
27
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-postgresql/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-postgresql",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ PostgreSQL adapter for Oat++ ORM (alpha - not all datatypes are supported).",
5
+ "homepage": "https://github.com/oatpp/oatpp-postgresql",
6
+ "dependencies": [
7
+ "libpq",
8
+ "oatpp",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-sqlite/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-sqlite
8
+ REF ${OATPP_VERSION}
9
+ SHA512 8a208145ee10ed858767b4b56c220b6befd83e6858759128103ce679b889e6218a95ed6627af5098e4d26367be8add82de26e1f1f8ef581b1913b8386f9d56de
10
+ HEAD_REF master
11
+ )
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
17
+ "-DCMAKE_CXX_FLAGS=-D_CRT_SECURE_NO_WARNINGS"
18
+ "-DOATPP_SQLITE_AMALGAMATION:BOOL=OFF"
19
+ )
20
+ vcpkg_cmake_install()
21
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-sqlite CONFIG_PATH lib/cmake/oatpp-sqlite-${OATPP_VERSION})
22
+ vcpkg_copy_pdbs()
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
25
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-sqlite/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-sqlite",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ SQLite adapter for Oat++ ORM.",
5
+ "homepage": "https://github.com/oatpp/oatpp-sqlite",
6
+ "dependencies": [
7
+ "oatpp",
8
+ "sqlite3",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/fix_String_to_string.patch ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp
2
+ index d351c1e..7c430e9 100644
3
+ --- i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp
4
+ +++ w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp
5
+ @@ -106,7 +106,7 @@ v_io_handle SimpleUdpStreamProvider::instantiateServer() {
6
+ hints.ai_flags = AI_PASSIVE;
7
+ auto portStr = oatpp::utils::conversion::int32ToStr(m_port);
8
+
9
+ - ret = getaddrinfo(NULL, (const char*)portStr->getData(), &hints, &result);
10
+ + ret = getaddrinfo(NULL, (const char*)portStr->c_str(), &hints, &result);
11
+ if (ret != 0) {
12
+ OATPP_LOGE("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]", "Error. Call to getaddrinfo() failed with result=%d: %s", ret, strerror(errno));
13
+ throw std::runtime_error("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]: Error. Call to getaddrinfo() failed.");
14
+ @@ -233,4 +233,4 @@ provider::ResourceHandle<data::stream::IOStream> SimpleUdpStreamProvider::get()
15
+ );
16
+ }
17
+
18
+ -}}
19
+
20
+ +}}
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/fix_win_close.patch ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp
2
+ index d351c1e..f5774bd 100644
3
+ --- i/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp
4
+ +++ w/src/oatpp-ssdp/SimpleUdpStreamProvider.cpp
5
+ @@ -129,7 +129,7 @@ v_io_handle SimpleUdpStreamProvider::instantiateServer() {
6
+
7
+ ret = bind(serverHandle, result->ai_addr, (int)result->ai_addrlen);
8
+ if (ret != 0) {
9
+ - ::close(serverHandle);
10
+ + ::_close(serverHandle);
11
+ OATPP_LOGE("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]", "Error. Failed to bind port %d: %s", m_port, strerror(errno));
12
+ throw std::runtime_error("[oatpp::ssdp::SimpleUdpStreamProvider::instantiateServer()]: Error. Can't bind to address: %s");
13
+ }
14
+ @@ -233,4 +233,4 @@ provider::ResourceHandle<data::stream::IOStream> SimpleUdpStreamProvider::get()
15
+ );
16
+ }
17
+
18
+ -}}
19
+
20
+ +}}
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-ssdp
8
+ REF ${OATPP_VERSION}
9
+ SHA512 ab6f10bb79cb058eb7ce4115327e2f2d85133753d02dc2b4339505cc2ed4ef8b6284b5e832d0e190de17b8ae70e0b9a99b1b074d0691ca9a613873e8d4e1ace8
10
+ HEAD_REF master
11
+ PATCHES
12
+ fix_String_to_string.patch
13
+ fix_win_close.patch
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
20
+ "-DCMAKE_CXX_FLAGS=-D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS"
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-ssdp CONFIG_PATH lib/cmake/oatpp-ssdp-${OATPP_VERSION})
25
+ vcpkg_copy_pdbs()
26
+
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
28
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-ssdp/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-ssdp",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ SSDP (Simple Service Discovery Protocol) submodule.",
5
+ "homepage": "https://github.com/oatpp/oatpp-ssdp",
6
+ "dependencies": [
7
+ "oatpp",
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/oatpp-swagger/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-swagger
8
+ REF ${OATPP_VERSION}
9
+ SHA512 5b4ced90690f484ebe15c3a0be47b1b851fb7b650e70c99fddc20430724aac8eff89d8c6187df750bd2ceff0e1144336f258d740fc10cdfa67a65a2f3b00d80b
10
+ HEAD_REF master
11
+ )
12
+
13
+ if (VCPKG_CRT_LINKAGE STREQUAL "static")
14
+ set(OATPP_MSVC_LINK_STATIC_RUNTIME TRUE)
15
+ else()
16
+ set(OATPP_MSVC_LINK_STATIC_RUNTIME FALSE)
17
+ endif()
18
+
19
+ vcpkg_cmake_configure(
20
+ SOURCE_PATH "${SOURCE_PATH}"
21
+ OPTIONS
22
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
23
+ "-DCMAKE_CXX_FLAGS=-D_CRT_SECURE_NO_WARNINGS"
24
+ "-DOATPP_MSVC_LINK_STATIC_RUNTIME=${OATPP_MSVC_LINK_STATIC_RUNTIME}"
25
+ )
26
+
27
+ vcpkg_cmake_install()
28
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-swagger CONFIG_PATH lib/cmake/oatpp-swagger-${OATPP_VERSION})
29
+ vcpkg_copy_pdbs()
30
+
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
32
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-swagger/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-swagger",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ OpenApi (Swagger) UI submodule.",
5
+ "homepage": "https://github.com/oatpp/oatpp-swagger",
6
+ "dependencies": [
7
+ "oatpp",
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/oatpp-websocket/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-websocket
8
+ REF ${OATPP_VERSION}
9
+ SHA512 e5d5f974da4fd95599352d04d18422c74b274be50a803cdb0b65674ebde8dfe8587c44ddb8b376ad866de06841935687be4294ac5954f33f0a087b009da23177
10
+ HEAD_REF master
11
+ )
12
+
13
+ if (VCPKG_CRT_LINKAGE STREQUAL "static")
14
+ set(OATPP_MSVC_LINK_STATIC_RUNTIME TRUE)
15
+ else()
16
+ set(OATPP_MSVC_LINK_STATIC_RUNTIME FALSE)
17
+ endif()
18
+
19
+ vcpkg_cmake_configure(
20
+ SOURCE_PATH "${SOURCE_PATH}"
21
+ OPTIONS
22
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
23
+ "-DOATPP_MSVC_LINK_STATIC_RUNTIME=${OATPP_MSVC_LINK_STATIC_RUNTIME}"
24
+ )
25
+
26
+ vcpkg_cmake_install()
27
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-websocket CONFIG_PATH lib/cmake/oatpp-websocket-${OATPP_VERSION})
28
+ vcpkg_copy_pdbs()
29
+
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
31
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-websocket/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-websocket",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ websocket module.",
5
+ "homepage": "https://github.com/oatpp/oatpp-websocket",
6
+ "dependencies": [
7
+ "oatpp",
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/oatpp-zlib/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp-zlib
8
+ REF ${OATPP_VERSION}
9
+ SHA512 574f0440cbb2cd2bc14ad89e33538a1a300ad23ecc941629b74aa8ccb9aeae5158b1b57e2f1af09d7a6b9b97430a5685354677002dab2261120afa9c6ea74381
10
+ HEAD_REF master
11
+ )
12
+
13
+ set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
14
+ set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-zlib CONFIG_PATH lib/cmake/oatpp-zlib-${OATPP_VERSION})
24
+ vcpkg_copy_pdbs()
25
+
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
27
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp-zlib/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp-zlib",
3
+ "version": "1.3.0",
4
+ "description": "Oat++ functionality for automatically compressing/decompressing content with deflate and gzip.",
5
+ "homepage": "https://github.com/oatpp/oatpp-zlib",
6
+ "dependencies": [
7
+ "oatpp",
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/oatpp/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(OATPP_VERSION "1.3.0")
2
+
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO oatpp/oatpp
8
+ REF ${OATPP_VERSION}
9
+ SHA512 4fe8587efe1b4ecae14554ec8edb209e5558a3e4a4e6ff49bbfaaf06d2cc12f2cc306c5edc43b8dafc465aff53098ad4bebb9971694761b91a553730d5acb59a
10
+ HEAD_REF master
11
+ )
12
+
13
+ if (VCPKG_CRT_LINKAGE STREQUAL "static")
14
+ set(OATPP_MSVC_LINK_STATIC_RUNTIME TRUE)
15
+ else()
16
+ set(OATPP_MSVC_LINK_STATIC_RUNTIME FALSE)
17
+ endif()
18
+
19
+ vcpkg_cmake_configure(
20
+ SOURCE_PATH "${SOURCE_PATH}"
21
+ OPTIONS
22
+ "-DOATPP_BUILD_TESTS:BOOL=OFF"
23
+ "-DCMAKE_CXX_FLAGS=-D_CRT_SECURE_NO_WARNINGS"
24
+ "-DOATPP_MSVC_LINK_STATIC_RUNTIME=${OATPP_MSVC_LINK_STATIC_RUNTIME}"
25
+ )
26
+
27
+ vcpkg_cmake_install()
28
+ vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp CONFIG_PATH lib/cmake/oatpp-${OATPP_VERSION})
29
+ vcpkg_copy_pdbs()
30
+
31
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
32
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/oatpp/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "oatpp",
3
+ "version": "1.3.0",
4
+ "description": "Modern web framework.",
5
+ "homepage": "https://github.com/oatpp/oatpp",
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/observer-ptr-lite/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO martinmoene/observer-ptr-lite
4
+ REF v0.4.0
5
+ SHA512 4e53d8e0ce595604880bda423440071e7c207dd63e7b6bfa09cc7a870a010f09c51c31e640142c565ce261c4911acab13c6e9f5970853ad8fc2da3e4034ab7d7
6
+ )
7
+
8
+ vcpkg_configure_cmake(
9
+ SOURCE_PATH ${SOURCE_PATH}
10
+ PREFER_NINJA
11
+ OPTIONS
12
+ -DNSOP_OPT_BUILD_TESTS=OFF
13
+ -DNSOP_OPT_BUILD_EXAMPLES=OFF
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+
18
+ vcpkg_fixup_cmake_targets(
19
+ CONFIG_PATH lib/cmake/${PORT}
20
+ )
21
+
22
+ file(REMOVE_RECURSE
23
+ ${CURRENT_PACKAGES_DIR}/debug
24
+ ${CURRENT_PACKAGES_DIR}/lib
25
+ )
26
+
27
+ file(INSTALL
28
+ ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
29
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/observer-ptr-lite/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "observer-ptr-lite",
3
+ "version-string": "0.4.0",
4
+ "port-version": 1,
5
+ "description": "A C++17-like observer_ptr for C++98 and later in a single-file header-only library"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ocilib/fix-DisableWC4191.patch ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/proj/dll/ocilib_dll_vs2019.vcxproj b/proj/dll/ocilib_dll_vs2019.vcxproj
2
+ index 2d5b3bf..35e4684 100644
3
+ --- a/proj/dll/ocilib_dll_vs2019.vcxproj
4
+ +++ b/proj/dll/ocilib_dll_vs2019.vcxproj
5
+ @@ -116,7 +116,7 @@
6
+ <PrecompiledHeader>
7
+ </PrecompiledHeader>
8
+ <WarningLevel>EnableAllWarnings</WarningLevel>
9
+ - <TreatWarningAsError>true</TreatWarningAsError>
10
+ + <TreatWarningAsError>false</TreatWarningAsError>
11
+ <DebugInformationFormat>
12
+ </DebugInformationFormat>
13
+ <CompileAs>CompileAsC</CompileAs>
14
+ @@ -173,7 +173,7 @@
15
+ </DebugInformationFormat>
16
+ <CompileAs>CompileAsC</CompileAs>
17
+ <DisableSpecificWarnings>4255;4668;4996;4710;4711;4738;4774;4820;5045</DisableSpecificWarnings>
18
+ - <TreatWarningAsError>true</TreatWarningAsError>
19
+ + <TreatWarningAsError>false</TreatWarningAsError>
20
+ </ClCompile>
21
+ <ResourceCompile>
22
+ <PreprocessorDefinitions>OCI_CHARSET_ANSI;%(PreprocessorDefinitions)</PreprocessorDefinitions>
23
+ @@ -223,7 +223,7 @@
24
+ </DebugInformationFormat>
25
+ <CompileAs>CompileAsC</CompileAs>
26
+ <DisableSpecificWarnings>4255;4668;4996;4710;4711;4738;4774;4820;5045</DisableSpecificWarnings>
27
+ - <TreatWarningAsError>true</TreatWarningAsError>
28
+ + <TreatWarningAsError>false</TreatWarningAsError>
29
+ </ClCompile>
30
+ <ResourceCompile>
31
+ <PreprocessorDefinitions>OCI_CHARSET_WIDE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
32
+ @@ -276,7 +276,7 @@
33
+ </DebugInformationFormat>
34
+ <CompileAs>CompileAsC</CompileAs>
35
+ <DisableSpecificWarnings>4255;4668;4996;4710;4711;4738;4774;4820;5045</DisableSpecificWarnings>
36
+ - <TreatWarningAsError>true</TreatWarningAsError>
37
+ + <TreatWarningAsError>false</TreatWarningAsError>
38
+ </ClCompile>
39
+ <ResourceCompile>
40
+ <PreprocessorDefinitions>OCI_CHARSET_WIDE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ocilib/portfile.cmake ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO vrogier/ocilib
4
+ REF v4.7.3
5
+ SHA512 80cf1f76420b506789b1f7edd9af826801236499dd0757be3438e3cdf286b95ddd7dd35909622b3862244f6b535a8744f0b25989fb3740a4a0fd984410fb420b
6
+ HEAD_REF master
7
+ PATCHES fix-DisableWC4191.patch
8
+ )
9
+
10
+ if(VCPKG_TARGET_IS_WINDOWS)
11
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
12
+ set(PLATFORM x86)
13
+ else()
14
+ set(PLATFORM x64)
15
+ endif()
16
+
17
+ # There is no debug configuration
18
+ # As it is a C library, build the release configuration and copy its output to the debug folder
19
+ set(VCPKG_BUILD_TYPE release)
20
+ vcpkg_install_msbuild(
21
+ SOURCE_PATH "${SOURCE_PATH}"
22
+ PROJECT_SUBPATH proj/dll/ocilib_dll_vs2019.sln
23
+ INCLUDES_SUBPATH include
24
+ LICENSE_SUBPATH LICENSE
25
+ RELEASE_CONFIGURATION "Release - ANSI"
26
+ PLATFORM ${PLATFORM}
27
+ USE_VCPKG_INTEGRATION
28
+ ALLOW_ROOT_INCLUDES)
29
+
30
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug")
31
+ file(COPY "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug")
32
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
33
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
34
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
35
+ endif()
36
+ else()
37
+ vcpkg_configure_make(
38
+ COPY_SOURCE
39
+ AUTOCONFIG
40
+ SOURCE_PATH "${SOURCE_PATH}"
41
+ OPTIONS
42
+ --with-oracle-import=runtime
43
+ )
44
+
45
+ vcpkg_install_make()
46
+ vcpkg_fixup_pkgconfig()
47
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
48
+ file(RENAME "${CURRENT_PACKAGES_DIR}/share/doc/${PORT}" "${CURRENT_PACKAGES_DIR}/share/${PORT}")
49
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
50
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
51
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ocilib/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ocilib",
3
+ "version": "4.7.3",
4
+ "port-version": 2,
5
+ "description": "OCILIB is an open source and cross platform Oracle Driver that delivers efficient access to Oracle databases.",
6
+ "homepage": "https://vrogier.github.io/ocilib/",
7
+ "license": "Apache-2.0",
8
+ "supports": "!(arm | uwp)"
9
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/001-fix-exported-targets.patch ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/octomap/src/CMakeLists.txt b/octomap/src/CMakeLists.txt
2
+ index 45b384f..ab1b6b1 100644
3
+ --- a/octomap/src/CMakeLists.txt
4
+ +++ b/octomap/src/CMakeLists.txt
5
+ @@ -8,17 +8,16 @@ SET (octomap_SRCS
6
+ OcTreeNode.cpp
7
+ OcTreeStamped.cpp
8
+ ColorOcTree.cpp
9
+ - )
10
+ +)
11
+ +
12
+
13
+ -# dynamic and static libs, see CMake FAQ:
14
+ -ADD_LIBRARY( octomap SHARED ${octomap_SRCS})
15
+ -set_target_properties( octomap PROPERTIES
16
+ +ADD_LIBRARY(octomap ${octomap_SRCS})
17
+ +set_target_properties(octomap PROPERTIES
18
+ VERSION ${OCTOMAP_VERSION}
19
+ SOVERSION ${OCTOMAP_SOVERSION}
20
+ + OUTPUT_NAME "octomap"
21
+ )
22
+ -ADD_LIBRARY( octomap-static STATIC ${octomap_SRCS})
23
+ -SET_TARGET_PROPERTIES(octomap-static PROPERTIES OUTPUT_NAME "octomap")
24
+ -add_dependencies(octomap-static octomath-static)
25
+ +
26
+
27
+ TARGET_LINK_LIBRARIES(octomap octomath)
28
+
29
+ @@ -26,7 +25,7 @@ if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap")
30
+ file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap")
31
+ endif()
32
+
33
+ -export(TARGETS octomap octomap-static
34
+ +export(TARGETS octomap
35
+ APPEND FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap/octomap-targets.cmake")
36
+
37
+ ADD_SUBDIRECTORY( testing )
38
+ @@ -67,7 +66,7 @@ TARGET_LINK_LIBRARIES(intersection_example octomap)
39
+ ADD_EXECUTABLE(octree2pointcloud octree2pointcloud.cpp)
40
+ TARGET_LINK_LIBRARIES(octree2pointcloud octomap)
41
+
42
+ -install(TARGETS octomap octomap-static
43
+ +install(TARGETS octomap
44
+ EXPORT octomap-targets
45
+ INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
46
+ ${INSTALL_TARGETS_DEFAULT_ARGS}
47
+ diff --git a/octomap/src/math/CMakeLists.txt b/octomap/src/math/CMakeLists.txt
48
+ index 3b47ec4..6a75170 100644
49
+ --- a/octomap/src/math/CMakeLists.txt
50
+ +++ b/octomap/src/math/CMakeLists.txt
51
+ @@ -5,24 +5,22 @@ SET (octomath_SRCS
52
+ )
53
+
54
+
55
+ -ADD_LIBRARY( octomath SHARED ${octomath_SRCS})
56
+ +ADD_LIBRARY(octomath ${octomath_SRCS})
57
+
58
+ SET_TARGET_PROPERTIES( octomath PROPERTIES
59
+ VERSION ${OCTOMAP_VERSION}
60
+ SOVERSION ${OCTOMAP_SOVERSION}
61
+ )
62
+
63
+ -ADD_LIBRARY( octomath-static STATIC ${octomath_SRCS})
64
+ -SET_TARGET_PROPERTIES(octomath-static PROPERTIES OUTPUT_NAME "octomath")
65
+
66
+ if(NOT EXISTS "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap")
67
+ file(MAKE_DIRECTORY "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap")
68
+ endif()
69
+
70
+ -export(TARGETS octomath octomath-static
71
+ +export(TARGETS octomath
72
+ APPEND FILE "${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/cmake/octomap/octomap-targets.cmake")
73
+
74
+ -install(TARGETS octomath octomath-static
75
+ +install(TARGETS octomath
76
+ EXPORT octomap-targets
77
+ INCLUDES DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
78
+ ${INSTALL_TARGETS_DEFAULT_ARGS}
third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/portfile.cmake ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO OctoMap/octomap
6
+ REF v1.9.5
7
+ SHA512 e58c6d33c351b14e9596e18a8702715d167c136fd029b1078ddd13a5926fe451d3b619231b5a8ccfb64b6e5fc6db8b57e6ef329099828d2f5195c0988700b581
8
+ HEAD_REF master
9
+ PATCHES
10
+ "001-fix-exported-targets.patch"
11
+ )
12
+
13
+ vcpkg_configure_cmake(
14
+ SOURCE_PATH ${SOURCE_PATH}
15
+ PREFER_NINJA
16
+ DISABLE_PARALLEL_CONFIGURE
17
+ OPTIONS
18
+ -DBUILD_TESTING=OFF
19
+ -DBUILD_OCTOVIS_SUBPROJECT=OFF
20
+ -DBUILD_DYNAMICETD3D_SUBPROJECT=OFF
21
+ )
22
+
23
+ vcpkg_install_cmake()
24
+
25
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
26
+
27
+ vcpkg_copy_tools(
28
+ TOOL_NAMES binvox2bt bt2vrml compare_octrees convert_octree edit_octree eval_octree_accuracy graph2tree log2graph
29
+ AUTO_CLEAN)
30
+
31
+ vcpkg_fixup_cmake_targets()
32
+
33
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
34
+
35
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
36
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
37
+ endif()
38
+
39
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/octomap")
40
+
41
+ # Handle copyright
42
+ file(INSTALL ${SOURCE_PATH}/octomap/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
43
+
44
+ vcpkg_copy_pdbs()
45
+
46
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _find_package(${ARGS})
2
+
3
+ if(TARGET octomap AND NOT TARGET octomap-static)
4
+ add_library(octomap-static INTERFACE IMPORTED)
5
+ set_target_properties(octomap-static PROPERTIES INTERFACE_LINK_LIBRARIES "octomap")
6
+
7
+ add_library(octomath-static INTERFACE IMPORTED)
8
+ set_target_properties(octomath-static PROPERTIES INTERFACE_LINK_LIBRARIES "octomath")
9
+ elseif(TARGET octomap-static AND NOT TARGET octomap)
10
+ add_library(octomap INTERFACE IMPORTED)
11
+ set_target_properties(octomap PROPERTIES INTERFACE_LINK_LIBRARIES "octomap-static")
12
+
13
+ add_library(octomath INTERFACE IMPORTED)
14
+ set_target_properties(octomath PROPERTIES INTERFACE_LINK_LIBRARIES "octomath-static")
15
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/octomap/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "octomap",
3
+ "version-string": "1.9.5",
4
+ "port-version": 2,
5
+ "description": "An Efficient Probabilistic 3D Mapping Framework Based on Octrees",
6
+ "homepage": "https://octomap.github.io/"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ode/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_bitbucket(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO odedevs/ode
4
+ REF 0.16.1
5
+ SHA512 04429cae1b8fc703e53880c5de78293cee46fe4855c96ca7006bd5848255a0df004b75716a6b30ff5176df004e2bec29b2a31d4af8e7ac59da18f0af2eed8396
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ OPTIONS -DODE_WITH_DEMOS=0 -DODE_WITH_TESTS=0
12
+ )
13
+
14
+ vcpkg_cmake_install()
15
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ode-0.16.1)
16
+
17
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
18
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
19
+ else()
20
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/ode-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/..")
21
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/ode-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
22
+ endif()
23
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
28
+
29
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ode/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ode",
3
+ "version": "0.16.1",
4
+ "port-version": 3,
5
+ "description": "Open Dynamics Engine",
6
+ "homepage": "https://bitbucket.org/odedevs/ode/src/default/",
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/offscale-libetcd-cpp/fix-dependency-grpc.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 0d9aad9..d68c5f7 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -70,7 +70,7 @@ endif()
6
+ target_include_directories(etcdcpp PRIVATE "generated/")
7
+ target_include_directories(etcdcpp INTERFACE "${CMAKE_INSTALL_PREFIX}/include")
8
+
9
+ -target_link_libraries(etcdcpp PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++ gRPC::grpc_cronet)
10
+ +target_link_libraries(etcdcpp PRIVATE gRPC::gpr gRPC::grpc gRPC::grpc++ gRPC::grpc++_alts)
11
+ target_link_libraries(etcdcpp PRIVATE protobuf::libprotoc protobuf::libprotobuf)
12
+
13
+ install(TARGETS etcdcpp EXPORT etcdcpp DESTINATION lib)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/offscale-libetcd-cpp/install-debug.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 0d9aad9..7bdde1b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -77,5 +77,5 @@ install(TARGETS etcdcpp EXPORT etcdcpp DESTINATION lib)
6
+
7
+ if (${CMAKE_BUILD_TYPE} STREQUAL "Release")
8
+ install(FILES ${proto_hs} DESTINATION include/libetcd/)
9
+ - install(EXPORT etcdcpp DESTINATION share/etcdcpp/ FILE etcdcppConfig.cmake)
10
+ endif()
11
+ +install(EXPORT etcdcpp DESTINATION share/etcdcpp/ FILE etcdcppConfig.cmake)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/offscale-libetcd-cpp/portfile.cmake ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO offscale/libetcd-cpp
4
+ REF 8607d8d7080c6eb447bc41b799a24bfdb87cf638
5
+ SHA512 9bf4bf14fd52f4f6bbf8cf68de61e6a19eeffbdc501f05c8f614b5f13f206410884afd7fe226a077448e58e02990c65a6b27ee895ed34ba5ee701abe0500b875
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-dependency-grpc.patch
9
+ install-debug.patch
10
+ )
11
+
12
+ vcpkg_cmake_configure(
13
+ SOURCE_PATH "${SOURCE_PATH}"
14
+ DISABLE_PARALLEL_CONFIGURE # see https://github.com/microsoft/vcpkg/pull/21168#issuecomment-961588989 why
15
+ )
16
+ vcpkg_cmake_install()
17
+ vcpkg_cmake_config_fixup(PACKAGE_NAME etcdcpp)
18
+ vcpkg_copy_pdbs()
19
+
20
+ file(INSTALL "${SOURCE_PATH}/LICENSE-MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/offscale-libetcd-cpp/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "offscale-libetcd-cpp",
3
+ "version-date": "2019-07-10",
4
+ "port-version": 3,
5
+ "description": "A C++ client library for etcd. etcd is a distributed, reliable key-value store.",
6
+ "homepage": "https://github.com/offscale/libetcd-cpp",
7
+ "dependencies": [
8
+ "grpc",
9
+ "protobuf",
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/ogdf/fix-c4723.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/compiler-specifics.cmake b/cmake/compiler-specifics.cmake
2
+ index 2446f32..45b00ac 100644
3
+ --- a/cmake/compiler-specifics.cmake
4
+ +++ b/cmake/compiler-specifics.cmake
5
+ @@ -40,7 +40,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
6
+ set(available_default_warning_flags_release "${available_default_warning_flags_release} -Wno-error=unused-variable")
7
+ set(warnings_as_errors_flag "-Werror")
8
+ elseif(MSVC)
9
+ - set(available_default_warning_flags "/W3 /wd4018 /wd4068 /wd4101 /wd4244 /wd4250 /wd4267 /wd4373 /wd4800 /wd4996")
10
+ + set(available_default_warning_flags "/W3 /wd4018 /wd4068 /wd4101 /wd4244 /wd4250 /wd4267 /wd4373 /wd4800 /wd4996 /wd4723")
11
+ # this has to be explained because MSVC is so cryptic:
12
+ # /W3 sets the warning level of MSVC to 3 (all warnings except informational warnings),
13
+ # /wd<code> disables the warning with the specific code,
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ogdf/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO ogdf/ogdf
4
+ REF 8a103cf3a7dfff87fe8b7534575604bc53c0870c
5
+ SHA512 264e8586be7a18640f253eb7b289dd99f1f2fc42c4d2304ab12f7c6aa9c5754b710642e7296038aea0cd9368d732d0106501fefed800743b403adafff7e3f0b2
6
+ HEAD_REF master
7
+ PATCHES fix-c4723.patch
8
+ )
9
+
10
+ vcpkg_configure_cmake(
11
+ SOURCE_PATH ${SOURCE_PATH}
12
+ PREFER_NINJA
13
+ OPTIONS
14
+ -DCOIN_INSTALL_LIBRARY_DIR:STRING=lib
15
+ -DCOIN_INSTALL_CMAKE_DIR:STRING=lib/cmake/OGDF
16
+ -DOGDF_INSTALL_LIBRARY_DIR:STRING=lib
17
+ -DOGDF_INSTALL_CMAKE_DIR:STRING=lib/cmake/OGDF
18
+ )
19
+
20
+ vcpkg_install_cmake()
21
+
22
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/OGDF)
23
+
24
+ # Handle copyright
25
+ file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
26
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
27
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/minisat/doc ${CURRENT_PACKAGES_DIR}/include/ogdf/lib/minisat/doc)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ogdf/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ogdf",
3
+ "version-string": "2019-08-23",
4
+ "port-version": 2,
5
+ "description": "Open Graph Drawing Framework",
6
+ "homepage": "https://github.com/ogdf/ogdf"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ogre/disable-dependency-qt.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMake/Dependencies.cmake b/CMake/Dependencies.cmake
2
+ index 068dd27..721121b 100644
3
+ --- a/CMake/Dependencies.cmake
4
+ +++ b/CMake/Dependencies.cmake
5
+ @@ -346,7 +346,9 @@ if(NOT ANDROID AND NOT EMSCRIPTEN)
6
+ )
7
+ endif()
8
+
9
+ + if (0)
10
+ find_package(Qt5 COMPONENTS Core Gui QUIET)
11
+ + endif()
12
+ macro_log_feature(Qt5_FOUND "Qt" "optional integration with the Qt Library for window creation and input" "http://www.qt.io/" FALSE "" "")
13
+ endif()
14
+