Techt3o commited on
Commit
8dbac44
·
verified ·
1 Parent(s): c873426

97b1d55eb54da27504b647bc547250fbeea4ce57885bf23181e94df8a6aa567c

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/presentmon/CMakeLists.txt +71 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/presentmon/portfile.cmake +33 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/presentmon/vcpkg.json +12 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/fix-proj4-targets-cmake.patch +66 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/fix-win-output-name.patch +13 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/portfile.cmake +69 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/tools-cmake.patch +15 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/usage +4 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/vcpkg.json +57 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj4/portfile.cmake +1 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj4/vcpkg.json +56 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/prometheus-cpp/portfile.cmake +37 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/prometheus-cpp/vcpkg.json +45 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/fix-ifdef.patch +12 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/portfile.cmake +15 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/usage +9 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/vcpkg.json +12 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf-c/fix-crt-linkage.patch +12 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf-c/portfile.cmake +42 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf-c/vcpkg.json +29 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/fix-default-proto-file-path.patch +20 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/fix-static-build.patch +26 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/portfile.cmake +125 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/protobuf-targets-vcpkg-protoc.cmake +8 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/vcpkg-cmake-wrapper.cmake +16 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/vcpkg.json +29 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protopuf/portfile.cmake +21 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protopuf/vcpkg.json +17 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protozero/fix-builderror.patch +13 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protozero/portfile.cmake +21 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/protozero/vcpkg.json +19 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proxygen/fix-zstd-zlib-dependency.patch +30 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proxygen/portfile.cmake +40 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proxygen/remove-register.patch +12 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/proxygen/vcpkg.json +32 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/psimd/portfile.cmake +15 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/psimd/vcpkg.json +6 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/fix-build.patch +99 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/fix-config.cmake.patch +18 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/portfile.cmake +47 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/vcpkg.json +19 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthread/portfile.cmake +1 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthread/vcpkg.json +9 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/fix-cmakelists.patch +82 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/fix-uwp.patch +13 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/portfile.cmake +27 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/vcpkg.json +10 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreads/fix-arm-macro.patch +13 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreads/fix-uwp-linkage.patch +17 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreads/portfile.cmake +108 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/presentmon/CMakeLists.txt ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.11)
2
+ project(presentmon)
3
+
4
+ option(INSTALL_HEADERS "Install presentmon headers" ON)
5
+ option(BUILD_TOOLS "Build tool PresentMon" OFF)
6
+
7
+ set(PRESENTDATA_SRCS
8
+ PresentData/Debug.cpp
9
+ PresentData/MixedRealityTraceConsumer.cpp
10
+ PresentData/PresentMonTraceConsumer.cpp
11
+ PresentData/TraceConsumer.cpp
12
+ PresentData/TraceSession.cpp
13
+ )
14
+
15
+ set(PRESENTDATA_HDRS
16
+ PresentData/Debug.hpp
17
+ PresentData/MixedRealityTraceConsumer.hpp
18
+ PresentData/PresentMonTraceConsumer.hpp
19
+ PresentData/TraceConsumer.hpp
20
+ PresentData/TraceSession.hpp
21
+ ${CMAKE_BINARY_DIR}/generated/version.h
22
+ )
23
+
24
+
25
+ file(GLOB EXTRA_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/PresentData/ETW/*.h)
26
+
27
+ file(WRITE ${CMAKE_BINARY_DIR}/generated/version.h "char const* PRESENT_MON_VERSION = \"1.7.0\";")
28
+
29
+ add_library(PresentData STATIC ${PRESENTDATA_SRCS} ${PRESENTDATA_HDRS} ${EXTRA_INCLUDES})
30
+
31
+ target_include_directories(PresentData PUBLIC
32
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/PresentData>
33
+ $<INSTALL_INTERFACE:include/presentmon>
34
+ )
35
+ target_compile_definitions(PresentData PRIVATE UNICODE)
36
+
37
+ # Install targets
38
+ install(TARGETS PresentData
39
+ RUNTIME DESTINATION bin
40
+ LIBRARY DESTINATION lib
41
+ ARCHIVE DESTINATION lib
42
+ )
43
+
44
+ if (BUILD_TOOLS)
45
+ set(PresentMon_SRCS
46
+ PresentMon/CommandLine.cpp
47
+ PresentMon/Console.cpp
48
+ PresentMon/ConsumerThread.cpp
49
+ PresentMon/CsvOutput.cpp
50
+ PresentMon/LateStageReprojectionData.cpp
51
+ PresentMon/MainThread.cpp
52
+ PresentMon/OutputThread.cpp
53
+ PresentMon/Privilege.cpp
54
+ PresentMon/TraceSession.cpp
55
+ )
56
+
57
+ add_executable(PresentMon ${PresentMon_SRCS})
58
+ target_include_directories(PresentMon PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/PresentMon ${CMAKE_BINARY_DIR})
59
+ target_compile_definitions(PresentMon PRIVATE UNICODE)
60
+ target_link_libraries(PresentMon PRIVATE PresentData Tdh Shlwapi)
61
+
62
+ install(TARGETS PresentMon
63
+ RUNTIME DESTINATION bin
64
+ )
65
+ endif()
66
+
67
+ # Install headers
68
+ if (INSTALL_HEADERS)
69
+ install(FILES ${PRESENTDATA_HDRS} DESTINATION include/presentmon)
70
+ install(FILES ${EXTRA_INCLUDES} DESTINATION include/presentmon/ETW)
71
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/presentmon/portfile.cmake ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # The upstream 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 GameTechDev/PresentMon
7
+ REF 47669ad0efaddc9787772d5e4900734417b2c07c # 1.7.0
8
+ SHA512 fac2e2ca4d8476e2cdde7c3f77cf1881b7d7a9208387f12dbf07f3ea7f4012ce79602f4fedbf1e778871fd9ce898b101659a6f192de29dc6a4404213aee444be
9
+ HEAD_REF main
10
+ )
11
+
12
+ file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
13
+
14
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
15
+ FEATURES
16
+ tools BUILD_TOOLS
17
+ )
18
+
19
+ vcpkg_configure_cmake(
20
+ SOURCE_PATH ${SOURCE_PATH}
21
+ PREFER_NINJA
22
+ OPTIONS ${FEATURE_OPTIONS}
23
+ OPTIONS_DEBUG
24
+ -DINSTALL_HEADERS=OFF
25
+ )
26
+
27
+ vcpkg_install_cmake()
28
+
29
+ if("tools" IN_LIST FEATURES)
30
+ vcpkg_copy_tools(TOOL_NAMES presentmon AUTO_CLEAN)
31
+ endif()
32
+
33
+ file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/presentmon/vcpkg.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "presentmon",
3
+ "version-semver": "1.7.0",
4
+ "port-version": 1,
5
+ "description": "PresentMon is a tool to capture and analyze ETW events related to swap chain presentation on Windows.",
6
+ "supports": "windows & !uwp",
7
+ "features": {
8
+ "tools": {
9
+ "description": "Build tool PresentMon"
10
+ }
11
+ }
12
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/fix-proj4-targets-cmake.patch ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 7d736d129..2be8f8be9 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -129,7 +129,22 @@ if(NOT EXE_SQLITE3)
6
+ message(SEND_ERROR "sqlite3 binary not found!")
7
+ endif()
8
+
9
+ -find_package(Sqlite3 REQUIRED)
10
+ +find_package(unofficial-sqlite3 CONFIG REQUIRED)
11
+ +if(unofficial-sqlite3_FOUND)
12
+ + set(SQLITE3_FOUND true)
13
+ + get_target_property(SQLITE3_INCLUDE_DIR unofficial::sqlite3::sqlite3 INTERFACE_INCLUDE_DIRECTORIES)
14
+ + set(SQLITE3_LIBRARY unofficial::sqlite3::sqlite3)
15
+ + # Extract version information from the header file
16
+ + if(SQLITE3_INCLUDE_DIR)
17
+ + file(STRINGS ${SQLITE3_INCLUDE_DIR}/sqlite3.h _ver_line
18
+ + REGEX "^#define SQLITE_VERSION *\"[0-9]+\\.[0-9]+\\.[0-9]+\""
19
+ + LIMIT_COUNT 1)
20
+ + string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+"
21
+ + SQLITE3_VERSION "${_ver_line}")
22
+ + unset(_ver_line)
23
+ + endif()
24
+ +endif()
25
+ +
26
+ if(NOT SQLITE3_FOUND)
27
+ message(SEND_ERROR "sqlite3 dependency not found!")
28
+ endif()
29
+ @@ -151,6 +165,7 @@ if(ENABLE_TIFF)
30
+ find_package(TIFF REQUIRED)
31
+ if(TIFF_FOUND)
32
+ set(TIFF_ENABLED TRUE)
33
+ + set(TIFF_LIBRARY TIFF::TIFF)
34
+ else()
35
+ message(SEND_ERROR
36
+ "libtiff dependency not found! Use ENABLE_TIFF=OFF to force it off")
37
+ @@ -171,6 +188,7 @@ if(ENABLE_CURL)
38
+ find_package(CURL REQUIRED)
39
+ if(CURL_FOUND)
40
+ set(CURL_ENABLED TRUE)
41
+ + set(CURL_LIBRARY CURL::libcurl)
42
+ else()
43
+ message(SEND_ERROR "curl dependency not found!")
44
+ endif()
45
+ diff --git a/cmake/project-config.cmake.in b/cmake/project-config.cmake.in
46
+ index 23f997abd..8baef00f0 100644
47
+ --- a/cmake/project-config.cmake.in
48
+ +++ b/cmake/project-config.cmake.in
49
+ @@ -7,6 +7,17 @@
50
+ # @PROJECT_VARIANT_NAME@_LIBRARY_DIRS = /usr/local/lib
51
+ # @PROJECT_VARIANT_NAME@_BINARY_DIRS = /usr/local/bin
52
+ # @PROJECT_VARIANT_NAME@_VERSION = 4.9.1 (for example)
53
+ +cmake_policy(PUSH)
54
+ +cmake_policy(SET CMP0012 NEW)
55
+ +include(CMakeFindDependencyMacro)
56
+ +find_dependency(unofficial-sqlite3 CONFIG)
57
+ +if("@ENABLE_TIFF@")
58
+ + find_dependency(TIFF)
59
+ +endif()
60
+ +if("@ENABLE_CURL@")
61
+ + find_dependency(CURL CONFIG)
62
+ +endif()
63
+ +cmake_policy(POP)
64
+
65
+ # Tell the user project where to find our headers and libraries
66
+ get_filename_component (_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/fix-win-output-name.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/ProjUtilities.cmake b/cmake/ProjUtilities.cmake
2
+ index 6f43edb5c..1ed89d597 100644
3
+ --- a/cmake/ProjUtilities.cmake
4
+ +++ b/cmake/ProjUtilities.cmake
5
+ @@ -51,7 +51,7 @@ function(proj_target_output_name TARGET_NAME OUTPUT_NAME)
6
+
7
+ # On Windows, ABI version is specified using binary file name suffix.
8
+ # On Unix, suffix is empty and SOVERSION is used instead.
9
+ - if(WIN32)
10
+ + if(0)
11
+ string(LENGTH "${${PROJECT_NAME}_ABI_VERSION}" abilen)
12
+ if(abilen GREATER 0)
13
+ set(SUFFIX "_${${PROJECT_NAME}_ABI_VERSION}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/portfile.cmake ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO OSGeo/PROJ
4
+ REF 9.0.0
5
+ SHA512 f11a20e9f9615c513755f54ac400cc2e144e40caa91f616c8f640aef9caf779487dc94927b3a4b57b15a595c17b70636b872d9a77d7baaf912b1a507004e6520
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-win-output-name.patch
9
+ fix-proj4-targets-cmake.patch
10
+ tools-cmake.patch
11
+ )
12
+
13
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
14
+ FEATURES
15
+ net ENABLE_CURL
16
+ tiff ENABLE_TIFF
17
+ tools BUILD_APPS
18
+ )
19
+
20
+ vcpkg_list(SET TOOL_NAMES cct cs2cs geod gie invgeod invproj proj projinfo projsync)
21
+ if("tools" IN_LIST FEATURES AND NOT "net" IN_LIST FEATURES)
22
+ set(BUILD_PROJSYNC OFF)
23
+ vcpkg_list(APPEND FEATURE_OPTIONS -DBUILD_PROJSYNC=${BUILD_PROJSYNC})
24
+ vcpkg_list(REMOVE_ITEM TOOL_NAMES projsync)
25
+ endif()
26
+
27
+ find_program(EXE_SQLITE3 NAMES "sqlite3" PATHS "${CURRENT_HOST_INSTALLED_DIR}/tools" NO_DEFAULT_PATH REQUIRED)
28
+
29
+ vcpkg_cmake_configure(
30
+ SOURCE_PATH "${SOURCE_PATH}"
31
+ OPTIONS
32
+ ${FEATURE_OPTIONS}
33
+ -DNLOHMANN_JSON=external
34
+ -DPROJ_LIB_SUBDIR=lib
35
+ -DPROJ_INCLUDE_SUBDIR=include
36
+ -DPROJ_DATA_SUBDIR=share/${PORT}/data
37
+ -DBUILD_TESTING=OFF
38
+ "-DEXE_SQLITE3=${EXE_SQLITE3}"
39
+ )
40
+
41
+ vcpkg_cmake_install()
42
+
43
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
44
+ # Enforce consistency with src/lib_proj.cmake build time configuration.
45
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/proj.h"
46
+ "#ifndef PROJ_DLL"
47
+ "#ifndef PROJ_DLL\n# define PROJ_DLL\n#elif 0"
48
+ )
49
+ endif()
50
+
51
+ vcpkg_cmake_config_fixup(PACKAGE_NAME proj4 CONFIG_PATH lib/cmake/proj4 DO_NOT_DELETE_PARENT_CONFIG_PATH)
52
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/proj)
53
+
54
+ if ("tools" IN_LIST FEATURES)
55
+ vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN)
56
+ endif ()
57
+
58
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
59
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
60
+
61
+ vcpkg_copy_pdbs()
62
+
63
+ vcpkg_fixup_pkgconfig()
64
+ if(NOT DEFINED VCPKG_BUILD_TYPE AND VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
65
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/proj.pc" " -lproj" " -lproj_d")
66
+ endif()
67
+
68
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
69
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/tools-cmake.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/apps/CMakeLists.txt b/src/apps/CMakeLists.txt
2
+ index 534bc311b..f9fb0f1bb 100644
3
+ --- a/src/apps/CMakeLists.txt
4
+ +++ b/src/apps/CMakeLists.txt
5
+ @@ -83,10 +83,3 @@ if(BUILD_PROJSYNC)
6
+
7
+ # global configurations for all apps
8
+
9
+ -if(MSVC OR CMAKE_CONFIGURATION_TYPES)
10
+ - if(BIN_TARGETS)
11
+ - # Add _d suffix for debug versions of the apps
12
+ - set_target_properties(${BIN_TARGETS} PROPERTIES
13
+ - DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
14
+ - endif()
15
+ -endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package proj provides CMake targets:
2
+
3
+ find_package(PROJ CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE PROJ::proj)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj/vcpkg.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "proj",
3
+ "version": "9.0.0",
4
+ "description": "PROJ library for cartographic projections",
5
+ "homepage": "https://proj.org/",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ "nlohmann-json",
9
+ {
10
+ "name": "sqlite3",
11
+ "default-features": false
12
+ },
13
+ {
14
+ "name": "sqlite3",
15
+ "host": true,
16
+ "features": [
17
+ "tool"
18
+ ]
19
+ },
20
+ {
21
+ "name": "vcpkg-cmake",
22
+ "host": true
23
+ },
24
+ {
25
+ "name": "vcpkg-cmake-config",
26
+ "host": true
27
+ }
28
+ ],
29
+ "default-features": [
30
+ "net",
31
+ "tiff"
32
+ ],
33
+ "features": {
34
+ "net": {
35
+ "description": "Enable network support",
36
+ "dependencies": [
37
+ "curl"
38
+ ]
39
+ },
40
+ "tiff": {
41
+ "description": "Enable TIFF support to read some grids",
42
+ "dependencies": [
43
+ {
44
+ "name": "tiff",
45
+ "default-features": false,
46
+ "features": [
47
+ "lzma",
48
+ "zip"
49
+ ]
50
+ }
51
+ ]
52
+ },
53
+ "tools": {
54
+ "description": "Build tools"
55
+ }
56
+ }
57
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj4/portfile.cmake ADDED
@@ -0,0 +1 @@
 
 
1
+ SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proj4/vcpkg.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "proj4",
3
+ "version-semver": "8.9.9",
4
+ "port-version": 1,
5
+ "description": "A stub package that pulls in proj. Do not depend on this package.",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ {
9
+ "name": "proj",
10
+ "default-features": false,
11
+ "version>=": "9.0.0"
12
+ }
13
+ ],
14
+ "default-features": [
15
+ "net",
16
+ "tiff"
17
+ ],
18
+ "features": {
19
+ "net": {
20
+ "description": "Enable network support",
21
+ "dependencies": [
22
+ {
23
+ "name": "proj",
24
+ "default-features": false,
25
+ "features": [
26
+ "net"
27
+ ]
28
+ }
29
+ ]
30
+ },
31
+ "tiff": {
32
+ "description": "Enable TIFF support to read some grids",
33
+ "dependencies": [
34
+ {
35
+ "name": "proj",
36
+ "default-features": false,
37
+ "features": [
38
+ "tiff"
39
+ ]
40
+ }
41
+ ]
42
+ },
43
+ "tools": {
44
+ "description": "Build tools",
45
+ "dependencies": [
46
+ {
47
+ "name": "proj",
48
+ "default-features": false,
49
+ "features": [
50
+ "tools"
51
+ ]
52
+ }
53
+ ]
54
+ }
55
+ }
56
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/prometheus-cpp/portfile.cmake ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO jupp0r/prometheus-cpp
6
+ REF 4ea303fa66e4c26dc4df67045fa0edf09c2f3077 # v1.0.0
7
+ SHA512 f97f380182cb7d8576f444e263159d5cc4572d71020b14a2d599041a6a4e5e2cb677a80c637b5a2bca55d4f0e570e87c2863d5dd48e317e9a912cca5a192e81a
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_check_features(
12
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13
+ FEATURES
14
+ compression ENABLE_COMPRESSION
15
+ pull ENABLE_PULL
16
+ push ENABLE_PUSH
17
+ tests ENABLE_TESTING
18
+ )
19
+
20
+ vcpkg_cmake_configure(
21
+ SOURCE_PATH "${SOURCE_PATH}"
22
+ OPTIONS
23
+ -DUSE_THIRDPARTY_LIBRARIES=OFF # use vcpkg packages
24
+ -DGENERATE_PKGCONFIG=OFF
25
+ ${FEATURE_OPTIONS}
26
+ )
27
+
28
+ vcpkg_cmake_install()
29
+
30
+ vcpkg_copy_pdbs()
31
+
32
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/prometheus-cpp")
33
+
34
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
35
+
36
+ # Handle copyright
37
+ configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/prometheus-cpp/vcpkg.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "prometheus-cpp",
3
+ "version-semver": "1.0.0",
4
+ "description": "Prometheus Client Library for Modern C++",
5
+ "dependencies": [
6
+ {
7
+ "name": "vcpkg-cmake",
8
+ "host": true
9
+ },
10
+ {
11
+ "name": "vcpkg-cmake-config",
12
+ "host": true
13
+ }
14
+ ],
15
+ "default-features": [
16
+ "compression",
17
+ "pull"
18
+ ],
19
+ "features": {
20
+ "compression": {
21
+ "description": "Enable zlib compression",
22
+ "dependencies": [
23
+ "zlib"
24
+ ]
25
+ },
26
+ "pull": {
27
+ "description": "Support for regular pull mode",
28
+ "dependencies": [
29
+ "civetweb"
30
+ ]
31
+ },
32
+ "push": {
33
+ "description": "Support push gateway",
34
+ "dependencies": [
35
+ "curl"
36
+ ]
37
+ },
38
+ "tests": {
39
+ "description": "Additional testing support",
40
+ "dependencies": [
41
+ "gtest"
42
+ ]
43
+ }
44
+ }
45
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/fix-ifdef.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/include/promise-cpp/promise.hpp b/include/promise-cpp/promise.hpp
2
+ --- a/include/promise-cpp/promise.hpp
3
+ +++ b/include/promise-cpp/promise.hpp
4
+ @@ -2,7 +2,7 @@
5
+ #ifndef INC_PROMISE_HPP_
6
+ #define INC_PROMISE_HPP_
7
+
8
+ -#ifdef PROMISE_HEADER_ONLY
9
+ +#ifdef PROMISE_HEADONLY
10
+ #define PROMISE_API inline
11
+ #elif defined PROMISE_BUILD_SHARED
12
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO xhawk18/promise-cpp
4
+ REF 2.1.2
5
+ SHA512 490571e6d6742e05ae6a2549af4e242a1d7084edc583fbbb183798bdddb25d08a7f68becfa94f55b877cba7e2e8e8515964f892881591b5bb394b4b33e6593f7
6
+ HEAD_REF master
7
+ PATCHES fix-ifdef.patch
8
+ )
9
+
10
+ file(GLOB PROMISE_HEADERS "${SOURCE_PATH}/include/*.hpp")
11
+ file(INSTALL "${SOURCE_PATH}/include/promise-cpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
12
+
13
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
14
+
15
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/usage ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ The package promise-cpp is header only and can be used from CMake via:
2
+
3
+ find_path(PROMISE_CPP_INCLUDE_DIRS "promise-cpp/promise.hpp")
4
+ target_include_directories(main PRIVATE ${PROMISE_CPP_INCLUDE_DIRS})
5
+
6
+ Make sure to define the pre-processor macro PROMISE_HEADONLY before including "promise-cpp/promise.hpp":
7
+
8
+ #define PROMISE_HEADONLY
9
+ #include "promise-cpp/promise.hpp"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/promise-cpp/vcpkg.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "promise-cpp",
3
+ "version": "2.1.2",
4
+ "description": "C++ promise/A+ library in Javascript style.",
5
+ "homepage": "https://github.com/xhawk18/promise-cpp",
6
+ "dependencies": [
7
+ {
8
+ "name": "vcpkg-cmake",
9
+ "host": true
10
+ }
11
+ ]
12
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf-c/fix-crt-linkage.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/build-cmake/CMakeLists.txt b/build-cmake/CMakeLists.txt
2
+ --- a/build-cmake/CMakeLists.txt
3
+ +++ b/build-cmake/CMakeLists.txt
4
+ @@ -70,7 +70,7 @@ if (BUILD_PROTO3)
5
+ endif()
6
+ ENDIF()
7
+
8
+ -if (MSVC AND NOT BUILD_SHARED_LIBS)
9
+ +if (0)
10
+ # In case we are building static libraries, link also the runtime library statically
11
+ # so that MSVCR*.DLL is not required at runtime.
12
+ # https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf-c/portfile.cmake ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO protobuf-c/protobuf-c
4
+ REF v1.4.0
5
+ SHA512 cba4c6116c0f2ebb034236e8455d493bfaa2517733befcd87b6f8d6d3df0c0149b17fcbf59cd1763fa2318119c664d0dae3d2d3a46ebfe2a0fec3ef4719b033b
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-crt-linkage.patch
9
+ )
10
+
11
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
12
+ FEATURES
13
+ tools BUILD_PROTOC
14
+ test BUILD_TESTS
15
+ )
16
+
17
+ vcpkg_cmake_configure(
18
+ SOURCE_PATH "${SOURCE_PATH}/build-cmake"
19
+ DISABLE_PARALLEL_CONFIGURE
20
+ OPTIONS ${FEATURE_OPTIONS}
21
+ )
22
+
23
+ vcpkg_cmake_install(ADD_BIN_TO_PATH)
24
+ vcpkg_fixup_pkgconfig()
25
+ vcpkg_copy_pdbs()
26
+
27
+ if("tools" IN_LIST FEATURES)
28
+ vcpkg_copy_tools(
29
+ TOOL_NAMES protoc-gen-c
30
+ AUTO_CLEAN
31
+ )
32
+ endif()
33
+
34
+ # Include files should not be duplicated into the /debug/include directory.
35
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
36
+
37
+ # Remove duplicate PDB files (vcpkg_copy_pdbs already copied them to "bin")
38
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/protobuf-c.pdb")
39
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/protobuf-c.pdb")
40
+
41
+ # Handle copyright
42
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf-c/vcpkg.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "protobuf-c",
3
+ "version-semver": "1.4.0",
4
+ "description": "This is protobuf-c, a C implementation of the Google Protocol Buffers data serialization format.",
5
+ "homepage": "https://github.com/protobuf-c/protobuf-c",
6
+ "dependencies": [
7
+ "protobuf",
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ }
12
+ ],
13
+ "features": {
14
+ "test": {
15
+ "description": "Build test project.",
16
+ "dependencies": [
17
+ {
18
+ "name": "protobuf-c",
19
+ "features": [
20
+ "tools"
21
+ ]
22
+ }
23
+ ]
24
+ },
25
+ "tools": {
26
+ "description": "Build tools (protoc-gen-c)."
27
+ }
28
+ }
29
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/fix-default-proto-file-path.patch ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/google/protobuf/compiler/command_line_interface.cc b/src/google/protobuf/compiler/command_line_interface.cc
2
+ index f192ae6..22900ed 100644
3
+ --- a/src/google/protobuf/compiler/command_line_interface.cc
4
+ +++ b/src/google/protobuf/compiler/command_line_interface.cc
5
+ @@ -260,11 +260,15 @@ void AddDefaultProtoPaths(
6
+ return;
7
+ }
8
+ // Check if the upper level directory has an "include" subdirectory.
9
+ + // change "'$/bin' is next to 'include'" assumption to "'$/bin/tools' is next to 'include'"
10
+ + for (int i = 0; i < 2; i++)
11
+ + {
12
+ pos = path.find_last_of("/\\");
13
+ if (pos == std::string::npos || pos == 0) {
14
+ return;
15
+ }
16
+ path = path.substr(0, pos);
17
+ + }
18
+ if (IsInstalledProtoPath(path + "/include")) {
19
+ paths->push_back(
20
+ std::pair<std::string, std::string>("", path + "/include"));
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/fix-static-build.patch ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
2
+ index 51e8478..64347c4 100644
3
+ --- a/cmake/CMakeLists.txt
4
+ +++ b/cmake/CMakeLists.txt
5
+ @@ -182,7 +182,7 @@ else (protobuf_BUILD_SHARED_LIBS)
6
+ # making programmatic control difficult. Prefer the functionality in newer
7
+ # CMake versions when available.
8
+ if(CMAKE_VERSION VERSION_GREATER 3.15 OR CMAKE_VERSION VERSION_EQUAL 3.15)
9
+ - set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>)
10
+ +
11
+ else()
12
+ # In case we are building static libraries, link also the runtime library statically
13
+ # so that MSVCR*.DLL is not required at runtime.
14
+ diff --git a/cmake/install.cmake b/cmake/install.cmake
15
+ index 4e1c5de..d3aa865 100644
16
+ --- a/cmake/install.cmake
17
+ +++ b/cmake/install.cmake
18
+ @@ -32,7 +32,7 @@ if (protobuf_BUILD_PROTOC_BINARIES)
19
+ install(TARGETS protoc EXPORT protobuf-targets
20
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc
21
+ BUNDLE DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT protoc)
22
+ - if (UNIX AND NOT APPLE)
23
+ + if (UNIX AND NOT APPLE AND NOT protobuf_MSVC_STATIC_RUNTIME)
24
+ set_property(TARGET protoc
25
+ PROPERTY INSTALL_RPATH "$ORIGIN/../${CMAKE_INSTALL_LIBDIR}")
26
+ elseif (APPLE)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/portfile.cmake ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO protocolbuffers/protobuf
4
+ REF v3.19.4
5
+ SHA512 2653b9852e5ac69f1de9b6ac02887c366aa0a9efd2b29e53135f61a9a10f5a1b5853a8c4cbb3658f519dfdbde9f32c547c39751ab417f123162b08be9e76c9e1
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix-static-build.patch
9
+ fix-default-proto-file-path.patch
10
+ )
11
+
12
+ string(COMPARE EQUAL "${TARGET_TRIPLET}" "${HOST_TRIPLET}" protobuf_BUILD_PROTOC_BINARIES)
13
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" protobuf_BUILD_SHARED_LIBS)
14
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" protobuf_MSVC_STATIC_RUNTIME)
15
+
16
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
17
+ FEATURES
18
+ zlib protobuf_WITH_ZLIB
19
+ )
20
+
21
+ if(VCPKG_TARGET_IS_UWP)
22
+ set(protobuf_BUILD_LIBPROTOC OFF)
23
+ else()
24
+ set(protobuf_BUILD_LIBPROTOC ON)
25
+ endif()
26
+
27
+ if (VCPKG_DOWNLOAD_MODE)
28
+ # download PKGCONFIG in download mode which is used in `vcpkg_fixup_pkgconfig()` at the end of this script.
29
+ # download it here because `vcpkg_cmake_configure()` halts execution in download mode when running configure process.
30
+ vcpkg_find_acquire_program(PKGCONFIG)
31
+ endif()
32
+
33
+ vcpkg_cmake_configure(
34
+ SOURCE_PATH ${SOURCE_PATH}/cmake
35
+ OPTIONS
36
+ -Dprotobuf_BUILD_SHARED_LIBS=${protobuf_BUILD_SHARED_LIBS}
37
+ -Dprotobuf_MSVC_STATIC_RUNTIME=${protobuf_MSVC_STATIC_RUNTIME}
38
+ -Dprotobuf_BUILD_TESTS=OFF
39
+ -DCMAKE_INSTALL_CMAKEDIR:STRING=share/protobuf
40
+ -Dprotobuf_BUILD_PROTOC_BINARIES=${protobuf_BUILD_PROTOC_BINARIES}
41
+ -Dprotobuf_BUILD_LIBPROTOC=${protobuf_BUILD_LIBPROTOC}
42
+ ${FEATURE_OPTIONS}
43
+ )
44
+
45
+ vcpkg_cmake_install()
46
+
47
+ # It appears that at this point the build hasn't actually finished. There is probably
48
+ # a process spawned by the build, therefore we need to wait a bit.
49
+
50
+ function(protobuf_try_remove_recurse_wait PATH_TO_REMOVE)
51
+ file(REMOVE_RECURSE ${PATH_TO_REMOVE})
52
+ if (EXISTS "${PATH_TO_REMOVE}")
53
+ execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 5)
54
+ file(REMOVE_RECURSE ${PATH_TO_REMOVE})
55
+ endif()
56
+ endfunction()
57
+
58
+ protobuf_try_remove_recurse_wait("${CURRENT_PACKAGES_DIR}/debug/include")
59
+
60
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
61
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/protobuf/protobuf-targets-release.cmake"
62
+ "\${_IMPORT_PREFIX}/bin/protoc${VCPKG_HOST_EXECUTABLE_SUFFIX}"
63
+ "\${_IMPORT_PREFIX}/tools/protobuf/protoc${VCPKG_HOST_EXECUTABLE_SUFFIX}"
64
+ )
65
+ endif()
66
+
67
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
68
+ file(READ "${CURRENT_PACKAGES_DIR}/debug/share/protobuf/protobuf-targets-debug.cmake" DEBUG_MODULE)
69
+ string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" DEBUG_MODULE "${DEBUG_MODULE}")
70
+ string(REPLACE "\${_IMPORT_PREFIX}/debug/bin/protoc${EXECUTABLE_SUFFIX}" "\${_IMPORT_PREFIX}/tools/protobuf/protoc${EXECUTABLE_SUFFIX}" DEBUG_MODULE "${DEBUG_MODULE}")
71
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/protobuf/protobuf-targets-debug.cmake" "${DEBUG_MODULE}")
72
+ endif()
73
+
74
+ protobuf_try_remove_recurse_wait("${CURRENT_PACKAGES_DIR}/debug/share")
75
+
76
+ if(protobuf_BUILD_PROTOC_BINARIES)
77
+ if(VCPKG_TARGET_IS_WINDOWS)
78
+ vcpkg_copy_tools(TOOL_NAMES protoc AUTO_CLEAN)
79
+ else()
80
+ vcpkg_copy_tools(TOOL_NAMES protoc protoc-3.19.4.0 AUTO_CLEAN)
81
+ endif()
82
+ else()
83
+ file(COPY "${CURRENT_HOST_INSTALLED_DIR}/tools/${PORT}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools")
84
+ endif()
85
+
86
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-config.cmake"
87
+ "if(protobuf_MODULE_COMPATIBLE)"
88
+ "if(ON)"
89
+ )
90
+ if(NOT protobuf_BUILD_LIBPROTOC)
91
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-module.cmake"
92
+ "_protobuf_find_libraries(Protobuf_PROTOC protoc)"
93
+ ""
94
+ )
95
+ endif()
96
+
97
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
98
+ protobuf_try_remove_recurse_wait("${CURRENT_PACKAGES_DIR}/bin")
99
+ protobuf_try_remove_recurse_wait("${CURRENT_PACKAGES_DIR}/debug/bin")
100
+ endif()
101
+
102
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
103
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/google/protobuf/stubs/platform_macros.h"
104
+ "\#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_"
105
+ "\#ifndef PROTOBUF_USE_DLLS\n\#define PROTOBUF_USE_DLLS\n\#endif // PROTOBUF_USE_DLLS\n\n\#endif // GOOGLE_PROTOBUF_PLATFORM_MACROS_H_"
106
+ )
107
+ endif()
108
+
109
+ vcpkg_copy_pdbs()
110
+ set(packages protobuf protobuf-lite)
111
+ foreach(_package IN LISTS packages)
112
+ set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${_package}.pc")
113
+ if(EXISTS "${_file}")
114
+ vcpkg_replace_string(${_file} "-l${_package}" "-l${_package}d")
115
+ endif()
116
+ endforeach()
117
+
118
+ vcpkg_fixup_pkgconfig()
119
+
120
+ if(NOT protobuf_BUILD_PROTOC_BINARIES)
121
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/protobuf-targets-vcpkg-protoc.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/protobuf-targets-vcpkg-protoc.cmake" COPYONLY)
122
+ endif()
123
+
124
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
125
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/protobuf-targets-vcpkg-protoc.cmake ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Create imported target protobuf::protoc
2
+ add_executable(protobuf::protoc IMPORTED)
3
+
4
+ # Import target "protobuf::protoc" for configuration "Release"
5
+ set_property(TARGET protobuf::protoc APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
6
+ set_target_properties(protobuf::protoc PROPERTIES
7
+ IMPORTED_LOCATION_RELEASE "${Protobuf_PROTOC_EXECUTABLE}"
8
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.3)
2
+ cmake_policy(PUSH)
3
+ cmake_policy(SET CMP0057 NEW)
4
+ if(NOT "CONFIG" IN_LIST ARGS AND NOT "NO_MODULE" IN_LIST ARGS)
5
+ if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
6
+ set(Protobuf_USE_STATIC_LIBS ON)
7
+ else()
8
+ set(Protobuf_USE_STATIC_LIBS OFF)
9
+ endif()
10
+ endif()
11
+ cmake_policy(POP)
12
+ endif()
13
+
14
+ find_program(Protobuf_PROTOC_EXECUTABLE NAMES protoc PATHS "${CMAKE_CURRENT_LIST_DIR}/../../tools/protobuf" NO_DEFAULT_PATH)
15
+
16
+ _find_package(${ARGS})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protobuf/vcpkg.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "protobuf",
3
+ "version-semver": "3.19.4",
4
+ "description": "Protocol Buffers - Google's data interchange format",
5
+ "homepage": "https://github.com/protocolbuffers/protobuf",
6
+ "license": "BSD-3-Clause",
7
+ "dependencies": [
8
+ {
9
+ "name": "protobuf",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake",
14
+ "host": true
15
+ },
16
+ {
17
+ "name": "vcpkg-cmake-config",
18
+ "host": true
19
+ }
20
+ ],
21
+ "features": {
22
+ "zlib": {
23
+ "description": "ZLib based features like Gzip streams",
24
+ "dependencies": [
25
+ "zlib"
26
+ ]
27
+ }
28
+ }
29
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protopuf/portfile.cmake ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO PragmaTwice/protopuf
4
+ REF v2.1.0
5
+ SHA512 328fe2a861009c8eaa38299bf1ba31d3a47d73220018d3539b8457bb1d5d512c05e9652769a0261f0ae18be4e1e4e839e5471dfabdf0e6d130361e719ff6aadc
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_cmake_configure(
10
+ SOURCE_PATH "${SOURCE_PATH}"
11
+ OPTIONS
12
+ -DBUILD_TESTS=OFF
13
+ )
14
+
15
+ vcpkg_cmake_install()
16
+
17
+ vcpkg_cmake_config_fixup()
18
+
19
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
20
+
21
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protopuf/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "protopuf",
3
+ "version-semver": "2.1.0",
4
+ "port-version": 1,
5
+ "description": "A little, highly templated, and protobuf-compatible serialization/deserialization library written in C++20",
6
+ "homepage": "https://github.com/PragmaTwice/protopuf",
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/protozero/fix-builderror.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index f9702d6..bd41cbe 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -29,7 +29,7 @@ if(MSVC)
6
+ add_definitions(/W3)
7
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS)
8
+ else()
9
+ - add_definitions(-std=c++11 -Wall -Wextra -pedantic -Wsign-compare -Wunused-parameter -Wno-float-equal -Wno-covered-switch-default)
10
+ + add_definitions(-std=c++17 -Wall -Wextra -pedantic -Wsign-compare -Wunused-parameter -Wno-float-equal -Wno-covered-switch-default)
11
+ if(WERROR)
12
+ add_definitions(-Werror)
13
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protozero/portfile.cmake ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO mapbox/protozero
5
+ SHA512 d09a34865c535264c52f9c605ccb6f453c357f5e3a7b0dc72b097de288eabc6985a5b81ddbe79c47d0af2d8f74e33bd380fefce47acb15d8d51d5c151d71786b
6
+ REF v1.7.0
7
+ HEAD_REF master
8
+ PATCHES fix-builderror.patch
9
+ )
10
+
11
+
12
+ vcpkg_cmake_configure(
13
+ SOURCE_PATH ${SOURCE_PATH}
14
+ OPTIONS
15
+ -DBUILD_TESTING=OFF
16
+ )
17
+ vcpkg_cmake_install()
18
+ vcpkg_fixup_pkgconfig()
19
+
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug")
21
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/protozero/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "protozero",
3
+ "version-semver": "1.7.0",
4
+ "port-version": 1,
5
+ "description": "Minimalist protocol buffer decoder and encoder in C++",
6
+ "homepage": "https://github.com/mapbox/protozero",
7
+ "license": "BSD-2-Clause",
8
+ "dependencies": [
9
+ "protobuf",
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/proxygen/fix-zstd-zlib-dependency.patch ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ea22eab..6bf0f17 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -74,7 +74,7 @@ if (BUILD_QUIC)
6
+ else()
7
+ find_package(Fizz REQUIRED)
8
+ endif()
9
+ -find_package(Zstd REQUIRED)
10
+ +find_package(zstd CONFIG REQUIRED)
11
+ find_package(ZLIB REQUIRED)
12
+ find_package(OpenSSL REQUIRED)
13
+ find_package(Threads)
14
+ diff --git a/proxygen/lib/CMakeLists.txt b/proxygen/lib/CMakeLists.txt
15
+ index b3fa2d1..5c50ee1 100644
16
+ --- a/proxygen/lib/CMakeLists.txt
17
+ +++ b/proxygen/lib/CMakeLists.txt
18
+ @@ -235,10 +235,10 @@ target_link_libraries(
19
+ Folly::folly
20
+ fizz::fizz
21
+ wangle::wangle
22
+ - zstd
23
+ + $<IF:$<TARGET_EXISTS:zstd::libzstd_shared>,zstd::libzstd_shared,zstd::libzstd_static>
24
+ Boost::boost
25
+ Boost::iostreams
26
+ - -lz
27
+ + ZLIB::ZLIB
28
+ ${HTTP3_DEPEND_LIBS}
29
+ )
30
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proxygen/portfile.cmake ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO facebook/proxygen
4
+ REF v2022.03.21.00
5
+ SHA512 66dfd40e45b884d64be9c06b110caaa9333116c402312ee8eb0c21f0ab569ea31b9e4fb676c68b96730abbff0b74d139f5e39e702cd958c24ce0fe76f353fbe9
6
+ HEAD_REF master
7
+ PATCHES
8
+ remove-register.patch
9
+ fix-zstd-zlib-dependency.patch
10
+ )
11
+
12
+ vcpkg_find_acquire_program(PYTHON3)
13
+ get_filename_component(PYTHON3_PATH "${PYTHON3}" DIRECTORY)
14
+ vcpkg_add_to_path(${PYTHON3_PATH})
15
+
16
+ if (VCPKG_TARGET_IS_WINDOWS)
17
+ vcpkg_find_acquire_program(GPERF)
18
+ get_filename_component(GPERF_PATH ${GPERF} DIRECTORY)
19
+ vcpkg_add_to_path(${GPERF_PATH})
20
+ else()
21
+ # gperf only have windows package in vcpkg now.
22
+ if (NOT EXISTS /usr/bin/gperf)
23
+ message(FATAL_ERROR "proxygen requires gperf, these can be installed on Ubuntu systems via apt-get install gperf.")
24
+ endif()
25
+ endif()
26
+
27
+ vcpkg_cmake_configure(
28
+ SOURCE_PATH ${SOURCE_PATH}
29
+ )
30
+
31
+ vcpkg_cmake_install()
32
+
33
+ vcpkg_copy_tools(TOOL_NAMES proxygen_curl proxygen_echo proxygen_proxy proxygen_push proxygen_static AUTO_CLEAN)
34
+
35
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/proxygen)
36
+ vcpkg_copy_pdbs()
37
+
38
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
39
+
40
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proxygen/remove-register.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/proxygen/lib/utils/gen_perfect_hash_table.sh b/proxygen/lib/utils/gen_perfect_hash_table.sh
2
+ index a870b2d67..2dec9c5a1 100755
3
+ --- a/proxygen/lib/utils/gen_perfect_hash_table.sh
4
+ +++ b/proxygen/lib/utils/gen_perfect_hash_table.sh
5
+ @@ -35,6 +35,7 @@ function generate_perfect_hash_table {
6
+ LC_ALL=C sort -u ${1?} | awk "${6?}" - "${5?}" | \
7
+ ${8:-gperf} -m5 -D --output-file="${7?}"
8
+ perl -p -i -e "s/\/\*FALLTHROUGH\*\//FOLLY_FALLTHROUGH;/g" "${7?}"
9
+ + perl -p -i -e "s/register//g" "${7?}"
10
+
11
+ # Here we delete one of the comment lines gperf adds to the top of the file.
12
+ # i.e. /* Command-line: .../gperf -m5 --output-file=... */
third-party/DPVO/Pangolin/scripts/vcpkg/ports/proxygen/vcpkg.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "proxygen",
3
+ "version-string": "2022.03.21.00",
4
+ "port-version": 1,
5
+ "description": "It comprises the core C++ HTTP abstractions used at Facebook.",
6
+ "homepage": "https://github.com/facebook/proxygen",
7
+ "supports": "!windows",
8
+ "dependencies": [
9
+ "boost-context",
10
+ "boost-date-time",
11
+ "boost-filesystem",
12
+ "boost-iostreams",
13
+ "boost-program-options",
14
+ "boost-regex",
15
+ "boost-system",
16
+ "boost-thread",
17
+ "fizz",
18
+ "folly",
19
+ "openssl",
20
+ {
21
+ "name": "vcpkg-cmake",
22
+ "host": true
23
+ },
24
+ {
25
+ "name": "vcpkg-cmake-config",
26
+ "host": true
27
+ },
28
+ "wangle",
29
+ "zlib",
30
+ "zstd"
31
+ ]
32
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/psimd/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO Maratyszcza/psimd
5
+ REF 072586a71b55b7f8c584153d223e95687148a900
6
+ SHA512 a18faea093423dd9fe19ece8b228e011dccce0a2a22222f777ea19b023a13173966d4a8aea01147e8fc58de5d39cffcedeb2221a1572ae52bd5aba1295f86a94
7
+ )
8
+ vcpkg_configure_cmake(
9
+ SOURCE_PATH ${SOURCE_PATH}
10
+ PREFER_NINJA
11
+ )
12
+ vcpkg_install_cmake()
13
+
14
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
15
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/psimd/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "psimd",
3
+ "version-string": "2021-02-21",
4
+ "description": "Portable 128-bit SIMD intrinsics",
5
+ "homepage": "https://github.com/Maratyszcza/psimd"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/fix-build.patch ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index c708153..0e004da 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -60,10 +60,11 @@ include(GNUInstallDirs)
6
+ include(CTest)
7
+ include(FindThreads)
8
+
9
+ +find_package(ZLIB REQUIRED)
10
+ +if (0)
11
+ # Use pkg-config to create a PkgConfig::Ptex_ZLIB imported target
12
+ find_package(PkgConfig REQUIRED)
13
+ pkg_checK_modules(Ptex_ZLIB REQUIRED zlib IMPORTED_TARGET)
14
+ -
15
+ enable_testing()
16
+
17
+ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
18
+ @@ -77,6 +78,7 @@ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
19
+ set(CMAKE_BUILD_TYPE "Release" CACHE STRING "type of build" FORCE)
20
+ endif ()
21
+ endif ()
22
+ +endif()
23
+
24
+ if (NOT WIN32)
25
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
26
+ @@ -99,7 +101,9 @@ endif ()
27
+ include_directories(src/ptex)
28
+
29
+ add_subdirectory(src/ptex)
30
+ +if (0)
31
+ add_subdirectory(src/utils)
32
+ add_subdirectory(src/tests)
33
+ add_subdirectory(src/doc)
34
+ +endif()
35
+ add_subdirectory(src/build)
36
+ diff --git a/src/ptex/CMakeLists.txt b/src/ptex/CMakeLists.txt
37
+ index ba3a3cc..1619ff1 100644
38
+ --- a/src/ptex/CMakeLists.txt
39
+ +++ b/src/ptex/CMakeLists.txt
40
+ @@ -1,6 +1,8 @@
41
+ -if (WIN32)
42
+ - add_definitions(/DPTEX_EXPORTS)
43
+ -endif (WIN32)
44
+ +if (BUILD_SHARED_LIBS)
45
+ + add_definitions(-DPTEX_EXPORTS)
46
+ +else ()
47
+ + add_definitions(-DPTEX_STATIC)
48
+ +endif ()
49
+
50
+ configure_file(PtexVersion.h.in
51
+ ${CMAKE_CURRENT_SOURCE_DIR}/PtexVersion.h @ONLY)
52
+ @@ -18,29 +20,35 @@ set(SRCS
53
+ PtexWriter.cpp)
54
+
55
+ if(PTEX_BUILD_STATIC_LIBS)
56
+ - add_library(Ptex_static STATIC ${SRCS})
57
+ - set_target_properties(Ptex_static PROPERTIES OUTPUT_NAME Ptex)
58
+ - target_include_directories(Ptex_static
59
+ + add_library(Ptex STATIC ${SRCS})
60
+ + target_include_directories(Ptex
61
+ PUBLIC
62
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
63
+ PRIVATE
64
+ ${CMAKE_CURRENT_SOURCE_DIR})
65
+ - target_link_libraries(Ptex_static
66
+ - PUBLIC ${CMAKE_THREAD_LIBS_INIT} PkgConfig::Ptex_ZLIB)
67
+ - install(TARGETS Ptex_static EXPORT Ptex DESTINATION ${CMAKE_INSTALL_LIBDIR})
68
+ + target_link_libraries(Ptex
69
+ + PUBLIC ${CMAKE_THREAD_LIBS_INIT} ZLIB::ZLIB)
70
+ + install(TARGETS Ptex EXPORT Ptex
71
+ + RUNTIME DESTINATION bin
72
+ + LIBRARY DESTINATION lib
73
+ + ARCHIVE DESTINATION lib
74
+ + )
75
+ endif()
76
+
77
+ if(PTEX_BUILD_SHARED_LIBS)
78
+ - add_library(Ptex_dynamic SHARED ${SRCS})
79
+ - set_target_properties(Ptex_dynamic PROPERTIES OUTPUT_NAME Ptex)
80
+ - target_include_directories(Ptex_dynamic
81
+ + add_library(Ptex SHARED ${SRCS})
82
+ + target_include_directories(Ptex
83
+ PUBLIC
84
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
85
+ PRIVATE
86
+ ${CMAKE_CURRENT_SOURCE_DIR})
87
+ - target_link_libraries(Ptex_dynamic
88
+ - PUBLIC ${CMAKE_THREAD_LIBS_INIT} PkgConfig::Ptex_ZLIB)
89
+ - install(TARGETS Ptex_dynamic EXPORT Ptex DESTINATION ${CMAKE_INSTALL_LIBDIR})
90
+ + target_link_libraries(Ptex
91
+ + PUBLIC ${CMAKE_THREAD_LIBS_INIT} ZLIB::ZLIB)
92
+ + install(TARGETS Ptex EXPORT Ptex
93
+ + RUNTIME DESTINATION bin
94
+ + LIBRARY DESTINATION lib
95
+ + ARCHIVE DESTINATION lib
96
+ + )
97
+ endif()
98
+
99
+ install(FILES
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/fix-config.cmake.patch ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/build/ptex-config.cmake b/src/build/ptex-config.cmake
2
+ index f95df9e..2d3f58f 100644
3
+ --- a/src/build/ptex-config.cmake
4
+ +++ b/src/build/ptex-config.cmake
5
+ @@ -1,11 +1,11 @@
6
+ @PACKAGE_INIT@
7
+
8
+ +include(CMakeFindDependencyMacro)
9
+ include("${CMAKE_CURRENT_LIST_DIR}/ptex-version.cmake")
10
+ include("${CMAKE_CURRENT_LIST_DIR}/ptex-exports.cmake")
11
+
12
+ # Provide PkgConfig::ZLIB to downstream dependents
13
+ -find_package(PkgConfig REQUIRED)
14
+ -pkg_checK_modules(Ptex_ZLIB REQUIRED zlib IMPORTED_TARGET)
15
+ +find_dependency(ZLIB REQUIRED)
16
+
17
+ set_and_check(Ptex_DIR @PACKAGE_CMAKE_INSTALL_PREFIX@)
18
+ set_and_check(Ptex_LIBRARY_DIRS @PACKAGE_CMAKE_INSTALL_LIBDIR@)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/portfile.cmake ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(PTEX_VER 2.3.2)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO wdas/ptex
6
+ REF 1b8bc985a71143317ae9e4969fa08e164da7c2e5
7
+ SHA512 37f2df9ec195f3d69d9526d0dea6a93ef49d69287bfae6ccd9671477491502ea760ed14e3b206b4f488831ab728dc749847b7d176c9b8439fb58b0a0466fe6c5
8
+ HEAD_REF master
9
+ PATCHES
10
+ fix-build.patch
11
+ fix-config.cmake.patch
12
+ )
13
+
14
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
15
+ set(BUILD_SHARED_LIB ON)
16
+ set(BUILD_STATIC_LIB OFF)
17
+ else()
18
+ set(BUILD_SHARED_LIB OFF)
19
+ set(BUILD_STATIC_LIB ON)
20
+ endif()
21
+
22
+ vcpkg_cmake_configure(
23
+ SOURCE_PATH "${SOURCE_PATH}"
24
+ DISABLE_PARALLEL_CONFIGURE
25
+ OPTIONS
26
+ -DPTEX_VER=v${PTEX_VER}
27
+ -DPTEX_BUILD_SHARED_LIBS=${BUILD_SHARED_LIB}
28
+ -DPTEX_BUILD_STATIC_LIBS=${BUILD_STATIC_LIB}
29
+ )
30
+
31
+ vcpkg_cmake_install()
32
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/Ptex)
33
+ vcpkg_copy_pdbs()
34
+
35
+ foreach(HEADER PtexHalf.h Ptexture.h)
36
+ file(READ "${CURRENT_PACKAGES_DIR}/include/${HEADER}" PTEX_HEADER)
37
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
38
+ string(REPLACE "ifndef PTEX_STATIC" "if 1" PTEX_HEADER "${PTEX_HEADER}")
39
+ else()
40
+ string(REPLACE "ifndef PTEX_STATIC" "if 0" PTEX_HEADER "${PTEX_HEADER}")
41
+ endif()
42
+ file(WRITE "${CURRENT_PACKAGES_DIR}/include/${HEADER}" "${PTEX_HEADER}")
43
+ endforeach()
44
+
45
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
46
+
47
+ file(INSTALL "${SOURCE_PATH}/src/doc/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ptex/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ptex",
3
+ "version": "2.3.2",
4
+ "port-version": 4,
5
+ "description": "Per-Face Texture Mapping for Production Rendering.",
6
+ "homepage": "https://github.com/wdas/ptex",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ },
17
+ "zlib"
18
+ ]
19
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthread/portfile.cmake ADDED
@@ -0,0 +1 @@
 
 
1
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthread/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pthread",
3
+ "version-string": "3.0.0",
4
+ "port-version": 1,
5
+ "description": "empty package, linking to other port",
6
+ "dependencies": [
7
+ "pthreads"
8
+ ]
9
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/fix-cmakelists.patch ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 09d57b2..57d3a2c 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -4,8 +4,6 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.5 FATAL_ERROR)
6
+ PROJECT(pthreadpool C CXX)
7
+
8
+ # ---[ Options.
9
+ -SET(PTHREADPOOL_LIBRARY_TYPE "default" CACHE STRING "Type of library (shared, static, or default) to build")
10
+ -SET_PROPERTY(CACHE PTHREADPOOL_LIBRARY_TYPE PROPERTY STRINGS default static shared)
11
+ OPTION(PTHREADPOOL_ALLOW_DEPRECATED_API "Enable deprecated API functions" ON)
12
+ SET(PTHREADPOOL_SYNC_PRIMITIVE "default" CACHE STRING "Synchronization primitive (condvar, futex, gcd, event, or default) for worker threads")
13
+ SET_PROPERTY(CACHE PTHREADPOOL_SYNC_PRIMITIVE PROPERTY STRINGS default condvar futex gcd event)
14
+ @@ -14,7 +12,7 @@ IF(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i[3-6]86|AMD64|x86(_64)?)$")
15
+ ELSE()
16
+ OPTION(PTHREADPOOL_ENABLE_FASTPATH "Enable fast path using atomic decrement instead of atomic compare-and-swap" OFF)
17
+ ENDIF()
18
+ -IF("${CMAKE_SOURCE_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
19
+ +IF(FALSE)
20
+ OPTION(PTHREADPOOL_BUILD_TESTS "Build pthreadpool unit tests" ON)
21
+ OPTION(PTHREADPOOL_BUILD_BENCHMARKS "Build pthreadpool micro-benchmarks" ON)
22
+ ELSE()
23
+ @@ -36,7 +34,8 @@ MACRO(PTHREADPOOL_TARGET_ENABLE_CXX11 target)
24
+ ENDMACRO()
25
+
26
+ # ---[ Download deps
27
+ -IF(NOT DEFINED FXDIV_SOURCE_DIR)
28
+ +find_path(FXDIV_INCLUDE_DIRS "fxdiv.h")
29
+ +IF(FALSE)
30
+ MESSAGE(STATUS "Downloading FXdiv to ${CMAKE_BINARY_DIR}/FXdiv-source (define FXDIV_SOURCE_DIR to avoid it)")
31
+ CONFIGURE_FILE(cmake/DownloadFXdiv.cmake "${CMAKE_BINARY_DIR}/FXdiv-download/CMakeLists.txt")
32
+ EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -G "${CMAKE_GENERATOR}" .
33
+ @@ -87,21 +86,13 @@ ELSE()
34
+ ENDIF()
35
+
36
+ ADD_LIBRARY(pthreadpool_interface INTERFACE)
37
+ -TARGET_INCLUDE_DIRECTORIES(pthreadpool_interface INTERFACE include)
38
+ +TARGET_INCLUDE_DIRECTORIES(pthreadpool_interface INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
39
+ IF(NOT PTHREADPOOL_ALLOW_DEPRECATED_API)
40
+ TARGET_COMPILE_DEFINITIONS(pthreadpool_interface INTERFACE PTHREADPOOL_NO_DEPRECATED_API=1)
41
+ ENDIF()
42
+ INSTALL(FILES include/pthreadpool.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
43
+
44
+ -IF(PTHREADPOOL_LIBRARY_TYPE STREQUAL "default")
45
+ - ADD_LIBRARY(pthreadpool ${PTHREADPOOL_SRCS})
46
+ -ELSEIF(PTHREADPOOL_LIBRARY_TYPE STREQUAL "shared")
47
+ - ADD_LIBRARY(pthreadpool SHARED ${PTHREADPOOL_SRCS})
48
+ -ELSEIF(PTHREADPOOL_LIBRARY_TYPE STREQUAL "static")
49
+ - ADD_LIBRARY(pthreadpool STATIC ${PTHREADPOOL_SRCS})
50
+ -ELSE()
51
+ - MESSAGE(FATAL_ERROR "Unsupported library type ${PTHREADPOOL_LIBRARY_TYPE}")
52
+ -ENDIF()
53
+ +ADD_LIBRARY(pthreadpool ${PTHREADPOOL_SRCS})
54
+
55
+ IF(PTHREADPOOL_SYNC_PRIMITIVE STREQUAL "condvar")
56
+ TARGET_COMPILE_DEFINITIONS(pthreadpool PRIVATE PTHREADPOOL_USE_FUTEX=0)
57
+ @@ -150,18 +141,22 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
58
+ ENDIF()
59
+
60
+ # ---[ Configure FXdiv
61
+ -IF(NOT TARGET fxdiv)
62
+ +IF(FALSE)
63
+ SET(FXDIV_BUILD_TESTS OFF CACHE BOOL "")
64
+ SET(FXDIV_BUILD_BENCHMARKS OFF CACHE BOOL "")
65
+ ADD_SUBDIRECTORY(
66
+ "${FXDIV_SOURCE_DIR}"
67
+ "${CMAKE_BINARY_DIR}/FXdiv")
68
+ ENDIF()
69
+ -TARGET_LINK_LIBRARIES(pthreadpool PRIVATE fxdiv)
70
+ +TARGET_INCLUDE_DIRECTORIES(pthreadpool PRIVATE ${FXDIV_INCLUDE_DIRS})
71
+
72
+ -INSTALL(TARGETS pthreadpool
73
+ +INSTALL(TARGETS pthreadpool pthreadpool_interface
74
+ + EXPORT unofficial-pthreadpool-config
75
+ + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
76
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
77
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
78
+ +install(EXPORT unofficial-pthreadpool-config NAMESPACE unofficial::
79
+ + DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/unofficial-${PROJECT_NAME}) # share/unofficial-pthreadpool
80
+
81
+ IF(PTHREADPOOL_BUILD_TESTS)
82
+ # ---[ Build google test
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/fix-uwp.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index a07945c..6df83d1 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -75,7 +75,7 @@ ELSE()
6
+ LIST(APPEND PTHREADPOOL_SRCS src/portable-api.c src/memory.c)
7
+ IF(APPLE AND (PTHREADPOOL_SYNC_PRIMITIVE STREQUAL "default" OR PTHREADPOOL_SYNC_PRIMITIVE STREQUAL "gcd"))
8
+ LIST(APPEND PTHREADPOOL_SRCS src/gcd.c)
9
+ - ELSEIF(CMAKE_SYSTEM_NAME MATCHES "^(Windows|CYGWIN|MSYS)$" AND (PTHREADPOOL_SYNC_PRIMITIVE STREQUAL "default" OR PTHREADPOOL_SYNC_PRIMITIVE STREQUAL "event"))
10
+ + ELSEIF(CMAKE_SYSTEM_NAME MATCHES "^(Windows|WindowsStore|CYGWIN|MSYS)$" AND (PTHREADPOOL_SYNC_PRIMITIVE STREQUAL "default" OR PTHREADPOOL_SYNC_PRIMITIVE STREQUAL "event"))
11
+ LIST(APPEND PTHREADPOOL_SRCS src/windows.c)
12
+ ELSE()
13
+ LIST(APPEND PTHREADPOOL_SRCS src/pthreads.c)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Maratyszcza/pthreadpool
8
+ REF 052e441b70091656199e2283fb1c16a7db6f0f85 # there is a too much gap from the last release...
9
+ SHA512 33be676e65719ae8510ec4e8254809033528802681870f8c91b083ce4006e5f630b80207a7e675464b406a785cb45bc74628996ea4817c02816b7b58ddf3a2bc
10
+ PATCHES
11
+ fix-cmakelists.patch
12
+ fix-uwp.patch
13
+ )
14
+
15
+ vcpkg_configure_cmake(
16
+ SOURCE_PATH ${SOURCE_PATH}
17
+ PREFER_NINJA
18
+ OPTIONS
19
+ -DPTHREADPOOL_BUILD_TESTS=OFF
20
+ -DPTHREADPOOL_BUILD_BENCHMARKS=OFF
21
+ )
22
+ vcpkg_install_cmake()
23
+ vcpkg_copy_pdbs()
24
+ vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share/unofficial-${PORT})
25
+
26
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
27
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreadpool/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pthreadpool",
3
+ "version-date": "2020-04-10",
4
+ "port-version": 1,
5
+ "description": "Portable (POSIX/Windows/Emscripten) thread pool for C/C++",
6
+ "homepage": "https://github.com/Maratyszcza/pthreadpool",
7
+ "dependencies": [
8
+ "fxdiv"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreads/fix-arm-macro.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/context.h b/context.h
2
+ index 33294c1..318b689 100644
3
+ --- a/context.h
4
+ +++ b/context.h
5
+ @@ -62,7 +62,7 @@
6
+ #endif
7
+
8
+ #if defined(_ARM_) || defined(ARM) || defined(_M_ARM) || defined(_M_ARM64)
9
+ -#define PTW32_PROGCTR(Context) ((Context).Pc)
10
+ +#define __PTW32_PROGCTR(Context) ((Context).Pc)
11
+ #endif
12
+
13
+ #if !defined (__PTW32_PROGCTR)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreads/fix-uwp-linkage.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/implement.h b/implement.h
2
+ index 1579376..3a7d29b 100644
3
+ --- a/implement.h
4
+ +++ b/implement.h
5
+ @@ -36,6 +36,12 @@
6
+ #if !defined(_IMPLEMENT_H)
7
+ #define _IMPLEMENT_H
8
+
9
+ +#if 1 // The condition should be `defined(__cplusplus_winrt)` when compile option is provided correctly.
10
+ +// porvide 2 static libs to resolve link error. 'kernel32' and 'windowsapp'
11
+ +#pragma comment(lib, "kernel32")
12
+ +#pragma comment(lib, "WindowsApp")
13
+ +#endif
14
+ +
15
+ #if !defined (__PTW32_CONFIG_H)
16
+ # error "config.h was not #included"
17
+ #endif
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pthreads/portfile.cmake ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_MINGW)
2
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
3
+ return()
4
+ endif()
5
+
6
+ set(PTHREADS4W_VERSION "3.0.0")
7
+
8
+ if(VCPKG_TARGET_IS_UWP)
9
+ list(APPEND PATCH_FILES fix-uwp-linkage.patch)
10
+ # Inject linker option using the `LINK` environment variable
11
+ # https://docs.microsoft.com/en-us/cpp/build/reference/linker-options
12
+ # https://docs.microsoft.com/en-us/cpp/build/reference/linking#link-environment-variables
13
+ set(ENV{LINK} "/APPCONTAINER")
14
+ endif()
15
+ if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
16
+ list(APPEND PATCH_FILES use-md.patch)
17
+ else()
18
+ list(APPEND PATCH_FILES use-mt.patch)
19
+ endif()
20
+
21
+ vcpkg_from_sourceforge(
22
+ OUT_SOURCE_PATH SOURCE_PATH
23
+ REPO pthreads4w
24
+ FILENAME "pthreads4w-code-v${PTHREADS4W_VERSION}.zip"
25
+ SHA512 49e541b66c26ddaf812edb07b61d0553e2a5816ab002edc53a38a897db8ada6d0a096c98a9af73a8f40c94283df53094f76b429b09ac49862465d8697ed20013
26
+ PATCHES
27
+ fix-arm-macro.patch
28
+ ${PATCH_FILES}
29
+ )
30
+
31
+ find_program(NMAKE nmake REQUIRED)
32
+
33
+ ################
34
+ # Release build
35
+ ################
36
+ message(STATUS "Building ${TARGET_TRIPLET}-rel")
37
+ file(TO_NATIVE_PATH "${CURRENT_PACKAGES_DIR}" INST_DIR_REL)
38
+ vcpkg_execute_required_process(
39
+ COMMAND ${NMAKE} -f Makefile all install
40
+ "DESTROOT=\"${INST_DIR_REL}\""
41
+ WORKING_DIRECTORY ${SOURCE_PATH}
42
+ LOGNAME nmake-build-${TARGET_TRIPLET}-release
43
+ )
44
+ message(STATUS "Building ${TARGET_TRIPLET}-rel done")
45
+
46
+ ################
47
+ # Debug build
48
+ ################
49
+ message(STATUS "Building ${TARGET_TRIPLET}-dbg")
50
+ file(TO_NATIVE_PATH "${CURRENT_PACKAGES_DIR}/debug" INST_DIR_DBG)
51
+ vcpkg_execute_required_process(
52
+ COMMAND ${NMAKE} /G -f Makefile all install
53
+ "DESTROOT=\"${INST_DIR_DBG}\""
54
+ WORKING_DIRECTORY ${SOURCE_PATH}
55
+ LOGNAME nmake-build-${TARGET_TRIPLET}-debug
56
+ )
57
+ message(STATUS "Building ${TARGET_TRIPLET}-dbg done")
58
+
59
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/pthreadVC3d.dll")
60
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/pthreadVCE3d.dll")
61
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/pthreadVSE3d.dll")
62
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/pthreadVC3.dll")
63
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/pthreadVCE3.dll")
64
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/pthreadVSE3.dll")
65
+
66
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libpthreadVC3d.lib")
67
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libpthreadVCE3d.lib")
68
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libpthreadVSE3d.lib")
69
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVC3.lib")
70
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVCE3.lib")
71
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVSE3.lib")
72
+
73
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/pthreadVC3d.lib")
74
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/pthreadVCE3d.lib")
75
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/pthreadVSE3d.lib")
76
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/pthreadVC3.lib")
77
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/pthreadVCE3.lib")
78
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/pthreadVSE3.lib")
79
+
80
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
81
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libpthreadVC3.lib")
82
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libpthreadVCE3.lib")
83
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/libpthreadVSE3.lib")
84
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVC3d.lib")
85
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVCE3d.lib")
86
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVSE3d.lib")
87
+ endif()
88
+
89
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
90
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
91
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
92
+ file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libpthreadVC3.lib ${CURRENT_PACKAGES_DIR}/lib/pthreadVC3.lib)
93
+ file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libpthreadVCE3.lib ${CURRENT_PACKAGES_DIR}/lib/pthreadVCE3.lib)
94
+ file(RENAME ${CURRENT_PACKAGES_DIR}/lib/libpthreadVSE3.lib ${CURRENT_PACKAGES_DIR}/lib/pthreadVSE3.lib)
95
+ file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVC3d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/pthreadVC3d.lib)
96
+ file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVCE3d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/pthreadVCE3d.lib)
97
+ file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/libpthreadVSE3d.lib ${CURRENT_PACKAGES_DIR}/debug/lib/pthreadVSE3d.lib)
98
+ endif()
99
+
100
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
101
+
102
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/pthread)
103
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/pthreads)
104
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/pthreads_windows)
105
+
106
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
107
+
108
+ set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)