Techt3o commited on
Commit
0fed66e
·
verified ·
1 Parent(s): fae875f

b7d1b893a6ef032451276e6c8552aee758903079015bc2ec198953e0e437e0d8

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/co/vcpkg.json +11 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/fix-event-destruct.patch +13 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/install-dll.patch +10 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/portfile.cmake +32 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/vcpkg.json +34 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/coin/disable-cpackd.patch +10 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/coin/portfile.cmake +47 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/coin/vcpkg.json +65 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/CMakeLists.txt +95 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/Config.cmake.in +5 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/portfile.cmake +24 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/vcpkg.json +6 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/fix-shared-keyword.patch +13 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/portfile.cmake +28 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/use-uriparser.patch +127 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/use-vcpkg-minizip.patch +13 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/vcpkg.json +16 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/vs-version-detection.patch +39 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/fix-dependencies.patch +18 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/portfile.cmake +83 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/usage +10 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/vcpkg.json +59 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/color-console/portfile.cmake +16 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/color-console/usage +4 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/color-console/vcpkg.json +7 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms-ublox/fix-comms.patch +23 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms-ublox/portfile.cmake +30 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms-ublox/vcpkg.json +10 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms/portfile.cmake +57 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms/usage +4 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms/vcpkg.json +27 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/commsdsl/portfile.cmake +37 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/commsdsl/vcpkg.json +15 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/compoundfilereader/portfile.cmake +10 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/compoundfilereader/vcpkg.json +6 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrencpp/fix-include-path.patch +13 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrencpp/portfile.cmake +21 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrencpp/vcpkg.json +18 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/CMakeLists.txt +11 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/portfile.cmake +30 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/unofficial-concurrentqueue-config.in.cmake +6 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/vcpkg.json +6 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/console-bridge/portfile.cmake +42 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/console-bridge/vcpkg.json +7 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr-contracts/portfile.cmake +20 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr-contracts/vcpkg.json +7 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr/portfile.cmake +16 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr/vcpkg.json +7 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/continuable/fix-cmakelists.patch +55 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/continuable/portfile.cmake +30 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/co/vcpkg.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "co",
3
+ "version-semver": "2.0.3",
4
+ "port-version": 1,
5
+ "description": "A go-style coroutine library in C++11 and more",
6
+ "homepage": "https://github.com/idealvin/cocoyaxi",
7
+ "supports": "!uwp & !(arm & windows)",
8
+ "dependencies": [
9
+ "cocoyaxi"
10
+ ]
11
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/fix-event-destruct.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/co/co.cc b/src/co/co.cc
2
+ index 8921296..838ac16 100644
3
+ --- a/src/co/co.cc
4
+ +++ b/src/co/co.cc
5
+ @@ -8,7 +8,7 @@ namespace co {
6
+ class EventImpl {
7
+ public:
8
+ EventImpl() : _counter(0), _signaled(false), _has_cond(false) {}
9
+ - ~EventImpl() { co::xx::cond_destroy(&_cond); }
10
+ + ~EventImpl() { if (_has_cond) co::xx::cond_destroy(&_cond); }
11
+
12
+ bool wait(uint32 ms);
13
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/install-dll.patch ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index 9e03c9a..499b550 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -112,4 +112,5 @@ install(
6
+ TARGETS co
7
+ LIBRARY DESTINATION lib # shared lib installed to ${CMAKE_INSTALL_PREFIX}/lib
8
+ ARCHIVE DESTINATION lib # static lib installed to ${CMAKE_INSTALL_PREFIX}/lib
9
+ + RUNTIME DESTINATION bin
10
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO idealvin/cocoyaxi
4
+ REF 3fd22601de4d7a06548ca4d24ac36b4f82cde8c5 #v2.0.3
5
+ SHA512 15a7fbd934b44ffd981067c18a66bf07423d8ded102d0c15b79c2f451192f17541b9c1a3d4eb913d9f8c7a55e051e4e1968e16a1113fa81038b3ad9534c57874
6
+ HEAD_REF master
7
+ )
8
+
9
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
10
+
11
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ libcurl WITH_LIBCURL
14
+ openssl WITH_OPENSSL
15
+ )
16
+
17
+ vcpkg_cmake_configure(
18
+ SOURCE_PATH "${SOURCE_PATH}"
19
+ OPTIONS
20
+ ${FEATURE_OPTIONS}
21
+ -DSTATIC_VS_CRT=${STATIC_CRT}
22
+ DISABLE_PARALLEL_CONFIGURE
23
+ )
24
+
25
+ vcpkg_cmake_install()
26
+
27
+ file(REMOVE_RECURSE
28
+ "${CURRENT_PACKAGES_DIR}/debug/include"
29
+ "${CURRENT_PACKAGES_DIR}/debug/share"
30
+ )
31
+
32
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cocoyaxi/vcpkg.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cocoyaxi",
3
+ "version-semver": "2.0.3",
4
+ "port-version": 2,
5
+ "description": "A go-style coroutine library in C++11 and more",
6
+ "homepage": "https://github.com/idealvin/cocoyaxi",
7
+ "supports": "!uwp & !(arm & windows)",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ }
13
+ ],
14
+ "features": {
15
+ "libcurl": {
16
+ "description": "libcurl with OpenSSL support",
17
+ "dependencies": [
18
+ {
19
+ "name": "curl",
20
+ "default-features": false,
21
+ "features": [
22
+ "openssl"
23
+ ]
24
+ }
25
+ ]
26
+ },
27
+ "openssl": {
28
+ "description": "SSL support (OpenSSL)",
29
+ "dependencies": [
30
+ "openssl"
31
+ ]
32
+ }
33
+ }
34
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coin/disable-cpackd.patch ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index f32f6ffe3..639fc4109 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -815,4 +815,4 @@ endif()
6
+
7
+ # ############################################################################
8
+ # New CPACK section, please see the README file inside cpack.d directory.
9
+ -add_subdirectory(cpack.d)
10
+ +#add_subdirectory(cpack.d)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coin/portfile.cmake ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO Coin3D/coin
4
+ REF Coin-4.0.0
5
+ SHA512 8a0289cab3e02a7417022fe659ec30a2dd705b9bacb254e0269ada9155c76c6aea0285c475cd6e663f5d7f2b49e60244b16baac7188d57e3d7f8ab08d228f21f
6
+ HEAD_REF master
7
+ PATCHES
8
+ disable-cpackd.patch
9
+ )
10
+
11
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
12
+ set(COIN_BUILD_SHARED_LIBS OFF)
13
+ else()
14
+ set(COIN_BUILD_SHARED_LIBS ON)
15
+ endif()
16
+
17
+ if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
18
+ set(COIN_BUILD_MSVC_STATIC_RUNTIME OFF)
19
+ elseif(VCPKG_CRT_LINKAGE STREQUAL static)
20
+ set(COIN_BUILD_MSVC_STATIC_RUNTIME ON)
21
+ endif()
22
+
23
+ vcpkg_configure_cmake(
24
+ SOURCE_PATH ${SOURCE_PATH}
25
+ PREFER_NINJA
26
+ OPTIONS
27
+ -DCOIN_BUILD_DOCUMENTATION=OFF
28
+ -DCOIN_BUILD_MSVC_STATIC_RUNTIME=${COIN_BUILD_MSVC_STATIC_RUNTIME}
29
+ -DCOIN_BUILD_SHARED_LIBS=${COIN_BUILD_SHARED_LIBS}
30
+ -DCOIN_BUILD_TESTS=OFF
31
+ )
32
+
33
+ vcpkg_install_cmake()
34
+ vcpkg_copy_pdbs()
35
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Coin-4.0.0)
36
+
37
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
38
+
39
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
40
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
41
+ endif()
42
+
43
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
44
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
45
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/Coin/profiler)
46
+
47
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coin/vcpkg.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "coin",
3
+ "version-string": "4.0.0",
4
+ "port-version": 5,
5
+ "description": "A high-level 3D visualization library with Open Inventor 2.1 API",
6
+ "homepage": "https://github.com/coin3d/coin",
7
+ "supports": "!(arm | arm64 | uwp)",
8
+ "dependencies": [
9
+ "boost-assert",
10
+ "boost-config",
11
+ "boost-lexical-cast",
12
+ "boost-math",
13
+ "boost-smart-ptr",
14
+ "boost-static-assert",
15
+ "opengl-registry"
16
+ ],
17
+ "default-features": [
18
+ "simage",
19
+ "zlib"
20
+ ],
21
+ "features": {
22
+ "bzip2": {
23
+ "description": "Support bzip2 compressed fonts",
24
+ "dependencies": [
25
+ "bzip2",
26
+ {
27
+ "name": "freetype",
28
+ "features": [
29
+ "bzip2"
30
+ ]
31
+ }
32
+ ]
33
+ },
34
+ "fontconfig": {
35
+ "description": "Use fontconfig for font support",
36
+ "dependencies": [
37
+ "fontconfig"
38
+ ]
39
+ },
40
+ "freetype": {
41
+ "description": "Use freetype for font support",
42
+ "dependencies": [
43
+ "freetype"
44
+ ]
45
+ },
46
+ "openal": {
47
+ "description": "Use OpenAL for sound support in VRML97",
48
+ "dependencies": [
49
+ "openal-soft"
50
+ ]
51
+ },
52
+ "simage": {
53
+ "description": "Use simage for loading images (textures), audio, and animations",
54
+ "dependencies": [
55
+ "simage"
56
+ ]
57
+ },
58
+ "zlib": {
59
+ "description": "Use zlib for reading/writing compressed files",
60
+ "dependencies": [
61
+ "zlib"
62
+ ]
63
+ }
64
+ }
65
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/CMakeLists.txt ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.11)
2
+
3
+ project(CoinUtils LANGUAGES C CXX)
4
+
5
+ set(PROJECT_VERSION 2.10.14)
6
+ set(PROJECT_VERSION_MAJOR 2)
7
+ set(PROJECT_VERSION_MINOR 10)
8
+ set(PROJECT_VERSION_PATCH 14)
9
+
10
+ set(CMAKE_CXX_STANDARD 14)
11
+
12
+ set(INSTALL_BIN_DIR "bin" CACHE PATH "Path where exe and dll will be installed")
13
+ set(INSTALL_LIB_DIR "lib" CACHE PATH "Path where lib will be installed")
14
+ set(INSTALL_INCLUDE_DIR "include/Coin" CACHE PATH "Path where headers will be installed")
15
+ set(INSTALL_CMAKE_DIR "share/coinutils" CACHE PATH "Path where cmake configs will be installed")
16
+
17
+ # Make relative paths absolute (needed later on)
18
+ set(RELATIVE_INSTALL_INCLUDE_DIR ${INSTALL_INCLUDE_DIR})
19
+ foreach(p LIB BIN INCLUDE CMAKE)
20
+ set(var INSTALL_${p}_DIR)
21
+ if(NOT IS_ABSOLUTE "${${var}}")
22
+ set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
23
+ endif()
24
+ endforeach()
25
+
26
+ if(MSVC)
27
+ set(
28
+ CMAKE_CXX_FLAGS
29
+ "${CMAKE_CXX_FLAGS} /bigobj /MP /wd4996 /wd4819 /wd4251 /wd4267 /wd4244 /wd4275"
30
+ )
31
+ endif()
32
+
33
+ if(APPLE)
34
+ set(
35
+ CMAKE_CXX_FLAGS
36
+ "${CMAKE_CXX_FLAGS} -Wno-inconsistent-missing-override -Wno-unused-command-line-argument -Wno-unused-result -Wno-exceptions"
37
+ )
38
+ set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9"
39
+ CACHE STRING "Minimum OS X deployment version")
40
+ endif()
41
+
42
+ include(CheckIncludeFileCXX)
43
+ include(CheckIncludeFile)
44
+ check_include_file_cxx("cmath" HAVE_CMATH)
45
+ check_include_file_cxx("cfloat" HAVE_CFLOAT)
46
+ if(NOT HAVE_CMATH OR NOT HAVE_CFLOAT)
47
+ message(FATAL_ERROR "Missing necessary include files, like cmath or cfloat")
48
+ endif()
49
+
50
+ file(GLOB UTILS_SOURCES
51
+ CoinUtils/src/*.hpp
52
+ CoinUtils/src/*.cpp
53
+ CoinUtils/src/*.h)
54
+
55
+ add_library(${PROJECT_NAME} ${UTILS_SOURCES})
56
+
57
+ target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:${RELATIVE_INSTALL_INCLUDE_DIR}> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/CoinUtils/src>)
58
+
59
+ if(MSVC)
60
+ target_compile_definitions(${PROJECT_NAME} PRIVATE _CRT_SECURE_NO_WARNINGS)
61
+ endif()
62
+ target_compile_definitions(${PROJECT_NAME} PRIVATE HAVE_CMATH HAVE_CFLOAT)
63
+
64
+ install(DIRECTORY CoinUtils/src/
65
+ DESTINATION ${INSTALL_INCLUDE_DIR}
66
+ FILES_MATCHING
67
+ PATTERN "*.h"
68
+ PATTERN "*.hpp")
69
+
70
+ install(TARGETS ${PROJECT_NAME}
71
+ EXPORT "${PROJECT_NAME}Targets"
72
+ LIBRARY DESTINATION lib
73
+ ARCHIVE DESTINATION lib
74
+ RUNTIME DESTINATION bin)
75
+
76
+ include(CMakePackageConfigHelpers)
77
+
78
+ set(version_config "${CMAKE_CURRENT_BINARY_DIR}/temp/${PROJECT_NAME}ConfigVersion.cmake")
79
+ set(project_config "${CMAKE_CURRENT_BINARY_DIR}/temp/${PROJECT_NAME}Config.cmake")
80
+ set(namespace "Coin::")
81
+
82
+ write_basic_package_version_file("${version_config}"
83
+ COMPATIBILITY SameMajorVersion)
84
+
85
+ configure_package_config_file("Config.cmake.in"
86
+ "${project_config}"
87
+ INSTALL_DESTINATION
88
+ "${INSTALL_CMAKE_DIR}")
89
+
90
+ install(FILES "${project_config}" "${version_config}"
91
+ DESTINATION "${INSTALL_CMAKE_DIR}")
92
+
93
+ install(EXPORT "${PROJECT_NAME}Targets"
94
+ NAMESPACE "${namespace}"
95
+ DESTINATION "${INSTALL_CMAKE_DIR}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/Config.cmake.in ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+
2
+ @PACKAGE_INIT@
3
+
4
+ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
5
+ check_required_components("@PROJECT_NAME@")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO coin-or/CoinUtils
6
+ REF f709081c9b57cc2dd32579d804b30689ca789982 # releases/2.11.4
7
+ SHA512 1c2e7f796524d67d87253bc7938c1a6db3c8266acec6b6399aeb83c0fb253b77507e6b5e84f16b0b8e40098aef94676499f396d1c7f653b1e04cbadca7620185
8
+ )
9
+
10
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
11
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in DESTINATION ${SOURCE_PATH})
12
+
13
+ vcpkg_configure_cmake(
14
+ SOURCE_PATH ${SOURCE_PATH}
15
+ PREFER_NINJA
16
+ )
17
+
18
+ vcpkg_install_cmake()
19
+ vcpkg_copy_pdbs()
20
+ vcpkg_fixup_cmake_targets()
21
+
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
23
+
24
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/coinutils RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/coinutils/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "coinutils",
3
+ "version-string": "2.11.4",
4
+ "port-version": 1,
5
+ "description": "CoinUtils (Coin-or Utilities) is an open-source collection of classes and functions that are generally useful to more than one COIN-OR project"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/fix-shared-keyword.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/dom/CMakeLists.txt b/dom/CMakeLists.txt
2
+ index 62e1b8a..7ff49b5 100644
3
+ --- a/dom/CMakeLists.txt
4
+ +++ b/dom/CMakeLists.txt
5
+ @@ -28,7 +28,7 @@ if( OPT_COLLADA14 )
6
+ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/1.4 DESTINATION ${COLLADA_DOM_INCLUDE_INSTALL_DIR} COMPONENT ${COMPONENT_PREFIX}-dev PATTERN ".svn" EXCLUDE PATTERN ".~" EXCLUDE)
7
+ endif()
8
+
9
+ -add_library(collada-dom SHARED ${COLLADA_BASE_SOURCES})
10
+ +add_library(collada-dom ${COLLADA_BASE_SOURCES})
11
+ target_link_libraries(collada-dom ${COLLADA_LIBS})
12
+ set_target_properties(collada-dom PROPERTIES
13
+ COMPILE_FLAGS "${COLLADA_COMPILE_FLAGS}"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO rdiankov/collada-dom
4
+ REF d37ae7532e350b87c88712e9f6ab4b1f440d20cd
5
+ SHA512 cb923d296219765096f5246cc7a2b69712931f58171ae885dbdbd215fca86d911c34d12748d3304d6a5a350dc737ff0caead2495acac488af5431b437cbacc7d
6
+ HEAD_REF v2.5.0
7
+ PATCHES
8
+ vs-version-detection.patch
9
+ use-uriparser.patch
10
+ use-vcpkg-minizip.patch
11
+ fix-shared-keyword.patch
12
+ )
13
+
14
+ vcpkg_configure_cmake(
15
+ SOURCE_PATH ${SOURCE_PATH}
16
+ PREFER_NINJA
17
+ )
18
+
19
+ vcpkg_install_cmake()
20
+
21
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/collada_dom-2.5)
22
+
23
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
24
+
25
+ # Handle copyright
26
+ file(INSTALL ${SOURCE_PATH}/licenses/license_e.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
27
+
28
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/use-uriparser.patch ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 3ec1527..3f044d3 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -237,23 +237,29 @@ else()
6
+ set(MINIZIP_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/dom/external-libs/minizip-1.1 ${ZLIB_INCLUDE_DIR})
7
+ endif()
8
+
9
+ -pkg_check_modules(liburiparser liburiparser)
10
+ -
11
+ -if(liburiparser_FOUND)
12
+ - set(liburiparser_CFLAGS_OTHERS "-DUSE_URIPARSER")
13
+ +find_package(UriParser)
14
+ +if(URIPARSER_FOUND)
15
+ + set(URIPARSER_CFLAGS_OTHERS "-DUSE_URIPARSER")
16
+ + set(URIPARSER_LIBRARIES ${URIPARSER_LIBRARY})
17
+ + message(STATUS "liburiparser found")
18
+ else()
19
+ - # try using pcrecpp
20
+ - pkg_check_modules(libpcrecpp libpcrecpp)
21
+ - if( libpcrecpp_FOUND )
22
+ + pkg_check_modules(liburiparser liburiparser)
23
+ + if(liburiparser_FOUND)
24
+ + set(URIPARSER_CFLAGS_OTHERS "-DUSE_URIPARSER")
25
+ + message(STATUS "liburiparser found")
26
+ + else()
27
+ + # try using pcrecpp
28
+ + pkg_check_modules(libpcrecpp libpcrecpp)
29
+ + if( libpcrecpp_FOUND )
30
+ set(CMAKE_REQUIRED_INCLUDES ${libpcrecpp_INCLUDE_DIRS})
31
+ check_include_file_cxx(pcrecpp.h HAVE_PCRECPP_H)
32
+ set(CMAKE_REQUIRED_INCLUDES)
33
+ if( NOT HAVE_PCRECPP_H )
34
+ - set(libpcrecpp_FOUND 0)
35
+ + set(libpcrecpp_FOUND 0)
36
+ + endif()
37
+ endif()
38
+ - endif()
39
+
40
+ - if( NOT libpcrecpp_FOUND )
41
+ + if( NOT libpcrecpp_FOUND )
42
+ message(STATUS "System pcre not found, using local from sources")
43
+ # include the local pcre
44
+ add_subdirectory(dom/external-libs/pcre-8.02)
45
+ @@ -262,6 +268,7 @@ else()
46
+ set(libpcrecpp_LIBRARIES pcrecpp_local)
47
+ set(libpcrecpp_CFLAGS_OTHERS "-DPCRE_STATIC")
48
+ set(libpcrecpp_LDFLAGS_OTHERS)
49
+ + endif()
50
+ endif()
51
+ endif()
52
+
53
+ diff --git a/cmake-modules/FindUriParser.cmake b/cmake-modules/FindUriParser.cmake
54
+ new file mode 100644
55
+ index 0000000..91f466b
56
+ --- /dev/null
57
+ +++ b/cmake-modules/FindUriParser.cmake
58
+ @@ -0,0 +1,35 @@
59
+ +# Find the UriParser library
60
+ +# Defines:
61
+ +
62
+ +# URIPARSER_INCLUDE_DIR - uriparser include directory
63
+ +# URIPARSER_LIBRARY - uriparser library file
64
+ +# URIPARSER_FOUND - TRUE if uriparser is found
65
+ +
66
+ +if (URIPARSER_INCLUDE_DIR)
67
+ + #check cache
68
+ + set(URIPARSER_FIND_QUIETLY TRUE)
69
+ +endif ()
70
+ +
71
+ +if (NOT URIPARSER_INCLUDE_DIR)
72
+ + find_path(URIPARSER_INCLUDE_DIR NAMES Uri.h PATH_SUFFIXES uriparser)
73
+ + set(URIPARSER_INCLUDE_DIR ${URIPARSER_INCLUDE_DIR}/uriparser CACHE PATH "uriparser includes")
74
+ +endif ()
75
+ +
76
+ +find_library(URIPARSER_LIBRARY NAMES uriparser)
77
+ +
78
+ +if (URIPARSER_INCLUDE_DIR AND URIPARSER_LIBRARY)
79
+ + set(URIPARSER_FOUND TRUE)
80
+ + set(UriParser_FOUND TRUE)
81
+ +endif ()
82
+ +
83
+ +if (URIPARSER_FOUND)
84
+ + if (NOT URIPARSER_FIND_QUIETLY)
85
+ + message(STATUS "Found UriParser library: ${URIPARSER_LIBRARY}")
86
+ + endif ()
87
+ +else ()
88
+ + if (NOT URIPARSER_FIND_QUIETLY)
89
+ + message(FATAL_ERROR "Could NOT find UriParser library")
90
+ + else ()
91
+ + message(STATUS "Could NOT find UriParser library")
92
+ + endif ()
93
+ +endif ()
94
+ diff --git a/dom/CMakeLists.txt b/dom/CMakeLists.txt
95
+ index f7ffb27..62e1b8a 100644
96
+ --- a/dom/CMakeLists.txt
97
+ +++ b/dom/CMakeLists.txt
98
+ @@ -1,6 +1,6 @@
99
+ set(COLLADA_INTERNAL_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR}/include)
100
+ include_directories(${COLLADA_INTERNAL_INCLUDE})
101
+ -set(COLLADA_LIBS minizip ${liburiparser_LIBRARIES} ${libpcrecpp_LIBRARIES} ${ZLIB_LIBRARIES} ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
102
+ +set(COLLADA_LIBS minizip ${URIPARSER_LIBRARIES} ${libpcrecpp_LIBRARIES} ${ZLIB_LIBRARIES} ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
103
+
104
+ file(GLOB dae_files ${CMAKE_CURRENT_SOURCE_DIR}/src/dae/*.cpp)
105
+ if( LIBXML2_FOUND )
106
+ @@ -13,7 +13,7 @@ file(GLOB stddatabase_files ${CMAKE_CURRENT_SOURCE_DIR}/src/modules/STLDatabase/
107
+ file(GLOB stderrplugin_files ${CMAKE_CURRENT_SOURCE_DIR}/src/modules/stdErrPlugin/*.cpp)
108
+
109
+ set(COLLADA_BASE_SOURCES ${dae_files} ${libxmlplugin_files} ${stddatabase_files} ${stderrplugin_files})
110
+ -set(COLLADA_COMPILE_FLAGS "${liburiparser_CFLAGS_OTHERS} ${libpcrecpp_CFLAGS_OTHERS} ${EXTRA_COMPILE_FLAGS} ${Boost_CFLAGS}")
111
+ +set(COLLADA_COMPILE_FLAGS "${URIPARSER_CFLAGS_OTHERS} ${libpcrecpp_CFLAGS_OTHERS} ${EXTRA_COMPILE_FLAGS} ${Boost_CFLAGS}")
112
+ # create dynamic libraries
113
+ set(COLLADA_COMPILE_FLAGS "${COLLADA_COMPILE_FLAGS} -DDOM_DYNAMIC -DDOM_EXPORT")
114
+
115
+ diff --git a/dom/src/dae/daeURI.cpp b/dom/src/dae/daeURI.cpp
116
+ index 3a8f815..1623753 100644
117
+ --- a/dom/src/dae/daeURI.cpp
118
+ +++ b/dom/src/dae/daeURI.cpp
119
+ @@ -790,7 +790,7 @@ bool cdom::parseUriRef(const string& uriRef,
120
+ scheme = fromRange(uri.scheme);
121
+ authority = fromRange(uri.hostText);
122
+ path = fromList(uri.pathHead, "/");
123
+ - if (uri.absolutePath != URI_TRUE and uri.hostText.first == NULL)
124
+ + if (uri.absolutePath != URI_TRUE && uri.hostText.first == NULL)
125
+ path = path.erase(0, 1);
126
+ query = fromRange(uri.query);
127
+ fragment = fromRange(uri.fragment);
third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/use-vcpkg-minizip.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp b/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp
2
+ index 4536275..77651f9 100644
3
+ --- a/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp
4
+ +++ b/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp
5
+ @@ -32,7 +32,7 @@
6
+ #include <iomanip>
7
+ using namespace std;
8
+
9
+ -#include <zip.h> // for saving compressed files
10
+ +#include <minizip/zip.h> // for saving compressed files
11
+ #ifdef _WIN32
12
+ #include <iowin32.h>
13
+ #else
third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "collada-dom",
3
+ "version-string": "2.5.0",
4
+ "port-version": 6,
5
+ "description": "The COLLADA Document Object Model (DOM) is an application programming interface (API) that provides a C++ object representation of a COLLADA XML instance document.",
6
+ "homepage": "https://github.com/rdiankov/collada-dom",
7
+ "dependencies": [
8
+ "boost-filesystem",
9
+ "boost-system",
10
+ "libxml2",
11
+ "minizip",
12
+ "pcre",
13
+ "uriparser",
14
+ "zlib"
15
+ ]
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/collada-dom/vs-version-detection.patch ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 2596a23..3ec1527 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -1,4 +1,4 @@
6
+ -cmake_minimum_required (VERSION 2.6.0)
7
+ +cmake_minimum_required (VERSION 3.7.0)
8
+ project (collada-dom)
9
+ set( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE )
10
+
11
+ @@ -89,14 +89,22 @@ string(TOUPPER ${COMPONENT_PREFIX} COMPONENT_PREFIX_UPPER)
12
+ set(CPACK_COMPONENTS_ALL ${COMPONENT_PREFIX}-base ${COMPONENT_PREFIX}-dev)
13
+
14
+ if( MSVC )
15
+ - if( MSVC70 OR MSVC71 )
16
+ - set(MSVC_PREFIX "vc70")
17
+ - elseif( MSVC80 )
18
+ - set(MSVC_PREFIX "vc80")
19
+ - elseif( MSVC90 )
20
+ + if( MSVC_VERSION GREATER_EQUAL 1910 )
21
+ + set(MSVC_PREFIX "vc140")
22
+ + elseif( MSVC_VERSION GREATER_EQUAL 1900 )
23
+ + set(MSVC_PREFIX "vc130")
24
+ + elseif( MSVC_VERSION GREATER_EQUAL 1800 )
25
+ + set(MSVC_PREFIX "vc120")
26
+ + elseif( MSVC_VERSION GREATER_EQUAL 1700 )
27
+ + set(MSVC_PREFIX "vc110")
28
+ + elseif( MSVC_VERSION GREATER_EQUAL 1600 )
29
+ + set(MSVC_PREFIX "vc100")
30
+ + elseif( MSVC_VERSION GREATER_EQUAL 1500 )
31
+ set(MSVC_PREFIX "vc90")
32
+ + elseif( MSVC_VERSION GREATER_EQUAL 1400 )
33
+ + set(MSVC_PREFIX "vc80")
34
+ else()
35
+ - set(MSVC_PREFIX "vc100")
36
+ + set(MSVC_PREFIX "vc70")
37
+ endif()
38
+ set(COLLADA_DOM_LIBRARY_SUFFIX "${COLLADA_DOM_SOVERSION}-${COLLADA_PRECISION}-${MSVC_PREFIX}-mt")
39
+ else()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/fix-dependencies.patch ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 4759a94..3d25164 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -98,9 +98,11 @@ find_package(Boost REQUIRED COMPONENTS
6
+
7
+ find_package(Eigen3 REQUIRED)
8
+
9
+ -find_package(FreeImage REQUIRED)
10
+ +find_package(freeimage CONFIG REQUIRED)
11
+ +set(FREEIMAGE_LIBRARIES freeimage::FreeImage)
12
+
13
+ -find_package(Metis REQUIRED)
14
+ +find_package(metis CONFIG REQUIRED)
15
+ +set(METIS_LIBRARIES metis)
16
+
17
+ find_package(Glog REQUIRED)
18
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/portfile.cmake ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(COLMAP_REF "29a1e3642a3b00734a52b21e597ea4d576485fe6") # 3.7 fix
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO colmap/colmap
6
+ REF ${COLMAP_REF}
7
+ SHA512 c22511592dadd1fce51baeaa5ab3ca48b0df5f1c02f9e2a97593ea1b01c5aea0e1054063a5665e2653f2c7b1b7525ce4c62ae35fb4197df614112861045b76fd
8
+ HEAD_REF dev
9
+ PATCHES
10
+ fix-dependencies.patch
11
+ )
12
+
13
+ if (NOT TRIPLET_SYSTEM_ARCH STREQUAL "x64" AND ("cuda" IN_LIST FEATURES OR "cuda-redist" IN_LIST FEATURES))
14
+ message(FATAL_ERROR "Feature cuda and cuda-redist require x64 triplet.")
15
+ endif()
16
+
17
+ # set GIT_COMMIT_ID and GIT_COMMIT_DATE
18
+ if(DEFINED VCPKG_HEAD_VERSION)
19
+ set(GIT_COMMIT_ID "${VCPKG_HEAD_VERSION}")
20
+ else()
21
+ set(GIT_COMMIT_ID "${COLMAP_REF}")
22
+ endif()
23
+
24
+ string(TIMESTAMP COLMAP_GIT_COMMIT_DATE "%Y-%m-%d")
25
+
26
+ set(CUDA_ENABLED OFF)
27
+ set(TESTS_ENABLED OFF)
28
+
29
+ if("cuda" IN_LIST FEATURES)
30
+ set(CUDA_ENABLED ON)
31
+ endif()
32
+
33
+ if("cuda-redist" IN_LIST FEATURES)
34
+ set(CUDA_ENABLED ON)
35
+ set(CUDA_ARCHS "Common")
36
+ endif()
37
+
38
+ if("tests" IN_LIST FEATURES)
39
+ set(TESTS_ENABLED ON)
40
+ endif()
41
+
42
+ vcpkg_cmake_configure(
43
+ SOURCE_PATH "${SOURCE_PATH}"
44
+ DISABLE_PARALLEL_CONFIGURE
45
+ OPTIONS
46
+ -DCUDA_ENABLED=${CUDA_ENABLED}
47
+ -DCUDA_ARCHS=${CUDA_ARCHS}
48
+ -DTESTS_ENABLED=${TESTS_ENABLED}
49
+ -DGIT_COMMIT_ID=${GIT_COMMIT_ID}
50
+ -DGIT_COMMIT_DATE=${COLMAP_GIT_COMMIT_DATE}
51
+ )
52
+
53
+ vcpkg_cmake_install()
54
+
55
+ vcpkg_cmake_config_fixup()
56
+
57
+ file(GLOB TOOL_FILENAMES "${CURRENT_PACKAGES_DIR}/bin/*")
58
+ foreach(TOOL_FILENAME ${TOOL_FILENAMES})
59
+ get_filename_component(TEST_TOOL_NAME ${TOOL_FILENAME} NAME_WLE)
60
+ list(APPEND COLMAP_TOOL_NAMES "${TEST_TOOL_NAME}")
61
+ endforeach()
62
+
63
+ vcpkg_copy_tools(TOOL_NAMES ${COLMAP_TOOL_NAMES} AUTO_CLEAN)
64
+
65
+ # remove empty folders and unused files
66
+ file(REMOVE_RECURSE
67
+ "${CURRENT_PACKAGES_DIR}/debug/include"
68
+ "${CURRENT_PACKAGES_DIR}/debug/share"
69
+ "${CURRENT_PACKAGES_DIR}/include/colmap/exe"
70
+ "${CURRENT_PACKAGES_DIR}/include/colmap/lib/Graclus/multilevelLib"
71
+ "${CURRENT_PACKAGES_DIR}/include/colmap/tools"
72
+ "${CURRENT_PACKAGES_DIR}/include/colmap/ui/media"
73
+ "${CURRENT_PACKAGES_DIR}/include/colmap/ui/shaders"
74
+ "${CURRENT_PACKAGES_DIR}/COLMAP.bat"
75
+ "${CURRENT_PACKAGES_DIR}/RUN_TESTS.bat"
76
+ "${CURRENT_PACKAGES_DIR}/debug/COLMAP.bat"
77
+ "${CURRENT_PACKAGES_DIR}/debug/RUN_TESTS.bat"
78
+ "${CURRENT_PACKAGES_DIR}/debug/bin"
79
+ )
80
+
81
+ vcpkg_copy_pdbs()
82
+
83
+ file(INSTALL "${SOURCE_PATH}/COPYING.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/usage ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ For example, under Windows, execute COLMAP as:
2
+
3
+ <VCPKG-ROOT>\packages\colmap_<TRIPLET>\tools\colmap\colmap.exe gui
4
+ <VCPKG-ROOT>\packages\colmap_<TRIPLET>\tools\colmap\colmap.exe mapper
5
+ <VCPKG-ROOT>\packages\colmap_<TRIPLET>\tools\colmap\colmap.exe ...
6
+
7
+ The package colmap provides CMake integration:
8
+
9
+ find_package(COLMAP REQUIRED)
10
+ target_link_libraries(main ${COLMAP_LIBRARIES})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/colmap/vcpkg.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "colmap",
3
+ "version-date": "2022-03-14",
4
+ "description": "COLMAP is a general-purpose Structure-from-Motion (SfM) and Multi-View Stereo (MVS) pipeline with a graphical and command-line interface. It offers a wide range of features for reconstruction of ordered and unordered image collections. The software is licensed under the new BSD license.",
5
+ "homepage": "https://colmap.github.io/",
6
+ "license": "BSD-3-Clause",
7
+ "dependencies": [
8
+ "boost-filesystem",
9
+ "boost-graph",
10
+ "boost-program-options",
11
+ "boost-system",
12
+ "boost-test",
13
+ {
14
+ "name": "ceres",
15
+ "features": [
16
+ "lapack",
17
+ "suitesparse"
18
+ ]
19
+ },
20
+ {
21
+ "name": "cgal",
22
+ "features": [
23
+ "qt"
24
+ ]
25
+ },
26
+ "eigen3",
27
+ "freeimage",
28
+ "gflags",
29
+ "glew",
30
+ "glog",
31
+ "qt5-base",
32
+ "suitesparse",
33
+ {
34
+ "name": "vcpkg-cmake",
35
+ "host": true
36
+ },
37
+ {
38
+ "name": "vcpkg-cmake-config",
39
+ "host": true
40
+ }
41
+ ],
42
+ "features": {
43
+ "cuda": {
44
+ "description": "CUDA support for current compute architecture of this machine.",
45
+ "dependencies": [
46
+ "cuda"
47
+ ]
48
+ },
49
+ "cuda-redist": {
50
+ "description": "Redistributable CUDA support for common supported compute architectures.",
51
+ "dependencies": [
52
+ "cuda"
53
+ ]
54
+ },
55
+ "tests": {
56
+ "description": "Build all tests."
57
+ }
58
+ }
59
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/color-console/portfile.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO imfl/color-console
4
+ REF 745f57141e6322e20cdda59a74ab1e00d107ade1
5
+ SHA512 d4d919eb211f2981daf6b9af93262fc8ac89bac0db755ba30b31d6aa1b981e5383fb23ef95d1ff004606d138fee630fd790c72e92440b684306c6780750bd9fd
6
+ HEAD_REF master
7
+ )
8
+
9
+ # Install source file
10
+ file(INSTALL ${SOURCE_PATH}/include/color.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME colorconsole.hpp)
11
+
12
+ # Install license
13
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
14
+
15
+ # Install usage
16
+ file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/color-console/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package zstr is header only and can be used from CMake via:
2
+
3
+ find_path(COLORCONSOLE_INCLUDE_DIRS "colorconsole.hpp")
4
+ target_include_directories(main PRIVATE ${COLORCONSOLE_INCLUDE_DIRS})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/color-console/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "color-console",
3
+ "version-date": "2022-03-20",
4
+ "description": "A lightweight header-only C++ library to bring colors to your Windows console with a very-easy-to-use API.",
5
+ "homepage": "https://github.com/imfl/color-console",
6
+ "license": "MIT"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms-ublox/fix-comms.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index e2b69fe..aff5917 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -66,6 +66,7 @@ endif ()
6
+ ######################################################################
7
+
8
+ # Use external CommsChampion project or compile it in place
9
+ +if(FALSE)
10
+ set (CC_EXTERNAL_TGT "comms_champion_external")
11
+ if (OPT_BUILD_TEST OR OPT_BUILD_PLUGIN)
12
+ set (external_cc_needed TRUE)
13
+ @@ -107,6 +108,10 @@ elseif (external_cc_needed)
14
+ find_package(CommsChampion NO_MODULE)
15
+ set (cc_compile_file "${OPT_CC_MAIN_INSTALL_DIR}/lib/LibComms/cmake/CC_Compile.cmake")
16
+ endif ()
17
+ +else()
18
+ + find_package(LibComms CONFIG REQUIRED)
19
+ + set(cc_compile_file "${LibComms_DIR}/CC_Compile.cmake")
20
+ +endif()
21
+
22
+ if (EXISTS ${cc_compile_file})
23
+ # Set compiler flags
third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms-ublox/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO commschamp/cc.ublox.generated
6
+ REF v0.20.2
7
+ SHA512 5672d964ea3e505837e44a5fd928069a219a5731764cb54bfe8609e39c6c6dd0059660bcde317c6c60cd1bd8d1f7942d2faa022095bf651817568291bc6a7569
8
+ HEAD_REF master
9
+ PATCHES
10
+ fix-comms.patch
11
+ )
12
+
13
+ vcpkg_configure_cmake(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ PREFER_NINJA
16
+ OPTIONS
17
+ -DOPT_BUILD_TEST=OFF
18
+ -DOPT_BUILD_PLUGIN=OFF
19
+ -DOPT_NO_COMMS=ON
20
+ -DOPT_EXTERNALS_UPDATE_DISCONNECTED=ON
21
+ )
22
+ vcpkg_install_cmake()
23
+
24
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/ublox/cmake TARGET_PATH share/ublox)
25
+ # currently this is only a header only library. after moving lib/ublox to share this lib path will be empty
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
28
+
29
+ # Handle copyright
30
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms-ublox/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "comms-ublox",
3
+ "version-semver": "0.20.2",
4
+ "description": "UBLOX (UBX) protocol definition, generated out of cc.ublox.commsdsl",
5
+ "homepage": "https://commschamp.github.io/",
6
+ "documentation": "https://github.com/commschamp/cc.ublox.generated",
7
+ "dependencies": [
8
+ "comms"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms/portfile.cmake ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO commschamp/comms_champion
5
+ REF v3.4
6
+ SHA512 573afbc0aebd72d8a047067410f0f54588675c4cbad37f824edbb6d8303e9c191c573ac9325bf5fec575dffd3d05562c04e75c1e5b748a34d01056bc8b766fb1
7
+ HEAD_REF master
8
+ )
9
+
10
+ vcpkg_check_features(
11
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ tools CC_BUILD_TOOLS_LIBRARY
14
+ tools CC_INSTALL_TOOLS_LIBRARY
15
+ tools CC_BUILD_TOOLS
16
+ tools CC_INSTALL_TOOLS
17
+ )
18
+
19
+ vcpkg_cmake_configure(
20
+ SOURCE_PATH "${SOURCE_PATH}"
21
+ OPTIONS
22
+ ${FEATURE_OPTIONS}
23
+ -DCC_INSTALL_COMMS_LIB=ON
24
+ -DCC_BUILD_UNIT_TESTS=OFF
25
+ -DCC_WARN_AS_ERR=OFF
26
+ -DCC_BUILD_DEMO_PROTOCOL=OFF
27
+ -DCC_INSTALL_DEMO_PROTOCOL=OFF
28
+ )
29
+ vcpkg_cmake_install()
30
+ vcpkg_copy_pdbs()
31
+
32
+ vcpkg_cmake_config_fixup(PACKAGE_NAME "LibComms" CONFIG_PATH "lib/LibComms/cmake" )
33
+
34
+ if("tools" IN_LIST FEATURES)
35
+ vcpkg_copy_tools(
36
+ TOOL_NAMES cc_dump cc_view
37
+ AUTO_CLEAN
38
+ )
39
+
40
+ file(INSTALL "${CURRENT_PACKAGES_DIR}/lib/CommsChampion/plugin"
41
+ DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/lib/CommsChampion/plugin")
42
+ vcpkg_cmake_config_fixup(PACKAGE_NAME "CommsChampion" CONFIG_PATH "lib/CommsChampion/cmake")
43
+
44
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/LibComms")
45
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/CommsChampion")
46
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/LibComms")
47
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/CommsChampion")
48
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
49
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
50
+ else()
51
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
52
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
53
+ endif()
54
+
55
+ # Handle copyright
56
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
57
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package comms provides CMake targets:
2
+
3
+ find_package(LibComms CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE cc::comms)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/comms/vcpkg.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "comms",
3
+ "version-semver": "3.4.0",
4
+ "port-version": 1,
5
+ "description": "COMMS is the C++(11) headers only, platform independent library, which makes the implementation of a communication protocol to be an easy and relatively quick process.",
6
+ "homepage": "https://commschamp.github.io/",
7
+ "documentation": "https://github.com/commschamp/comms_champion",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ],
18
+ "features": {
19
+ "tools": {
20
+ "description": "Builds CommsChampion tools",
21
+ "supports": "!static",
22
+ "dependencies": [
23
+ "qt5-base"
24
+ ]
25
+ }
26
+ }
27
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/commsdsl/portfile.cmake ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO commschamp/commsdsl
4
+ REF v3.6.4
5
+ SHA512 dd997bb063baf4e6bc15666539e8d3e8cf435cfda88e8b115b8a1568c8c77cc2ca6dbf1a77ae2fcf9b24f68cb35aa2ae583852cf887fbc85f74e868230374055
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_configure_cmake(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ PREFER_NINJA
12
+ OPTIONS
13
+ -DCOMMSDSL_NO_COMMS_CHAMPION=ON
14
+ -DCOMMSDSL_BUILD_APPS=ON
15
+ -DCOMMSDSL_INSTALL_APPS=ON
16
+ -DCOMMSDSL_CHECKOUT_COMMS_CHAMPION=OFF
17
+ -DCOMMSDSL_BUILD_UNIT_TESTS=OFF
18
+ -DCOMMSDSL_WARN_AS_ERR=OFF
19
+ )
20
+ vcpkg_install_cmake()
21
+
22
+ vcpkg_copy_tools(
23
+ TOOL_NAMES commsdsl2comms
24
+ AUTO_CLEAN
25
+ )
26
+
27
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/LibCommsdsl/cmake TARGET_PATH share/LibCommsdsl)
28
+ # after fixing the following dirs are empty
29
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/LibCommsdsl")
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/LibCommsdsl")
32
+
33
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
34
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
35
+ endif()
36
+ # Handle copyright
37
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/commsdsl/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "commsdsl",
3
+ "version-semver": "3.6.4",
4
+ "port-version": 1,
5
+ "description": "DSL schemas parser and code generator for CommsChampion Ecosystem",
6
+ "homepage": "https://commschamp.github.io/",
7
+ "documentation": "https://github.com/commschamp/commsdsl",
8
+ "supports": "!uwp & !static",
9
+ "dependencies": [
10
+ "boost-algorithm",
11
+ "boost-filesystem",
12
+ "boost-program-options",
13
+ "libxml2"
14
+ ]
15
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/compoundfilereader/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO Microsoft/compoundfilereader
4
+ REF v0.1.0
5
+ SHA512 0ebb3ad02e4723d5e00a553d608dd8760614a3d83785c0e96a6d9a04df7e92486f6a4ecc0f7327a593776865abe697d21125554d547e89c838c69ab2da24d906
6
+ )
7
+
8
+ file(COPY "${SOURCE_PATH}/src/include/compoundfilereader.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
9
+ file(COPY "${SOURCE_PATH}/src/include/utf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
10
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/compoundfilereader/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "compoundfilereader",
3
+ "version": "0.1.0",
4
+ "description": "Simple standalone c++ header file to read compound file (Structured Storage File) content.",
5
+ "homepage": "https://github.com/microsoft/compoundfilereader"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrencpp/fix-include-path.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 351aa65..ab06584 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -94,7 +94,7 @@ include(CMakePackageConfigHelpers)
6
+ include(GNUInstallDirs)
7
+
8
+ set(concurrencpp_directory "concurrencpp-${PROJECT_VERSION}")
9
+ -set(concurrencpp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}/${concurrencpp_directory}")
10
+ +set(concurrencpp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}")
11
+
12
+ install(TARGETS concurrencpp
13
+ EXPORT concurrencppTargets
third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrencpp/portfile.cmake ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO David-Haim/concurrencpp
4
+ REF v.0.1.4
5
+ SHA512 494680b8a642d9c2ad1e31a6b52ecac672af7b8ba2213fc6b0d525968bd27122c9b3c7105286af22fd6ebfa3cee4bb3b2c8948062418ad8419a305f7c3df0d4b
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-include-path.patch
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ )
14
+
15
+ vcpkg_cmake_install()
16
+
17
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/concurrencpp-0.1.4)
20
+
21
+ file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/concurrencpp RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrencpp/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "concurrencpp",
3
+ "version": "0.1.4",
4
+ "description": "concurrencpp is a tasking library for C++ allowing developers to write highly concurrent applications easily and safely by using tasks, executors and coroutines.",
5
+ "homepage": "https://github.com/David-Haim/concurrencpp/",
6
+ "license": "MIT",
7
+ "supports": "(windows & static) | linux | osx",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/CMakeLists.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.5)
2
+ project(concurrentqueue C)
3
+
4
+ add_library(concurrentqueue INTERFACE)
5
+
6
+ target_include_directories(concurrentqueue INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
7
+
8
+ install(TARGETS concurrentqueue
9
+ EXPORT concurrentqueue
10
+ )
11
+ install(EXPORT concurrentqueue FILE unofficial-concurrentqueue-targets.cmake NAMESPACE unofficial::concurrentqueue:: DESTINATION share/unofficial-concurrentqueue)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO cameron314/concurrentqueue
5
+ REF 3747268264d0fa113e981658a99ceeae4dad05b7# v1.0.3
6
+ SHA512 798d61e8e5b87cd1870df20410db18e2fcbc5e4e1d849308663cc0403a0d50d29b72428fc0a39231ae8bcb460c946559bde0f2d22584c335fe849cbcbe607ec2
7
+ HEAD_REF master
8
+ )
9
+
10
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
11
+
12
+ vcpkg_configure_cmake(
13
+ SOURCE_PATH ${SOURCE_PATH}
14
+ PREFER_NINJA
15
+ )
16
+
17
+ vcpkg_install_cmake()
18
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-concurrentqueue TARGET_PATH share/unofficial-concurrentqueue)
19
+
20
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
21
+
22
+ configure_file(
23
+ ${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-config.in.cmake
24
+ ${CURRENT_PACKAGES_DIR}/share/unofficial-concurrentqueue/unofficial-concurrentqueue-config.cmake
25
+ @ONLY
26
+ )
27
+
28
+ file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h)
29
+ file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
30
+ file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/unofficial-concurrentqueue-config.in.cmake ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT WIN32)
2
+ include(CMakeFindDependencyMacro)
3
+ find_dependency(Threads)
4
+ endif()
5
+
6
+ include(${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-targets.cmake)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/concurrentqueue/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "concurrentqueue",
3
+ "version": "1.0.3",
4
+ "description": "A fast multi-producer, multi-consumer lock-free concurrent queue for C++11",
5
+ "homepage": "https://github.com/cameron314/concurrentqueue"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/console-bridge/portfile.cmake ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO ros/console_bridge
4
+ REF 0a6c16ed68750837c32ed1cedee9fca7d61d4364 # 1.0.1
5
+ SHA512 8b856bf8c0eec7d7f3f87e10c4de2b99369bd35cab5f9dd5ea3813fdd5a3fd4e7cd31b2336746920e093a515ad1175fd5af79f9d2f6a4648b1814b3131a1ef03
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_configure_cmake(
10
+ SOURCE_PATH ${SOURCE_PATH}
11
+ PREFER_NINJA
12
+ )
13
+
14
+ vcpkg_install_cmake()
15
+ vcpkg_copy_pdbs()
16
+
17
+ if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake)
18
+ vcpkg_fixup_cmake_targets(CONFIG_PATH CMake TARGET_PATH share/console_bridge)
19
+ else()
20
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/console_bridge/cmake TARGET_PATH share/console_bridge)
21
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/console_bridge)
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/console_bridge)
23
+ endif()
24
+
25
+ if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/pkgconfig)
26
+ vcpkg_fixup_pkgconfig()
27
+ endif()
28
+
29
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
30
+
31
+ file(READ ${SOURCE_PATH}/src/console.cpp _contents)
32
+ string(SUBSTRING "${_contents}" 0 2000 license)
33
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/console-bridge)
34
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/console-bridge/copyright "${license}")
35
+
36
+ file(READ ${CURRENT_PACKAGES_DIR}/include/console_bridge_export.h _contents)
37
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
38
+ string(REPLACE "ifdef CONSOLE_BRIDGE_STATIC_DEFINE" "if 1" _contents "${_contents}")
39
+ else()
40
+ string(REPLACE "ifdef CONSOLE_BRIDGE_STATIC_DEFINE" "if 0" _contents "${_contents}")
41
+ endif()
42
+ file(WRITE ${CURRENT_PACKAGES_DIR}/include/console_bridge_export.h "${_contents}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/console-bridge/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "console-bridge",
3
+ "version-string": "1.0.1",
4
+ "port-version": 2,
5
+ "description": "a ROS-independent package for logging that seamlessly pipes into rosconsole/rosout for ROS-dependent packages.",
6
+ "homepage": "https://github.com/ros/console_bridge"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr-contracts/portfile.cmake ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO cjdb/constexpr-contracts
6
+ REF 58154e9010cb80aad4e95ef6f1835ebd7db3780a # commit 2020-05-25
7
+ SHA512 b634267a4044cd712c8e52f65cd305f437864cab591f2b22104581f70b305ba52889dd46724e6047386463a010ee78fdd951411ea3691b5725d52d13f7adda76
8
+ HEAD_REF main
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/constexpr-contracts)
18
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib
19
+ ${CURRENT_PACKAGES_DIR}/debug)
20
+ file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr-contracts/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "constexpr-contracts",
3
+ "version-string": "2020-08-09",
4
+ "port-version": 1,
5
+ "description": "A constexpr-friendly, optimisation-friendly contracts library.",
6
+ "homepage": "https://github.com/cjdb/constexpr-contracts"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr/portfile.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO elbeno/constexpr
5
+ REF a98b1db39c909e0130d21d3910d4faf97035a625
6
+ SHA512 8802ee43b510ea1f0c00949eecd84eb2bf3ac721802e6bc6755db9e6e2742d8b97fef427eca7d4d9a282c60a18ca10401386022eac995bd22624f45e3fc2c370
7
+ HEAD_REF master
8
+ )
9
+
10
+ # Put the licence file where vcpkg expects it
11
+ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE)
12
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright)
13
+
14
+ # Copy the constexpr header files
15
+ file(GLOB HEADER_FILES ${SOURCE_PATH}/src/include/*.h)
16
+ file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/constexpr/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "constexpr",
3
+ "version-string": "1.0",
4
+ "port-version": 2,
5
+ "description": "Small MIT License Library of general stdlib functions written as C++11 constexpr functions.",
6
+ "homepage": "https://github.com/elbeno/constexpr"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/continuable/fix-cmakelists.patch ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ --- a/CMakeLists.txt
3
+ +++ b/CMakeLists.txt
4
+ @@ -23,13 +23,6 @@ cmake_minimum_required(VERSION 3.11)
5
+
6
+ project(continuable VERSION 4.0.0 LANGUAGES C CXX)
7
+
8
+ -if (CTI_CONTINUABLE_IS_FIND_INCLUDED)
9
+ - set(CTI_CONTINUABLE_IS_TOP_LEVEL_PROJECT OFF)
10
+ -else()
11
+ - string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR}
12
+ - CTI_CONTINUABLE_IS_TOP_LEVEL_PROJECT)
13
+ -endif()
14
+ -
15
+ option(CTI_CONTINUABLE_WITH_INSTALL
16
+ "Add the continuable install targets"
17
+ ${CTI_CONTINUABLE_IS_TOP_LEVEL_PROJECT})
18
+ @@ -80,7 +73,7 @@ if(NOT TARGET Threads::Threads)
19
+ find_package(Threads REQUIRED)
20
+ endif()
21
+
22
+ -if (CTI_CONTINUABLE_IS_TOP_LEVEL_PROJECT)
23
+ +if (FALSE)
24
+ include(cmake/CMakeLists.txt)
25
+ add_subdirectory(dep)
26
+ else()
27
+ @@ -90,7 +83,7 @@ else()
28
+ endif()
29
+
30
+ # continuable-base
31
+ -if (CTI_CONTINUABLE_IS_TOP_LEVEL_PROJECT)
32
+ +if (TRUE)
33
+ add_library(continuable-base INTERFACE)
34
+ else()
35
+ add_library(continuable-base INTERFACE IMPORTED GLOBAL)
36
+ @@ -146,7 +139,7 @@ if (CTI_CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS)
37
+ CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS)
38
+ endif()
39
+
40
+ -if (CTI_CONTINUABLE_IS_TOP_LEVEL_PROJECT)
41
+ +if (TRUE)
42
+ add_library(continuable INTERFACE)
43
+ else()
44
+ add_library(continuable INTERFACE IMPORTED GLOBAL)
45
+ @@ -168,8 +161,8 @@ if (CTI_CONTINUABLE_WITH_INSTALL)
46
+ # Headers and license files
47
+ install(DIRECTORY "${PROJECT_SOURCE_DIR}/include/continuable"
48
+ DESTINATION "include")
49
+ - install(FILES "LICENSE.txt" DESTINATION .)
50
+ - install(FILES "Readme.md" DESTINATION .)
51
+ + install(FILES "LICENSE.txt" DESTINATION share/${PROJECT_NAME} RENAME copyright)
52
+ + install(FILES "Readme.md" DESTINATION share/${PROJECT_NAME})
53
+
54
+ # Config.cmake
55
+ write_basic_package_version_file(
third-party/DPVO/Pangolin/scripts/vcpkg/ports/continuable/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO Naios/continuable
4
+ REF 4.1.0
5
+ SHA512 b80b1c13b068382553b727fd3b346323e2051b1c92237efa151ba8ec92b6d722ca993ae4bbf0e6e308a92834ae92011a179e74fcf713a09beaa48676f7d08340
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-cmakelists.patch
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ OPTIONS
15
+ -DCTI_CONTINUABLE_WITH_INSTALL=ON
16
+ -DCTI_CONTINUABLE_WITH_TESTS=OFF
17
+ -DCTI_CONTINUABLE_WITH_EXAMPLES=OFF
18
+ -DCTI_CONTINUABLE_WITH_BENCHMARKS=OFF
19
+ -DCTI_CONTINUABLE_WITH_NO_EXCEPTIONS=OFF
20
+ -DCTI_CONTINUABLE_WITH_UNHANDLED_EXCEPTIONS=ON
21
+ -DCTI_CONTINUABLE_WITH_EXPERIMENTAL_COROUTINE=ON
22
+ -DCTI_CONTINUABLE_WITH_CPP_LATEST=ON # requires cxx_std_17
23
+ )
24
+ vcpkg_install_cmake()
25
+ vcpkg_copy_pdbs()
26
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
27
+
28
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib
29
+ ${CURRENT_PACKAGES_DIR}/debug
30
+ )