Techt3o commited on
Commit
969760e
·
verified ·
1 Parent(s): 6786953

729a7981a4fd16541ac6b2504d2778f06085c6b70cad0261f24807c34f909eb3

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aubio/vcpkg.json +42 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/audiofile/fix-cmakeLists.patch +13 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/audiofile/portfile.cmake +26 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/audiofile/vcpkg.json +17 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aurora/portfile.cmake +10 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aurora/vcpkg.json +7 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/autobahn/portfile.cmake +28 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/autobahn/vcpkg.json +13 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/autodock-vina/CMakeLists.txt +100 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/autodock-vina/portfile.cmake +30 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/autodock-vina/vcpkg.json +31 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/0002-av_init_packet_deprecation.patch +16 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/fix-pkgconfig-location.patch +13 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/portfile.cmake +37 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/vcpkg.json +30 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avisynthplus/portfile.cmake +31 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avisynthplus/vcpkg.json +8 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-c/avro.patch +377 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-c/portfile.cmake +42 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-c/vcpkg.json +19 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/fix-windows-build.patch +33 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/install.patch +106 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/portfile.cmake +36 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/vcpkg.json +32 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-auth/fix-cmake-target-path.patch +28 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-auth/portfile.cmake +39 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-auth/vcpkg.json +24 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/fix-cmake-target-path.patch +28 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/portfile.cmake +40 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/remove-libcrypto-messages.patch +14 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/vcpkg.json +19 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/disable-internal-crt-option.patch +20 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/fix-cmake-target-path.patch +28 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/portfile.cmake +34 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/vcpkg.json +19 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-compression/fix-cmake-target-path.patch +28 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-compression/portfile.cmake +32 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-compression/vcpkg.json +19 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-event-stream/fix-cmake-target-path.patch +28 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-event-stream/portfile.cmake +32 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-event-stream/vcpkg.json +22 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-http/fix-cmake-target-path.patch +28 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-http/portfile.cmake +39 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-http/vcpkg.json +22 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-io/fix-cmake-target-path.patch +27 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-io/portfile.cmake +32 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-io/vcpkg.json +24 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-mqtt/fix-cmake-target-path.patch +28 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-mqtt/portfile.cmake +39 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-mqtt/vcpkg.json +25 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aubio/vcpkg.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aubio",
3
+ "version-semver": "0.4.9",
4
+ "port-version": 7,
5
+ "description": "Aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.",
6
+ "homepage": "https://github.com/aubio/aubio",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ],
17
+ "default-features": [
18
+ "tools"
19
+ ],
20
+ "features": {
21
+ "tools": {
22
+ "description": "Build tools and add extra dependencies",
23
+ "dependencies": [
24
+ "bzip2",
25
+ {
26
+ "name": "ffmpeg",
27
+ "default-features": false,
28
+ "features": [
29
+ "avcodec",
30
+ "avformat",
31
+ "swresample"
32
+ ]
33
+ },
34
+ "libflac",
35
+ "liblzma",
36
+ "libogg",
37
+ "libsndfile",
38
+ "libvorbis"
39
+ ]
40
+ }
41
+ }
42
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/audiofile/fix-cmakeLists.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/CMakeLists.txt
2
+ +++ b/CMakeLists.txt
3
+ @@ -42,3 +42,10 @@ endif ()
4
+
5
+ #===============================================================================
6
+ set (CMAKE_SUPPRESS_REGENERATION true)
7
+ +
8
+ +#install and export targets
9
+ +install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config)
10
+ +export(TARGETS ${PROJECT_NAME} FILE ${PROJECT_NAME}Config.cmake)
11
+ +install(EXPORT ${PROJECT_NAME}Config DESTINATION share/AudioFile FILE ${PROJECT_NAME}Config.cmake)
12
+ +#install headers
13
+ +install(FILES AudioFile.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/audiofile/portfile.cmake ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO adamstark/AudioFile
6
+ REF 004065d01e9b7338580390d4fdbfbaa46adede4e # 1.1.0
7
+ SHA512 99d31035fc82ca8da3c555c30b6b40ea99e15e1f82002c7f04c567ab7aee1de71deddf6930564c56f3a2e83eea1b5f5e9ca631673ed4a943579732b8d62e9603
8
+ HEAD_REF master
9
+ PATCHES
10
+ fix-cmakeLists.patch
11
+ )
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ -DBUILD_EXAMPLES=OFF
17
+ -DBUILD_TESTS=OFF
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+
22
+ vcpkg_cmake_config_fixup(PACKAGE_NAME AudioFile)
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
25
+
26
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/audiofile/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "audiofile",
3
+ "version": "1.1.0",
4
+ "description": "A simple header-only C++ library for reading and writing audio files.",
5
+ "homepage": "https://github.com/adamstark/AudioFile",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aurora/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO Bromeon/Aurora
4
+ REF c75699d2a8caa726260c29b6d7a0fd35f8f28933
5
+ SHA512 862253e281eb441b773feb330d5ce4d7fe10769f516e927c0f875477ec912671fc35132a48986b2394f6d0a7160a5cb70afe868c597350c385ce23686b9613d6
6
+ HEAD_REF master
7
+ )
8
+ file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR})
9
+ file(INSTALL ${SOURCE_PATH}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/aurora RENAME copyright)
10
+ vcpkg_copy_pdbs()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aurora/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aurora",
3
+ "version-string": "2017-06-21-c75699d2a8caa726260c29b6d7a0fd35f8f28933",
4
+ "port-version": 1,
5
+ "description": "Aurora is an open-source C++ library providing various rather uncommon C++ utilities",
6
+ "homepage": "https://github.com/Bromeon/Aurora"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/autobahn/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+ set(USE_UPSTREAM OFF)
3
+ if("upstream" IN_LIST FEATURES)
4
+ set(USE_UPSTREAM ON)
5
+ endif()
6
+
7
+ vcpkg_from_github(
8
+ OUT_SOURCE_PATH SOURCE_PATH
9
+ REPO crossbario/autobahn-cpp
10
+ REF 84972fc81181bde635329bf0474e3874cc5c9091 # v20.8.1
11
+ SHA512 fcd094907826e035188d19efc80f3caa6c90d7d7bd2c5b6796aea9de3a02052bd049329cbe5cb242bba535e70c127842c66d34956e715b4f6f37ffc54c39c483
12
+ HEAD_REF master
13
+ )
14
+
15
+ file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/autobahn)
16
+
17
+ # Copy the header files
18
+ file(COPY "${SOURCE_PATH}/autobahn" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.hpp")
19
+ file(COPY "${SOURCE_PATH}/autobahn" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.ipp")
20
+
21
+ set(PACKAGE_INSTALL_INCLUDE_DIR "\${CMAKE_CURRENT_LIST_DIR}/../../include")
22
+ set(PACKAGE_INIT "
23
+ macro(set_and_check)
24
+ set(\${ARGV})
25
+ endmacro()
26
+ ")
27
+
28
+ configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/autobahn/copyright COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/autobahn/vcpkg.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "autobahn",
3
+ "version-string": "20.8.1",
4
+ "port-version": 1,
5
+ "description": "WAMP for C++ in Boost/Asio",
6
+ "homepage": "https://crossbar.io/autobahn",
7
+ "dependencies": [
8
+ "boost-asio",
9
+ "boost-thread",
10
+ "msgpack",
11
+ "websocketpp"
12
+ ]
13
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/autodock-vina/CMakeLists.txt ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.11)
2
+ cmake_policy(VERSION 3.11)
3
+
4
+ project(autodock-vina)
5
+
6
+ set(GIT_VERSION v1.2.3)
7
+ set(CMAKE_CXX_STANDARD 11)
8
+
9
+ find_package(Boost REQUIRED COMPONENTS
10
+ filesystem
11
+ log
12
+ math_tr1
13
+ program_options
14
+ random
15
+ serialization
16
+ thread
17
+ timer
18
+ )
19
+
20
+ file(GLOB SRC_AUTODOCK_VINA_LIBS
21
+ "src/lib/*.cpp"
22
+ )
23
+
24
+ file(GLOB SRC_AUTODOCK_VINA_SPLIT
25
+ "src/split/*.cpp"
26
+ )
27
+
28
+ file(GLOB HEADERS
29
+ "src/lib/*.h"
30
+ )
31
+
32
+ add_library(vina ${SRC_AUTODOCK_VINA_LIBS})
33
+ add_library(vina_split ${SRC_AUTODOCK_VINA_SPLIT})
34
+
35
+ target_include_directories(vina
36
+ PUBLIC
37
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
38
+ $<INSTALL_INTERFACE:include>
39
+ PRIVATE
40
+ $<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
41
+ )
42
+
43
+ target_include_directories(vina_split
44
+ PUBLIC
45
+ $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/lib/>
46
+ $<INSTALL_INTERFACE:include>
47
+ PRIVATE
48
+ $<BUILD_INTERFACE:${Boost_INCLUDE_DIRS}>
49
+ )
50
+
51
+ target_compile_definitions(vina
52
+ PUBLIC
53
+ -DVERSION=\"${GIT_VERSION}\"
54
+ )
55
+
56
+ target_compile_definitions(vina_split
57
+ PUBLIC
58
+ -DVERSION=\"${GIT_VERSION}\"
59
+ )
60
+
61
+ target_link_libraries(vina
62
+ PRIVATE
63
+ Boost::boost
64
+ Boost::filesystem
65
+ Boost::log
66
+ Boost::math_tr1
67
+ Boost::program_options
68
+ Boost::random
69
+ Boost::serialization
70
+ Boost::thread
71
+ Boost::timer
72
+ )
73
+
74
+ target_link_libraries(vina_split
75
+ PRIVATE
76
+ Boost::boost
77
+ Boost::filesystem
78
+ Boost::log
79
+ Boost::math_tr1
80
+ Boost::program_options
81
+ Boost::random
82
+ Boost::serialization
83
+ Boost::thread
84
+ Boost::timer
85
+ )
86
+
87
+ install(TARGETS vina EXPORT autodock-vina-config
88
+ RUNTIME DESTINATION bin
89
+ ARCHIVE DESTINATION lib
90
+ LIBRARY DESTINATION lib
91
+ )
92
+
93
+ install(TARGETS vina_split EXPORT autodock-vina-config
94
+ RUNTIME DESTINATION bin
95
+ ARCHIVE DESTINATION lib
96
+ LIBRARY DESTINATION lib
97
+ )
98
+
99
+ install(FILES ${HEADERS} DESTINATION include/autodock-vina)
100
+ install(EXPORT autodock-vina-config NAMESPACE autodock-vina::autodock-vina:: DESTINATION share/autodock-vina)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/autodock-vina/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO ccsb-scripps/AutoDock-Vina
6
+ REF v1.2.3
7
+ SHA512 ea3d3008553665af5fbafa3b4dfe379df257d9c5b957d81a91ec8b92f06a8d0f4c2dfc30b515a64c0bc6dcc70acedfdd498c3bb9a21cac58e43d4da37d2ff606
8
+ HEAD_REF develop
9
+ )
10
+
11
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup()
20
+
21
+ vcpkg_copy_pdbs()
22
+
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
25
+
26
+ file(
27
+ INSTALL "${SOURCE_PATH}/LICENSE"
28
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
29
+ RENAME copyright
30
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/autodock-vina/vcpkg.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "autodock-vina",
3
+ "version-semver": "1.2.3",
4
+ "description": "AutoDock Vina is one of the fastest and most widely used open-source docking engines.",
5
+ "homepage": "http://vina.scripps.edu/",
6
+ "dependencies": [
7
+ "boost-algorithm",
8
+ "boost-array",
9
+ "boost-filesystem",
10
+ "boost-lexical-cast",
11
+ "boost-log",
12
+ "boost-math",
13
+ "boost-optional",
14
+ "boost-program-options",
15
+ "boost-ptr-container",
16
+ "boost-random",
17
+ "boost-serialization",
18
+ "boost-static-assert",
19
+ "boost-thread",
20
+ "boost-timer",
21
+ "boost-utility",
22
+ {
23
+ "name": "vcpkg-cmake",
24
+ "host": true
25
+ },
26
+ {
27
+ "name": "vcpkg-cmake-config",
28
+ "host": true
29
+ }
30
+ ]
31
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/0002-av_init_packet_deprecation.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index a5fed05..7875b91 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -24,6 +24,11 @@ set (AVCPP_WARNING_OPTIONS
6
+ $<$<CXX_COMPILER_ID:MSVC>:
7
+ /W4>)
8
+
9
+ +# fixes vcpkg uwp failures due to /sdl
10
+ +if(MSVC)
11
+ + add_compile_options(/wd4996)
12
+ +endif()
13
+ +
14
+ # -pthread sets also some useful compile-time flags
15
+ set(THREADS_PREFER_PTHREAD_FLAG ON)
16
+ find_package(Threads)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/fix-pkgconfig-location.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index e0104f4..dae0942 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -128,7 +128,7 @@ if (AVCPP_NOT_SUBPROJECT)
6
+ )
7
+
8
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libavcpp.pc"
9
+ - DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig")
10
+ + DESTINATION "lib/pkgconfig")
11
+
12
+ endif()
13
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/portfile.cmake ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # avcpp doesn't export any symbols
2
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
3
+
4
+ vcpkg_from_github(
5
+ OUT_SOURCE_PATH SOURCE_PATH
6
+ REPO h4tr3d/avcpp
7
+ REF fa9a1ef70bbf9e9f3963fbaa4540e8aac4ad8daa
8
+ SHA512 e0821d8e01e0fdb28d58564c87cafa7f9349b1b31dc90d4f2ea4c22c51fc16555f4a01f30d7575798138067921a011faa10e4d2ac2ac02acdf224546724e0338
9
+ HEAD_REF master
10
+ PATCHES
11
+ 0002-av_init_packet_deprecation.patch
12
+ fix-pkgconfig-location.patch
13
+ )
14
+
15
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" AVCPP_ENABLE_STATIC)
16
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" AVCPP_ENABLE_SHARED)
17
+
18
+ vcpkg_cmake_configure(
19
+ SOURCE_PATH "${SOURCE_PATH}"
20
+ OPTIONS
21
+ "-DAV_ENABLE_STATIC=${AVCPP_ENABLE_STATIC}"
22
+ "-DAV_ENABLE_SHARED=${AVCPP_ENABLE_SHARED}"
23
+ -DAV_BUILD_EXAMPLES=OFF
24
+ -DBUILD_TESTING=OFF
25
+ )
26
+ vcpkg_cmake_install()
27
+
28
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
29
+
30
+ vcpkg_fixup_pkgconfig()
31
+
32
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
33
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
34
+
35
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
36
+
37
+ vcpkg_copy_pdbs()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avcpp/vcpkg.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "avcpp",
3
+ "version-date": "2021-06-14",
4
+ "port-version": 1,
5
+ "description": "Wrapper for the FFmpeg that simplify usage it from C++ projects.",
6
+ "homepage": "https://github.com/h4tr3d/avcpp",
7
+ "dependencies": [
8
+ {
9
+ "name": "ffmpeg",
10
+ "default-features": false,
11
+ "features": [
12
+ "avcodec",
13
+ "avdevice",
14
+ "avfilter",
15
+ "avformat",
16
+ "postproc",
17
+ "swresample",
18
+ "swscale"
19
+ ]
20
+ },
21
+ {
22
+ "name": "vcpkg-cmake",
23
+ "host": true
24
+ },
25
+ {
26
+ "name": "vcpkg-cmake-config",
27
+ "host": true
28
+ }
29
+ ]
30
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avisynthplus/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO AviSynth/AviSynthPlus
4
+ REF v3.7.0
5
+ SHA512 0f2d5344c4472b810667b99d9e99a2ec8135923f4185dbd7e29ca65e696ce13500ea20ef09c995486573314149a671e1256a4dd0696c4ace8d3ec3716ffdcfc7
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_download_distfile(GHC_ARCHIVE
10
+ URLS "https://github.com/gulrak/filesystem/archive/3f1c185ab414e764c694b8171d1c4d8c5c437517.zip"
11
+ FILENAME filesystem-3f1c185ab414e764c694b8171d1c4d8c5c437517.zip
12
+ SHA512 e3fe1e41b31f840ebc219fcd795e7be2973b80bb3843d6bb080786ad9e3e7f846a118673cb9e17d76bae66954e64e024a82622fb8cea7818d5d9357de661d3d1
13
+ )
14
+
15
+ file(REMOVE_RECURSE ${SOURCE_PATH}/filesystem)
16
+ vcpkg_extract_source_archive(extracted_archive ARCHIVE "${GHC_ARCHIVE}")
17
+ file(RENAME "${extracted_archive}" "${SOURCE_PATH}/filesystem")
18
+
19
+ vcpkg_configure_cmake(
20
+ SOURCE_PATH ${SOURCE_PATH}
21
+ PREFER_NINJA
22
+ OPTIONS
23
+ -DENABLE_PLUGINS=OFF
24
+ )
25
+
26
+ vcpkg_install_cmake()
27
+ vcpkg_copy_pdbs()
28
+ vcpkg_fixup_pkgconfig()
29
+
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
31
+ file(INSTALL ${SOURCE_PATH}/distrib/gpl.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avisynthplus/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "avisynthplus",
3
+ "version-semver": "3.7.0",
4
+ "port-version": 3,
5
+ "description": "An improved version of the AviSynth frameserver, with improved features and developer friendliness",
6
+ "homepage": "https://avs-plus.net/",
7
+ "supports": "!arm & !uwp"
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-c/avro.patch ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/lang/c/CMakeLists.txt b/lang/c/CMakeLists.txt
2
+ index aa923e1..9ee7937 100644
3
+ --- a/lang/c/CMakeLists.txt
4
+ +++ b/lang/c/CMakeLists.txt
5
+ @@ -22,6 +22,9 @@ enable_testing()
6
+
7
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})
8
+
9
+ +option(BUILD_EXAMPLES "Build examples." OFF)
10
+ +option(BUILD_TESTS "Build tests." OFF)
11
+ +option(BUILD_DOCS "Build docs." OFF)
12
+ # Eliminates warning about linker paths when linking both zlib and
13
+ # liblzma.
14
+ cmake_policy(SET CMP0003 NEW)
15
+ @@ -149,20 +152,25 @@ else (ZLIB_FOUND)
16
+ message("Disabled deflate codec. zlib not found.")
17
+ endif (ZLIB_FOUND)
18
+
19
+ -find_package(Snappy)
20
+ -if (SNAPPY_FOUND AND ZLIB_FOUND) # Snappy borrows crc32 from zlib
21
+ +find_package(Snappy CONFIG REQUIRED)
22
+ +if (Snappy_FOUND AND ZLIB_FOUND) # Snappy borrows crc32 from zlib
23
+ set(SNAPPY_PKG libsnappy)
24
+ add_definitions(-DSNAPPY_CODEC)
25
+ + set(SNAPPY_LIBRARIES Snappy::snappy)
26
+ + if (UNIX)
27
+ + set(SNAPPY_LIBRARIES ${SNAPPY_LIBRARIES} -lstdc++)
28
+ + endif ()
29
+ include_directories(${SNAPPY_INCLUDE_DIRS})
30
+ message("Enabled snappy codec")
31
+ -else (SNAPPY_FOUND AND ZLIB_FOUND)
32
+ +else (Snappy_FOUND AND ZLIB_FOUND)
33
+ set(SNAPPY_PKG "")
34
+ set(SNAPPY_LIBRARIES "")
35
+ message("Disabled snappy codec. libsnappy not found or zlib not found.")
36
+ -endif (SNAPPY_FOUND AND ZLIB_FOUND)
37
+ +endif (Snappy_FOUND AND ZLIB_FOUND)
38
+
39
+ -find_package(PkgConfig)
40
+ -pkg_check_modules(LZMA liblzma)
41
+ +find_package(LibLZMA REQUIRED)
42
+ +set(LZMA_FOUND 1)
43
+ +set(LZMA_LIBRARIES LibLZMA::LibLZMA)
44
+ if (LZMA_FOUND)
45
+ set(LZMA_PKG liblzma)
46
+ add_definitions(-DLZMA_CODEC)
47
+ @@ -179,20 +187,26 @@ set(CODEC_LIBRARIES ${ZLIB_LIBRARIES} ${LZMA_LIBRARIES} ${SNAPPY_LIBRARIES})
48
+ set(CODEC_PKG "@ZLIB_PKG@ @LZMA_PKG@ @SNAPPY_PKG@")
49
+
50
+ # Jansson JSON library
51
+ -pkg_check_modules(JANSSON jansson>=2.3)
52
+ -if (JANSSON_FOUND)
53
+ +find_package(jansson CONFIG REQUIRED)
54
+ +if (jansson_FOUND)
55
+ set(JANSSON_PKG libjansson)
56
+ + set(JANSSON_LIBRARIES jansson::jansson)
57
+ include_directories(${JANSSON_INCLUDE_DIRS})
58
+ link_directories(${JANSSON_LIBRARY_DIRS})
59
+ -else (JANSSON_FOUND)
60
+ +else (jansson_FOUND)
61
+ message(FATAL_ERROR "libjansson >=2.3 not found")
62
+ -endif (JANSSON_FOUND)
63
+ +endif (jansson_FOUND)
64
+
65
+
66
+ add_subdirectory(src)
67
+ +if(BUILD_EXAMPLES)
68
+ add_subdirectory(examples)
69
+ +endif()
70
+ +if(BUILD_TESTS)
71
+ add_subdirectory(tests)
72
+ +endif()
73
+ +if(BUILD_DOCS)
74
+ add_subdirectory(docs)
75
+ -
76
+ +endif()
77
+ add_custom_target(pretty
78
+ "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_SOURCE_DIR}/cmake_pretty.cmake")
79
+ diff --git a/lang/c/src/avro/msinttypes.h b/lang/c/src/avro/msinttypes.h
80
+ index 29be14b..020346d 100644
81
+ --- a/lang/c/src/avro/msinttypes.h
82
+ +++ b/lang/c/src/avro/msinttypes.h
83
+ @@ -54,6 +54,10 @@
84
+
85
+ // 7.8 Format conversion of integer types
86
+
87
+ +#if (_MSC_VER >= 1900)
88
+ +# include <inttypes.h>
89
+ +#else
90
+ +
91
+ typedef struct {
92
+ intmax_t quot;
93
+ intmax_t rem;
94
+ @@ -311,5 +315,6 @@ imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom)
95
+ #define wcstoimax _wcstoi64
96
+ #define wcstoumax _wcstoui64
97
+
98
+ +#endif // (_MSC_VER >= 1900)
99
+
100
+ #endif // _MSC_INTTYPES_H_ ]
101
+ diff --git a/lang/c/src/avro/msstdint.h b/lang/c/src/avro/msstdint.h
102
+ index d02608a..54e8972 100644
103
+ --- a/lang/c/src/avro/msstdint.h
104
+ +++ b/lang/c/src/avro/msstdint.h
105
+ @@ -42,6 +42,10 @@
106
+
107
+ #include <limits.h>
108
+
109
+ +#if (_MSC_VER >= 1900)
110
+ +# include <stdint.h>
111
+ +#else
112
+ +
113
+ // For Visual Studio 6 in C++ mode and for many Visual Studio versions when
114
+ // compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}'
115
+ // or compiler give many errors like this:
116
+ @@ -243,5 +247,6 @@ typedef uint64_t uintmax_t;
117
+
118
+ #endif // __STDC_CONSTANT_MACROS ]
119
+
120
+ +#endif // (_MSC_VER >= 1900)
121
+
122
+ #endif // _MSC_STDINT_H_ ]
123
+ diff --git a/lang/c/src/avro/platform.h b/lang/c/src/avro/platform.h
124
+ index 9293055..edfe1e0 100644
125
+ --- a/lang/c/src/avro/platform.h
126
+ +++ b/lang/c/src/avro/platform.h
127
+ @@ -35,8 +35,10 @@ extern "C" {
128
+ // Defines for printing size_t.
129
+ #if defined(_WIN64)
130
+ #define PRIsz PRIu64
131
+ + typedef __int64 ssize_t;
132
+ #elif defined(_WIN32)
133
+ #define PRIsz PRIu32
134
+ + typedef long ssize_t;
135
+ #else // GCC
136
+ #define PRIsz "zu"
137
+ #endif
138
+ diff --git a/lang/c/src/avro_private.h b/lang/c/src/avro_private.h
139
+ index f97ef6b..9c47d26 100644
140
+ --- a/lang/c/src/avro_private.h
141
+ +++ b/lang/c/src/avro_private.h
142
+ @@ -34,7 +34,7 @@ extern "C" {
143
+ #endif
144
+
145
+ #ifdef _WIN32
146
+ -#define snprintf _snprintf
147
+ +// #define snprintf _snprintf
148
+ #endif
149
+
150
+ /* Note that AVRO_PLATFORM_IS_BIG_ENDIAN is *always* defined. It is
151
+ diff --git a/lang/c/src/avroappend.c b/lang/c/src/avroappend.c
152
+ index 7243c60..39656ff 100644
153
+ --- a/lang/c/src/avroappend.c
154
+ +++ b/lang/c/src/avroappend.c
155
+ @@ -20,7 +20,7 @@
156
+ #include <sys/types.h>
157
+ #include <sys/stat.h>
158
+ #ifdef _WIN32
159
+ -#include <unistd.h>
160
+ +#include <io.h>
161
+ #endif
162
+
163
+ #include "avro.h"
164
+ diff --git a/lang/c/src/codec.c b/lang/c/src/codec.c
165
+ index 613a914..8092326 100644
166
+ --- a/lang/c/src/codec.c
167
+ +++ b/lang/c/src/codec.c
168
+ @@ -272,7 +272,7 @@ static int encode_deflate(avro_codec_t c, void * data, int64_t len)
169
+ s->next_in = (Bytef*)data;
170
+ s->avail_in = (uInt)len;
171
+
172
+ - s->next_out = c->block_data;
173
+ + s->next_out = (Bytef*)c->block_data;
174
+ s->avail_out = (uInt)c->block_size;
175
+
176
+ s->total_out = 0;
177
+ @@ -316,10 +316,10 @@ static int decode_deflate(avro_codec_t c, void * data, int64_t len)
178
+
179
+ c->used_size = 0;
180
+
181
+ - s->next_in = data;
182
+ + s->next_in = (Bytef*)data;
183
+ s->avail_in = len;
184
+
185
+ - s->next_out = c->block_data;
186
+ + s->next_out = (Bytef*)c->block_data;
187
+ s->avail_out = c->block_size;
188
+
189
+ s->total_out = 0;
190
+ @@ -340,7 +340,7 @@ static int decode_deflate(avro_codec_t c, void * data, int64_t len)
191
+ if (err == Z_BUF_ERROR)
192
+ {
193
+ c->block_data = avro_realloc(c->block_data, c->block_size, c->block_size * 2);
194
+ - s->next_out = c->block_data + s->total_out;
195
+ + s->next_out = (Bytef*)c->block_data + s->total_out;
196
+ s->avail_out += c->block_size;
197
+ c->block_size = c->block_size * 2;
198
+ }
199
+ @@ -443,7 +443,7 @@ static int encode_lzma(avro_codec_t codec, void * data, int64_t len)
200
+ return 1;
201
+ }
202
+
203
+ - ret = lzma_raw_buffer_encode(filters, NULL, data, len, codec->block_data, &written, codec->block_size);
204
+ + ret = lzma_raw_buffer_encode(filters, NULL, (const uint8_t*)data, len, (uint8_t*)codec->block_data, &written, codec->block_size);
205
+
206
+ codec->used_size = written;
207
+
208
+ @@ -474,8 +474,8 @@ static int decode_lzma(avro_codec_t codec, void * data, int64_t len)
209
+
210
+ do
211
+ {
212
+ - ret = lzma_raw_buffer_decode(filters, NULL, data,
213
+ - &read_pos, len, codec->block_data, &write_pos,
214
+ + ret = lzma_raw_buffer_decode(filters, NULL, (const uint8_t*)data,
215
+ + &read_pos, len, (uint8_t*)codec->block_data, &write_pos,
216
+ codec->block_size);
217
+
218
+ codec->used_size = write_pos;
219
+ diff --git a/lang/c/src/schema.c b/lang/c/src/schema.c
220
+ index 7b38900..e3794d5 100644
221
+ --- a/lang/c/src/schema.c
222
+ +++ b/lang/c/src/schema.c
223
+ @@ -74,7 +74,7 @@ static int is_avro_id(const char *name)
224
+ * namespace (as a newly allocated buffer using Avro's allocator). */
225
+ static char *split_namespace_name(const char *fullname, const char **name_out)
226
+ {
227
+ - char *last_dot = strrchr(fullname, '.');
228
+ + const char *last_dot = strrchr(fullname, '.');
229
+ if (last_dot == NULL) {
230
+ *name_out = fullname;
231
+ return NULL;
232
+ @@ -770,12 +770,12 @@ avro_schema_t avro_schema_link_target(avro_schema_t schema)
233
+ }
234
+
235
+ static const char *
236
+ -qualify_name(const char *name, const char *namespace)
237
+ +qualify_name(const char *name, const char *namespaceX)
238
+ {
239
+ char *full_name;
240
+ - if (namespace != NULL && strchr(name, '.') == NULL) {
241
+ - full_name = avro_str_alloc(strlen(name) + strlen(namespace) + 2);
242
+ - sprintf(full_name, "%s.%s", namespace, name);
243
+ + if (namespaceX != NULL && strchr(name, '.') == NULL) {
244
+ + full_name = avro_str_alloc(strlen(name) + strlen(namespaceX) + 2);
245
+ + sprintf(full_name, "%s.%s", namespaceX, name);
246
+ } else {
247
+ full_name = avro_strdup(name);
248
+ }
249
+ @@ -786,20 +786,20 @@ static int
250
+ save_named_schemas(const avro_schema_t schema, st_table *st)
251
+ {
252
+ const char *name = avro_schema_name(schema);
253
+ - const char *namespace = avro_schema_namespace(schema);
254
+ - const char *full_name = qualify_name(name, namespace);
255
+ + const char *namespaceX = avro_schema_namespace(schema);
256
+ + const char *full_name = qualify_name(name, namespaceX);
257
+ int rval = st_insert(st, (st_data_t) full_name, (st_data_t) schema);
258
+ return rval;
259
+ }
260
+
261
+ static avro_schema_t
262
+ -find_named_schemas(const char *name, const char *namespace, st_table *st)
263
+ +find_named_schemas(const char *name, const char *namespaceX, st_table *st)
264
+ {
265
+ union {
266
+ avro_schema_t schema;
267
+ st_data_t data;
268
+ } val;
269
+ - const char *full_name = qualify_name(name, namespace);
270
+ + const char *full_name = qualify_name(name, namespaceX);
271
+ int rval = st_lookup(st, (st_data_t) full_name, &(val.data));
272
+ avro_str_free((char *)full_name);
273
+ if (rval) {
274
+ @@ -812,7 +812,7 @@ find_named_schemas(const char *name, const char *namespace, st_table *st)
275
+ static int
276
+ avro_type_from_json_t(json_t *json, avro_type_t *type,
277
+ st_table *named_schemas, avro_schema_t *named_type,
278
+ - const char *namespace)
279
+ + const char *namespaceX)
280
+ {
281
+ json_t *json_type;
282
+ const char *type_str;
283
+ @@ -863,7 +863,7 @@ avro_type_from_json_t(json_t *json, avro_type_t *type,
284
+ *type = AVRO_MAP;
285
+ } else if (strcmp(type_str, "fixed") == 0) {
286
+ *type = AVRO_FIXED;
287
+ - } else if ((*named_type = find_named_schemas(type_str, namespace, named_schemas))) {
288
+ + } else if ((*named_type = find_named_schemas(type_str, namespaceX, named_schemas))) {
289
+ *type = AVRO_LINK;
290
+ } else {
291
+ avro_set_error("Unknown Avro \"type\": %s", type_str);
292
+ @@ -954,15 +954,15 @@ avro_schema_from_json_t(json_t *json, avro_schema_t *schema,
293
+ }
294
+
295
+ if (strchr(fullname, '.')) {
296
+ - char *namespace = split_namespace_name(fullname, &name);
297
+ - *schema = avro_schema_record(name, namespace);
298
+ - avro_str_free(namespace);
299
+ + char *namespaceX = split_namespace_name(fullname, &name);
300
+ + *schema = avro_schema_record(name, namespaceX);
301
+ + avro_str_free(namespaceX);
302
+ } else if (json_is_string(json_namespace)) {
303
+ - const char *namespace = json_string_value(json_namespace);
304
+ - if (strlen(namespace) == 0) {
305
+ - namespace = NULL;
306
+ + const char *namespaceX = json_string_value(json_namespace);
307
+ + if (strlen(namespaceX) == 0) {
308
+ + namespaceX = NULL;
309
+ }
310
+ - *schema = avro_schema_record(fullname, namespace);
311
+ + *schema = avro_schema_record(fullname, namespaceX);
312
+ } else {
313
+ *schema = avro_schema_record(fullname, parent_namespace);
314
+ }
315
+ @@ -1053,16 +1053,16 @@ avro_schema_from_json_t(json_t *json, avro_schema_t *schema,
316
+ }
317
+
318
+ if (strchr(fullname, '.')) {
319
+ - char *namespace;
320
+ - namespace = split_namespace_name(fullname, &name);
321
+ - *schema = avro_schema_enum_ns(name, namespace);
322
+ - avro_str_free(namespace);
323
+ + char *namespaceX;
324
+ + namespaceX = split_namespace_name(fullname, &name);
325
+ + *schema = avro_schema_enum_ns(name, namespaceX);
326
+ + avro_str_free(namespaceX);
327
+ } else if (json_is_string(json_namespace)) {
328
+ - const char *namespace = json_string_value(json_namespace);
329
+ - if (strlen(namespace) == 0) {
330
+ - namespace = NULL;
331
+ + const char *namespaceX = json_string_value(json_namespace);
332
+ + if (strlen(namespaceX) == 0) {
333
+ + namespaceX = NULL;
334
+ }
335
+ - *schema = avro_schema_enum_ns(fullname, namespace);
336
+ + *schema = avro_schema_enum_ns(fullname, namespaceX);
337
+ } else {
338
+ *schema = avro_schema_enum_ns(fullname, parent_namespace);
339
+ }
340
+ @@ -1190,16 +1190,16 @@ avro_schema_from_json_t(json_t *json, avro_schema_t *schema,
341
+ fullname = json_string_value(json_name);
342
+
343
+ if (strchr(fullname, '.')) {
344
+ - char *namespace;
345
+ - namespace = split_namespace_name(fullname, &name);
346
+ - *schema = avro_schema_fixed_ns(name, namespace, (int64_t) size);
347
+ - avro_str_free(namespace);
348
+ + char *namespaceX;
349
+ + namespaceX = split_namespace_name(fullname, &name);
350
+ + *schema = avro_schema_fixed_ns(name, namespaceX, (int64_t) size);
351
+ + avro_str_free(namespaceX);
352
+ } else if (json_is_string(json_namespace)) {
353
+ - const char *namespace = json_string_value(json_namespace);
354
+ - if (strlen(namespace) == 0) {
355
+ - namespace = NULL;
356
+ + const char *namespaceX = json_string_value(json_namespace);
357
+ + if (strlen(namespaceX) == 0) {
358
+ + namespaceX = NULL;
359
+ }
360
+ - *schema = avro_schema_fixed_ns(fullname, namespace, (int64_t) size);
361
+ + *schema = avro_schema_fixed_ns(fullname, namespaceX, (int64_t) size);
362
+ } else {
363
+ *schema = avro_schema_fixed_ns(fullname, parent_namespace, (int64_t) size);
364
+ }
365
+ @@ -1821,9 +1821,9 @@ static int write_link(avro_writer_t out, const struct avro_link_schema_t *link,
366
+ {
367
+ int rval;
368
+ check(rval, avro_write_str(out, "\""));
369
+ - const char *namespace = avro_schema_namespace(link->to);
370
+ - if (namespace && nullstrcmp(namespace, parent_namespace)) {
371
+ - check(rval, avro_write_str(out, namespace));
372
+ + const char *namespaceX = avro_schema_namespace(link->to);
373
+ + if (namespaceX && nullstrcmp(namespaceX, parent_namespace)) {
374
+ + check(rval, avro_write_str(out, namespaceX));
375
+ check(rval, avro_write_str(out, "."));
376
+ }
377
+ check(rval, avro_write_str(out, avro_schema_name(link->to)));
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-c/portfile.cmake ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_buildpath_length_warning(37)
2
+ if(VCPKG_TARGET_IS_WINDOWS)
3
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
4
+ endif()
5
+
6
+ vcpkg_from_github(
7
+ OUT_SOURCE_PATH SOURCE_PATH
8
+ REPO apache/avro
9
+ REF 4e1fefca493029ace961b7ef8889a3722458565a #release-1.11.0
10
+ SHA512 6e787983d68bc6ecffd14ca585917f695bc1ae554de9146a436d342f32321c3e7878cdfa32989742e682ac12a6eb914b3e3b515ca3164f386c0281c8b50b53ad
11
+ HEAD_REF master
12
+ PATCHES
13
+ avro.patch # Private vcpkg build fixes
14
+ )
15
+
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}/lang/c"
18
+ OPTIONS
19
+ -DBUILD_EXAMPLES=OFF
20
+ -DBUILD_TESTS=OFF
21
+ -DBUILD_DOCS=OFF
22
+ )
23
+
24
+ vcpkg_cmake_install()
25
+
26
+ vcpkg_copy_pdbs()
27
+
28
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
29
+ # the files are broken and there is no way to fix it because the snappy dependency has no pkgconfig file
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
31
+
32
+ vcpkg_copy_tools(TOOL_NAMES avroappend avrocat AUTO_CLEAN)
33
+
34
+ if(NOT VCPKG_TARGET_IS_WINDOWS)
35
+ vcpkg_copy_tools(TOOL_NAMES avropipe avromod AUTO_CLEAN)
36
+ endif()
37
+
38
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" AND NOT VCPKG_TARGET_IS_WINDOWS)
39
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
40
+ endif()
41
+
42
+ file(INSTALL "${SOURCE_PATH}/lang/c/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-c/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "avro-c",
3
+ "version": "1.11.0",
4
+ "port-version": 3,
5
+ "description": "Apache Avro is a data serialization system",
6
+ "homepage": "https://github.com/apache/avro",
7
+ "license": "Apache-2.0",
8
+ "supports": "!uwp",
9
+ "dependencies": [
10
+ "jansson",
11
+ "liblzma",
12
+ "snappy",
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ "zlib"
18
+ ]
19
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/fix-windows-build.patch ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/lang/c++/impl/avrogencpp.cc b/lang/c++/impl/avrogencpp.cc
2
+ index 61570413..0b6b35a2 100644
3
+ --- a/lang/c++/impl/avrogencpp.cc
4
+ +++ b/lang/c++/impl/avrogencpp.cc
5
+ @@ -804,8 +804,8 @@ static string readGuard(const string &filename) {
6
+
7
+ int main(int argc, char **argv) {
8
+ const string NS("namespace");
9
+ - const string OUT("output");
10
+ - const string IN("input");
11
+ + const string OUT_FILE("output");
12
+ + const string IN_FILE("input");
13
+ const string INCLUDE_PREFIX("include-prefix");
14
+ const string NO_UNION_TYPEDEF("no-union-typedef");
15
+
16
+ @@ -817,14 +817,14 @@ int main(int argc, char **argv) {
17
+ po::store(po::parse_command_line(argc, argv, desc), vm);
18
+ po::notify(vm);
19
+
20
+ - if (vm.count("help") || vm.count(IN) == 0 || vm.count(OUT) == 0) {
21
+ + if (vm.count("help") || vm.count(IN_FILE) == 0 || vm.count(OUT_FILE) == 0) {
22
+ std::cout << desc << std::endl;
23
+ return 1;
24
+ }
25
+
26
+ string ns = vm.count(NS) > 0 ? vm[NS].as<string>() : string();
27
+ - string outf = vm.count(OUT) > 0 ? vm[OUT].as<string>() : string();
28
+ - string inf = vm.count(IN) > 0 ? vm[IN].as<string>() : string();
29
+ + string outf = vm.count(OUT_FILE) > 0 ? vm[OUT_FILE].as<string>() : string();
30
+ + string inf = vm.count(IN_FILE) > 0 ? vm[IN_FILE].as<string>() : string();
31
+ string incPrefix = vm[INCLUDE_PREFIX].as<string>();
32
+ bool noUnion = vm.count(NO_UNION_TYPEDEF) != 0;
33
+ if (incPrefix == "-") {
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/install.patch ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/lang/c++/CMakeLists.txt b/lang/c++/CMakeLists.txt
2
+ index bf764ce4..e84524d0 100644
3
+ --- a/lang/c++/CMakeLists.txt
4
+ +++ b/lang/c++/CMakeLists.txt
5
+ @@ -48,6 +48,8 @@ list(GET AVRO_VERSION 2 AVRO_VERSION_PATCH)
6
+ project (Avro-cpp)
7
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR})
8
+
9
+ +find_package(ZLIB REQUIRED)
10
+ +
11
+ if (WIN32 AND NOT CYGWIN AND NOT MSYS)
12
+ add_definitions (/EHa)
13
+ add_definitions (
14
+ @@ -125,12 +127,12 @@ set_target_properties (avrocpp PROPERTIES
15
+ set_target_properties (avrocpp_s PROPERTIES
16
+ VERSION ${AVRO_VERSION_MAJOR}.${AVRO_VERSION_MINOR}.${AVRO_VERSION_PATCH})
17
+
18
+ -target_link_libraries (avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
19
+ +target_link_libraries (avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES} ZLIB::ZLIB)
20
+ target_include_directories(avrocpp PRIVATE ${SNAPPY_INCLUDE_DIR})
21
+
22
+ add_executable (precompile test/precompile.cc)
23
+
24
+ -target_link_libraries (precompile avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
25
+ +target_link_libraries (precompile avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES} ZLIB::ZLIB)
26
+
27
+ macro (gen file ns)
28
+ add_custom_command (OUTPUT ${file}.hh
29
+ @@ -160,37 +162,42 @@ gen (primitivetypes pt)
30
+ gen (cpp_reserved_words cppres)
31
+
32
+ add_executable (avrogencpp impl/avrogencpp.cc)
33
+ -target_link_libraries (avrogencpp avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
34
+ +target_link_libraries (avrogencpp avrocpp_s ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES} ZLIB::ZLIB)
35
+
36
+ -enable_testing()
37
+ +if(BUILD_TESTING)
38
+ + enable_testing()
39
+ +endif()
40
+
41
+ macro (unittest name)
42
+ add_executable (${name} test/${name}.cc)
43
+ - target_link_libraries (${name} avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES})
44
+ + target_link_libraries (${name} avrocpp ${Boost_LIBRARIES} ${SNAPPY_LIBRARIES} ZLIB::ZLIB)
45
+ add_test (NAME ${name} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
46
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${name})
47
+ endmacro (unittest)
48
+
49
+ -unittest (buffertest)
50
+ -unittest (unittest)
51
+ -unittest (SchemaTests)
52
+ -unittest (LargeSchemaTests)
53
+ -unittest (CodecTests)
54
+ -unittest (StreamTests)
55
+ -unittest (SpecificTests)
56
+ -unittest (DataFileTests)
57
+ -unittest (JsonTests)
58
+ -unittest (AvrogencppTests)
59
+ -unittest (CompilerTests)
60
+ -unittest (AvrogencppTestReservedWords)
61
+ -
62
+ -add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh)
63
+ -
64
+ -add_dependencies (AvrogencppTests bigrecord_hh bigrecord_r_hh bigrecord2_hh
65
+ - tweet_hh
66
+ - union_array_union_hh union_map_union_hh union_conflict_hh
67
+ - recursive_hh reuse_hh circulardep_hh tree1_hh tree2_hh crossref_hh
68
+ - primitivetypes_hh empty_record_hh)
69
+ +if(BUILD_TESTING)
70
+ + unittest (buffertest)
71
+ + unittest (unittest)
72
+ + unittest (SchemaTests)
73
+ + unittest (LargeSchemaTests)
74
+ + unittest (CodecTests)
75
+ + unittest (StreamTests)
76
+ + unittest (SpecificTests)
77
+ + unittest (DataFileTests)
78
+ + unittest (JsonTests)
79
+ + unittest (AvrogencppTests)
80
+ + unittest (CompilerTests)
81
+ + unittest (AvrogencppTestReservedWords)
82
+ +
83
+ + add_dependencies (AvrogencppTestReservedWords cpp_reserved_words_hh)
84
+ +
85
+ + add_dependencies (AvrogencppTests bigrecord_hh bigrecord_r_hh bigrecord2_hh
86
+ + tweet_hh
87
+ + union_array_union_hh union_map_union_hh union_conflict_hh
88
+ + recursive_hh reuse_hh circulardep_hh tree1_hh tree2_hh crossref_hh
89
+ + primitivetypes_hh empty_record_hh)
90
+ +
91
+ +endif()
92
+
93
+ include (InstallRequiredSystemLibraries)
94
+
95
+ @@ -201,9 +208,9 @@ include (CPack)
96
+ install (TARGETS avrocpp avrocpp_s
97
+ LIBRARY DESTINATION lib
98
+ ARCHIVE DESTINATION lib
99
+ - RUNTIME DESTINATION lib)
100
+ + RUNTIME DESTINATION bin)
101
+
102
+ -install (TARGETS avrogencpp RUNTIME DESTINATION bin)
103
+ +install (TARGETS avrogencpp RUNTIME DESTINATION tools/bin)
104
+
105
+ install (DIRECTORY api/ DESTINATION include/avro
106
+ FILES_MATCHING PATTERN *.hh)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO apache/avro
6
+ REF 2ab8fa85d05f04387bd5d63b10ad1c8fd2243616
7
+ SHA512 fd21f0919b0e5e884bdf4d66c4d5ba056f04c426b309ec0b5ab26642a5f6b00d46f4dd965431b10130bc5f0d81699e2195780e90e127f63049ee5763403ef7c8
8
+ HEAD_REF master
9
+ PATCHES
10
+ install.patch
11
+ fix-windows-build.patch
12
+ )
13
+
14
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
15
+ INVERTED_FEATURES
16
+ snappy CMAKE_DISABLE_FIND_PACKAGE_Snappy
17
+ )
18
+
19
+ vcpkg_configure_cmake(
20
+ SOURCE_PATH ${SOURCE_PATH}/lang/c++
21
+ PREFER_NINJA
22
+ DISABLE_PARALLEL_CONFIGURE
23
+ OPTIONS
24
+ -DBUILD_TESTING=OFF
25
+ ${FEATURE_OPTIONS}
26
+ OPTIONS_DEBUG
27
+ -DAVRO_ADD_PROTECTOR_FLAGS=1
28
+ )
29
+
30
+ vcpkg_install_cmake(ADD_BIN_TO_PATH)
31
+
32
+ vcpkg_copy_pdbs()
33
+
34
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
35
+
36
+ file(INSTALL ${SOURCE_PATH}/lang/c++/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/avro-cpp/vcpkg.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "avro-cpp",
3
+ "version-date": "2021-06-01",
4
+ "port-version": 1,
5
+ "description": "Apache Avro is a data serialization system",
6
+ "homepage": "https://github.com/apache/avro",
7
+ "supports": "!(windows & static)",
8
+ "dependencies": [
9
+ "boost-crc",
10
+ "boost-filesystem",
11
+ "boost-format",
12
+ "boost-iostreams",
13
+ "boost-math",
14
+ "boost-program-options",
15
+ "boost-random",
16
+ "boost-test",
17
+ "boost-thread",
18
+ "bzip2",
19
+ "liblzma",
20
+ "libzip",
21
+ "zlib",
22
+ "zstd"
23
+ ],
24
+ "features": {
25
+ "snappy": {
26
+ "description": "Support Snappy for compression",
27
+ "dependencies": [
28
+ "snappy"
29
+ ]
30
+ }
31
+ }
32
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-auth/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 6a00afa..eba3d43 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -118,7 +118,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}/"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-auth-config.cmake b/cmake/aws-c-auth-config.cmake
15
+ index 430c1d7..6adbe53 100644
16
+ --- a/cmake/aws-c-auth-config.cmake
17
+ +++ b/cmake/aws-c-auth-config.cmake
18
+ @@ -5,9 +5,5 @@ find_dependency(aws-c-cal)
19
+ find_dependency(aws-c-io)
20
+ find_dependency(aws-c-http)
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-auth/portfile.cmake ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-auth
4
+ REF 61b6524960ad5e0c7aa2e38b343425d5941781bf # v0.6.3
5
+ SHA512 b5dda92e4a8796f3f1b8e2d326f57979a673f57325c921cdbc9c44273ada2f2a8eb6723f0292d223175ba4cca24508d2b635fad2af5ec7dd9e7b06db9588ede6
6
+ HEAD_REF master
7
+ PATCHES fix-cmake-target-path.patch
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
14
+ -DBUILD_TESTING=FALSE
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-auth/cmake)
20
+
21
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
22
+ file(REMOVE_RECURSE
23
+ "${CURRENT_PACKAGES_DIR}/bin"
24
+ "${CURRENT_PACKAGES_DIR}/debug/bin"
25
+ )
26
+ endif()
27
+
28
+ file(REMOVE_RECURSE
29
+ "${CURRENT_PACKAGES_DIR}/debug/include"
30
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-auth"
31
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-auth"
32
+ )
33
+
34
+ vcpkg_copy_pdbs()
35
+
36
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
37
+
38
+ # Handle copyright
39
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-auth/vcpkg.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-auth",
3
+ "version": "0.6.3",
4
+ "port-version": 2,
5
+ "description": "C99 library implementation of AWS client-side authentication: standard credentials providers and signing.",
6
+ "homepage": "https://github.com/awslabs/aws-c-auth",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-common",
10
+ "aws-c-http",
11
+ {
12
+ "name": "s2n",
13
+ "platform": "!uwp & !windows"
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake",
17
+ "host": true
18
+ },
19
+ {
20
+ "name": "vcpkg-cmake-config",
21
+ "host": true
22
+ }
23
+ ]
24
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 6039819..b74b65c 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -158,7 +158,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}/"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-cal-config.cmake b/cmake/aws-c-cal-config.cmake
15
+ index 73e7311..e87c43a 100644
16
+ --- a/cmake/aws-c-cal-config.cmake
17
+ +++ b/cmake/aws-c-cal-config.cmake
18
+ @@ -7,9 +7,5 @@ if (NOT BYO_CRYPTO AND NOT WIN32 AND NOT APPLE)
19
+ find_dependency(LibCrypto)
20
+ endif()
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/portfile.cmake ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-cal
4
+ REF c4c5b175e05f2affe5e3f0203ca6c8bc5cdd8f51 # v0.5.12
5
+ SHA512 25dd1d7f207f1324aed418555dda1c3d4ec64baf76431c9efd88fd3c34b163a2e5a6778192d2c0caf937f3efd31b2f21e6a0d0f7230684d176164da0e8bcc92e
6
+ HEAD_REF master
7
+ PATCHES fix-cmake-target-path.patch
8
+ remove-libcrypto-messages.patch
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ OPTIONS
14
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
15
+ -DBUILD_TESTING=FALSE
16
+ )
17
+
18
+ vcpkg_cmake_install()
19
+
20
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-cal/cmake)
21
+
22
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
23
+ file(REMOVE_RECURSE
24
+ "${CURRENT_PACKAGES_DIR}/bin"
25
+ "${CURRENT_PACKAGES_DIR}/debug/bin"
26
+ )
27
+ endif()
28
+
29
+ file(REMOVE_RECURSE
30
+ "${CURRENT_PACKAGES_DIR}/debug/include"
31
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-cal"
32
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-cal"
33
+ )
34
+
35
+ vcpkg_copy_pdbs()
36
+
37
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
38
+
39
+ # Handle copyright
40
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/remove-libcrypto-messages.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/modules/FindLibCrypto.cmake b/cmake/modules/FindLibCrypto.cmake
2
+ index 564ba97..f748212 100644
3
+ --- a/cmake/modules/FindLibCrypto.cmake
4
+ +++ b/cmake/modules/FindLibCrypto.cmake
5
+ @@ -89,9 +89,6 @@ else()
6
+ set(LIBCRYPTO_FOUND true)
7
+ set(LibCrypto_FOUND true)
8
+
9
+ - message(STATUS "LibCrypto Include Dir: ${LibCrypto_INCLUDE_DIR}")
10
+ - message(STATUS "LibCrypto Shared Lib: ${LibCrypto_SHARED_LIBRARY}")
11
+ - message(STATUS "LibCrypto Static Lib: ${LibCrypto_STATIC_LIBRARY}")
12
+ if (NOT TARGET crypto AND
13
+ (EXISTS "${LibCrypto_LIBRARY}")
14
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-cal/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-cal",
3
+ "version": "0.5.12",
4
+ "port-version": 2,
5
+ "description": "C99 wrapper for cryptography primitives.",
6
+ "homepage": "https://github.com/awslabs/aws-c-cal",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-common",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ]
19
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/disable-internal-crt-option.patch ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/AwsCFlags.cmake b/cmake/AwsCFlags.cmake
2
+ index 249b7d5..41a31e2 100644
3
+ --- a/cmake/AwsCFlags.cmake
4
+ +++ b/cmake/AwsCFlags.cmake
5
+ @@ -38,15 +38,6 @@ function(aws_set_common_properties target)
6
+ list(APPEND AWS_C_FLAGS /DAWS_SUPPORT_WIN7=1)
7
+ endif()
8
+
9
+ - string(TOUPPER "${CMAKE_BUILD_TYPE}" _CMAKE_BUILD_TYPE)
10
+ - if(STATIC_CRT)
11
+ - string(REPLACE "/MD" "/MT" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}")
12
+ - else()
13
+ - string(REPLACE "/MT" "/MD" _FLAGS "${CMAKE_C_FLAGS_${_CMAKE_BUILD_TYPE}}")
14
+ - endif()
15
+ - string(REPLACE " " ";" _FLAGS "${_FLAGS}")
16
+ - list(APPEND AWS_C_FLAGS "${_FLAGS}")
17
+ -
18
+ else()
19
+ list(APPEND AWS_C_FLAGS -Wall -Wstrict-prototypes)
20
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 9b01f56..3cc541d 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -239,7 +239,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-common-config.cmake b/cmake/aws-c-common-config.cmake
15
+ index e495210..b7676c2 100644
16
+ --- a/cmake/aws-c-common-config.cmake
17
+ +++ b/cmake/aws-c-common-config.cmake
18
+ @@ -4,9 +4,5 @@ if(WIN32 OR UNIX OR APPLE)
19
+ find_package(Threads REQUIRED)
20
+ endif()
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/portfile.cmake ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-common
4
+ REF fdd4a10243903260f412f587cc748f0ac79629b4 # v0.6.9
5
+ SHA512 969c9b85af58fc144480f6548e78126cf3fe758951ecbdffb579163b9a505a7ea58c32430390102ff620e828bf241dd24c0167f205306949d36dcf4504efa09a
6
+ HEAD_REF master
7
+ PATCHES
8
+ disable-internal-crt-option.patch # Disable internal crt option because vcpkg contains crt processing flow
9
+ fix-cmake-target-path.patch # Shared libraries and static libraries are not built at the same time
10
+ )
11
+
12
+ vcpkg_cmake_configure(
13
+ SOURCE_PATH "${SOURCE_PATH}"
14
+ OPTIONS
15
+ -DBUILD_TESTING=FALSE
16
+ )
17
+
18
+ vcpkg_cmake_install()
19
+
20
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-common/cmake)
21
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
22
+
23
+ file(REMOVE_RECURSE
24
+ "${CURRENT_PACKAGES_DIR}/debug/include"
25
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-common"
26
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-common"
27
+ )
28
+
29
+ vcpkg_copy_pdbs()
30
+
31
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
32
+
33
+ # Handle copyright
34
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-common/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-common",
3
+ "version": "0.6.9",
4
+ "port-version": 2,
5
+ "description": "AWS common library for C",
6
+ "homepage": "https://github.com/awslabs/aws-c-common",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "openssl",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ]
19
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-compression/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index e70e013..0639229 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -88,7 +88,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-compression-config.cmake b/cmake/aws-c-compression-config.cmake
15
+ index d919e90..707ce3a 100644
16
+ --- a/cmake/aws-c-compression-config.cmake
17
+ +++ b/cmake/aws-c-compression-config.cmake
18
+ @@ -2,9 +2,5 @@ include(CMakeFindDependencyMacro)
19
+
20
+ find_dependency(aws-c-common)
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-compression/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-compression
4
+ REF 5fab8bc5ab5321d86f6d153b06062419080820ec # v0.2.14
5
+ SHA512 0063d0d644824d858211840115c17a33bfc2b67799e886c530ea8a42071b7bfc67bb6cf8135c538a292b8a7a6276b1d24bb7649f37ce335bc16938f2fca5cb7d
6
+ HEAD_REF master
7
+ PATCHES fix-cmake-target-path.patch
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
14
+ -DBUILD_TESTING=FALSE
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-compression/cmake)
20
+
21
+ file(REMOVE_RECURSE
22
+ "${CURRENT_PACKAGES_DIR}/debug/include"
23
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-compression"
24
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-compression"
25
+ )
26
+
27
+ vcpkg_copy_pdbs()
28
+
29
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
30
+
31
+ # Handle copyright
32
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-compression/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-compression",
3
+ "version": "0.2.14",
4
+ "port-version": 2,
5
+ "description": "C99 implementation of huffman encoding/decoding",
6
+ "homepage": "https://github.com/awslabs/aws-c-compression",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-common",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ }
18
+ ]
19
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-event-stream/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index daf434c..32d7851 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -91,7 +91,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}/"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-event-stream-config.cmake b/cmake/aws-c-event-stream-config.cmake
15
+ index 76adb84..7884368 100644
16
+ --- a/cmake/aws-c-event-stream-config.cmake
17
+ +++ b/cmake/aws-c-event-stream-config.cmake
18
+ @@ -2,9 +2,5 @@ include(CMakeFindDependencyMacro)
19
+ find_dependency(aws-c-io)
20
+ find_dependency(aws-checksums)
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-event-stream/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-event-stream
4
+ REF e87537be561d753ec82e783bc0929b1979c585f8 # v0.2.7
5
+ SHA512 651b05ba6d87ad8f65f6cf7e8940b7ea500722848f3e65c2de0bf84d2e6321d0aa1631d4f64a78cf5ed5ed5adac6805a4e91e5c31b3ae86e8c37afb38da4c786
6
+ HEAD_REF master
7
+ PATCHES fix-cmake-target-path.patch
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common"
14
+ -DBUILD_TESTING=FALSE
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-event-stream/cmake)
20
+
21
+ file(REMOVE_RECURSE
22
+ "${CURRENT_PACKAGES_DIR}/debug/include"
23
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-event-stream"
24
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-event-stream"
25
+ )
26
+
27
+ vcpkg_copy_pdbs()
28
+
29
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
30
+
31
+ # Handle copyright
32
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-event-stream/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-event-stream",
3
+ "version": "0.2.7",
4
+ "port-version": 2,
5
+ "description": "C99 implementation of the vnd.amazon.event-stream content-type.",
6
+ "homepage": "https://github.com/awslabs/aws-c-event-stream",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-cal",
10
+ "aws-c-common",
11
+ "aws-c-io",
12
+ "aws-checksums",
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ }
21
+ ]
22
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-http/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 7b0d8e5..d46b498 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -83,7 +83,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}/"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-http-config.cmake b/cmake/aws-c-http-config.cmake
15
+ index 8633305..eb7f364 100644
16
+ --- a/cmake/aws-c-http-config.cmake
17
+ +++ b/cmake/aws-c-http-config.cmake
18
+ @@ -3,9 +3,5 @@ include(CMakeFindDependencyMacro)
19
+ find_dependency(aws-c-io)
20
+ find_dependency(aws-c-compression)
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-http/portfile.cmake ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-http
4
+ REF 6ff61d621c374ab763f94584d26b1d29baa81c2e # v0.6.5
5
+ SHA512 91a5f3c18e6c8d14368ad2b7275a1ebcc6398758f6b1f87ba6199998390a26e768e25c16b27f589e35371f7304b6784cfc21699ff724c811135f2f73732fe85b
6
+ HEAD_REF master
7
+ PATCHES fix-cmake-target-path.patch
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
14
+ -DBUILD_TESTING=FALSE
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-http/cmake)
20
+
21
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
22
+ file(REMOVE_RECURSE
23
+ "${CURRENT_PACKAGES_DIR}/bin"
24
+ "${CURRENT_PACKAGES_DIR}/debug/bin"
25
+ )
26
+ endif()
27
+
28
+ file(REMOVE_RECURSE
29
+ "${CURRENT_PACKAGES_DIR}/debug/include"
30
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-http"
31
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-http"
32
+ )
33
+
34
+ vcpkg_copy_pdbs()
35
+
36
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
37
+
38
+ # Handle copyright
39
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-http/vcpkg.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-http",
3
+ "version": "0.6.5",
4
+ "port-version": 2,
5
+ "description": "C99 implementation of the HTTP/1.1 and HTTP/2 specifications",
6
+ "homepage": "https://github.com/awslabs/aws-c-http",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-cal",
10
+ "aws-c-common",
11
+ "aws-c-compression",
12
+ "aws-c-io",
13
+ {
14
+ "name": "vcpkg-cmake",
15
+ "host": true
16
+ },
17
+ {
18
+ "name": "vcpkg-cmake-config",
19
+ "host": true
20
+ }
21
+ ]
22
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-io/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index a8a9099..a657782 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -215,7 +215,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-io-config.cmake b/cmake/aws-c-io-config.cmake
15
+ index d4bc525..72a78ec 100644
16
+ --- a/cmake/aws-c-io-config.cmake
17
+ +++ b/cmake/aws-c-io-config.cmake
18
+ @@ -7,8 +7,4 @@ endif()
19
+ find_dependency(aws-c-common)
20
+ find_dependency(aws-c-cal)
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-io/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-io
4
+ REF 57b00febac48e78f8bf8cff4c82a249e6648842a # v0.10.7
5
+ SHA512 ffcf5ba4ccdff23ca390fc4eb935f88040447589886348234aa1c24b531401521df99a6ac578c1679a3c1a06dfcef6deb833a0b9d53e31d42576a3ad03ade6fc
6
+ HEAD_REF master
7
+ PATCHES fix-cmake-target-path.patch
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
14
+ -DBUILD_TESTING=FALSE
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-io/cmake)
20
+
21
+ file(REMOVE_RECURSE
22
+ "${CURRENT_PACKAGES_DIR}/debug/include"
23
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-io"
24
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-io"
25
+ )
26
+
27
+ vcpkg_copy_pdbs()
28
+
29
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
30
+
31
+ # Handle copyright
32
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-io/vcpkg.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-io",
3
+ "version": "0.10.7",
4
+ "port-version": 2,
5
+ "description": "Handles all IO and TLS work for application protocols.",
6
+ "homepage": "https://github.com/awslabs/aws-c-io",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-cal",
10
+ "aws-c-common",
11
+ {
12
+ "name": "s2n",
13
+ "platform": "!uwp & !windows"
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake",
17
+ "host": true
18
+ },
19
+ {
20
+ "name": "vcpkg-cmake-config",
21
+ "host": true
22
+ }
23
+ ]
24
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-mqtt/fix-cmake-target-path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 3d80abb..36c027f 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -94,7 +94,7 @@ else()
6
+ endif()
7
+
8
+ install(EXPORT "${PROJECT_NAME}-targets"
9
+ - DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/${TARGET_DIR}"
10
+ + DESTINATION "${LIBRARY_DIRECTORY}/${PROJECT_NAME}/cmake/"
11
+ NAMESPACE AWS::
12
+ COMPONENT Development)
13
+
14
+ diff --git a/cmake/aws-c-mqtt-config.cmake b/cmake/aws-c-mqtt-config.cmake
15
+ index 4a4dcbb..2ad48d2 100644
16
+ --- a/cmake/aws-c-mqtt-config.cmake
17
+ +++ b/cmake/aws-c-mqtt-config.cmake
18
+ @@ -6,9 +6,5 @@ if (@MQTT_WITH_WEBSOCKETS@)
19
+ find_dependency(aws-c-http)
20
+ endif()
21
+
22
+ -if (BUILD_SHARED_LIBS)
23
+ - include(${CMAKE_CURRENT_LIST_DIR}/shared/@[email protected])
24
+ -else()
25
+ - include(${CMAKE_CURRENT_LIST_DIR}/static/@[email protected])
26
+ -endif()
27
+ +include(${CMAKE_CURRENT_LIST_DIR}/@[email protected])
28
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-mqtt/portfile.cmake ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO awslabs/aws-c-mqtt
4
+ REF 0a70bf814845e487b7e4862af7ad9e4a1199b5f4 # v0.7.6
5
+ SHA512 9c8719004e9e4c56f270c5c5dcb41b5ecacb050dadf2a548ab2119a1a8f223c9117829346e2e86c8c77f6efe3502019085344fe4f470ccdd646dc87a3d4f4c3f
6
+ HEAD_REF master
7
+ PATCHES fix-cmake-target-path.patch
8
+ )
9
+
10
+ vcpkg_cmake_configure(
11
+ SOURCE_PATH "${SOURCE_PATH}"
12
+ OPTIONS
13
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
14
+ -DBUILD_TESTING=FALSE
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-mqtt/cmake)
20
+
21
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
22
+ file(REMOVE_RECURSE
23
+ "${CURRENT_PACKAGES_DIR}/bin"
24
+ "${CURRENT_PACKAGES_DIR}/debug/bin"
25
+ )
26
+ endif()
27
+
28
+ file(REMOVE_RECURSE
29
+ "${CURRENT_PACKAGES_DIR}/debug/include"
30
+ "${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-mqtt"
31
+ "${CURRENT_PACKAGES_DIR}/lib/aws-c-mqtt"
32
+ )
33
+
34
+ vcpkg_copy_pdbs()
35
+
36
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
37
+
38
+ # Handle copyright
39
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aws-c-mqtt/vcpkg.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "aws-c-mqtt",
3
+ "version": "0.7.6",
4
+ "port-version": 3,
5
+ "description": "C99 implementation of the MQTT 3.1.1 specification.",
6
+ "homepage": "https://github.com/awslabs/aws-c-mqtt",
7
+ "supports": "!(windows & arm) & !uwp",
8
+ "dependencies": [
9
+ "aws-c-common",
10
+ "aws-c-http",
11
+ "aws-c-io",
12
+ {
13
+ "name": "s2n",
14
+ "platform": "!uwp & !windows"
15
+ },
16
+ {
17
+ "name": "vcpkg-cmake",
18
+ "host": true
19
+ },
20
+ {
21
+ "name": "vcpkg-cmake-config",
22
+ "host": true
23
+ }
24
+ ]
25
+ }