Techt3o commited on
Commit
8be4d3d
·
verified ·
1 Parent(s): 0056f9c

cc2f56ccb686a867854c612dd9e66ed47f112c31ad735db88a8bc316b22c863f

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphicsmagick/vcpkg.json +16 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphite2/disable-tests.patch +48 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphite2/portfile.cmake +27 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphite2/vcpkg.json +20 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/portfile.cmake +44 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/remove-invalid-bison-directive.patch +13 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/static-compile-fix.patch +16 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/vcpkg.json +16 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/win-cmake.patch +100 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphviz/0001-Fix-build.patch +94 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphviz/portfile.cmake +79 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphviz/vcpkg.json +23 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/greatest/portfile.cmake +13 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/greatest/vcpkg.json +6 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00001-fix-uwp.patch +73 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00002-static-linking-in-linux.patch +16 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00003-undef-base64-macro.patch +13 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00004-link-gdi32-on-windows.patch +13 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00005-fix-uwp-error.patch +34 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00006-fix-uwp-error.patch +13 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00009-use-system-upb.patch +78 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00010-add-feature-absl-sync.patch +33 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00011-fix-csharp_plugin.patch +33 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00012-fix-use-cxx17.patch +16 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00013-build-upbdefs.patch +28 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00014-pkgconfig-upbdefs.patch +13 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake +10 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/portfile.cmake +100 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/snprintf.patch +12 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/vcpkg-cmake-wrapper.cmake +2 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/vcpkg.json +45 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/fix-build-error.patch +13 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/fix-support-other-compilers.patch +44 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/portfile.cmake +25 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/vcpkg.json +7 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl-lite/portfile.cmake +32 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl-lite/vcpkg.json +16 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/0001-configure.patch +158 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/0002-add-fp-control.patch +97 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/CMakeLists.txt +83 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/portfile.cmake +29 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/usage +4 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/vcpkg-cmake-wrapper.cmake +11 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/vcpkg.json +16 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsoap/fix-build-in-windows.patch +307 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsoap/portfile.cmake +60 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsoap/vcpkg.json +8 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gst-rtsp-server/portfile.cmake +34 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gst-rtsp-server/vcpkg.json +13 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/gstreamer-disable-hot-doc.patch +34 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphicsmagick/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "graphicsmagick",
3
+ "version": "1.3.37",
4
+ "port-version": 1,
5
+ "description": "Image processing library",
6
+ "homepage": "https://sourceforge.net/projects/graphicsmagick/",
7
+ "dependencies": [
8
+ "bzip2",
9
+ "freetype",
10
+ "libjpeg-turbo",
11
+ "libpng",
12
+ "libwebp",
13
+ "tiff",
14
+ "zlib"
15
+ ]
16
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphite2/disable-tests.patch ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 496712d..3df05c7 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -82,10 +82,12 @@ if (BUILD_SHARED_LIBS)
6
+ endif()
7
+
8
+ add_subdirectory(src)
9
+ -add_subdirectory(tests)
10
+ -add_subdirectory(doc)
11
+ -if (NOT GRAPHITE2_NFILEFACE)
12
+ - add_subdirectory(gr2fonttest)
13
+ +if(NOT DISABLE_TESTS)
14
+ + add_subdirectory(tests)
15
+ + add_subdirectory(doc)
16
+ + if (NOT GRAPHITE2_NFILEFACE)
17
+ + add_subdirectory(gr2fonttest)
18
+ + endif()
19
+ endif()
20
+
21
+ set(version 3.0.1)
22
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
23
+ index b6ac26b..851a97f 100644
24
+ --- a/src/CMakeLists.txt
25
+ +++ b/src/CMakeLists.txt
26
+ @@ -127,9 +127,9 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
27
+ endif ()
28
+ endif()
29
+ include(Graphite)
30
+ - if (BUILD_SHARED_LIBS)
31
+ + if (NOT DISABLE_TESTS)
32
+ nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
33
+ - endif ()
34
+ + endif()
35
+ set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
36
+ CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
37
+ endif()
38
+ @@ -144,7 +144,9 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
39
+ endif()
40
+ target_link_libraries(graphite2 c)
41
+ include(Graphite)
42
+ - nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
43
+ + if (NOT DISABLE_TESTS)
44
+ + nolib_test(stdc++ $<TARGET_SONAME_FILE:graphite2>)
45
+ + endif()
46
+ set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
47
+ CREATE_LIBTOOL_FILE(graphite2 "/lib${LIB_SUFFIX}")
48
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphite2/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO silnrsi/graphite
4
+ REF 92f59dcc52f73ce747f1cdc831579ed2546884aa # 1.3.14
5
+ SHA512 011855576124b2f9ae9d7d3a0dfc5489794cf82b81bebc02c11c9cca350feb9fbb411844558811dff1ebbacac58a24a7cf56a374fc2c27e97a5fb4795a01486e
6
+ HEAD_REF master
7
+ PATCHES disable-tests.patch
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ -DDISABLE_TESTS=ON
14
+ )
15
+
16
+ vcpkg_cmake_install()
17
+ vcpkg_copy_pdbs()
18
+ vcpkg_cmake_config_fixup()
19
+
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
21
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
22
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libgraphite2.la" "${CURRENT_PACKAGES_DIR}/debug/lib/libgraphite2.la")
23
+
24
+ file(COPY "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
25
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
26
+
27
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphite2/vcpkg.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "graphite2",
3
+ "version": "1.3.14",
4
+ "port-version": 3,
5
+ "description": [
6
+ "Graphite is a \"smart font\" system developed specifically to handle the complexities of lesser-known languages of the world.",
7
+ "Graphite2 is a rework of the original Graphite engine that is faster, smaller, and uses an API that is better suited to the layout architecture of most text-processing applications."
8
+ ],
9
+ "homepage": "https://github.com/silnrsi/graphite",
10
+ "dependencies": [
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/graphqlparser/portfile.cmake ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO graphql/libgraphqlparser
4
+ REF v0.7.0
5
+ SHA512 973292b164d0d2cfe453a2f01559dbdb1b9d22b6304f6a3aabf71e2c0a3e24ab69dfd72a086764ad5befecf0005620f8e86f552dacc324f9615a05f31de7cede
6
+ HEAD_REF master
7
+ PATCHES
8
+ win-cmake.patch
9
+ static-compile-fix.patch
10
+ remove-invalid-bison-directive.patch
11
+ )
12
+
13
+ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ DISABLE_PARALLEL_CONFIGURE
17
+ )
18
+ elseif(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
19
+ vcpkg_find_acquire_program(PYTHON2)
20
+ vcpkg_find_acquire_program(FLEX)
21
+ vcpkg_find_acquire_program(BISON)
22
+
23
+ get_filename_component(VCPKG_DOWNLOADS_PYTHON2_DIR "${PYTHON2}" DIRECTORY)
24
+ get_filename_component(VCPKG_DOWNLOADS_FLEX_DIR "${FLEX}" DIRECTORY)
25
+ get_filename_component(VCPKG_DOWNLOADS_BISON_DIR "${BISON}" DIRECTORY)
26
+
27
+ vcpkg_cmake_configure(
28
+ SOURCE_PATH "${SOURCE_PATH}"
29
+ DISABLE_PARALLEL_CONFIGURE
30
+ OPTIONS
31
+ -DVCPKG_DOWNLOADS_PYTHON2_DIR=${VCPKG_DOWNLOADS_PYTHON2_DIR}
32
+ -DVCPKG_DOWNLOADS_FLEX_DIR=${VCPKG_DOWNLOADS_FLEX_DIR}
33
+ -DVCPKG_DOWNLOADS_BISON_DIR=${VCPKG_DOWNLOADS_BISON_DIR}
34
+ )
35
+ endif()
36
+
37
+ vcpkg_cmake_install()
38
+ vcpkg_fixup_pkgconfig()
39
+ vcpkg_copy_pdbs()
40
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphqlparser/parser.tab.hpp" "${SOURCE_PATH}" "")
41
+
42
+ # Handle copyright
43
+ configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/graphqlparser/copyright" COPYONLY)
44
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/remove-invalid-bison-directive.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/parser.ypp b/parser.ypp
2
+ index 2afbcac..baa9cab 100644
3
+ --- a/parser.ypp
4
+ +++ b/parser.ypp
5
+ @@ -7,8 +7,6 @@
6
+ * of patent rights can be found in the PATENTS file in the same directory.
7
+ */
8
+
9
+ -%require "3"
10
+ -
11
+ %skeleton "lalr1.cc"
12
+
13
+ %defines
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/static-compile-fix.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 56741c2..313308a 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -142,8 +142,11 @@ if (UNIX)
6
+ elseif(WIN32)
7
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphqlparser.lib
8
+ DESTINATION lib)
9
+ + # do not install pdb when static compilation.
10
+ + if (BUILD_SHARED_LIBS)
11
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphqlparser.pdb
12
+ DESTINATION bin)
13
+ + endif()
14
+ endif()
15
+
16
+ IF (test)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphqlparser/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "graphqlparser",
3
+ "version": "0.7.0",
4
+ "port-version": 4,
5
+ "description": "A GraphQL query parser in C++ with C and C++ APIs",
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/graphqlparser/win-cmake.patch ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index c4c8b3e..3373d82 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -3,9 +3,26 @@ PROJECT(libgraphqlparser C CXX)
6
+
7
+ SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
8
+
9
+ -INCLUDE(version)
10
+ +IF(UNIX)
11
+ + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
12
+ + SET(FLEX_COMPILE_FLAGS "--header-file=lexer.h")
13
+ +ELSEIF(WIN32)
14
+ + # If we're building this with vcpkg on Windows, let portfile.cmake tell us where it
15
+ + # stored these tools. Otherwise these variables should be empty and we'll fall back
16
+ + # to the normal CMake FIND_PACKAGE logic for each of these programs.
17
+ + SET(CMAKE_PROGRAM_PATH
18
+ + "${VCPKG_DOWNLOADS_PYTHON2_DIR}"
19
+ + "${VCPKG_DOWNLOADS_FLEX_DIR}"
20
+ + "${VCPKG_DOWNLOADS_BISON_DIR}"
21
+ + "${CMAKE_PROGRAM_PATH}")
22
+ +
23
+ + SET(FLEX_COMPILE_FLAGS "--header-file=lexer.h --wincompat")
24
+ +
25
+ + # Let CMake figure out the exports for the SHARED library (DLL) on Windows.
26
+ + SET(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
27
+ +ENDIF()
28
+
29
+ -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
30
+ +INCLUDE(version)
31
+
32
+ FIND_PACKAGE(PythonInterp 2 REQUIRED)
33
+ IF (NOT PYTHON_VERSION_MAJOR EQUAL 2)
34
+ @@ -21,7 +38,7 @@ IF (BISON_FOUND)
35
+ ENDIF()
36
+
37
+ IF(FLEX_FOUND)
38
+ - FLEX_TARGET(GraphQLScanner lexer.lpp ${CMAKE_CURRENT_SOURCE_DIR}/lexer.cpp COMPILE_FLAGS "--header-file=lexer.h")
39
+ + FLEX_TARGET(GraphQLScanner lexer.lpp ${CMAKE_CURRENT_SOURCE_DIR}/lexer.cpp COMPILE_FLAGS ${FLEX_COMPILE_FLAGS})
40
+ IF (BISON_FOUND)
41
+ ADD_FLEX_BISON_DEPENDENCY(GraphQLScanner graphqlparser)
42
+ ENDIF()
43
+ @@ -31,7 +48,7 @@ FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/c)
44
+ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
45
+ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
46
+
47
+ -ADD_LIBRARY(graphqlparser SHARED
48
+ +ADD_LIBRARY(graphqlparser
49
+ JsonVisitor.cpp
50
+ ${CMAKE_CURRENT_BINARY_DIR}/Ast.h
51
+ ${CMAKE_CURRENT_BINARY_DIR}/Ast.cpp
52
+ @@ -87,7 +104,9 @@ ADD_SUBDIRECTORY(python)
53
+
54
+ OPTION(test "Build tests." OFF)
55
+
56
+ -INSTALL(DIRECTORY c ${CMAKE_CURRENT_BINARY_DIR}/c DESTINATION include/graphqlparser
57
+ +INSTALL(DIRECTORY c ${CMAKE_CURRENT_BINARY_DIR}/c
58
+ + DESTINATION include/graphqlparser
59
+ + CONFIGURATIONS Release
60
+ FILES_MATCHING PATTERN "*.h"
61
+ PATTERN "build" EXCLUDE)
62
+
63
+ @@ -103,9 +122,13 @@ INSTALL(FILES
64
+ position.hh
65
+ stack.hh
66
+ syntaxdefs.h
67
+ - DESTINATION include/graphqlparser)
68
+ + DESTINATION include/graphqlparser
69
+ + CONFIGURATIONS Release)
70
+ +
71
+ INSTALL(TARGETS graphqlparser
72
+ - LIBRARY DESTINATION lib)
73
+ + ARCHIVE DESTINATION lib
74
+ + LIBRARY DESTINATION lib
75
+ + RUNTIME DESTINATION bin)
76
+
77
+ if (UNIX)
78
+ # generate pkgconfig file
79
+ @@ -116,6 +139,11 @@ if (UNIX)
80
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libgraphqlparser.pc"
81
+ DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
82
+ endif()
83
+ +elseif(WIN32)
84
+ + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphqlparser.lib
85
+ + DESTINATION lib)
86
+ + INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/graphqlparser.pdb
87
+ + DESTINATION bin)
88
+ endif()
89
+
90
+ IF (test)
91
+ @@ -126,6 +154,8 @@ IF (test)
92
+ ADD_CUSTOM_TARGET(memcheck
93
+ valgrind --leak-check=full --suppressions=./test/valgrind.supp --dsymutil=yes --error-exitcode=1 ./test/runTests >/dev/null
94
+ )
95
+ + else()
96
+ + ADD_CUSTOM_TARGET(runTests
97
+ + ./test/runTests >/dev/null)
98
+ endif()
99
+ -
100
+ ENDIF()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphviz/0001-Fix-build.patch ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/FindCairo.cmake b/cmake/FindCairo.cmake
2
+ index dce05ea96..cbd879fee 100644
3
+ --- a/cmake/FindCairo.cmake
4
+ +++ b/cmake/FindCairo.cmake
5
+ @@ -1,6 +1,6 @@
6
+ include(FindPackageHandleStandardArgs)
7
+
8
+ -if (WIN32)
9
+ +if (false)
10
+ find_path(Cairo_INCLUDE_DIR cairo/cairo.h)
11
+
12
+ find_library(Cairo_LIBRARY NAMES cairo)
13
+ diff --git a/cmake/FindPangoCairo.cmake b/cmake/FindPangoCairo.cmake
14
+ index 0937e41ef..bb876ce46 100644
15
+ --- a/cmake/FindPangoCairo.cmake
16
+ +++ b/cmake/FindPangoCairo.cmake
17
+ @@ -1,6 +1,6 @@
18
+ include(FindPackageHandleStandardArgs)
19
+
20
+ -if (WIN32)
21
+ +if (false)
22
+ find_path(PangoCairo_INCLUDE_DIR pango/pangocairo.h PATH_SUFFIXES pango-1.0)
23
+ find_path(GLIB_INCLUDE_DIR glib.h PATH_SUFFIXES glib-2.0)
24
+ find_path(GLIBCONFIG_INCLUDE_DIR glibconfig.h PATH_SUFFIXES glib-2.0/include)
25
+ @@ -69,6 +69,9 @@ if (WIN32)
26
+ else()
27
+ find_package(PkgConfig)
28
+ pkg_check_modules(PangoCairo pangocairo)
29
+ + list(REMOVE_ITEM PangoCairo_LINK_LIBRARIES ffi)
30
+ + find_library(ACTUAL_FFI libffi PangoCairo_LIBRARY_DIRS)
31
+ + list(APPEND PangoCairo_LINK_LIBRARIES ${ACTUAL_FFI})
32
+
33
+ # prior to CMake 3.12, PkgConfig does not set *_LINK_LIBRARIES, so do it
34
+ # manually
35
+ diff --git a/cmd/tools/CMakeLists.txt b/cmd/tools/CMakeLists.txt
36
+ index 8d7b88484..58f8d80fe 100644
37
+ --- a/cmd/tools/CMakeLists.txt
38
+ +++ b/cmd/tools/CMakeLists.txt
39
+ @@ -392,14 +392,14 @@ tool_defaults(sccmap)
40
+
41
+ # ===================== Install third party DLLs on Windows ====================
42
+
43
+ -if (WIN32 AND EXPAT_FOUND)
44
+ +if (false)
45
+ install(
46
+ FILES ${EXPAT_RUNTIME_LIBRARIES}
47
+ DESTINATION ${BINARY_INSTALL_DIR}
48
+ )
49
+ -endif(WIN32 AND EXPAT_FOUND)
50
+ +endif(false)
51
+
52
+ -if (WIN32)
53
+ +if (false)
54
+ install(
55
+ FILES ${Getopt_RUNTIME_LIBRARIES}
56
+ DESTINATION ${BINARY_INSTALL_DIR}
57
+ diff --git a/lib/common/CMakeLists.txt b/lib/common/CMakeLists.txt
58
+ index 144c442ae..fa56739b0 100644
59
+ --- a/lib/common/CMakeLists.txt
60
+ +++ b/lib/common/CMakeLists.txt
61
+ @@ -93,6 +93,7 @@ target_include_directories(common_obj PRIVATE
62
+ ${GRAPHVIZ_LIB_DIR}
63
+ ${CMAKE_CURRENT_SOURCE_DIR}
64
+ ${CMAKE_CURRENT_BINARY_DIR}
65
+ + ${EXPAT_INCLUDE_DIRS}
66
+ ${GRAPHVIZ_LIB_DIR}/cdt
67
+ ${GRAPHVIZ_LIB_DIR}/cgraph
68
+ ${GRAPHVIZ_LIB_DIR}/gvc
69
+ diff --git a/lib/gvc/CMakeLists.txt b/lib/gvc/CMakeLists.txt
70
+ index 745841176..57e2dd32b 100644
71
+ --- a/lib/gvc/CMakeLists.txt
72
+ +++ b/lib/gvc/CMakeLists.txt
73
+ @@ -134,7 +134,7 @@ set_target_properties(gvc PROPERTIES
74
+ )
75
+
76
+ # Include DLLs with this library on Windows
77
+ -if (WIN32 AND EXPAT_FOUND)
78
+ +if (false)
79
+ install(
80
+ FILES
81
+ ${EXPAT_RUNTIME_LIBRARIES}
82
+ diff --git a/plugin/gd/CMakeLists.txt b/plugin/gd/CMakeLists.txt
83
+ index fe7ed264d..dce635185 100644
84
+ --- a/plugin/gd/CMakeLists.txt
85
+ +++ b/plugin/gd/CMakeLists.txt
86
+ @@ -36,7 +36,7 @@ install(
87
+ )
88
+
89
+ # Include DLLs with this library on Windows
90
+ -if (WIN32)
91
+ +if (false)
92
+ install(
93
+ FILES
94
+ ${GD_RUNTIME_LIBRARIES}
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphviz/portfile.cmake ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
2
+
3
+ vcpkg_from_gitlab(
4
+ GITLAB_URL https://gitlab.com
5
+ OUT_SOURCE_PATH SOURCE_PATH
6
+ REPO graphviz/graphviz
7
+ REF 2.49.1
8
+ SHA512 ac14303f67d0840b260c5f2f99c53049a1e444a963d31387ae7a44ffc24757bd44f1c40ddd3fdb6a8d0e0bb1dde0e15d320f613729fb631efd4f078fcb3a4f62
9
+ HEAD_REF main
10
+ PATCHES
11
+ 0001-Fix-build.patch
12
+ )
13
+
14
+ if(VCPKG_TARGET_IS_OSX)
15
+ message("${PORT} currently requires the following libraries from the system package manager:\n libtool\n\nThey can be installed with brew install libtool")
16
+ elseif(VCPKG_TARGET_IS_LINUX)
17
+ message("${PORT} currently requires the following libraries from the system package manager:\n libtool\n\nThey can be installed with apt-get install libtool")
18
+ else()
19
+ vcpkg_download_distfile(
20
+ LTDL_H_PATH
21
+ URLS "https://gitlab.com/graphviz/graphviz-windows-dependencies/-/raw/141d3a21be904fa8dc2ae3ed01d36684db07a35d/${VCPKG_TARGET_ARCHITECTURE}/include/ltdl.h"
22
+ FILENAME ltdl.h
23
+ SHA512 f2d20e849e35060536265f47014c40eb70e57dacd600a9db112fc465fbfa6a66217b44a8c3dc33039c260a27f09d9034b329b03cc28c32a22ec503fcd17b78cd
24
+ )
25
+ file(COPY ${LTDL_H_PATH} DESTINATION ${SOURCE_PATH}/lib/common)
26
+ set(EXTRA_CMAKE_OPTION "-DLTDL_INCLUDE_DIR=${SOURCE_PATH}/lib/common")
27
+ endif()
28
+
29
+ if(NOT VCPKG_TARGET_IS_WINDOWS)
30
+ set(EXTRA_CMAKE_OPTION "-DCMAKE_INSTALL_RPATH=${CURRENT_INSTALLED_DIR}/lib")
31
+ endif()
32
+
33
+ if(VCPKG_HOST_IS_WINDOWS)
34
+ vcpkg_acquire_msys(MSYS_ROOT PACKAGES gawk)
35
+ vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
36
+ endif()
37
+
38
+ vcpkg_find_acquire_program(BISON)
39
+ vcpkg_find_acquire_program(FLEX)
40
+ vcpkg_find_acquire_program(GIT)
41
+ vcpkg_find_acquire_program(PYTHON3)
42
+
43
+ vcpkg_cmake_configure(
44
+ SOURCE_PATH "${SOURCE_PATH}"
45
+ DISABLE_PARALLEL_CONFIGURE
46
+ OPTIONS
47
+ "-DBISON_EXECUTABLE=${BISON}"
48
+ "-DFLEX_EXECUTABLE=${FLEX}"
49
+ "-DGIT_EXECUTABLE=${GIT}"
50
+ "-DPython3_EXECUTABLE=${PYTHON3}"
51
+ "-DPKG_CONFIG_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf"
52
+ ${EXTRA_CMAKE_OPTION}
53
+ )
54
+
55
+ vcpkg_cmake_install()
56
+
57
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
58
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
59
+
60
+ vcpkg_copy_tools(
61
+ TOOL_NAMES acyclic bcomps ccomps circo dijkstra dot fdp gc gml2gv graphml2gv gv2gml gvcolor gvgen gvpack gvpr gxl2gv mm2gv neato nop osage patchwork sccmap sfdp tred twopi unflatten
62
+ AUTO_CLEAN
63
+ )
64
+
65
+ if(VCPKG_TARGET_IS_WINDOWS)
66
+ file(GLOB PLUGINS "${CURRENT_PACKAGES_DIR}/bin/gvplugin_*")
67
+ file(COPY ${PLUGINS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
68
+ vcpkg_execute_required_process(
69
+ COMMAND dot -c
70
+ WORKING_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}"
71
+ LOGNAME configure-plugins
72
+ )
73
+ file(COPY "${CURRENT_PACKAGES_DIR}/tools/${PORT}/config6" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
74
+ endif()
75
+
76
+ # Handle copyright
77
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
78
+
79
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/graphviz/vcpkg.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "graphviz",
3
+ "version-semver": "2.49.1",
4
+ "port-version": 3,
5
+ "description": "Graph Visualization Tools",
6
+ "homepage": "https://graphviz.org/",
7
+ "license": "EPL-1.0",
8
+ "dependencies": [
9
+ "cairo",
10
+ "getopt",
11
+ "libffi",
12
+ "libgd",
13
+ "pango",
14
+ {
15
+ "name": "pkgconf",
16
+ "host": true
17
+ },
18
+ {
19
+ "name": "vcpkg-cmake",
20
+ "host": true
21
+ }
22
+ ]
23
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/greatest/portfile.cmake ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO silentbicycle/greatest
6
+ REF v1.5.0
7
+ SHA512 836392A7C9C56C6A5658FD18B4BBB146304B1997DFD9CB59F2A83C18A5EC140C8DDE64A2C0CF9A169C426B9E586D37E2ED7D7FB792402DBB4149CC424EC2DB2E
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY "${SOURCE_PATH}/greatest.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
12
+
13
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/greatest/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "greatest",
3
+ "version": "1.5.0",
4
+ "description": "Single-file testing system for C",
5
+ "homepage": "https://github.com/silentbicycle/greatest"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00001-fix-uwp.patch ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 7a97604..4967c4f 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -215,6 +215,9 @@ if(UNIX)
6
+ endif()
7
+ if(WIN32)
8
+ set(_gRPC_PLATFORM_WINDOWS ON)
9
+ + if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
10
+ + set(_gRPC_PLATFORM_UWP ON)
11
+ + endif()
12
+ endif()
13
+
14
+ # Use C99 standard
15
+ @@ -259,6 +262,9 @@ if(MSVC)
16
+ set(_gRPC_C_CXX_FLAGS "${_gRPC_C_CXX_FLAGS} /wd4267")
17
+ # TODO(jtattermusch): needed to build boringssl with VS2017, revisit later
18
+ set(_gRPC_C_CXX_FLAGS "${_gRPC_C_CXX_FLAGS} /wd4987 /wd4774 /wd4819 /wd4996 /wd4619")
19
+ + if(_gRPC_PLATFORM_UWP)
20
+ + add_definitions(-DGRPC_ARES=0)
21
+ + endif()
22
+ # Silences thousands of trucation warnings
23
+ set(_gRPC_C_CXX_FLAGS "${_gRPC_C_CXX_FLAGS} /wd4503")
24
+ endif()
25
+ @@ -336,6 +342,10 @@ file(MAKE_DIRECTORY ${_gRPC_PROTO_GENS_DIR})
26
+ # ``.proto`` files
27
+ #
28
+ function(protobuf_generate_grpc_cpp)
29
+ + if(_gRPC_PLATFORM_UWP)
30
+ + return()
31
+ + endif()
32
+ +
33
+ if(NOT ARGN)
34
+ message(SEND_ERROR "Error: PROTOBUF_GENERATE_GRPC_CPP() called without any proto files")
35
+ return()
36
+ @@ -408,6 +418,7 @@ if (gRPC_BUILD_GRPC_RUBY_PLUGIN)
37
+ list(APPEND _gRPC_PLUGIN_LIST grpc_ruby_plugin)
38
+ endif ()
39
+
40
+ +if(NOT _gRPC_PLATFORM_UWP)
41
+ add_custom_target(plugins
42
+ DEPENDS ${_gRPC_PLUGIN_LIST}
43
+ )
44
+ @@ -424,6 +435,7 @@ add_custom_target(tools_cxx
45
+
46
+ add_custom_target(tools
47
+ DEPENDS tools_c tools_cxx)
48
+ +endif()
49
+
50
+ protobuf_generate_grpc_cpp(
51
+ src/proto/grpc/channelz/channelz.proto
52
+ diff --git a/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc b/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc
53
+ index 5d2bdc1..e9870c2 100644
54
+ --- a/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc
55
+ +++ b/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc
56
+ @@ -39,6 +39,7 @@ bool check_bios_data(const char*) { return false; }
57
+ bool check_windows_registry_product_name(HKEY root_key,
58
+ const char* reg_key_path,
59
+ const char* reg_key_name) {
60
+ +#if !defined(WINAPI_FAMILY) || WINAPI_FAMILY == WINAPI_FAMILY_DESKTOP_APP
61
+ const size_t kProductNameBufferSize = 256;
62
+ char const expected_substr[] = "Google";
63
+
64
+ @@ -71,6 +72,9 @@ bool check_windows_registry_product_name(HKEY root_key,
65
+ }
66
+
67
+ return strstr(buffer, expected_substr) != nullptr;
68
+ +#else
69
+ + return false;
70
+ +#endif
71
+ }
72
+
73
+ } // namespace internal
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00002-static-linking-in-linux.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 8f78306f77..e09f8fcc1e 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -211,6 +211,11 @@ if (NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
6
+ endif()
7
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules")
8
+
9
+ +if (gRPC_STATIC_LINKING AND NOT _gRPC_PLATFORM_WINDOWS)
10
+ + # Force to static link
11
+ + set(CMAKE_EXE_LINKER_FLAGS "-Bstatic")
12
+ +endif()
13
+ +
14
+ if(MSVC)
15
+ include(cmake/msvc_static_runtime.cmake)
16
+ add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00003-undef-base64-macro.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/core/lib/transport/transport.cc b/src/core/lib/transport/transport.cc
2
+ index 5d74ec2..89494b5 100644
3
+ --- a/src/core/lib/transport/transport.cc
4
+ +++ b/src/core/lib/transport/transport.cc
5
+ @@ -77,6 +77,8 @@ void grpc_stream_ref_init(grpc_stream_refcount* refcount, int /*initial_refs*/,
6
+ : nullptr);
7
+ }
8
+
9
+ +#undef move64
10
+ +
11
+ static void move64bits(uint64_t* from, uint64_t* to) {
12
+ *to += *from;
13
+ *from = 0;
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00004-link-gdi32-on-windows.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 14514b7..497470c 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -323,7 +323,7 @@ include(cmake/xxhash.cmake)
6
+ include(cmake/zlib.cmake)
7
+
8
+ if(WIN32)
9
+ - set(_gRPC_BASELIB_LIBRARIES ws2_32 crypt32)
10
+ + set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32 crypt32 gdi32)
11
+ endif()
12
+
13
+ # Create directory for generated .proto files
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00005-fix-uwp-error.patch ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/core/lib/slice/slice.cc b/src/core/lib/slice/slice.cc
2
+ index 0dacbfef3e..0743a1b003 100644
3
+ --- a/src/core/lib/slice/slice.cc
4
+ +++ b/src/core/lib/slice/slice.cc
5
+ @@ -234,6 +234,7 @@ grpc_slice grpc_slice_from_moved_buffer(grpc_core::UniquePtr<char> p,
6
+ size_t len) {
7
+ uint8_t* ptr = reinterpret_cast<uint8_t*>(p.get());
8
+ grpc_slice slice;
9
+ + memset(&slice, 0, sizeof(grpc_slice));
10
+ if (len <= sizeof(slice.data.inlined.bytes)) {
11
+ slice.refcount = nullptr;
12
+ slice.data.inlined.length = len;
13
+ @@ -253,7 +254,7 @@ grpc_slice grpc_slice_from_moved_string(grpc_core::UniquePtr<char> p) {
14
+ }
15
+
16
+ grpc_slice grpc_slice_from_cpp_string(std::string str) {
17
+ - grpc_slice slice;
18
+ + grpc_slice slice = { 0 };
19
+ if (str.size() <= sizeof(slice.data.inlined.bytes)) {
20
+ slice.refcount = nullptr;
21
+ slice.data.inlined.length = str.size();
22
+ diff --git a/src/core/lib/surface/server.cc b/src/core/lib/surface/server.cc
23
+ index c94551545d..3fd9797316 100644
24
+ --- a/src/core/lib/surface/server.cc
25
+ +++ b/src/core/lib/surface/server.cc
26
+ @@ -878,7 +878,7 @@ grpc_call_error Server::QueueRequestedCall(size_t cq_idx, RequestedCall* rc) {
27
+ GRPC_ERROR_CREATE_FROM_STATIC_STRING("Server Shutdown"));
28
+ return GRPC_CALL_OK;
29
+ }
30
+ - RequestMatcherInterface* rm;
31
+ + RequestMatcherInterface* rm = nullptr;
32
+ switch (rc->type) {
33
+ case RequestedCall::Type::BATCH_CALL:
34
+ rm = unregistered_request_matcher_.get();
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00006-fix-uwp-error.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/core/ext/transport/chttp2/transport/hpack_parser.cc b/src/core/ext/transport/chttp2/transport/hpack_parser.cc
2
+ index 18abbda..9789983 100644
3
+ --- a/src/core/ext/transport/chttp2/transport/hpack_parser.cc
4
+ +++ b/src/core/ext/transport/chttp2/transport/hpack_parser.cc
5
+ @@ -1052,7 +1052,7 @@ class HPackParser::Parser {
6
+
7
+ private:
8
+ void GPR_ATTRIBUTE_NOINLINE LogHeader(const HPackTable::Memento& memento) {
9
+ - const char* type;
10
+ + const char* type = nullptr;
11
+ switch (log_info_.type) {
12
+ case LogInfo::kHeaders:
13
+ type = "HDR";
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00009-use-system-upb.patch ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 1c3146b..ae06ea3 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -84,6 +84,9 @@ set_property(CACHE gRPC_SSL_PROVIDER PROPERTY STRINGS "module" "package")
6
+ set(gRPC_PROTOBUF_PROVIDER "module" CACHE STRING "Provider of protobuf library")
7
+ set_property(CACHE gRPC_PROTOBUF_PROVIDER PROPERTY STRINGS "module" "package")
8
+
9
+ +set(gRPC_UPB_PROVIDER "module" CACHE STRING "Provider of upb library")
10
+ +set_property(CACHE gRPC_UPB_PROVIDER PROPERTY STRINGS "module" "package")
11
+ +
12
+ set(gRPC_PROTOBUF_PACKAGE_TYPE "" CACHE STRING "Algorithm for searching protobuf package")
13
+ set_property(CACHE gRPC_PROTOBUF_PACKAGE_TYPE PROPERTY STRINGS "CONFIG" "MODULE")
14
+
15
+ @@ -1504,7 +1507,6 @@ target_link_libraries(gpr
16
+ absl::synchronization
17
+ absl::time
18
+ absl::optional
19
+ - upb
20
+ )
21
+ if(_gRPC_PLATFORM_ANDROID)
22
+ target_link_libraries(gpr
23
+ @@ -3927,6 +3929,7 @@ endif()
24
+
25
+ endif()
26
+
27
+ +if (gRPC_UPB_PROVIDER STREQUAL "module")
28
+ add_library(upb
29
+ third_party/upb/upb/decode_fast.c
30
+ third_party/upb/upb/decode.c
31
+ @@ -3984,7 +3987,7 @@ if(gRPC_INSTALL)
32
+ )
33
+ endif()
34
+
35
+ -
36
+ +endif()
37
+
38
+ add_executable(check_epollexclusive
39
+ test/build/check_epollexclusive.c
40
+ diff --git a/cmake/gRPCConfig.cmake.in b/cmake/gRPCConfig.cmake.in
41
+ index 3623f4a..df6ced5 100644
42
+ --- a/cmake/gRPCConfig.cmake.in
43
+ +++ b/cmake/gRPCConfig.cmake.in
44
+ @@ -8,6 +8,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/modules)
45
+ @_gRPC_FIND_CARES@
46
+ @_gRPC_FIND_ABSL@
47
+ @_gRPC_FIND_RE2@
48
+ +@_gRPC_FIND_UPB@
49
+
50
+ # Targets
51
+ include(${CMAKE_CURRENT_LIST_DIR}/gRPCTargets.cmake)
52
+ diff --git a/cmake/upb.cmake b/cmake/upb.cmake
53
+ index f2a0e50..ac6d397 100644
54
+ --- a/cmake/upb.cmake
55
+ +++ b/cmake/upb.cmake
56
+ @@ -12,9 +12,21 @@
57
+ # See the License for the specific language governing permissions and
58
+ # limitations under the License.
59
+
60
+ +set(_gRPC_UPB_GRPC_GENERATED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upb-generated" "${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upbdefs-generated")
61
+ +if (gRPC_UPB_PROVIDER STREQUAL "module")
62
+ +
63
+ set(UPB_ROOT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/third_party/upb)
64
+
65
+ set(_gRPC_UPB_INCLUDE_DIR "${UPB_ROOT_DIR}")
66
+ set(_gRPC_UPB_GRPC_GENERATED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upb-generated" "${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upbdefs-generated")
67
+
68
+ set(_gRPC_UPB_LIBRARIES upb)
69
+ +
70
+ +
71
+ +elseif(gRPC_UPB_PROVIDER STREQUAL "package")
72
+ + find_package(upb CONFIG REQUIRED)
73
+ + set(_gRPC_UPB_LIBRARIES upb::upb)
74
+ + set(_gRPC_UPB_INCLUDE_DIR)
75
+ + set(upb ${_gRPC_UPB_LIBRARIES})
76
+ + set(_gRPC_FIND_UPB "if(NOT upb_FOUND)\n find_package(upb CONFIG REQUIRED)\nendif()")
77
+ +endif()
78
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00010-add-feature-absl-sync.patch ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 497470c..9c07732 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -2196,6 +2196,8 @@ target_link_libraries(grpc
6
+ ${_gRPC_UPB_LIBRARIES}
7
+ ${_gRPC_ALLTARGETS_LIBRARIES}
8
+ absl::flat_hash_map
9
+ + absl::time
10
+ + absl::synchronization
11
+ absl::inlined_vector
12
+ absl::bind_front
13
+ absl::hash
14
+ @@ -2753,6 +2755,8 @@ target_link_libraries(grpc_unsecure
15
+ ${_gRPC_UPB_LIBRARIES}
16
+ ${_gRPC_ALLTARGETS_LIBRARIES}
17
+ absl::flat_hash_map
18
+ + absl::time
19
+ + absl::synchronization
20
+ absl::inlined_vector
21
+ absl::bind_front
22
+ absl::statusor
23
+ diff --git a/cmake/abseil-cpp.cmake b/cmake/abseil-cpp.cmake
24
+ index c89ba26..81212b9 100644
25
+ --- a/cmake/abseil-cpp.cmake
26
+ +++ b/cmake/abseil-cpp.cmake
27
+ @@ -35,3 +35,6 @@ elseif(gRPC_ABSL_PROVIDER STREQUAL "package")
28
+ find_package(absl REQUIRED CONFIG)
29
+ endif()
30
+ set(_gRPC_FIND_ABSL "if(NOT TARGET absl::strings)\n find_package(absl CONFIG)\nendif()")
31
+ + if (gRPC_ABSL_SYNC_ENABLE)
32
+ + add_definitions(-DGPR_ABSEIL_SYNC=1)
33
+ + endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00011-fix-csharp_plugin.patch ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ae77375eae..ad8815d2f9 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -1960,10 +1960,14 @@ endif()
6
+
7
+ if(gRPC_BUILD_CSHARP_EXT)
8
+
9
+ -add_library(grpc_csharp_ext SHARED
10
+ +add_library(grpc_csharp_ext
11
+ src/csharp/ext/grpc_csharp_ext.c
12
+ )
13
+
14
+ +if (WIN32 AND BUILD_SHARED_LIBS)
15
+ + target_compile_definitions(grpc_csharp_ext PUBLIC GPR_WINDOWS)
16
+ +endif()
17
+ +
18
+ set_target_properties(grpc_csharp_ext PROPERTIES
19
+ VERSION ${gRPC_CORE_VERSION}
20
+ SOVERSION ${gRPC_CORE_SOVERSION}
21
+ @@ -1977,6 +1981,12 @@ if(WIN32 AND MSVC)
22
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/grpc_csharp_ext.pdb
23
+ DESTINATION ${gRPC_INSTALL_LIBDIR} OPTIONAL
24
+ )
25
+ +
26
+ + install(TARGETS grpc_csharp_ext
27
+ + RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
28
+ + LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
29
+ + ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
30
+ + )
31
+ endif()
32
+ endif()
33
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00012-fix-use-cxx17.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 9c07732..54b4b23 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -321,6 +321,11 @@ include(cmake/ssl.cmake)
6
+ include(cmake/upb.cmake)
7
+ include(cmake/xxhash.cmake)
8
+ include(cmake/zlib.cmake)
9
+ +
10
+ +if (ABSL_USE_CXX17)
11
+ + message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
12
+ + set(CMAKE_CXX_STANDARD 17)
13
+ +endif()
14
+
15
+ if(WIN32)
16
+ set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32 crypt32 gdi32)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00013-build-upbdefs.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/upb.cmake b/cmake/upb.cmake
2
+ index 59d6813..1ce8bce 100644
3
+ --- a/cmake/upb.cmake
4
+ +++ b/cmake/upb.cmake
5
+ @@ -24,8 +24,21 @@ set(_gRPC_UPB_LIBRARIES upb)
6
+
7
+ elseif(gRPC_UPB_PROVIDER STREQUAL "package")
8
+ find_package(upb CONFIG REQUIRED)
9
+ - set(_gRPC_UPB_LIBRARIES upb::upb)
10
+ + set(_gRPC_UPB_LIBRARIES upb)
11
+ set(_gRPC_UPB_INCLUDE_DIR)
12
+ - set(upb ${_gRPC_UPB_LIBRARIES})
13
+ + add_library(upb STATIC
14
+ + ${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c
15
+ + ${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c
16
+ + )
17
+ + set_target_properties(upb PROPERTIES OUTPUT_NAME grpc_upbdefs)
18
+ + target_include_directories(upb PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upb-generated" "${CMAKE_CURRENT_SOURCE_DIR}/src/core/ext/upbdefs-generated")
19
+ + target_link_libraries(upb PUBLIC upb::all_libs)
20
+ + if(gRPC_INSTALL)
21
+ + install(TARGETS upb EXPORT gRPCTargets
22
+ + RUNTIME DESTINATION ${gRPC_INSTALL_BINDIR}
23
+ + LIBRARY DESTINATION ${gRPC_INSTALL_LIBDIR}
24
+ + ARCHIVE DESTINATION ${gRPC_INSTALL_LIBDIR}
25
+ + )
26
+ + endif()
27
+ set(_gRPC_FIND_UPB "if(NOT upb_FOUND)\n find_package(upb CONFIG REQUIRED)\nendif()")
28
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/00014-pkgconfig-upbdefs.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 54b4b23..83fab3b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -17276,7 +17276,7 @@ generate_pkgconfig(
6
+ "high performance general RPC framework"
7
+ "${gRPC_CORE_VERSION}"
8
+ "gpr openssl absl_base absl_bind_front absl_cord absl_core_headers absl_flat_hash_map absl_hash absl_inlined_vector absl_memory absl_optional absl_random_random absl_status absl_statusor absl_str_format absl_strings absl_synchronization absl_time absl_utility absl_variant"
9
+ - "-lgrpc -laddress_sorting -lre2 -lupb -lcares -lz"
10
+ + "-lgrpc -lgrpc_upbdefs -laddress_sorting -lre2 -lupb_fastdecode -lupb_json -lupb_pb -lupb_handlers -lupb_textformat -lupb_reflection -lupb -lcares -lz"
11
+ ""
12
+ "grpc.pc")
13
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/gRPCTargets-vcpkg-tools.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ file(GLOB GRPC_PLUGINS "${_IMPORT_PREFIX}/../@HOST_TRIPLET@/tools/grpc/grpc_*_plugin*")
2
+
3
+ foreach(PLUGIN ${GRPC_PLUGINS})
4
+ get_filename_component(PLUGIN_NAME "${PLUGIN}" NAME_WE)
5
+ add_executable(gRPC::${PLUGIN_NAME} IMPORTED)
6
+ set_property(TARGET gRPC::${PLUGIN_NAME} APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
7
+ set_target_properties(gRPC::${PLUGIN_NAME} PROPERTIES
8
+ IMPORTED_LOCATION_RELEASE "${PLUGIN}"
9
+ )
10
+ endforeach()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/portfile.cmake ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_TARGET_IS_WINDOWS)
2
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
3
+ endif()
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO grpc/grpc
8
+ REF 591d56e1300b6d11948e1b821efac785a295989c # v1.44.0
9
+ SHA512 b24f82768eed95b017a499ffb539af1f59d6916ab2da5ffb1de344ea7b0b7df536d1bb29a9bcb273bd84bc1f11b62383dc6c7df62e50d57621228f5aeeca6d5d
10
+ HEAD_REF master
11
+ PATCHES
12
+ 00001-fix-uwp.patch
13
+ 00002-static-linking-in-linux.patch
14
+ 00003-undef-base64-macro.patch
15
+ 00004-link-gdi32-on-windows.patch
16
+ 00005-fix-uwp-error.patch
17
+ 00006-fix-uwp-error.patch
18
+ 00009-use-system-upb.patch
19
+ 00010-add-feature-absl-sync.patch
20
+ 00011-fix-csharp_plugin.patch
21
+ snprintf.patch
22
+ 00012-fix-use-cxx17.patch
23
+ 00013-build-upbdefs.patch
24
+ 00014-pkgconfig-upbdefs.patch
25
+ )
26
+
27
+ if(NOT TARGET_TRIPLET STREQUAL HOST_TRIPLET)
28
+ vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/grpc")
29
+ endif()
30
+
31
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" gRPC_MSVC_STATIC_RUNTIME)
32
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" gRPC_STATIC_LINKING)
33
+
34
+ if(VCPKG_TARGET_IS_UWP)
35
+ set(cares_CARES_PROVIDER OFF)
36
+ else()
37
+ set(cares_CARES_PROVIDER "package")
38
+ endif()
39
+
40
+ vcpkg_check_features(
41
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
42
+ FEATURES
43
+ absl-sync gRPC_ABSL_SYNC_ENABLE
44
+ codegen gRPC_BUILD_CODEGEN
45
+ )
46
+
47
+ vcpkg_cmake_configure(
48
+ SOURCE_PATH "${SOURCE_PATH}"
49
+ OPTIONS ${FEATURE_OPTIONS}
50
+ -DgRPC_INSTALL=ON
51
+ -DgRPC_BUILD_TESTS=OFF
52
+ -DgRPC_STATIC_LINKING=${gRPC_STATIC_LINKING}
53
+ -DgRPC_MSVC_STATIC_RUNTIME=${gRPC_MSVC_STATIC_RUNTIME}
54
+ -DgRPC_ZLIB_PROVIDER=package
55
+ -DgRPC_SSL_PROVIDER=package
56
+ -DgRPC_PROTOBUF_PROVIDER=package
57
+ -DgRPC_ABSL_PROVIDER=package
58
+ -DgRPC_UPB_PROVIDER=package
59
+ -DgRPC_RE2_PROVIDER=package
60
+ -DgRPC_PROTOBUF_PACKAGE_TYPE=CONFIG
61
+ -DgRPC_CARES_PROVIDER=${cares_CARES_PROVIDER}
62
+ -DgRPC_BENCHMARK_PROVIDER=none
63
+ -DgRPC_INSTALL_BINDIR:STRING=bin
64
+ -DgRPC_INSTALL_LIBDIR:STRING=lib
65
+ -DgRPC_INSTALL_INCLUDEDIR:STRING=include
66
+ -DgRPC_INSTALL_CMAKEDIR:STRING=share/grpc
67
+ -D_gRPC_PROTOBUF_PROTOC_EXECUTABLE="${CURRENT_HOST_INSTALLED_DIR}/tools/protobuf/protoc${VCPKG_HOST_EXECUTABLE_SUFFIX}"
68
+ -DPROTOBUF_PROTOC_EXECUTABLE="${CURRENT_HOST_INSTALLED_DIR}/tools/protobuf/protoc${VCPKG_HOST_EXECUTABLE_SUFFIX}"
69
+ MAYBE_UNUSED_VARIABLES
70
+ gRPC_MSVC_STATIC_RUNTIME
71
+ )
72
+
73
+ vcpkg_cmake_install(ADD_BIN_TO_PATH)
74
+
75
+ vcpkg_cmake_config_fixup()
76
+
77
+ if (gRPC_BUILD_CODEGEN)
78
+ vcpkg_copy_tools(
79
+ AUTO_CLEAN
80
+ TOOL_NAMES
81
+ grpc_php_plugin
82
+ grpc_python_plugin
83
+ grpc_node_plugin
84
+ grpc_objective_c_plugin
85
+ grpc_csharp_plugin
86
+ grpc_cpp_plugin
87
+ grpc_ruby_plugin
88
+ )
89
+ else()
90
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/gRPCTargets-vcpkg-tools.cmake" "${CURRENT_PACKAGES_DIR}/share/grpc/gRPCTargets-vcpkg-tools.cmake" @ONLY)
91
+ endif()
92
+
93
+ # Ignore the C# extension DLL in bin/
94
+ SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
95
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
96
+
97
+ vcpkg_copy_pdbs()
98
+
99
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
100
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/snprintf.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/core/tsi/alts/crypt/aes_gcm.cc b/src/core/tsi/alts/crypt/aes_gcm.cc
2
+ index b761224..88a3d6b 100644
3
+ --- a/src/core/tsi/alts/crypt/aes_gcm.cc
4
+ +++ b/src/core/tsi/alts/crypt/aes_gcm.cc
5
+ @@ -19,6 +19,7 @@
6
+ #include <grpc/support/port_platform.h>
7
+
8
+ #include <string.h>
9
+ +#include <cstdio>
10
+
11
+ #include <openssl/bio.h>
12
+ #include <openssl/buffer.h>
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ list(REMOVE_AT ARGS 0)
2
+ _find_package(gRPC ${ARGS}) # Shouldn't this be fixed downstream instead of using a Wrapper?
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grpc/vcpkg.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "grpc",
3
+ "version-semver": "1.44.0",
4
+ "description": "An RPC library and framework",
5
+ "homepage": "https://github.com/grpc/grpc",
6
+ "dependencies": [
7
+ "abseil",
8
+ {
9
+ "name": "c-ares",
10
+ "platform": "!uwp"
11
+ },
12
+ {
13
+ "name": "grpc",
14
+ "host": true,
15
+ "features": [
16
+ "codegen"
17
+ ]
18
+ },
19
+ "openssl",
20
+ "protobuf",
21
+ {
22
+ "name": "protobuf",
23
+ "host": true
24
+ },
25
+ "re2",
26
+ "upb",
27
+ {
28
+ "name": "vcpkg-cmake",
29
+ "host": true
30
+ },
31
+ {
32
+ "name": "vcpkg-cmake-config",
33
+ "host": true
34
+ },
35
+ "zlib"
36
+ ],
37
+ "features": {
38
+ "absl-sync": {
39
+ "description": "Use abseil synchronization module"
40
+ },
41
+ "codegen": {
42
+ "description": "Build code generator machinery"
43
+ }
44
+ }
45
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/fix-build-error.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 09f1f9b..9ef62e9 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -13,7 +13,7 @@ message(STATUS "CMAKE_CXX_COMPILER_ID: " ${CMAKE_CXX_COMPILER_ID} )
6
+
7
+ set(CMAKE_CXX_STANDARD 14)
8
+
9
+ -add_compile_options(-Wall -Werror -pedantic -pedantic-errors -Wextra -Weffc++)
10
+ +add_compile_options(-Wall -Werror -pedantic -pedantic-errors -Wextra)
11
+
12
+ # Set specific options depending on compiler
13
+ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/fix-support-other-compilers.patch ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 09f1f9b..e7b562b 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -20,22 +20,19 @@ if ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang" )
6
+ if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 3.9.0))
7
+ message(FATAL_ERROR "Clang version " ${CMAKE_CXX_COMPILER_VERSION}
8
+ " not supported. Upgrade to 3.9 or above.")
9
+ - else()
10
+ - message( STATUS "C++ Compiler is Clang" )
11
+ endif()
12
+ elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
13
+ if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 6.0))
14
+ message(FATAL_ERROR "g++ version " ${CMAKE_CXX_COMPILER_VERSION}
15
+ " not supported. Upgrade to 6.0 or above.")
16
+ else()
17
+ - message( STATUS "C++ Compiler is GNU")
18
+ if (${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 7.0)
19
+ #g++ 7 warns in non C++17 for over-aligned new otherwise
20
+ add_compile_options(-faligned-new)
21
+ endif()
22
+ endif()
23
+ elseif ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
24
+ - message(FATAL_ERROR "Intel compiler is not currently supported")
25
+ + message(WARNING "Intel compiler is not currently supported")
26
+ # if(NOT(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 16.0))
27
+ # message( FATAL_ERROR "Intel version " ${CMAKE_CXX_COMPILER_VERSION}
28
+ # " not supported. Upgrade to 16.0 or above.")
29
+ @@ -43,12 +40,11 @@ elseif ( ${CMAKE_CXX_COMPILER_ID} STREQUAL "Intel" )
30
+ # message( STATUS "C++ Compiler is Intel" )
31
+ # message( WARNING "WARNING: GrPPI has not been fully tested with Intel compiler." )
32
+ # endif()
33
+ -else()
34
+ - message( FATAL_ERROR "Unsupported compiler: "
35
+ - ${CMAKE_CXX_COMPILER_ID}
36
+ - ${CMAKE_CXX_COMPILER_VERSION})
37
+ endif()
38
+
39
+ +message(STATUS "C++ Compiler is " ${CMAKE_CXX_COMPILER_ID}
40
+ + " version " ${CMAKE_CXX_COMPILER_VERSION})
41
+ +
42
+ # GrPPI library
43
+ include_directories("${CMAKE_SOURCE_DIR}/include")
44
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO arcosuc3m/grppi
4
+ REF v0.4.0
5
+ SHA512 f8235af6832958de420a68d4465a6c63701ab4385f3430d32f77c1d5e8212001262aad1a8aae04261ba889d592798cd3963843b190d325bddc1fe7dcc4aebd7d
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-build-error.patch
9
+ fix-support-other-compilers.patch
10
+ )
11
+
12
+ vcpkg_configure_cmake(
13
+ SOURCE_PATH ${SOURCE_PATH}
14
+ PREFER_NINJA
15
+ OPTIONS
16
+ -DGRPPI_DOXY_ENABLE=OFF
17
+ -DGRPPI_EXAMPLE_APPLICATIONS_ENABLE=OFF
18
+ -DGRPPI_UNIT_TEST_ENABLE=OFF
19
+ )
20
+
21
+ vcpkg_install_cmake()
22
+
23
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
24
+
25
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/grppi/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "grppi",
3
+ "version-string": "0.4.0",
4
+ "port-version": 1,
5
+ "description": "GrPPI is an open source generic and reusable parallel pattern programming interface developed at University Carlos III of Madrid.",
6
+ "homepage": "https://github.com/arcosuc3m/grppi"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl-lite/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO gsl-lite/gsl-lite
4
+ REF 4b5e9ab7474841fc2d7efc2e0064ef81785535d1
5
+ SHA512 d5678743f2aebf9b8311e1484d8d22d995f4920632c55ff2f45e463f435a087d25bbf79749c179cfa2f96e799a55e5ee2e59eb2cc6962b8f5922ea56789e16b1
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ )
12
+ vcpkg_cmake_install()
13
+ vcpkg_cmake_config_fixup(
14
+ CONFIG_PATH "lib/cmake/gsl-lite"
15
+ )
16
+
17
+ file(WRITE ${CURRENT_PACKAGES_DIR}/include/gsl-lite.hpp "#ifndef GSL_LITE_HPP_VCPKG_COMPAT_HEADER_INCLUDED
18
+ #define GSL_LITE_HPP_VCPKG_COMPAT_HEADER_INCLUDED
19
+ #pragma message(\"The header <gsl-lite.hpp> is deprecated and provided by Vcpkg for compatibility only; please include <gsl/gsl-lite.hpp> instead.\")
20
+ #include <gsl/gsl-lite.hpp>
21
+ #endif // GSL_LITE_HPP_VCPKG_COMPAT_HEADER_INCLUDED")
22
+
23
+ file(REMOVE_RECURSE
24
+ "${CURRENT_PACKAGES_DIR}/lib"
25
+ "${CURRENT_PACKAGES_DIR}/debug"
26
+ )
27
+
28
+ file(INSTALL
29
+ "${SOURCE_PATH}/LICENSE"
30
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
31
+ RENAME copyright
32
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl-lite/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gsl-lite",
3
+ "version": "0.40.0",
4
+ "description": "A single-file header-only implementation of ISO C++ Guidelines Support Library (GSL) for C++98, C++11 and later.",
5
+ "homepage": "https://github.com/gsl-lite/gsl-lite/",
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/gsl/0001-configure.patch ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ diff --git a/config.h.in b/config.h
3
+ index adab7a58d..f6dc2278e 100644
4
+ --- a/config.h.in
5
+ +++ b/config.h
6
+ @@ -11,19 +11,19 @@
7
+
8
+ /* Define to 1 if you have the declaration of `acosh', and to 0 if you don't.
9
+ */
10
+ -#undef HAVE_DECL_ACOSH
11
+ +#define HAVE_DECL_ACOSH 1
12
+
13
+ /* Define to 1 if you have the declaration of `asinh', and to 0 if you don't.
14
+ */
15
+ -#undef HAVE_DECL_ASINH
16
+ +#define HAVE_DECL_ASINH 1
17
+
18
+ /* Define to 1 if you have the declaration of `atanh', and to 0 if you don't.
19
+ */
20
+ -#undef HAVE_DECL_ATANH
21
+ +#define HAVE_DECL_ATANH 1
22
+
23
+ /* Define to 1 if you have the declaration of `expm1', and to 0 if you don't.
24
+ */
25
+ -#undef HAVE_DECL_EXPM1
26
+ +#define HAVE_DECL_EXPM1 1
27
+
28
+ /* Define to 1 if you have the declaration of `feenableexcept', and to 0 if
29
+ you don't. */
30
+ @@ -43,31 +43,31 @@
31
+
32
+ /* Define to 1 if you have the declaration of `frexp', and to 0 if you don't.
33
+ */
34
+ -#undef HAVE_DECL_FREXP
35
+ +#define HAVE_DECL_FREXP 1
36
+
37
+ /* Define to 1 if you have the declaration of `hypot', and to 0 if you don't.
38
+ */
39
+ -#undef HAVE_DECL_HYPOT
40
+ +#define HAVE_DECL_HYPOT 1
41
+
42
+ /* Define to 1 if you have the declaration of `isfinite', and to 0 if you
43
+ don't. */
44
+ -#undef HAVE_DECL_ISFINITE
45
+ +#define HAVE_DECL_ISFINITE 1
46
+
47
+ /* Define to 1 if you have the declaration of `isinf', and to 0 if you don't.
48
+ */
49
+ -#undef HAVE_DECL_ISINF
50
+ +#define HAVE_DECL_ISINF 1
51
+
52
+ /* Define to 1 if you have the declaration of `isnan', and to 0 if you don't.
53
+ */
54
+ -#undef HAVE_DECL_ISNAN
55
+ +#define HAVE_DECL_ISNAN 1
56
+
57
+ /* Define to 1 if you have the declaration of `ldexp', and to 0 if you don't.
58
+ */
59
+ -#undef HAVE_DECL_LDEXP
60
+ +#define HAVE_DECL_LDEXP 1
61
+
62
+ /* Define to 1 if you have the declaration of `log1p', and to 0 if you don't.
63
+ */
64
+ -#undef HAVE_DECL_LOG1P
65
+ +#define HAVE_DECL_LOG1P 1
66
+
67
+ /* Define to 1 if you have the <dlfcn.h> header file. */
68
+ #undef HAVE_DLFCN_H
69
+ @@ -76,13 +76,13 @@
70
+ #undef HAVE_DOPRNT
71
+
72
+ /* Defined if you have ansi EXIT_SUCCESS and EXIT_FAILURE in stdlib.h */
73
+ -#undef HAVE_EXIT_SUCCESS_AND_FAILURE
74
+ +#define HAVE_EXIT_SUCCESS_AND_FAILURE 1
75
+
76
+ /* Defined on architectures with excess floating-point precision */
77
+ #undef HAVE_EXTENDED_PRECISION_REGISTERS
78
+
79
+ /* Define if x86 processor has sse extensions. */
80
+ -#undef HAVE_FPU_X86_SSE
81
+ +#define HAVE_FPU_X86_SSE 1
82
+
83
+ /* Define to 1 if you have the <ieeefp.h> header file. */
84
+ #undef HAVE_IEEEFP_H
85
+ @@ -97,43 +97,43 @@
86
+ #undef HAVE_INLINE
87
+
88
+ /* Define to 1 if you have the <inttypes.h> header file. */
89
+ -#undef HAVE_INTTYPES_H
90
+ +#define HAVE_INTTYPES_H 1
91
+
92
+ /* Define to 1 if you have the `m' library (-lm). */
93
+ #undef HAVE_LIBM
94
+
95
+ /* Define to 1 if you have the `memcpy' function. */
96
+ -#undef HAVE_MEMCPY
97
+ +#define HAVE_MEMCPY 1
98
+
99
+ /* Define to 1 if you have the `memmove' function. */
100
+ -#undef HAVE_MEMMOVE
101
+ +#define HAVE_MEMMOVE 1
102
+
103
+ /* Define this if printf can handle %Lf for long double */
104
+ #undef HAVE_PRINTF_LONGDOUBLE
105
+
106
+ /* Define to 1 if you have the <stdint.h> header file. */
107
+ -#undef HAVE_STDINT_H
108
+ +#define HAVE_STDINT_H 1
109
+
110
+ /* Define to 1 if you have the <stdio.h> header file. */
111
+ -#undef HAVE_STDIO_H
112
+ +#define HAVE_STDIO_H 1
113
+
114
+ /* Define to 1 if you have the <stdlib.h> header file. */
115
+ -#undef HAVE_STDLIB_H
116
+ +#define HAVE_STDLIB_H 1
117
+
118
+ /* Define to 1 if you have the `strdup' function. */
119
+ -#undef HAVE_STRDUP
120
+ +#define HAVE_STRDUP 1
121
+
122
+ /* Define to 1 if you have the <strings.h> header file. */
123
+ #undef HAVE_STRINGS_H
124
+
125
+ /* Define to 1 if you have the <string.h> header file. */
126
+ -#undef HAVE_STRING_H
127
+ +#define HAVE_STRING_H 1
128
+
129
+ /* Define to 1 if you have the `strtol' function. */
130
+ -#undef HAVE_STRTOL
131
+ +#define HAVE_STRTOL 1
132
+
133
+ /* Define to 1 if you have the `strtoul' function. */
134
+ -#undef HAVE_STRTOUL
135
+ +#define HAVE_STRTOUL 1
136
+
137
+ /* Define to 1 if you have the <sys/stat.h> header file. */
138
+ #undef HAVE_SYS_STAT_H
139
+ @@ -145,7 +145,7 @@
140
+ #undef HAVE_UNISTD_H
141
+
142
+ /* Define to 1 if you have the `vprintf' function. */
143
+ -#undef HAVE_VPRINTF
144
+ +#define HAVE_VPRINTF 1
145
+
146
+ /* Define if you need to hide the static definitions of inline functions */
147
+ #undef HIDE_INLINE_STATIC
148
+ @@ -180,7 +180,7 @@
149
+ /* Define to 1 if all of the C90 standard headers exist (not just the ones
150
+ required in a freestanding environment). This macro is provided for
151
+ backward compatibility; new code need not use it. */
152
+ -#undef STDC_HEADERS
153
+ +#define STDC_HEADERS 1
154
+
155
+ /* Version number of package */
156
+ #undef VERSION
157
+ ---
158
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/0002-add-fp-control.patch ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ ieee-utils/fp-win.c | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++
3
+ ieee-utils/fp.c | 2 ++
4
+ 2 files changed, 72 insertions(+)
5
+ create mode 100644 ieee-utils/fp-win.c
6
+
7
+ diff --git a/ieee-utils/fp-win.c b/ieee-utils/fp-win.c
8
+ new file mode 100644
9
+ index 0000000..e024eae
10
+ --- /dev/null
11
+ +++ b/ieee-utils/fp-win.c
12
+ @@ -0,0 +1,70 @@
13
+ +/* fp-win.c
14
+ + *
15
+ + * Author: Brian Gladman
16
+ + *
17
+ + * This program is free software; you can redistribute it and/or modify
18
+ + * it under the terms of the GNU General Public License as published by
19
+ + * the Free Software Foundation; either version 2 of the License, or (at
20
+ + * your option) any later version.
21
+ + *
22
+ + * This program is distributed in the hope that it will be useful, but
23
+ + * WITHOUT ANY WARRANTY; without even the implied warranty of
24
+ + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25
+ + * General Public License for more details.
26
+ + *
27
+ + * You should have received a copy of the GNU General Public License
28
+ + * along with this program; if not, write to the Free Software
29
+ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30
+ + */
31
+ +
32
+ +#include <float.h>
33
+ +
34
+ +#include <config.h>
35
+ +#include <gsl/gsl_ieee_utils.h>
36
+ +#include <gsl/gsl_errno.h>
37
+ +
38
+ +const char *fp_env_string = "round-to-nearest,double-precision,mask-all";
39
+ +
40
+ +int
41
+ +gsl_ieee_set_mode (int precision, int rounding, int exception_mask)
42
+ +{
43
+ + unsigned int old, mode = _DN_SAVE, mask = _MCW_DN | _MCW_RC | _MCW_EM;
44
+ +
45
+ + switch(precision)
46
+ + {
47
+ + case GSL_IEEE_SINGLE_PRECISION: mode |= _PC_24; break;
48
+ + case GSL_IEEE_EXTENDED_PRECISION: mode |= _PC_64; break;
49
+ + case GSL_IEEE_DOUBLE_PRECISION:
50
+ + default: mode |= _PC_53;
51
+ + }
52
+ +#ifndef _M_AMD64
53
+ + mask |= _MCW_PC;
54
+ +#endif
55
+ +
56
+ + switch(rounding)
57
+ + {
58
+ + case GSL_IEEE_ROUND_DOWN: mode |= _RC_DOWN; break;
59
+ + case GSL_IEEE_ROUND_UP: mode |= _RC_UP; break;
60
+ + case GSL_IEEE_ROUND_TO_ZERO: mode |= _RC_CHOP; break;
61
+ + case GSL_IEEE_ROUND_TO_NEAREST:
62
+ + default: mode |= _RC_NEAR;
63
+ + }
64
+ +
65
+ + if(exception_mask & GSL_IEEE_MASK_INVALID)
66
+ + mode |= _EM_INVALID;
67
+ + if(exception_mask & GSL_IEEE_MASK_DENORMALIZED)
68
+ + mode |= _EM_DENORMAL;
69
+ + if(exception_mask & GSL_IEEE_MASK_DIVISION_BY_ZERO)
70
+ + mode |= _EM_ZERODIVIDE;
71
+ + if(exception_mask & GSL_IEEE_MASK_OVERFLOW)
72
+ + mode |= _EM_OVERFLOW;
73
+ + if(exception_mask & GSL_IEEE_MASK_UNDERFLOW)
74
+ + mode |= _EM_UNDERFLOW;
75
+ + if(exception_mask & GSL_IEEE_TRAP_INEXACT)
76
+ + mode &= ~_EM_INEXACT;
77
+ + else
78
+ + mode |= _EM_INEXACT;
79
+ +
80
+ + _controlfp_s( &old, mode, mask);
81
+ + return GSL_SUCCESS;
82
+ +}
83
+ diff --git a/ieee-utils/fp.c b/ieee-utils/fp.c
84
+ index 445a14f..b6ae5af 100644
85
+ --- a/ieee-utils/fp.c
86
+ +++ b/ieee-utils/fp.c
87
+ @@ -45,6 +45,8 @@
88
+ #endif
89
+ #elif HAVE_DECL_FEENABLEEXCEPT || HAVE_DECL_FESETTRAPENABLE
90
+ #include "fp-gnuc99.c"
91
+ +#elif _MSC_VER
92
+ +#include "fp-win.c"
93
+ #else
94
+ #include "fp-unknown.c"
95
+ #endif
96
+ --
97
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/CMakeLists.txt ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(gsl C)
3
+
4
+ option(INSTALL_HEADERS "Install public header files" ON)
5
+
6
+ # Function to extract parameter from makefile. Space separated values are returned as lists
7
+ function(extract_from_makefile PATTERN RETURN FILEPATH)
8
+ file(READ ${FILEPATH} MAKEFILE_CONTENT)
9
+ string(REGEX MATCH "${PATTERN}" CONTENTS "${MAKEFILE_CONTENT}")
10
+ set(CONTENTS ${CMAKE_MATCH_1})
11
+ # Split string into list
12
+ string(REGEX REPLACE "([\t ]+(\\\\\n)?)+" ";" CONTENTS "${CONTENTS}")
13
+ string(REGEX REPLACE "[\t ]*\\\\\n[\t ]*;" "" CONTENTS "${CONTENTS}")
14
+ if("${CONTENTS}" STREQUAL "")
15
+ message(AUTHOR_WARNING "No match for \"${PATTERN}\" found in file ${FILEPATH}")
16
+ endif()
17
+ # Return
18
+ set(${RETURN} ${CONTENTS} PARENT_SCOPE)
19
+ endfunction(extract_from_makefile)
20
+
21
+ # Function to extract C sources from makefile
22
+ function(extract_sources SUBFOLDER ALLSOURCES)
23
+ extract_from_makefile("lib[a-zA-Z1-9_]*_la_SOURCES[ \t]*=[ \t]*(((\\\\\n)?[^\n])*)" SOURCEFILES "${SUBFOLDER}/Makefile.am")
24
+ # Add the folder in front of the file names
25
+ string(REGEX REPLACE "([^;]+)" "${SUBFOLDER}/\\1" SOURCEFILES "${SOURCEFILES}")
26
+ # Return
27
+ set(${ALLSOURCES} ${${ALLSOURCES}} ${SOURCEFILES} PARENT_SCOPE)
28
+ endfunction(extract_sources)
29
+
30
+ set(SOURCES)
31
+ set(CBLAS_SOURCES)
32
+ extract_from_makefile("SUBDIRS = (((\\\\\n)?[^\n])*)" FOLDERS "./Makefile.am")
33
+ extract_sources("." SOURCES)
34
+ foreach(DIR IN LISTS FOLDERS)
35
+ if("${DIR}" STREQUAL "cblas")
36
+ extract_sources("${DIR}" CBLAS_SOURCES)
37
+ else()
38
+ extract_sources("${DIR}" SOURCES)
39
+ endif()
40
+ endforeach()
41
+
42
+ file(READ gsl_types.h GSLTYPES_H)
43
+ string(REPLACE "#ifdef WIN32" "#if 1 /*WIN32*/" GSLTYPES_H "${GSLTYPES_H}")
44
+ if(BUILD_SHARED_LIBS)
45
+ string(REPLACE "# ifdef GSL_DLL" "# if 1 /*GSL_DLL*/" GSLTYPES_H "${GSLTYPES_H}")
46
+ endif()
47
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/gsl_types.h "${GSLTYPES_H}")
48
+
49
+ file(GLOB_RECURSE PUBLIC_HEADERS gsl*.h)
50
+ list(APPEND PUBLIC_HEADERS ${CMAKE_CURRENT_BINARY_DIR}/gsl_types.h)
51
+
52
+ # The debug libraries have a "d" postfix so that CMake's FindGSL.cmake
53
+ # module can distinguish between Release and Debug libraries
54
+ set(CMAKE_DEBUG_POSTFIX "d")
55
+
56
+ add_library(gslcblas ${CBLAS_SOURCES})
57
+ set_target_properties(gslcblas PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
58
+
59
+ add_library(gsl ${SOURCES})
60
+ set_target_properties(gsl PROPERTIES DEFINE_SYMBOL DLL_EXPORT WINDOWS_EXPORT_ALL_SYMBOLS ON)
61
+ target_link_libraries(gsl PUBLIC gslcblas)
62
+
63
+
64
+ if(INSTALL_HEADERS)
65
+ set_target_properties(gsl PROPERTIES PUBLIC_HEADER "${PUBLIC_HEADERS}")
66
+ endif()
67
+ target_include_directories(gslcblas PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
68
+ target_include_directories(gsl PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
69
+ # For the build, we need to copy all headers to the gsl directory
70
+ file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/gsl)
71
+ file(COPY ${PUBLIC_HEADERS} DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/gsl")
72
+
73
+ set(TARGET_INSTALL_OPTIONS)
74
+ if(INSTALL_HEADERS)
75
+ set(TARGET_INSTALL_OPTIONS PUBLIC_HEADER DESTINATION include/gsl)
76
+ endif()
77
+
78
+ install(TARGETS gsl gslcblas
79
+ RUNTIME DESTINATION bin
80
+ LIBRARY DESTINATION lib
81
+ ARCHIVE DESTINATION lib
82
+ ${TARGET_INSTALL_OPTIONS}
83
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(GSL_VERSION 2.7.1)
2
+
3
+ vcpkg_download_distfile(ARCHIVE
4
+ URLS "https://ftp.gnu.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz"
5
+ FILENAME "gsl-${GSL_VERSION}.tar.gz"
6
+ SHA512 3300a748b63b583374701d5ae2a9db7349d0de51061a9f98e7c145b2f7de9710b3ad58b3318d0be2a9a287ace4cc5735bb9348cdf48075b98c1f6cc1029df131
7
+ )
8
+
9
+ vcpkg_extract_source_archive_ex(
10
+ OUT_SOURCE_PATH SOURCE_PATH
11
+ ARCHIVE ${ARCHIVE}
12
+ PATCHES
13
+ 0001-configure.patch
14
+ 0002-add-fp-control.patch
15
+ )
16
+
17
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
18
+
19
+ vcpkg_cmake_configure(
20
+ SOURCE_PATH "${SOURCE_PATH}"
21
+ OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
22
+ )
23
+
24
+ vcpkg_cmake_install()
25
+ vcpkg_copy_pdbs()
26
+
27
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
28
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
29
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package gsl is compatible with built-in CMake targets:
2
+
3
+ find_package(GSL REQUIRED)
4
+ target_link_libraries(main PRIVATE GSL::gsl GSL::gslcblas)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ _find_package(${ARGS})
2
+ if(GSL_FOUND AND TARGET GSL::gsl)
3
+ set_property( TARGET GSL::gslcblas APPEND PROPERTY IMPORTED_CONFIGURATIONS Release )
4
+ set_property( TARGET GSL::gsl APPEND PROPERTY IMPORTED_CONFIGURATIONS Release )
5
+ if( EXISTS "${GSL_LIBRARY_DEBUG}" AND EXISTS "${GSL_CBLAS_LIBRARY_DEBUG}")
6
+ set_property( TARGET GSL::gsl APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug )
7
+ set_target_properties( GSL::gsl PROPERTIES IMPORTED_LOCATION_DEBUG "${GSL_LIBRARY_DEBUG}" )
8
+ set_property( TARGET GSL::gslcblas APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug )
9
+ set_target_properties( GSL::gslcblas PROPERTIES IMPORTED_LOCATION_DEBUG "${GSL_CBLAS_LIBRARY_DEBUG}" )
10
+ endif()
11
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsl/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gsl",
3
+ "version": "2.7.1",
4
+ "description": "The GNU Scientific Library is a numerical library for C and C++ programmers",
5
+ "homepage": "https://www.gnu.org/software/gsl/",
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/gsoap/fix-build-in-windows.patch ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln | 8 +-
2
+ .../soapcpp2/soapcpp2/soapcpp2.vcxproj | 114 +++++++++++++++++
3
+ gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln | 8 +-
4
+ .../VisualStudio2005/wsdl2h/wsdl2h/wsdl2h.vcxproj | 139 +++++++++++++++++++++
5
+ 4 files changed, 263 insertions(+), 6 deletions(-)
6
+
7
+ diff --git a/gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln b/gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln
8
+ index 68bacf1..5d74e6b 100644
9
+ --- a/gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln
10
+ +++ b/gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln
11
+ @@ -1,7 +1,9 @@
12
+ 
13
+ -Microsoft Visual Studio Solution File, Format Version 9.00
14
+ -# Visual C++ Express 2005
15
+ -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "soapcpp2", "soapcpp2\soapcpp2.vcproj", "{BDD1B293-CE39-4BEC-8E63-8B1621F3EB56}"
16
+ +Microsoft Visual Studio Solution File, Format Version 12.00
17
+ +# Visual Studio 14
18
+ +VisualStudioVersion = 14.0.25420.1
19
+ +MinimumVisualStudioVersion = 10.0.40219.1
20
+ +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "soapcpp2", "soapcpp2\soapcpp2.vcxproj", "{BDD1B293-CE39-4BEC-8E63-8B1621F3EB56}"
21
+ EndProject
22
+ Global
23
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
24
+ diff --git a/gsoap/VisualStudio2005/soapcpp2/soapcpp2/soapcpp2.vcxproj b/gsoap/VisualStudio2005/soapcpp2/soapcpp2/soapcpp2.vcxproj
25
+ new file mode 100644
26
+ index 0000000..17f1d75
27
+ --- /dev/null
28
+ +++ b/gsoap/VisualStudio2005/soapcpp2/soapcpp2/soapcpp2.vcxproj
29
+ @@ -0,0 +1,114 @@
30
+ +<?xml version="1.0" encoding="utf-8"?>
31
+ +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
32
+ + <ItemGroup Label="ProjectConfigurations">
33
+ + <ProjectConfiguration Include="Debug|Win32">
34
+ + <Configuration>Debug</Configuration>
35
+ + <Platform>Win32</Platform>
36
+ + </ProjectConfiguration>
37
+ + <ProjectConfiguration Include="Release|Win32">
38
+ + <Configuration>Release</Configuration>
39
+ + <Platform>Win32</Platform>
40
+ + </ProjectConfiguration>
41
+ + </ItemGroup>
42
+ + <PropertyGroup Label="Globals">
43
+ + <ProjectGuid>{BDD1B293-CE39-4BEC-8E63-8B1621F3EB56}</ProjectGuid>
44
+ + <RootNamespace>soapcpp2</RootNamespace>
45
+ + <Keyword>Win32Proj</Keyword>
46
+ + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
47
+ + </PropertyGroup>
48
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
49
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
50
+ + <ConfigurationType>Application</ConfigurationType>
51
+ + <PlatformToolset>v140</PlatformToolset>
52
+ + <CharacterSet>Unicode</CharacterSet>
53
+ + <WholeProgramOptimization>true</WholeProgramOptimization>
54
+ + </PropertyGroup>
55
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
56
+ + <ConfigurationType>Application</ConfigurationType>
57
+ + <PlatformToolset>v140</PlatformToolset>
58
+ + <CharacterSet>Unicode</CharacterSet>
59
+ + </PropertyGroup>
60
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
61
+ + <ImportGroup Label="ExtensionSettings">
62
+ + </ImportGroup>
63
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
64
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
65
+ + </ImportGroup>
66
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
67
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
68
+ + </ImportGroup>
69
+ + <PropertyGroup Label="UserMacros" />
70
+ + <PropertyGroup>
71
+ + <_ProjectFileVersion>14.0.25431.1</_ProjectFileVersion>
72
+ + </PropertyGroup>
73
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
74
+ + <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
75
+ + <IntDir>$(Configuration)\</IntDir>
76
+ + <LinkIncremental>true</LinkIncremental>
77
+ + </PropertyGroup>
78
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
79
+ + <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
80
+ + <IntDir>$(Configuration)\</IntDir>
81
+ + <LinkIncremental>false</LinkIncremental>
82
+ + </PropertyGroup>
83
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
84
+ + <ClCompile>
85
+ + <Optimization>Disabled</Optimization>
86
+ + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
87
+ + <MinimalRebuild>true</MinimalRebuild>
88
+ + <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
89
+ + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
90
+ + <PrecompiledHeader />
91
+ + <WarningLevel>Level3</WarningLevel>
92
+ + <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
93
+ + </ClCompile>
94
+ + <Link>
95
+ + <AdditionalDependencies>kernel32.lib</AdditionalDependencies>
96
+ + <GenerateDebugInformation>true</GenerateDebugInformation>
97
+ + <SubSystem>Console</SubSystem>
98
+ + <TargetMachine>MachineX86</TargetMachine>
99
+ + </Link>
100
+ + </ItemDefinitionGroup>
101
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
102
+ + <ClCompile>
103
+ + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
104
+ + <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
105
+ + <PrecompiledHeader />
106
+ + <WarningLevel>Level3</WarningLevel>
107
+ + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
108
+ + </ClCompile>
109
+ + <Link>
110
+ + <AdditionalDependencies>kernel32.lib</AdditionalDependencies>
111
+ + <GenerateDebugInformation>true</GenerateDebugInformation>
112
+ + <SubSystem>Console</SubSystem>
113
+ + <OptimizeReferences>true</OptimizeReferences>
114
+ + <EnableCOMDATFolding>true</EnableCOMDATFolding>
115
+ + <TargetMachine>MachineX86</TargetMachine>
116
+ + </Link>
117
+ + </ItemDefinitionGroup>
118
+ + <ItemGroup>
119
+ + <ClCompile Include="error2.c" />
120
+ + <ClCompile Include="init2.c" />
121
+ + <ClCompile Include="lex.soapcpp2_lex.c" />
122
+ + <ClCompile Include="soapcpp2.c">
123
+ + <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
124
+ + <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
125
+ + <ObjectFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename)1.obj</ObjectFileName>
126
+ + <XMLDocumentationFileName Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(IntDir)%(Filename)1.xdc</XMLDocumentationFileName>
127
+ + </ClCompile>
128
+ + <ClCompile Include="soapcpp2_yacc.tab.c" />
129
+ + <ClCompile Include="symbol2.c" />
130
+ + </ItemGroup>
131
+ + <ItemGroup>
132
+ + <ClInclude Include="error2.h" />
133
+ + <ClInclude Include="soapcpp2.h" />
134
+ + <ClInclude Include="soapcpp2_yacc.tab.h" />
135
+ + </ItemGroup>
136
+ + <ItemGroup>
137
+ + <None Include="soapcpp2_lex.l" />
138
+ + <None Include="soapcpp2_yacc.y" />
139
+ + </ItemGroup>
140
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
141
+ + <ImportGroup Label="ExtensionTargets">
142
+ + </ImportGroup>
143
+ +</Project>
144
+
145
+ diff --git a/gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln b/gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln
146
+ index ffa3fa4..3f23607 100644
147
+ --- a/gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln
148
+ +++ b/gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln
149
+ @@ -1,7 +1,9 @@
150
+ 
151
+ -Microsoft Visual Studio Solution File, Format Version 9.00
152
+ -# Visual C++ Express 2005
153
+ -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wsdl2h", "wsdl2h\wsdl2h.vcproj", "{6CBC554A-4FFB-461F-91D4-11B358802815}"
154
+ +Microsoft Visual Studio Solution File, Format Version 12.00
155
+ +# Visual Studio 14
156
+ +VisualStudioVersion = 14.0.25420.1
157
+ +MinimumVisualStudioVersion = 10.0.40219.1
158
+ +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "wsdl2h", "wsdl2h\wsdl2h.vcxproj", "{6CBC554A-4FFB-461F-91D4-11B358802815}"
159
+ EndProject
160
+ Global
161
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
162
+ diff --git a/gsoap/VisualStudio2005/wsdl2h/wsdl2h/wsdl2h.vcxproj b/gsoap/VisualStudio2005/wsdl2h/wsdl2h/wsdl2h.vcxproj
163
+ new file mode 100644
164
+ index 0000000..abf3ea6
165
+ --- /dev/null
166
+ +++ b/gsoap/VisualStudio2005/wsdl2h/wsdl2h/wsdl2h.vcxproj
167
+ @@ -0,0 +1,139 @@
168
+ +<?xml version="1.0" encoding="utf-8"?>
169
+ +<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
170
+ + <ItemGroup Label="ProjectConfigurations">
171
+ + <ProjectConfiguration Include="Debug|Win32">
172
+ + <Configuration>Debug</Configuration>
173
+ + <Platform>Win32</Platform>
174
+ + </ProjectConfiguration>
175
+ + <ProjectConfiguration Include="Release|Win32">
176
+ + <Configuration>Release</Configuration>
177
+ + <Platform>Win32</Platform>
178
+ + </ProjectConfiguration>
179
+ + </ItemGroup>
180
+ + <PropertyGroup Label="Globals">
181
+ + <ProjectGuid>{6CBC554A-4FFB-461F-91D4-11B358802815}</ProjectGuid>
182
+ + <RootNamespace>wsdl2h</RootNamespace>
183
+ + <Keyword>Win32Proj</Keyword>
184
+ + <WindowsTargetPlatformVersion>8.1</WindowsTargetPlatformVersion>
185
+ + </PropertyGroup>
186
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
187
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
188
+ + <ConfigurationType>Application</ConfigurationType>
189
+ + <PlatformToolset>v140</PlatformToolset>
190
+ + <CharacterSet>Unicode</CharacterSet>
191
+ + <WholeProgramOptimization>true</WholeProgramOptimization>
192
+ + </PropertyGroup>
193
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
194
+ + <ConfigurationType>Application</ConfigurationType>
195
+ + <PlatformToolset>v140</PlatformToolset>
196
+ + <CharacterSet>Unicode</CharacterSet>
197
+ + </PropertyGroup>
198
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
199
+ + <ImportGroup Label="ExtensionSettings">
200
+ + </ImportGroup>
201
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
202
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
203
+ + </ImportGroup>
204
+ + <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
205
+ + <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
206
+ + </ImportGroup>
207
+ + <PropertyGroup Label="UserMacros" />
208
+ + <PropertyGroup>
209
+ + <_ProjectFileVersion>14.0.25431.1</_ProjectFileVersion>
210
+ + </PropertyGroup>
211
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
212
+ + <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
213
+ + <IntDir>$(Configuration)\</IntDir>
214
+ + <LinkIncremental>true</LinkIncremental>
215
+ + </PropertyGroup>
216
+ + <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
217
+ + <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
218
+ + <IntDir>$(Configuration)\</IntDir>
219
+ + <LinkIncremental>false</LinkIncremental>
220
+ + </PropertyGroup>
221
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
222
+ + <ClCompile>
223
+ + <Optimization>Disabled</Optimization>
224
+ + <PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
225
+ + <MinimalRebuild>true</MinimalRebuild>
226
+ + <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
227
+ + <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
228
+ + <PrecompiledHeader />
229
+ + <WarningLevel>Level3</WarningLevel>
230
+ + <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
231
+ + </ClCompile>
232
+ + <Link>
233
+ + <AdditionalDependencies>kernel32.lib</AdditionalDependencies>
234
+ + <GenerateDebugInformation>true</GenerateDebugInformation>
235
+ + <SubSystem>Console</SubSystem>
236
+ + <TargetMachine>MachineX86</TargetMachine>
237
+ + </Link>
238
+ + </ItemDefinitionGroup>
239
+ + <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
240
+ + <ClCompile>
241
+ + <PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
242
+ + <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
243
+ + <PrecompiledHeader />
244
+ + <WarningLevel>Level3</WarningLevel>
245
+ + <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
246
+ + </ClCompile>
247
+ + <Link>
248
+ + <AdditionalDependencies>kernel32.lib</AdditionalDependencies>
249
+ + <GenerateDebugInformation>true</GenerateDebugInformation>
250
+ + <SubSystem>Console</SubSystem>
251
+ + <OptimizeReferences>true</OptimizeReferences>
252
+ + <EnableCOMDATFolding>true</EnableCOMDATFolding>
253
+ + <TargetMachine>MachineX86</TargetMachine>
254
+ + </Link>
255
+ + </ItemDefinitionGroup>
256
+ + <ItemGroup>
257
+ + <ClCompile Include="bpel.cpp" />
258
+ + <ClCompile Include="mime.cpp" />
259
+ + <ClCompile Include="schema.cpp" />
260
+ + <ClCompile Include="service.cpp" />
261
+ + <ClCompile Include="soap.cpp" />
262
+ + <ClCompile Include="stdsoap2.cpp" />
263
+ + <ClCompile Include="types.cpp" />
264
+ + <ClCompile Include="wadl.cpp" />
265
+ + <ClCompile Include="wsdl.cpp" />
266
+ + <ClCompile Include="wsdl2h.cpp" />
267
+ + <ClCompile Include="wsdlC.cpp" />
268
+ + <ClCompile Include="wsp.cpp" />
269
+ + </ItemGroup>
270
+ + <ItemGroup>
271
+ + <ClInclude Include="bpel.h" />
272
+ + <ClInclude Include="dime.h" />
273
+ + <ClInclude Include="gwsdl.h" />
274
+ + <ClInclude Include="http.h" />
275
+ + <ClInclude Include="imports.h" />
276
+ + <ClInclude Include="includes.h" />
277
+ + <ClInclude Include="mime.h" />
278
+ + <ClInclude Include="schema.h" />
279
+ + <ClInclude Include="service.h" />
280
+ + <ClInclude Include="soap.h" />
281
+ + <ClInclude Include="sp.h" />
282
+ + <ClInclude Include="stdsoap2.h" />
283
+ + <ClInclude Include="types.h" />
284
+ + <ClInclude Include="wadl.h" />
285
+ + <ClInclude Include="wsam.h" />
286
+ + <CustomBuild Include="wsdl.h">
287
+ + <Message Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Parsing WSDL and Schema definitions</Message>
288
+ + <Command Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">soapcpp2.exe -SC -pwsdl %(Filename)%(Extension)
289
+ +</Command>
290
+ + <Outputs Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">wsdlStub.h wsdlH.h wsdlC.cpp;%(Outputs)</Outputs>
291
+ + <Message Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Parsing WSDL and Schema definitions</Message>
292
+ + <Command Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">soapcpp2.exe -SC -pwsdl %(Filename)%(Extension)
293
+ +</Command>
294
+ + <Outputs Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">wsdlStub.h wsdlH.h wsdlC.cpp;%(Outputs)</Outputs>
295
+ + </CustomBuild>
296
+ + <ClInclude Include="wsdlH.h" />
297
+ + <ClInclude Include="wsdlStub.h" />
298
+ + <ClInclude Include="wsp.h" />
299
+ + <ClInclude Include="wsrmp.h" />
300
+ + <ClInclude Include="wst.h" />
301
+ + <ClInclude Include="wsu.h" />
302
+ + </ItemGroup>
303
+ + <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
304
+ + <ImportGroup Label="ExtensionTargets">
305
+ + </ImportGroup>
306
+ +</Project>
307
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsoap/portfile.cmake ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ message(FATAL_ERROR "gsoap does not offer permanent public downloads of its sources; all versions except the latest are removed from sourceforge. Therefore, vcpkg cannot support this library directly in the central catalog. If you would like to use gsoap, you can use this port as a starting point (${CMAKE_CURRENT_LIST_DIR}) and update it to use a permanent commercial copy or the latest public download. Do not report issues with this library to the vcpkg GitHub.")
2
+
3
+ vcpkg_from_sourceforge(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO gsoap2
6
+ REF gsoap-2.8
7
+ FILENAME "gsoap_2.8.112.zip"
8
+ SHA512 0c2562891a738916235f1d4b19d8419d96d0466ca4b729766551183c7b9b90cbe35bbf7fe126b3ea6b18138cbf591c9a9b5b73ddea7152ccdd2f790777c2b6d8
9
+ PATCHES fix-build-in-windows.patch
10
+ )
11
+
12
+ set(BUILD_ARCH "Win32")
13
+
14
+ # Handle binary files and includes
15
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/gsoap ${CURRENT_PACKAGES_DIR}/debug/tools)
16
+
17
+ if (VCPKG_TARGET_IS_WINDOWS)
18
+ vcpkg_build_msbuild(
19
+ USE_VCPKG_INTEGRATION
20
+ PROJECT_PATH ${SOURCE_PATH}/gsoap/VisualStudio2005/soapcpp2/soapcpp2.sln
21
+ PLATFORM ${BUILD_ARCH}
22
+ TARGET Build
23
+ )
24
+ vcpkg_build_msbuild(
25
+ USE_VCPKG_INTEGRATION
26
+ PROJECT_PATH ${SOURCE_PATH}/gsoap/VisualStudio2005/wsdl2h/wsdl2h.sln
27
+ PLATFORM ${BUILD_ARCH}
28
+ TARGET Build
29
+ )
30
+
31
+ file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/soapcpp2/release/soapcpp2.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/gsoap/)
32
+ file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/wsdl2h/release/wsdl2h.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/gsoap/)
33
+ file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/soapcpp2/debug/soapcpp2.exe DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools/gsoap/)
34
+ file(COPY ${SOURCE_PATH}/gsoap/VisualStudio2005/wsdl2h/debug/wsdl2h.exe DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools/gsoap/)
35
+ else()
36
+ message(FATAL_ERROR "Sorry but gsoap only can be build in Windows temporary")
37
+ endif()
38
+
39
+
40
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include)
41
+ file(COPY ${SOURCE_PATH}/gsoap/stdsoap2.h ${SOURCE_PATH}/gsoap/stdsoap2.c ${SOURCE_PATH}/gsoap/stdsoap2.cpp ${SOURCE_PATH}/gsoap/dom.c ${SOURCE_PATH}/gsoap/dom.cpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
42
+
43
+ # Handle import files
44
+ file(COPY ${SOURCE_PATH}/gsoap/import DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
45
+
46
+ # Handle custom files
47
+ file(COPY ${SOURCE_PATH}/gsoap/custom DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
48
+
49
+ # Handle plugin files
50
+ file(COPY ${SOURCE_PATH}/gsoap/plugin DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
51
+
52
+ # Cleanup surplus empty directory
53
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/gsoap/plugin/.deps")
54
+
55
+ # Handle copyright
56
+ file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
57
+ file(INSTALL ${SOURCE_PATH}/INSTALL.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME install)
58
+ file(INSTALL ${SOURCE_PATH}/README.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME readme)
59
+
60
+ vcpkg_copy_pdbs()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gsoap/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gsoap",
3
+ "version": "2.8.112",
4
+ "port-version": 1,
5
+ "description": "The gSOAP toolkit is a C and C++ software development toolkit for SOAP and REST XML Web services and generic C/C++ XML data bindings.",
6
+ "homepage": "https://sourceforge.net/projects/gsoap2/",
7
+ "supports": "!(linux | osx | arm | uwp)"
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gst-rtsp-server/portfile.cmake ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_gitlab(
2
+ GITLAB_URL https://gitlab.freedesktop.org
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO gstreamer/gst-rtsp-server
5
+ REF 1.19.2
6
+ SHA512 a227471c790ea4f399748233128558cbd43e941ad9774b99ecd88c1b521a0adfe2932212e7d854f041892a7c3bfc63a1b3ea9dd06d2f0b75b7eee38e392d8c51
7
+ HEAD_REF master
8
+ )
9
+
10
+ vcpkg_configure_meson(
11
+ SOURCE_PATH ${SOURCE_PATH}
12
+ OPTIONS
13
+ -Dgstreamer:examples=disabled
14
+ -Dgstreamer:tests=disabled
15
+ -Dpackage-origin="vcpkg"
16
+ )
17
+
18
+ vcpkg_install_meson()
19
+
20
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
21
+ file(GLOB DBG_BINS ${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/*.dll
22
+ ${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/*.pdb
23
+ )
24
+ file(COPY ${DBG_BINS} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
25
+ file(GLOB REL_BINS ${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/*.dll
26
+ ${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/*.pdb
27
+ )
28
+ file(COPY ${REL_BINS} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
29
+ file(REMOVE ${DBG_BINS} ${REL_BINS})
30
+ endif()
31
+
32
+ vcpkg_fixup_pkgconfig()
33
+
34
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gst-rtsp-server/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gst-rtsp-server",
3
+ "version": "1.19.2",
4
+ "port-version": 1,
5
+ "description": "gst-rtsp-server is a library on top of GStreamer for building an RTSP server",
6
+ "dependencies": [
7
+ "gstreamer",
8
+ {
9
+ "name": "vcpkg-tool-meson",
10
+ "host": true
11
+ }
12
+ ]
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/gstreamer/gstreamer-disable-hot-doc.patch ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/meson.build b/meson.build
2
+ index 4a2eb27..1316366 100644
3
+ --- a/meson.build
4
+ +++ b/meson.build
5
+ @@ -70,19 +70,19 @@ endif
6
+
7
+ # Ordered list of subprojects (dict has no ordering guarantees)
8
+ subprojects = [
9
+ - ['gstreamer', {'build-hotdoc': true}],
10
+ - ['gst-plugins-base', {'option': get_option('base'), 'build-hotdoc': true}],
11
+ - ['gst-plugins-good', {'option': get_option('good'), 'build-hotdoc': true}],
12
+ + ['gstreamer', {'build-hotdoc': false}],
13
+ + ['gst-plugins-base', {'option': get_option('base'), 'build-hotdoc': false}],
14
+ + ['gst-plugins-good', {'option': get_option('good'), 'build-hotdoc': false}],
15
+ ['libnice', { 'option': get_option('libnice'), 'match_gst_version': false}],
16
+ ['gst-plugins-bad', { 'option': get_option('bad'), 'build-hotdoc': true}],
17
+ - ['gst-plugins-ugly', { 'option': get_option('ugly'), 'build-hotdoc': true}],
18
+ - ['gst-libav', { 'option': get_option('libav'), 'build-hotdoc': true}],
19
+ - ['gst-rtsp-server', { 'option': get_option('rtsp_server'), 'build-hotdoc': true}],
20
+ - ['gst-devtools', { 'option': get_option('devtools'), 'build-hotdoc': true }],
21
+ + ['gst-plugins-ugly', { 'option': get_option('ugly'), 'build-hotdoc': false}],
22
+ + ['gst-libav', { 'option': get_option('libav'), 'build-hotdoc': false}],
23
+ + ['gst-rtsp-server', { 'option': get_option('rtsp_server'), 'build-hotdoc': false}],
24
+ + ['gst-devtools', { 'option': get_option('devtools'), 'build-hotdoc': false }],
25
+ ['gst-integration-testsuites', { 'option': get_option('devtools') }],
26
+ - ['gst-editing-services', { 'option': get_option('ges'), 'build-hotdoc': true}],
27
+ - ['gstreamer-vaapi', { 'option': get_option('vaapi'), 'build-hotdoc': true}],
28
+ - ['gst-omx', { 'option': get_option('omx'), 'build-hotdoc': true}],
29
+ + ['gst-editing-services', { 'option': get_option('ges'), 'build-hotdoc': false}],
30
+ + ['gstreamer-vaapi', { 'option': get_option('vaapi'), 'build-hotdoc': false}],
31
+ + ['gst-omx', { 'option': get_option('omx'), 'build-hotdoc': false}],
32
+ ['gstreamer-sharp', { 'option': get_option('sharp') }],
33
+ ['pygobject', { 'option': get_option('python'), 'match_gst_version': false }],
34
+ ['gst-python', { 'option': get_option('python')}],