Techt3o commited on
Commit
86a4abd
·
verified ·
1 Parent(s): ce9cfd2

b490c9e40cd61b4bf9ab1157ad757a2c7d0ffac8477f87cc23896e212c3839b4

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/capstone/001-silence-windows-crt-secure-warnings.patch +15 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/capstone/portfile.cmake +52 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/capstone/vcpkg.json +71 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cargs/portfile.cmake +21 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cargs/vcpkg.json +16 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/fix-build-error.patch +25 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/fix-cmake-location.patch +22 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/fix-find-packages.patch +181 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/portfile.cmake +36 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/vcpkg.json +30 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/casclib/fix-shared-windows-builds.patch +20 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/casclib/portfile.cmake +29 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/casclib/vcpkg.json +18 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch-classic/portfile.cmake +16 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch-classic/vcpkg.json +11 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch/portfile.cmake +1 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch/vcpkg.json +9 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch2/fix-install-path.patch +22 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch2/portfile.cmake +43 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch2/vcpkg.json +18 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cccapstone/fix-include-path.patch +24 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cccapstone/portfile.cmake +11 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cccapstone/vcpkg.json +10 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/fix-static.patch +13 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/portfile.cmake +35 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/support-emscripten.patch +25 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/vcpkg.json +7 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/dll_exports.patch +488 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/fix-dependency.patch +15 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/portfile.cmake +41 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/vcpkg.json +14 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctag/portfile.cmake +48 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctag/vcpkg.json +60 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctz/CMakeLists.txt +40 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctz/portfile.cmake +28 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctz/vcpkg.json +10 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/celero/portfile.cmake +33 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/celero/vcpkg.json +7 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cello/CMakeLists.txt +26 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cello/portfile.cmake +27 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cello/vcpkg.json +7 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cereal/portfile.cmake +27 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/cereal/vcpkg.json +7 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0001_cmakelists_fixes.patch +46 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0002_use_glog_target.patch +25 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0003_fix_exported_ceres_config.patch +66 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0004_fix_lib_path_linux.patch +13 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/find-package-required.patch +58 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/portfile.cmake +65 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/vcpkg.json +60 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/capstone/001-silence-windows-crt-secure-warnings.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index f5f4448..5e5cc7e 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -87,6 +87,10 @@ if(CAPSTONE_BUILD_STATIC_RUNTIME)
6
+ set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
7
+ endif()
8
+
9
+ +if(WIN32)
10
+ + add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
11
+ +endif()
12
+ +
13
+ ## sources
14
+ set(SOURCES_ENGINE
15
+ cs.c
third-party/DPVO/Pangolin/scripts/vcpkg/ports/capstone/portfile.cmake ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REF d5141c04785678535c7792eddc21f146186e639f # 5.0.0-rc2
4
+ REPO "capstone-engine/capstone"
5
+ SHA512 de9cf7da9fc3e502165b28b998b472791c8d5366e1a1a1fabd6bb8856a6fae80bf7d1fc4d268572d69c3526161bb0509a598ad4d94207e25a62aff6a5f9e9404
6
+ HEAD_REF next
7
+ PATCHES
8
+ 001-silence-windows-crt-secure-warnings.patch
9
+ )
10
+
11
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
12
+
13
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
14
+ FEATURES
15
+ "arm" CAPSTONE_ARM_SUPPORT
16
+ "arm64" CAPSTONE_ARM64_SUPPORT
17
+ "evm" CAPSTONE_EVM_SUPPORT
18
+ "m680x" CAPSTONE_M680X_SUPPORT
19
+ "m68k" CAPSTONE_M68K_SUPPORT
20
+ "mips" CAPSTONE_MIPS_SUPPORT
21
+ "osxkernel" CAPSTONE_OSXKERNEL_SUPPORT
22
+ "ppc" CAPSTONE_PPC_SUPPORT
23
+ "sparc" CAPSTONE_SPARC_SUPPORT
24
+ "sysz" CAPSTONE_SYSZ_SUPPORT
25
+ "tms320c64x" CAPSTONE_TMS320C64X_SUPPORT
26
+ "x86" CAPSTONE_X86_SUPPORT
27
+ "x86-reduce" CAPSTONE_X86_REDUCE
28
+ "xcore" CAPSTONE_XCORE_SUPPORT
29
+ "diet" CAPSTONE_BUILD_DIET
30
+ )
31
+
32
+ if ("osxkernel" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_OSX)
33
+ message(FATAL_ERROR "Feature 'osxkernel' only supported in OSX")
34
+ endif()
35
+
36
+ vcpkg_cmake_configure(
37
+ SOURCE_PATH "${SOURCE_PATH}"
38
+ OPTIONS
39
+ -DCAPSTONE_BUILD_TESTS=OFF
40
+ -DCAPSTONE_BUILD_CSTOOL=OFF
41
+ -DCAPSTONE_BUILD_STATIC_RUNTIME=${STATIC_CRT}
42
+ ${FEATURE_OPTIONS}
43
+ )
44
+
45
+ vcpkg_cmake_install()
46
+ vcpkg_copy_pdbs()
47
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
48
+ vcpkg_fixup_pkgconfig()
49
+
50
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
51
+
52
+ file(INSTALL "${SOURCE_PATH}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/capstone/vcpkg.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "capstone",
3
+ "version": "5.0.0-rc2",
4
+ "description": "Multi-architecture disassembly framework",
5
+ "homepage": "https://github.com/capstone-engine/capstone",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ },
11
+ {
12
+ "name": "vcpkg-cmake-config",
13
+ "host": true
14
+ }
15
+ ],
16
+ "features": {
17
+ "arm": {
18
+ "description": "Capstone disassembly support for ARM"
19
+ },
20
+ "arm64": {
21
+ "description": "Capstone disassembly support for ARM64"
22
+ },
23
+ "diet": {
24
+ "description": "Build Capstone in diet mode (reduced features for smaller size)"
25
+ },
26
+ "evm": {
27
+ "description": "Capstone disassembly support for EVM"
28
+ },
29
+ "m680x": {
30
+ "description": "Capstone disassembly support for M680X"
31
+ },
32
+ "m68k": {
33
+ "description": "Capstone disassembly support for M68k"
34
+ },
35
+ "mips": {
36
+ "description": "Capstone disassembly support for MIPS"
37
+ },
38
+ "osxkernel": {
39
+ "description": "Support for embedding Capstone into OSX Kernel extensions"
40
+ },
41
+ "ppc": {
42
+ "description": "Capstone disassembly support for PowerPC"
43
+ },
44
+ "sparc": {
45
+ "description": "Capstone disassembly support for SPARC"
46
+ },
47
+ "sysz": {
48
+ "description": "Capstone disassembly support for SysZ"
49
+ },
50
+ "tms320c64x": {
51
+ "description": "Capstone disassembly support for TMS320C64X"
52
+ },
53
+ "x86": {
54
+ "description": "Capstone disassembly support for x86"
55
+ },
56
+ "x86-reduce": {
57
+ "description": "Capstone disassembly support for x86 without support for less used instructions",
58
+ "dependencies": [
59
+ {
60
+ "name": "capstone",
61
+ "features": [
62
+ "x86"
63
+ ]
64
+ }
65
+ ]
66
+ },
67
+ "xcore": {
68
+ "description": "Capstone disassembly support for XCore"
69
+ }
70
+ }
71
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cargs/portfile.cmake ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO likle/cargs
4
+ REF v1.0.3
5
+ SHA512 4f82f6857af6ae7bd1263f4c812a770fa3c3f94c84d5a0ba6256289a3d3084cd35b3aca6769241451d2acd57577ccc6638327b5bb70328800e9c3c4f5054f7de
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ OPTIONS
12
+ -DENABLE_TESTS=OFF
13
+ )
14
+
15
+ vcpkg_cmake_install()
16
+ vcpkg_copy_pdbs()
17
+
18
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cargs)
19
+
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
21
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cargs/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cargs",
3
+ "version": "1.0.3",
4
+ "description": "A lightweight cross-platform getopt alternative that works on Linux, Windows and macOS. Command line argument parser library for C/C++. Can be used to parse argv and argc parameters.",
5
+ "homepage": "https://likle.github.io/cargs/",
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/cartographer/fix-build-error.patch ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cartographer/common/internal/testing/thread_pool_for_testing.cc b/cartographer/common/internal/testing/thread_pool_for_testing.cc
2
+ index f804e13..c987f68 100644
3
+ --- a/cartographer/common/internal/testing/thread_pool_for_testing.cc
4
+ +++ b/cartographer/common/internal/testing/thread_pool_for_testing.cc
5
+ @@ -16,7 +16,7 @@
6
+
7
+ #include "cartographer/common/internal/testing/thread_pool_for_testing.h"
8
+
9
+ -#include <unistd.h>
10
+ +//#include <unistd.h>
11
+ #include <algorithm>
12
+ #include <chrono>
13
+ #include <numeric>
14
+ diff --git a/cartographer/mapping/pose_graph_interface.h b/cartographer/mapping/pose_graph_interface.h
15
+ index 6483ef4..6456720 100644
16
+ --- a/cartographer/mapping/pose_graph_interface.h
17
+ +++ b/cartographer/mapping/pose_graph_interface.h
18
+ @@ -18,6 +18,7 @@
19
+ #define CARTOGRAPHER_MAPPING_POSE_GRAPH_INTERFACE_H_
20
+
21
+ #include <vector>
22
+ +#include <array>
23
+
24
+ #include "cartographer/common/optional.h"
25
+ #include "cartographer/mapping/id.h"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/fix-cmake-location.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 2e3a686be..f2a0c5d8e 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -300,7 +300,7 @@ foreach(HDR ${INSTALL_GENERATED_HDRS})
6
+ )
7
+ endforeach()
8
+
9
+ -set(CARTOGRAPHER_CMAKE_DIR share/cartographer/cmake)
10
+ +set(CARTOGRAPHER_CMAKE_DIR share/cartographer)
11
+ include(CMakePackageConfigHelpers)
12
+ configure_package_config_file(
13
+ cartographer-config.cmake.in
14
+ @@ -311,7 +311,7 @@ configure_package_config_file(
15
+
16
+ install(
17
+ EXPORT CartographerExport
18
+ - DESTINATION share/cartographer/cmake/
19
+ + DESTINATION share/cartographer/
20
+ FILE CartographerTargets.cmake
21
+ )
22
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/fix-find-packages.patch ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 2e3a686..f36f15a 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -25,27 +25,33 @@ option(BUILD_GRPC "build Cartographer gRPC support" false)
6
+ option(BUILD_PROMETHEUS "build Prometheus monitoring support" false)
7
+
8
+ include("${PROJECT_SOURCE_DIR}/cmake/functions.cmake")
9
+ -google_initialize_cartographer_project()
10
+ -google_enable_testing()
11
+ +#google_initialize_cartographer_project()
12
+ +#google_enable_testing()
13
+
14
+ find_package(Boost REQUIRED COMPONENTS iostreams)
15
+ find_package(Ceres REQUIRED COMPONENTS SuiteSparse)
16
+ find_package(Eigen3 REQUIRED)
17
+ -find_package(LuaGoogle REQUIRED)
18
+ +find_package(Lua REQUIRED)
19
+ find_package(Protobuf 3.0.0 REQUIRED)
20
+ +find_package(glog REQUIRED)
21
+ +find_package(gflags REQUIRED)
22
+
23
+ if (${BUILD_GRPC})
24
+ find_package(async_grpc REQUIRED)
25
+ endif()
26
+
27
+ -include(FindPkgConfig)
28
+ -PKG_SEARCH_MODULE(CAIRO REQUIRED cairo>=1.12.16)
29
+ +#include(FindPkgConfig)
30
+ +#PKG_SEARCH_MODULE(CAIRO REQUIRED cairo>=1.12.16)
31
+ +#if(CMAKE_BUILD_TYPE STREQUAL Debug)
32
+ +# set(CAIRO_LIB_SUFFIX d)
33
+ +#endif()
34
+ +find_library(CAIRO_LIBRARY cairo${CAIRO_LIB_SUFFIX})
35
+
36
+ # Only build the documentation if we can find Sphinx.
37
+ -find_package(Sphinx)
38
+ -if(SPHINX_FOUND)
39
+ - add_subdirectory("docs")
40
+ -endif()
41
+ +#find_package(Sphinx)
42
+ +#if(SPHINX_FOUND)
43
+ +# add_subdirectory("docs")
44
+ +#endif()
45
+
46
+ # Install catkin package.xml
47
+ install(FILES package.xml DESTINATION share/cartographer)
48
+ @@ -169,20 +175,20 @@ configure_file(
49
+ ${PROJECT_SOURCE_DIR}/cartographer/common/config.h.cmake
50
+ ${PROJECT_BINARY_DIR}/cartographer/common/config.h)
51
+
52
+ -google_binary(cartographer_autogenerate_ground_truth
53
+ - SRCS
54
+ - cartographer/ground_truth/autogenerate_ground_truth_main.cc
55
+ -)
56
+ -
57
+ -google_binary(cartographer_compute_relations_metrics
58
+ - SRCS
59
+ - cartographer/ground_truth/compute_relations_metrics_main.cc
60
+ -)
61
+ -
62
+ -google_binary(cartographer_migrate_serialization_format
63
+ - SRCS
64
+ - cartographer/io/migrate_serialization_format_main.cc
65
+ -)
66
+ +#google_binary(cartographer_autogenerate_ground_truth
67
+ +# SRCS
68
+ +# cartographer/ground_truth/autogenerate_ground_truth_main.cc
69
+ +#)
70
+ +#
71
+ +#google_binary(cartographer_compute_relations_metrics
72
+ +# SRCS
73
+ +# cartographer/ground_truth/compute_relations_metrics_main.cc
74
+ +#)
75
+ +#
76
+ +#google_binary(cartographer_migrate_serialization_format
77
+ +# SRCS
78
+ +# cartographer/io/migrate_serialization_format_main.cc
79
+ +#)
80
+
81
+ if(${BUILD_GRPC})
82
+ google_binary(cartographer_grpc_server
83
+ @@ -213,8 +219,9 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
84
+ target_link_libraries(${PROJECT_NAME} PUBLIC ${Boost_LIBRARIES})
85
+
86
+ # We expect find_package(Ceres) to have located these for us.
87
+ -target_link_libraries(${PROJECT_NAME} PUBLIC glog)
88
+ -target_link_libraries(${PROJECT_NAME} PUBLIC gflags)
89
+ +#target_link_libraries(${PROJECT_NAME} PUBLIC glog)
90
+ +#target_link_libraries(${PROJECT_NAME} PUBLIC gflags)
91
+ +#target_link_libraries(${PROJECT_NAME} PUBLIC ${CAIRO_LIBRARY})
92
+
93
+ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
94
+ "${CAIRO_INCLUDE_DIRS}")
95
+ @@ -224,7 +231,8 @@ target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC
96
+ ${PROTOBUF_INCLUDE_DIR})
97
+ # TODO(hrapp): This should not explicitly list pthread and use
98
+ # PROTOBUF_LIBRARIES, but that failed on first try.
99
+ -target_link_libraries(${PROJECT_NAME} PUBLIC ${PROTOBUF_LIBRARY} pthread)
100
+ +#target_link_libraries(${PROJECT_NAME} PUBLIC ${PROTOBUF_LIBRARY} pthread)
101
+ +target_link_libraries(${PROJECT_NAME} PUBLIC ${PROTOBUF_LIBRARY})
102
+ if(${BUILD_GRPC})
103
+ target_link_libraries(${PROJECT_NAME} PUBLIC grpc++)
104
+ target_link_libraries(${PROJECT_NAME} PUBLIC async_grpc)
105
+ @@ -234,7 +242,7 @@ if(${BUILD_PROMETHEUS})
106
+ target_compile_definitions(${PROJECT_NAME} PUBLIC USE_PROMETHEUS=1)
107
+ endif()
108
+
109
+ -set(TARGET_COMPILE_FLAGS "${TARGET_COMPILE_FLAGS} ${GOOG_CXX_FLAGS}")
110
+ +set(TARGET_COMPILE_FLAGS "-D_DISABLE_EXTENDED_ALIGNED_STORAGE ${TARGET_COMPILE_FLAGS} ${GOOG_CXX_FLAGS}")
111
+ set_target_properties(${PROJECT_NAME} PROPERTIES
112
+ COMPILE_FLAGS ${TARGET_COMPILE_FLAGS})
113
+
114
+ @@ -255,7 +263,7 @@ foreach(ABS_FIL ${ALL_TESTS})
115
+ get_filename_component(FIL_WE ${REL_FIL} NAME_WE)
116
+ # Replace slashes as required for CMP0037.
117
+ string(REPLACE "/" "." TEST_TARGET_NAME "${DIR}/${FIL_WE}")
118
+ - google_test("${TEST_TARGET_NAME}" ${ABS_FIL})
119
+ + #google_test("${TEST_TARGET_NAME}" ${ABS_FIL})
120
+ if(${BUILD_GRPC})
121
+ target_link_libraries("${TEST_TARGET_NAME}" PUBLIC grpc++)
122
+ target_link_libraries("${TEST_TARGET_NAME}" PUBLIC async_grpc)
123
+ @@ -263,7 +271,7 @@ foreach(ABS_FIL ${ALL_TESTS})
124
+ if(${BUILD_PROMETHEUS})
125
+ target_link_libraries("${TEST_TARGET_NAME}" PUBLIC prometheus-cpp)
126
+ endif()
127
+ - target_link_libraries("${TEST_TARGET_NAME}" PUBLIC ${TEST_LIB})
128
+ + #target_link_libraries("${TEST_TARGET_NAME}" PUBLIC ${TEST_LIB})
129
+ endforeach()
130
+
131
+ # Add the binary directory first, so that port.h is included after it has
132
+ diff --git a/cartographer/common/math.h b/cartographer/common/math.h
133
+ index c4a77ef..0248f66 100644
134
+ --- a/cartographer/common/math.h
135
+ +++ b/cartographer/common/math.h
136
+ @@ -17,6 +17,10 @@
137
+ #ifndef CARTOGRAPHER_COMMON_MATH_H_
138
+ #define CARTOGRAPHER_COMMON_MATH_H_
139
+
140
+ +#ifndef M_PI
141
+ +#define M_PI 3.14159265358979323846
142
+ +#endif
143
+ +
144
+ #include <cmath>
145
+ #include <vector>
146
+
147
+ diff --git a/cartographer/common/thread_pool.cc b/cartographer/common/thread_pool.cc
148
+ index bc3c743..db424d1 100644
149
+ --- a/cartographer/common/thread_pool.cc
150
+ +++ b/cartographer/common/thread_pool.cc
151
+ @@ -16,7 +16,7 @@
152
+
153
+ #include "cartographer/common/thread_pool.h"
154
+
155
+ -#include <unistd.h>
156
+ +//#include <unistd.h>
157
+ #include <algorithm>
158
+ #include <chrono>
159
+ #include <numeric>
160
+ diff --git a/cmake/functions.cmake b/cmake/functions.cmake
161
+ index 3bfd343..3d961b0 100644
162
+ --- a/cmake/functions.cmake
163
+ +++ b/cmake/functions.cmake
164
+ @@ -118,12 +118,12 @@ macro(google_initialize_cartographer_project)
165
+ set(LIST_FILES_CMD "find ${PROJECT_SOURCE_DIR}/ -not -iwholename '*.git*' | sort | sed 's/^/#/'")
166
+ set(FILES_LIST_PATH "${PROJECT_BINARY_DIR}/AllFiles.cmake")
167
+ set(DETECT_CHANGES_CMD "bash" "-c" "${LIST_FILES_CMD} | diff -N -q ${FILES_LIST_PATH} - || ${LIST_FILES_CMD} > ${FILES_LIST_PATH}")
168
+ - add_custom_target(${PROJECT_NAME}_detect_changes ALL
169
+ - COMMAND ${DETECT_CHANGES_CMD}
170
+ - VERBATIM
171
+ - )
172
+ + #add_custom_target(${PROJECT_NAME}_detect_changes ALL
173
+ + # COMMAND ${DETECT_CHANGES_CMD}
174
+ + # VERBATIM
175
+ + #)
176
+ if(NOT EXISTS ${FILES_LIST_PATH})
177
+ - execute_process(COMMAND ${DETECT_CHANGES_CMD})
178
+ + #execute_process(COMMAND ${DETECT_CHANGES_CMD})
179
+ endif()
180
+ include(${FILES_LIST_PATH})
181
+ endmacro()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO googlecartographer/cartographer
6
+ REF 1.0.0
7
+ SHA512 4e3b38ee40d9758cbd51f087578b82efb7d1199b4b7696d31f45938ac06250caaea2b4d85ccb0a848c958ba187a0101ee95c87323ca236c613995b23b215041c
8
+ HEAD_REF master
9
+ PATCHES
10
+ fix-find-packages.patch
11
+ fix-build-error.patch
12
+ fix-cmake-location.patch
13
+ )
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ -DGFLAGS_PREFER_EXPORTED_GFLAGS_CMAKE_CONFIGURATION=OFF
19
+ -DGLOG_PREFER_EXPORTED_GLOG_CMAKE_CONFIGURATION=OFF
20
+ -Dgtest_disable_pthreads=ON
21
+ -DCMAKE_USE_PTHREADS_INIT=OFF
22
+ OPTIONS_DEBUG
23
+ -DFORCE_DEBUG_BUILD=True
24
+ )
25
+
26
+ vcpkg_cmake_install()
27
+ vcpkg_cmake_config_fixup()
28
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/cartographer/CartographerTargets.cmake" "${SOURCE_PATH}/;" "")
29
+ vcpkg_copy_pdbs()
30
+
31
+ # Clean
32
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
33
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
34
+
35
+ # Handle copyright of cartographer
36
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cartographer/vcpkg.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cartographer",
3
+ "version": "1.0.0",
4
+ "port-version": 5,
5
+ "description": "Google 2D & 3D SLAM package",
6
+ "homepage": "https://github.com/googlecartographer/cartographer",
7
+ "dependencies": [
8
+ "boost-iostreams",
9
+ "cairo",
10
+ {
11
+ "name": "ceres",
12
+ "features": [
13
+ "suitesparse"
14
+ ]
15
+ },
16
+ "gflags",
17
+ "glog",
18
+ "gtest",
19
+ "lua",
20
+ "protobuf",
21
+ {
22
+ "name": "vcpkg-cmake",
23
+ "host": true
24
+ },
25
+ {
26
+ "name": "vcpkg-cmake-config",
27
+ "host": true
28
+ }
29
+ ]
30
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/casclib/fix-shared-windows-builds.patch ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ --- a/CMakeLists.txt
3
+ +++ b/CMakeLists.txt
4
+ @@ -51,8 +51,15 @@ set(SRC_FILES
5
+ src/CascRootFile_WoW.cpp
6
+ )
7
+
8
+ +if(WIN32)
9
+ + set(SRC_FILES ${SRC_FILES}
10
+ + src/DllMain.c
11
+ + src/DllMain.def
12
+ + )
13
+ +endif()
14
+ +
15
+ set(LINK_LIBS)
16
+ -find_package(ZLIB)
17
+ +find_package(ZLIB REQUIRED)
18
+ if (ZLIB_FOUND)
19
+ set(LINK_LIBS ${LINK_LIBS} ZLIB::ZLIB)
20
+ add_definitions(-DCASC_USE_SYSTEM_ZLIB)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/casclib/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO ladislav-zezula/CascLib
4
+ REF 07bfe85fd0804cba49f072819af716274d82b855
5
+ SHA512 b333fe6318aa95629aa67613287ac71b1931c6443985e7e52412066d769f7996bffca1c19e890851eba976f572c7a11f14a8ff5fb95433577e1c9af8de0f34af
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-shared-windows-builds.patch
9
+ )
10
+
11
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CASC_BUILD_SHARED_LIB)
12
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CASC_BUILD_STATIC_LIB)
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ OPTIONS
17
+ -DCASC_BUILD_SHARED_LIB=${CASC_BUILD_SHARED_LIB}
18
+ -DCASC_BUILD_STATIC_LIB=${CASC_BUILD_STATIC_LIB}
19
+ -DCASC_UNICODE=ON
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+ vcpkg_copy_pdbs()
24
+
25
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CascLib)
26
+
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
28
+
29
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/casclib/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "casclib",
3
+ "version-date": "2021-11-16",
4
+ "port-version": 1,
5
+ "description": "An open-source implementation of library for reading CASC storage from Blizzard games since 2014",
6
+ "homepage": "http://www.zezula.net/en/casc/casclib.html",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ },
16
+ "zlib"
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch-classic/portfile.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(CATCH_VERSION v1.12.2)
2
+
3
+ vcpkg_download_distfile(HEADER
4
+ URLS "https://github.com/catchorg/Catch2/releases/download/${CATCH_VERSION}/catch.hpp"
5
+ FILENAME "catch-classic-${CATCH_VERSION}.hpp"
6
+ SHA512 d2cf8b2fe95aae061a7771a0e1b7135583595d1f36dfc8d5e4d10e101ab58f6fac9d260f77c5760906c24aa402d7433aa82b5d6a0ca6b3ad91092dc5cc2d9c22
7
+ )
8
+
9
+ vcpkg_download_distfile(LICENSE
10
+ URLS "https://raw.githubusercontent.com/catchorg/Catch2/${CATCH_VERSION}/LICENSE.txt"
11
+ FILENAME "catch-classic-LICENSE-${CATCH_VERSION}.txt"
12
+ SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
13
+ )
14
+
15
+ file(INSTALL ${HEADER} DESTINATION ${CURRENT_PACKAGES_DIR}/include RENAME catch.hpp)
16
+ file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/catch-classic RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch-classic/vcpkg.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "catch-classic",
3
+ "version-string": "1.12.2",
4
+ "port-version": 1,
5
+ "description": [
6
+ "A modern, header-only test framework for unit tests",
7
+ "This is specifically the legacy 1.x branch provided for compatibility",
8
+ "with older compilers."
9
+ ],
10
+ "homepage": "https://github.com/catchorg/Catch2"
11
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch/portfile.cmake ADDED
@@ -0,0 +1 @@
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "catch",
3
+ "version-string": "alias",
4
+ "port-version": 1,
5
+ "description": "Deprecated alias for Catch2 unit testing framework",
6
+ "dependencies": [
7
+ "catch2"
8
+ ]
9
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch2/fix-install-path.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 0370ea3..7cef01a 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -146,7 +146,7 @@ if (NOT_SUBPROJECT)
6
+ EXPORT
7
+ Catch2Targets
8
+ DESTINATION
9
+ - ${CMAKE_INSTALL_LIBDIR}
10
+ + ${CMAKE_INSTALL_LIBDIR}/manual-link
11
+ )
12
+
13
+
14
+ @@ -226,7 +226,7 @@ if (NOT_SUBPROJECT)
15
+
16
+ ## Provide some pkg-config integration
17
+ set(PKGCONFIG_INSTALL_DIR
18
+ - "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig"
19
+ + "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
20
+ CACHE PATH "Path where catch2.pc is installed"
21
+ )
22
+ configure_file(
third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch2/portfile.cmake ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO catchorg/Catch2
4
+ REF v2.13.8
5
+ SHA512 68a45efa47beb3c85d2d7b8a8eba89b8ec1664b4a72bb223227fef1632778aeaf5cf5cc09f40e47aef50426c8661c7d6a69c2dab0b88fbbf7d9a6b2974d6e32e
6
+ HEAD_REF devel
7
+ PATCHES
8
+ fix-install-path.patch
9
+ )
10
+
11
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ -DBUILD_TESTING=OFF
17
+ -DCATCH_BUILD_EXAMPLES=OFF
18
+ -DCATCH_INSTALL_DOCS=OFF
19
+ -DCATCH_BUILD_STATIC_LIBRARY=${BUILD_STATIC}
20
+ )
21
+
22
+ vcpkg_cmake_install()
23
+ if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
24
+ file(RENAME "${CURRENT_PACKAGES_DIR}/share/Catch2" "${CURRENT_PACKAGES_DIR}/share/catch2_")
25
+ file(RENAME "${CURRENT_PACKAGES_DIR}/share/catch2_" "${CURRENT_PACKAGES_DIR}/share/catch2")
26
+ endif()
27
+ if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
28
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/Catch2" "${CURRENT_PACKAGES_DIR}/debug/share/catch2_")
29
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/catch2_" "${CURRENT_PACKAGES_DIR}/debug/share/catch2")
30
+ endif()
31
+
32
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/Catch2")
33
+ vcpkg_fixup_pkgconfig()
34
+
35
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
36
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
37
+
38
+ if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/include/catch2/catch.hpp")
39
+ message(FATAL_ERROR "Main includes have moved. Please update the forwarder.")
40
+ endif()
41
+
42
+ file(WRITE "${CURRENT_PACKAGES_DIR}/include/catch.hpp" "#include <catch2/catch.hpp>")
43
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/catch2/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "catch2",
3
+ "version-semver": "2.13.8",
4
+ "port-version": 1,
5
+ "description": "A modern, header-only test framework for unit testing.",
6
+ "homepage": "https://github.com/catchorg/Catch2",
7
+ "license": "BSL-1.0",
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/cccapstone/fix-include-path.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cppbindings/CsCapstoneHelper.hh b/cppbindings/CsCapstoneHelper.hh
2
+ index daf7a73..8ed5194 100644
3
+ --- a/cppbindings/CsCapstoneHelper.hh
4
+ +++ b/cppbindings/CsCapstoneHelper.hh
5
+ @@ -1,6 +1,6 @@
6
+ #pragma once
7
+
8
+ -#include <capstone.h>
9
+ +#include <capstone/capstone.h>
10
+ #include <memory>
11
+
12
+ struct CS_HANDLE :
13
+ diff --git a/cppbindings/CsIns.hpp b/cppbindings/CsIns.hpp
14
+ index 6e8ba71..c723be9 100644
15
+ --- a/cppbindings/CsIns.hpp
16
+ +++ b/cppbindings/CsIns.hpp
17
+ @@ -1,6 +1,6 @@
18
+ #pragma once
19
+
20
+ -#include <capstone.h>
21
+ +#include <capstone/capstone.h>
22
+ #include "CsCapstoneHelper.hh"
23
+
24
+ //x86_insn_group, x86_reg, x86_op_type, x86_insn
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cccapstone/portfile.cmake ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REF 9b4128ee1153e78288a1b5433e2c06a0d47a4c4e
4
+ REPO zer0mem/cccapstone
5
+ SHA512 d0023586281f921314dbba501fa2c06d822b1adba0a0c32f30b78628ee935e5822caebe3881a5d1cc4cc696b82a7e348044d887a7f652303359d2853d2ee45fb
6
+ HEAD_REF master
7
+ PATCHES fix-include-path.patch
8
+ )
9
+
10
+ file(INSTALL ${SOURCE_PATH}/cppbindings/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/cccapstone/cppbindings)
11
+ file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/cccapstone RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cccapstone/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cccapstone",
3
+ "version-string": "9b4128ee1153e78288a1b5433e2c06a0d47a4c4e",
4
+ "port-version": 2,
5
+ "description": "c++ bindings for capstone disasembly framework",
6
+ "homepage": "https://github.com/zer0mem/cccapstone",
7
+ "dependencies": [
8
+ "capstone"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/fix-static.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/ccd/ccd_export.h b/src/ccd/ccd_export.h
2
+ index e898d41..c6aa5fb 100644
3
+ --- a/src/ccd/ccd_export.h
4
+ +++ b/src/ccd/ccd_export.h
5
+ @@ -1,7 +1,7 @@
6
+ #ifndef CCD_EXPORT_H
7
+ #define CCD_EXPORT_H
8
+
9
+ -#ifdef CCD_STATIC_DEFINE
10
+ +#if 1
11
+ # define CCD_EXPORT
12
+ #else
13
+ # ifdef _MSC_VER
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/portfile.cmake ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
2
+ set(STATIC_PATCH fix-static.patch)
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO danfis/libccd
8
+ REF v2.1
9
+ SHA512 ff037d9c4df50f09600cf9b3514b259b2850ff43f74817853f5665d22812891168f70bd3cc3969b2c9e3c706f6254991a65421476349607fbd04d894b217456d
10
+ HEAD_REF master
11
+ # Backport https://github.com/danfis/libccd/pull/70 to support Emscripten
12
+ PATCHES
13
+ "support-emscripten.patch"
14
+ ${STATIC_PATCH}
15
+ )
16
+
17
+ vcpkg_configure_cmake(
18
+ SOURCE_PATH ${SOURCE_PATH}
19
+ PREFER_NINJA
20
+ OPTIONS
21
+ -DBUILD_TESTING=OFF
22
+ )
23
+
24
+ vcpkg_install_cmake()
25
+ vcpkg_copy_pdbs()
26
+
27
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/ccd)
28
+
29
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
30
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
31
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/doc)
32
+
33
+ file(INSTALL ${SOURCE_PATH}/BSD-LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
34
+
35
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/support-emscripten.patch ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From c3616f28d33019047e8e71df8abeb0493159539e Mon Sep 17 00:00:00 2001
2
+ From: Silvio Traversaro <[email protected]>
3
+ Date: Sun, 17 May 2020 11:42:24 +0200
4
+ Subject: [PATCH] Fix configuration with Emscripten
5
+
6
+ In Emscripten there is no separate libm library, so there is no need to explicitly link it,
7
+ and in particular the find_library call would fail as there is not libm to find.
8
+ See https://stackoverflow.com/questions/24663915/how-can-i-link-libm-to-my-emscripten-port
9
+ ---
10
+ src/CMakeLists.txt | 2 +-
11
+ 1 file changed, 1 insertion(+), 1 deletion(-)
12
+
13
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
14
+ index 1407080..357ed76 100644
15
+ --- a/src/CMakeLists.txt
16
+ +++ b/src/CMakeLists.txt
17
+ @@ -48,7 +48,7 @@ target_include_directories(ccd PUBLIC
18
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
19
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
20
+
21
+ -if(NOT WIN32)
22
+ +if(NOT WIN32 AND NOT (CMAKE_SYSTEM_NAME STREQUAL "Emscripten"))
23
+ find_library(LIBM_LIBRARY NAMES m)
24
+ if(NOT LIBM_LIBRARY)
25
+ message(FATAL_ERROR "Could NOT find required library LibM")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccd/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ccd",
3
+ "version-string": "2.1-4",
4
+ "port-version": 3,
5
+ "description": "Library for collision detection between two convex shapes",
6
+ "homepage": "https://github.com/danfis/libccd"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/dll_exports.patch ADDED
@@ -0,0 +1,488 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/FITS.h b/FITS.h
2
+ index e21f3db..3e97c83 100644
3
+ --- a/FITS.h
4
+ +++ b/FITS.h
5
+ @@ -21,6 +21,8 @@
6
+ #include "HDUCreator.h"
7
+ // FitsError
8
+ #include "FitsError.h"
9
+ +//DLL Exporting
10
+ +#include "ccfits_export.h"
11
+
12
+ namespace CCfits {
13
+ class FITSBase;
14
+ @@ -665,7 +667,7 @@ do this either).
15
+
16
+
17
+
18
+ - class FITS
19
+ + class CCFITS_EXPORT FITS
20
+ {
21
+
22
+ public:
23
+ diff --git a/HDU.h b/HDU.h
24
+ index 07f68e7..047e731 100644
25
+ --- a/HDU.h
26
+ +++ b/HDU.h
27
+ @@ -568,7 +568,7 @@ and return its value.
28
+
29
+
30
+
31
+ - class HDU
32
+ + class CCFITS_EXPORT HDU
33
+ {
34
+
35
+ public:
36
+ diff --git a/Table.h b/Table.h
37
+ index a0c1afe..9a8a5db 100644
38
+ --- a/Table.h
39
+ +++ b/Table.h
40
+ @@ -268,7 +268,7 @@ namespace CCfits {
41
+
42
+
43
+
44
+ - class Table : public ExtHDU //## Inherits: <unnamed>%3804A126EB10
45
+ + class CCFITS_EXPORT Table : public ExtHDU //## Inherits: <unnamed>%3804A126EB10
46
+ {
47
+
48
+ public:
49
+ diff --git a/Column.h b/Column.h
50
+ index e4496a7..b798947 100644
51
+ --- a/Column.h
52
+ +++ b/Column.h
53
+ @@ -838,14 +838,14 @@ namespace CCfits {
54
+
55
+
56
+
57
+ - class Column
58
+ + class CCFITS_EXPORT Column
59
+ {
60
+
61
+ public:
62
+
63
+
64
+
65
+ - class RangeError : public FitsException //## Inherits: <unnamed>%3946526D031A
66
+ + class CCFITS_EXPORT RangeError : public FitsException //## Inherits: <unnamed>%3946526D031A
67
+ {
68
+ public:
69
+ RangeError (const String& msg, bool silent = true);
70
+ @@ -857,7 +857,7 @@ namespace CCfits {
71
+
72
+
73
+
74
+ - class InvalidDataType : public FitsException //## Inherits: <unnamed>%3947CF30033E
75
+ + class CCFITS_EXPORT InvalidDataType : public FitsException //## Inherits: <unnamed>%3947CF30033E
76
+ {
77
+ public:
78
+ InvalidDataType (const String& str = string(), bool silent = true);
79
+ @@ -869,7 +869,7 @@ namespace CCfits {
80
+
81
+
82
+
83
+ - class InvalidRowParameter : public FitsException //## Inherits: <unnamed>%39B5310F01A0
84
+ + class CCFITS_EXPORT InvalidRowParameter : public FitsException //## Inherits: <unnamed>%39B5310F01A0
85
+ {
86
+ public:
87
+ InvalidRowParameter (const String& diag, bool silent = true);
88
+ @@ -881,7 +881,7 @@ namespace CCfits {
89
+
90
+
91
+
92
+ - class WrongColumnType : public FitsException //## Inherits: <unnamed>%39B545780082
93
+ + class CCFITS_EXPORT WrongColumnType : public FitsException //## Inherits: <unnamed>%39B545780082
94
+ {
95
+ public:
96
+ WrongColumnType (const String& diag, bool silent = true);
97
+ @@ -893,7 +893,7 @@ namespace CCfits {
98
+
99
+
100
+
101
+ - class UnspecifiedLengths : public FitsException //## Inherits: <unnamed>%3A018C9D007D
102
+ + class CCFITS_EXPORT UnspecifiedLengths : public FitsException //## Inherits: <unnamed>%3A018C9D007D
103
+ {
104
+ public:
105
+ UnspecifiedLengths (const String& diag, bool silent = true);
106
+ @@ -905,7 +905,7 @@ namespace CCfits {
107
+
108
+
109
+
110
+ - class InvalidRowNumber : public FitsException //## Inherits: <unnamed>%3B0A850F0307
111
+ + class CCFITS_EXPORT InvalidRowNumber : public FitsException //## Inherits: <unnamed>%3B0A850F0307
112
+ {
113
+ public:
114
+ InvalidRowNumber (const String& diag, bool silent = true);
115
+ @@ -917,7 +917,7 @@ namespace CCfits {
116
+
117
+
118
+
119
+ - class InsufficientElements : public FitsException //## Inherits: <unnamed>%3B0BE611010A
120
+ + class CCFITS_EXPORT InsufficientElements : public FitsException //## Inherits: <unnamed>%3B0BE611010A
121
+ {
122
+ public:
123
+ InsufficientElements (const String& msg, bool silent = true);
124
+ @@ -929,7 +929,7 @@ namespace CCfits {
125
+
126
+
127
+
128
+ - class NoNullValue : public FitsException //## Inherits: <unnamed>%3B0D589A0092
129
+ + class CCFITS_EXPORT NoNullValue : public FitsException //## Inherits: <unnamed>%3B0D589A0092
130
+ {
131
+ public:
132
+ NoNullValue (const String& diag, bool silent = true);
133
+ @@ -941,7 +941,7 @@ namespace CCfits {
134
+
135
+
136
+
137
+ - class InvalidNumberOfRows : public FitsException //## Inherits: <unnamed>%3B20EB8B0205
138
+ + class CCFITS_EXPORT InvalidNumberOfRows : public FitsException //## Inherits: <unnamed>%3B20EB8B0205
139
+ {
140
+ public:
141
+ InvalidNumberOfRows (int number, bool silent = true);
142
+ diff --git a/AsciiTable.h b/AsciiTable.h
143
+ index 620cf41..d03aa44 100644
144
+ --- a/AsciiTable.h
145
+ +++ b/AsciiTable.h
146
+ @@ -133,7 +133,7 @@ namespace CCfits {
147
+
148
+
149
+
150
+ - class AsciiTable : public Table //## Inherits: <unnamed>%3804A75CE420
151
+ + class CCFITS_EXPORT AsciiTable : public Table //## Inherits: <unnamed>%3804A75CE420
152
+ {
153
+
154
+ public:
155
+ diff --git a/CCfits.h b/CCfits.h
156
+ index d09438a..a62b8a6 100644
157
+ --- a/CCfits.h
158
+ +++ b/CCfits.h
159
+ @@ -23,7 +23,7 @@ namespace CCfits {
160
+ #include <sys/types.h>
161
+ #include "longnam.h"
162
+ #include "float.h"
163
+ -
164
+ +#include "ccfits_export.h"
165
+
166
+ namespace CCfits {
167
+ /*! \namespace CCfits
168
+ @@ -32,8 +32,8 @@ namespace CCfits {
169
+ static const int BITPIX = -32;
170
+ static const int NAXIS = 2;
171
+ static const int MAXDIM = 99;
172
+ - extern const unsigned long USBASE;
173
+ - extern const unsigned long ULBASE;
174
+ + extern const CCFITS_EXPORT unsigned long USBASE;
175
+ + extern const CCFITS_EXPORT unsigned long ULBASE;
176
+
177
+ extern char BSCALE[7];
178
+ extern char BZERO[6];
179
+ diff --git a/FITSBase.h b/FITSBase.h
180
+ index 996fdae..0c985f9 100644
181
+ --- a/FITSBase.h
182
+ +++ b/FITSBase.h
183
+ @@ -30,7 +30,7 @@ namespace CCfits {
184
+
185
+
186
+
187
+ - class FITSBase
188
+ + class CCFITS_EXPORT FITSBase
189
+ {
190
+
191
+ public:
192
+ diff --git a/Keyword.h b/Keyword.h
193
+ index 816c119..b6df1f1 100644
194
+ --- a/Keyword.h
195
+ +++ b/Keyword.h
196
+ @@ -195,7 +195,7 @@ namespace CCfits {
197
+
198
+
199
+
200
+ - class Keyword
201
+ + class CCFITS_EXPORT Keyword
202
+ {
203
+
204
+ public:
205
+ diff --git a/ExtHDU.h b/ExtHDU.h
206
+ index d075fa1..e2d7dc6 100644
207
+ --- a/ExtHDU.h
208
+ +++ b/ExtHDU.h
209
+ @@ -435,7 +435,7 @@ namespace CCfits {
210
+
211
+
212
+
213
+ - class ExtHDU : public HDU //## Inherits: <unnamed>%38048213E7A8
214
+ + class CCFITS_EXPORT ExtHDU : public HDU //## Inherits: <unnamed>%38048213E7A8
215
+ {
216
+
217
+ public:
218
+ diff --git a/PHDU.h b/PHDU.h
219
+ index fe5f799..d9669b4 100644
220
+ --- a/PHDU.h
221
+ +++ b/PHDU.h
222
+ @@ -264,7 +264,7 @@ namespace CCfits {
223
+
224
+
225
+
226
+ - class PHDU : public HDU //## Inherits: <unnamed>%394E6F9800C3
227
+ + class CCFITS_EXPORT PHDU : public HDU //## Inherits: <unnamed>%394E6F9800C3
228
+ {
229
+
230
+ public:
231
+ diff --git a/BinTable.h b/BinTable.h
232
+ index 68851e3..906005a 100644
233
+ --- a/BinTable.h
234
+ +++ b/BinTable.h
235
+ @@ -127,7 +127,7 @@ namespace CCfits {
236
+
237
+
238
+
239
+ - class BinTable : public Table //## Inherits: <unnamed>%3804A7E75F10
240
+ + class CCFITS_EXPORT BinTable : public Table //## Inherits: <unnamed>%3804A7E75F10
241
+ {
242
+
243
+ public:
244
+ diff --git a/ColumnCreator.h b/ColumnCreator.h
245
+ index 104bd4f..15cd0ea 100644
246
+ --- a/ColumnCreator.h
247
+ +++ b/ColumnCreator.h
248
+ @@ -28,7 +28,7 @@ namespace CCfits {
249
+
250
+
251
+
252
+ - class ColumnCreator
253
+ + class CCFITS_EXPORT ColumnCreator
254
+ {
255
+
256
+ public:
257
+ diff --git a/FitsError.h b/FitsError.h
258
+ index 593723c..52941f6 100644
259
+ --- a/FitsError.h
260
+ +++ b/FitsError.h
261
+ @@ -13,6 +13,7 @@
262
+ //#include <exception>
263
+ //#include <iostream>
264
+ //#include <stl.h>
265
+ +#include "ccfits_export.h"
266
+ #include <string>
267
+ using std::string;
268
+
269
+ @@ -90,7 +91,7 @@ namespace CCfits {
270
+
271
+
272
+
273
+ - class FitsException
274
+ + class CCFITS_EXPORT FitsException
275
+ {
276
+ public:
277
+ FitsException (const string& msg, bool& silent);
278
+ @@ -109,7 +110,7 @@ namespace CCfits {
279
+
280
+
281
+
282
+ - class FitsError : public FitsException //## Inherits: <unnamed>%399170BD017D
283
+ + class CCFITS_EXPORT FitsError : public FitsException //## Inherits: <unnamed>%399170BD017D
284
+ {
285
+ public:
286
+ FitsError (int errornum, bool silent = true);
287
+ @@ -123,7 +124,7 @@ namespace CCfits {
288
+
289
+
290
+
291
+ - class FitsFatal
292
+ + class CCFITS_EXPORT FitsFatal
293
+ {
294
+ public:
295
+ FitsFatal (const string& diag);
296
+ diff --git a/HDUCreator.h b/HDUCreator.h
297
+ index 65b82b7..2b5f717 100644
298
+ --- a/HDUCreator.h
299
+ +++ b/HDUCreator.h
300
+ @@ -35,7 +35,7 @@ namespace CCfits {
301
+
302
+
303
+
304
+ - class HDUCreator
305
+ + class CCFITS_EXPORT HDUCreator
306
+ {
307
+
308
+ public:
309
+ diff --git a/ccfits_export.h b/ccfits_export.h
310
+ new file mode 100644
311
+ index 0000000..a2540a6 100644
312
+ --- /dev/null
313
+ +++ b/ccfits_export.h
314
+ @@ -0,0 +1,41 @@
315
+ +#ifndef CCFITS_EXPORT_H
316
+ +#define CCFITS_EXPORT_H
317
+ +
318
+ +#ifdef CCFITS_STATIC_DEFINE
319
+ +# define CCFITS_EXPORT
320
+ +# define CCFITS_NO_EXPORT
321
+ +#else
322
+ +# ifndef CCFITS_EXPORT
323
+ +# ifdef CCfits_EXPORTS
324
+ + /* We are building this library */
325
+ +# define CCFITS_EXPORT __declspec(dllexport)
326
+ +# else
327
+ + /* We are using this library */
328
+ +# define CCFITS_EXPORT __declspec(dllimport)
329
+ +# endif
330
+ +# endif
331
+ +
332
+ +# ifndef CCFITS_NO_EXPORT
333
+ +# define CCFITS_NO_EXPORT
334
+ +# endif
335
+ +#endif
336
+ +
337
+ +#ifndef CCFITS_DEPRECATED
338
+ +# define CCFITS_DEPRECATED __declspec(deprecated)
339
+ +#endif
340
+ +
341
+ +#ifndef CCFITS_DEPRECATED_EXPORT
342
+ +# define CCFITS_DEPRECATED_EXPORT CCFITS_EXPORT CCFITS_DEPRECATED
343
+ +#endif
344
+ +
345
+ +#ifndef CCFITS_DEPRECATED_NO_EXPORT
346
+ +# define CCFITS_DEPRECATED_NO_EXPORT CCFITS_NO_EXPORT CCFITS_DEPRECATED
347
+ +#endif
348
+ +
349
+ +#if 0 /* DEFINE_NO_DEPRECATED */
350
+ +# ifndef CCFITS_NO_DEPRECATED
351
+ +# define CCFITS_NO_DEPRECATED
352
+ +# endif
353
+ +#endif
354
+ +
355
+ +#endif
356
+
357
+ diff --git a/FITSUtil.h b/FITSUtil.h
358
+ index 762d430..e2eee33 100644
359
+ --- a/FITSUtil.h
360
+ +++ b/FITSUtil.h
361
+ @@ -22,6 +22,7 @@
362
+ #include <string>
363
+ // FitsError
364
+ #include "FitsError.h"
365
+ +#include "ccfits_export.h"
366
+ #include <typeinfo>
367
+
368
+
369
+ @@ -287,21 +288,21 @@ object.
370
+ template <typename T>
371
+ void swap(std::vector<T>& left, std::vector<T>& right);
372
+
373
+ - string lowerCase(const string& inputString);
374
+ + string CCFITS_EXPORT lowerCase(const string& inputString);
375
+
376
+ - string upperCase(const string& inputString);
377
+ + string CCFITS_EXPORT upperCase(const string& inputString);
378
+
379
+ // Check if a file name includes an image compression specifier,
380
+ // and return its location if it exists.
381
+ - string::size_type checkForCompressString(const string& fileName);
382
+ + string::size_type CCFITS_EXPORT checkForCompressString(const string& fileName);
383
+
384
+ - struct InvalidConversion : public FitsException
385
+ + struct CCFITS_EXPORT InvalidConversion : public FitsException
386
+ {
387
+ InvalidConversion(const string& diag, bool silent=false);
388
+
389
+ };
390
+
391
+ - struct MatchStem : public std::binary_function<string,string,bool>
392
+ + struct CCFITS_EXPORT MatchStem : public std::binary_function<string,string,bool>
393
+ {
394
+ bool operator()(const string& left, const string& right) const;
395
+ };
396
+ @@ -323,7 +324,7 @@ object.
397
+
398
+ char** CharArray(const std::vector<string>& inArray);
399
+
400
+ - string FITSType2String( int typeInt );
401
+ + string CCFITS_EXPORT FITSType2String( int typeInt );
402
+
403
+
404
+ template <typename S, typename T>
405
+ @@ -633,7 +634,7 @@ object.
406
+
407
+
408
+
409
+ - class UnrecognizedType : public FitsException //## Inherits: <unnamed>%3CE143AB00C6
410
+ + class CCFITS_EXPORT UnrecognizedType : public FitsException //## Inherits: <unnamed>%3CE143AB00C6
411
+ {
412
+ public:
413
+ UnrecognizedType (string diag, bool silent = true);
414
+ diff --git a/KeywordCreator.h b/KeywordCreator.h
415
+ index d878a26..b2c0c70 100644
416
+ --- a/KeywordCreator.h
417
+ +++ b/KeywordCreator.h
418
+ @@ -24,7 +24,7 @@ namespace CCfits {
419
+
420
+
421
+
422
+ - class KeywordCreator
423
+ + class CCFITS_EXPORT KeywordCreator
424
+ {
425
+
426
+ public:
427
+ diff --git a/CCfits b/CCfits
428
+ index e9848c9..f30c9ad 100644
429
+ --- a/CCfits
430
+ +++ b/CCfits
431
+ @@ -2,20 +2,20 @@
432
+ #ifndef CCFITS
433
+ #define CCFITS 20031208
434
+
435
+ -#include <CCfits/CCfits.h>
436
+ +#include <CCfits.h>
437
+
438
+ -#include <CCfits/FITS.h>
439
+ -#include <CCfits/BinTable.h>
440
+ -#include <CCfits/AsciiTable.h>
441
+ -#include <CCfits/ColumnVectorData.h>
442
+ -#include <CCfits/ColumnData.h>
443
+ -#include <CCfits/ColumnT.h>
444
+ -#include <CCfits/ExtHDUT.h>
445
+ -#include <CCfits/KeywordT.h>
446
+ -#include <CCfits/KeyData.h>
447
+ -#include <CCfits/FitsError.h>
448
+ -#include <CCfits/FITSUtilT.h>
449
+ -#include <CCfits/PHDUT.h>
450
+ +#include <FITS.h>
451
+ +#include <BinTable.h>
452
+ +#include <AsciiTable.h>
453
+ +#include <ColumnVectorData.h>
454
+ +#include <ColumnData.h>
455
+ +#include <ColumnT.h>
456
+ +#include <ExtHDUT.h>
457
+ +#include <KeywordT.h>
458
+ +#include <KeyData.h>
459
+ +#include <FitsError.h>
460
+ +#include <FITSUtilT.h>
461
+ +#include <PHDUT.h>
462
+
463
+
464
+ #endif
465
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
466
+ index b958fc7..0b1fb4e 100644
467
+ --- a/CMakeLists.txt
468
+ +++ b/CMakeLists.txt
469
+ @@ -30,6 +30,11 @@ IF (BUILD_SHARED_LIBS)
470
+ SET (LIB_TYPE SHARED)
471
+ ENDIF (BUILD_SHARED_LIBS)
472
+
473
+ +
474
+ +IF (NOT BUILD_SHARED_LIBS)
475
+ + ADD_DEFINITIONS(-DCCFITS_STATIC_DEFINE)
476
+ +ENDIF()
477
+ +
478
+ FILE(GLOB H_FILES "*.h")
479
+ SET(H_FILES ${H_FILES} CCfits)
480
+
481
+ @@ -55,6 +60,7 @@ SET(SRC_FILES
482
+ )
483
+
484
+ ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${H_FILES} ${SRC_FILES})
485
+ +
486
+ TARGET_LINK_LIBRARIES(${LIB_NAME} ${CFITSIO_LIBRARY}
487
+ )
488
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/fix-dependency.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index d72ae85..405d96b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -22,8 +22,8 @@ ENDIF()
6
+
7
+ #add_subdirectory (src)
8
+
9
+ -find_package(CFITSIO REQUIRED)
10
+ -INCLUDE_DIRECTORIES(${CFITSIO_INCLUDE_DIR})
11
+ +find_package(unofficial-cfitsio CONFIG REQUIRED)
12
+ +set(CFITSIO_LIBRARY cfitsio)
13
+
14
+ SET (LIB_TYPE STATIC)
15
+ IF (BUILD_SHARED_LIBS)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/portfile.cmake ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_download_distfile(ARCHIVE
2
+ URLS "https://heasarc.gsfc.nasa.gov/fitsio/CCfits-2.5/CCfits-2.5.tar.gz"
3
+ FILENAME "CCfits-2.5.tar.gz"
4
+ SHA512 63ab4d153063960510cf60651d5c832824cf85f937f84adc5390c7c2fb46eb8e9f5d8cda2554d79d24c7a4f1b6cf0b7a6e20958fb69920b65d7c362c0a5f26b5
5
+ )
6
+
7
+ vcpkg_extract_source_archive_ex(
8
+ ARCHIVE "${ARCHIVE}"
9
+ OUT_SOURCE_PATH SOURCE_PATH
10
+ PATCHES
11
+ dll_exports.patch
12
+ fix-dependency.patch
13
+ )
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+
21
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
22
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
23
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
24
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/CCfits.dll" "${CURRENT_PACKAGES_DIR}/bin/CCfits.dll")
25
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/CCfits.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/CCfits.dll")
26
+ endif()
27
+
28
+ # Remove duplicate include files
29
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
30
+
31
+ # Patch installed headers to look in the correct subdirectory
32
+ file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/CCfits/*")
33
+ foreach(HEADER IN LISTS HEADERS)
34
+ vcpkg_replace_string("${HEADER}" "\"fitsio.h\"" "\"cfitsio/fitsio.h\"")
35
+ endforeach()
36
+
37
+ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/CCfits/CCfits.h
38
+ "#include \"longnam.h\"" "#include \"cfitsio/longnam.h\""
39
+ )
40
+
41
+ file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ccfits/vcpkg.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ccfits",
3
+ "version": "2.5",
4
+ "port-version": 8,
5
+ "description": "CCfits is an object oriented interface to the cfitsio library. It is designed to make the capabilities of cfitsio available to programmers working in C++.",
6
+ "homepage": "https://heasarc.gsfc.nasa.gov/fitsio/CCfits/",
7
+ "dependencies": [
8
+ "cfitsio",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ }
13
+ ]
14
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctag/portfile.cmake ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO alicevision/cctag
4
+ REF v1.0.1
5
+ SHA512 94992141094162d44cf45ad85324517638bf794d693c6a059d6ba5d5ccbedea4f98664a0cc49ebca78f85d2860b637dfcb9d5315114493643a6c7f8fabab3073
6
+ HEAD_REF develop
7
+ )
8
+
9
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
10
+ FEATURES
11
+ cuda CCTAG_WITH_CUDA
12
+ apps CCTAG_BUILD_APPS
13
+ )
14
+
15
+ if("cuda" IN_LIST FEATURES)
16
+ include(${CURRENT_INSTALLED_DIR}/share/cuda/vcpkg_find_cuda.cmake)
17
+ vcpkg_find_cuda(OUT_CUDA_TOOLKIT_ROOT CUDA_TOOLKIT_ROOT)
18
+
19
+ message(STATUS "CUDA_TOOLKIT_ROOT ${CUDA_TOOLKIT_ROOT}")
20
+ endif()
21
+
22
+ vcpkg_cmake_configure(
23
+ SOURCE_PATH "${SOURCE_PATH}"
24
+ OPTIONS -DCCTAG_BUILD_TESTS:BOOL=OFF ${FEATURE_OPTIONS}
25
+ )
26
+
27
+ vcpkg_cmake_install()
28
+
29
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/CCTag)
30
+
31
+ vcpkg_copy_pdbs()
32
+
33
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
34
+
35
+ # remove test files
36
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/cctag/geometry/test" "${CURRENT_PACKAGES_DIR}/include/cctag/test")
37
+ # remove cuda headers
38
+ if(NOT "cuda" IN_LIST FEATURES)
39
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/cctag/cuda")
40
+ endif()
41
+
42
+ # move the bin directory to tools
43
+ if ("apps" IN_LIST FEATURES)
44
+ set(CCTAG_TOOLS detection regression simulation)
45
+ vcpkg_copy_tools(TOOL_NAMES ${CCTAG_TOOLS} AUTO_CLEAN)
46
+ endif()
47
+
48
+ file(INSTALL ${SOURCE_PATH}/COPYING.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/cctag RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctag/vcpkg.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cctag",
3
+ "version-semver": "1.0.1",
4
+ "maintainers": "[email protected]",
5
+ "description": "Computer vision library for detecting CCTag markers made up of concentric circles",
6
+ "homepage": "https://github.com/alicevision/CCTag",
7
+ "documentation": "https://cctag.readthedocs.io/",
8
+ "supports": "!(uwp | arm | arm64 | android | x86)",
9
+ "dependencies": [
10
+ "boost-accumulators",
11
+ "boost-algorithm",
12
+ "boost-container",
13
+ "boost-date-time",
14
+ "boost-exception",
15
+ "boost-filesystem",
16
+ "boost-iterator",
17
+ "boost-lexical-cast",
18
+ "boost-math",
19
+ "boost-mpl",
20
+ "boost-multi-array",
21
+ "boost-program-options",
22
+ "boost-ptr-container",
23
+ "boost-serialization",
24
+ "boost-spirit",
25
+ "boost-stacktrace",
26
+ "boost-static-assert",
27
+ "boost-test",
28
+ "boost-thread",
29
+ "boost-throw-exception",
30
+ "boost-timer",
31
+ "boost-type-traits",
32
+ "boost-unordered",
33
+ "eigen3",
34
+ "opencv3",
35
+ "tbb",
36
+ {
37
+ "name": "vcpkg-cmake",
38
+ "host": true
39
+ },
40
+ {
41
+ "name": "vcpkg-cmake-config",
42
+ "host": true
43
+ }
44
+ ],
45
+ "features": {
46
+ "apps": {
47
+ "description": "Sample applications for detecting CCTag markers in images and videos",
48
+ "dependencies": [
49
+ "boost-program-options",
50
+ "boost-system"
51
+ ]
52
+ },
53
+ "cuda": {
54
+ "description": "Enable Cuda support for faster detection",
55
+ "dependencies": [
56
+ "cuda"
57
+ ]
58
+ }
59
+ }
60
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctz/CMakeLists.txt ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(cctz CXX)
3
+
4
+ set(CMAKE_CXX_STANDARD 14)
5
+
6
+ set(CMAKE_DEBUG_POSTFIX d)
7
+
8
+ if(CMAKE_BUILD_TYPE STREQUAL "Release")
9
+ option(INSTALL_HEADERS "Install header files" ON)
10
+ else()
11
+ option(INSTALL_HEADERS "Install header files" OFF)
12
+ endif()
13
+
14
+ find_package(benchmark CONFIG REQUIRED)
15
+
16
+ file(GLOB SOURCES src/*.cc)
17
+ list(FILTER SOURCES EXCLUDE REGEX "_test.cc$|benchmarks|_tool.cc$")
18
+
19
+ file(GLOB HEADERS include/cctz/*.h)
20
+
21
+ add_library(cctz ${SOURCES})
22
+ target_include_directories(cctz PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include>)
23
+ target_link_libraries(cctz PRIVATE benchmark::benchmark benchmark::benchmark_main)
24
+
25
+ if(INSTALL_HEADERS)
26
+ install(FILES ${HEADERS} DESTINATION "include/cctz")
27
+ endif()
28
+
29
+ install(TARGETS cctz EXPORT unofficial-cctz-targets
30
+ RUNTIME DESTINATION bin
31
+ LIBRARY DESTINATION lib
32
+ ARCHIVE DESTINATION lib
33
+ )
34
+
35
+ install(
36
+ EXPORT unofficial-cctz-targets
37
+ FILE unofficial-cctz-config.cmake
38
+ NAMESPACE unofficial::
39
+ DESTINATION share/unofficial-cctz
40
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctz/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
2
+ message(FATAL_ERROR "${PORT} does not currently support UWP")
3
+ endif()
4
+
5
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
6
+
7
+ vcpkg_from_github(
8
+ OUT_SOURCE_PATH SOURCE_PATH
9
+ REPO google/cctz
10
+ REF v2.3
11
+ SHA512 e688ddac1bff108e8315bf94cb61483b72b0d16f601e4e1eeb0fd5c064aefe5a573eee66e8903401aa4c2be71ea9f10dd6c9a9cdf8379f5bb6073248a21a83ff
12
+ HEAD_REF master
13
+ )
14
+
15
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
16
+
17
+ vcpkg_configure_cmake(
18
+ SOURCE_PATH ${SOURCE_PATH}
19
+ PREFER_NINJA
20
+ )
21
+
22
+ vcpkg_install_cmake()
23
+
24
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-cctz TARGET_PATH share/unofficial-cctz)
25
+
26
+ vcpkg_copy_pdbs()
27
+
28
+ file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/cctz RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cctz/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cctz",
3
+ "version-string": "2.3",
4
+ "port-version": 3,
5
+ "description": "two libraries that cooperate with <chrono> to give C++ programmers all the necessary tools for computing with dates, times, and time zones in a simple and correct manner.",
6
+ "homepage": "https://github.com/google/cctz",
7
+ "dependencies": [
8
+ "benchmark"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/celero/portfile.cmake ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO DigitalInBlue/Celero
4
+ REF 6208b63dcd4baeea6817d3e84f79fb04ad99c720 #2.8.2
5
+ SHA512 13a486dafba394cc3e072292008d00e8a3e1b12b4fe7c82cf2ce43b3d24629d08b5762494c19da0a12b186a70114cba101553ed1b4cea90d090514307b06dec8
6
+ HEAD_REF master
7
+ )
8
+
9
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CELERO_COMPILE_DYNAMIC_LIBRARIES)
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
14
+ OPTIONS
15
+ -DCELERO_ENABLE_EXPERIMENTS=OFF
16
+ -DCELERO_ENABLE_TESTS=OFF
17
+ -DCELERO_RUN_EXAMPLE_ON_BUILD=OFF
18
+ -DCELERO_COMPILE_DYNAMIC_LIBRARIES=${CELERO_COMPILE_DYNAMIC_LIBRARIES}
19
+ -DCELERO_TREAT_WARNINGS_AS_ERRORS=OFF
20
+ )
21
+
22
+ vcpkg_install_cmake()
23
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share)
24
+
25
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
26
+
27
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
28
+ vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/celero/Export.h "ifdef CELERO_STATIC" "if 1")
29
+ endif()
30
+
31
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/celero/celero-target.cmake ${CURRENT_PACKAGES_DIR}/share/celero/celero-config.cmake)
32
+
33
+ file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/celero/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "celero",
3
+ "version-string": "2.8.2",
4
+ "port-version": 1,
5
+ "description": "Celero is a modern cross-platform (Windows, Linux, MacOS) Microbenchmarking library for C++.",
6
+ "homepage": "https://github.com/DigitalInBlue/Celero"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cello/CMakeLists.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.14)
2
+
3
+ project(cello LANGUAGES C)
4
+
5
+ include(GNUInstallDirs)
6
+
7
+ file(GLOB cello_sources src/*.c)
8
+ add_library(cello ${cello_sources})
9
+
10
+ target_include_directories(
11
+ cello
12
+ PUBLIC
13
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
14
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
15
+ )
16
+
17
+ set_target_properties(cello PROPERTIES PUBLIC_HEADER include/Cello.h)
18
+
19
+ install(TARGETS cello EXPORT unofficial-cello-config)
20
+
21
+ install(
22
+ EXPORT unofficial-cello-config
23
+ NAMESPACE unofficial::cello::
24
+ DESTINATION share/unofficial-cello
25
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
26
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cello/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO orangeduck/Cello
6
+ REF da28eefbc95d8bd5628e5f1c4cc12bc1b13fef4f
7
+ SHA512 64825cf37223dd679b379d78475218a543690c3b78333acb906d42982261df4b9ada3a87bea183fad5e2cf220311904e657b0bf5051b141c389d5ee1d2974e5b
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
12
+
13
+ vcpkg_configure_cmake(
14
+ SOURCE_PATH ${SOURCE_PATH}
15
+ PREFER_NINJA
16
+ )
17
+
18
+ vcpkg_install_cmake()
19
+
20
+ vcpkg_copy_pdbs()
21
+
22
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
23
+
24
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
25
+
26
+ # Handle copyright
27
+ configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cello/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cello",
3
+ "version-date": "2019-07-23",
4
+ "port-version": 2,
5
+ "description": "Higher level programming in C",
6
+ "homepage": "https://libcello.org/"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cereal/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO USCiLab/cereal
6
+ REF v1.3.1
7
+ SHA512 5beafdd95b16344d5db43a0e26fd670a770e2c2a661ae117c9593db86697ca1034e2bf004fe6dc3c2a690e8a682f60d8b6121211d898009e59361ebef33f6fc9
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ OPTIONS
15
+ -DJUST_INSTALL_CEREAL=ON
16
+ )
17
+
18
+ vcpkg_install_cmake()
19
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/cereal)
20
+
21
+ # Clean
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
23
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
24
+
25
+ # Handle copyright
26
+ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/cereal)
27
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/cereal/LICENSE ${CURRENT_PACKAGES_DIR}/share/cereal/copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cereal/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cereal",
3
+ "version": "1.3.1",
4
+ "description": "a header-only C++11 serialization library (built in support for binary, XML and JSon)",
5
+ "homepage": "https://github.com/USCiLab/cereal",
6
+ "license": "BSD-3-Clause"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0001_cmakelists_fixes.patch ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 33e98b1..f275d68 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -426,27 +426,7 @@ if (MINIGLOG)
6
+ GLOG_LIBRARY)
7
+ else (MINIGLOG)
8
+ unset(MINIGLOG_MAX_LOG_LEVEL CACHE)
9
+ - # Don't search with REQUIRED so that configuration continues if not found and
10
+ - # we can output an error messages explaining MINIGLOG option.
11
+ - find_package(Glog)
12
+ - if (NOT GLOG_FOUND)
13
+ - message(FATAL_ERROR "Can't find Google Log (glog). Please set either: "
14
+ - "glog_DIR (newer CMake built versions of glog) or GLOG_INCLUDE_DIR & "
15
+ - "GLOG_LIBRARY or enable MINIGLOG option to use minimal glog "
16
+ - "implementation.")
17
+ - endif(NOT GLOG_FOUND)
18
+ - # By default, assume gflags was found, updating the message if it was not.
19
+ - set(GLOG_GFLAGS_DEPENDENCY_MESSAGE
20
+ - " Assuming glog was built with gflags support as gflags was found. "
21
+ - "This will make gflags a public dependency of Ceres.")
22
+ - if (NOT gflags_FOUND)
23
+ - set(GLOG_GFLAGS_DEPENDENCY_MESSAGE
24
+ - " Assuming glog was NOT built with gflags support as gflags was "
25
+ - "not found. If glog was built with gflags, please set the "
26
+ - "gflags search locations such that it can be found by Ceres. "
27
+ - "Otherwise, Ceres may fail to link due to missing gflags symbols.")
28
+ - endif(NOT gflags_FOUND)
29
+ - message("-- Found Google Log (glog)." ${GLOG_GFLAGS_DEPENDENCY_MESSAGE})
30
+ + find_package(Glog REQUIRED)
31
+ endif (MINIGLOG)
32
+
33
+ if (NOT SCHUR_SPECIALIZATIONS)
34
+ @@ -760,12 +740,6 @@ install(FILES "${Ceres_BINARY_DIR}/CeresConfig-install.cmake"
35
+ DESTINATION ${RELATIVE_CMAKECONFIG_INSTALL_DIR})
36
+ install(FILES "${Ceres_BINARY_DIR}/CeresConfigVersion.cmake"
37
+ DESTINATION ${RELATIVE_CMAKECONFIG_INSTALL_DIR})
38
+ -if (GLOG_FOUND AND NOT FOUND_INSTALLED_GLOG_CMAKE_CONFIGURATION)
39
+ - # Version of glog detected was not built with CMake, install our glog module
40
+ - # file to enable detection in CeresConfig.
41
+ - install(FILES "${Ceres_SOURCE_DIR}/cmake/FindGlog.cmake"
42
+ - DESTINATION ${RELATIVE_CMAKECONFIG_INSTALL_DIR})
43
+ -endif()
44
+
45
+ if (PROVIDE_UNINSTALL_TARGET)
46
+ # Create an uninstall target to remove all installed files.
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0002_use_glog_target.patch ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/internal/ceres/CMakeLists.txt b/internal/ceres/CMakeLists.txt
2
+ index 3711222..8646bd0 100644
3
+ --- a/internal/ceres/CMakeLists.txt
4
+ +++ b/internal/ceres/CMakeLists.txt
5
+ @@ -174,17 +174,9 @@ endif (SCHUR_SPECIALIZATIONS)
6
+ find_package(Threads QUIET)
7
+ list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES Threads::Threads)
8
+
9
+ -if (NOT MINIGLOG AND GLOG_FOUND)
10
+ - list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES ${GLOG_LIBRARIES})
11
+ - if (gflags_FOUND)
12
+ - # If glog & gflags are both found, we assume that glog was built with
13
+ - # gflags, as it is awkward to perform a try_compile() to verify this
14
+ - # when gflags is an imported target (as it is in newer versions).
15
+ - # As glog #includes gflags/gflags.h in glog/logging.h if compiled with
16
+ - # gflags, it is thus a public dependency for Ceres in this case.
17
+ - list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES gflags)
18
+ - endif()
19
+ -endif (NOT MINIGLOG AND GLOG_FOUND)
20
+ +if (NOT MINIGLOG)
21
+ + list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES glog::glog)
22
+ +endif (NOT MINIGLOG)
23
+
24
+ if (SUITESPARSE AND SUITESPARSE_FOUND)
25
+ # Define version information for use in Solver::FullReport.
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0003_fix_exported_ceres_config.patch ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/CeresConfig.cmake.in b/cmake/CeresConfig.cmake.in
2
+ index e5e2976..be1083a 100644
3
+ --- a/cmake/CeresConfig.cmake.in
4
+ +++ b/cmake/CeresConfig.cmake.in
5
+ @@ -213,55 +213,13 @@ else (EIGEN3_FOUND)
6
+ endif (EIGEN3_FOUND)
7
+
8
+ # glog (and maybe gflags).
9
+ -#
10
+ -# Flags set during configuration and build of Ceres.
11
+ -set(CERES_USES_MINIGLOG @MINIGLOG@)
12
+ -set(CERES_GLOG_VERSION @glog_VERSION@)
13
+ -set(CERES_GLOG_WAS_BUILT_WITH_CMAKE @FOUND_INSTALLED_GLOG_CMAKE_CONFIGURATION@)
14
+ -
15
+ -set(CERES_USES_GFLAGS @GFLAGS@)
16
+ -set(CERES_GFLAGS_VERSION @gflags_VERSION@)
17
+ -
18
+ -if (CERES_USES_MINIGLOG)
19
+ - # Output message at standard log level (not the lower STATUS) so that
20
+ - # the message is output in GUI during configuration to warn user.
21
+ - ceres_message("-- Found Ceres compiled with miniglog substitute "
22
+ - "for glog, beware this will likely cause problems if glog is later linked.")
23
+ -else(CERES_USES_MINIGLOG)
24
+ - if (CERES_GLOG_WAS_BUILT_WITH_CMAKE)
25
+ - find_package(glog ${CERES_GLOG_VERSION} CONFIG QUIET)
26
+ - set(GLOG_FOUND ${glog_FOUND})
27
+ - else()
28
+ - # Version of glog against which Ceres was built was not built with CMake,
29
+ - # use the exported glog find_package() module from Ceres to find it again.
30
+ - # Append the locations of glog when Ceres was built to the search path hints.
31
+ - list(APPEND GLOG_INCLUDE_DIR_HINTS "@GLOG_INCLUDE_DIR@")
32
+ - get_filename_component(CERES_BUILD_GLOG_LIBRARY_DIR "@GLOG_LIBRARY@" PATH)
33
+ - list(APPEND GLOG_LIBRARY_DIR_HINTS ${CERES_BUILD_GLOG_LIBRARY_DIR})
34
+ -
35
+ - # Search quietly s/t we control the timing of the error message if not found.
36
+ - find_package(Glog QUIET)
37
+ - endif()
38
+ +include (CMakeFindDependencyMacro)
39
+ +find_dependency (glog NO_MODULE)
40
+
41
+ - if (GLOG_FOUND)
42
+ - ceres_message(STATUS "Found required Ceres dependency: glog")
43
+ - else()
44
+ - ceres_report_not_found("Missing required Ceres dependency: glog.")
45
+ - endif()
46
+ -
47
+ - # gflags is only a public dependency of Ceres via glog, thus is not required
48
+ - # if Ceres was built with MINIGLOG.
49
+ - if (CERES_USES_GFLAGS)
50
+ - # Search quietly s/t we control the timing of the error message if not found.
51
+ - find_package(gflags ${CERES_GFLAGS_VERSION} QUIET)
52
+ - if (gflags_FOUND AND TARGET gflags)
53
+ - ceres_message(STATUS "Found required Ceres dependency: gflags")
54
+ - else()
55
+ - ceres_report_not_found("Missing required Ceres "
56
+ - "dependency: gflags (not found, or not found as exported CMake target).")
57
+ - endif()
58
+ - endif()
59
+ -endif(CERES_USES_MINIGLOG)
60
+ +# SuiteSparse
61
+ +if (@SUITESPARSE@)
62
+ + find_dependency(suitesparse CONFIG)
63
+ +endif()
64
+
65
+ # Import exported Ceres targets, if they have not already been imported.
66
+ if (NOT TARGET ceres AND NOT Ceres_BINARY_DIR)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/0004_fix_lib_path_linux.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index f24ce30..8e5759b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -192,7 +192,7 @@ endif()
6
+ # install native libraries to lib64 rather than lib. Most distros seem to
7
+ # follow this convention with a couple notable exceptions (Debian-based and
8
+ # Arch-based distros) which we try to detect here.
9
+ -if (CMAKE_SYSTEM_NAME MATCHES "Linux" AND
10
+ +if (0 AND CMAKE_SYSTEM_NAME MATCHES "Linux" AND
11
+ NOT DEFINED LIB_SUFFIX AND
12
+ NOT CMAKE_CROSSCOMPILING AND
13
+ CMAKE_SIZEOF_VOID_P EQUAL "8" AND
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/find-package-required.patch ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b6a3d05..a78c027 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -245,7 +245,7 @@ if (EIGEN3_FOUND)
6
+ endif (EIGEN3_FOUND)
7
+
8
+ if (LAPACK)
9
+ - find_package(LAPACK QUIET)
10
+ + find_package(LAPACK REQUIRED)
11
+ if (LAPACK_FOUND)
12
+ message("-- Found LAPACK library: ${LAPACK_LIBRARIES}")
13
+ else (LAPACK_FOUND)
14
+ @@ -263,7 +263,7 @@ if (SUITESPARSE)
15
+ # built with SuiteSparse support.
16
+
17
+ # Check for SuiteSparse and dependencies.
18
+ - find_package(SuiteSparse)
19
+ + find_package(SuiteSparse REQUIRED)
20
+ if (SUITESPARSE_FOUND)
21
+ # On Ubuntu the system install of SuiteSparse (v3.4.0) up to at least
22
+ # Ubuntu 13.10 cannot be used to link shared libraries.
23
+ @@ -300,7 +300,7 @@ endif (SUITESPARSE)
24
+ # CXSparse.
25
+ if (CXSPARSE)
26
+ # Don't search with REQUIRED as we can continue without CXSparse.
27
+ - find_package(CXSparse)
28
+ + find_package(CXSparse REQUIRED)
29
+ if (CXSPARSE_FOUND)
30
+ # By default, if CXSparse and all dependencies are found, Ceres is
31
+ # built with CXSparse support.
32
+ @@ -336,7 +336,7 @@ endif(NOT SUITESPARSE AND NOT CXSPARSE AND NOT EIGENSPARSE)
33
+ # GFlags.
34
+ if (GFLAGS)
35
+ # Don't search with REQUIRED as we can continue without gflags.
36
+ - find_package(gflags 2.2.0)
37
+ + find_package(gflags REQUIRED)
38
+ if (gflags_FOUND)
39
+ if (TARGET gflags)
40
+ message("-- Found Google Flags (gflags) version ${gflags_VERSION}: ${gflags_DIR}")
41
+ @@ -537,7 +537,7 @@ else (NOT OPENMP AND NOT TBB AND NOT CXX11_THREADS)
42
+ set_ceres_threading_model("${CERES_THREADING_MODEL}")
43
+
44
+ if (BUILD_BENCHMARKS)
45
+ - find_package(benchmark QUIET)
46
+ + find_package(benchmark REQUIRED)
47
+ if (benchmark_FOUND)
48
+ message("-- Found Google benchmark library. Building Ceres benchmarks.")
49
+ else()
50
+ @@ -782,7 +782,7 @@ if (BUILD_DOCUMENTATION)
51
+ set(CERES_DOCS_INSTALL_DIR "share/doc/ceres" CACHE STRING
52
+ "Ceres docs install path relative to CMAKE_INSTALL_PREFIX")
53
+
54
+ - find_package(Sphinx QUIET)
55
+ + find_package(Sphinx REQUIRED)
56
+ if (NOT SPHINX_FOUND)
57
+ message("-- Failed to find Sphinx, disabling build of documentation.")
58
+ update_cache_variable(BUILD_DOCUMENTATION OFF)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/portfile.cmake ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(MSVC_USE_STATIC_CRT_VALUE OFF)
2
+ if(VCPKG_CRT_LINKAGE STREQUAL "static")
3
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
4
+ message(FATAL_ERROR "Ceres does not support mixing static CRT and dynamic library linkage")
5
+ endif()
6
+ set(MSVC_USE_STATIC_CRT_VALUE ON)
7
+ endif()
8
+
9
+ vcpkg_from_github(
10
+ OUT_SOURCE_PATH SOURCE_PATH
11
+ REPO ceres-solver/ceres-solver
12
+ REF 2.0.0
13
+ SHA512 6379666ef57af4ea85026644fa21365ce18fbaa12d50bd452bcdae0743a7b013effdd42c961e90c31815991bf315bd6904553dcc1a382ff5ed8c7abe9edf9a6c
14
+ HEAD_REF master
15
+ PATCHES
16
+ 0001_cmakelists_fixes.patch
17
+ 0002_use_glog_target.patch
18
+ 0003_fix_exported_ceres_config.patch
19
+ 0004_fix_lib_path_linux.patch
20
+ find-package-required.patch
21
+ )
22
+
23
+ file(REMOVE "${SOURCE_PATH}/cmake/FindCXSparse.cmake")
24
+ file(REMOVE "${SOURCE_PATH}/cmake/FindGflags.cmake")
25
+ file(REMOVE "${SOURCE_PATH}/cmake/FindGlog.cmake")
26
+ file(REMOVE "${SOURCE_PATH}/cmake/FindEigen.cmake")
27
+ file(REMOVE "${SOURCE_PATH}/cmake/FindSuiteSparse.cmake")
28
+
29
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
30
+ FEATURES
31
+ "suitesparse" SUITESPARSE
32
+ "cxsparse" CXSPARSE
33
+ "lapack" LAPACK
34
+ "eigensparse" EIGENSPARSE
35
+ "tools" GFLAGS
36
+ )
37
+
38
+ vcpkg_cmake_configure(
39
+ SOURCE_PATH "${SOURCE_PATH}"
40
+ OPTIONS
41
+ ${FEATURE_OPTIONS}
42
+ -DEXPORT_BUILD_DIR=ON
43
+ -DBUILD_BENCHMARKS=OFF
44
+ -DBUILD_EXAMPLES=OFF
45
+ -DBUILD_TESTING=OFF
46
+ -DBUILD_BENCHMARKS=OFF
47
+ -DPROVIDE_UNINSTALL_TARGET=OFF
48
+ -DMSVC_USE_STATIC_CRT=${MSVC_USE_STATIC_CRT_VALUE}
49
+ -DLIB_SUFFIX=${LIB_SUFFIX}
50
+ )
51
+
52
+ vcpkg_cmake_install()
53
+
54
+ if(VCPKG_TARGET_IS_WINDOWS)
55
+ vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
56
+ else()
57
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib${LIB_SUFFIX}/cmake/Ceres")
58
+ endif()
59
+
60
+ vcpkg_copy_pdbs()
61
+
62
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
63
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
64
+
65
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ceres/vcpkg.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ceres",
3
+ "version-semver": "2.0.0",
4
+ "port-version": 6,
5
+ "description": "non-linear optimization package",
6
+ "homepage": "https://github.com/ceres-solver/ceres-solver",
7
+ "dependencies": [
8
+ "eigen3",
9
+ "glog",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ],
19
+ "features": {
20
+ "cxsparse": {
21
+ "description": "CXSparse support for Ceres",
22
+ "dependencies": [
23
+ {
24
+ "name": "suitesparse",
25
+ "default-features": false
26
+ }
27
+ ]
28
+ },
29
+ "eigensparse": {
30
+ "description": "Use of Eigen as a sparse linear algebra library in Ceres"
31
+ },
32
+ "lapack": {
33
+ "description": "Use Lapack in Ceres",
34
+ "dependencies": [
35
+ "lapack"
36
+ ]
37
+ },
38
+ "suitesparse": {
39
+ "description": "SuiteSparse support for Ceres",
40
+ "dependencies": [
41
+ {
42
+ "name": "ceres",
43
+ "features": [
44
+ "lapack"
45
+ ]
46
+ },
47
+ {
48
+ "name": "suitesparse",
49
+ "default-features": false
50
+ }
51
+ ]
52
+ },
53
+ "tools": {
54
+ "description": "Ceres tools",
55
+ "dependencies": [
56
+ "gflags"
57
+ ]
58
+ }
59
+ }
60
+ }