Techt3o commited on
Commit
c9031bd
·
verified ·
1 Parent(s): dd3025f

d56785dfe89c6c53d0054cfba6d15d6ec6ac42c9e2b6802dd8e1456be81685c5

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/iir1/vcpkg.json +19 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ijg-libjpeg/CMakeLists.txt +63 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ijg-libjpeg/portfile.cmake +51 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ijg-libjpeg/vcpkg.json +7 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ilmbase/portfile.cmake +1 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ilmbase/vcpkg.json +9 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imath/portfile.cmake +24 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imath/vcpkg.json +17 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/0001-fix_find_package.patch +50 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/004-fix-find-sfml.patch +14 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/portfile.cmake +24 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/usage +10 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/vcpkg.json +20 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/CMakeLists.txt +228 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/imgui-config.cmake.in +27 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/portfile.cmake +82 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/vcpkg.json +97 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imguizmo/CMakeLists.txt +59 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imguizmo/portfile.cmake +24 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/imguizmo/vcpkg.json +17 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/immer/portfile.cmake +34 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/immer/vcpkg.json +21 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/implot/CMakeLists.txt +52 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/implot/portfile.cmake +24 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/implot/vcpkg.json +18 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/indicators/portfile.cmake +28 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/indicators/vcpkg.json +16 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/influxdb-cxx/include-stringview.patch +12 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/influxdb-cxx/portfile.cmake +29 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/influxdb-cxx/vcpkg.json +28 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/infoware/portfile.cmake +36 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/infoware/vcpkg.json +33 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/inih/CMakeLists.txt +15 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/inih/portfile.cmake +22 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/inih/vcpkg.json +6 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/CMakeLists.txt +54 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/portfile.cmake +28 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/vcpkg.json +7 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/win32_ssize_t.patch +29 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/inja/portfile.cmake +28 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/inja/vcpkg.json +9 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/always-generate-pdb.patch +80 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/intel-ipsec-targets-implib.cmake.in +5 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/intel-ipsec-targets.cmake.in +4 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/intel-ipsecConfig.cmake.in +16 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/portfile.cmake +105 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/usage +4 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/vcpkg.json +6 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-mkl/portfile.cmake +40 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-mkl/vcpkg.json +6 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/iir1/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "iir1",
3
+ "version": "1.9.0",
4
+ "port-version": 1,
5
+ "description": "Realtime C++ filter library",
6
+ "homepage": "https://github.com/berndporr/iir1",
7
+ "license": "MIT",
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ]
19
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ijg-libjpeg/CMakeLists.txt ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.13)
2
+ project(libjpeg LANGUAGES C)
3
+
4
+ option(BUILD_EXECUTABLES OFF)
5
+
6
+ #
7
+ # jconfig.h is a public header, so it must be genrated. Please reference the install.txt in jpegsr9d.zip
8
+ #
9
+ # jconfig.txt should contain #cmakedefine which is modified by porfile.cmake of ijg-libjpeg port in VcPkg
10
+ # By doing this we can skip 'configure' step. Visit https://github.com/LuaDist/libjpeg
11
+ #
12
+ include(CheckIncludeFile)
13
+ check_include_file(stddef.h HAVE_STDDEF_H)
14
+ check_include_file(stdlib.h HAVE_STDLIB_H)
15
+ configure_file(jconfig.txt ${CMAKE_CURRENT_SOURCE_DIR}/jconfig.h)
16
+
17
+ list(APPEND PUBLIC_HEADERS jpeglib.h jerror.h jmorecfg.h jconfig.h)
18
+
19
+ add_library(jpeg
20
+ ${PUBLIC_HEADERS} jinclude.h jpegint.h jversion.h
21
+ transupp.h jidctflt.c jidctfst.c jidctint.c jquant1.c jquant2.c jutils.c jmemnobs.c jaricom.c jerror.c jdatadst.c jdatasrc.c
22
+ jmemsys.h
23
+ jmemmgr.c
24
+ cdjpeg.h cderror.h
25
+ jcmaster.c jcmarker.c jcmainct.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcsample.c jctrans.c jcinit.c jcomapi.c jcparam.c jcprepct.c
26
+ jdmaster.c jdmarker.c jdmainct.c jdapimin.c jdapistd.c jdarith.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c jdsample.c jdtrans.c jdinput.c jdmerge.c jdpostct.c
27
+ jdct.h
28
+ jfdctflt.c jfdctfst.c jfdctint.c
29
+ )
30
+
31
+ if(WIN32)
32
+ target_compile_definitions(jpeg
33
+ PRIVATE
34
+ _CRT_SECURE_NO_WARNINGS
35
+ )
36
+ endif()
37
+
38
+ install(FILES ${PUBLIC_HEADERS}
39
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/include
40
+ )
41
+ install(TARGETS jpeg
42
+ RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
43
+ LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
44
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_PREFIX}/lib
45
+ )
46
+
47
+ if(BUILD_EXECUTABLES)
48
+ add_executable(cjpeg cdjpeg.c cjpeg.c rdbmp.c rdgif.c rdppm.c rdrle.c rdtarga.c rdswitch.c)
49
+ target_link_libraries(cjpeg PRIVATE jpeg)
50
+
51
+ add_executable(djpeg cdjpeg.c djpeg.c wrbmp.c wrgif.c wrppm.c wrrle.c wrtarga.c rdcolmap.c)
52
+ target_link_libraries(djpeg PRIVATE jpeg)
53
+
54
+ add_executable(jpegtran jpegtran.c cdjpeg.c rdswitch.c transupp.c)
55
+ target_link_libraries(jpegtran PRIVATE jpeg)
56
+
57
+ add_executable(rdjpgcom rdjpgcom.c)
58
+ add_executable(wrjpgcom wrjpgcom.c)
59
+
60
+ install(TARGETS cjpeg djpeg jpegtran rdjpgcom wrjpgcom
61
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/tools
62
+ )
63
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ijg-libjpeg/portfile.cmake ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(EXISTS ${CURRENT_INSTALLED_DIR}/share/libturbo-jpeg/copyright)
2
+ message(FATAL_ERROR "'${PORT}' conflicts with 'libturbo-jpeg'. Please remove libturbo-jpeg:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
3
+ endif()
4
+ if(EXISTS ${CURRENT_INSTALLED_DIR}/share/mozjpeg/copyright)
5
+ message(FATAL_ERROR "'${PORT}' conflicts with 'mozjpeg'. Please remove mozjpeg:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
6
+ endif()
7
+
8
+ if(VCPKG_TARGET_IS_WINDOWS)
9
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
10
+ endif()
11
+
12
+ vcpkg_download_distfile(ARCHIVE
13
+ URLS "http://www.ijg.org/files/jpegsr9d.zip"
14
+ FILENAME "jpegsr9d.zip"
15
+ SHA512 441a783c945fd549693dbe3932d8d35e1ea00d8464870646760ed84a636facb4d7afe0ca3ab988e7281a71e41c2e96be618b8c6a898f116517e639720bba82a3
16
+ )
17
+ vcpkg_extract_source_archive_ex(
18
+ OUT_SOURCE_PATH SOURCE_PATH
19
+ ARCHIVE ${ARCHIVE}
20
+ )
21
+
22
+ # Replace some #define in jconfig.txt to #cmakedefine so the CMakeLists.txt can run `configure_file` command.
23
+ # See https://github.com/LuaDist/libjpeg
24
+ vcpkg_replace_string(${SOURCE_PATH}/jconfig.txt
25
+ "#define HAVE_STDDEF_H"
26
+ "#cmakedefine HAVE_STDDEF_H"
27
+ )
28
+ vcpkg_replace_string(${SOURCE_PATH}/jconfig.txt
29
+ "#define HAVE_STDLIB_H"
30
+ "#cmakedefine HAVE_STDLIB_H"
31
+ )
32
+
33
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
34
+
35
+ vcpkg_configure_cmake(
36
+ SOURCE_PATH ${SOURCE_PATH}
37
+ PREFER_NINJA
38
+ OPTIONS
39
+ -DBUILD_EXECUTABLES=OFF # supports [tools] feature to enable this option?
40
+ )
41
+ vcpkg_install_cmake()
42
+ vcpkg_copy_pdbs()
43
+
44
+ # There is no LICENSE file, but README containes some legal text.
45
+ file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
46
+
47
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
48
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
49
+ endif()
50
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
51
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ijg-libjpeg/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ijg-libjpeg",
3
+ "version-string": "9d",
4
+ "description": "Independent JPEG Group's JPEG software",
5
+ "homepage": "http://www.ijg.org/",
6
+ "supports": "!emscripten & !wasm32"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ilmbase/portfile.cmake ADDED
@@ -0,0 +1 @@
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ilmbase/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ilmbase",
3
+ "version-string": "2.3.0",
4
+ "port-version": 1,
5
+ "description": "empty package, linking to newer one",
6
+ "dependencies": [
7
+ "openexr"
8
+ ]
9
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imath/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO AcademySoftwareFoundation/Imath
4
+ REF v3.1.5
5
+ SHA512 8344e42c75d8e4bb21facb837535f0c9e4a9489d9edebcc25d5d3c6063535f2bf54e4517d8fca3fedada248457aa07c9bd77d6e843a9d115278fc154de2cdc9d
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ OPTIONS
12
+ -DIMATH_INSTALL_SYM_LINK=OFF
13
+ -DBUILD_TESTING=OFF
14
+ )
15
+
16
+ vcpkg_cmake_install()
17
+
18
+ vcpkg_copy_pdbs()
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Imath)
20
+ vcpkg_fixup_pkgconfig()
21
+
22
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
23
+
24
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imath/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "imath",
3
+ "version": "3.1.5",
4
+ "description": "Imath is a C++ and Python library of 2D and 3D vector, matrix, and math operations for computer graphics.",
5
+ "homepage": "https://github.com/AcademySoftwareFoundation/Imath",
6
+ "license": "BSD-3-Clause",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/0001-fix_find_package.patch ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 3a974c4..8a1c6cd 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -41,34 +41,14 @@ if (IMGUI_SFML_FIND_SFML)
6
+ if (NOT BUILD_SHARED_LIBS)
7
+ set(SFML_STATIC_LIBRARIES ON)
8
+ endif()
9
+ - find_package(SFML 2.5 COMPONENTS graphics system window)
10
+ + find_package(SFML COMPONENTS graphics system window)
11
+
12
+ if(NOT SFML_FOUND)
13
+ message(FATAL_ERROR "SFML 2 directory not found. Set SFML_DIR to directory where SFML was built (or one which ccontains SFMLConfig.cmake)")
14
+ endif()
15
+ endif()
16
+
17
+ -# ImGui does not provide native support for CMakeLists, workaround for now to have
18
+ -# users specify IMGUI_DIR. Waiting for this PR to get merged...
19
+ -# https://github.com/ocornut/imgui/pull/1713
20
+ -if(NOT IMGUI_DIR)
21
+ - set(IMGUI_DIR "" CACHE PATH "imgui top-level directory")
22
+ - message(FATAL_ERROR "ImGui directory not found. Set IMGUI_DIR to imgui's top-level path (containing 'imgui.h' and other files).\n")
23
+ -endif()
24
+ -
25
+ -# This uses FindImGui.cmake provided in ImGui-SFML repo for now
26
+ -find_package(ImGui 1.80 REQUIRED)
27
+ -
28
+ -# these headers will be installed alongside ImGui-SFML
29
+ -set(IMGUI_PUBLIC_HEADERS
30
+ - ${IMGUI_INCLUDE_DIR}/imconfig.h
31
+ - ${IMGUI_INCLUDE_DIR}/imgui.h
32
+ - ${IMGUI_INCLUDE_DIR}/imgui_internal.h # not actually public, but users might need it
33
+ - ${IMGUI_INCLUDE_DIR}/imstb_rectpack.h
34
+ - ${IMGUI_INCLUDE_DIR}/imstb_textedit.h
35
+ - ${IMGUI_INCLUDE_DIR}/imstb_truetype.h
36
+ - ${IMGUI_INCLUDE_DIR}/misc/cpp/imgui_stdlib.h
37
+ -)
38
+ +find_package(imgui CONFIG REQUIRED)
39
+
40
+ if (IMGUI_SFML_IMGUI_DEMO)
41
+ list(APPEND IMGUI_SOURCES ${IMGUI_DEMO_SOURCES})
42
+ @@ -92,7 +72,7 @@ add_library(ImGui-SFML
43
+ add_library(ImGui-SFML::ImGui-SFML ALIAS ImGui-SFML)
44
+
45
+ target_link_libraries(ImGui-SFML
46
+ - PUBLIC
47
+ + imgui::imgui
48
+ sfml-graphics
49
+ sfml-system
50
+ sfml-window
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/004-fix-find-sfml.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 8a1c6cd..7156f51 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -38,9 +38,6 @@ set(IMGUI_SFML_CONFIG_INSTALL_DIR "" CACHE PATH "Path where user's config header
6
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
7
+
8
+ if (IMGUI_SFML_FIND_SFML)
9
+ - if (NOT BUILD_SHARED_LIBS)
10
+ - set(SFML_STATIC_LIBRARIES ON)
11
+ - endif()
12
+ find_package(SFML COMPONENTS graphics system window)
13
+
14
+ if(NOT SFML_FOUND)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO eliasdaler/imgui-sfml
6
+ REF 004efd85a590343e8c9d166dc9d2524c199c9450 #v2.5
7
+ SHA512 feb11f0a52f89eedc5af4c686b71290a48d69e7bc371f29536eb51752d00b6879d642625f494035d2ccc0500878757709afa2a3810ac17496506db754a3a4ed6
8
+ HEAD_REF master
9
+ PATCHES
10
+ 0001-fix_find_package.patch
11
+ 004-fix-find-sfml.patch
12
+ )
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ )
17
+ vcpkg_cmake_install()
18
+ vcpkg_copy_pdbs()
19
+
20
+ vcpkg_cmake_config_fixup(PACKAGE_NAME ImGui-SFML CONFIG_PATH lib/cmake/ImGui-SFML)
21
+
22
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
23
+
24
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/usage ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ The package imgui-sfml provides CMake targets:
2
+
3
+ find_package(imgui CONFIG REQUIRED)
4
+ find_package(SFML CONFIG REQUIRED COMPONENTS graphics system window)
5
+ find_package(ImGui-SFML CONFIG REQUIRED)
6
+ target_link_libraries(main PRIVATE
7
+ imgui::imgui
8
+ sfml-graphics sfml-system sfml-window
9
+ ImGui-SFML::ImGui-SFML
10
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui-sfml/vcpkg.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "imgui-sfml",
3
+ "version": "2.5",
4
+ "description": "ImGui binding for use with SFML",
5
+ "homepage": "https://github.com/eliasdaler/imgui-sfml",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ "imgui",
9
+ "opengl",
10
+ "sfml",
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ }
19
+ ]
20
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/CMakeLists.txt ADDED
@@ -0,0 +1,228 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.16)
2
+ project(imgui CXX)
3
+
4
+ set(CMAKE_DEBUG_POSTFIX d)
5
+
6
+ if(APPLE)
7
+ set(CMAKE_CXX_STANDARD 11)
8
+ enable_language(OBJCXX)
9
+ endif()
10
+
11
+ add_library(${PROJECT_NAME} "")
12
+ add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
13
+ target_include_directories(
14
+ ${PROJECT_NAME}
15
+ PUBLIC
16
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
17
+ $<INSTALL_INTERFACE:include>
18
+ )
19
+
20
+ target_sources(
21
+ ${PROJECT_NAME}
22
+ PRIVATE
23
+ ${CMAKE_CURRENT_SOURCE_DIR}/imgui.cpp
24
+ ${CMAKE_CURRENT_SOURCE_DIR}/imgui_demo.cpp
25
+ ${CMAKE_CURRENT_SOURCE_DIR}/imgui_draw.cpp
26
+ ${CMAKE_CURRENT_SOURCE_DIR}/imgui_tables.cpp
27
+ ${CMAKE_CURRENT_SOURCE_DIR}/imgui_widgets.cpp
28
+ ${CMAKE_CURRENT_SOURCE_DIR}/misc/cpp/imgui_stdlib.cpp
29
+ )
30
+
31
+ if(IMGUI_BUILD_ALLEGRO5_BINDING)
32
+ find_path(ALLEGRO5_INCLUDE_DIRS allegro5/allegro.h)
33
+ target_include_directories(${PROJECT_NAME} PRIVATE ${ALLEGRO5_INCLUDE_DIRS})
34
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_allegro5.cpp)
35
+ endif()
36
+
37
+ if(IMGUI_BUILD_DX9_BINDING)
38
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx9.cpp)
39
+ endif()
40
+
41
+ if(IMGUI_BUILD_DX10_BINDING)
42
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx10.cpp)
43
+ endif()
44
+
45
+ if(IMGUI_BUILD_DX11_BINDING)
46
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx11.cpp)
47
+ endif()
48
+
49
+ if(IMGUI_BUILD_DX12_BINDING)
50
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx12.cpp)
51
+ endif()
52
+
53
+ if(IMGUI_BUILD_GLFW_BINDING)
54
+ find_package(glfw3 CONFIG REQUIRED)
55
+ target_link_libraries(${PROJECT_NAME} PUBLIC glfw)
56
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_glfw.cpp)
57
+ endif()
58
+
59
+ if(IMGUI_BUILD_GLUT_BINDING)
60
+ find_package(GLUT REQUIRED)
61
+ target_link_libraries(${PROJECT_NAME} PUBLIC GLUT::GLUT)
62
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_glut.cpp)
63
+ endif()
64
+
65
+ if(IMGUI_BUILD_METAL_BINDING)
66
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_metal.mm)
67
+ set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_metal.mm PROPERTIES COMPILE_FLAGS -fobjc-weak)
68
+ endif()
69
+
70
+ if(IMGUI_BUILD_OPENGL2_BINDING)
71
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_opengl2.cpp)
72
+ endif()
73
+
74
+ if(IMGUI_BUILD_OPENGL3_BINDING)
75
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_opengl3.cpp)
76
+ endif()
77
+
78
+ if(IMGUI_BUILD_OSX_BINDING)
79
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_osx.mm)
80
+ endif()
81
+
82
+ if(IMGUI_BUILD_SDL2_BINDING)
83
+ find_package(SDL2 CONFIG REQUIRED)
84
+ target_link_libraries(${PROJECT_NAME} PUBLIC SDL2::SDL2)
85
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdl.cpp)
86
+ endif()
87
+
88
+ if(IMGUI_BUILD_SDL2_RENDERER_BINDING)
89
+ find_package(SDL2 CONFIG REQUIRED)
90
+ target_link_libraries(${PROJECT_NAME} PUBLIC SDL2::SDL2)
91
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdlrenderer.cpp)
92
+ endif()
93
+
94
+ if(IMGUI_BUILD_VULKAN_BINDING)
95
+ find_package(Vulkan REQUIRED)
96
+ target_link_libraries(${PROJECT_NAME} PUBLIC Vulkan::Vulkan)
97
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_vulkan.cpp)
98
+ endif()
99
+
100
+ if(IMGUI_BUILD_WIN32_BINDING)
101
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_win32.cpp)
102
+ endif()
103
+
104
+ if(IMGUI_FREETYPE)
105
+ find_package(freetype CONFIG REQUIRED)
106
+ target_link_libraries(${PROJECT_NAME} PUBLIC freetype)
107
+ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/misc/freetype/imgui_freetype.cpp)
108
+ target_compile_definitions(${PROJECT_NAME} PUBLIC IMGUI_ENABLE_FREETYPE)
109
+ endif()
110
+
111
+ if(IMGUI_USE_WCHAR32)
112
+ target_compile_definitions(${PROJECT_NAME} PUBLIC IMGUI_USE_WCHAR32)
113
+ endif()
114
+
115
+ list(REMOVE_DUPLICATES BINDINGS_SOURCES)
116
+
117
+ install(
118
+ TARGETS ${PROJECT_NAME}
119
+ EXPORT ${PROJECT_NAME}_target
120
+ ARCHIVE DESTINATION lib
121
+ LIBRARY DESTINATION lib
122
+ RUNTIME DESTINATION bin
123
+ )
124
+
125
+ foreach(BINDING_TARGET ${BINDING_TARGETS})
126
+ install(
127
+ TARGETS ${BINDING_TARGET}
128
+ EXPORT ${PROJECT_NAME}_target
129
+ ARCHIVE DESTINATION lib
130
+ LIBRARY DESTINATION lib
131
+ RUNTIME DESTINATION bin
132
+ )
133
+ endforeach()
134
+
135
+ if(NOT IMGUI_SKIP_HEADERS)
136
+ install(FILES
137
+ ${CMAKE_CURRENT_SOURCE_DIR}/imgui.h
138
+ ${CMAKE_CURRENT_SOURCE_DIR}/imconfig.h
139
+ ${CMAKE_CURRENT_SOURCE_DIR}/imgui_internal.h
140
+ ${CMAKE_CURRENT_SOURCE_DIR}/imstb_textedit.h
141
+ ${CMAKE_CURRENT_SOURCE_DIR}/imstb_rectpack.h
142
+ ${CMAKE_CURRENT_SOURCE_DIR}/imstb_truetype.h
143
+ ${CMAKE_CURRENT_SOURCE_DIR}/misc/cpp/imgui_stdlib.h
144
+ DESTINATION include
145
+ )
146
+
147
+ if(IMGUI_BUILD_ALLEGRO5_BINDING)
148
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_allegro5.h DESTINATION include)
149
+ endif()
150
+
151
+ if(IMGUI_BUILD_DX9_BINDING)
152
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx9.h DESTINATION include)
153
+ endif()
154
+
155
+ if(IMGUI_BUILD_DX10_BINDING)
156
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx10.h DESTINATION include)
157
+ endif()
158
+
159
+ if(IMGUI_BUILD_DX11_BINDING)
160
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx11.h DESTINATION include)
161
+ endif()
162
+
163
+ if(IMGUI_BUILD_DX12_BINDING)
164
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_dx12.h DESTINATION include)
165
+ endif()
166
+
167
+ if(IMGUI_BUILD_GLFW_BINDING)
168
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_glfw.h DESTINATION include)
169
+ endif()
170
+
171
+ if(IMGUI_BUILD_GLUT_BINDING)
172
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_glut.h DESTINATION include)
173
+ endif()
174
+
175
+ if(IMGUI_BUILD_METAL_BINDING)
176
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_metal.h DESTINATION include)
177
+ endif()
178
+
179
+ if(IMGUI_BUILD_OPENGL2_BINDING)
180
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_opengl2.h DESTINATION include)
181
+ endif()
182
+
183
+ if(IMGUI_BUILD_OPENGL3_BINDING)
184
+ install(
185
+ FILES
186
+ ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_opengl3.h
187
+ ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_opengl3_loader.h
188
+ DESTINATION
189
+ include
190
+ )
191
+ endif()
192
+
193
+ if(IMGUI_BUILD_OSX_BINDING)
194
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_osx.h DESTINATION include)
195
+ endif()
196
+
197
+ if(IMGUI_BUILD_SDL2_BINDING)
198
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdl.h DESTINATION include)
199
+ endif()
200
+
201
+ if(IMGUI_BUILD_SDL2_RENDERER_BINDING)
202
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_sdlrenderer.h DESTINATION include)
203
+ endif()
204
+
205
+ if(IMGUI_BUILD_VULKAN_BINDING)
206
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_vulkan.h DESTINATION include)
207
+ endif()
208
+
209
+ if(IMGUI_BUILD_WIN32_BINDING)
210
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/backends/imgui_impl_win32.h DESTINATION include)
211
+ endif()
212
+
213
+ if(IMGUI_FREETYPE)
214
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/misc/freetype/imgui_freetype.h DESTINATION include)
215
+ endif()
216
+ endif()
217
+
218
+ include(CMakePackageConfigHelpers)
219
+ configure_package_config_file(imgui-config.cmake.in imgui-config.cmake INSTALL_DESTINATION share/imgui)
220
+
221
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/imgui-config.cmake DESTINATION share/imgui)
222
+
223
+ install(
224
+ EXPORT ${PROJECT_NAME}_target
225
+ NAMESPACE ${PROJECT_NAME}::
226
+ FILE ${PROJECT_NAME}-targets.cmake
227
+ DESTINATION share/${PROJECT_NAME}
228
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/imgui-config.cmake.in ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_policy(SET CMP0012 NEW)
2
+
3
+ @PACKAGE_INIT@
4
+
5
+ include(CMakeFindDependencyMacro)
6
+
7
+ if (@IMGUI_BUILD_GLFW_BINDING@)
8
+ find_dependency(glfw3 CONFIG)
9
+ endif()
10
+
11
+ if (@IMGUI_BUILD_GLUT_BINDING@)
12
+ find_dependency(GLUT)
13
+ endif()
14
+
15
+ if (@IMGUI_BUILD_SDL2_BINDING@ OR @IMGUI_BUILD_SDL2_RENDERER_BINDING@)
16
+ find_dependency(SDL2 CONFIG)
17
+ endif()
18
+
19
+ if (@IMGUI_BUILD_VULKAN_BINDING@)
20
+ find_dependency(Vulkan)
21
+ endif()
22
+
23
+ if (@IMGUI_FREETYPE@)
24
+ find_dependency(freetype CONFIG)
25
+ endif()
26
+
27
+ include("${CMAKE_CURRENT_LIST_DIR}/imgui-targets.cmake")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/portfile.cmake ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ if ("docking-experimental" IN_LIST FEATURES)
4
+ vcpkg_from_github(
5
+ OUT_SOURCE_PATH SOURCE_PATH
6
+ REPO ocornut/imgui
7
+ REF 1ee252772ae9c0a971d06257bb5c89f628fa696a
8
+ SHA512 942cd8e39f490c15d90b6feb6f919ebeab8f6f8f9aacfcbf552daef24b0f7e637ad5f630767a52fd9993d84a80b5954c7b05f7400a9f96b6b739cf5680368119
9
+ HEAD_REF docking
10
+ )
11
+ else()
12
+ vcpkg_from_github(
13
+ OUT_SOURCE_PATH SOURCE_PATH
14
+ REPO ocornut/imgui
15
+ REF v1.87
16
+ SHA512 3255b06698ab9c8951953e1e0b6d160d64adfa4c011b21a4288547292a7f8fff586875faf9dae0677818bde65bd7e98da92f16f6beb1e6a66aa835edf32e8ce2
17
+ HEAD_REF master
18
+ )
19
+ endif()
20
+
21
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/imgui-config.cmake.in" DESTINATION "${SOURCE_PATH}")
22
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
23
+
24
+ if(("metal-binding" IN_LIST FEATURES OR "osx-binding" IN_LIST FEATURES) AND (NOT VCPKG_TARGET_IS_OSX))
25
+ message(FATAL_ERROR "Feature metal-binding and osx-binding are only supported on osx.")
26
+ endif()
27
+
28
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
29
+ FEATURES
30
+ allegro5-binding IMGUI_BUILD_ALLEGRO5_BINDING
31
+ dx9-binding IMGUI_BUILD_DX9_BINDING
32
+ dx10-binding IMGUI_BUILD_DX10_BINDING
33
+ dx11-binding IMGUI_BUILD_DX11_BINDING
34
+ dx12-binding IMGUI_BUILD_DX12_BINDING
35
+ glfw-binding IMGUI_BUILD_GLFW_BINDING
36
+ glut-binding IMGUI_BUILD_GLUT_BINDING
37
+ metal-binding IMGUI_BUILD_METAL_BINDING
38
+ opengl2-binding IMGUI_BUILD_OPENGL2_BINDING
39
+ opengl3-binding IMGUI_BUILD_OPENGL3_BINDING
40
+ osx-binding IMGUI_BUILD_OSX_BINDING
41
+ sdl2-binding IMGUI_BUILD_SDL2_BINDING
42
+ sdl2-renderer-binding IMGUI_BUILD_SDL2_RENDERER_BINDING
43
+ vulkan-binding IMGUI_BUILD_VULKAN_BINDING
44
+ win32-binding IMGUI_BUILD_WIN32_BINDING
45
+ freetype IMGUI_FREETYPE
46
+ wchar32 IMGUI_USE_WCHAR32
47
+ )
48
+
49
+ if ("libigl-imgui" IN_LIST FEATURES)
50
+ vcpkg_download_distfile(
51
+ IMGUI_FONTS_DROID_SANS_H
52
+ URLS
53
+ https://raw.githubusercontent.com/libigl/libigl-imgui/c3efb9b62780f55f9bba34561f79a3087e057fc0/imgui_fonts_droid_sans.h
54
+ FILENAME "imgui_fonts_droid_sans.h"
55
+ SHA512
56
+ abe9250c9a5989e0a3f2285bbcc83696ff8e38c1f5657c358e6fe616ff792d3c6e5ff2fa23c2eeae7d7b307392e0dc798a95d14f6d10f8e9bfbd7768d36d8b31
57
+ )
58
+
59
+ file(INSTALL "${IMGUI_FONTS_DROID_SANS_H}" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
60
+ endif()
61
+
62
+ vcpkg_cmake_configure(
63
+ SOURCE_PATH "${SOURCE_PATH}"
64
+ OPTIONS
65
+ ${FEATURE_OPTIONS}
66
+ OPTIONS_DEBUG
67
+ -DIMGUI_SKIP_HEADERS=ON
68
+ )
69
+
70
+ vcpkg_cmake_install()
71
+
72
+ if ("freetype" IN_LIST FEATURES)
73
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/imconfig.h" "//#define IMGUI_ENABLE_FREETYPE" "#define IMGUI_ENABLE_FREETYPE")
74
+ endif()
75
+ if ("wchar32" IN_LIST FEATURES)
76
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/imconfig.h" "//#define IMGUI_USE_WCHAR32" "#define IMGUI_USE_WCHAR32")
77
+ endif()
78
+
79
+ vcpkg_copy_pdbs()
80
+ vcpkg_cmake_config_fixup()
81
+
82
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imgui/vcpkg.json ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "imgui",
3
+ "version": "1.87",
4
+ "description": "Bloat-free Immediate Mode Graphical User interface for C++ with minimal dependencies.",
5
+ "homepage": "https://github.com/ocornut/imgui",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ],
17
+ "features": {
18
+ "allegro5-binding": {
19
+ "description": "Make available Allegro5 binding",
20
+ "dependencies": [
21
+ "allegro5"
22
+ ]
23
+ },
24
+ "docking-experimental": {
25
+ "description": "Build with docking support"
26
+ },
27
+ "dx10-binding": {
28
+ "description": "Make available DirectX10 binding"
29
+ },
30
+ "dx11-binding": {
31
+ "description": "Make available DirectX11 binding"
32
+ },
33
+ "dx12-binding": {
34
+ "description": "Make available DirectX12 binding"
35
+ },
36
+ "dx9-binding": {
37
+ "description": "Make available DirectX9 binding"
38
+ },
39
+ "freetype": {
40
+ "description": "Build font atlases using FreeType instead of stb_truetype",
41
+ "dependencies": [
42
+ "freetype"
43
+ ]
44
+ },
45
+ "glfw-binding": {
46
+ "description": "Make available GLFW binding",
47
+ "dependencies": [
48
+ "glfw3"
49
+ ]
50
+ },
51
+ "glut-binding": {
52
+ "description": "Make available Glut binding",
53
+ "dependencies": [
54
+ "freeglut"
55
+ ]
56
+ },
57
+ "libigl-imgui": {
58
+ "description": "Install the libigl-imgui headers"
59
+ },
60
+ "metal-binding": {
61
+ "description": "Make available Metal binding"
62
+ },
63
+ "opengl2-binding": {
64
+ "description": "Make available OpenGL (legacy) binding"
65
+ },
66
+ "opengl3-binding": {
67
+ "description": "Make available OpenGL3/ES/ES2 (modern) binding"
68
+ },
69
+ "osx-binding": {
70
+ "description": "Make available OSX binding"
71
+ },
72
+ "sdl2-binding": {
73
+ "description": "Make available SDL2 binding",
74
+ "dependencies": [
75
+ "sdl2"
76
+ ]
77
+ },
78
+ "sdl2-renderer-binding": {
79
+ "description": "Make available SDL2 Renderer binding",
80
+ "dependencies": [
81
+ "sdl2"
82
+ ]
83
+ },
84
+ "vulkan-binding": {
85
+ "description": "Make available Vulkan binding",
86
+ "dependencies": [
87
+ "vulkan"
88
+ ]
89
+ },
90
+ "wchar32": {
91
+ "description": "Use WCHAR32 instead of WCHAR16"
92
+ },
93
+ "win32-binding": {
94
+ "description": "Make available Win32 binding"
95
+ }
96
+ }
97
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imguizmo/CMakeLists.txt ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(imguizmo)
3
+
4
+ find_package(imgui CONFIG REQUIRED)
5
+ get_target_property(IMGUI_INCLUDE_DIRS imgui::imgui
6
+ INTERFACE_INCLUDE_DIRECTORIES
7
+ )
8
+
9
+ add_library(${PROJECT_NAME} "")
10
+ add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
11
+
12
+ target_compile_options(${PROJECT_NAME} PRIVATE "-std=c++11")
13
+
14
+ target_include_directories(
15
+ ${PROJECT_NAME}
16
+ PUBLIC
17
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
18
+ $<INSTALL_INTERFACE:include>
19
+ PRIVATE
20
+ ${IMGUI_INCLUDE_DIRS}
21
+ )
22
+
23
+ target_sources(
24
+ ${PROJECT_NAME}
25
+ PRIVATE
26
+ ${CMAKE_CURRENT_SOURCE_DIR}/GraphEditor.cpp
27
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImCurveEdit.cpp
28
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImGradient.cpp
29
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImGuizmo.cpp
30
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImSequencer.cpp
31
+ )
32
+
33
+ install(
34
+ TARGETS ${PROJECT_NAME}
35
+ EXPORT ${PROJECT_NAME}_target
36
+ ARCHIVE DESTINATION lib
37
+ ARCHIVE DESTINATION lib
38
+ RUNTIME DESTINATION bin
39
+ )
40
+
41
+ if (NOT IMGUIZMO_SKIP_HEADERS)
42
+ install(
43
+ FILES
44
+ ${CMAKE_CURRENT_SOURCE_DIR}/GraphEditor.h
45
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImCurveEdit.h
46
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImGradient.h
47
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImGuizmo.h
48
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImSequencer.h
49
+ ${CMAKE_CURRENT_SOURCE_DIR}/ImZoomSlider.h
50
+ DESTINATION include
51
+ )
52
+ endif()
53
+
54
+ install(
55
+ EXPORT ${PROJECT_NAME}_target
56
+ NAMESPACE ${PROJECT_NAME}::
57
+ FILE ${PROJECT_NAME}-config.cmake
58
+ DESTINATION share/${PROJECT_NAME}
59
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imguizmo/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO CedricGuillemet/ImGuizmo
6
+ REF 1.83
7
+ SHA512 23285398688b4cdf3128ecb918b70c9a52f06c8e911da57430442b838cecf653e233d8cdfefc6acd3e4da381869ffc6fb74bcaaafc8e33657d6060a645517363
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS_DEBUG
16
+ -DIMGUIZMO_SKIP_HEADERS=ON
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+
21
+ vcpkg_copy_pdbs()
22
+ vcpkg_cmake_config_fixup()
23
+
24
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/imguizmo/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "imguizmo",
3
+ "version": "1.83",
4
+ "description": "Immediate mode 3D gizmo for scene editing and other controls based on Dear ImGui",
5
+ "homepage": "https://github.com/CedricGuillemet/ImGuizmo",
6
+ "dependencies": [
7
+ "imgui",
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/immer/portfile.cmake ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO arximboldi/immer
6
+ REF a1271fa712342f5c6dfad876820da17e10c28214
7
+ SHA512 7ea544c88b7a3742ebeedabe5ff7ba78178b3523c1c8564b5c0daae4044dda22340b0531e1382618557d1c118222da4a7ce06dde02e4bc05833514dde1cf2dd1
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ "docs" immer_BUILD_DOCS
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ OPTIONS
19
+ -DENABLE_PYTHON=OFF
20
+ -DENABLE_GUILE=OFF
21
+ -DENABLE_BOOST_COROUTINE=OFF
22
+ -Dimmer_BUILD_TESTS=OFF
23
+ -Dimmer_BUILD_EXAMPLES=OFF
24
+ -Dimmer_BUILD_EXTRAS=OFF
25
+ ${FEATURE_OPTIONS}
26
+ )
27
+
28
+ vcpkg_cmake_install()
29
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Immer)
30
+
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
32
+
33
+ # Handle copyright
34
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/immer/vcpkg.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "immer",
3
+ "version-date": "2022-02-12",
4
+ "description": "Postmodern immutable and persistent data structures for C++",
5
+ "homepage": "https://sinusoid.es/immer/",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ },
11
+ {
12
+ "name": "vcpkg-cmake-config",
13
+ "host": true
14
+ }
15
+ ],
16
+ "features": {
17
+ "docs": {
18
+ "description": "Build documentation"
19
+ }
20
+ }
21
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/implot/CMakeLists.txt ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(implot CXX)
3
+
4
+ find_package(imgui CONFIG REQUIRED)
5
+ get_target_property(IMGUI_INCLUDE_DIRS imgui::imgui
6
+ INTERFACE_INCLUDE_DIRECTORIES
7
+ )
8
+
9
+ set(CMAKE_DEBUG_POSTFIX d)
10
+
11
+ add_library(${PROJECT_NAME} "")
12
+ add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
13
+ target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
14
+ target_include_directories(
15
+ ${PROJECT_NAME}
16
+ PUBLIC
17
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
18
+ $<INSTALL_INTERFACE:include>
19
+ PRIVATE
20
+ ${IMGUI_INCLUDE_DIRS}
21
+ )
22
+
23
+ target_sources(
24
+ ${PROJECT_NAME}
25
+ PRIVATE
26
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot.cpp
27
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot_items.cpp
28
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot_demo.cpp
29
+ )
30
+
31
+ install(
32
+ TARGETS ${PROJECT_NAME}
33
+ EXPORT ${PROJECT_NAME}_target
34
+ ARCHIVE DESTINATION lib
35
+ LIBRARY DESTINATION lib
36
+ RUNTIME DESTINATION bin
37
+ )
38
+
39
+ if(NOT IMPLOT_SKIP_HEADERS)
40
+ install(FILES
41
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot.h
42
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot_internal.h
43
+ DESTINATION include
44
+ )
45
+ endif()
46
+
47
+ install(
48
+ EXPORT ${PROJECT_NAME}_target
49
+ NAMESPACE ${PROJECT_NAME}::
50
+ FILE ${PROJECT_NAME}-config.cmake
51
+ DESTINATION share/${PROJECT_NAME}
52
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/implot/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO epezent/implot
6
+ REF v0.13
7
+ SHA512 ed653a14f1174b1689c7b8e5761455644e41e75a3cdf5a76d96adf8e286893418660809c1c158fa405c1c48a82752ae9c3b8e1eb14bd0015081604cdb44d95f4
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS_DEBUG
16
+ -DIMPLOT_SKIP_HEADERS=ON
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+
21
+ vcpkg_copy_pdbs()
22
+ vcpkg_cmake_config_fixup()
23
+
24
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/implot/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "implot",
3
+ "version": "0.13",
4
+ "description": "Advanced 2D Plotting for Dear ImGui",
5
+ "homepage": "https://github.com/epezent/implot",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ "imgui",
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/indicators/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO p-ranav/indicators
6
+ REF v2.2
7
+ SHA512 7CED2D3C320D51C7E0569104744730C8E2F952350BCAE214A9781EB43EF4002C8314937DB78461351741FC4C3AEE7A1364582B1274991E95EB30006A5F2A7EF9
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ OPTIONS
14
+ -DINDICATORS_BUILD_TESTS=OFF
15
+ -DINDICATORS_SAMPLES=OFF
16
+ -DINDICATORS_DEMO=OFF
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+
21
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/indicators)
22
+
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
24
+
25
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
26
+ file(INSTALL "${SOURCE_PATH}/LICENSE.termcolor" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
27
+
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/indicators/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "indicators",
3
+ "version": "2.2",
4
+ "description": "Activity indicators for modern C++",
5
+ "homepage": "https://github.com/p-ranav/indicators",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ },
11
+ {
12
+ "name": "vcpkg-cmake-config",
13
+ "host": true
14
+ }
15
+ ]
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/influxdb-cxx/include-stringview.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/Point.cxx b/src/Point.cxx
2
+ index 8f7fc10..95b119e 100644
3
+ --- a/src/Point.cxx
4
+ +++ b/src/Point.cxx
5
+ @@ -30,6 +30,7 @@
6
+ #include <memory>
7
+ #include <sstream>
8
+ #include <iomanip>
9
+ +#include <string_view>
10
+
11
+ namespace influxdb
12
+ {
third-party/DPVO/Pangolin/scripts/vcpkg/ports/influxdb-cxx/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO offa/influxdb-cxx
4
+ REF v0.6.7
5
+ SHA512 4e871c6d06c94b24b45aeedb7c74c75aed17332fbde76fc1e6c2ad06aeb41e268a95f4cab1c12c4402765c11811feb84bf48d60b138717c485327848782e402c
6
+ HEAD_REF master
7
+ PATCHES include-stringview.patch
8
+ )
9
+
10
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
11
+ FEATURES
12
+ boost INFLUXCXX_WITH_BOOST
13
+ )
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ -DINFLUXCXX_TESTING=OFF
19
+ -DINFLUXCXX_SYSTEMTEST=OFF
20
+ ${FEATURE_OPTIONS}
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
26
+
27
+ vcpkg_cmake_config_fixup(PACKAGE_NAME InfluxDB CONFIG_PATH lib/cmake/InfluxDB)
28
+
29
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/influxdb-cxx/vcpkg.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "influxdb-cxx",
3
+ "version": "0.6.7",
4
+ "port-version": 1,
5
+ "description": "InfluxDB C++ client library",
6
+ "homepage": "https://github.com/offa/influxdb-cxx",
7
+ "dependencies": [
8
+ "curl",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ],
18
+ "features": {
19
+ "boost": {
20
+ "description": "Enables UDP and Unix sockets as Transport Layer",
21
+ "dependencies": [
22
+ "boost-asio",
23
+ "boost-conversion",
24
+ "boost-property-tree"
25
+ ]
26
+ }
27
+ }
28
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/infoware/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO ThePhD/infoware
4
+ REF 50cb0982aceb32c8eb57aa6bc5011aced2c379df
5
+ SHA512 fe8182998a9e9dbed3dc3985a1161da11b340562628a71da8840aa4d4c56382ddc3ddef3d094e5d9c7c06481a2076dcff7fdb561bd169dd9d1849da4b4c6a064
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_check_features(
10
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
11
+ FEATURES
12
+ x11 INFOWARE_USE_X11
13
+ d3d INFOWARE_USE_D3D
14
+ opencl INFOWARE_USE_OPENCL
15
+ opengl INFOWARE_USE_OPENGL
16
+ )
17
+
18
+ # git must be injected, because vcpkg isolates the build
19
+ # from the environment entirely to have reproducible builds
20
+ vcpkg_find_acquire_program(GIT)
21
+
22
+ vcpkg_cmake_configure(
23
+ SOURCE_PATH ${SOURCE_PATH}
24
+ OPTIONS
25
+ ${FEATURE_OPTIONS}
26
+ -DINFOWARE_EXAMPLES=OFF
27
+ -DINFOWARE_TESTS=OFF
28
+ -DGIT_EXECUTABLE=${GIT}
29
+ -DGIT_FOUND=true
30
+ )
31
+
32
+ vcpkg_cmake_install()
33
+ vcpkg_cmake_config_fixup()
34
+
35
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
36
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/infoware/vcpkg.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$reason": "Note that independent usage and testing may work, but it seems to fail in CI environments for potential cross-compilation, and is thusly noted here to note break how vcpkg builds things!",
3
+ "name": "infoware",
4
+ "version-date": "2021-06-16",
5
+ "port-version": 1,
6
+ "description": "C++ Library for pulling system and hardware information, without hitting the command line.",
7
+ "homepage": "https://github.com/ThePhD/infoware",
8
+ "supports": "!(arm | uwp)",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ],
19
+ "features": {
20
+ "d3d": {
21
+ "description": "Prefer usage of Direct3D to find graphical capabilities (typically only works on Windows systems)."
22
+ },
23
+ "opencl": {
24
+ "description": "Prefer usage of OpenCL to find graphical capabilities of the system."
25
+ },
26
+ "opengl": {
27
+ "description": "Prefer usage of OpenGL to find graphical capabilities (may require additional libraries to be available for linking depending on the system)."
28
+ },
29
+ "x11": {
30
+ "description": "Prefer usage of X11 to find graphical capabilities."
31
+ }
32
+ }
33
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/inih/CMakeLists.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ project(inih)
2
+
3
+ set(SOURCES ini.c cpp/INIReader.cpp)
4
+ set(HEADERS ini.h cpp/INIReader.h)
5
+
6
+ add_library(inih ${SOURCES})
7
+
8
+ install(
9
+ TARGETS inih
10
+ RUNTIME DESTINATION bin
11
+ LIBRARY DESTINATION lib
12
+ ARCHIVE DESTINATION lib
13
+ )
14
+
15
+ install(FILES ${HEADERS} DESTINATION include)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/inih/portfile.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO benhoyt/inih
6
+ REF d7f465792c0c7686b50ed45c9a435394ae418d3e # r51
7
+ SHA512 f3b621225933d74e9b130957aab1d55a82f06fd836aace439f9192a393d82a446e9f2152bb617a73a1dc681a821fc31d217c41f38c8ef8eeef7ad64c3e274b5d
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
+ file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/inih RENAME copyright)
21
+
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/inih/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "inih",
3
+ "version-string": "51",
4
+ "port-version": 1,
5
+ "description": "Simple .INI file parser"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/CMakeLists.txt ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.14)
2
+
3
+ project(iniparser LANGUAGES C)
4
+
5
+ include(GNUInstallDirs)
6
+
7
+ set(CMAKE_DISABLE_SOURCE_CHANGES ON)
8
+ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
9
+
10
+ # iniparser.pc
11
+ set(prefix ${CMAKE_INSTALL_PREFIX})
12
+ set(libdir ${prefix}/${CMAKE_INSTALL_LIBDIR})
13
+ set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
14
+ set(datarootdir ${prefix}/${CMAKE_INSTALL_DATAROOTDIR})
15
+ set(datadir ${prefix}/${CMAKE_INSTALL_DATADIR})
16
+
17
+ configure_file(iniparser.pc ${CMAKE_CURRENT_BINARY_DIR}/iniparser.pc)
18
+
19
+ set(iniparser_sources
20
+ src/dictionary.c
21
+ src/iniparser.c
22
+ )
23
+
24
+ add_library(iniparser ${iniparser_sources})
25
+
26
+ target_include_directories(iniparser
27
+ PUBLIC
28
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>
29
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
30
+ )
31
+
32
+ target_compile_definitions(iniparser
33
+ PRIVATE
34
+ $<$<C_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
35
+ )
36
+
37
+ install(TARGETS iniparser EXPORT unofficial-iniparser-config)
38
+
39
+ install(
40
+ EXPORT unofficial-iniparser-config
41
+ NAMESPACE unofficial::iniparser::
42
+ DESTINATION share/unofficial-iniparser
43
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
44
+ )
45
+
46
+ install(
47
+ FILES src/dictionary.h src/iniparser.h
48
+ DESTINATION include
49
+ )
50
+
51
+ install(
52
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/iniparser.pc
53
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
54
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO ndevilla/iniparser
6
+ REF f858275f7f307eecba84c2f5429483f9f28007f8
7
+ SHA512 48c80b2163f86d8ca0f3253128d8528214e2f0680b4bceb686180c01b29cd2a0c3b9d6e7156a8e28649b14bc1d8a51b34c2d3d258013b35f69aaf6c3ded9ecdc
8
+ HEAD_REF master
9
+ PATCHES
10
+ win32_ssize_t.patch
11
+ )
12
+
13
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
14
+
15
+ vcpkg_configure_cmake(
16
+ SOURCE_PATH ${SOURCE_PATH}
17
+ PREFER_NINJA
18
+ )
19
+
20
+ vcpkg_install_cmake()
21
+
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
23
+
24
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
25
+
26
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
27
+
28
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "iniparser",
3
+ "version-string": "2020-04-06",
4
+ "port-version": 2,
5
+ "description": "C library for parsing INI-style files",
6
+ "homepage": "ndevilla.free.fr/iniparser"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/iniparser/win32_ssize_t.patch ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/dictionary.c b/src/dictionary.c
2
+ index cb7ccd4..7985ab3 100644
3
+ --- a/src/dictionary.c
4
+ +++ b/src/dictionary.c
5
+ @@ -18,7 +18,6 @@
6
+ #include <stdio.h>
7
+ #include <stdlib.h>
8
+ #include <string.h>
9
+ -#include <unistd.h>
10
+
11
+ /** Maximum value size for integers and doubles. */
12
+ #define MAXVALSZ 1024
13
+ diff --git a/src/dictionary.h b/src/dictionary.h
14
+ index d04b6ce..929ae17 100644
15
+ --- a/src/dictionary.h
16
+ +++ b/src/dictionary.h
17
+ @@ -21,7 +21,12 @@
18
+ #include <stdio.h>
19
+ #include <stdlib.h>
20
+ #include <string.h>
21
+ +#ifdef _MSC_VER
22
+ +#include <BaseTsd.h>
23
+ +typedef SSIZE_T ssize_t;
24
+ +#else
25
+ #include <unistd.h>
26
+ +#endif
27
+
28
+ #ifdef __cplusplus
29
+ extern "C" {
third-party/DPVO/Pangolin/scripts/vcpkg/ports/inja/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO pantor/inja
4
+ REF 2d515078c647457436556763aca8d4bf7d11d5e8 # v3.3.0
5
+ SHA512 4e2f63297eede016772e4915cacfec57b49633f2a5fb80862bbd091d274f688ea1fbe958f97699e930fdee9f390ce0637513f4265190c171104d9eae9b12a59d
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_configure_cmake(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ PREFER_NINJA
12
+ OPTIONS
13
+ -DINJA_USE_EMBEDDED_JSON=OFF
14
+ -DBUILD_TESTING=OFF
15
+ -DBUILD_BENCHMARK=OFF
16
+ )
17
+
18
+ vcpkg_install_cmake()
19
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/inja)
20
+ vcpkg_copy_pdbs()
21
+
22
+ # Inja is a header-only library
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
25
+ # Don't need built-in nlohmann-json as this package depends on nlohmann-json
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/inja/json")
27
+
28
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/inja/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "inja",
3
+ "version": "3.3.0",
4
+ "description": "Inja - A Template Engine for Modern C++",
5
+ "homepage": "https://github.com/pantor/inja",
6
+ "dependencies": [
7
+ "nlohmann-json"
8
+ ]
9
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/always-generate-pdb.patch ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From 19d3b3fca689fb87e819b0b27bc74d1f52fcd2c8 Mon Sep 17 00:00:00 2001
2
+ From: Billy Robert O'Neal III <[email protected]>
3
+ Date: Wed, 12 Jan 2022 12:40:30 +0000
4
+ Subject: [PATCH] lib: generate PDB in release build on Windows
5
+
6
+ PDBs are necessary for postmortem debugging and for teams to get reports
7
+ from Watson, so they should be built for released software too. This
8
+ change always passes /DEBUG to the MSVC linker. That switch controls
9
+ whether a PDB is generated (as in "generate debugging information") not
10
+ a statement that the resulting files are the debug specific version of
11
+ your library.
12
+
13
+ /DEBUG changes the default values of /INCREMENTAL (to on) and /OPT:REF
14
+ and /OPT:ICF to off, so those are changed back to incremental off and
15
+ linker optimizations on in debug builds.
16
+
17
+ This missing PDB issue was discovered in fixing intel-ipsec's port in
18
+ vcpkg to build on Windows (https://github.com/microsoft/vcpkg/pull/22269).
19
+
20
+ intel-ipsec-mb vcpkg PR link is https://github.com/microsoft/vcpkg/pull/5586
21
+ ---
22
+ lib/win_x64.mak | 12 +++++++-----
23
+ 1 file changed, 7 insertions(+), 5 deletions(-)
24
+
25
+ diff --git a/lib/win_x64.mak b/lib/win_x64.mak
26
+ index 89162feb..bb62b2ea 100644
27
+ --- a/lib/win_x64.mak
28
+ +++ b/lib/win_x64.mak
29
+ @@ -12,7 +12,7 @@
30
+ # * Neither the name of Intel Corporation nor the names of its contributors
31
+ # may be used to endorse or promote products derived from this software
32
+ # without specific prior written permission.
33
+ -#
34
+ +#
35
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
36
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
37
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38
+ @@ -71,14 +71,14 @@ LIB_DIR = .\
39
+
40
+ !ifdef DEBUG
41
+ OPT = $(DEBUG_OPT)
42
+ -DCFLAGS = /DDEBUG /Z7
43
+ +DCFLAGS = /DDEBUG
44
+ DAFLAGS = -gcv8
45
+ -DLFLAGS = /DEBUG
46
+ +DLFLAGS = /DEBUG /INCREMENTAL:NO
47
+ !else
48
+ OPT = /O2 /Oi
49
+ DCFLAGS =
50
+ DAFLAGS =
51
+ -DLFLAGS = /RELEASE
52
+ +DLFLAGS = /RELEASE /DEBUG /OPT:REF /OPT:ICF /INCREMENTAL:NO
53
+ !endif
54
+
55
+ !if "$(SAFE_DATA)" != "n"
56
+ @@ -98,7 +98,7 @@ DAFLAGS = $(DAFLAGS) -DSAFE_LOOKUP
57
+
58
+ CC = cl
59
+ CFLAGS_ALL = $(EXTRA_CFLAGS) /DNO_COMPAT_IMB_API_053 /I. /Iinclude /Ino-aesni \
60
+ - /nologo /Y- /W3 /WX- /Gm- /fp:precise /EHsc
61
+ + /nologo /Y- /W3 /WX- /Gm- /fp:precise /EHsc /Z7
62
+
63
+ CFLAGS = $(CFLAGS_ALL) $(OPT) $(DCFLAGS)
64
+ CFLAGS_NO_SIMD = $(CFLAGS_ALL) /Od $(DCFLAGS)
65
+ @@ -633,6 +633,7 @@ install:
66
+ -copy /Y /V /B $(LIBBASE).lib "$(INSTDIR)"
67
+ -copy /Y /V /A intel-ipsec-mb.h "$(INSTDIR)"
68
+ !if "$(SHARED)" == "y"
69
+ + -copy /Y /V /B $(LIB_DIR)\$(LIBBASE).pdb "$(INSTDIR)"
70
+ -copy /Y /V /B $(LIB_DIR)\$(LIBBASE).dll "$(INSTDIR)"
71
+ -copy /Y /V /B $(LIB_DIR)\$(LIBBASE).dll "%windir%\system32"
72
+ !endif
73
+ @@ -641,6 +642,7 @@ uninstall:
74
+ !if "$(SHARED)" == "y"
75
+ -del /Q "%windir%\system32\$(LIBBASE).dll"
76
+ -del /Q "$(INSTDIR)\$(LIBBASE).dll"
77
+ + -del /Q "$(INSTDIR)\$(LIBBASE).pdb"
78
+ !endif
79
+ -del /Q "$(INSTDIR)\$(LIBBASE).def"
80
+ -del /Q "$(INSTDIR)\$(LIBBASE).exp"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/intel-ipsec-targets-implib.cmake.in ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ set_property(TARGET IPSEC::ipsec APPEND PROPERTY IMPORTED_CONFIGURATIONS @INTEL_IPSEC_CONFIGURATION@)
2
+ set_target_properties(IPSEC::ipsec PROPERTIES
3
+ IMPORTED_LOCATION_@INTEL_IPSEC_CONFIGURATION@ "${_IMPORT_PREFIX}/@INTEL_IPSEC_LOCATION@"
4
+ IMPORTED_IMPLIB_@INTEL_IPSEC_CONFIGURATION@ "${_IMPORT_PREFIX}/@INTEL_IPSEC_IMPLIB@"
5
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/intel-ipsec-targets.cmake.in ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ set_property(TARGET IPSEC::ipsec APPEND PROPERTY IMPORTED_CONFIGURATIONS @INTEL_IPSEC_CONFIGURATION@)
2
+ set_target_properties(IPSEC::ipsec PROPERTIES
3
+ IMPORTED_LOCATION_@INTEL_IPSEC_CONFIGURATION@ "${_IMPORT_PREFIX}/@INTEL_IPSEC_LOCATION@"
4
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/intel-ipsecConfig.cmake.in ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(TARGET IPSEC::ipsec)
2
+ return()
3
+ endif()
4
+
5
+ get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) # intel-ipsec
6
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) # share
7
+ get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) # package root
8
+ add_library(IPSEC::ipsec @INTEL_IPSEC_STATIC_OR_SHARED@ IMPORTED)
9
+ set_target_properties(IPSEC::ipsec PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include")
10
+ set(IPSEC_ipsec_FOUND 1)
11
+
12
+ get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
13
+ file(GLOB CONFIG_FILES "${_DIR}/intel-ipsec-targets-*.cmake")
14
+ foreach(f ${CONFIG_FILES})
15
+ include(${f})
16
+ endforeach()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/portfile.cmake ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO intel/intel-ipsec-mb
4
+ REF bde82c8737edc04d80549f0a68225ede7e5cefd #v1.1
5
+ SHA512 f41dcde88b062e8ec2327987c6d36cd4f74a5e4fea386cc1ef8364f1dc432a2db02ca7d3312c0471b443cf93e815af6d74a4819c249afd6777aa91693b2546e5
6
+ HEAD_REF master
7
+ PATCHES
8
+ always-generate-pdb.patch # https://github.com/intel/intel-ipsec-mb/pull/93
9
+ )
10
+
11
+ vcpkg_find_acquire_program(NASM)
12
+ get_filename_component(NASM_DIR "${NASM}" DIRECTORY)
13
+ vcpkg_add_to_path(PREPEND "${NASM_DIR}")
14
+
15
+ vcpkg_list(SET MAKE_OPTIONS)
16
+ set(INTEL_IPSEC_STATIC_OR_SHARED SHARED)
17
+ if ("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static")
18
+ vcpkg_list(APPEND MAKE_OPTIONS SHARED=n)
19
+ set(INTEL_IPSEC_STATIC_OR_SHARED STATIC)
20
+ endif()
21
+
22
+ set(DEBUG_LIB "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib")
23
+ set(RELEASE_LIB "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib")
24
+
25
+ if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
26
+ vcpkg_build_nmake(
27
+ SOURCE_PATH "${SOURCE_PATH}"
28
+ PROJECT_SUBPATH lib
29
+ PROJECT_NAME win_x64.mak
30
+ OPTIONS ${MAKE_OPTIONS}
31
+ OPTIONS_DEBUG DEBUG=y
32
+ )
33
+
34
+ if(NOT "${VCPKG_BUILD_TYPE}" STREQUAL "release")
35
+ file(INSTALL "${DEBUG_LIB}/libIPSec_MB.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
36
+ set(INTEL_IPSEC_CONFIGURATION "DEBUG")
37
+ if ("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static")
38
+ set(INTEL_IPSEC_LOCATION "debug/lib/libIPSec_MB.lib")
39
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/intel-ipsec-targets.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/intel-ipsec-targets-debug.cmake" @ONLY)
40
+ else()
41
+ file(INSTALL "${DEBUG_LIB}/libIPSec_MB.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
42
+ file(INSTALL "${DEBUG_LIB}/libIPSec_MB.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
43
+ file(INSTALL "${DEBUG_LIB}/libIPSec_MB.exp" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
44
+ set(INTEL_IPSEC_LOCATION "debug/bin/libIPSec_MB.dll")
45
+ set(INTEL_IPSEC_IMPLIB "debug/lib/libIPSec_MB.lib")
46
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/intel-ipsec-targets-implib.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/intel-ipsec-targets-debug.cmake" @ONLY)
47
+ endif()
48
+ endif()
49
+
50
+ file(INSTALL "${RELEASE_LIB}/libIPSec_MB.lib" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
51
+ set(INTEL_IPSEC_CONFIGURATION "RELEASE")
52
+ if ("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static")
53
+ set(INTEL_IPSEC_LOCATION "lib/libIPSec_MB.lib")
54
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/intel-ipsec-targets.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/intel-ipsec-targets-release.cmake" @ONLY)
55
+ else()
56
+ file(INSTALL "${RELEASE_LIB}/libIPSec_MB.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
57
+ file(INSTALL "${RELEASE_LIB}/libIPSec_MB.pdb" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
58
+ file(INSTALL "${RELEASE_LIB}/libIPSec_MB.exp" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
59
+ set(INTEL_IPSEC_LOCATION "bin/libIPSec_MB.dll")
60
+ set(INTEL_IPSEC_IMPLIB "lib/libIPSec_MB.lib")
61
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/intel-ipsec-targets-implib.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/intel-ipsec-targets-release.cmake" @ONLY)
62
+ endif()
63
+ else()
64
+ if ("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static")
65
+ set(LIB_SUFFIX ".a")
66
+ else()
67
+ set(LIB_SUFFIX ".so")
68
+ endif()
69
+
70
+ find_program(MAKE make REQUIRED)
71
+ if(NOT "${VCPKG_BUILD_TYPE}" STREQUAL "release")
72
+ message(STATUS "Building ${TARGET_TRIPLET}-dbg")
73
+ set(INTEL_IPSEC_CONFIGURATION "DEBUG")
74
+ file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg")
75
+ file(COPY "${SOURCE_PATH}/" DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg")
76
+ vcpkg_execute_build_process(
77
+ COMMAND "${MAKE}" "-j${VCPKG_CONCURRENCY}" ${MAKE_OPTIONS}
78
+ WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib"
79
+ LOGNAME "build-${TARGET_TRIPLET}-dbg"
80
+ )
81
+
82
+ file(INSTALL "${DEBUG_LIB}/libIPSec_MB${LIB_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
83
+ set(INTEL_IPSEC_LOCATION "debug/lib/libIPSec_MB${LIB_SUFFIX}")
84
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/intel-ipsec-targets.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/intel-ipsec-targets-debug.cmake" @ONLY)
85
+ endif()
86
+
87
+ message(STATUS "Building ${TARGET_TRIPLET}-rel")
88
+ set(INTEL_IPSEC_CONFIGURATION "RELEASE")
89
+ file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
90
+ file(COPY "${SOURCE_PATH}/" DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
91
+ vcpkg_execute_build_process(
92
+ COMMAND "${MAKE}" -j ${MAKE_OPTIONS}
93
+ WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib"
94
+ LOGNAME "build-${TARGET_TRIPLET}-rel"
95
+ )
96
+
97
+ file(INSTALL "${RELEASE_LIB}/libIPSec_MB${LIB_SUFFIX}" DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
98
+ set(INTEL_IPSEC_LOCATION "lib/libIPSec_MB${LIB_SUFFIX}")
99
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/intel-ipsec-targets.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/intel-ipsec-targets-release.cmake" @ONLY)
100
+ endif()
101
+
102
+ file(INSTALL "${SOURCE_PATH}/lib/intel-ipsec-mb.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
103
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/intel-ipsecConfig.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/intel-ipsecConfig.cmake" @ONLY)
104
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
105
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package intel-ipsec is compatible with built-in CMake targets:
2
+
3
+ FIND_PACKAGE(intel-ipsec CONFIG REQUIRED)
4
+ TARGET_LINK_LIBRARIES(main PRIVATE IPSEC::ipsec)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-ipsec/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "intel-ipsec",
3
+ "version": "1.1",
4
+ "description": "Intel(R) Multi-Buffer Crypto for IPsec Library",
5
+ "supports": "x64 & (windows | linux) & !uwp"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-mkl/portfile.cmake ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Due to the complexity involved, this package doesn't install MKL. It instead verifies that MKL is installed.
2
+ # Other packages can depend on this package to declare a dependency on MKL.
3
+ # If this package is installed, we assume that MKL is properly installed.
4
+
5
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
6
+
7
+ set(MKL_REQUIRED_VERSION "20200000")
8
+
9
+ set(ProgramFilesx86 "ProgramFiles(x86)")
10
+ set(INTEL_ROOT $ENV{${ProgramFilesx86}}/IntelSWTools/compilers_and_libraries/windows)
11
+ set(ONEMKL_ROOT $ENV{${ProgramFilesx86}}/Intel/oneAPI/mkl/latest)
12
+
13
+ find_path(MKL_ROOT include/mkl.h
14
+ PATHS
15
+ $ENV{MKLROOT}
16
+ ${INTEL_ROOT}/mkl
17
+ $ENV{ONEAPI_ROOT}/mkl/latest
18
+ ${ONEMKL_ROOT}
19
+ DOC
20
+ "Folder contains MKL")
21
+
22
+ if (MKL_ROOT STREQUAL "MKL_ROOT-NOTFOUND")
23
+ message(FATAL_ERROR "Could not find MKL. Before continuing, please download and install MKL (${MKL_REQUIRED_VERSION} or higher) from:"
24
+ "\n https://registrationcenter.intel.com/en/products/download/3178/\n"
25
+ "\nAlso ensure vcpkg has been rebuilt with the latest version (v0.0.104 or later)")
26
+ endif()
27
+
28
+ # file(STRINGS ${MKL_ROOT}/include/mkl_version.h MKL_VERSION_DEFINITION REGEX "__INTEL_MKL((_MINOR)|(_UPDATE))?__")
29
+ # string(REGEX MATCHALL "([0-9]+)" MKL_VERSION ${MKL_VERSION_DEFINITION})
30
+ # list(GET MKL_VERSION 0 MKL_VERSION_MAJOR)
31
+ # list(GET MKL_VERSION 1 MKL_VERSION_MINOR)
32
+ # list(GET MKL_VERSION 2 MKL_VERSION_UPDATE)
33
+
34
+ file(STRINGS ${MKL_ROOT}/include/mkl_version.h MKL_VERSION_DEFINITION REGEX "INTEL_MKL_VERSION")
35
+ string(REGEX MATCH "([0-9]+)" MKL_VERSION ${MKL_VERSION_DEFINITION})
36
+
37
+ if (MKL_VERSION LESS MKL_REQUIRED_VERSION)
38
+ message(FATAL_ERROR "MKL ${MKL_VERSION} is found but ${MKL_REQUIRED_VERSION} is required. Please download and install a more recent version of MKL from:"
39
+ "\n https://registrationcenter.intel.com/en/products/download/3178/\n")
40
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intel-mkl/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "intel-mkl",
3
+ "version": "2020.0.0",
4
+ "port-version": 2,
5
+ "description": "Intel® Math Kernel Library (Intel® MKL) accelerates math processing routines, increases application performance, and reduces development time on Intel® processors. Due to the complexity involved, this package doesn't install MKL. It instead verifies that MKL is installed. Please download and install MKL from https://registrationcenter.intel.com/en/products/download/3178/ manually before using it in vcpkg."
6
+ }