Techt3o commited on
Commit
0c86742
·
verified ·
1 Parent(s): 0971a91

4b9e98b4bee887c2d36896d40b868fb2b7de173e3c9b64e0245b71a19f261aeb

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/0001-circumvent-samefile-error.patch +42 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/0002-fix-uwp-build.patch +15 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/fix-macos-build.diff +43 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/harfbuzzConfig.cmake.in +71 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/portfile.cmake +84 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/vcpkg.json +48 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hayai/portfile.cmake +65 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hayai/vcpkg.json +7 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hazelcast-cpp-client/portfile.cmake +30 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hazelcast-cpp-client/vcpkg.json +38 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/hdf5_config.patch +31 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/pkgconfig-link-order.patch +11 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/pkgconfig-requires.patch +192 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/portfile.cmake +138 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/szip.patch +21 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/vcpkg-cmake-wrapper.cmake +17 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/vcpkg.json +60 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/healpix/fix-dependency.patch +13 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/healpix/portfile.cmake +44 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/healpix/vcpkg.json +11 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hedley/portfile.cmake +17 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hedley/vcpkg.json +6 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hexl/portfile.cmake +35 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hexl/vcpkg.json +20 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hffix/CMakeLists.txt +28 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hffix/portfile.cmake +23 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hffix/vcpkg.json +7 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hfsm2/portfile.cmake +16 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hfsm2/usage +4 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hfsm2/vcpkg.json +6 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hidapi/portfile.cmake +23 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hidapi/vcpkg.json +23 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/fix-dependency-hdf5.patch +19 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/fix-error-C1128.patch +15 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/portfile.cmake +47 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/vcpkg.json +54 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/highway/portfile.cmake +27 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/highway/vcpkg.json +13 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-feature-example.patch +61 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-include-path.patch +13 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-ssize_t.patch +11 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-timeval.patch +16 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/portfile.cmake +43 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/support-static.patch +17 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/vcpkg.json +33 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hps/portfile.cmake +20 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hps/usage +4 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hps/vcpkg.json +7 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hpx/fix-cmakecache-paths.patch +22 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/hpx/fix-dependency-hwloc.patch +15 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/0001-circumvent-samefile-error.patch ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/gen-harfbuzzcc.py b/src/gen-harfbuzzcc.py
2
+ index b25bcc7..f3bc87a 100644
3
+ --- a/src/gen-harfbuzzcc.py
4
+ +++ b/src/gen-harfbuzzcc.py
5
+ @@ -15,4 +15,8 @@ with open (OUTPUT, "wb") as f:
6
+ f.write ("".join ('#include "{}"\n'.format (os.path.basename (x)) for x in sources if x.endswith (".cc")).encode ())
7
+
8
+ # copy it also to src/
9
+ -shutil.copyfile (OUTPUT, os.path.join (CURRENT_SOURCE_DIR, os.path.basename (OUTPUT)))
10
+ +src = OUTPUT
11
+ +dst = os.path.join (CURRENT_SOURCE_DIR, os.path.basename (OUTPUT))
12
+ +# Avoid SameFileError
13
+ +if not os.path.samefile(src, dst):
14
+ + shutil.copyfile (src, dst)
15
+ diff --git a/src/gen-hb-version.py b/src/gen-hb-version.py
16
+ index 879811f..c376721 100644
17
+ --- a/src/gen-hb-version.py
18
+ +++ b/src/gen-hb-version.py
19
+ @@ -33,4 +33,8 @@ with open (INPUT, "r", encoding='utf-8') as template:
20
+ .encode ())
21
+
22
+ # copy it also to src/
23
+ -shutil.copyfile (OUTPUT, os.path.join (CURRENT_SOURCE_DIR, os.path.basename (OUTPUT)))
24
+ +src = OUTPUT
25
+ +dst = os.path.join(CURRENT_SOURCE_DIR, os.path.basename (OUTPUT))
26
+ +# Avoid SameFileError if src and dst is the same
27
+ +if not os.path.samefile(src, dst):
28
+ + shutil.copyfile (src, dst)
29
+ diff --git a/src/gen-ragel-artifacts.py b/src/gen-ragel-artifacts.py
30
+ index d22e03a..2b1e819 100644
31
+ --- a/src/gen-ragel-artifacts.py
32
+ +++ b/src/gen-ragel-artifacts.py
33
+ @@ -22,4 +22,8 @@ hh = rl.replace ('.rl', '.hh')
34
+ subprocess.Popen (ragel.split() + ['-e', '-F1', '-o', hh, rl], cwd=outdir).wait ()
35
+
36
+ # copy it also to src/
37
+ -shutil.copyfile (os.path.join (outdir, hh), os.path.join (CURRENT_SOURCE_DIR, hh))
38
+ +src = os.path.join (outdir, hh)
39
+ +dst = os.path.join (CURRENT_SOURCE_DIR, hh)
40
+ +# Avoid SameFileError
41
+ +if not os.path.samefile(src, dst):
42
+ + shutil.copyfile (src, dst)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/0002-fix-uwp-build.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/hb-ft.cc b/src/hb-ft.cc
2
+ index 1900f30..add9917 100644
3
+ --- a/src/hb-ft.cc
4
+ +++ b/src/hb-ft.cc
5
+ @@ -31,6 +31,10 @@
6
+
7
+ #include "hb-ft.h"
8
+
9
+ +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
10
+ +#define generic GenericFromFreeTypeLibrary
11
+ +#endif
12
+ +
13
+ #include "hb-font.hh"
14
+ #include "hb-machinery.hh"
15
+ #include "hb-cache.hh"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/fix-macos-build.diff ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
2
+ index 5f383064c4..6ccc1b0a2b 100644
3
+ --- a/src/hb-coretext.cc
4
+ +++ b/src/hb-coretext.cc
5
+ @@ -897,7 +897,7 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
6
+ DEBUG_MSG (CORETEXT, nullptr, "Num runs: %d", num_runs);
7
+
8
+ buffer->len = 0;
9
+ - uint32_t status_and = ~0, status_or = 0;
10
+ + uint32_t status_or = 0;
11
+ CGFloat advances_so_far = 0;
12
+ /* For right-to-left runs, CoreText returns the glyphs positioned such that
13
+ * any trailing whitespace is to the left of (0,0). Adjust coordinate system
14
+ @@ -918,7 +918,6 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
15
+ CTRunRef run = static_cast<CTRunRef>(CFArrayGetValueAtIndex (glyph_runs, i));
16
+ CTRunStatus run_status = CTRunGetStatus (run);
17
+ status_or |= run_status;
18
+ - status_and &= run_status;
19
+ DEBUG_MSG (CORETEXT, run, "CTRunStatus: %x", run_status);
20
+ CGFloat run_advance = CTRunGetTypographicBounds (run, range_all, nullptr, nullptr, nullptr);
21
+ if (HB_DIRECTION_IS_VERTICAL (buffer->props.direction))
22
+ @@ -1140,21 +1139,6 @@ _hb_coretext_shape (hb_shape_plan_t *shape_plan,
23
+ buffer->len += num_glyphs;
24
+ }
25
+
26
+ - /* Mac OS 10.6 doesn't have kCTTypesetterOptionForcedEmbeddingLevel,
27
+ - * or if it does, it doesn't respect it. So we get runs with wrong
28
+ - * directions. As such, disable the assert... It wouldn't crash, but
29
+ - * cursoring will be off...
30
+ - *
31
+ - * https://crbug.com/419769
32
+ - */
33
+ - if (false)
34
+ - {
35
+ - /* Make sure all runs had the expected direction. */
36
+ - HB_UNUSED bool backward = HB_DIRECTION_IS_BACKWARD (buffer->props.direction);
37
+ - assert (bool (status_and & kCTRunStatusRightToLeft) == backward);
38
+ - assert (bool (status_or & kCTRunStatusRightToLeft) == backward);
39
+ - }
40
+ -
41
+ buffer->clear_positions ();
42
+
43
+ unsigned int count = buffer->len;
third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/harfbuzzConfig.cmake.in ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # For old projects where the minimum CMake version is lower than 3.3.
2
+ cmake_policy(SET CMP0057 NEW)
3
+ include(CMakeFindDependencyMacro)
4
+
5
+ if(TARGET harfbuzz)
6
+ return()
7
+ endif()
8
+
9
+ add_library(harfbuzz INTERFACE IMPORTED GLOBAL)
10
+ add_library(harfbuzz::harfbuzz ALIAS harfbuzz)
11
+
12
+ find_library(HARFBUZZ_LIBRARY_DEBUG NAMES harfbuzz PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" PATH_SUFFIXES lib NO_DEFAULT_PATH)
13
+ if(HARFBUZZ_LIBRARY_DEBUG)
14
+ target_link_libraries(harfbuzz INTERFACE $<$<CONFIG:DEBUG>:${HARFBUZZ_LIBRARY_DEBUG}>)
15
+ endif()
16
+
17
+ find_library(HARFBUZZ_LIBRARY_RELEASE NAMES harfbuzz PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" PATH_SUFFIXES lib NO_DEFAULT_PATH)
18
+ target_link_libraries(harfbuzz INTERFACE $<$<NOT:$<CONFIG:DEBUG>>:${HARFBUZZ_LIBRARY_RELEASE}>)
19
+
20
+ set(HARFBUZZ_FEATURES @FEATURES@)
21
+
22
+ if(APPLE)
23
+ find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
24
+ target_link_libraries(harfbuzz INTERFACE ${APPLICATIONSERVICES_LIBRARY})
25
+ endif()
26
+
27
+ find_dependency(freetype CONFIG)
28
+ target_link_libraries(harfbuzz INTERFACE freetype)
29
+
30
+ if ("graphite2" IN_LIST HARFBUZZ_FEATURES)
31
+ find_library(GRAPHITE2_LIBRARY_DEBUG NAMES graphite2 PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" PATH_SUFFIXES lib NO_DEFAULT_PATH)
32
+ if(GRAPHITE2_LIBRARY_DEBUG)
33
+ target_link_libraries(harfbuzz INTERFACE $<$<CONFIG:DEBUG>:${GRAPHITE2_LIBRARY_DEBUG}>)
34
+ endif()
35
+
36
+ find_library(GRAPHITE2_LIBRARY_RELEASE NAMES graphite2 PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" PATH_SUFFIXES lib NO_DEFAULT_PATH)
37
+ if(GRAPHITE2_LIBRARY_RELEASE)
38
+ target_link_libraries(harfbuzz INTERFACE $<$<NOT:$<CONFIG:DEBUG>>:${GRAPHITE2_LIBRARY_RELEASE}>)
39
+ endif()
40
+ endif()
41
+
42
+ if ("glib" IN_LIST HARFBUZZ_FEATURES)
43
+ find_library(GLIB_LIBRARY_DEBUG NAMES glib glib-2.0 PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" PATH_SUFFIXES lib NO_DEFAULT_PATH)
44
+ if(GLIB_LIBRARY_DEBUG)
45
+ target_link_libraries(harfbuzz INTERFACE $<$<CONFIG:DEBUG>:${GLIB_LIBRARY_DEBUG}>)
46
+ endif()
47
+
48
+ find_library(GLIB_LIBRARY_RELEASE NAMES glib glib-2.0 PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" PATH_SUFFIXES lib NO_DEFAULT_PATH)
49
+ if(GLIB_LIBRARY_RELEASE)
50
+ target_link_libraries(harfbuzz INTERFACE $<$<NOT:$<CONFIG:DEBUG>>:${GLIB_LIBRARY_RELEASE}>)
51
+ endif()
52
+ endif()
53
+
54
+ if ("icu" IN_LIST HARFBUZZ_FEATURES)
55
+ find_dependency(ICU 61 COMPONENTS uc)
56
+ target_link_libraries(harfbuzz INTERFACE ICU::uc)
57
+ endif()
58
+
59
+ get_filename_component(_INSTALL_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
60
+ target_include_directories(harfbuzz INTERFACE "${_INSTALL_DIR}/include/harfbuzz")
61
+
62
+ set(HARFBUZZ_LIBRARY harfbuzz::harfbuzz PARENT_SCOPE)
63
+ set(HARFBUZZ_LIBRARIES harfbuzz::harfbuzz PARENT_SCOPE)
64
+ set(HARFBUZZ_INCLUDE_DIR "${_INSTALL_DIR}/include/harfbuzz" PARENT_SCOPE)
65
+ set(HARFBUZZ_INCLUDE_DIRS "${_INSTALL_DIR}/include/harfbuzz" PARENT_SCOPE)
66
+
67
+ if(HARFBUZZ_LIBRARY_RELEASE)
68
+ set(HARFBUZZ_FOUND TRUE PARENT_SCOPE)
69
+ else()
70
+ set(HARFBUZZ_FOUND FALSE PARENT_SCOPE)
71
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/portfile.cmake ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO harfbuzz/harfbuzz
4
+ REF 3.2.0
5
+ SHA512 5d8c629416c0bc557b83e8d9d731d41b9e8ee3abc74590e65ed6ca67d74d3a440d038134313f17a7b1b14ef0fc1ecf8bb87113fdcf5f0c8d3dc3d2eeb9b08c18
6
+ HEAD_REF master
7
+ PATCHES
8
+ # This patch is a workaround that is needed until the following issues are resolved upstream:
9
+ # - https://github.com/mesonbuild/meson/issues/8375
10
+ # - https://github.com/harfbuzz/harfbuzz/issues/2870
11
+ # Details: https://github.com/microsoft/vcpkg/issues/16262
12
+ 0001-circumvent-samefile-error.patch
13
+ 0002-fix-uwp-build.patch
14
+ fix-macos-build.diff # fixes https://github.com/harfbuzz/harfbuzz/issues/3484
15
+ )
16
+
17
+ if("icu" IN_LIST FEATURES)
18
+ list(APPEND FEATURE_OPTIONS -Dicu=enabled) # Enable ICU library unicode functions
19
+ else()
20
+ list(APPEND FEATURE_OPTIONS -Dicu=disabled)
21
+ endif()
22
+ if("graphite2" IN_LIST FEATURES)
23
+ list(APPEND FEATURE_OPTIONS -Dgraphite=enabled) #Enable Graphite2 complementary shaper
24
+ else()
25
+ list(APPEND FEATURE_OPTIONS -Dgraphite=disabled)
26
+ endif()
27
+ if("coretext" IN_LIST FEATURES)
28
+ list(APPEND FEATURE_OPTIONS -Dcoretext=enabled) # Enable CoreText shaper backend on macOS
29
+ if(NOT VCPKG_TARGET_IS_OSX)
30
+ message(FATAL_ERROR "Feature 'coretext' os only available on OSX")
31
+ endif()
32
+ else()
33
+ list(APPEND FEATURE_OPTIONS -Dcoretext=disabled)
34
+ endif()
35
+ if("glib" IN_LIST FEATURES)
36
+ list(APPEND FEATURE_OPTIONS -Dglib=enabled) # Enable GLib unicode functions
37
+ list(APPEND FEATURE_OPTIONS -Dgobject=enabled) #Enable GObject bindings
38
+ else()
39
+ list(APPEND FEATURE_OPTIONS -Dglib=disabled)
40
+ list(APPEND FEATURE_OPTIONS -Dgobject=disabled)
41
+ endif()
42
+ list(APPEND FEATURE_OPTIONS -Dfreetype=enabled) #Enable freetype interop helpers
43
+ #if(VCPKG_TARGET_IS_WINDOWS)
44
+ #link errors in qt5-base. probably requires changes to the pc files generated by meson
45
+ #list(APPEND FEATURE_OPTIONS -Dgdi=enabled) # enable gdi helpers and uniscribe shaper backend (windows only)
46
+ #endif()
47
+
48
+
49
+ vcpkg_configure_meson(
50
+ SOURCE_PATH ${SOURCE_PATH}
51
+ OPTIONS ${FEATURE_OPTIONS}
52
+ -Dcairo=disabled # Use Cairo graphics library
53
+ -Dintrospection=disabled # Generate gobject-introspection bindings (.gir/.typelib files)
54
+ -Ddocs=disabled # Generate documentation with gtk-doc
55
+ -Dtests=disabled
56
+ -Dbenchmark=disabled
57
+ ADDITIONAL_NATIVE_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
58
+ glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
59
+ ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
60
+ glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
61
+ )
62
+
63
+ vcpkg_install_meson()
64
+ vcpkg_copy_pdbs()
65
+ vcpkg_fixup_pkgconfig()
66
+
67
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
68
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
69
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/harfbuzzConfig.cmake.in"
70
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}/harfbuzzConfig.cmake" @ONLY)
71
+
72
+ # Handle copyright
73
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
74
+
75
+ if("glib" IN_LIST FEATURES)
76
+ list(APPEND TOOL_NAMES hb-subset hb-shape hb-ot-shape-closure)
77
+ endif()
78
+ if(TOOL_NAMES)
79
+ vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN)
80
+ endif()
81
+
82
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
83
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
84
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/harfbuzz/vcpkg.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "harfbuzz",
3
+ "version-semver": "3.2.0",
4
+ "port-version": 2,
5
+ "description": "HarfBuzz OpenType text shaping engine",
6
+ "homepage": "https://github.com/harfbuzz/harfbuzz",
7
+ "dependencies": [
8
+ {
9
+ "name": "freetype",
10
+ "default-features": false
11
+ },
12
+ {
13
+ "name": "gettext",
14
+ "platform": "osx"
15
+ },
16
+ {
17
+ "name": "vcpkg-tool-meson",
18
+ "host": true
19
+ }
20
+ ],
21
+ "features": {
22
+ "coretext": {
23
+ "description": "Enable CoreText shaper backend on macOS"
24
+ },
25
+ "glib": {
26
+ "description": "Glib Unicode callbacks support",
27
+ "dependencies": [
28
+ "glib",
29
+ {
30
+ "name": "glib",
31
+ "host": true
32
+ }
33
+ ]
34
+ },
35
+ "graphite2": {
36
+ "description": "Graphite2 shaper support",
37
+ "dependencies": [
38
+ "graphite2"
39
+ ]
40
+ },
41
+ "icu": {
42
+ "description": "icu support for harfbuzz",
43
+ "dependencies": [
44
+ "icu"
45
+ ]
46
+ }
47
+ }
48
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hayai/portfile.cmake ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO nickbruun/hayai
6
+ REF 0234860c7a851362ab33efc6c018203cded3eb48
7
+ SHA512 e4c65d834eddaeb77e73a3bc24645a531b93d26e32ff1daffbe71c579b76b4b8b4865f6c7ea07b378cafbe2da3a698414d4135f28fc9821eef995ed78d0987f2
8
+ HEAD_REF master
9
+ )
10
+
11
+ if(VCPKG_TARGET_IS_UWP)
12
+ set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
13
+ set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
14
+ endif()
15
+
16
+ vcpkg_configure_cmake(
17
+ SOURCE_PATH ${SOURCE_PATH}
18
+ PREFER_NINJA
19
+ OPTIONS
20
+ -DINSTALL_HAYAI=ON
21
+ -DBUILD_HAYAI_TESTS=OFF
22
+ -DBUILD_HAYAI_SAMPLES=OFF
23
+ )
24
+
25
+ vcpkg_install_cmake()
26
+
27
+ if(EXISTS ${CURRENT_PACKAGES_DIR}/CMake)
28
+ vcpkg_fixup_cmake_targets(CONFIG_PATH CMake)
29
+ elseif(EXISTS ${CURRENT_PACKAGES_DIR}/lib/CMake/${PORT})
30
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/CMake/${PORT})
31
+ endif()
32
+
33
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
34
+
35
+ # Handle manual-link libraries
36
+ if(EXISTS ${CURRENT_PACKAGES_DIR}/debug/lib/hayai_main.lib)
37
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link)
38
+ file(RENAME
39
+ ${CURRENT_PACKAGES_DIR}/debug/lib/hayai_main.lib
40
+ ${CURRENT_PACKAGES_DIR}/debug/lib/manual-link/hayai_main.lib
41
+ )
42
+
43
+ vcpkg_replace_string(
44
+ ${CURRENT_PACKAGES_DIR}/share/${PORT}/hayai-targets-debug.cmake
45
+ "\${CMAKE_CURRENT_LIST_DIR}/../../debug/lib/hayai_main.lib"
46
+ "\${CMAKE_CURRENT_LIST_DIR}/../../debug/lib/manual-link/hayai_main.lib"
47
+ )
48
+ endif()
49
+
50
+ if(EXISTS ${CURRENT_PACKAGES_DIR}/lib/hayai_main.lib)
51
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/lib/manual-link)
52
+ file(RENAME
53
+ ${CURRENT_PACKAGES_DIR}/lib/hayai_main.lib
54
+ ${CURRENT_PACKAGES_DIR}/lib/manual-link/hayai_main.lib
55
+ )
56
+
57
+ vcpkg_replace_string(
58
+ ${CURRENT_PACKAGES_DIR}/share/${PORT}/hayai-targets-release.cmake
59
+ "\${CMAKE_CURRENT_LIST_DIR}/../../lib/hayai_main.lib"
60
+ "\${CMAKE_CURRENT_LIST_DIR}/../../lib/manual-link/hayai_main.lib"
61
+ )
62
+ endif()
63
+
64
+ # Handle copyright
65
+ configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hayai/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hayai",
3
+ "version-string": "2019-08-10",
4
+ "port-version": 1,
5
+ "description": "C++ benchmarking framework",
6
+ "homepage": "https://github.com/nickbruun/hayai"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hazelcast-cpp-client/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO hazelcast/hazelcast-cpp-client
4
+ REF v5.0.0
5
+ SHA512 7cf85eadeed212871d2a6c5c0aa9d9640c9c89e126c3e383981ddd4cb222390e4ce8307b554766666b8d7816bd5e0fed4242bc674e20423570726c261c182559
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_check_features(
10
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
11
+ FEATURES
12
+ openssl WITH_OPENSSL
13
+ example BUILD_EXAMPLES
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS ${FEATURE_OPTIONS}
19
+ )
20
+
21
+ vcpkg_cmake_install()
22
+
23
+ vcpkg_copy_pdbs()
24
+
25
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
26
+
27
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/hazelcast-cpp-client)
28
+
29
+ # Handle copyright
30
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hazelcast-cpp-client/vcpkg.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hazelcast-cpp-client",
3
+ "version-semver": "5.0.0",
4
+ "description": "C++ client library for Hazelcast in-memory database.",
5
+ "homepage": "https://github.com/hazelcast/hazelcast-cpp-client",
6
+ "documentation": "http://hazelcast.github.io/hazelcast-cpp-client/index.html",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ "boost-any",
10
+ "boost-asio",
11
+ "boost-chrono",
12
+ "boost-format",
13
+ "boost-optional",
14
+ "boost-property-tree",
15
+ "boost-system",
16
+ "boost-thread",
17
+ "boost-uuid",
18
+ {
19
+ "name": "vcpkg-cmake",
20
+ "host": true
21
+ },
22
+ {
23
+ "name": "vcpkg-cmake-config",
24
+ "host": true
25
+ }
26
+ ],
27
+ "features": {
28
+ "example": {
29
+ "description": "Build examples for Hazelcast C++ client"
30
+ },
31
+ "openssl": {
32
+ "description": "Build hazelcast C++ client with SSL support",
33
+ "dependencies": [
34
+ "openssl"
35
+ ]
36
+ }
37
+ }
38
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/hdf5_config.patch ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/cmake/hdf5-config.cmake.in b/config/cmake/hdf5-config.cmake.in
2
+ index 4d02c9c..8c10d2d 100644
3
+ --- a/config/cmake/hdf5-config.cmake.in
4
+ +++ b/config/cmake/hdf5-config.cmake.in
5
+ @@ -55,7 +55,10 @@ set (${HDF5_PACKAGE_NAME}_PARALLEL_FILTERED_WRITES "@PARALLEL_FILTERED_WRITES@")
6
+ #-----------------------------------------------------------------------------
7
+ # Dependencies
8
+ #-----------------------------------------------------------------------------
9
+ +include(CMakeFindDependencyMacro)
10
+ +
11
+ if (${HDF5_PACKAGE_NAME}_ENABLE_PARALLEL)
12
+ + find_dependency(MPI)
13
+ set (${HDF5_PACKAGE_NAME}_MPI_C_INCLUDE_PATH "@MPI_C_INCLUDE_DIRS@")
14
+ set (${HDF5_PACKAGE_NAME}_MPI_C_LIBRARIES "@MPI_C_LIBRARIES@")
15
+ if (${HDF5_PACKAGE_NAME}_BUILD_FORTRAN)
16
+ @@ -111,11 +114,11 @@ set (${HDF5_PACKAGE_NAME}_VERSION_MINOR @HDF5_VERSION_MINOR@)
17
+ # project which has already built hdf5 as a subproject
18
+ #-----------------------------------------------------------------------------
19
+ if (NOT TARGET "@HDF5_PACKAGE@")
20
+ - if (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
21
+ - include (@PACKAGE_SHARE_INSTALL_DIR@/@ZLIB_PACKAGE_NAME@/@ZLIB_PACKAGE_NAME@@[email protected])
22
+ + if (${HDF5_PACKAGE_NAME}_ENABLE_Z_LIB_SUPPORT)
23
+ + find_dependency(ZLIB)
24
+ endif ()
25
+ - if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT AND ${HDF5_PACKAGE_NAME}_PACKAGE_EXTLIBS)
26
+ - include (@PACKAGE_SHARE_INSTALL_DIR@/@SZ_PACKAGE_NAME@/@SZ_PACKAGE_NAME@@[email protected])
27
+ + if (${HDF5_PACKAGE_NAME}_ENABLE_SZIP_SUPPORT)
28
+ + find_dependency(szip)
29
+ endif ()
30
+ include (@PACKAGE_SHARE_INSTALL_DIR@/@HDF5_PACKAGE@/@HDF5_PACKAGE@@[email protected])
31
+ endif ()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/pkgconfig-link-order.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/config/libhdf5.pc.in b/config/libhdf5.pc.in
2
+ index 4a2ebaa..3cb42d2 100644
3
+ --- a/config/libhdf5.pc.in
4
+ +++ b/config/libhdf5.pc.in
5
+ @@ -10,5 +10,5 @@ Version: @_PKG_CONFIG_VERSION@
6
+ Cflags: -I${includedir}
7
+ Libs: -L${libdir} @_PKG_CONFIG_SH_LIBS@
8
+ Requires: @_PKG_CONFIG_REQUIRES@
9
+ -Libs.private: @_PKG_CONFIG_LIBS_PRIVATE@ @_PKG_CONFIG_LIBS@
10
+ +Libs.private: @_PKG_CONFIG_LIBS@ @_PKG_CONFIG_LIBS_PRIVATE@
11
+ Requires.private: @_PKG_CONFIG_REQUIRES_PRIVATE@
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/pkgconfig-requires.patch ADDED
@@ -0,0 +1,192 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeFilters.cmake b/CMakeFilters.cmake
2
+ index 141ab44..66b7efa 100644
3
+ --- a/CMakeFilters.cmake
4
+ +++ b/CMakeFilters.cmake
5
+ @@ -74,6 +74,7 @@ if (HDF5_ENABLE_Z_LIB_SUPPORT)
6
+ set (H5_ZLIB_HEADER "zlib.h")
7
+ set (ZLIB_INCLUDE_DIR_GEN ${ZLIB_INCLUDE_DIR})
8
+ set (ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIR})
9
+ + set (zlib_PC_LIBS_PRIVATE "${ZLIB_LIBRARIES}")
10
+ else ()
11
+ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
12
+ EXTERNAL_ZLIB_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT})
13
+ @@ -134,6 +135,7 @@ if (HDF5_ENABLE_SZIP_SUPPORT)
14
+ else()
15
+ set(SZIP_STATIC_LIBRARY szip-static)
16
+ endif()
17
+ + set(szip_PC_LIBS_PRIVATE "${SZIP_STATIC_LIBRARY}")
18
+ else ()
19
+ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
20
+ EXTERNAL_SZIP_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT} ${HDF5_ENABLE_SZIP_ENCODING})
21
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
22
+ index b75fdd2..a2e88fd 100644
23
+ --- a/CMakeLists.txt
24
+ +++ b/CMakeLists.txt
25
+ @@ -750,6 +750,9 @@ if (H5_HAVE_PARALLEL)
26
+ if (MPI_C_LINK_FLAGS)
27
+ set (CMAKE_EXE_LINKER_FLAGS "${MPI_C_LINK_FLAGS} ${CMAKE_EXE_LINKER_FLAGS}")
28
+ endif ()
29
+ + if(UNIX)
30
+ + set(ompi-c_PC_LIBS_PRIVATE ${MPI_C_LIBRARIES})
31
+ + endif()
32
+ endif ()
33
+
34
+ #option (DEFAULT_API_VERSION "Enable v1.12 API (v16, v18, v110, v112)" "v112")
35
+ diff --git a/c++/src/CMakeLists.txt b/c++/src/CMakeLists.txt
36
+ index 835d422..9a7176f 100644
37
+ --- a/c++/src/CMakeLists.txt
38
+ +++ b/c++/src/CMakeLists.txt
39
+ @@ -188,14 +188,14 @@ set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}")
40
+ set (_PKG_CONFIG_LIBS_PRIVATE)
41
+
42
+ if (NOT ONLY_SHARED_LIBS)
43
+ - set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_CPP_LIB_CORENAME}")
44
+ + set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_CPP_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
45
+ endif ()
46
+ if (BUILD_SHARED_LIBS)
47
+ - set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_CPP_LIB_CORENAME}")
48
+ + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_CPP_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
49
+ endif ()
50
+
51
+ -set (_PKG_CONFIG_REQUIRES "${HDF5_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
52
+ -set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
53
+ +set (_PKG_CONFIG_REQUIRES "${HDF5_LIB_CORENAME}")
54
+ +set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_LIB_CORENAME}")
55
+
56
+ configure_file (
57
+ ${HDF_CONFIG_DIR}/libhdf5.pc.in
58
+ diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
59
+ index ae0ebca..095fae4 100644
60
+ --- a/config/cmake_ext_mod/HDFMacros.cmake
61
+ +++ b/config/cmake_ext_mod/HDFMacros.cmake
62
+ @@ -384,7 +384,7 @@ macro (HDF_DIR_PATHS package_prefix)
63
+ endif ()
64
+
65
+ #set the default debug suffix for all library targets
66
+ - if(NOT CMAKE_DEBUG_POSTFIX)
67
+ + if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
68
+ if (WIN32)
69
+ set (CMAKE_DEBUG_POSTFIX "_D")
70
+ else ()
71
+ diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt
72
+ index e59a829..8da64dd 100644
73
+ --- a/fortran/src/CMakeLists.txt
74
+ +++ b/fortran/src/CMakeLists.txt
75
+ @@ -545,14 +545,14 @@ set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}")
76
+ set (_PKG_CONFIG_LIBS_PRIVATE)
77
+
78
+ if (NOT ONLY_SHARED_LIBS)
79
+ - set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_F90_LIB_CORENAME}")
80
+ + set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_F90_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
81
+ endif ()
82
+ if (BUILD_SHARED_LIBS)
83
+ - set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_F90_LIB_CORENAME}")
84
+ + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_F90_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
85
+ endif ()
86
+
87
+ -set (_PKG_CONFIG_REQUIRES "${HDF5_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
88
+ -set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
89
+ +set (_PKG_CONFIG_REQUIRES "${HDF5_LIB_CORENAME}")
90
+ +set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_LIB_CORENAME}")
91
+
92
+ configure_file (
93
+ ${HDF_CONFIG_DIR}/libhdf5.pc.in
94
+ diff --git a/hl/c++/src/CMakeLists.txt b/hl/c++/src/CMakeLists.txt
95
+ index c516df1..89bd31f 100644
96
+ --- a/hl/c++/src/CMakeLists.txt
97
+ +++ b/hl/c++/src/CMakeLists.txt
98
+ @@ -99,14 +99,14 @@ set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}")
99
+ set (_PKG_CONFIG_LIBS_PRIVATE)
100
+
101
+ if (NOT ONLY_SHARED_LIBS)
102
+ - set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_HL_CPP_LIB_CORENAME}")
103
+ + set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_HL_CPP_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
104
+ endif ()
105
+ if (BUILD_SHARED_LIBS)
106
+ - set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_HL_CPP_LIB_CORENAME}")
107
+ + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_HL_CPP_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
108
+ endif ()
109
+
110
+ -set (_PKG_CONFIG_REQUIRES "${HDF5_HL_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
111
+ -set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_HL_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
112
+ +set (_PKG_CONFIG_REQUIRES "${HDF5_HL_LIB_CORENAME}")
113
+ +set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_HL_LIB_CORENAME}")
114
+
115
+ configure_file (
116
+ ${HDF_CONFIG_DIR}/libhdf5.pc.in
117
+ diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt
118
+ index 973299f..8eadfe5 100644
119
+ --- a/hl/fortran/src/CMakeLists.txt
120
+ +++ b/hl/fortran/src/CMakeLists.txt
121
+ @@ -332,14 +332,14 @@ set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}")
122
+ set (_PKG_CONFIG_LIBS_PRIVATE)
123
+
124
+ if (NOT ONLY_SHARED_LIBS)
125
+ - set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_HL_F90_LIB_CORENAME}")
126
+ + set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_HL_F90_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
127
+ endif ()
128
+ if (BUILD_SHARED_LIBS)
129
+ - set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_HL_F90_LIB_CORENAME}")
130
+ + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_HL_F90_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
131
+ endif ()
132
+
133
+ -set (_PKG_CONFIG_REQUIRES "${HDF5_F90_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
134
+ -set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_F90_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
135
+ +set (_PKG_CONFIG_REQUIRES "${HDF5_F90_LIB_CORENAME}")
136
+ +set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_F90_LIB_CORENAME}")
137
+
138
+ configure_file (
139
+ ${HDF_CONFIG_DIR}/libhdf5.pc.in
140
+ diff --git a/hl/src/CMakeLists.txt b/hl/src/CMakeLists.txt
141
+ index 7678de8..2d398cc 100644
142
+ --- a/hl/src/CMakeLists.txt
143
+ +++ b/hl/src/CMakeLists.txt
144
+ @@ -131,14 +131,14 @@ set (_PKG_CONFIG_VERSION "${HDF5_PACKAGE_VERSION}")
145
+ set (_PKG_CONFIG_LIBS_PRIVATE)
146
+
147
+ if (NOT ONLY_SHARED_LIBS)
148
+ - set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_HL_LIB_CORENAME}")
149
+ + set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_HL_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
150
+ endif ()
151
+ if (BUILD_SHARED_LIBS)
152
+ - set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_HL_LIB_CORENAME}")
153
+ + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_HL_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
154
+ endif ()
155
+
156
+ -set (_PKG_CONFIG_REQUIRES "${HDF5_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
157
+ -set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_LIB_CORENAME}-${HDF5_PACKAGE_VERSION}")
158
+ +set (_PKG_CONFIG_REQUIRES "${HDF5_LIB_CORENAME}")
159
+ +set (_PKG_CONFIG_REQUIRES_PRIVATE "${HDF5_LIB_CORENAME}")
160
+
161
+ configure_file (
162
+ ${HDF_CONFIG_DIR}/libhdf5.pc.in
163
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
164
+ index b3c2226..ea80d60 100644
165
+ --- a/src/CMakeLists.txt
166
+ +++ b/src/CMakeLists.txt
167
+ @@ -1321,14 +1321,23 @@ foreach (libs ${LINK_LIBS} ${LINK_COMP_LIBS})
168
+ endforeach ()
169
+
170
+ if (NOT ONLY_SHARED_LIBS)
171
+ - set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_LIB_CORENAME}")
172
+ + set (_PKG_CONFIG_LIBS "${_PKG_CONFIG_LIBS} -l${HDF5_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
173
+ endif ()
174
+ if (BUILD_SHARED_LIBS)
175
+ - set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_LIB_CORENAME}")
176
+ + set (_PKG_CONFIG_SH_LIBS "${_PKG_CONFIG_SH_LIBS} -l${HDF5_LIB_CORENAME}${CMAKE_DEBUG_POSTFIX}")
177
+ endif ()
178
+
179
+ set (_PKG_CONFIG_REQUIRES)
180
+ set (_PKG_CONFIG_REQUIRES_PRIVATE)
181
+ +set(_PKG_CONFIG_LIBS_PRIVATE " ${_PKG_CONFIG_LIBS_PRIVATE} ")
182
+ +foreach(_module IN ITEMS ompi-c szip zlib)
183
+ + if(${_module}_PC_LIBS_PRIVATE)
184
+ + foreach(_lib IN LISTS ${_module}_PC_LIBS_PRIVATE)
185
+ + string(REPLACE " -l${_lib} " " " _PKG_CONFIG_LIBS_PRIVATE "${_PKG_CONFIG_LIBS_PRIVATE}")
186
+ + endforeach()
187
+ + string(APPEND _PKG_CONFIG_REQUIRES_PRIVATE " ${_module}")
188
+ + endif()
189
+ +endforeach()
190
+
191
+ configure_file (
192
+ ${HDF_CONFIG_DIR}/libhdf5.pc.in
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/portfile.cmake ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # highfive should be updated together with hdf5
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO HDFGroup/hdf5
6
+ REF hdf5-1_12_1
7
+ SHA512 8a736b6a66bf4ec904a0e0dd9e8e0e791d8a04c996c5ea6b73b7d6f8145c4bfa4ed5c6e4f11740ceb1d1226a333c8242968e604dbdac2b7b561a1bd265423434
8
+ HEAD_REF develop
9
+ PATCHES
10
+ hdf5_config.patch
11
+ szip.patch
12
+ pkgconfig-requires.patch
13
+ pkgconfig-link-order.patch
14
+ )
15
+
16
+ set(ALLOW_UNSUPPORTED OFF)
17
+ if ("parallel" IN_LIST FEATURES AND "cpp" IN_LIST FEATURES)
18
+ message(WARNING "Feature 'Parallel' and 'cpp' are mutually exclusive, enable feature ALLOW_UNSUPPORTED automatically to enable them both.")
19
+ set(ALLOW_UNSUPPORTED ON)
20
+ endif()
21
+
22
+ if ("threadsafe" IN_LIST FEATURES AND
23
+ ("parallel" IN_LIST FEATURES
24
+ OR "fortran" IN_LIST FEATURES
25
+ OR "cpp" IN_LIST FEATURES)
26
+ )
27
+ message(WARNING "Feture 'threadsafe' and other features are mutually exclusive, enable feature ALLOW_UNSUPPORTED automatically to enable them both.")
28
+ set(ALLOW_UNSUPPORTED ON)
29
+ endif()
30
+
31
+ if ("fortran" IN_LIST FEATURE)
32
+ message(WARNING "Feature 'fortran' is not yet official supported within VCPKG. Build will most likly fail if ninja 1.10 and a Fortran compiler are not available.")
33
+ endif()
34
+
35
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
36
+ FEATURES
37
+ parallel HDF5_ENABLE_PARALLEL
38
+ tools HDF5_BUILD_TOOLS
39
+ cpp HDF5_BUILD_CPP_LIB
40
+ szip HDF5_ENABLE_SZIP_SUPPORT
41
+ szip HDF5_ENABLE_SZIP_ENCODING
42
+ zlib HDF5_ENABLE_Z_LIB_SUPPORT
43
+ fortran HDF5_BUILD_FORTRAN
44
+ threadsafe HDF5_ENABLE_THREADSAFE
45
+ utils HDF5_BUILD_UTILS
46
+ )
47
+
48
+ file(REMOVE "${SOURCE_PATH}/config/cmake_ext_mod/FindSZIP.cmake")#Outdated; does not find debug szip
49
+
50
+ if(FEATURES MATCHES "tools" AND VCPKG_CRT_LINKAGE STREQUAL "static")
51
+ list(APPEND FEATURE_OPTIONS -DBUILD_STATIC_EXECS=ON)
52
+ endif()
53
+
54
+ if(NOT VCPKG_LIBRARY_LINKAGE STREQUAL "static")
55
+ list(APPEND FEATURE_OPTIONS
56
+ -DBUILD_STATIC_LIBS=OFF
57
+ -DONLY_SHARED_LIBS=ON)
58
+ endif()
59
+
60
+ vcpkg_cmake_configure(
61
+ SOURCE_PATH "${SOURCE_PATH}"
62
+ DISABLE_PARALLEL_CONFIGURE
63
+ OPTIONS
64
+ ${FEATURE_OPTIONS}
65
+ -DBUILD_TESTING=OFF
66
+ -DHDF5_BUILD_EXAMPLES=OFF
67
+ -DHDF5_INSTALL_DATA_DIR=share/hdf5/data
68
+ -DHDF5_INSTALL_CMAKE_DIR=share
69
+ -DHDF_PACKAGE_NAMESPACE:STRING=hdf5::
70
+ -DHDF5_MSVC_NAMING_CONVENTION=OFF
71
+ -DSZIP_USE_EXTERNAL=ON
72
+ -DALLOW_UNSUPPORTED=${ALLOW_UNSUPPORTED}
73
+ OPTIONS_RELEASE
74
+ -DCMAKE_DEBUG_POSTFIX= # For lib name in pkgconfig files
75
+ )
76
+
77
+ vcpkg_cmake_install()
78
+ vcpkg_copy_pdbs()
79
+ vcpkg_cmake_config_fixup()
80
+
81
+ set(debug_suffix debug)
82
+ if(VCPKG_TARGET_IS_WINDOWS)
83
+ set(debug_suffix D)
84
+ endif()
85
+
86
+ vcpkg_fixup_pkgconfig()
87
+ if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
88
+ file(GLOB pc_files "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/*.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/*.pc")
89
+ foreach(file IN LISTS pc_files)
90
+ vcpkg_replace_string("${file}" " -lhdf5" " -llibhdf5")
91
+ endforeach()
92
+ endif()
93
+
94
+ file(READ "${CURRENT_PACKAGES_DIR}/share/hdf5/hdf5-config.cmake" contents)
95
+ string(REPLACE [[${HDF5_PACKAGE_NAME}_TOOLS_DIR "${PACKAGE_PREFIX_DIR}/bin"]]
96
+ [[${HDF5_PACKAGE_NAME}_TOOLS_DIR "${PACKAGE_PREFIX_DIR}/tools/hdf5"]]
97
+ contents ${contents}
98
+ )
99
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/hdf5/hdf5-config.cmake" ${contents})
100
+
101
+ if(FEATURES MATCHES "tools")
102
+ set(HDF5_TOOLS h5cc h5hlcc h5c++ h5hlc++ h5copy h5diff h5dump h5ls h5stat gif2h5 h52gif h5clear h5debug
103
+ h5format_convert h5jam h5unjam h5ls h5mkgrp h5repack h5repart h5watch ph5diff h5import
104
+ )
105
+
106
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
107
+ list(TRANSFORM HDF5_TOOLS REPLACE "^(.+)$" "\\1-shared")
108
+ else()
109
+ endif()
110
+
111
+ foreach(HDF5_TOOL IN LISTS HDF5_TOOLS)
112
+ if (NOT EXISTS "${CURRENT_PACKAGES_DIR}/bin/${HDF5_TOOL}${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
113
+ OR NOT EXISTS "${CURRENT_PACKAGES_DIR}/debug/bin/${HDF5_TOOL}${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
114
+ list(REMOVE_ITEM HDF5_TOOLS "${HDF5_TOOL}")
115
+ endif()
116
+ endforeach()
117
+
118
+ vcpkg_copy_tools(TOOL_NAMES ${HDF5_TOOLS} AUTO_CLEAN)
119
+ endif()
120
+
121
+ if ("utils" IN_LIST FEATURES)
122
+ vcpkg_copy_tools(
123
+ TOOL_NAMES mirror_server mirror_server_stop
124
+ AUTO_CLEAN
125
+ )
126
+ endif()
127
+
128
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
129
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
130
+ endif()
131
+
132
+ # Clean up
133
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
134
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
135
+
136
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
137
+
138
+ file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/data/COPYING" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/szip.patch ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeFilters.cmake b/CMakeFilters.cmake
2
+ index d5f801e..141ab44 100644
3
+ --- a/CMakeFilters.cmake
4
+ +++ b/CMakeFilters.cmake
5
+ @@ -124,6 +124,16 @@ if (HDF5_ENABLE_SZIP_SUPPORT)
6
+ set (H5_HAVE_LIBSZ 1)
7
+ set (SZIP_INCLUDE_DIR_GEN ${SZIP_INCLUDE_DIR})
8
+ set (SZIP_INCLUDE_DIRS ${SZIP_INCLUDE_DIRS} ${SZIP_INCLUDE_DIR})
9
+ + elseif(1)
10
+ + find_package(szip CONFIG REQUIRED)
11
+ + set(SZIP_INCLUDE_DIRS "")
12
+ + # SZIP_STATIC_LIBRARY will be used in linking, in cmake and in pkgconfig,
13
+ + # but the actual linkage doesn't matter.
14
+ + if (TARGET szip-shared)
15
+ + set(SZIP_STATIC_LIBRARY szip-shared)
16
+ + else()
17
+ + set(SZIP_STATIC_LIBRARY szip-static)
18
+ + endif()
19
+ else ()
20
+ if (HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "GIT" OR HDF5_ALLOW_EXTERNAL_SUPPORT MATCHES "TGZ")
21
+ EXTERNAL_SZIP_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT} ${HDF5_ENABLE_SZIP_ENCODING})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.3)
3
+ cmake_policy(PUSH)
4
+ cmake_policy(SET CMP0057 NEW)
5
+ if(NOT "CONFIG" IN_LIST ARGS AND NOT "NO_MODULE" IN_LIST ARGS AND "HDF5" IN_LIST ARGS)
6
+ # The caller hasn't said "CONFIG", so they want the built-in FindHDF5.cmake behavior. Set configurations macros to ensure the built-in script finds us.
7
+ if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
8
+ set(HDF5_USE_STATIC_LIBRARIES ON)
9
+ add_compile_definitions(H5_BUILT_AS_STATIC_LIB)
10
+ else()
11
+ set(HDF5_USE_STATIC_LIBRARIES OFF)
12
+ add_compile_definitions(H5_BUILT_AS_DYNAMIC_LIB)
13
+ endif()
14
+ endif()
15
+ cmake_policy(POP)
16
+ endif()
17
+ _find_package(${ARGS})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hdf5/vcpkg.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hdf5",
3
+ "version": "1.12.1",
4
+ "port-version": 4,
5
+ "description": "HDF5 is a data model, library, and file format for storing and managing data",
6
+ "homepage": "https://www.hdfgroup.org/downloads/hdf5/",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ],
18
+ "default-features": [
19
+ "szip",
20
+ "zlib"
21
+ ],
22
+ "features": {
23
+ "cpp": {
24
+ "description": "Builds cpp lib"
25
+ },
26
+ "fortran": {
27
+ "description": "Build with fortran"
28
+ },
29
+ "parallel": {
30
+ "description": "parallel support for HDF5",
31
+ "dependencies": [
32
+ "mpi"
33
+ ]
34
+ },
35
+ "szip": {
36
+ "description": "Build with szip",
37
+ "dependencies": [
38
+ "szip"
39
+ ]
40
+ },
41
+ "threadsafe": {
42
+ "description": "thread safety for HDF5",
43
+ "dependencies": [
44
+ "pthreads"
45
+ ]
46
+ },
47
+ "tools": {
48
+ "description": "Build hdf tools"
49
+ },
50
+ "utils": {
51
+ "description": "Build HDF5 Utils"
52
+ },
53
+ "zlib": {
54
+ "description": "Build with zlib",
55
+ "dependencies": [
56
+ "zlib"
57
+ ]
58
+ }
59
+ }
60
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/healpix/fix-dependency.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/cxx/configure.ac b/src/cxx/configure.ac
2
+ index 63f05d7..e284f0d 100644
3
+ --- a/src/cxx/configure.ac
4
+ +++ b/src/cxx/configure.ac
5
+ @@ -175,7 +175,7 @@ CXXCFLAGS_NO_C="$CXXCFLAGS $CPPFLAGS"
6
+ LDCCFLAGS="$LDFLAGS $CCFLAGS"
7
+ LDCXXFLAGS="$LDFLAGS $CXXCFLAGS"
8
+
9
+ -AC_CHECK_LIB([cfitsio],[ffgnrwll],,AC_MSG_ERROR([could not find the cfitsio library]),[-lm])
10
+ +AC_CHECK_LIB([cfitsio -lz],[ffgnrwll],,AC_MSG_ERROR([could not find the cfitsio library]),[-lm -lz])
11
+ AC_CHECK_HEADERS([fitsio.h],,AC_MSG_ERROR([could not find the cfitsio header file]),)
12
+
13
+ AC_SUBST(SILENT_RULE)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/healpix/portfile.cmake ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(HEALPIX_VER 3.50)
2
+ set(HEALPIX_PACK_NAME ${HEALPIX_VER}_2018Dec10)
3
+
4
+ vcpkg_from_sourceforge(
5
+ OUT_SOURCE_PATH SOURCE_PATH
6
+ REPO healpix
7
+ REF Healpix_${HEALPIX_VER}
8
+ FILENAME "Healpix_${HEALPIX_PACK_NAME}.tar.gz"
9
+ SHA512 29fe680d757bd94651bf029654257cb67286643aad510df4c2f0b06245174411376ec1beca64feebfac14a6fc0194525170635842916d79dcaddeddd9ac6f6c7
10
+ PATCHES fix-dependency.patch
11
+ )
12
+
13
+ vcpkg_configure_make(
14
+ AUTOCONFIG
15
+ SOURCE_PATH ${SOURCE_PATH}
16
+ PROJECT_SUBPATH src/cxx
17
+ COPY_SOURCE
18
+ OPTIONS
19
+ --with-libcfitsio-include=${CURRENT_INSTALLED_DIR}/include/cfitsio
20
+ --with-libcfitsio-lib=${CURRENT_INSTALLED_DIR}/lib
21
+ )
22
+
23
+ vcpkg_build_make(BUILD_TARGET compile_all)
24
+ #vcpkg_fixup_pkgconfig()
25
+
26
+ # Install manually because healpix has no install target
27
+ set(OBJ_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/auto")
28
+ file(GLOB_RECURSE HEALPIX_LIBS ${OBJ_DIR}/lib/*)
29
+ file(INSTALL ${HEALPIX_LIBS} DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
30
+
31
+ file(GLOB_RECURSE HEALPIX_INCLUDES ${OBJ_DIR}/include/*)
32
+ file(INSTALL ${HEALPIX_INCLUDES} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
33
+
34
+ file(GLOB_RECURSE HEALPIX_TOOLS ${OBJ_DIR}/bin/*)
35
+ file(INSTALL ${HEALPIX_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
36
+
37
+ if(EXISTS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/")
38
+ set(OBJ_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/auto")
39
+ file(GLOB_RECURSE HEALPIX_LIBS ${OBJ_DIR}/lib/*)
40
+ file(INSTALL ${HEALPIX_LIBS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
41
+ endif()
42
+
43
+ # Handle copyright
44
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/healpix/vcpkg.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "healpix",
3
+ "version-string": "1.12.10",
4
+ "port-version": 8,
5
+ "description": "HEALPix is an acronym for Hierarchical Equal Area isoLatitude Pixelation of a sphere.",
6
+ "homepage": "http://healpix.sourceforge.net/",
7
+ "supports": "linux",
8
+ "dependencies": [
9
+ "cfitsio"
10
+ ]
11
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hedley/portfile.cmake ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO nemequ/hedley
6
+ REF 8fb0604a8095f6c907378cc3f0391520ae843f6f
7
+ SHA512 3ce102d348f96bd8c7d44bc7119a8f637041f613e1e6a578c15e24c56f79dbcb0b1bce93bc8779a90cc2e34ab74d09f29d240b4519d592973c59da49923460da
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY ${SOURCE_PATH}/hedley.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
12
+
13
+ file(STRINGS ${SOURCE_PATH}/hedley.h SOURCE_LINES)
14
+ # Capture more lines than required to handle future license file changes
15
+ list(SUBLIST SOURCE_LINES 0 30 SOURCE_LINES)
16
+ list(JOIN SOURCE_LINES "\n" _contents)
17
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright "${_contents}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hedley/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hedley",
3
+ "version": "15",
4
+ "description": "A C/C++ header to help move #ifdefs out of your code",
5
+ "homepage": "https://nemequ.github.io/hedley/"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hexl/portfile.cmake ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO intel/hexl
4
+ REF 0858760dc957280e8eb8953af4b4b83879d7b8a4
5
+ SHA512 f2400c4bf32d22904f5917a396fdf6fc625a8832455437429abd54cae70da51cfc42a57dc176d1faeb76f7cd4569dd7499a8f302aef2ea8463d3e8ddc3132050
6
+ HEAD_REF 1.2.3
7
+ )
8
+
9
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
10
+ set(HEXL_SHARED OFF)
11
+ else()
12
+ set(HEXL_SHARED ON)
13
+ endif()
14
+
15
+ vcpkg_find_acquire_program(GIT)
16
+
17
+ vcpkg_cmake_configure(
18
+ SOURCE_PATH ${SOURCE_PATH}
19
+ DISABLE_PARALLEL_CONFIGURE
20
+ OPTIONS
21
+ "-DHEXL_BENCHMARK=OFF"
22
+ "-DHEXL_COVERAGE=OFF"
23
+ "-DHEXL_TESTING=OFF"
24
+ "-DHEXL_SHARED_LIB=${HEXL_SHARED}"
25
+ )
26
+
27
+ vcpkg_cmake_install()
28
+ vcpkg_fixup_pkgconfig()
29
+ vcpkg_cmake_config_fixup(PACKAGE_NAME "HEXL" CONFIG_PATH "lib/cmake/hexl-1.2.3")
30
+
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
32
+
33
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
34
+
35
+ vcpkg_copy_pdbs()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hexl/vcpkg.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hexl",
3
+ "version": "1.2.3",
4
+ "port-version": 1,
5
+ "description": "Intel® HEXL is an open-source library which provides efficient implementations of integer arithmetic on Galois fields.",
6
+ "homepage": "https://github.com/intel/hexl",
7
+ "supports": "x64 & !(windows & !static)",
8
+ "dependencies": [
9
+ "cpu-features",
10
+ "easyloggingpp",
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ }
19
+ ]
20
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hffix/CMakeLists.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.10)
2
+
3
+ set(PROJECT_NAME hffix)
4
+ project(${PROJECT_NAME})
5
+
6
+ include(GNUInstallDirs)
7
+
8
+ add_library(hffix INTERFACE)
9
+ target_include_directories(hffix INTERFACE
10
+ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
11
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
12
+ )
13
+
14
+ install(
15
+ FILES
16
+ ${CMAKE_SOURCE_DIR}/include/hffix.hpp
17
+ ${CMAKE_SOURCE_DIR}/include/hffix_fields.hpp
18
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
19
+ )
20
+
21
+ install(
22
+ TARGETS hffix
23
+ EXPORT hffix-config
24
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
25
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
26
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
27
+ )
28
+ install(EXPORT hffix-config DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME} NAMESPACE ${PROJECT_NAME}::)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hffix/portfile.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO jamesdbrock/hffix
6
+ REF v1.0.0
7
+ SHA512 0043b789e6ffdc32eaf2736a8621dd7fd54e1a16aae33bb1d5f642da1b04d150ed42d8f9ddd046013242164854d9091540452153f09459d05f9bf4a186c7b860
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
+ vcpkg_install_cmake()
18
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
19
+
20
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
21
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
22
+
23
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hffix/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hffix",
3
+ "version-string": "1.0.0",
4
+ "port-version": 1,
5
+ "description": "Financial Information Exchange Protocol C++ Library",
6
+ "homepage": "https://jamesdbrock.github.io/hffix"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hfsm2/portfile.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO andrew-gresyk/HFSM2
4
+ REF 1_10_1
5
+ SHA512 49ae09a3e4052c7a70390510d128d4d0a41f3c2b6bb9cf2c0b36d272ca1a2524c1d2b544e4c36655681255ce6a5e2f3f90f8c4e9957e8c49e49a62927134a718
6
+ HEAD_REF master
7
+ )
8
+
9
+ # Install include directory
10
+ file(INSTALL "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
11
+
12
+ # Handle copyright
13
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
14
+
15
+ # Copy usage file
16
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hfsm2/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package hfsm2 is header only and can be used from CMake via:
2
+
3
+ find_path(HFSM2_INCLUDE_DIRS "hfsm2/machine.hpp")
4
+ target_include_directories(main PRIVATE ${HFSM2_INCLUDE_DIRS})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hfsm2/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hfsm2",
3
+ "version": "1.10.1",
4
+ "description": "Header-only heriarchical FSM framework in C++14, with fully statically-defined structure (no dynamic allocations), built with variadic templates.",
5
+ "homepage": "https://github.com/andrew-gresyk/HFSM2"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hidapi/portfile.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO libusb/hidapi
4
+ REF hidapi-0.11.2
5
+ SHA512 c4d04bf570aa98dd88d7ce08ef1abb0675d500c9aa2c22f0437fa30b700a94446779f77e1170267926d5f6f0d9cdb2bb81ad1fe20d158c18587fddbca59e9517
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ OPTIONS -DHIDAPI_BUILD_HIDTEST=OFF
12
+ )
13
+ vcpkg_cmake_install()
14
+
15
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
16
+ vcpkg_fixup_pkgconfig()
17
+ vcpkg_copy_pdbs()
18
+
19
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/hidapi/hidapi.cmake" "\"/hidapi\"" "\"\${_IMPORT_PREFIX}/include\"")
20
+
21
+ file(INSTALL "${SOURCE_PATH}/LICENSE-bsd.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
22
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hidapi/vcpkg.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hidapi",
3
+ "version-semver": "0.11.2",
4
+ "port-version": 1,
5
+ "description": "A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows.",
6
+ "homepage": "https://github.com/libusb/hidapi",
7
+ "license": "BSD-3-Clause-Clear",
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ {
11
+ "name": "libusb",
12
+ "platform": "!(windows | osx)"
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake",
16
+ "host": true
17
+ },
18
+ {
19
+ "name": "vcpkg-cmake-config",
20
+ "host": true
21
+ }
22
+ ]
23
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/fix-dependency-hdf5.patch ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMake/HighFiveTargetDeps.cmake b/CMake/HighFiveTargetDeps.cmake
2
+ index 51bc7b2..f04bf4c 100644
3
+ --- a/CMake/HighFiveTargetDeps.cmake
4
+ +++ b/CMake/HighFiveTargetDeps.cmake
5
+ @@ -10,7 +10,13 @@ if(NOT TARGET libdeps)
6
+ if(NOT DEFINED HDF5_C_LIBRARIES)
7
+ set(HDF5_NO_FIND_PACKAGE_CONFIG_FILE TRUE) # Consistency
8
+ set(HDF5_PREFER_PARALLEL ${HIGHFIVE_PARALLEL_HDF5})
9
+ - find_package(HDF5 REQUIRED)
10
+ + find_package(hdf5 CONFIG REQUIRED)
11
+ + set(HIGHFIVE_PARALLEL_HDF5 ${HDF5_ENABLE_PARALLEL})
12
+ + if(TARGET hdf5::hdf5-shared)
13
+ + set(HDF5_C_LIBRARIES hdf5::hdf5-shared)
14
+ + elseif(TARGET hdf5::hdf5-static)
15
+ + set(HDF5_C_LIBRARIES hdf5::hdf5-static)
16
+ + endif()
17
+ endif()
18
+
19
+ if(HIGHFIVE_PARALLEL_HDF5 AND NOT HDF5_IS_PARALLEL)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/fix-error-C1128.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 9d42b6e..e6d9f18 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -41,6 +41,10 @@ option(HIGHFIVE_BUILD_DOCS "Enable documentation building" ON)
6
+ option(HIGHFIVE_USE_INSTALL_DEPS "End applications by default use detected dependencies here" OFF)
7
+ mark_as_advanced(HIGHFIVE_USE_INSTALL_DEPS)
8
+
9
+ +# Allow big object
10
+ +if(MSVC)
11
+ + add_compile_options(/bigobj)
12
+ +endif()
13
+
14
+ # Check compiler cxx_std requirements
15
+ # -----------------------------------
third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/portfile.cmake ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO BlueBrain/HighFive
4
+ REF v2.3
5
+ SHA512 5bf8bc6d3a57be39a4fd15f28f8c839706e2c8d6e2270f45ea39c28a2ac1e3c7f31ed2f48390a45a868c714c85f03f960a0bc8fad945c80b41f495e6f4aca36a
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-dependency-hdf5.patch
9
+ fix-error-C1128.patch
10
+ )
11
+
12
+ vcpkg_check_features(
13
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
14
+ FEATURES
15
+ boost HIGHFIVE_USE_BOOST
16
+ tests HIGHFIVE_UNIT_TESTS
17
+ xtensor HIGHFIVE_USE_XTENSOR
18
+ eigen3 HIGHFIVE_USE_EIGEN
19
+ )
20
+
21
+ vcpkg_cmake_configure(
22
+ SOURCE_PATH "${SOURCE_PATH}"
23
+ OPTIONS
24
+ ${FEATURE_OPTIONS}
25
+ -DHIGHFIVE_EXAMPLES=OFF
26
+ -DHIGHFIVE_BUILD_DOCS=OFF
27
+ )
28
+
29
+ vcpkg_cmake_install()
30
+
31
+ if("tests" IN_LIST FEATURES)
32
+ vcpkg_copy_tools(
33
+ TOOL_NAMES
34
+ tests_high_five_base
35
+ tests_high_five_easy
36
+ tests_high_five_multi_dims
37
+ SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/tests/unit" # Tools are not installed so release version tools are manually copied
38
+ )
39
+ endif()
40
+
41
+ # Use PACKAGE_NAME to avoid folder HighFive and highfive are exist at same time
42
+ vcpkg_cmake_config_fixup(PACKAGE_NAME HighFive CONFIG_PATH share/HighFive/CMake)
43
+
44
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
45
+
46
+ # Handle copyright
47
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/highfive/vcpkg.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "highfive",
3
+ "version": "2.3",
4
+ "port-version": 2,
5
+ "description": "HighFive is a modern header-only C++/C++11 friendly interface for libhdf5",
6
+ "homepage": "https://github.com/BlueBrain/HighFive",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ "hdf5",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ],
19
+ "features": {
20
+ "boost": {
21
+ "description": "Enables Boost support",
22
+ "dependencies": [
23
+ "boost-multi-array",
24
+ "boost-serialization",
25
+ "boost-system",
26
+ "boost-ublas"
27
+ ]
28
+ },
29
+ "eigen3": {
30
+ "description": "Enable Eigen testing",
31
+ "dependencies": [
32
+ "eigen3"
33
+ ]
34
+ },
35
+ "tests": {
36
+ "description": "Build unit tests",
37
+ "dependencies": [
38
+ "boost-test",
39
+ {
40
+ "name": "highfive",
41
+ "features": [
42
+ "boost"
43
+ ]
44
+ }
45
+ ]
46
+ },
47
+ "xtensor": {
48
+ "description": "Enable xtensor testing",
49
+ "dependencies": [
50
+ "xtensor"
51
+ ]
52
+ }
53
+ }
54
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/highway/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 google/highway
6
+ REF 0.14.2
7
+ SHA512 fc1a35463c95c45b646c53f91a9996112726de1d588dcd4d25a7d366840f704ad9a4c0bb6e0a001e929409f04aad6922cbffcf93774a0c360aff875956c7cc8d
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ OPTIONS
14
+ -DBUILD_TESTING=OFF
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ # remove test-related pkg-config files that break vcpkg_fixup_pkgconfig
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libhwy-test.pc")
21
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libhwy-test.pc")
22
+
23
+ vcpkg_fixup_pkgconfig()
24
+
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
26
+
27
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/highway/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "highway",
3
+ "version-semver": "0.14.2",
4
+ "description": "Performance-portable, length-agnostic SIMD with runtime dispatch",
5
+ "homepage": "https://github.com/google/highway",
6
+ "license": "Apache-2.0",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ }
12
+ ]
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-feature-example.patch ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
2
+ index dd3a313..8c69d3a 100644
3
+ --- a/examples/CMakeLists.txt
4
+ +++ b/examples/CMakeLists.txt
5
+ @@ -19,16 +19,25 @@ if (LIBEV)
6
+ TARGET_LINK_LIBRARIES(example-libev hiredis ev)
7
+ ENDIF()
8
+
9
+ -FIND_PATH(LIBEVENT event.h)
10
+ -if (LIBEVENT)
11
+ +FIND_PACKAGE(Libevent CONFIG REQUIRED)
12
+ +FIND_PATH(LIBEVENT_INCLUDES evutil.h)
13
+ +if (UNIX)
14
+ ADD_EXECUTABLE(example-libevent example-libevent)
15
+ - TARGET_LINK_LIBRARIES(example-libevent hiredis event)
16
+ + TARGET_LINK_LIBRARIES(example-libevent hiredis ${LIBEVENT_LIBRARIES})
17
+ + TARGET_INCLUDE_DIRECTORIES(example-libevent PRIVATE ${LIBEVENT_INCLUDES})
18
+ ENDIF()
19
+
20
+ +FIND_LIBRARY(UV_LIBRARY libuv)
21
+ FIND_PATH(LIBUV uv.h)
22
+ IF (LIBUV)
23
+ ADD_EXECUTABLE(example-libuv example-libuv.c)
24
+ - TARGET_LINK_LIBRARIES(example-libuv hiredis uv)
25
+ + if(WIN32)
26
+ + set(LIB_LISTS Iphlpapi.lib Psapi.lib Userenv.lib)
27
+ + else()
28
+ + set(LIB_LISTS)
29
+ + endif()
30
+ + TARGET_LINK_LIBRARIES(example-libuv hiredis ${UV_LIBRARY} ${LIB_LISTS})
31
+ + TARGET_INCLUDE_DIRECTORIES(example-libuv PRIVATE ${LIBUV})
32
+ ENDIF()
33
+
34
+ IF (APPLE)
35
+ @@ -38,12 +52,24 @@ IF (APPLE)
36
+ ENDIF()
37
+
38
+ IF (ENABLE_SSL)
39
+ + FIND_PACKAGE(OpenSSL REQUIRED)
40
+ + IF (WIN32)
41
+ + FIND_PACKAGE(pthreads REQUIRED)
42
+ + SET(THREADS_LIBS PThreads4W::PThreads4W)
43
+ + ELSE()
44
+ + FIND_PACKAGE(Threads)
45
+ + SET(THREADS_LIBS ${CMAKE_THREAD_LIBS_INIT})
46
+ + ENDIF()
47
+ ADD_EXECUTABLE(example-ssl example-ssl.c)
48
+ - TARGET_LINK_LIBRARIES(example-ssl hiredis hiredis_ssl)
49
+ + if(WIN32)
50
+ + TARGET_LINK_LIBRARIES(example-ssl hiredis hiredis_ssl OpenSSL::SSL OpenSSL::Crypto ${THREADS_LIBS} crypt32.lib)
51
+ + else()
52
+ + TARGET_LINK_LIBRARIES(example-ssl hiredis hiredis_ssl OpenSSL::SSL OpenSSL::Crypto ${THREADS_LIBS})
53
+ + endif()
54
+ ENDIF()
55
+
56
+ ADD_EXECUTABLE(example example.c)
57
+ -TARGET_LINK_LIBRARIES(example hiredis)
58
+ +TARGET_LINK_LIBRARIES(example hiredis ${LIBEVENT_LIBRARIES})
59
+
60
+ ADD_EXECUTABLE(example-push example-push.c)
61
+ TARGET_LINK_LIBRARIES(example-push hiredis)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-include-path.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 7eafeb8..623c586 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -49,7 +49,7 @@ IF(WIN32 OR MINGW)
6
+ TARGET_LINK_LIBRARIES(hiredis PRIVATE ws2_32)
7
+ ENDIF()
8
+
9
+ -TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:.> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
10
+ +TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
11
+
12
+ CONFIGURE_FILE(hiredis.pc.in hiredis.pc @ONLY)
13
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-ssize_t.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/hiredis.h b/hiredis.h
2
+ --- a/hiredis.h
3
+ +++ b/hiredis.h
4
+ @@ -40,6 +40,7 @@
5
+ #else
6
+ struct timeval; /* forward declaration */
7
+ typedef long long ssize_t;
8
+ +#define _SSIZE_T_ /* for compatibility with libuv */
9
+ #endif
10
+ #include <stdint.h> /* uintXX_t, etc */
11
+ #include "sds.h" /* for sds */
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/fix-timeval.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/async_private.h b/async_private.h
2
+ index d0133ae..7760b60 100644
3
+ --- a/async_private.h
4
+ +++ b/async_private.h
5
+ @@ -32,6 +32,11 @@
6
+ #ifndef __HIREDIS_ASYNC_PRIVATE_H
7
+ #define __HIREDIS_ASYNC_PRIVATE_H
8
+
9
+ +#ifdef _WIN32
10
+ +#include <time.h>
11
+ +#include <windows.h>
12
+ +#endif
13
+ +
14
+ #define _EL_ADD_READ(ctx) \
15
+ do { \
16
+ refreshTimeout(ctx); \
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/portfile.cmake ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL "static")
2
+ set(HIREDIS_PATCHES support-static.patch)
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO redis/hiredis
8
+ REF v1.0.2
9
+ SHA512 86497a1c21869bbe535378885eee6dbd594ef96325966511a3513f81e501af0f5ac7fed864f3230372f3ac7a23c05bad477fa5aa90b9747c9fb1408028174f9b
10
+ HEAD_REF master
11
+ PATCHES
12
+ fix-feature-example.patch
13
+ fix-timeval.patch
14
+ fix-include-path.patch
15
+ fix-ssize_t.patch
16
+ ${HIREDIS_PATCHES}
17
+ )
18
+
19
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
20
+ FEATURES
21
+ ssl ENABLE_SSL
22
+ example ENABLE_EXAMPLES
23
+ )
24
+
25
+ vcpkg_cmake_configure(
26
+ SOURCE_PATH "${SOURCE_PATH}"
27
+ OPTIONS ${FEATURE_OPTIONS}
28
+ )
29
+
30
+ vcpkg_cmake_install()
31
+
32
+ vcpkg_copy_pdbs()
33
+
34
+ vcpkg_fixup_pkgconfig()
35
+
36
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
37
+ vcpkg_cmake_config_fixup()
38
+ if("ssl" IN_LIST FEATURES)
39
+ vcpkg_cmake_config_fixup(PACKAGE_NAME hiredis_ssl CONFIG_PATH share/hiredis_ssl)
40
+ endif()
41
+
42
+ # Handle copyright
43
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/support-static.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 9e78894..87aba5b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -22,4 +22,4 @@ PROJECT(hiredis VERSION "${VERSION}")
6
+ ENDIF()
7
+
8
+ -ADD_LIBRARY(hiredis SHARED ${hiredis_sources})
9
+ +ADD_LIBRARY(hiredis ${hiredis_sources})
10
+
11
+ @@ -60,5 +60,5 @@ IF(ENABLE_SSL)
12
+ SET(hiredis_ssl_sources
13
+ ssl.c)
14
+ - ADD_LIBRARY(hiredis_ssl SHARED
15
+ + ADD_LIBRARY(hiredis_ssl
16
+ ${hiredis_ssl_sources})
17
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hiredis/vcpkg.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hiredis",
3
+ "version": "1.0.2",
4
+ "port-version": 3,
5
+ "description": "Hiredis is a minimalistic C client library for the Redis database.",
6
+ "homepage": "https://github.com/redis/hiredis",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ],
17
+ "features": {
18
+ "example": {
19
+ "description": "Build example",
20
+ "dependencies": [
21
+ "libevent",
22
+ "libuv",
23
+ "pthread"
24
+ ]
25
+ },
26
+ "ssl": {
27
+ "description": "Build hiredis_ssl for SSL support",
28
+ "dependencies": [
29
+ "openssl"
30
+ ]
31
+ }
32
+ }
33
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hps/portfile.cmake ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO jl2922/hps
4
+ REF 8d1403697a2fad6ddf02c7afb190596ca68b2105
5
+ SHA512 e0c22de8a684891a5b6faa968c72782ffb44c5359ce53a4cbd74abf5e1b6d5d1ff30ce96a4fc4c38fc7a0222d6874eab47b76c5a87fce1c43285a915d0f55814
6
+ HEAD_REF master
7
+ )
8
+
9
+ # Install header files
10
+ file(INSTALL
11
+ DIRECTORY
12
+ "${SOURCE_PATH}/src/"
13
+ DESTINATION
14
+ "${CURRENT_PACKAGES_DIR}/include/${PORT}"
15
+ FILES_MATCHING PATTERN "*.h" )
16
+
17
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/${PORT}/benchmark")
18
+
19
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
20
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hps/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package hps is header only and can be used from CMake via:
2
+
3
+ find_path(HPS_INCLUDE_DIRS "hps/hps.h")
4
+ target_include_directories(main PRIVATE ${HPS_INCLUDE_DIRS})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hps/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "hps",
3
+ "version-date": "2022-01-18",
4
+ "description": "A C++11 High Performance Serialization Library.",
5
+ "homepage": "https://github.com/jl2922/hps",
6
+ "license": "MIT"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hpx/fix-cmakecache-paths.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/HPX_ForwardCacheVariables.cmake b/cmake/HPX_ForwardCacheVariables.cmake
2
+ index 7c434085a76..34cc47c7750 100644
3
+ --- a/cmake/HPX_ForwardCacheVariables.cmake
4
+ +++ b/cmake/HPX_ForwardCacheVariables.cmake
5
+ @@ -23,6 +23,17 @@ set(_cache_var_file_template
6
+ )
7
+ set(_cache_variables)
8
+ foreach(_var IN LISTS cache_vars)
9
+ + if(HPX_WITH_VCPKG)
10
+ + # avoid writing directory names into cache file
11
+ + string(FIND ${_var} "_DIR" _pos)
12
+ + if(NOT ${_pos} EQUAL -1)
13
+ + continue()
14
+ + endif()
15
+ + string(FIND ${_var} "_PATH" _pos)
16
+ + if(NOT ${_pos} EQUAL -1)
17
+ + continue()
18
+ + endif()
19
+ + endif()
20
+ set(_cache_variables "${_cache_variables}set(${_var} ${${_var}})\n")
21
+ endforeach()
22
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/hpx/fix-dependency-hwloc.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/FindHwloc.cmake b/cmake/FindHwloc.cmake
2
+ index cdede78..6967abf 100644
3
+ --- a/cmake/FindHwloc.cmake
4
+ +++ b/cmake/FindHwloc.cmake
5
+ @@ -71,6 +71,9 @@ if(NOT TARGET Hwloc::hwloc)
6
+ add_library(Hwloc::hwloc INTERFACE IMPORTED)
7
+ target_include_directories(Hwloc::hwloc SYSTEM INTERFACE ${HWLOC_INCLUDE_DIR})
8
+ target_link_libraries(Hwloc::hwloc INTERFACE ${HWLOC_LIBRARIES})
9
+ -
10
+ + if(APPLE)
11
+ + target_link_libraries(Hwloc::hwloc INTERFACE "-framework CoreFoundation" "-framework IOKit")
12
+ + endif()
13
+ +
14
+ mark_as_advanced(HWLOC_ROOT HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
15
+ endif()