Techt3o commited on
Commit
590af55
·
verified ·
1 Parent(s): 489490b

763103167dbb8a6010b0d43ab5609abc5d697085d7750588b4935e75e97afcbc

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzfse/disable-cli-option.patch +51 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzfse/portfile.cmake +36 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzfse/vcpkg.json +8 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzo/always_install_pc.patch +13 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzo/portfile.cmake +46 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzo/vcpkg.json +7 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzokay/portfile.cmake +23 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzokay/vcpkg.json +6 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-enum/portfile.cmake +27 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-enum/vcpkg.json +7 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-get/portfile.cmake +1 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-get/vcpkg.json +10 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-extras/portfile.cmake +73 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-extras/vcpkg.json +32 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-integration/portfile.cmake +65 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-integration/vcpkg.json +39 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-plugins/002-fix-stb-conflict.patch +13 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-plugins/portfile.cmake +134 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-plugins/vcpkg.json +494 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/002-sdl-includes.patch +43 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/003-fix-FindGLFW.patch +16 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/magnumdeploy.ps1 +40 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/portfile.cmake +173 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/vcpkg.json +533 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mailio/portfile.cmake +23 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mailio/vcpkg.json +25 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-cpp/portfile.cmake +15 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-cpp/vcpkg.json +11 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-vt-cpp/portfile.cmake +15 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-vt-cpp/vcpkg.json +9 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geometry/portfile.cmake +15 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geometry/vcpkg.json +6 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-polylabel/portfile.cmake +15 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-polylabel/vcpkg.json +10 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-variant/portfile.cmake +15 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-variant/vcpkg.json +6 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-wagyu/portfile.cmake +15 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-wagyu/vcpkg.json +6 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapnik/portfile.cmake +111 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapnik/usage +7 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapnik/vcpkg.json +228 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/marble/portfile.cmake +46 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/marble/qtfix.patch +97 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/marble/vcpkg.json +22 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/marl/portfile.cmake +34 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/marl/vcpkg.json +18 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathc/CMakeLists.txt +24 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathc/portfile.cmake +25 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathc/vcpkg.json +7 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathgl/fix_arma_sprintf.patch +14 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzfse/disable-cli-option.patch ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 336a68d..96a2a74 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -67,18 +67,20 @@ add_library(lzfse
6
+ src/lzvn_encode_base.c)
7
+ lzfse_add_compiler_flags(lzfse -Wall -Wno-unknown-pragmas -Wno-unused-variable)
8
+
9
+ -add_executable(lzfse_cli
10
+ - src/lzfse_main.c)
11
+ -target_link_libraries(lzfse_cli lzfse)
12
+ -set_target_properties(lzfse_cli PROPERTIES OUTPUT_NAME lzfse)
13
+ -lzfse_add_compiler_flags(lzfse_cli -Wall -Wno-unknown-pragmas -Wno-unused-variable)
14
+ -
15
+ -if(CMAKE_VERSION VERSION_LESS 3.1 OR CMAKE_C_COMPLIER_ID STREQUAL "Intel")
16
+ - lzfse_add_compiler_flags(lzfse -std=c99)
17
+ - lzfse_add_compiler_flags(lzfse_cli -std=c99)
18
+ -else()
19
+ - set_property(TARGET lzfse PROPERTY C_STANDARD 99)
20
+ - set_property(TARGET lzfse_cli PROPERTY C_STANDARD 99)
21
+ +if(NOT LZFSE_DISABLE_CLI)
22
+ + add_executable(lzfse_cli
23
+ + src/lzfse_main.c)
24
+ + target_link_libraries(lzfse_cli lzfse)
25
+ + set_target_properties(lzfse_cli PROPERTIES OUTPUT_NAME lzfse)
26
+ + lzfse_add_compiler_flags(lzfse_cli -Wall -Wno-unknown-pragmas -Wno-unused-variable)
27
+ +
28
+ + if(CMAKE_VERSION VERSION_LESS 3.1 OR CMAKE_C_COMPLIER_ID STREQUAL "Intel")
29
+ + lzfse_add_compiler_flags(lzfse -std=c99)
30
+ + lzfse_add_compiler_flags(lzfse_cli -std=c99)
31
+ + else()
32
+ + set_property(TARGET lzfse PROPERTY C_STANDARD 99)
33
+ + set_property(TARGET lzfse_cli PROPERTY C_STANDARD 99)
34
+ + endif()
35
+ endif()
36
+
37
+ set_target_properties(lzfse PROPERTIES
38
+ @@ -95,7 +97,12 @@ endif()
39
+ if(NOT LZFSE_BUNDLE_MODE)
40
+ include(GNUInstallDirs)
41
+
42
+ - install(TARGETS lzfse lzfse_cli
43
+ + if(NOT LZFSE_DISABLE_CLI)
44
+ + install(TARGETS lzfse_cli
45
+ + RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
46
+ + endif()
47
+ +
48
+ + install(TARGETS lzfse
49
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
50
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
51
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzfse/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
2
+ message(FATAL_ERROR "ARM build not supported")
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO lzfse/lzfse
8
+ REF lzfse-1.0
9
+ SHA512 9d7ca44e6d3d2bdf4b82b0eb66c14922369b8b6fe2cf891187a77c6708b8d26c2c1b2ccddec6059e85dbbbb37c497419549f02812b5f34d06238ac246a8cf912
10
+ HEAD_REF master
11
+ PATCHES
12
+ disable-cli-option.patch
13
+ )
14
+
15
+ vcpkg_configure_cmake(
16
+ SOURCE_PATH ${SOURCE_PATH}
17
+ PREFER_NINJA
18
+ OPTIONS
19
+ -DLZFSE_DISABLE_TESTS=ON
20
+ -DLZFSE_DISABLE_CLI=ON)
21
+
22
+ vcpkg_install_cmake()
23
+ vcpkg_copy_pdbs()
24
+
25
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
26
+
27
+ file(READ ${CURRENT_PACKAGES_DIR}/include/lzfse.h LZFSE_H)
28
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
29
+ string(REPLACE "defined(LZFSE_DLL)" "1" LZFSE_H "${LZFSE_H}")
30
+ else()
31
+ string(REPLACE "defined(LZFSE_DLL)" "0" LZFSE_H "${LZFSE_H}")
32
+ endif()
33
+ file(WRITE ${CURRENT_PACKAGES_DIR}/include/lzfse.h "${LZFSE_H}")
34
+
35
+ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/lzfse)
36
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/lzfse/LICENSE ${CURRENT_PACKAGES_DIR}/share/lzfse/copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzfse/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "lzfse",
3
+ "version-string": "1.0",
4
+ "port-version": 3,
5
+ "description": "Lempel-Ziv style data compressor using Finite State Entropy coding.",
6
+ "homepage": "https://github.com/lzfse/lzfse",
7
+ "supports": "!arm"
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzo/always_install_pc.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 98c0a1ad0..85690209c 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -290,7 +290,7 @@ if(1)
6
+ install(TARGETS ${f} DESTINATION "${CMAKE_INSTALL_FULL_LIBEXECDIR}/lzo/examples")
7
+ endif()
8
+
9
+ -if(PKG_CONFIG_FOUND)
10
+ +if(1)
11
+ configure_file(lzo2.pc.cmakein lzo2.pc @ONLY)
12
+ #if(EXISTS "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
13
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lzo2.pc" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzo/portfile.cmake ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_download_distfile(ARCHIVE
2
+ URLS "http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz"
3
+ FILENAME "lzo-2.10.tar.gz"
4
+ SHA512 a3dae5e4a6b93b1f5bf7435e8ab114a9be57252e9efc5dd444947d7a2d031b0819f34bcaeb35f60b5629a01b1238d738735a64db8f672be9690d3c80094511a4
5
+ )
6
+
7
+ vcpkg_extract_source_archive_ex(
8
+ OUT_SOURCE_PATH SOURCE_PATH
9
+ ARCHIVE ${ARCHIVE}
10
+ PATCHES always_install_pc.patch
11
+ )
12
+
13
+ set(LZO_STATIC OFF)
14
+ set(LZO_SHARED OFF)
15
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
16
+ set(LZO_STATIC ON)
17
+ else()
18
+ set(LZO_SHARED ON)
19
+ endif()
20
+
21
+ vcpkg_configure_cmake(
22
+ SOURCE_PATH ${SOURCE_PATH}
23
+ PREFER_NINJA
24
+ OPTIONS
25
+ -DENABLE_STATIC=${LZO_STATIC}
26
+ -DENABLE_SHARED=${LZO_SHARED}
27
+ )
28
+
29
+ vcpkg_install_cmake()
30
+ vcpkg_fixup_pkgconfig()
31
+ vcpkg_copy_pdbs()
32
+
33
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/doc)
34
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/libexec)
35
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/libexec)
36
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
37
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
38
+
39
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
40
+ file(READ ${CURRENT_PACKAGES_DIR}/include/lzo/lzoconf.h LZO_CONFIG)
41
+ string(REPLACE "# define __LZO_EXPORT1 /*empty*/"
42
+ "# define __LZO_EXPORT1 __declspec(dllimport)" LZO_CONFIG "${LZO_CONFIG}")
43
+ file(WRITE ${CURRENT_PACKAGES_DIR}/include/lzo/lzoconf.h "${LZO_CONFIG}")
44
+ endif()
45
+
46
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzo/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "lzo",
3
+ "version-string": "2.10",
4
+ "port-version": 7,
5
+ "description": "Lossless data compression library",
6
+ "homepage": "https://www.oberhumer.com/opensource/lzo/"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzokay/portfile.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO jackoalan/lzokay
6
+ REF 546a9695271e8a8b4711383f828172754fd825f2
7
+ SHA512 b4e96183ea52dc5ba0d88b4b9b27baa2c3e2c540b1bfd50cf7a3c2569337fbe9d73dd9939cb456d5f7459df8e10d84677d40ee33f7d524f0f5f8a723d7a70583
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+ vcpkg_copy_pdbs()
18
+
19
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
20
+
21
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
22
+
23
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lzokay/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "lzokay",
3
+ "version-string": "2020-07-30",
4
+ "description": "lzokay – MIT licensed C++ implementation of LZO compression/decompression algorithm",
5
+ "homepage": "https://github.com/jackoalan/lzokay"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-enum/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO Neargye/magic_enum
6
+ REF v0.7.3
7
+ SHA512 7645ef56bbe262ba801c6f5ffb7baf997869de6422a239ef2000d7ff6f4f6d00c34360543c60aa91a02433311b4b996bba410e4f04f96f185a6276ad9e6bb0a8
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ OPTIONS
15
+ -DMAGIC_ENUM_OPT_BUILD_EXAMPLES=OFF
16
+ -DMAGIC_ENUM_OPT_BUILD_TESTS=OFF
17
+ -DMAGIC_ENUM_OPT_INSTALL=ON
18
+ )
19
+
20
+ vcpkg_install_cmake()
21
+
22
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/magic_enum TARGET_PATH share/magic_enum)
23
+
24
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
25
+
26
+ # Handle copyright
27
+ configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-enum/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "magic-enum",
3
+ "version-string": "0.7.3",
4
+ "port-version": 1,
5
+ "description": "Header-only C++17 library provides static reflection for enums, work with any enum type without any macro or boilerplate code.",
6
+ "homepage": "https://github.com/Neargye/magic_enum"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-get/portfile.cmake ADDED
@@ -0,0 +1 @@
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magic-get/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "magic-get",
3
+ "version-string": "2019-09-02",
4
+ "port-version": 2,
5
+ "description": "Deprecated boost-pfr port.",
6
+ "homepage": "https://github.com/apolukhin/magic_get",
7
+ "dependencies": [
8
+ "boost-pfr"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-extras/portfile.cmake ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO mosra/magnum-extras
4
+ REF v2020.06
5
+ SHA512 7419af84a6de72f666a9bd12a325c4b40f9e2a25fec3d0b22c348faab0a402b62fa782231b9b12180d84f4ab2508b02df25a97713948bdd2f21c9e8cb831fa25
6
+ HEAD_REF master
7
+ )
8
+
9
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
10
+
11
+ # Handle features
12
+ set(_COMPONENT_FLAGS "")
13
+ foreach(_feature IN LISTS ALL_FEATURES)
14
+ # Uppercase the feature name and replace "-" with "_"
15
+ string(TOUPPER "${_feature}" _FEATURE)
16
+ string(REPLACE "-" "_" _FEATURE "${_FEATURE}")
17
+
18
+ # Turn "-DWITH_*=" ON or OFF depending on whether the feature
19
+ # is in the list.
20
+ if(_feature IN_LIST FEATURES)
21
+ list(APPEND _COMPONENT_FLAGS "-DWITH_${_FEATURE}=ON")
22
+ else()
23
+ list(APPEND _COMPONENT_FLAGS "-DWITH_${_FEATURE}=OFF")
24
+ endif()
25
+ endforeach()
26
+
27
+ vcpkg_configure_cmake(
28
+ SOURCE_PATH ${SOURCE_PATH}
29
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
30
+ OPTIONS
31
+ ${_COMPONENT_FLAGS}
32
+ -DBUILD_STATIC=${BUILD_STATIC}
33
+ -DMAGNUM_PLUGINS_DEBUG_DIR=${CURRENT_INSTALLED_DIR}/debug/bin/magnum-d
34
+ -DMAGNUM_PLUGINS_RELEASE_DIR=${CURRENT_INSTALLED_DIR}/bin/magnum
35
+ )
36
+
37
+ vcpkg_install_cmake()
38
+
39
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/MagnumExtras TARGET_PATH share/magnumextras)
40
+
41
+ # Messages to the user
42
+ if("ui" IN_LIST FEATURES)
43
+ message(WARNING "It is recommended to install one of magnum-plugins[freetypefont,harfbuzzfont,stbtruetypefont] to have the UI library working out of the box")
44
+ endif()
45
+
46
+ # Debug includes and share are the same as release
47
+ file(REMOVE_RECURSE
48
+ ${CURRENT_PACKAGES_DIR}/debug/include
49
+ ${CURRENT_PACKAGES_DIR}/debug/share
50
+ )
51
+
52
+ # Clean up empty directories
53
+ if("${FEATURES}" STREQUAL "core")
54
+ file(REMOVE_RECURSE
55
+ ${CURRENT_PACKAGES_DIR}/bin
56
+ ${CURRENT_PACKAGES_DIR}/lib
57
+ ${CURRENT_PACKAGES_DIR}/debug
58
+ )
59
+ set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
60
+ endif()
61
+
62
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
63
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
64
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
65
+ endif()
66
+
67
+ # Handle copyright
68
+ file(INSTALL ${SOURCE_PATH}/COPYING
69
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
70
+ RENAME copyright)
71
+
72
+
73
+ vcpkg_copy_pdbs()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-extras/vcpkg.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "magnum-extras",
3
+ "version-string": "2020.06",
4
+ "port-version": 1,
5
+ "description": "Extras for magnum, C++11/C++14 graphics middleware for games and data visualization",
6
+ "homepage": "https://magnum.graphics/",
7
+ "dependencies": [
8
+ {
9
+ "name": "magnum",
10
+ "default-features": false
11
+ }
12
+ ],
13
+ "features": {
14
+ "ui": {
15
+ "description": "Ui library",
16
+ "dependencies": [
17
+ {
18
+ "name": "corrade",
19
+ "features": [
20
+ "interconnect"
21
+ ]
22
+ },
23
+ {
24
+ "name": "magnum",
25
+ "features": [
26
+ "text"
27
+ ]
28
+ }
29
+ ]
30
+ }
31
+ }
32
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-integration/portfile.cmake ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO mosra/magnum-integration
4
+ REF v2020.06
5
+ SHA512 0b615acdb49ed55bd678a5fb019b1a8ccf522084f3114b2b8dd7e121c27d39ae2aab2879a2e2fa8b083163be711a86f64202fcf380413dec0c705fffd7d649c5
6
+ HEAD_REF master
7
+ )
8
+
9
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
10
+
11
+ # Handle features
12
+ set(_COMPONENT_FLAGS "")
13
+ foreach(_feature IN LISTS ALL_FEATURES)
14
+ # Uppercase the feature name and replace "-" with "_"
15
+ string(TOUPPER "${_feature}" _FEATURE)
16
+ string(REPLACE "-" "_" _FEATURE "${_FEATURE}")
17
+
18
+ # Turn "-DWITH_*=" ON or OFF depending on whether the feature
19
+ # is in the list.
20
+ if(_feature IN_LIST FEATURES)
21
+ list(APPEND _COMPONENT_FLAGS "-DWITH_${_FEATURE}=ON")
22
+ else()
23
+ list(APPEND _COMPONENT_FLAGS "-DWITH_${_FEATURE}=OFF")
24
+ endif()
25
+ endforeach()
26
+
27
+ vcpkg_configure_cmake(
28
+ SOURCE_PATH ${SOURCE_PATH}
29
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
30
+ OPTIONS
31
+ ${_COMPONENT_FLAGS}
32
+ -DBUILD_STATIC=${BUILD_STATIC}
33
+ -DMAGNUM_PLUGINS_DEBUG_DIR=${CURRENT_INSTALLED_DIR}/debug/bin/magnum-d
34
+ -DMAGNUM_PLUGINS_RELEASE_DIR=${CURRENT_INSTALLED_DIR}/bin/magnum
35
+ )
36
+
37
+ vcpkg_install_cmake()
38
+
39
+ # Debug includes and share are the same as release
40
+ file(REMOVE_RECURSE
41
+ ${CURRENT_PACKAGES_DIR}/debug/include
42
+ ${CURRENT_PACKAGES_DIR}/debug/share
43
+ )
44
+
45
+ # Clean up empty directories
46
+ if("${FEATURES}" STREQUAL "core")
47
+ file(REMOVE_RECURSE
48
+ ${CURRENT_PACKAGES_DIR}/bin
49
+ ${CURRENT_PACKAGES_DIR}/lib
50
+ ${CURRENT_PACKAGES_DIR}/debug
51
+ )
52
+ set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
53
+ endif()
54
+
55
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
56
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
57
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
58
+ endif()
59
+
60
+ # Handle copyright
61
+ file(INSTALL ${SOURCE_PATH}/COPYING
62
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
63
+ RENAME copyright)
64
+
65
+ vcpkg_copy_pdbs()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-integration/vcpkg.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "magnum-integration",
3
+ "version-string": "2020.06",
4
+ "port-version": 1,
5
+ "description": "Integrations for magnum, C++11/C++14 graphics middleware for games and data visualization",
6
+ "homepage": "https://magnum.graphics/",
7
+ "dependencies": [
8
+ {
9
+ "name": "magnum",
10
+ "default-features": false
11
+ }
12
+ ],
13
+ "features": {
14
+ "bullet": {
15
+ "description": "BulletIntegration library",
16
+ "dependencies": [
17
+ "bullet3"
18
+ ]
19
+ },
20
+ "eigen": {
21
+ "description": "EigenIntegration library",
22
+ "dependencies": [
23
+ "eigen3"
24
+ ]
25
+ },
26
+ "glm": {
27
+ "description": "GlmIntegration library",
28
+ "dependencies": [
29
+ "glm"
30
+ ]
31
+ },
32
+ "imgui": {
33
+ "description": "ImGuiIntegration library",
34
+ "dependencies": [
35
+ "imgui"
36
+ ]
37
+ }
38
+ }
39
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-plugins/002-fix-stb-conflict.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp b/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp
2
+ index c24a968..1a38162 100644
3
+ --- a/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp
4
+ +++ b/src/MagnumPlugins/StbImageImporter/StbImageImporter.cpp
5
+ @@ -45,7 +45,7 @@
6
+ #endif
7
+
8
+ /* Not defining malloc/free, because there's no equivalent for realloc in C++ */
9
+ -#include "stb_image.h"
10
+ +#include "external/stb/stb_image.h"
11
+
12
+ namespace Magnum { namespace Trade {
13
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-plugins/portfile.cmake ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO mosra/magnum-plugins
4
+ REF v2020.06
5
+ SHA512 3c11c2928bfc9d04c1ad64f72b6ffac6cf80a1ef3aacc5d0486b9ad955cf4f6ea6d5dcb3846dc5d73f64ec522a015eafb997f62c79ad7ff91169702341f23af0
6
+ HEAD_REF master
7
+ PATCHES
8
+ 002-fix-stb-conflict.patch
9
+ )
10
+
11
+ if("basisimporter" IN_LIST FEATURES OR "basisimageconverter" IN_LIST FEATURES)
12
+ # Bundle Basis Universal. The repo has big unrequired files in its
13
+ # history, so we're downloading just a snapshot instead of a git clone.
14
+ if(VCPKG_USE_HEAD_VERSION)
15
+ # v1_15_update2
16
+ set(_BASIS_VERSION "v1_15_update2")
17
+ set(_BASIS_SHA512 "a898a057b57ac64f6c0bf5fce0b599e23421ccdd015ea7bb668bce8b9292ef55b098f3d05854a2fb5363959932b75cd0a842664ae7d4f71f3537dc11301c1b32")
18
+ else()
19
+ # A commit that's before the UASTC support (which is not implemented yet)
20
+ vcpkg_download_distfile(
21
+ _BASIS_UNIVERSAL_PATCHES
22
+ URLS "https://github.com/BinomialLLC/basis_universal/commit/e9c55faac7745ebf38d08cd3b4f71aaf542f8191.diff"
23
+ FILENAME "e9c55faac7745ebf38d08cd3b4f71aaf542f8191.patch"
24
+ SHA512 e5dda11de2ba8cfd39728e69c74a7656bb522e509786fe5673c94b26be9bd4bee897510096479ee6323f5276d34cba1c44c60804a515c0b35ff7b6ac9d625b88
25
+ )
26
+ set(_BASIS_VERSION "8565af680d1bd2ad56ab227ca7d96c56dfbe93ed")
27
+ set(_BASIS_SHA512 "65062ab3ba675c46760f56475a7528189ed4097fb9bab8316e25d9e23ffec2a9560eb9a6897468baf2a6ab2bd698b5907283e96deaeaef178085a47f9d371bb2")
28
+ endif()
29
+ vcpkg_download_distfile(
30
+ _BASIS_UNIVERSAL_ARCHIVE
31
+ URLS "https://github.com/BinomialLLC/basis_universal/archive/${_BASIS_VERSION}.tar.gz"
32
+ FILENAME "basis-universal-${_BASIS_VERSION}.tar.gz"
33
+ SHA512 ${_BASIS_SHA512}
34
+ )
35
+ vcpkg_extract_source_archive(
36
+ _BASIS_UNIVERSAL_SOURCE
37
+ ARCHIVE ${_BASIS_UNIVERSAL_ARCHIVE}
38
+ WORKING_DIRECTORY "${SOURCE_PATH}/src/external"
39
+ PATCHES
40
+ ${_BASIS_UNIVERSAL_PATCHES})
41
+ # Remove potentially cached directory which would cause renaming to fail
42
+ file(REMOVE_RECURSE "${SOURCE_PATH}/src/external/basis-universal")
43
+ # Rename the output folder so that magnum auto-detects it
44
+ file(RENAME ${_BASIS_UNIVERSAL_SOURCE} "${SOURCE_PATH}/src/external/basis-universal")
45
+ endif()
46
+
47
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
48
+ set(BUILD_PLUGINS_STATIC 1)
49
+ else()
50
+ set(BUILD_PLUGINS_STATIC 0)
51
+ endif()
52
+
53
+ # Head only features
54
+ set(ALL_SUPPORTED_FEATURES ${ALL_FEATURES})
55
+ if(NOT VCPKG_USE_HEAD_VERSION)
56
+ list(REMOVE_ITEM ALL_SUPPORTED_FEATURES cgltfimporter glslangshaderconverter
57
+ ktximageconverter ktximporter openexrimageconverter openexrimporter
58
+ spirvtoolsshaderconverter stbdxtimageconverter)
59
+ message(WARNING "Features cgltfimporter, glslangshaderconverter, ktximageconverter, ktximporter, openexrimageconverter, openexrimporter, spirvtoolsshaderconverter and stbdxtimageconverter are not available when building non-head version.")
60
+ endif()
61
+
62
+ set(_COMPONENTS "")
63
+ # Generate cmake parameters from feature names
64
+ foreach(_feature IN LISTS ALL_SUPPORTED_FEATURES)
65
+ # Uppercase the feature name and replace "-" with "_"
66
+ string(TOUPPER "${_feature}" _FEATURE)
67
+ string(REPLACE "-" "_" _FEATURE "${_FEATURE}")
68
+
69
+ # Final feature is empty, ignore it
70
+ if(_feature)
71
+ list(APPEND _COMPONENTS ${_feature} WITH_${_FEATURE})
72
+ endif()
73
+ endforeach()
74
+
75
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES ${_COMPONENTS})
76
+
77
+ vcpkg_cmake_configure(
78
+ SOURCE_PATH ${SOURCE_PATH}
79
+ OPTIONS
80
+ ${FEATURE_OPTIONS}
81
+ -DBUILD_STATIC=${BUILD_PLUGINS_STATIC}
82
+ -DBUILD_PLUGINS_STATIC=${BUILD_PLUGINS_STATIC}
83
+ -DMAGNUM_PLUGINS_DEBUG_DIR=${CURRENT_INSTALLED_DIR}/debug/bin/magnum-d
84
+ -DMAGNUM_PLUGINS_RELEASE_DIR=${CURRENT_INSTALLED_DIR}/bin/magnum
85
+ )
86
+
87
+ vcpkg_cmake_install()
88
+
89
+ # Debug includes and share are the same as release
90
+ file(REMOVE_RECURSE
91
+ ${CURRENT_PACKAGES_DIR}/debug/include
92
+ ${CURRENT_PACKAGES_DIR}/debug/share)
93
+
94
+ # Clean up empty directories, if not building anything.
95
+ # FEATURES may only contain "core", but that does not build anything.
96
+ if(NOT FEATURES OR FEATURES STREQUAL "core")
97
+ file(REMOVE_RECURSE
98
+ ${CURRENT_PACKAGES_DIR}/bin
99
+ ${CURRENT_PACKAGES_DIR}/lib
100
+ ${CURRENT_PACKAGES_DIR}/debug)
101
+ set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
102
+ endif()
103
+
104
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
105
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
106
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
107
+ # move plugin libs to conventional place
108
+ file(GLOB_RECURSE LIB_TO_MOVE ${CURRENT_PACKAGES_DIR}/lib/magnum/*)
109
+ file(COPY ${LIB_TO_MOVE} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
110
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/magnum)
111
+ file(GLOB_RECURSE LIB_TO_MOVE_DBG ${CURRENT_PACKAGES_DIR}/debug/lib/magnum/*)
112
+ file(COPY ${LIB_TO_MOVE_DBG} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
113
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/magnum)
114
+ else()
115
+ set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
116
+ # On windows, plugins are "Modules" that cannot be linked as shared
117
+ # libraries, but are meant to be loaded at runtime.
118
+ # While this is handled adequately through the CMake project, the auto-magic
119
+ # linking with visual studio might try to link the import libs anyway.
120
+ #
121
+ # We delete the import libraries here to avoid the auto-magic linking
122
+ # for plugins which are loaded at runtime.
123
+ if(WIN32)
124
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/magnum)
125
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/magnum-d)
126
+ endif()
127
+ endif()
128
+
129
+ # Handle copyright
130
+ file(INSTALL ${SOURCE_PATH}/COPYING
131
+ DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}
132
+ RENAME copyright)
133
+
134
+ vcpkg_copy_pdbs()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum-plugins/vcpkg.json ADDED
@@ -0,0 +1,494 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "magnum-plugins",
3
+ "version-string": "2020.06",
4
+ "port-version": 8,
5
+ "description": "Plugins for magnum, C++11/C++14 graphics middleware for games and data visualization",
6
+ "homepage": "https://magnum.graphics/",
7
+ "dependencies": [
8
+ {
9
+ "name": "magnum",
10
+ "default-features": false
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake",
14
+ "host": true
15
+ }
16
+ ],
17
+ "default-features": [
18
+ "cgltfimporter",
19
+ "ddsimporter",
20
+ "icoimporter",
21
+ "ktximageconverter",
22
+ "ktximporter",
23
+ "miniexrimageconverter",
24
+ "opengeximporter",
25
+ "stanfordimporter",
26
+ "stanfordsceneconverter",
27
+ "stbimageconverter",
28
+ "stbimageimporter",
29
+ "stlimporter"
30
+ ],
31
+ "features": {
32
+ "assimpimporter": {
33
+ "description": "AssimpImporter plugin",
34
+ "dependencies": [
35
+ "assimp",
36
+ {
37
+ "name": "magnum",
38
+ "default-features": false,
39
+ "features": [
40
+ "anyimageimporter"
41
+ ]
42
+ },
43
+ {
44
+ "name": "magnum",
45
+ "default-features": false,
46
+ "features": [
47
+ "trade"
48
+ ]
49
+ }
50
+ ]
51
+ },
52
+ "basisimageconverter": {
53
+ "description": "BasisImageConverter plugin",
54
+ "dependencies": [
55
+ {
56
+ "name": "magnum",
57
+ "default-features": false,
58
+ "features": [
59
+ "trade"
60
+ ]
61
+ },
62
+ "zstd"
63
+ ]
64
+ },
65
+ "basisimporter": {
66
+ "description": "BasisImporter plugin",
67
+ "dependencies": [
68
+ {
69
+ "name": "magnum",
70
+ "default-features": false,
71
+ "features": [
72
+ "trade"
73
+ ]
74
+ },
75
+ "zstd"
76
+ ]
77
+ },
78
+ "cgltfimporter": {
79
+ "description": "CgltfImporter plugin",
80
+ "dependencies": [
81
+ {
82
+ "name": "magnum",
83
+ "default-features": false,
84
+ "features": [
85
+ "anyimageimporter"
86
+ ]
87
+ },
88
+ {
89
+ "name": "magnum",
90
+ "default-features": false,
91
+ "features": [
92
+ "trade"
93
+ ]
94
+ }
95
+ ]
96
+ },
97
+ "ddsimporter": {
98
+ "description": "DdsImporter plugin",
99
+ "dependencies": [
100
+ {
101
+ "name": "magnum",
102
+ "default-features": false,
103
+ "features": [
104
+ "trade"
105
+ ]
106
+ }
107
+ ]
108
+ },
109
+ "devilimageimporter": {
110
+ "description": "DevIlImageImporter plugin",
111
+ "dependencies": [
112
+ "devil",
113
+ {
114
+ "name": "magnum",
115
+ "default-features": false,
116
+ "features": [
117
+ "trade"
118
+ ]
119
+ }
120
+ ]
121
+ },
122
+ "drflacaudioimporter": {
123
+ "description": "DrFlacAudioImporter plugin",
124
+ "dependencies": [
125
+ {
126
+ "name": "magnum",
127
+ "default-features": false,
128
+ "features": [
129
+ "audio"
130
+ ]
131
+ }
132
+ ]
133
+ },
134
+ "drmp3audioimporter": {
135
+ "description": "DrMp3AudioImporter plugin",
136
+ "dependencies": [
137
+ {
138
+ "name": "magnum",
139
+ "default-features": false,
140
+ "features": [
141
+ "audio"
142
+ ]
143
+ }
144
+ ]
145
+ },
146
+ "drwavaudioimporter": {
147
+ "description": "DrWavAudioImporter plugin",
148
+ "dependencies": [
149
+ {
150
+ "name": "magnum",
151
+ "default-features": false,
152
+ "features": [
153
+ "audio"
154
+ ]
155
+ }
156
+ ]
157
+ },
158
+ "freetypefont": {
159
+ "description": "FreeTypeFont plugin",
160
+ "dependencies": [
161
+ "freetype",
162
+ {
163
+ "name": "magnum",
164
+ "default-features": false,
165
+ "features": [
166
+ "text"
167
+ ]
168
+ }
169
+ ]
170
+ },
171
+ "glslangshaderconverter": {
172
+ "description": "GlslangShaderConverter plugin",
173
+ "dependencies": [
174
+ "glslang",
175
+ {
176
+ "name": "magnum",
177
+ "default-features": false,
178
+ "features": [
179
+ "shadertools"
180
+ ]
181
+ }
182
+ ]
183
+ },
184
+ "harfbuzzfont": {
185
+ "description": "HarfBuzzFont plugin",
186
+ "dependencies": [
187
+ "harfbuzz",
188
+ {
189
+ "name": "magnum-plugins",
190
+ "default-features": false,
191
+ "features": [
192
+ "freetypefont"
193
+ ]
194
+ }
195
+ ]
196
+ },
197
+ "icoimporter": {
198
+ "description": "IcoImporter plugin",
199
+ "dependencies": [
200
+ {
201
+ "name": "magnum",
202
+ "default-features": false,
203
+ "features": [
204
+ "trade"
205
+ ]
206
+ }
207
+ ]
208
+ },
209
+ "jpegimageconverter": {
210
+ "description": "JpegImageConverter plugin",
211
+ "dependencies": [
212
+ "libjpeg-turbo",
213
+ {
214
+ "name": "magnum",
215
+ "default-features": false,
216
+ "features": [
217
+ "trade"
218
+ ]
219
+ }
220
+ ]
221
+ },
222
+ "jpegimporter": {
223
+ "description": "JpegImporter plugin",
224
+ "dependencies": [
225
+ "libjpeg-turbo",
226
+ {
227
+ "name": "magnum",
228
+ "default-features": false,
229
+ "features": [
230
+ "trade"
231
+ ]
232
+ }
233
+ ]
234
+ },
235
+ "ktximageconverter": {
236
+ "description": "KtxImageConverter plugin",
237
+ "dependencies": [
238
+ {
239
+ "name": "magnum",
240
+ "default-features": false,
241
+ "features": [
242
+ "trade"
243
+ ]
244
+ }
245
+ ]
246
+ },
247
+ "ktximporter": {
248
+ "description": "KtxImporter plugin",
249
+ "dependencies": [
250
+ {
251
+ "name": "magnum",
252
+ "default-features": false,
253
+ "features": [
254
+ "trade"
255
+ ]
256
+ }
257
+ ]
258
+ },
259
+ "meshoptimizersceneconverter": {
260
+ "description": "MeshOptimizerSceneConverter plugin",
261
+ "dependencies": [
262
+ {
263
+ "name": "magnum",
264
+ "default-features": false,
265
+ "features": [
266
+ "trade"
267
+ ]
268
+ },
269
+ "meshoptimizer"
270
+ ]
271
+ },
272
+ "miniexrimageconverter": {
273
+ "description": "MiniExrImageConverter plugin",
274
+ "dependencies": [
275
+ {
276
+ "name": "magnum",
277
+ "default-features": false,
278
+ "features": [
279
+ "trade"
280
+ ]
281
+ }
282
+ ]
283
+ },
284
+ "openddl": {
285
+ "description": "OpenDdl library"
286
+ },
287
+ "openexrimageconverter": {
288
+ "description": "OpenExrImageConverter plugin",
289
+ "dependencies": [
290
+ {
291
+ "name": "magnum",
292
+ "default-features": false,
293
+ "features": [
294
+ "trade"
295
+ ]
296
+ },
297
+ "openexr"
298
+ ]
299
+ },
300
+ "openexrimporter": {
301
+ "description": "OpenExrImporter plugin",
302
+ "dependencies": [
303
+ {
304
+ "name": "magnum",
305
+ "default-features": false,
306
+ "features": [
307
+ "trade"
308
+ ]
309
+ },
310
+ "openexr"
311
+ ]
312
+ },
313
+ "opengeximporter": {
314
+ "description": "OpenGexImporter plugin",
315
+ "dependencies": [
316
+ {
317
+ "name": "magnum",
318
+ "default-features": false,
319
+ "features": [
320
+ "anyimageimporter"
321
+ ]
322
+ },
323
+ {
324
+ "name": "magnum",
325
+ "default-features": false,
326
+ "features": [
327
+ "trade"
328
+ ]
329
+ },
330
+ {
331
+ "name": "magnum-plugins",
332
+ "default-features": false,
333
+ "features": [
334
+ "openddl"
335
+ ]
336
+ }
337
+ ]
338
+ },
339
+ "pngimageconverter": {
340
+ "description": "PngImageConverter plugin",
341
+ "dependencies": [
342
+ "libpng",
343
+ {
344
+ "name": "magnum",
345
+ "default-features": false,
346
+ "features": [
347
+ "trade"
348
+ ]
349
+ }
350
+ ]
351
+ },
352
+ "pngimporter": {
353
+ "description": "PngImporter plugin",
354
+ "dependencies": [
355
+ "libpng",
356
+ {
357
+ "name": "magnum",
358
+ "default-features": false,
359
+ "features": [
360
+ "trade"
361
+ ]
362
+ }
363
+ ]
364
+ },
365
+ "spirvtoolsshaderconverter": {
366
+ "description": "SpirvToolsShaderConverter plugin",
367
+ "dependencies": [
368
+ {
369
+ "name": "magnum",
370
+ "default-features": false,
371
+ "features": [
372
+ "shadertools"
373
+ ]
374
+ },
375
+ "spirv-tools"
376
+ ]
377
+ },
378
+ "stanfordimporter": {
379
+ "description": "StanfordImporter plugin",
380
+ "dependencies": [
381
+ {
382
+ "name": "magnum",
383
+ "default-features": false,
384
+ "features": [
385
+ "trade"
386
+ ]
387
+ }
388
+ ]
389
+ },
390
+ "stanfordsceneconverter": {
391
+ "description": "StanfordSceneConverter plugin",
392
+ "dependencies": [
393
+ {
394
+ "name": "magnum",
395
+ "default-features": false,
396
+ "features": [
397
+ "trade"
398
+ ]
399
+ }
400
+ ]
401
+ },
402
+ "stbdxtimageconverter": {
403
+ "description": "StbDxtImageConverter plugin",
404
+ "dependencies": [
405
+ {
406
+ "name": "magnum",
407
+ "default-features": false,
408
+ "features": [
409
+ "trade"
410
+ ]
411
+ }
412
+ ]
413
+ },
414
+ "stbimageconverter": {
415
+ "description": "StbImageConverter plugin",
416
+ "dependencies": [
417
+ {
418
+ "name": "magnum",
419
+ "default-features": false,
420
+ "features": [
421
+ "trade"
422
+ ]
423
+ }
424
+ ]
425
+ },
426
+ "stbimageimporter": {
427
+ "description": "StbImageImporter plugin",
428
+ "dependencies": [
429
+ {
430
+ "name": "magnum",
431
+ "default-features": false,
432
+ "features": [
433
+ "trade"
434
+ ]
435
+ }
436
+ ]
437
+ },
438
+ "stbtruetypefont": {
439
+ "description": "StbTrueTypeFont plugin",
440
+ "dependencies": [
441
+ {
442
+ "name": "magnum",
443
+ "default-features": false,
444
+ "features": [
445
+ "text"
446
+ ]
447
+ }
448
+ ]
449
+ },
450
+ "stbvorbisaudioimporter": {
451
+ "description": "StbVorbisAudioImporter plugin",
452
+ "dependencies": [
453
+ {
454
+ "name": "magnum",
455
+ "default-features": false,
456
+ "features": [
457
+ "audio"
458
+ ]
459
+ }
460
+ ]
461
+ },
462
+ "stlimporter": {
463
+ "description": "StlImporter plugin",
464
+ "dependencies": [
465
+ {
466
+ "name": "magnum",
467
+ "default-features": false,
468
+ "features": [
469
+ "trade"
470
+ ]
471
+ }
472
+ ]
473
+ },
474
+ "tinygltfimporter": {
475
+ "description": "TinyGltfImporter plugin",
476
+ "dependencies": [
477
+ {
478
+ "name": "magnum",
479
+ "default-features": false,
480
+ "features": [
481
+ "anyimageimporter"
482
+ ]
483
+ },
484
+ {
485
+ "name": "magnum",
486
+ "default-features": false,
487
+ "features": [
488
+ "trade"
489
+ ]
490
+ }
491
+ ]
492
+ }
493
+ }
494
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/002-sdl-includes.patch ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp
2
+ index 276c7ee55..90c52f3cb 100644
3
+ --- a/src/Magnum/Platform/Sdl2Application.cpp
4
+ +++ b/src/Magnum/Platform/Sdl2Application.cpp
5
+ @@ -34,7 +34,7 @@
6
+ #pragma clang diagnostic push
7
+ #pragma clang diagnostic ignored "-Wpragma-pack"
8
+ #endif
9
+ -#include <SDL.h>
10
+ +#include <SDL2/SDL.h>
11
+ #ifdef CORRADE_TARGET_CLANG_CL
12
+ #pragma clang diagnostic pop
13
+ #endif
14
+ diff --git a/src/Magnum/Platform/Sdl2Application.h b/src/Magnum/Platform/Sdl2Application.h
15
+ index b2426d513..176729fdb 100644
16
+ --- a/src/Magnum/Platform/Sdl2Application.h
17
+ +++ b/src/Magnum/Platform/Sdl2Application.h
18
+ @@ -57,11 +57,11 @@
19
+ #pragma clang diagnostic ignored "-Wpragma-pack"
20
+ #endif
21
+ /* SDL.h includes the world, adding 50k LOC. We don't want that either. */
22
+ -#include <SDL_keycode.h>
23
+ -#include <SDL_mouse.h>
24
+ -#include <SDL_version.h> /* huh, why is this not pulled in implicitly?! */
25
+ -#include <SDL_video.h>
26
+ -#include <SDL_scancode.h>
27
+ +#include <SDL2/SDL_keycode.h>
28
+ +#include <SDL2/SDL_mouse.h>
29
+ +#include <SDL2/SDL_version.h> /* huh, why is this not pulled in implicitly?! */
30
+ +#include <SDL2/SDL_video.h>
31
+ +#include <SDL2/SDL_scancode.h>
32
+
33
+ #ifdef CORRADE_TARGET_IOS
34
+ /* Including SDL_main.h unconditionally would mean it'd override Corrade::Main
35
+ @@ -74,7 +74,7 @@
36
+ #endif
37
+
38
+ #ifdef CORRADE_TARGET_WINDOWS_RT
39
+ -#include <SDL_main.h> /* For SDL_WinRTRunApp */
40
+ +#include <SDL2/SDL_main.h> /* For SDL_WinRTRunApp */
41
+ #include <wrl.h> /* For the WinMain entrypoint */
42
+ #endif
43
+ #ifdef CORRADE_TARGET_CLANG_CL
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/003-fix-FindGLFW.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake
2
+ index 8761448..17321af 100644
3
+ --- a/modules/FindMagnum.cmake
4
+ +++ b/modules/FindMagnum.cmake
5
+ @@ -647,9 +647,9 @@ foreach(_component ${Magnum_FIND_COMPONENTS})
6
+
7
+ # GLFW application dependencies
8
+ elseif(_component STREQUAL GlfwApplication)
9
+ - find_package(GLFW)
10
+ + find_package(glfw3 CONFIG REQUIRED)
11
+ set_property(TARGET Magnum::${_component} APPEND PROPERTY
12
+ - INTERFACE_LINK_LIBRARIES GLFW::GLFW)
13
+ + INTERFACE_LINK_LIBRARIES glfw)
14
+ # Use the Foundation framework on Apple to query the DPI awareness
15
+ if(CORRADE_TARGET_APPLE)
16
+ find_library(_MAGNUM_APPLE_FOUNDATION_FRAMEWORK_LIBRARY Foundation)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/magnumdeploy.ps1 ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Magnum's plugin deployment strategy is that each Magnum module has a hardcoded
2
+ # set of plugin directories. Each of these directories is deployed in
3
+ # full if that Module is referenced.
4
+ #
5
+ # Note: this function signature and behavior is depended upon by applocal.ps1
6
+ function deployPluginsIfMagnum([string]$targetBinaryDir, [string]$MagnumPluginsDir, [string]$targetBinaryName) {
7
+ Write-Verbose "Deploying magnum plugins"
8
+
9
+ $baseDir = Split-Path $MagnumPluginsDir -parent
10
+ $pluginsBase = Split-Path $MagnumPluginsDir -Leaf
11
+ $binDir = "$baseDir\bin"
12
+
13
+ function deployPlugins([string]$pluginSubdirName) {
14
+ if (Test-Path "$MagnumPluginsDir\$pluginSubdirName") {
15
+ Write-Verbose " Deploying plugins directory '$pluginSubdirName'"
16
+ New-Item "$targetBinaryDir\$pluginsBase\$pluginSubdirName" -ItemType Directory -ErrorAction SilentlyContinue | Out-Null
17
+ Get-ChildItem -Path "$MagnumPluginsDir\$pluginSubdirName\*" -Include "*.dll", "*.conf", "*.pdb" | % {
18
+ deployBinary "$targetBinaryDir\$pluginsBase\$pluginSubdirName" "$MagnumPluginsDir\$pluginSubdirName" $_.Name
19
+ resolve $_
20
+ }
21
+ } else {
22
+ Write-Verbose " Skipping plugins directory '$pluginSubdirName': doesn't exist"
23
+ }
24
+ }
25
+
26
+ # We detect Magnum modules in use via the DLLs that contain their
27
+ # plugin interfaces.
28
+ if ($targetBinaryName -like "MagnumAudio.dll" -or $targetBinaryName -like "MagnumAudio-d.dll") {
29
+ deployPlugins "audioimporters"
30
+ } elseif ($targetBinaryName -like "MagnumText.dll" -or $targetBinaryName -like "MagnumText-d.dll") {
31
+ deployPlugins "fonts"
32
+ deployPlugins "fontconverters"
33
+ } elseif ($targetBinaryName -like "MagnumTrade.dll" -or $targetBinaryName -like "MagnumTrade-d.dll") {
34
+ deployPlugins "importers"
35
+ deployPlugins "imageconverters"
36
+ deployPlugins "sceneconverters"
37
+ } elseif ($targetBinaryName -like "MagnumShaderTools.dll" -or $targetBinaryName -like "MagnumShaderTools-d.dll") {
38
+ deployPlugins "shaderconverters"
39
+ }
40
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/portfile.cmake ADDED
@@ -0,0 +1,173 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO mosra/magnum
4
+ REF v2020.06
5
+ SHA512 65b0c8a4520d1d282420c30ecd7c8525525d4dbb6e562e1e2e93d110f4eb686af43f098bf02460727fab1e1f9446dd00a99051e150c05ea40b1486a44fea1042
6
+ HEAD_REF master
7
+ PATCHES
8
+ 002-sdl-includes.patch
9
+ 003-fix-FindGLFW.patch
10
+ )
11
+
12
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC)
13
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_PLUGINS_STATIC)
14
+
15
+ # Remove platform-specific feature that are not available
16
+ # on current target platform from all features.
17
+
18
+ # For documentation on VCPKG_CMAKE_SYSTEM_NAME see
19
+ # https://github.com/microsoft/vcpkg/blob/master/docs/users/triplets.md#vcpkg_cmake_system_name
20
+
21
+ set(ALL_SUPPORTED_FEATURES ${ALL_FEATURES})
22
+ # Windows Desktop
23
+ if(NOT "${VCPKG_CMAKE_SYSTEM_NAME}" STREQUAL "")
24
+ list(REMOVE_ITEM ALL_SUPPORTED_FEATURES wglcontext windowlesswglapplication)
25
+ endif()
26
+
27
+ # Universal Windows Platform
28
+ if(NOT "${VCPKG_CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
29
+ # No UWP specific features
30
+ endif()
31
+
32
+ # Mac OSX
33
+ if(NOT "${VCPKG_CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
34
+ list(REMOVE_ITEM ALL_SUPPORTED_FEATURES cglcontext windowlesscglapplication)
35
+ endif()
36
+
37
+ # Linux
38
+ if(NOT "${VCPKG_CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
39
+ list(REMOVE_ITEM ALL_SUPPORTED_FEATURES glxcontext windowlessglxapplication)
40
+ endif()
41
+
42
+ # WebAssembly / Linux
43
+ if(NOT "${VCPKG_CMAKE_SYSTEM_NAME}" MATCHES "(Emscripten|Linux)")
44
+ list(REMOVE_ITEM ALL_SUPPORTED_FEATURES eglcontext windowlesseglapplication)
45
+ endif()
46
+
47
+ # Head only features
48
+ if(NOT VCPKG_USE_HEAD_VERSION)
49
+ list(REMOVE_ITEM ALL_SUPPORTED_FEATURES anyshaderconverter shadertools shaderconverter
50
+ vk-info)
51
+ message(WARNING "Features anyshaderconverter, shadertools, shaderconverter and vk-info are not avaliable when building non-head version.")
52
+ endif()
53
+
54
+ set(_COMPONENTS "")
55
+ # Generate cmake parameters from feature names
56
+ foreach(_feature IN LISTS ALL_SUPPORTED_FEATURES)
57
+ # Uppercase the feature name and replace "-" with "_"
58
+ string(TOUPPER "${_feature}" _FEATURE)
59
+ string(REPLACE "-" "_" _FEATURE "${_FEATURE}")
60
+
61
+ # Final feature is empty, ignore it
62
+ if(_feature)
63
+ list(APPEND _COMPONENTS ${_feature} WITH_${_FEATURE})
64
+ endif()
65
+ endforeach()
66
+
67
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES ${_COMPONENTS})
68
+
69
+ vcpkg_cmake_configure(
70
+ SOURCE_PATH "${SOURCE_PATH}"
71
+ OPTIONS
72
+ ${FEATURE_OPTIONS}
73
+ -DBUILD_STATIC=${BUILD_STATIC}
74
+ -DBUILD_PLUGINS_STATIC=${BUILD_PLUGINS_STATIC}
75
+ -DMAGNUM_PLUGINS_DEBUG_DIR=${CURRENT_INSTALLED_DIR}/debug/bin/magnum-d
76
+ -DMAGNUM_PLUGINS_RELEASE_DIR=${CURRENT_INSTALLED_DIR}/bin/magnum
77
+ )
78
+
79
+ vcpkg_cmake_install()
80
+
81
+ vcpkg_copy_pdbs()
82
+
83
+ # Copy tools into vcpkg's tools directory
84
+ set(_TOOL_EXEC_NAMES "")
85
+ set(_TOOLS
86
+ al-info
87
+ distancefieldconverter
88
+ fontconverter
89
+ gl-info
90
+ imageconverter
91
+ sceneconverter)
92
+ if(VCPKG_USE_HEAD_VERSION)
93
+ list(APPEND _TOOLS
94
+ shaderconverter
95
+ vk-info)
96
+ endif()
97
+ foreach(_tool IN LISTS _TOOLS)
98
+ if("${_tool}" IN_LIST FEATURES)
99
+ list(APPEND _TOOL_EXEC_NAMES magnum-${_tool})
100
+ endif()
101
+ endforeach()
102
+ message(STATUS ${_TOOL_EXEC_NAMES})
103
+ if(_TOOL_EXEC_NAMES)
104
+ vcpkg_copy_tools(TOOL_NAMES ${_TOOL_EXEC_NAMES} AUTO_CLEAN)
105
+ endif()
106
+
107
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
108
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
109
+
110
+ # Special handling for plugins.
111
+ #
112
+ # For static plugins, in order to make MSBuild auto-linking magic work, where
113
+ # the linker implicitly takes everything from the root lib/ folder, the
114
+ # static libraries have to be moved out of lib/magnum/blah/ directly to lib/.
115
+ # Possibly would be enough to do this just for Windows, doing it also on other
116
+ # platforms for consistency.
117
+ #
118
+ # For dynamic plugins, auto-linking is not desirable as those are meant to be
119
+ # loaded dynamically at runtime instead. In order to prevent that, on Windows
120
+ # the *.lib files corresponding to the plugin *.dlls are removed. However, we
121
+ # cannot remove the *.lib files entirely here, as plugins from magnum-plugins
122
+ # are linked to them on Windows (e.g. AssimpImporter depends on
123
+ # AnyImageImporter). Thus the Any* plugin lib files are kept, but also not
124
+ # moved to the root lib/ folder, to prevent autolinking. A consequence of the
125
+ # *.lib file removal is that downstream projects can't implement Magnum plugins
126
+ # that would depend on (and thus link to) these, but that's considered a very
127
+ # rare use case and so it's fine.
128
+ #
129
+ # See https://github.com/microsoft/vcpkg/pull/1235#issuecomment-308805989 for
130
+ # futher info.
131
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
132
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
133
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
134
+ # move plugin libs to conventional place
135
+ file(GLOB_RECURSE LIB_TO_MOVE "${CURRENT_PACKAGES_DIR}/lib/magnum/*")
136
+ file(COPY ${LIB_TO_MOVE} DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
137
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/magnum")
138
+
139
+ file(GLOB_RECURSE LIB_TO_MOVE_DBG "${CURRENT_PACKAGES_DIR}/debug/lib/magnum/*")
140
+ file(COPY ${LIB_TO_MOVE_DBG} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
141
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/magnum")
142
+ else()
143
+ if(WIN32)
144
+ file(GLOB_RECURSE LIB_TO_REMOVE "${CURRENT_PACKAGES_DIR}/lib/magnum/*")
145
+ file(GLOB_RECURSE LIB_TO_KEEP "${CURRENT_PACKAGES_DIR}/lib/magnum/*Any*")
146
+ if(LIB_TO_KEEP)
147
+ list(REMOVE_ITEM LIB_TO_REMOVE ${LIB_TO_KEEP})
148
+ endif()
149
+ if(LIB_TO_REMOVE)
150
+ file(REMOVE ${LIB_TO_REMOVE})
151
+ endif()
152
+
153
+ file(GLOB_RECURSE LIB_TO_REMOVE_DBG "${CURRENT_PACKAGES_DIR}/debug/lib/magnum-d/*")
154
+ file(GLOB_RECURSE LIB_TO_KEEP_DBG "${CURRENT_PACKAGES_DIR}/debug/lib/magnum-d/*Any*")
155
+ if(LIB_TO_KEEP_DBG)
156
+ list(REMOVE_ITEM LIB_TO_REMOVE_DBG ${LIB_TO_KEEP_DBG})
157
+ endif()
158
+ if(LIB_TO_REMOVE_DBG)
159
+ file(REMOVE ${LIB_TO_REMOVE_DBG})
160
+ endif()
161
+
162
+ # fonts and fontconverters don't have Any* plugins
163
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/magnum/fonts")
164
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/magnum/fontconverters")
165
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/magnum-d/fonts")
166
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/magnum-d/fontconverters")
167
+ endif()
168
+
169
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/magnumdeploy.ps1" DESTINATION "${CURRENT_PACKAGES_DIR}/bin/magnum")
170
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/magnumdeploy.ps1" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin/magnum-d")
171
+ endif()
172
+
173
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/magnum/vcpkg.json ADDED
@@ -0,0 +1,533 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "magnum",
3
+ "version-string": "2020.06",
4
+ "port-version": 9,
5
+ "description": "C++11/C++14 graphics middleware for games and data visualization",
6
+ "homepage": "https://magnum.graphics/",
7
+ "dependencies": [
8
+ {
9
+ "name": "corrade",
10
+ "features": [
11
+ "utility"
12
+ ]
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake",
16
+ "host": true
17
+ }
18
+ ],
19
+ "default-features": [
20
+ "anyaudioimporter",
21
+ "anyimageconverter",
22
+ "anyimageimporter",
23
+ "anysceneconverter",
24
+ "anysceneimporter",
25
+ "anyshaderconverter",
26
+ "debugtools",
27
+ "gl",
28
+ "meshtools",
29
+ "primitives",
30
+ "scenegraph",
31
+ "sdl2application",
32
+ "shaders",
33
+ "shadertools",
34
+ "text",
35
+ "texturetools",
36
+ "trade"
37
+ ],
38
+ "features": {
39
+ "al-info": {
40
+ "description": "magnum-al-info utility",
41
+ "dependencies": [
42
+ {
43
+ "name": "magnum",
44
+ "default-features": false,
45
+ "features": [
46
+ "audio"
47
+ ]
48
+ }
49
+ ]
50
+ },
51
+ "anyaudioimporter": {
52
+ "description": "AnyAudioImporter plugin",
53
+ "dependencies": [
54
+ {
55
+ "name": "corrade",
56
+ "features": [
57
+ "pluginmanager"
58
+ ]
59
+ },
60
+ {
61
+ "name": "magnum",
62
+ "default-features": false,
63
+ "features": [
64
+ "audio"
65
+ ]
66
+ }
67
+ ]
68
+ },
69
+ "anyimageconverter": {
70
+ "description": "AnyImageConverter plugin",
71
+ "dependencies": [
72
+ {
73
+ "name": "magnum",
74
+ "default-features": false,
75
+ "features": [
76
+ "trade"
77
+ ]
78
+ }
79
+ ]
80
+ },
81
+ "anyimageimporter": {
82
+ "description": "AnyImageImporter plugin",
83
+ "dependencies": [
84
+ {
85
+ "name": "magnum",
86
+ "default-features": false,
87
+ "features": [
88
+ "trade"
89
+ ]
90
+ }
91
+ ]
92
+ },
93
+ "anysceneconverter": {
94
+ "description": "AnySceneConverter plugin",
95
+ "dependencies": [
96
+ {
97
+ "name": "magnum",
98
+ "default-features": false,
99
+ "features": [
100
+ "trade"
101
+ ]
102
+ }
103
+ ]
104
+ },
105
+ "anysceneimporter": {
106
+ "description": "AnySceneImporter plugin",
107
+ "dependencies": [
108
+ {
109
+ "name": "magnum",
110
+ "default-features": false,
111
+ "features": [
112
+ "trade"
113
+ ]
114
+ }
115
+ ]
116
+ },
117
+ "anyshaderconverter": {
118
+ "description": "AnyShaderConverter plugin",
119
+ "dependencies": [
120
+ {
121
+ "name": "magnum",
122
+ "default-features": false,
123
+ "features": [
124
+ "shadertools"
125
+ ]
126
+ }
127
+ ]
128
+ },
129
+ "audio": {
130
+ "description": "Audio library",
131
+ "dependencies": [
132
+ "openal-soft"
133
+ ]
134
+ },
135
+ "cglcontext": {
136
+ "description": "CglContext library",
137
+ "dependencies": [
138
+ {
139
+ "name": "magnum",
140
+ "default-features": false,
141
+ "features": [
142
+ "gl"
143
+ ]
144
+ }
145
+ ]
146
+ },
147
+ "debugtools": {
148
+ "description": "DebugTools library"
149
+ },
150
+ "distancefieldconverter": {
151
+ "description": "magnum-distancefieldconverter utility",
152
+ "dependencies": [
153
+ {
154
+ "name": "magnum",
155
+ "default-features": false,
156
+ "features": [
157
+ "gl"
158
+ ]
159
+ },
160
+ {
161
+ "name": "magnum",
162
+ "default-features": false,
163
+ "features": [
164
+ "texturetools"
165
+ ]
166
+ }
167
+ ]
168
+ },
169
+ "eglcontext": {
170
+ "description": "EglContext library",
171
+ "dependencies": [
172
+ {
173
+ "name": "magnum",
174
+ "default-features": false,
175
+ "features": [
176
+ "gl"
177
+ ]
178
+ }
179
+ ]
180
+ },
181
+ "fontconverter": {
182
+ "description": "magnum-fontconverter utility",
183
+ "dependencies": [
184
+ {
185
+ "name": "magnum",
186
+ "default-features": false,
187
+ "features": [
188
+ "gl"
189
+ ]
190
+ },
191
+ {
192
+ "name": "magnum",
193
+ "default-features": false,
194
+ "features": [
195
+ "text"
196
+ ]
197
+ }
198
+ ]
199
+ },
200
+ "gl": {
201
+ "description": "GL library"
202
+ },
203
+ "gl-info": {
204
+ "description": "gl-info utility",
205
+ "dependencies": [
206
+ {
207
+ "name": "magnum",
208
+ "default-features": false,
209
+ "features": [
210
+ "gl"
211
+ ]
212
+ }
213
+ ]
214
+ },
215
+ "glfwapplication": {
216
+ "description": "GlfwApplication library",
217
+ "dependencies": [
218
+ "glfw3"
219
+ ]
220
+ },
221
+ "glxcontext": {
222
+ "description": "GlxContext library",
223
+ "dependencies": [
224
+ {
225
+ "name": "magnum",
226
+ "default-features": false,
227
+ "features": [
228
+ "gl"
229
+ ]
230
+ }
231
+ ]
232
+ },
233
+ "imageconverter": {
234
+ "description": "magnum-imageconverter utility",
235
+ "dependencies": [
236
+ {
237
+ "name": "magnum",
238
+ "default-features": false,
239
+ "features": [
240
+ "trade"
241
+ ]
242
+ }
243
+ ]
244
+ },
245
+ "magnumfont": {
246
+ "description": "MagnumFont plugin",
247
+ "dependencies": [
248
+ {
249
+ "name": "magnum",
250
+ "default-features": false,
251
+ "features": [
252
+ "text"
253
+ ]
254
+ }
255
+ ]
256
+ },
257
+ "magnumfontconverter": {
258
+ "description": "MagnumFontConverter plugin",
259
+ "dependencies": [
260
+ {
261
+ "name": "magnum",
262
+ "default-features": false,
263
+ "features": [
264
+ "text"
265
+ ]
266
+ },
267
+ {
268
+ "name": "magnum",
269
+ "default-features": false,
270
+ "features": [
271
+ "tgaimageconverter"
272
+ ]
273
+ }
274
+ ]
275
+ },
276
+ "meshtools": {
277
+ "description": "MeshTools library",
278
+ "dependencies": [
279
+ {
280
+ "name": "magnum",
281
+ "default-features": false,
282
+ "features": [
283
+ "trade"
284
+ ]
285
+ }
286
+ ]
287
+ },
288
+ "objimporter": {
289
+ "description": "ObjImporter plugin",
290
+ "dependencies": [
291
+ {
292
+ "name": "magnum",
293
+ "default-features": false,
294
+ "features": [
295
+ "trade"
296
+ ]
297
+ }
298
+ ]
299
+ },
300
+ "opengltester": {
301
+ "description": "OpenGLTester library",
302
+ "dependencies": [
303
+ {
304
+ "name": "corrade",
305
+ "features": [
306
+ "testsuite"
307
+ ]
308
+ },
309
+ {
310
+ "name": "magnum",
311
+ "default-features": false,
312
+ "features": [
313
+ "gl"
314
+ ]
315
+ }
316
+ ]
317
+ },
318
+ "primitives": {
319
+ "description": "Primitives library",
320
+ "dependencies": [
321
+ {
322
+ "name": "magnum",
323
+ "default-features": false,
324
+ "features": [
325
+ "trade"
326
+ ]
327
+ }
328
+ ]
329
+ },
330
+ "sceneconverter": {
331
+ "description": "magnum-sceneconverter utility",
332
+ "dependencies": [
333
+ {
334
+ "name": "magnum",
335
+ "default-features": false,
336
+ "features": [
337
+ "anysceneconverter"
338
+ ]
339
+ }
340
+ ]
341
+ },
342
+ "scenegraph": {
343
+ "description": "SceneGraph library"
344
+ },
345
+ "sdl2application": {
346
+ "description": "Sdl2Application library",
347
+ "dependencies": [
348
+ "sdl2"
349
+ ]
350
+ },
351
+ "shaderconverter": {
352
+ "description": "magnum-shaderconverter utility",
353
+ "dependencies": [
354
+ {
355
+ "name": "magnum",
356
+ "default-features": false,
357
+ "features": [
358
+ "anyshaderconverter",
359
+ "shadertools"
360
+ ]
361
+ }
362
+ ]
363
+ },
364
+ "shaders": {
365
+ "description": "Shaders library",
366
+ "dependencies": [
367
+ {
368
+ "name": "magnum",
369
+ "default-features": false,
370
+ "features": [
371
+ "gl"
372
+ ]
373
+ }
374
+ ]
375
+ },
376
+ "shadertools": {
377
+ "description": "ShaderTools library"
378
+ },
379
+ "text": {
380
+ "description": "Text library",
381
+ "dependencies": [
382
+ {
383
+ "name": "corrade",
384
+ "features": [
385
+ "pluginmanager"
386
+ ]
387
+ },
388
+ {
389
+ "name": "magnum",
390
+ "default-features": false,
391
+ "features": [
392
+ "gl"
393
+ ]
394
+ },
395
+ {
396
+ "name": "magnum",
397
+ "default-features": false,
398
+ "features": [
399
+ "texturetools"
400
+ ]
401
+ }
402
+ ]
403
+ },
404
+ "texturetools": {
405
+ "description": "TextureTools library"
406
+ },
407
+ "tgaimageconverter": {
408
+ "description": "TgaImageConverter plugin",
409
+ "dependencies": [
410
+ {
411
+ "name": "magnum",
412
+ "default-features": false,
413
+ "features": [
414
+ "trade"
415
+ ]
416
+ }
417
+ ]
418
+ },
419
+ "tgaimporter": {
420
+ "description": "TgaImporter plugin",
421
+ "dependencies": [
422
+ {
423
+ "name": "magnum",
424
+ "default-features": false,
425
+ "features": [
426
+ "trade"
427
+ ]
428
+ }
429
+ ]
430
+ },
431
+ "trade": {
432
+ "description": "Trade library",
433
+ "dependencies": [
434
+ {
435
+ "name": "corrade",
436
+ "features": [
437
+ "pluginmanager"
438
+ ]
439
+ }
440
+ ]
441
+ },
442
+ "vk": {
443
+ "description": "Vk library",
444
+ "dependencies": [
445
+ "vulkan"
446
+ ]
447
+ },
448
+ "vk-info": {
449
+ "description": "vk-info utility",
450
+ "dependencies": [
451
+ {
452
+ "name": "magnum",
453
+ "default-features": false,
454
+ "features": [
455
+ "vk"
456
+ ]
457
+ }
458
+ ]
459
+ },
460
+ "wavaudioimporter": {
461
+ "description": "WavAudioImporter plugin",
462
+ "dependencies": [
463
+ {
464
+ "name": "magnum",
465
+ "default-features": false,
466
+ "features": [
467
+ "audio"
468
+ ]
469
+ }
470
+ ]
471
+ },
472
+ "wglcontext": {
473
+ "description": "WglContext library",
474
+ "dependencies": [
475
+ {
476
+ "name": "magnum",
477
+ "default-features": false,
478
+ "features": [
479
+ "gl"
480
+ ]
481
+ }
482
+ ]
483
+ },
484
+ "windowlesscglapplication": {
485
+ "description": "WindowlessCglApplication library",
486
+ "dependencies": [
487
+ {
488
+ "name": "magnum",
489
+ "default-features": false,
490
+ "features": [
491
+ "gl"
492
+ ]
493
+ }
494
+ ]
495
+ },
496
+ "windowlesseglapplication": {
497
+ "description": "WindowlessEglApplication library",
498
+ "dependencies": [
499
+ {
500
+ "name": "magnum",
501
+ "default-features": false,
502
+ "features": [
503
+ "gl"
504
+ ]
505
+ }
506
+ ]
507
+ },
508
+ "windowlessglxapplication": {
509
+ "description": "WindowlessGlxApplication library",
510
+ "dependencies": [
511
+ {
512
+ "name": "magnum",
513
+ "default-features": false,
514
+ "features": [
515
+ "gl"
516
+ ]
517
+ }
518
+ ]
519
+ },
520
+ "windowlesswglapplication": {
521
+ "description": "WindowlessWglApplication library",
522
+ "dependencies": [
523
+ {
524
+ "name": "magnum",
525
+ "default-features": false,
526
+ "features": [
527
+ "gl"
528
+ ]
529
+ }
530
+ ]
531
+ }
532
+ }
533
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mailio/portfile.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO karastojko/mailio
4
+ REF cc887a7808d9c55e07c8a7503c7ae2e2d7485120 # version_0-21-0
5
+ SHA512 7125bfe4274e1e126e335b2e4b5743ef54d5dc0b6fd83f0c10e7578b57924d3e398af6b3865fdee3de587e2e2d7c33d95dbe017b1966649e68cf52f2dd268ee5
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ OPTIONS
12
+ -DMAILIO_BUILD_DOCUMENTATION=OFF
13
+ -DMAILIO_BUILD_EXAMPLES=OFF
14
+ )
15
+ vcpkg_cmake_install()
16
+ vcpkg_cmake_config_fixup(
17
+ CONFIG_PATH share/mailio/cmake
18
+ )
19
+
20
+ vcpkg_fixup_pkgconfig()
21
+
22
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
23
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mailio/vcpkg.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mailio",
3
+ "version": "0.21.0",
4
+ "port-version": 2,
5
+ "maintainers": "Tomislav Karastojković <[email protected]>",
6
+ "description": "mailio is a cross platform C++ library for MIME format and SMTP, POP3 and IMAP protocols. It is based on the standard C++ 17 and Boost library.",
7
+ "homepage": "https://github.com/karastojko/mailio",
8
+ "license": "BSD-2-Clause",
9
+ "supports": "!uwp",
10
+ "dependencies": [
11
+ "boost-asio",
12
+ "boost-date-time",
13
+ "boost-regex",
14
+ "boost-system",
15
+ "openssl",
16
+ {
17
+ "name": "vcpkg-cmake",
18
+ "host": true
19
+ },
20
+ {
21
+ "name": "vcpkg-cmake-config",
22
+ "host": true
23
+ }
24
+ ]
25
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-cpp/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO mapbox/geojson-cpp
6
+ REF v0.5.1
7
+ SHA512 1282bd4a21773c8b300149abc95c4baea7c36facf283d05d18db246a40614625fab1a71e51190c1cdfc80852ea60b2727af9a679661bfede860d822306467037
8
+ HEAD_REF master
9
+ )
10
+
11
+ # Copy header files
12
+ file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox FILES_MATCHING PATTERN "*.hpp")
13
+
14
+ # Handle copyright
15
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-cpp/vcpkg.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mapbox-geojson-cpp",
3
+ "version-semver": "0.5.1",
4
+ "port-version": 1,
5
+ "description": "A C++14 library for converting GeoJSON into geometry.hpp representation",
6
+ "homepage": "https://github.com/mapbox/geojson-cpp",
7
+ "dependencies": [
8
+ "mapbox-geometry",
9
+ "mapbox-variant"
10
+ ]
11
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-vt-cpp/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO mapbox/geojson-vt-cpp
6
+ REF v6.6.5
7
+ SHA512 4989522c19f35ba13096958ad1041ec09745020955fad99ee02116393885a9d0a835911a42167a76d5efb2a5dd167077bcd451c9a77444f2eaa26893a1bff062
8
+ HEAD_REF master
9
+ )
10
+
11
+ # Copy header files
12
+ file(COPY "${SOURCE_PATH}/include/mapbox/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mapbox" FILES_MATCHING PATTERN "*.hpp")
13
+
14
+ # Handle copyright
15
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geojson-vt-cpp/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mapbox-geojson-vt-cpp",
3
+ "version-semver": "6.6.5",
4
+ "description": "Port to C++ of JS GeoJSON-VT for slicing GeoJSON into vector tiles on the fly",
5
+ "homepage": "https://github.com/mapbox/geojson-vt-cpp",
6
+ "dependencies": [
7
+ "mapbox-geometry"
8
+ ]
9
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geometry/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO mapbox/geometry.hpp
6
+ REF v2.0.3
7
+ SHA512 76c10578e1fba44430786fb5e043dbc063aa251f62396701a509f7fa1e2e5c351fa0fe041d16be84bda9816ec5df3342cd9890da6fe99d78d6fb26e0a3b2485b
8
+ HEAD_REF master
9
+ )
10
+
11
+ # Copy header files
12
+ file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox FILES_MATCHING PATTERN "*.hpp")
13
+
14
+ # Handle copyright
15
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-geometry/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mapbox-geometry",
3
+ "version-semver": "2.0.3",
4
+ "description": "C++ geometry types",
5
+ "homepage": "https://github.com/mapbox/geometry.hpp"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-polylabel/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO mapbox/polylabel
6
+ REF v1.0.4
7
+ SHA512 c337577545e072dbc43b5fc822e7a4fc9585051e24f6af76a3525faee7ab5c332915c43401629ad2e8f1f142f9e920f65347609607aec9394fd6bbc5d4936564
8
+ HEAD_REF master
9
+ )
10
+
11
+ # Copy header files
12
+ file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox FILES_MATCHING PATTERN "*.hpp")
13
+
14
+ # Handle copyright
15
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-polylabel/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mapbox-polylabel",
3
+ "version-semver": "1.0.4",
4
+ "description": "A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)",
5
+ "homepage": "https://github.com/mapbox/polylabel",
6
+ "dependencies": [
7
+ "mapbox-geometry",
8
+ "mapbox-variant"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-variant/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO mapbox/variant
5
+ REF a2a4858345423a760eca300ec42acad1ad123aa3 # v1.2.0
6
+ SHA512 6d1ad2f37e137c42592dbd618a3871008d4f83b3cb0d6f05a9c469a6a987ed3fc7f0416ae341646d73e69426903a5a4f64b9f41ae739fd940bbd304dfcae289e
7
+ HEAD_REF master
8
+ )
9
+
10
+ # Copy header files
11
+ file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox FILES_MATCHING PATTERN "*.hpp")
12
+
13
+ # Handle copyright
14
+ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/mapbox-variant)
15
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/mapbox-variant/LICENSE ${CURRENT_PACKAGES_DIR}/share/mapbox-variant/copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-variant/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mapbox-variant",
3
+ "version-string": "1.2.0",
4
+ "port-version": 1,
5
+ "description": "C++11/C++14 Variant"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-wagyu/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO mapbox/wagyu
6
+ REF 0.5.0
7
+ SHA512 d2ef6c056b25e60677da4f53154790558ddb43c56aa117a4d5108f8c7686cceff9e5d54d71138e2eb504f053315d28f7cb8190ff45833c5606d511b685acf40d
8
+ HEAD_REF master
9
+ )
10
+
11
+ # Copy header files
12
+ file(COPY ${SOURCE_PATH}/include/mapbox/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/mapbox FILES_MATCHING PATTERN "*.hpp")
13
+
14
+ # Handle copyright
15
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapbox-wagyu/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mapbox-wagyu",
3
+ "version-semver": "0.5.0",
4
+ "description": "A general library for geometry operations of union, intersections, difference, and xor",
5
+ "homepage": "https://github.com/mapbox/wagyu"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapnik/portfile.cmake ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # test application for this port: https://github.com/mathisloge/mapnik-vcpkg-test
2
+
3
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
4
+ vcpkg_from_github(
5
+ OUT_SOURCE_PATH SOURCE_PATH
6
+ REPO mapnik/mapnik
7
+ REF d7b83c0f7d11397aff5b5d8e0bb294ef6ea4354d
8
+ SHA512 62b47cb753e9698e55fe88593009016676b6c0c0a90c3f29be6f44a45f9f783ec5beca6916e549f9adbdc750e2e0334a9e927fc0dcb6a88431e40c2e920ff962
9
+ HEAD_REF master
10
+ )
11
+
12
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13
+ FEATURES
14
+ "jpeg" USE_JPEG
15
+ "png" USE_PNG
16
+ "tiff" USE_TIFF
17
+ "webp" USE_WEBP
18
+ "libxml2" USE_LIBXML2
19
+ "cairo" USE_CAIRO
20
+ "proj" USE_PROJ
21
+ "grid-renderer" USE_GRID_RENDERER
22
+ "svg-renderer" USE_SVG_RENDERER
23
+ "input-csv" USE_PLUGIN_INPUT_CSV
24
+ "input-gdal" USE_PLUGIN_INPUT_GDAL
25
+ "input-geobuf" USE_PLUGIN_INPUT_GEOBUF
26
+ "input-geojson" USE_PLUGIN_INPUT_GEOJSON
27
+ "input-ogr" USE_PLUGIN_INPUT_OGR
28
+ "input-pgraster" USE_PLUGIN_INPUT_PGRASTER
29
+ "input-postgis" USE_PLUGIN_INPUT_POSTGIS
30
+ "input-raster" USE_PLUGIN_INPUT_RASTER
31
+ "input-shape" USE_PLUGIN_INPUT_SHAPE
32
+ "input-sqlite" USE_PLUGIN_INPUT_SQLITE
33
+ "input-topojson" USE_PLUGIN_INPUT_TOPOJSON
34
+ "viewer" BUILD_DEMO_VIEWER
35
+ "utility-geometry-to-wkb" BUILD_UTILITY_GEOMETRY_TO_WKB
36
+ "utility-mapnik-index" BUILD_UTILITY_MAPNIK_INDEX
37
+ "utility-mapnik-render" BUILD_UTILITY_MAPNIK_RENDER
38
+ "utility-ogrindex" BUILD_UTILITY_OGRINDEX
39
+ "utility-pgsql2sqlite" BUILD_UTILITY_PGSQL2SQLITE
40
+ "utility-shapeindex" BUILD_UTILITY_SHAPEINDEX
41
+ "utility-svg2png" BUILD_UTILITY_SVG2PNG
42
+ )
43
+
44
+ vcpkg_cmake_configure(
45
+ SOURCE_PATH "${SOURCE_PATH}"
46
+ OPTIONS
47
+ ${FEATURE_OPTIONS}
48
+ -DINSTALL_DEPENDENCIES=OFF
49
+ -DBUILD_TESTING=OFF
50
+ -DBUILD_BENCHMARK=OFF
51
+ -DBUILD_DEMO_CPP=OFF
52
+ -DUSE_EXTERNAL_MAPBOX_GEOMETRY=ON
53
+ -DUSE_EXTERNAL_MAPBOX_POLYLABEL=ON
54
+ -DUSE_EXTERNAL_MAPBOX_PROTOZERO=ON
55
+ -DUSE_EXTERNAL_MAPBOX_VARIANT=ON
56
+ -DMAPNIK_CMAKE_DIR=share/mapnik/cmake
57
+ -DFONTS_INSTALL_DIR=share/mapnik/fonts
58
+ -DMAPNIK_PKGCONF_DIR=lib/pkgconfig
59
+ )
60
+
61
+ vcpkg_cmake_install()
62
+ # copy plugins into tool path, if any plugin is installed
63
+ if(IS_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin/plugins")
64
+ file(COPY "${CURRENT_PACKAGES_DIR}/bin/plugins" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
65
+ endif()
66
+ vcpkg_copy_pdbs()
67
+
68
+ set(_tool_names "")
69
+ if("viewer" IN_LIST FEATURES)
70
+ # copy the ini file to reference the plugins correctly
71
+ file(COPY "${CURRENT_PACKAGES_DIR}/bin/viewer.ini" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
72
+ list(APPEND _tool_names mapnik-viewer)
73
+ endif()
74
+
75
+ if("utility-geometry-to-wkb" IN_LIST FEATURES)
76
+ list(APPEND _tool_names geometry_to_wkb)
77
+ endif()
78
+
79
+ if("utility-mapnik-index" IN_LIST FEATURES)
80
+ list(APPEND _tool_names mapnik-index)
81
+ endif()
82
+ if("utility-mapnik-render" IN_LIST FEATURES)
83
+ list(APPEND _tool_names mapnik-render)
84
+ endif()
85
+ if("utility-ogrindex" IN_LIST FEATURES)
86
+ # build is currently not supported
87
+ # vcpkg_copy_tools(TOOL_NAMES ogrindex AUTO_CLEAN)
88
+ endif()
89
+ if("utility-pgsql2sqlite" IN_LIST FEATURES)
90
+ list(APPEND _tool_names pgsql2sqlite)
91
+ endif()
92
+ if("utility-shapeindex" IN_LIST FEATURES)
93
+ list(APPEND _tool_names shapeindex)
94
+ endif()
95
+ if("utility-svg2png" IN_LIST FEATURES)
96
+ list(APPEND _tool_names svg2png)
97
+ endif()
98
+ if(_tool_names)
99
+ vcpkg_copy_tools(TOOL_NAMES ${_tool_names} AUTO_CLEAN)
100
+ endif()
101
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/mapnik/cmake)
102
+ vcpkg_fixup_pkgconfig()
103
+
104
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
105
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
106
+
107
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/mapnik/mapnikPlugins-debug.cmake" "set(MAPNIK_PLUGINS_DIR_DEBUG \"\${PACKAGE_PREFIX_DIR}/debug/bin/mapnik/input\" CACHE STRING \"\")")
108
+
109
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
110
+ file(INSTALL "${SOURCE_PATH}/fonts/unifont_license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME fonts_copyright)
111
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapnik/usage ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ The package mapnik provides CMake targets:
2
+
3
+ find_package(mapnik CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE mapnik::mapnik mapnik::json mapnik::wkt)
5
+
6
+ If you only need the compile definitions without any sources, use target mapnik::core.
7
+ If any plugins were installed, call the function `mapnik_find_plugin_dir(MAPNIK_PLUGIN_DIR)` to get the plugin installation folder for the currently used configuration. See the docs for more information.
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mapnik/vcpkg.json ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mapnik",
3
+ "version-date": "2022-01-28",
4
+ "port-version": 1,
5
+ "description": "Mapnik is an open source toolkit for developing mapping applications.",
6
+ "homepage": "https://github.com/mapnik/mapnik",
7
+ "license": "LGPL-2.1-only",
8
+ "supports": "!(static & windows)",
9
+ "dependencies": [
10
+ "boost-assign",
11
+ "boost-bimap",
12
+ "boost-filesystem",
13
+ "boost-geometry",
14
+ "boost-gil",
15
+ "boost-interprocess",
16
+ {
17
+ "name": "boost-locale",
18
+ "features": [
19
+ "icu"
20
+ ]
21
+ },
22
+ "boost-msm",
23
+ "boost-property-tree",
24
+ {
25
+ "name": "boost-regex",
26
+ "features": [
27
+ "icu"
28
+ ]
29
+ },
30
+ "boost-spirit",
31
+ "boost-system",
32
+ {
33
+ "name": "freetype",
34
+ "features": [
35
+ "bzip2",
36
+ "png"
37
+ ]
38
+ },
39
+ {
40
+ "name": "harfbuzz",
41
+ "features": [
42
+ "icu"
43
+ ]
44
+ },
45
+ {
46
+ "name": "harfbuzz",
47
+ "features": [
48
+ "coretext"
49
+ ],
50
+ "platform": "osx"
51
+ },
52
+ "icu",
53
+ "mapbox-geometry",
54
+ "mapbox-polylabel",
55
+ "mapbox-variant",
56
+ "protozero",
57
+ {
58
+ "name": "vcpkg-cmake",
59
+ "host": true
60
+ },
61
+ {
62
+ "name": "vcpkg-cmake-config",
63
+ "host": true
64
+ },
65
+ "zlib"
66
+ ],
67
+ "default-features": [
68
+ "grid-renderer",
69
+ "jpeg",
70
+ "png",
71
+ "proj",
72
+ "svg-renderer",
73
+ "tiff",
74
+ "webp"
75
+ ],
76
+ "features": {
77
+ "cairo": {
78
+ "description": "Cairo renderer",
79
+ "dependencies": [
80
+ "cairo",
81
+ "cairomm"
82
+ ]
83
+ },
84
+ "grid-renderer": {
85
+ "description": "Grid renderer"
86
+ },
87
+ "input-csv": {
88
+ "description": "CSV input plugin"
89
+ },
90
+ "input-gdal": {
91
+ "description": "GDAL input plugin",
92
+ "dependencies": [
93
+ "gdal"
94
+ ]
95
+ },
96
+ "input-geobuf": {
97
+ "description": "GEOBUF input plugin",
98
+ "dependencies": [
99
+ "protozero"
100
+ ]
101
+ },
102
+ "input-geojson": {
103
+ "description": "GEOJSON input plugin"
104
+ },
105
+ "input-ogr": {
106
+ "description": "OGR input plugin",
107
+ "dependencies": [
108
+ "gdal"
109
+ ]
110
+ },
111
+ "input-pgraster": {
112
+ "description": "PGRASTER input plugin",
113
+ "dependencies": [
114
+ "libodb-pgsql",
115
+ "libpq"
116
+ ]
117
+ },
118
+ "input-postgis": {
119
+ "description": "POSTGIS input plugin",
120
+ "dependencies": [
121
+ "libodb-pgsql",
122
+ "libpq"
123
+ ]
124
+ },
125
+ "input-raster": {
126
+ "description": "RASTER input plugin"
127
+ },
128
+ "input-shape": {
129
+ "description": "SHAPE input plugin"
130
+ },
131
+ "input-sqlite": {
132
+ "description": "SQLITE input plugin",
133
+ "dependencies": [
134
+ "sqlite3"
135
+ ]
136
+ },
137
+ "input-topojson": {
138
+ "description": "TOPOJSON input plugin"
139
+ },
140
+ "jpeg": {
141
+ "description": "add jpeg support",
142
+ "dependencies": [
143
+ "libjpeg-turbo"
144
+ ]
145
+ },
146
+ "libxml2": {
147
+ "description": "use libxml2 instead of rapidxml",
148
+ "dependencies": [
149
+ "libxml2"
150
+ ]
151
+ },
152
+ "png": {
153
+ "description": "add png support",
154
+ "dependencies": [
155
+ "libpng"
156
+ ]
157
+ },
158
+ "proj": {
159
+ "description": "PROJ Functionalities",
160
+ "dependencies": [
161
+ "proj"
162
+ ]
163
+ },
164
+ "svg-renderer": {
165
+ "description": "SVG renderer"
166
+ },
167
+ "tiff": {
168
+ "description": "add tiff support",
169
+ "dependencies": [
170
+ "tiff"
171
+ ]
172
+ },
173
+ "utility-geometry-to-wkb": {
174
+ "description": "utility application geometry-to-wkb",
175
+ "dependencies": [
176
+ "boost-program-options"
177
+ ]
178
+ },
179
+ "utility-mapnik-index": {
180
+ "description": "utility application mapnik-index",
181
+ "dependencies": [
182
+ "boost-program-options"
183
+ ]
184
+ },
185
+ "utility-mapnik-render": {
186
+ "description": "utility application mapnik-render",
187
+ "dependencies": [
188
+ "boost-program-options"
189
+ ]
190
+ },
191
+ "utility-ogrindex": {
192
+ "description": "utility application ogrindex"
193
+ },
194
+ "utility-pgsql2sqlite": {
195
+ "description": "utility application pgsql2sqlite",
196
+ "dependencies": [
197
+ "boost-program-options",
198
+ "libodb-pgsql",
199
+ "libpq",
200
+ "sqlite3"
201
+ ]
202
+ },
203
+ "utility-shapeindex": {
204
+ "description": "utility application shapeindex",
205
+ "dependencies": [
206
+ "boost-program-options"
207
+ ]
208
+ },
209
+ "utility-svg2png": {
210
+ "description": "utility application svg2png",
211
+ "dependencies": [
212
+ "boost-program-options"
213
+ ]
214
+ },
215
+ "viewer": {
216
+ "description": "Make demo viewer application",
217
+ "dependencies": [
218
+ "qt5-base"
219
+ ]
220
+ },
221
+ "webp": {
222
+ "description": "add webp support",
223
+ "dependencies": [
224
+ "libwebp"
225
+ ]
226
+ }
227
+ }
228
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/marble/portfile.cmake ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO KDE/marble
5
+ REF 552cb9ae1f34482d1ec56532a703e0d820856286 #v20.04.3
6
+ SHA512 ac6106a6db53534c96d7281b1a07624c2852ed8c78cce0b91c5f865b106487f1f49aaa4c72d00ffb1f79a761d8d2eca18129ef9517bef463a1840554ed3e51fb
7
+ HEAD_REF master
8
+ PATCHES "qtfix.patch"
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ OPTIONS
14
+ -DCMAKE_DISABLE_FIND_PACKAGE_I18n=ON
15
+ -DWITH_KF5=OFF
16
+ )
17
+
18
+ vcpkg_cmake_install()
19
+
20
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
21
+
22
+ # Install plugins and data files
23
+ file(GLOB_RECURSE PLUGINS "${CURRENT_PACKAGES_DIR}/plugins/*")
24
+ file(GLOB_RECURSE PLUGINS_DESIGNER "${CURRENT_PACKAGES_DIR}/lib/plugins/*")
25
+ file(GLOB_RECURSE PLUGINS_DEBUG "${CURRENT_PACKAGES_DIR}/debug/lib/plugins/*")
26
+ file(GLOB_RECURSE MKSPECS "${CURRENT_PACKAGES_DIR}/mkspecs/*")
27
+
28
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/${PORT})
29
+ file(COPY ${PLUGINS} ${PLUGINS_DESIGNER} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT}/plugins)
30
+ file(COPY ${PLUGINS_DEBUG} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools/${PORT}/plugins)
31
+ file(COPY "${CURRENT_PACKAGES_DIR}/data" DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT}) # have to keep folder structure here
32
+ file(COPY ${MKSPECS} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT}/mkspecs)
33
+
34
+ # remove plugin folder
35
+ file(REMOVE_RECURSE
36
+ ${CURRENT_PACKAGES_DIR}/plugins ${CURRENT_PACKAGES_DIR}/debug/plugins
37
+ ${CURRENT_PACKAGES_DIR}/data ${CURRENT_PACKAGES_DIR}/debug/data
38
+ ${CURRENT_PACKAGES_DIR}/debug/include
39
+ ${CURRENT_PACKAGES_DIR}/mkspecs ${CURRENT_PACKAGES_DIR}/debug/mkspecs
40
+ ${CURRENT_PACKAGES_DIR}/debug/share
41
+ ${CURRENT_PACKAGES_DIR}/debug/lib/plugins ${CURRENT_PACKAGES_DIR}/lib/plugins
42
+ )
43
+
44
+ vcpkg_copy_pdbs()
45
+
46
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/marble/qtfix.patch ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index a3b2139dc..1f9a10513 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -171,7 +171,7 @@ set (PEDANTIC FALSE CACHE BOOL "Determines if we should compile with -Wall -Werr
6
+ set (WITH_DESIGNER_PLUGIN TRUE CACHE BOOL "Build plugins for Qt Designer")
7
+ add_feature_info("Qt Designer plugins" WITH_DESIGNER_PLUGIN "Marble widget support in Qt Designer. Toggle with WITH_DESIGNER_PLUGIN=YES/NO")
8
+
9
+ -set(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Base directory for executables and libraries" FORCE)
10
+ +set(EXEC_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/bin CACHE PATH "Base directory for executables and libraries" FORCE)
11
+ if (NOT QT_PLUGINS_DIR)
12
+ set(QT_PLUGINS_DIR ${CMAKE_INSTALL_LIBDIR}/plugins)
13
+ endif()
14
+ @@ -248,7 +248,7 @@ add_definitions(
15
+ -DQT_NO_URL_CAST_FROM_STRING
16
+ -DQT_NO_CAST_TO_ASCII
17
+ -DQT_NO_CAST_FROM_BYTEARRAY
18
+ - -DQT_STRICT_ITERATORS
19
+ +# -DQT_STRICT_ITERATORS
20
+ -DQT_DISABLE_DEPRECATED_BEFORE=0x050700
21
+ )
22
+
23
+ diff --git a/src/apps/marble-qt/CMakeLists.txt b/src/apps/marble-qt/CMakeLists.txt
24
+ index d28e3aa5e..7bbf4a63c 100644
25
+ --- a/src/apps/marble-qt/CMakeLists.txt
26
+ +++ b/src/apps/marble-qt/CMakeLists.txt
27
+ @@ -48,7 +48,7 @@ if(STATIC_BUILD)
28
+ endif(STATIC_BUILD)
29
+
30
+ if(WIN32)
31
+ -install (TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX})
32
+ + install (TARGETS marble-qt RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/tools/marble)
33
+ else(WIN32)
34
+ if (APPLE)
35
+ # No need for this when installing to a bundle
36
+ diff --git a/src/lib/astro/CMakeLists.txt b/src/lib/astro/CMakeLists.txt
37
+ index 5e1afd60f..fc53985f4 100644
38
+ --- a/src/lib/astro/CMakeLists.txt
39
+ +++ b/src/lib/astro/CMakeLists.txt
40
+ @@ -50,7 +50,7 @@ target_include_directories(astro
41
+
42
+ # choose the correct target install library path
43
+ if(WIN32)
44
+ - INSTALL(TARGETS astro EXPORT AstroTargets RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX} ARCHIVE DESTINATION lib)
45
+ + INSTALL(TARGETS astro EXPORT AstroTargets RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
46
+ elseif(APPLE)
47
+ INSTALL(TARGETS astro LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib)
48
+ else()
49
+ diff --git a/src/lib/marble/CMakeLists.txt b/src/lib/marble/CMakeLists.txt
50
+ index 7d27be94b..f1f377967 100644
51
+ --- a/src/lib/marble/CMakeLists.txt
52
+ +++ b/src/lib/marble/CMakeLists.txt
53
+ @@ -448,7 +448,7 @@ target_include_directories(marblewidget
54
+
55
+ # choose the correct target install library path
56
+ if(WIN32)
57
+ - install(TARGETS marblewidget EXPORT MarbleTargets RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX} ARCHIVE DESTINATION lib)
58
+ + install(TARGETS marblewidget EXPORT MarbleTargets RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
59
+ elseif(APPLE)
60
+ install(TARGETS marblewidget LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib)
61
+ else()
62
+ diff --git a/src/lib/marble/declarative/CMakeLists.txt b/src/lib/marble/declarative/CMakeLists.txt
63
+ index dd5d519c4..482a02ad5 100644
64
+ --- a/src/lib/marble/declarative/CMakeLists.txt
65
+ +++ b/src/lib/marble/declarative/CMakeLists.txt
66
+ @@ -53,7 +53,7 @@ if(Qt5Positioning_FOUND)
67
+ endif()
68
+
69
+ if(WIN32)
70
+ - install(TARGETS marbledeclarative RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX} ARCHIVE DESTINATION lib)
71
+ + install(TARGETS marbledeclarative RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
72
+ else()
73
+ install(TARGETS marbledeclarative LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
74
+ endif()
75
+ diff --git a/src/plugins/positionprovider/CMakeLists.txt b/src/plugins/positionprovider/CMakeLists.txt
76
+ index 85591098e..87011876e 100644
77
+ --- a/src/plugins/positionprovider/CMakeLists.txt
78
+ +++ b/src/plugins/positionprovider/CMakeLists.txt
79
+ @@ -12,12 +12,12 @@ find_package(Qt5 ${REQUIRED_QT_VERSION}
80
+ COMPONENTS
81
+ Positioning
82
+ )
83
+ -marble_set_package_properties( Qt5Positioning PROPERTIES DESCRIPTION "a collection of APIs and frameworks" )
84
+ -marble_set_package_properties( Qt5Positioning PROPERTIES URL "https://www.qt.io/developers/" )
85
+ -marble_set_package_properties( Qt5Positioning PROPERTIES TYPE OPTIONAL PURPOSE "position information via Qt5Positioning" )
86
+ -if(Qt5Positioning_FOUND)
87
+ - ADD_SUBDIRECTORY( qtpositioning )
88
+ -endif()
89
+ +#marble_set_package_properties( Qt5Positioning PROPERTIES DESCRIPTION "a collection of APIs and frameworks" )
90
+ +#marble_set_package_properties( Qt5Positioning PROPERTIES URL "https://www.qt.io/developers/" )
91
+ +#arble_set_package_properties( Qt5Positioning PROPERTIES TYPE OPTIONAL PURPOSE "position information via Qt5Positioning" )
92
+ +#if(Qt5Positioning_FOUND)
93
+ +# ADD_SUBDIRECTORY( qtpositioning )
94
+ +#endif()
95
+
96
+
97
+ macro_optional_find_package(libwlocate)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/marble/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "marble",
3
+ "version-string": "19.08.2",
4
+ "port-version": 3,
5
+ "description": "Marble KDE library",
6
+ "homepage": "https://marble.kde.org",
7
+ "supports": "windows & x64 & !static",
8
+ "dependencies": [
9
+ "qt5-base",
10
+ "qt5-quickcontrols",
11
+ "qt5-svg",
12
+ "qt5-webchannel",
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ }
21
+ ]
22
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/marl/portfile.cmake ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO google/marl
4
+ REF 9929747c9ba6354691dbacaf14f9b35433871e5b #2022-03-02
5
+ SHA512 454399485d292526333417474a312302aaff90cf63bc06a95c2e8b87cb92eaea547457ba3c06413e079ca29f9ea64990b9da467aeaec6ec2aa3233efddab2407
6
+ HEAD_REF main
7
+ )
8
+
9
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" MARL_BUILD_SHARED)
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ OPTIONS
14
+ -DMARL_BUILD_SHARED=${MARL_BUILD_SHARED}
15
+ -DMARL_INSTALL=ON
16
+ )
17
+
18
+ vcpkg_cmake_install()
19
+
20
+ if(MARL_BUILD_SHARED)
21
+ vcpkg_replace_string(
22
+ "${CURRENT_PACKAGES_DIR}/include/marl/export.h"
23
+ "#ifdef MARL_DLL"
24
+ "#if 1 // #ifdef MARL_DLL"
25
+ )
26
+ endif()
27
+
28
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
29
+
30
+ vcpkg_copy_pdbs()
31
+
32
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
33
+
34
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/marl/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "marl",
3
+ "version-date": "2022-03-02",
4
+ "description": "A hybrid thread/fiber task scheduler written in modern C++",
5
+ "homepage": "https://github.com/google/marl",
6
+ "license": "Apache-2.0",
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
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathc/CMakeLists.txt ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.14)
2
+
3
+ project(mathc LANGUAGES C)
4
+
5
+ include(GNUInstallDirs)
6
+
7
+ add_library(mathc mathc.c)
8
+
9
+ target_include_directories(
10
+ mathc
11
+ PUBLIC
12
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
13
+ )
14
+
15
+ set_target_properties(mathc PROPERTIES PUBLIC_HEADER mathc.h)
16
+
17
+ install(TARGETS mathc EXPORT unofficial-mathc-config)
18
+
19
+ install(
20
+ EXPORT unofficial-mathc-config
21
+ NAMESPACE unofficial::mathc::
22
+ DESTINATION share/unofficial-mathc
23
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
24
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathc/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO felselva/mathc
6
+ REF d672725203fc80f6f79fba64533b87d51c32d714
7
+ SHA512 6db96b7ca9b26745b6ead774b547f6cccdecaef0b55cb766d4f26ae7149bbb72e2bd877cb7994455bd19cae129d014efaf40b50395b1114b7ac95dc6ed53bf34
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_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
21
+
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
23
+
24
+ # Handle copyright
25
+ configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathc/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "mathc",
3
+ "version-string": "2019-09-29",
4
+ "port-version": 1,
5
+ "description": "Pure C math library for 2D and 3D programming",
6
+ "homepage": "https://github.com/felselva/mathc"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/mathgl/fix_arma_sprintf.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git "a/include/mgl2/define.h" "b/include/mgl2/define.h"
2
+ index e23ec04..8e79086 100644
3
+ --- "a/include/mgl2/define.h"
4
+ +++ "b/include/mgl2/define.h"
5
+ @@ -141,7 +140,9 @@ typedef long msize;
6
+ #define getcwd _getcwd
7
+ #define chdir _chdir // BORLAND has chdir
8
+ #endif
9
+ +#if (_MSC_VER<1500)
10
+ #define snprintf _snprintf
11
+ +#endif
12
+ #if (_MSC_VER<1600) // based on https://hg.python.org/cpython/rev/9aedb876c2d7
13
+ #define hypot _hypot
14
+ #endif