Techt3o commited on
Commit
6786953
·
verified ·
1 Parent(s): 4edabfd

a72dec6665ad2d7ff84faa63f10dae72e78941ca9edb6fce550ad09a30cf804f

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/fix-CMakePath.patch +13 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/portfile.cmake +54 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/remove_custom_modules.patch +23 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/usage +4 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/vcpkg.json +19 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrayfire/Fix-constexpr-error-with-vs2019-with-half.patch +22 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrayfire/build.patch +220 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrayfire/portfile.cmake +88 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrayfire/vcpkg.json +52 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/all.patch +13 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/fix-dependencies.patch +316 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/portfile.cmake +117 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/usage +7 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/vcpkg-cmake-wrapper.cmake +9 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/vcpkg.json +105 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ashes/portfile.cmake +36 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/ashes/vcpkg.json +21 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio-grpc/portfile.cmake +27 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio-grpc/usage +15 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio-grpc/vcpkg.json +26 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/CMakeLists.txt +28 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/asio-config.cmake +6 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/portfile.cmake +29 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/vcpkg.json +37 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/Findasiosdk.cmake +37 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/portfile.cmake +29 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/usage +4 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/vcpkg-cmake-wrapper.cmake +6 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/vcpkg.json +8 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asmjit/portfile.cmake +31 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asmjit/vcpkg.json +18 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/build_fixes.patch +626 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/irrlicht.patch +61 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/portfile.cmake +90 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/vcpkg.json +18 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asynch/portfile.cmake +13 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asynch/vcpkg.json +7 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asyncplusplus/portfile.cmake +30 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/asyncplusplus/vcpkg.json +7 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atk/portfile.cmake +31 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atk/vcpkg.json +20 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atkmm/COPYING +510 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atkmm/portfile.cmake +28 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atkmm/vcpkg.json +17 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atlmfc/portfile.cmake +10 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atlmfc/vcpkg.json +7 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atomic-queue/portfile.cmake +20 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/atomic-queue/vcpkg.json +6 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aubio/CMakeLists.txt +129 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/aubio/portfile.cmake +45 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/fix-CMakePath.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ea5516e..ecd14bc 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -615,7 +615,7 @@ install(EXPORT ArmadilloLibraryDepends DESTINATION
6
+ # and install it
7
+ set(ARMADILLO_INCLUDE_DIRS "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
8
+ set(ARMADILLO_LIB_DIR "${CMAKE_INSTALL_FULL_LIBDIR}")
9
+ -set(ARMADILLO_CMAKE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/Armadillo/CMake")
10
+ +set(ARMADILLO_CMAKE_DIR "${CMAKE_INSTALL_FULL_DATADIR}/Armadillo")
11
+
12
+
13
+ message(STATUS "Generating '${PROJECT_BINARY_DIR}/InstallFiles/ArmadilloConfig.cmake'")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/portfile.cmake ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_sourceforge(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO arma
6
+ FILENAME "armadillo-10.6.2.tar.xz"
7
+ SHA512 ae04e993830ca04e7eddfaf9c40a50fb9139b10b9667412f5a18707ac73ee529b8e3a5a91337782e4e01bae61207b44f24bdd8a77c6c2404011a06006d849aba
8
+ PATCHES
9
+ remove_custom_modules.patch
10
+ fix-CMakePath.patch
11
+ add-disable-find-package.patch
12
+ )
13
+
14
+ file(REMOVE "${SOURCE_PATH}/cmake_aux/Modules/ARMA_FindBLAS.cmake")
15
+ file(REMOVE "${SOURCE_PATH}/cmake_aux/Modules/ARMA_FindLAPACK.cmake")
16
+ file(REMOVE "${SOURCE_PATH}/cmake_aux/Modules/ARMA_FindOpenBLAS.cmake")
17
+
18
+ vcpkg_cmake_configure(
19
+ SOURCE_PATH "${SOURCE_PATH}"
20
+ DISABLE_PARALLEL_CONFIGURE
21
+ OPTIONS
22
+ -DDETECT_HDF5=false
23
+ -DCMAKE_DISABLE_FIND_PACKAGE_SuperLU=ON
24
+ -DCMAKE_DISABLE_FIND_PACKAGE_ARPACK=ON
25
+ -DCMAKE_DISABLE_FIND_PACKAGE_ATLAS=ON
26
+ -DCMAKE_DISABLE_FIND_PACKAGE_MKL=ON
27
+ )
28
+
29
+ vcpkg_cmake_install()
30
+ vcpkg_cmake_config_fixup(PACKAGE_NAME Armadillo CONFIG_PATH share/Armadillo/CMake)
31
+
32
+ vcpkg_copy_pdbs()
33
+
34
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
35
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
36
+
37
+ file(GLOB SHARE_CONTENT "${CURRENT_PACKAGES_DIR}/share/Armadillo")
38
+ list(LENGTH SHARE_CONTENT SHARE_LEN)
39
+ if(SHARE_LEN EQUAL 0)
40
+ # On case sensitive file system there is an extra empty directory created that should be removed
41
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/Armadillo")
42
+ endif()
43
+
44
+ set(filename "${CURRENT_PACKAGES_DIR}/include/armadillo_bits/config.hpp")
45
+ if(EXISTS "${filename}")
46
+ file(READ "${filename}" contents)
47
+ string(REGEX REPLACE "\n#define ARMA_AUX_LIBS [^\n]*\n" "\n" contents "${contents}")
48
+ file(WRITE "${filename}" "${contents}")
49
+ endif()
50
+
51
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
52
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
53
+
54
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/remove_custom_modules.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ab7dbed..ea5516e 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -324,15 +324,15 @@ if(APPLE)
6
+ else()
7
+
8
+ include(ARMA_FindMKL)
9
+ - include(ARMA_FindOpenBLAS)
10
+ include(ARMA_FindATLAS)
11
+ - include(ARMA_FindBLAS)
12
+ - include(ARMA_FindLAPACK)
13
+
14
+ if(ALLOW_FLEXIBLAS_LINUX AND (${CMAKE_SYSTEM_NAME} MATCHES "Linux"))
15
+ include(ARMA_FindFlexiBLAS)
16
+ endif()
17
+
18
+ + find_package(BLAS)
19
+ + find_package(LAPACK)
20
+ +
21
+ message(STATUS " MKL_FOUND = ${MKL_FOUND}" )
22
+ message(STATUS " OpenBLAS_FOUND = ${OpenBLAS_FOUND}" )
23
+ message(STATUS " ATLAS_FOUND = ${ATLAS_FOUND}" )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package armadillo provides CMake targets:
2
+
3
+ find_package(Armadillo CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE ${ARMADILLO_LIBRARIES})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/armadillo/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "armadillo",
3
+ "version": "10.6.2",
4
+ "port-version": 5,
5
+ "description": "Armadillo is a high quality linear algebra library (matrix maths) for the C++ language, aiming towards a good balance between speed and ease of use",
6
+ "homepage": "http://arma.sourceforge.net",
7
+ "dependencies": [
8
+ "blas",
9
+ "lapack",
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/arrayfire/Fix-constexpr-error-with-vs2019-with-half.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/backend/common/half.hpp b/src/backend/common/half.hpp
2
+ index ce06eed..fb25d03 100644
3
+ --- a/src/backend/common/half.hpp
4
+ +++ b/src/backend/common/half.hpp
5
+ @@ -879,15 +879,9 @@ class alignas(2) half {
6
+ return *this;
7
+ }
8
+
9
+ -#if defined(NVCC) || defined(__CUDACC_RTC__)
10
+ - AF_CONSTEXPR __DH__ explicit half(__half value) noexcept
11
+ #ifdef __CUDA_ARCH__
12
+ - : data_(value) {
13
+ - }
14
+ -#else
15
+ - : data_(*reinterpret_cast<native_half_t*>(&value)) {
16
+ - }
17
+ -#endif
18
+ + AF_CONSTEXPR __DH__ explicit half(__half value) noexcept : data_(value) {}
19
+ +
20
+ AF_CONSTEXPR __DH__ half& operator=(__half value) noexcept {
21
+ // NOTE Assignment to ushort from __half only works with device code.
22
+ // using memcpy instead
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrayfire/build.patch ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 682f416..a8cbec8 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -104,8 +104,6 @@ mark_as_advanced(
6
+ CUDA_HOST_COMPILER
7
+ CUDA_USE_STATIC_CUDA_RUNTIME
8
+ CUDA_rt_LIBRARY
9
+ - SPDLOG_BUILD_EXAMPLES
10
+ - SPDLOG_BUILD_TESTING
11
+ ADDR2LINE_PROGRAM
12
+ Backtrace_LIBRARY
13
+ AF_WITH_STATIC_MKL
14
+ @@ -159,9 +157,7 @@ if(NOT LAPACK_FOUND)
15
+ endif()
16
+ endif()
17
+
18
+ -set(SPDLOG_BUILD_TESTING OFF CACHE INTERNAL "Disable testing in spdlog")
19
+ -add_subdirectory(extern/spdlog EXCLUDE_FROM_ALL)
20
+ -add_subdirectory(extern/glad)
21
+ +find_package(spdlog CONFIG REQUIRED)
22
+ add_subdirectory(src/backend/common)
23
+ add_subdirectory(src/api/c)
24
+ add_subdirectory(src/api/cpp)
25
+ @@ -269,10 +265,6 @@ install(DIRECTORY examples/ #NOTE The slash at the end is important
26
+ DESTINATION ${AF_INSTALL_EXAMPLE_DIR}
27
+ COMPONENT examples)
28
+
29
+ -install(DIRECTORY assets/examples/ #NOTE The slash at the end is important
30
+ - DESTINATION ${AF_INSTALL_EXAMPLE_DIR}
31
+ - COMPONENT examples)
32
+ -
33
+ install(DIRECTORY "${ArrayFire_SOURCE_DIR}/LICENSES/"
34
+ DESTINATION LICENSES
35
+ COMPONENT licenses)
36
+ diff --git a/CMakeModules/AFInstallDirs.cmake b/CMakeModules/AFInstallDirs.cmake
37
+ index 2c7b96e..b5006ee 100644
38
+ --- a/CMakeModules/AFInstallDirs.cmake
39
+ +++ b/CMakeModules/AFInstallDirs.cmake
40
+ @@ -7,8 +7,12 @@ include(GNUInstallDirs)
41
+ # NOTE: These paths are all relative to the project installation prefix.
42
+
43
+ # Executables
44
+ -if(NOT DEFINED AF_INSTALL_BIN_DIR)
45
+ - set(AF_INSTALL_BIN_DIR "lib" CACHE PATH "Installation path for executables")
46
+ +if(CMAKE_BUILD_TYPE MATCHES Debug)
47
+ + set(AF_INSTALL_BIN_DIR "${AF_BIN_DIR}/debug/bin")
48
+ + message(STATUS " Setting install to debug path ${AF_INSTALL_BIN_DIR}")
49
+ +else()
50
+ + set(AF_INSTALL_BIN_DIR "${AF_BIN_DIR}/bin")
51
+ + message(STATUS " Setting install to release path ${AF_INSTALL_BIN_DIR}")
52
+ endif()
53
+
54
+ # Libraries
55
+ diff --git a/CMakeModules/AFconfigure_forge_submodule.cmake b/CMakeModules/AFconfigure_forge_submodule.cmake
56
+ index d16849f..36ab01b 100644
57
+ --- a/CMakeModules/AFconfigure_forge_submodule.cmake
58
+ +++ b/CMakeModules/AFconfigure_forge_submodule.cmake
59
+ @@ -39,13 +39,13 @@ if(AF_BUILD_FORGE)
60
+ COMPONENT common_backend_dependencies)
61
+ set_property(TARGET forge APPEND_STRING PROPERTY COMPILE_FLAGS " -w")
62
+ else(AF_BUILD_FORGE)
63
+ - set(FG_VERSION "1.0.0")
64
+ + set(FG_VERSION "1.0.5")
65
+ set(FG_VERSION_MAJOR 1)
66
+ set(FG_VERSION_MINOR 0)
67
+ - set(FG_VERSION_PATCH 0)
68
+ + set(FG_VERSION_PATCH 5)
69
+ set(FG_API_VERSION_CURRENT 10)
70
+ configure_file(
71
+ - ${PROJECT_SOURCE_DIR}/extern/forge/CMakeModules/version.h.in
72
+ - ${PROJECT_BINARY_DIR}/extern/forge/include/fg/version.h
73
+ + ${AF_FORGE_PATH}/CMakeModules/version.h.in
74
+ + ${AF_FORGE_PATH}/include/fg/version.h
75
+ )
76
+ endif(AF_BUILD_FORGE)
77
+ diff --git a/src/api/unified/CMakeLists.txt b/src/api/unified/CMakeLists.txt
78
+ index 967eaa6..16bb633 100644
79
+ --- a/src/api/unified/CMakeLists.txt
80
+ +++ b/src/api/unified/CMakeLists.txt
81
+ @@ -96,7 +96,8 @@ target_include_directories(af
82
+ target_link_libraries(af
83
+ PRIVATE
84
+ cpp_api_interface
85
+ - spdlog
86
+ + spdlog::spdlog
87
+ + spdlog::spdlog_header_only
88
+ Threads::Threads
89
+ Boost::boost
90
+ ${CMAKE_DL_LIBS}
91
+ diff --git a/src/backend/common/CMakeLists.txt b/src/backend/common/CMakeLists.txt
92
+ index c9fe088..8c128fa 100644
93
+ --- a/src/backend/common/CMakeLists.txt
94
+ +++ b/src/backend/common/CMakeLists.txt
95
+ @@ -77,12 +77,15 @@ else()
96
+ target_sources(afcommon_interface INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/module_loading_unix.cpp)
97
+ endif()
98
+
99
+ +find_package(glad CONFIG REQUIRED)
100
+ +
101
+ target_link_libraries(afcommon_interface
102
+ INTERFACE
103
+ - spdlog
104
+ + spdlog::spdlog
105
+ + spdlog::spdlog_header_only
106
+ Boost::boost
107
+ - af_glad_interface
108
+ ${CMAKE_DL_LIBS}
109
+ + glad::glad
110
+ )
111
+
112
+ if(AF_BUILD_FORGE)
113
+ @@ -93,10 +96,9 @@ target_include_directories(afcommon_interface
114
+ INTERFACE
115
+ ${ArrayFire_SOURCE_DIR}/src/backend
116
+ ${ArrayFire_BINARY_DIR}
117
+ + ${AF_FORGE_PATH}/include # passed via vcpkg
118
+ SYSTEM INTERFACE
119
+ $<$<PLATFORM_ID:Darwin>:${OPENGL_INCLUDE_DIR}>
120
+ - ${ArrayFire_SOURCE_DIR}/extern/forge/include
121
+ - ${ArrayFire_BINARY_DIR}/extern/forge/include
122
+ )
123
+
124
+ if(APPLE AND NOT USE_MKL)
125
+ diff --git a/src/backend/cpu/CMakeLists.txt b/src/backend/cpu/CMakeLists.txt
126
+ index 170bb0f..c6e2017 100644
127
+ --- a/src/backend/cpu/CMakeLists.txt
128
+ +++ b/src/backend/cpu/CMakeLists.txt
129
+ @@ -266,9 +266,10 @@ endif(AF_WITH_CPUID)
130
+
131
+ target_sources(afcpu
132
+ PRIVATE
133
+ - ${CMAKE_CURRENT_SOURCE_DIR}/threads/async_queue.hpp
134
+ - ${CMAKE_CURRENT_SOURCE_DIR}/threads/event.hpp
135
+ + ${AF_CPU_THREAD_PATH}/include/threads/async_queue.hpp
136
+ + ${AF_CPU_THREAD_PATH}/include/threads/event.hpp
137
+ )
138
+ +target_include_directories(afcpu PRIVATE ${AF_CPU_THREAD_PATH}/include)
139
+
140
+ arrayfire_set_default_cxx_flags(afcpu)
141
+
142
+ diff --git a/src/backend/cuda/CMakeLists.txt b/src/backend/cuda/CMakeLists.txt
143
+ index 7e3e408..2edaacd 100644
144
+ --- a/src/backend/cuda/CMakeLists.txt
145
+ +++ b/src/backend/cuda/CMakeLists.txt
146
+ @@ -110,7 +110,11 @@ cuda_include_directories(
147
+ ${COMMON_INTERFACE_DIRS}
148
+ )
149
+ if(CUDA_VERSION_MAJOR VERSION_LESS 11)
150
+ - cuda_include_directories(${ArrayFire_SOURCE_DIR}/extern/cub)
151
+ + find_path(CUB_INCLUDE_DIRS "cub/agent/agent_histogram.cuh")
152
+ + if (${CUB_INCLUDE_DIRS} EQUAL "CUB_INCLUDE_DIRS-NOTFOUND")
153
+ + set(CUB_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/cub)
154
+ + endif()
155
+ + cuda_include_directories(${CUB_INCLUDE_DIRS})
156
+ endif()
157
+
158
+ file(GLOB jit_src "kernel/jit.cuh")
159
+ @@ -242,7 +246,7 @@ endif()
160
+
161
+ if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR
162
+ (UNIX AND
163
+ - CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0))
164
+ + CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1))
165
+ list(APPEND cxx_definitions -DAF_USE_NEW_CUSPARSE_API)
166
+ endif()
167
+
168
+ @@ -301,7 +305,7 @@ set_target_properties(af_cuda_static_cuda_library
169
+
170
+ if(CUDA_VERSION_MAJOR VERSION_GREATER 10 OR
171
+ (UNIX AND
172
+ - CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 0))
173
+ + CUDA_VERSION_MAJOR VERSION_EQUAL 10 AND CUDA_VERSION_MINOR VERSION_GREATER 1))
174
+ target_compile_definitions(af_cuda_static_cuda_library PRIVATE AF_USE_NEW_CUSPARSE_API)
175
+ endif()
176
+
177
+ diff --git a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt b/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt
178
+ index 9a796c9..d9864b0 100644
179
+ --- a/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt
180
+ +++ b/src/backend/opencl/kernel/scan_by_key/CMakeLists.txt
181
+ @@ -27,6 +27,7 @@ foreach(SBK_BINARY_OP ${SBK_BINARY_OPS})
182
+ add_dependencies(opencl_scan_by_key_${SBK_BINARY_OP}
183
+ ${cl_kernel_targets} OpenCL::cl2hpp Boost::boost)
184
+
185
+ + find_package(glad CONFIG REQUIRED)
186
+ target_include_directories(opencl_scan_by_key_${SBK_BINARY_OP}
187
+ PRIVATE
188
+ .
189
+ @@ -39,9 +40,7 @@ foreach(SBK_BINARY_OP ${SBK_BINARY_OPS})
190
+ $<TARGET_PROPERTY:OpenCL::OpenCL,INTERFACE_INCLUDE_DIRECTORIES>
191
+ $<TARGET_PROPERTY:OpenCL::cl2hpp,INTERFACE_INCLUDE_DIRECTORIES>
192
+ $<TARGET_PROPERTY:Boost::boost,INTERFACE_INCLUDE_DIRECTORIES>
193
+ - $<TARGET_PROPERTY:af_glad_interface,INTERFACE_INCLUDE_DIRECTORIES>
194
+ - ${ArrayFire_SOURCE_DIR}/extern/forge/include
195
+ - ${ArrayFire_BINARY_DIR}/extern/forge/include
196
+ + $<TARGET_PROPERTY:glad::glad,INTERFACE_INCLUDE_DIRECTORIES>
197
+ )
198
+
199
+ set_target_properties(opencl_scan_by_key_${SBK_BINARY_OP}
200
+ diff --git a/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt b/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt
201
+ index d618ff2..9f51739 100644
202
+ --- a/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt
203
+ +++ b/src/backend/opencl/kernel/sort_by_key/CMakeLists.txt
204
+ @@ -32,14 +32,13 @@ foreach(SBK_TYPE ${SBK_TYPES})
205
+ ../../../include
206
+ ${CMAKE_CURRENT_BINARY_DIR})
207
+
208
+ + find_package(glad CONFIG REQUIRED)
209
+ target_include_directories(opencl_sort_by_key_${SBK_TYPE}
210
+ SYSTEM PRIVATE
211
+ $<TARGET_PROPERTY:OpenCL::OpenCL,INTERFACE_INCLUDE_DIRECTORIES>
212
+ $<TARGET_PROPERTY:OpenCL::cl2hpp,INTERFACE_INCLUDE_DIRECTORIES>
213
+ $<TARGET_PROPERTY:Boost::boost,INTERFACE_INCLUDE_DIRECTORIES>
214
+ - $<TARGET_PROPERTY:af_glad_interface,INTERFACE_INCLUDE_DIRECTORIES>
215
+ - ${ArrayFire_SOURCE_DIR}/extern/forge/include
216
+ - ${ArrayFire_BINARY_DIR}/extern/forge/include
217
+ + $<TARGET_PROPERTY:glad::glad,INTERFACE_INCLUDE_DIRECTORIES>
218
+ )
219
+
220
+ set_target_properties(opencl_sort_by_key_${SBK_TYPE}
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrayfire/portfile.cmake ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO arrayfire/arrayfire
4
+ REF d99887ae431fcd58168b653a1e69f027f04d5188 # v3.8.0
5
+ SHA512 d8ddf6ba254744e62acf5ecf680f0ae56b05f8957b5463572923977ba2ffea7fa37cc1b6179421a1188a6f9e66565ca0f8cd00807513ccbe66ba1e9bbd41a3da
6
+ HEAD_REF master
7
+ PATCHES
8
+ build.patch
9
+ Fix-constexpr-error-with-vs2019-with-half.patch
10
+ )
11
+
12
+ # arrayfire cpu thread lib needed as a submodule for the CPU backend
13
+ vcpkg_from_github(
14
+ OUT_SOURCE_PATH CPU_THREADS_PATH
15
+ REPO arrayfire/threads
16
+ REF b666773940269179f19ef11c8f1eb77005e85d9a
17
+ SHA512 b3e8b54acf3a588b1f821c2774d5da2d8f8441962c6d99808d513f7117278b9066eb050b8b501bddbd3882e68eb5cc5da0b2fca54e15ab1923fe068a3fe834f5
18
+ HEAD_REF master
19
+ )
20
+
21
+ # Get forge. We only need headers and aren't actually linking.
22
+ # We don't want to use the vcpkg dependency since it is broken in many
23
+ # environments - see https://github.com/microsoft/vcpkg/issues/14864. This
24
+ # can be relaxed when the issue is fixed. Forge and its dependencies
25
+ # are still runtime dependencies, so the user can use the graphics
26
+ # library by installing forge and freeimage.
27
+ vcpkg_from_github(
28
+ OUT_SOURCE_PATH FORGE_PATH
29
+ REPO arrayfire/forge
30
+ REF 1a0f0cb6371a8c8053ab5eb7cbe3039c95132389 # v1.0.5
31
+ SHA512 8f8607421880a0f0013380eb5efb3a4f05331cd415d68c9cd84dd57eb727da1df6223fc6d65b106675d6aa09c3388359fab64443c31fadadf7641161be6b3b89
32
+ HEAD_REF master
33
+ )
34
+
35
+ ################################### Build ###################################
36
+
37
+ # Default flags
38
+ set(AF_DEFAULT_VCPKG_CMAKE_FLAGS
39
+ -DBUILD_TESTING=OFF
40
+ -DAF_BUILD_DOCS=OFF
41
+ -DAF_BUILD_EXAMPLES=OFF
42
+ -DUSE_CPU_MKL=ON
43
+ -DUSE_OPENCL_MKL=ON
44
+ -DAF_CPU_THREAD_PATH=${CPU_THREADS_PATH} # for building the arrayfire cpu threads lib
45
+ -DAF_FORGE_PATH=${FORGE_PATH} # forge headers for building the graphics lib
46
+ -DAF_BUILD_FORGE=OFF
47
+ -DAF_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share/${PORT} # for CMake configs/targets
48
+ )
49
+
50
+ # bin/dll directory for Windows non-static builds for the unified backend dll
51
+ if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_LIBRARY_LINKAGE STREQUAL "static")
52
+ set(AF_BIN_DIR ${CURRENT_PACKAGES_DIR})
53
+ list(APPEND AF_DEFAULT_VCPKG_CMAKE_FLAGS "-DAF_BIN_DIR=${AF_BIN_DIR}")
54
+ endif()
55
+
56
+ if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static")
57
+ message(WARNING "NOTE: Windows support with static linkeage is still experimental.")
58
+ endif()
59
+
60
+ # Determine which backend to build via specified feature
61
+ vcpkg_check_features(
62
+ OUT_FEATURE_OPTIONS AF_BACKEND_FEATURE_OPTIONS
63
+ FEATURES
64
+ unified AF_BUILD_UNIFIED
65
+ cpu AF_BUILD_CPU
66
+ cuda AF_BUILD_CUDA
67
+ opencl AF_BUILD_OPENCL
68
+ )
69
+
70
+ # Build and install
71
+ vcpkg_cmake_configure(
72
+ SOURCE_PATH "${SOURCE_PATH}"
73
+ OPTIONS
74
+ ${AF_DEFAULT_VCPKG_CMAKE_FLAGS}
75
+ ${AF_BACKEND_FEATURE_OPTIONS}
76
+ )
77
+ vcpkg_cmake_install()
78
+
79
+ vcpkg_copy_pdbs()
80
+
81
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
82
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/examples")
83
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
84
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/LICENSES")
85
+
86
+ # Copyright and license
87
+ file(INSTALL "${SOURCE_PATH}/COPYRIGHT.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
88
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrayfire/vcpkg.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "arrayfire",
3
+ "version-semver": "3.8.0",
4
+ "description": "ArrayFire is a general-purpose library that simplifies the process of developing software that targets parallel and massively-parallel architectures including CPUs, GPUs, and other hardware acceleration devices.",
5
+ "supports": "x64",
6
+ "dependencies": [
7
+ "boost-compute",
8
+ "boost-stacktrace",
9
+ "glad",
10
+ "spdlog",
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ }
19
+ ],
20
+ "default-features": [
21
+ "cpu",
22
+ "unified"
23
+ ],
24
+ "features": {
25
+ "cpu": {
26
+ "description": "ArrayFire CPU backend",
27
+ "dependencies": [
28
+ "intel-mkl"
29
+ ]
30
+ },
31
+ "cuda": {
32
+ "description": "ArrayFire CUDA backend. This feature only supports dynamic because dependency cudnn is dynamic only.",
33
+ "dependencies": [
34
+ "cub",
35
+ "cuda",
36
+ "cudnn"
37
+ ]
38
+ },
39
+ "opencl": {
40
+ "description": "ArrayFire OpenCL backend",
41
+ "dependencies": [
42
+ "opencl"
43
+ ]
44
+ },
45
+ "unified": {
46
+ "description": "ArrayFire unified backend",
47
+ "dependencies": [
48
+ "intel-mkl"
49
+ ]
50
+ }
51
+ }
52
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/all.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cpp/cmake_modules/BuildUtils.cmake b/cpp/cmake_modules/BuildUtils.cmake
2
+ index 391c43e0a..50f6d3d3c 100644
3
+ --- a/cpp/cmake_modules/BuildUtils.cmake
4
+ +++ b/cpp/cmake_modules/BuildUtils.cmake
5
+ @@ -427,7 +427,7 @@ function(ADD_ARROW_LIB LIB_NAME)
6
+ target_include_directories(${LIB_NAME}_static PRIVATE ${ARG_PRIVATE_INCLUDES})
7
+ endif()
8
+
9
+ - if(MSVC_TOOLCHAIN)
10
+ + if(MSVC_TOOLCHAIN AND 0)
11
+ set(LIB_NAME_STATIC ${LIB_NAME}_static)
12
+ else()
13
+ set(LIB_NAME_STATIC ${LIB_NAME})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/fix-dependencies.patch ADDED
@@ -0,0 +1,316 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
2
+ index 2d7baf118..ace45d35b 100644
3
+ --- a/cpp/CMakeLists.txt
4
+ +++ b/cpp/CMakeLists.txt
5
+ @@ -699,7 +699,7 @@ endif()
6
+
7
+ if(ARROW_WITH_BROTLI)
8
+ # Order is important for static linking
9
+ - set(ARROW_BROTLI_LIBS Brotli::brotlienc Brotli::brotlidec Brotli::brotlicommon)
10
+ + set(ARROW_BROTLI_LIBS unofficial::brotli::brotlienc unofficial::brotli::brotlidec unofficial::brotli::brotlicommon)
11
+ list(APPEND ARROW_LINK_LIBS ${ARROW_BROTLI_LIBS})
12
+ list(APPEND ARROW_STATIC_LINK_LIBS ${ARROW_BROTLI_LIBS})
13
+ if(Brotli_SOURCE STREQUAL "SYSTEM")
14
+ @@ -715,9 +715,9 @@ if(ARROW_WITH_BZ2)
15
+ endif()
16
+
17
+ if(ARROW_WITH_LZ4)
18
+ - list(APPEND ARROW_STATIC_LINK_LIBS LZ4::lz4)
19
+ + list(APPEND ARROW_STATIC_LINK_LIBS lz4::lz4)
20
+ if(Lz4_SOURCE STREQUAL "SYSTEM")
21
+ - list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS LZ4::lz4)
22
+ + list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS lz4::lz4)
23
+ endif()
24
+ endif()
25
+
26
+ @@ -787,10 +787,10 @@ if(ARROW_WITH_OPENTELEMETRY)
27
+ endif()
28
+
29
+ if(ARROW_WITH_UTF8PROC)
30
+ - list(APPEND ARROW_LINK_LIBS utf8proc::utf8proc)
31
+ - list(APPEND ARROW_STATIC_LINK_LIBS utf8proc::utf8proc)
32
+ + list(APPEND ARROW_LINK_LIBS utf8proc)
33
+ + list(APPEND ARROW_STATIC_LINK_LIBS utf8proc)
34
+ if(utf8proc_SOURCE STREQUAL "SYSTEM")
35
+ - list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS utf8proc::utf8proc)
36
+ + list(APPEND ARROW_STATIC_INSTALL_INTERFACE_LIBS utf8proc)
37
+ endif()
38
+ endif()
39
+
40
+ diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake
41
+ index bc389521b..1b358ce70 100644
42
+ --- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
43
+ +++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
44
+ @@ -53,7 +53,7 @@ set(ARROW_THIRDPARTY_DEPENDENCIES
45
+ AWSSDK
46
+ benchmark
47
+ Boost
48
+ - Brotli
49
+ + unofficial-brotli
50
+ BZip2
51
+ c-ares
52
+ gflags
53
+ @@ -62,7 +62,7 @@ set(ARROW_THIRDPARTY_DEPENDENCIES
54
+ gRPC
55
+ GTest
56
+ LLVM
57
+ - Lz4
58
+ + lz4
59
+ opentelemetry-cpp
60
+ ORC
61
+ re2
62
+ @@ -70,7 +70,7 @@ set(ARROW_THIRDPARTY_DEPENDENCIES
63
+ RapidJSON
64
+ Snappy
65
+ Thrift
66
+ - utf8proc
67
+ + unofficial-utf8proc
68
+ xsimd
69
+ ZLIB
70
+ zstd)
71
+ @@ -893,17 +893,7 @@ set(Boost_ADDITIONAL_VERSIONS
72
+ # so we first need to determine whether we're building it
73
+ if(ARROW_WITH_THRIFT AND Thrift_SOURCE STREQUAL "AUTO")
74
+ find_package(Thrift 0.11.0 MODULE COMPONENTS ${ARROW_THRIFT_REQUIRED_COMPONENTS})
75
+ - if(Thrift_FOUND)
76
+ - find_package(PkgConfig QUIET)
77
+ - pkg_check_modules(THRIFT_PC
78
+ - thrift
79
+ - NO_CMAKE_PATH
80
+ - NO_CMAKE_ENVIRONMENT_PATH
81
+ - QUIET)
82
+ - if(THRIFT_PC_FOUND)
83
+ - string(APPEND ARROW_PC_REQUIRES_PRIVATE " thrift")
84
+ - endif()
85
+ - else()
86
+ + if(NOT Thrift_FOUND AND NOT THRIFT_FOUND)
87
+ set(Thrift_SOURCE "BUNDLED")
88
+ endif()
89
+ endif()
90
+ @@ -1038,7 +1028,7 @@ macro(build_snappy)
91
+ endmacro()
92
+
93
+ if(ARROW_WITH_SNAPPY)
94
+ - resolve_dependency(Snappy PC_PACKAGE_NAMES snappy)
95
+ + resolve_dependency(Snappy USE_CONFIG TRUE PC_PACKAGE_NAMES snappy)
96
+ if(${Snappy_SOURCE} STREQUAL "SYSTEM" AND NOT snappy_PC_FOUND)
97
+ get_target_property(SNAPPY_LIB Snappy::snappy IMPORTED_LOCATION)
98
+ string(APPEND ARROW_PC_LIBS_PRIVATE " ${SNAPPY_LIB}")
99
+ @@ -1108,10 +1098,16 @@ macro(build_brotli)
100
+ endmacro()
101
+
102
+ if(ARROW_WITH_BROTLI)
103
+ - resolve_dependency(Brotli PC_PACKAGE_NAMES libbrotlidec libbrotlienc)
104
+ + set(unofficial-brotli_SOURCE "SYSTEM")
105
+ + resolve_dependency(unofficial-brotli USE_CONFIG TRUE PC_PACKAGE_NAMES libbrotlidec libbrotlienc)
106
+ # TODO: Don't use global includes but rather target_include_directories
107
+ - get_target_property(BROTLI_INCLUDE_DIR Brotli::brotlicommon
108
+ - INTERFACE_INCLUDE_DIRECTORIES)
109
+ + if (BUILD_SHARED_LIBS)
110
+ + get_target_property(BROTLI_INCLUDE_DIR unofficial::brotli::brotlicommon
111
+ + INTERFACE_INCLUDE_DIRECTORIES)
112
+ + else()
113
+ + get_target_property(BROTLI_INCLUDE_DIR unofficial::brotli::brotlicommon-static
114
+ + INTERFACE_INCLUDE_DIRECTORIES)
115
+ + endif()
116
+ include_directories(SYSTEM ${BROTLI_INCLUDE_DIR})
117
+ endif()
118
+
119
+ @@ -1228,7 +1224,7 @@ macro(build_glog)
120
+ endmacro()
121
+
122
+ if(ARROW_USE_GLOG)
123
+ - resolve_dependency(GLOG PC_PACKAGE_NAMES libglog)
124
+ + resolve_dependency(glog USE_CONFIG TRUE PC_PACKAGE_NAMES libglog)
125
+ # TODO: Don't use global includes but rather target_include_directories
126
+ get_target_property(GLOG_INCLUDE_DIR glog::glog INTERFACE_INCLUDE_DIRECTORIES)
127
+ include_directories(SYSTEM ${GLOG_INCLUDE_DIR})
128
+ @@ -1302,8 +1298,7 @@ endmacro()
129
+ if(ARROW_NEED_GFLAGS)
130
+ set(ARROW_GFLAGS_REQUIRED_VERSION "2.1.0")
131
+ resolve_dependency(gflags
132
+ - HAVE_ALT
133
+ - TRUE
134
+ + USE_CONFIG TRUE
135
+ REQUIRED_VERSION
136
+ ${ARROW_GFLAGS_REQUIRED_VERSION}
137
+ IS_RUNTIME_DEPENDENCY
138
+ @@ -1402,9 +1397,10 @@ endmacro()
139
+ if(ARROW_WITH_THRIFT)
140
+ # We already may have looked for Thrift earlier, when considering whether
141
+ # to build Boost, so don't look again if already found.
142
+ - if(NOT Thrift_FOUND)
143
+ + if(TRUE)
144
+ # Thrift c++ code generated by 0.13 requires 0.11 or greater
145
+ resolve_dependency(Thrift
146
+ + USE_CONFIG TRUE
147
+ REQUIRED_VERSION
148
+ 0.11.0
149
+ PC_PACKAGE_NAMES
150
+ @@ -1413,6 +1409,14 @@ if(ARROW_WITH_THRIFT)
151
+ # TODO: Don't use global includes but rather target_include_directories
152
+ include_directories(SYSTEM ${THRIFT_INCLUDE_DIR})
153
+
154
+ + if(THRIFT_INCLUDE_DIR)
155
+ + file(READ "${THRIFT_INCLUDE_DIR}/config.h" THRIFT_CONFIG_H_CONTENT)
156
+ + string(REGEX MATCH "#define PACKAGE_VERSION \"[0-9.]+\"" THRIFT_VERSION_DEFINITION
157
+ + "${THRIFT_CONFIG_H_CONTENT}")
158
+ + string(REGEX MATCH "[0-9.]+" THRIFT_VERSION "${THRIFT_VERSION_DEFINITION}")
159
+ + set(THRIFT_VERSION "${THRIFT_VERSION}")
160
+ + endif()
161
+ +
162
+ string(REPLACE "." ";" VERSION_LIST ${THRIFT_VERSION})
163
+ list(GET VERSION_LIST 0 THRIFT_VERSION_MAJOR)
164
+ list(GET VERSION_LIST 1 THRIFT_VERSION_MINOR)
165
+ @@ -1528,6 +1532,7 @@ if(ARROW_WITH_PROTOBUF)
166
+ set(ARROW_PROTOBUF_REQUIRED_VERSION "2.6.1")
167
+ endif()
168
+ resolve_dependency(Protobuf
169
+ + USE_CONFIG TRUE
170
+ REQUIRED_VERSION
171
+ ${ARROW_PROTOBUF_REQUIRED_VERSION}
172
+ PC_PACKAGE_NAMES
173
+ @@ -1538,6 +1543,10 @@ if(ARROW_WITH_PROTOBUF)
174
+ endif()
175
+
176
+ # TODO: Don't use global includes but rather target_include_directories
177
+ + if (TARGET protobuf::libprotobuf)
178
+ + get_target_property(PROTOBUF_INCLUDE_DIR protobuf::libprotobuf
179
+ + INTERFACE_INCLUDE_DIRECTORIES)
180
+ + endif()
181
+ include_directories(SYSTEM ${PROTOBUF_INCLUDE_DIR})
182
+
183
+ if(TARGET arrow::protobuf::libprotobuf)
184
+ @@ -1586,12 +1595,18 @@ if(ARROW_WITH_PROTOBUF)
185
+
186
+ # Log protobuf paths as we often see issues with mixed sources for
187
+ # the libraries and protoc.
188
+ + if (NOT TARGET protobuf::protoc)
189
+ get_target_property(PROTOBUF_PROTOC_EXECUTABLE ${ARROW_PROTOBUF_PROTOC}
190
+ IMPORTED_LOCATION)
191
+ + endif()
192
+ message(STATUS "Found protoc: ${PROTOBUF_PROTOC_EXECUTABLE}")
193
+ # Protobuf_PROTOC_LIBRARY is set by all versions of FindProtobuf.cmake
194
+ message(STATUS "Found libprotoc: ${Protobuf_PROTOC_LIBRARY}")
195
+ + if (NOT TARGET protobuf::libprotobuf)
196
+ get_target_property(PROTOBUF_LIBRARY ${ARROW_PROTOBUF_LIBPROTOBUF} IMPORTED_LOCATION)
197
+ + else()
198
+ + set(PROTOBUF_LIBRARY protobuf::libprotobuf)
199
+ + endif()
200
+ message(STATUS "Found libprotobuf: ${PROTOBUF_LIBRARY}")
201
+ message(STATUS "Found protobuf headers: ${PROTOBUF_INCLUDE_DIR}")
202
+ endif()
203
+ @@ -2001,7 +2016,7 @@ endmacro()
204
+ if(ARROW_WITH_RAPIDJSON)
205
+ set(ARROW_RAPIDJSON_REQUIRED_VERSION "1.1.0")
206
+ resolve_dependency(RapidJSON
207
+ - HAVE_ALT
208
+ + USE_CONFIG
209
+ TRUE
210
+ REQUIRED_VERSION
211
+ ${ARROW_RAPIDJSON_REQUIRED_VERSION}
212
+ @@ -2140,10 +2155,11 @@ macro(build_lz4)
213
+ endmacro()
214
+
215
+ if(ARROW_WITH_LZ4)
216
+ - resolve_dependency(Lz4 PC_PACKAGE_NAMES liblz4)
217
+ + set(lz4_SOURCE "SYSTEM")
218
+ + resolve_dependency(lz4 USE_CONFIG TRUE PC_PACKAGE_NAMES liblz4)
219
+
220
+ # TODO: Don't use global includes but rather target_include_directories
221
+ - get_target_property(LZ4_INCLUDE_DIR LZ4::lz4 INTERFACE_INCLUDE_DIRECTORIES)
222
+ + get_target_property(LZ4_INCLUDE_DIR lz4::lz4 INTERFACE_INCLUDE_DIRECTORIES)
223
+ include_directories(SYSTEM ${LZ4_INCLUDE_DIR})
224
+ endif()
225
+
226
+ @@ -2207,7 +2223,7 @@ endmacro()
227
+ if(ARROW_WITH_ZSTD)
228
+ # ARROW-13384: ZSTD_minCLevel was added in v1.4.0, required by ARROW-13091
229
+ resolve_dependency(zstd
230
+ - PC_PACKAGE_NAMES
231
+ + USE_CONFIG TRUE PC_PACKAGE_NAMES
232
+ libzstd
233
+ REQUIRED_VERSION
234
+ 1.4.0)
235
+ @@ -2390,9 +2406,8 @@ macro(build_utf8proc)
236
+ endmacro()
237
+
238
+ if(ARROW_WITH_UTF8PROC)
239
+ - resolve_dependency(utf8proc
240
+ - REQUIRED_VERSION
241
+ - "2.2.0"
242
+ + resolve_dependency(unofficial-utf8proc
243
+ + USE_CONFIG TRUE
244
+ PC_PACKAGE_NAMES
245
+ libutf8proc)
246
+
247
+ @@ -2400,7 +2415,7 @@ if(ARROW_WITH_UTF8PROC)
248
+
249
+ # TODO: Don't use global definitions but rather
250
+ # target_compile_definitions or target_link_libraries
251
+ - get_target_property(UTF8PROC_COMPILER_DEFINITIONS utf8proc::utf8proc
252
+ + get_target_property(UTF8PROC_COMPILER_DEFINITIONS utf8proc
253
+ INTERFACE_COMPILER_DEFINITIONS)
254
+ if(UTF8PROC_COMPILER_DEFINITIONS)
255
+ add_definitions(-D${UTF8PROC_COMPILER_DEFINITIONS})
256
+ @@ -2408,7 +2423,7 @@ if(ARROW_WITH_UTF8PROC)
257
+
258
+ # TODO: Don't use global includes but rather
259
+ # target_include_directories or target_link_libraries
260
+ - get_target_property(UTF8PROC_INCLUDE_DIR utf8proc::utf8proc
261
+ + get_target_property(UTF8PROC_INCLUDE_DIR utf8proc
262
+ INTERFACE_INCLUDE_DIRECTORIES)
263
+ include_directories(SYSTEM ${UTF8PROC_INCLUDE_DIR})
264
+ endif()
265
+ @@ -3317,7 +3332,7 @@ endmacro()
266
+
267
+ macro(build_grpc)
268
+ resolve_dependency(c-ares
269
+ - HAVE_ALT
270
+ + USE_CONFIG
271
+ TRUE
272
+ PC_PACKAGE_NAMES
273
+ libcares)
274
+ @@ -3555,7 +3570,7 @@ if(ARROW_WITH_GRPC)
275
+ set(gRPC_SOURCE "${Protobuf_SOURCE}")
276
+ endif()
277
+ resolve_dependency(gRPC
278
+ - HAVE_ALT
279
+ + USE_CONFIG
280
+ TRUE
281
+ REQUIRED_VERSION
282
+ ${ARROW_GRPC_REQUIRED_VERSION}
283
+ @@ -3565,6 +3580,10 @@ if(ARROW_WITH_GRPC)
284
+ # TODO: Don't use global includes but rather target_include_directories
285
+ get_target_property(GRPC_INCLUDE_DIR gRPC::grpc++ INTERFACE_INCLUDE_DIRECTORIES)
286
+ include_directories(SYSTEM ${GRPC_INCLUDE_DIR})
287
+ + if (ABSL_USE_CXX17)
288
+ + message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
289
+ + set(CMAKE_CXX_STANDARD 17)
290
+ + endif()
291
+
292
+ if(GRPC_VENDORED)
293
+ set(GRPCPP_PP_INCLUDE TRUE)
294
+ @@ -4315,7 +4334,8 @@ if(ARROW_S3)
295
+ s3
296
+ transfer
297
+ identity-management
298
+ - sts)
299
+ + sts
300
+ + CONFIG)
301
+ endif()
302
+
303
+ # Restore previous value of BUILD_SHARED_LIBS
304
+ diff --git a/cpp/src/arrow/adapters/orc/CMakeLists.txt b/cpp/src/arrow/adapters/orc/CMakeLists.txt
305
+ index b1b6847cf..444a45e4e 100644
306
+ --- a/cpp/src/arrow/adapters/orc/CMakeLists.txt
307
+ +++ b/cpp/src/arrow/adapters/orc/CMakeLists.txt
308
+ @@ -30,7 +30,7 @@ set(ORC_MIN_TEST_LIBS
309
+ GTest::gtest_main
310
+ GTest::gtest
311
+ Snappy::snappy
312
+ - LZ4::lz4
313
+ + lz4::lz4
314
+ ZLIB::ZLIB)
315
+
316
+ if(ARROW_BUILD_STATIC)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/portfile.cmake ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO apache/arrow
4
+ REF apache-arrow-7.0.0
5
+ SHA512 4df480e03dcd85c1c04f93ca55968cf64eb96b4bdb586d9ad3bd1d5ba6d9ec7cca34fefef43d84b921ba74ceaeb48f8ac9d1d1355f2408ebffd2b2a00a3da2bd
6
+ HEAD_REF master
7
+ PATCHES
8
+ all.patch
9
+ fix-dependencies.patch
10
+ )
11
+
12
+ file(REMOVE "${SOURCE_PATH}/cpp/cmake_modules/Findzstd.cmake"
13
+ "${SOURCE_PATH}/cpp/cmake_modules/FindBrotli.cmake"
14
+ "${SOURCE_PATH}/cpp/cmake_modules/Find-c-aresAlt.cmake"
15
+ "${SOURCE_PATH}/cpp/cmake_modules/FindLz4.cmake"
16
+ "${SOURCE_PATH}/cpp/cmake_modules/FindSnappy.cmake"
17
+ "${SOURCE_PATH}/cpp/cmake_modules/FindThrift.cmake"
18
+ "${SOURCE_PATH}/cpp/cmake_modules/FindGLOG.cmake"
19
+ "${SOURCE_PATH}/cpp/cmake_modules/Findutf8proc.cmake"
20
+ "${SOURCE_PATH}/cpp/cmake_modules/FindRapidJSONAlt.cmake"
21
+ "${SOURCE_PATH}/cpp/cmake_modules/FindgRPCAlt.cmake"
22
+ "${SOURCE_PATH}/cpp/cmake_modules/FindgflagsAlt.cmake"
23
+ )
24
+
25
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
26
+ FEATURES
27
+ csv ARROW_CSV
28
+ dataset ARROW_DATASET
29
+ filesystem ARROW_FILESYSTEM
30
+ flight ARROW_FLIGHT
31
+ json ARROW_JSON
32
+ orc ARROW_ORC
33
+ parquet ARROW_PARQUET
34
+ parquet PARQUET_REQUIRE_ENCRYPTION
35
+ plasma ARROW_PLASMA
36
+ s3 ARROW_S3
37
+ )
38
+
39
+ if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
40
+ set(MALLOC_OPTIONS -DARROW_JEMALLOC=OFF)
41
+ elseif("jemalloc" IN_LIST FEATURES)
42
+ set(MALLOC_OPTIONS -DARROW_JEMALLOC=ON)
43
+ else()
44
+ set(MALLOC_OPTIONS -DARROW_JEMALLOC=OFF)
45
+ endif()
46
+
47
+ if(VCPKG_TARGET_IS_WINDOWS AND ("mimalloc" IN_LIST FEATURES))
48
+ set(MALLOC_OPTIONS ${MALLOC_OPTIONS} -DARROW_MIMALLOC=ON)
49
+ else()
50
+ set(MALLOC_OPTIONS ${MALLOC_OPTIONS} -DARROW_MIMALLOC=OFF)
51
+ endif()
52
+
53
+ string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "dynamic" ARROW_BUILD_SHARED)
54
+ string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "static" ARROW_BUILD_STATIC)
55
+ string(COMPARE EQUAL ${VCPKG_LIBRARY_LINKAGE} "dynamic" ARROW_DEPENDENCY_USE_SHARED)
56
+
57
+ if(VCPKG_TARGET_IS_WINDOWS)
58
+ set(THRIFT_USE_SHARED OFF)
59
+ else()
60
+ set(THRIFT_USE_SHARED ${ARROW_DEPENDENCY_USE_SHARED})
61
+ endif()
62
+
63
+ vcpkg_cmake_configure(
64
+ SOURCE_PATH "${SOURCE_PATH}/cpp"
65
+ OPTIONS
66
+ ${FEATURE_OPTIONS}
67
+ ${MALLOC_OPTIONS}
68
+ ${S3_OPTIONS}
69
+ -DCMAKE_SYSTEM_PROCESSOR=${VCPKG_TARGET_ARCHITECTURE}
70
+ -DARROW_BUILD_SHARED=${ARROW_BUILD_SHARED}
71
+ -DARROW_BUILD_STATIC=${ARROW_BUILD_STATIC}
72
+ -DARROW_BUILD_TESTS=OFF
73
+ -DARROW_DEPENDENCY_SOURCE=SYSTEM
74
+ -DARROW_DEPENDENCY_USE_SHARED=${ARROW_DEPENDENCY_USE_SHARED}
75
+ -DARROW_THRIFT_USE_SHARED=${THRIFT_USE_SHARED}
76
+ -DBUILD_WARNING_LEVEL=PRODUCTION
77
+ -DARROW_WITH_BROTLI=ON
78
+ -DARROW_WITH_BZ2=ON
79
+ -DARROW_WITH_LZ4=ON
80
+ -DARROW_WITH_SNAPPY=ON
81
+ -DARROW_WITH_ZLIB=ON
82
+ -DARROW_WITH_ZSTD=ON
83
+ -DZSTD_MSVC_LIB_PREFIX=
84
+ MAYBE_UNUSED_VARIABLES
85
+ ZSTD_MSVC_LIB_PREFIX
86
+ )
87
+
88
+ vcpkg_cmake_install()
89
+
90
+ vcpkg_copy_pdbs()
91
+
92
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/arrow_static.lib")
93
+ message(FATAL_ERROR "Installed lib file should be named 'arrow.lib' via patching the upstream build.")
94
+ endif()
95
+
96
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/arrow)
97
+
98
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
99
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
100
+
101
+ configure_file(${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT} @ONLY)
102
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
103
+ file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
104
+
105
+ file(GLOB PARQUET_FILES ${CURRENT_PACKAGES_DIR}/share/${PORT}/Parquet*)
106
+ file(COPY ${PARQUET_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/share/parquet")
107
+ file(REMOVE_RECURSE ${PARQUET_FILES})
108
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/FindParquet.cmake ${CURRENT_PACKAGES_DIR}/share/parquet/FindParquet.cmake)
109
+
110
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
111
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
112
+
113
+ if ("plasma" IN_LIST FEATURES)
114
+ vcpkg_copy_tools(TOOL_NAMES plasma-store-server AUTO_CLEAN)
115
+ endif ()
116
+
117
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/usage ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ The package arrow provides CMake targets:
2
+
3
+ find_package(Arrow CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE ${ARROW_LIBRARIES})
5
+
6
+ find_package(Parquet CONFIG REQUIRED)
7
+ target_link_libraries(main PRIVATE ${PARQUET_LIBRARIES})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ _find_package(${ARGS})
2
+
3
+ if(TARGET arrow_static)
4
+ list(APPEND ARROW_LIBRARIES arrow_static)
5
+ list(APPEND PARQUET_LIBRARIES parquet_static)
6
+ elseif (TARGET arrow_shared)
7
+ list(APPEND ARROW_LIBRARIES arrow_shared)
8
+ list(APPEND PARQUET_LIBRARIES parquet_shared)
9
+ endif()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/arrow/vcpkg.json ADDED
@@ -0,0 +1,105 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "arrow",
3
+ "version": "7.0.0",
4
+ "port-version": 2,
5
+ "description": "Cross-language development platform for in-memory analytics",
6
+ "homepage": "https://arrow.apache.org",
7
+ "license": "Apache-2.0",
8
+ "supports": "x64 | (arm64 & !windows)",
9
+ "dependencies": [
10
+ "boost-filesystem",
11
+ "boost-multiprecision",
12
+ "boost-system",
13
+ "brotli",
14
+ "bzip2",
15
+ "gflags",
16
+ "glog",
17
+ "lz4",
18
+ "openssl",
19
+ "re2",
20
+ "snappy",
21
+ "thrift",
22
+ "utf8proc",
23
+ {
24
+ "name": "vcpkg-cmake",
25
+ "host": true
26
+ },
27
+ {
28
+ "name": "vcpkg-cmake-config",
29
+ "host": true
30
+ },
31
+ "zlib",
32
+ "zstd"
33
+ ],
34
+ "default-features": [
35
+ "csv",
36
+ "filesystem",
37
+ "json",
38
+ "parquet"
39
+ ],
40
+ "features": {
41
+ "csv": {
42
+ "description": "CSV support"
43
+ },
44
+ "dataset": {
45
+ "description": "Dataset support"
46
+ },
47
+ "filesystem": {
48
+ "description": "Filesystem support"
49
+ },
50
+ "flight": {
51
+ "description": "Arrow Flight RPC support",
52
+ "dependencies": [
53
+ "abseil",
54
+ "c-ares",
55
+ "grpc",
56
+ "protobuf"
57
+ ]
58
+ },
59
+ "jemalloc": {
60
+ "description": "jemalloc allocator"
61
+ },
62
+ "json": {
63
+ "description": "JSON support",
64
+ "dependencies": [
65
+ "rapidjson"
66
+ ]
67
+ },
68
+ "mimalloc": {
69
+ "description": "mimalloc allocator"
70
+ },
71
+ "orc": {
72
+ "description": "ORC support",
73
+ "dependencies": [
74
+ "orc"
75
+ ]
76
+ },
77
+ "parquet": {
78
+ "description": "Parquet support",
79
+ "dependencies": [
80
+ "rapidjson"
81
+ ]
82
+ },
83
+ "plasma": {
84
+ "description": "Plasma support",
85
+ "supports": "!windows"
86
+ },
87
+ "s3": {
88
+ "description": "S3 support",
89
+ "dependencies": [
90
+ {
91
+ "name": "aws-sdk-cpp",
92
+ "default-features": false,
93
+ "features": [
94
+ "cognito-identity",
95
+ "config",
96
+ "identity-management",
97
+ "s3",
98
+ "sts",
99
+ "transfer"
100
+ ]
101
+ }
102
+ ]
103
+ }
104
+ }
105
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ashes/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 DragonJoker/Ashes
6
+ REF f39ca2db24a9d7a2d586c85c78bb6eacd8d63b49
7
+ HEAD_REF master
8
+ SHA512 a45d443797ffe31305acca154640530c6ed767af9982d857b6e59841add3b0a373723f5f7b590512c1b0dd4064dfbae8aa8445fec59a3c3c2b8a3c002b180609
9
+ )
10
+
11
+ vcpkg_from_github(
12
+ OUT_SOURCE_PATH CMAKE_SOURCE_PATH
13
+ REPO DragonJoker/CMakeUtils
14
+ REF e2a9d422a02dab0e04f54b3e1bc515eba652a9d1
15
+ HEAD_REF master
16
+ SHA512 4ebd6141b9e5aa5283f31892da7108aa09fbd59292f0e98f2c9fe67577856f0af253184d41fdc16bb11094c4635401f181ea2e3abfa560adcf5c029f0d663b24
17
+ )
18
+
19
+ file(REMOVE_RECURSE "${SOURCE_PATH}/CMake")
20
+ file(COPY "${CMAKE_SOURCE_PATH}/" DESTINATION "${SOURCE_PATH}/CMake")
21
+
22
+ vcpkg_cmake_configure(
23
+ SOURCE_PATH ${SOURCE_PATH}
24
+ OPTIONS
25
+ -DCMAKE_INSTALL_PREFIX=${CURRENT_INSTALLED_DIR}
26
+ -DVCPKG_PACKAGE_BUILD=ON
27
+ -DASHES_BUILD_TEMPLATES=OFF
28
+ -DASHES_BUILD_TESTS=OFF
29
+ -DASHES_BUILD_INFO=OFF
30
+ -DASHES_BUILD_SAMPLES=OFF
31
+ )
32
+
33
+ vcpkg_cmake_install()
34
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ashes)
35
+
36
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ashes/vcpkg.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "ashes",
3
+ "version-date": "2022-04-03",
4
+ "description": "Drop-in replacement to Vulkan's shared library, allowing the use of OpenGL or Direct3D11 in addition to Vulkan.",
5
+ "homepage": "https://github.com/DragonJoker/Ashes",
6
+ "license": "MIT",
7
+ "supports": "!osx & !linux & !ios & !android & !uwp & !x86 & !arm & !static",
8
+ "dependencies": [
9
+ "opengl",
10
+ "spirv-cross",
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ },
19
+ "vulkan-headers"
20
+ ]
21
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio-grpc/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO Tradias/asio-grpc
4
+ REF v1.5.1
5
+ SHA512 528a790a7414db1b03b20d4d82d510a08cba9fc3c99501955c60c28ce4d768202a4339241b9e99f0199deb379345dc75934f991bad735eda0b32eb6cb3cef587
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_check_features(
10
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
11
+ FEATURES
12
+ boost-container ASIO_GRPC_USE_BOOST_CONTAINER
13
+ )
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH ${SOURCE_PATH}
17
+ OPTIONS ${FEATURE_OPTIONS}
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+
22
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asio-grpc)
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
25
+
26
+ file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
27
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio-grpc/usage ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ The package asio-grpc can be used with different backends.
2
+
3
+ find_package(asio-grpc CONFIG REQUIRED)
4
+
5
+ The Boost.Asio backend. Install "boost-asio" and link with:
6
+
7
+ target_link_libraries(main PRIVATE asio-grpc::asio-grpc)
8
+
9
+ The standalone Asio backend. Install "asio" and link with:
10
+
11
+ target_link_libraries(main PRIVATE asio-grpc::asio-grpc-standalone-asio)
12
+
13
+ The libunifex backend. Install "libunifex" and link with:
14
+
15
+ target_link_libraries(main PRIVATE asio-grpc::asio-grpc-unifex)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio-grpc/vcpkg.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "asio-grpc",
3
+ "version": "1.5.1",
4
+ "description": "Asynchronous gRPC with Asio/unified executors",
5
+ "homepage": "https://github.com/Tradias/asio-grpc",
6
+ "license": "Apache-2.0",
7
+ "dependencies": [
8
+ "grpc",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ],
18
+ "features": {
19
+ "boost-container": {
20
+ "description": "Use Boost.Container instead of <memory_resource>",
21
+ "dependencies": [
22
+ "boost-container"
23
+ ]
24
+ }
25
+ }
26
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/CMakeLists.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(asio)
3
+
4
+ add_library(asio INTERFACE)
5
+
6
+ # Export target
7
+ install(TARGETS asio
8
+ EXPORT asio
9
+ INCLUDES DESTINATION include/
10
+ )
11
+
12
+ install(EXPORT asio
13
+ DESTINATION "share/asio"
14
+ FILE asio-targets.cmake
15
+ )
16
+
17
+ install(DIRECTORY
18
+ asio/include/asio
19
+ DESTINATION include/
20
+ FILES_MATCHING
21
+ PATTERN "*.hpp"
22
+ PATTERN "*.ipp"
23
+ )
24
+
25
+ install(FILES
26
+ asio/include/asio.hpp
27
+ DESTINATION include/
28
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/asio-config.cmake ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ include ("${CMAKE_CURRENT_LIST_DIR}/asio-targets.cmake")
2
+ add_library(asio::asio INTERFACE IMPORTED)
3
+ target_link_libraries(asio::asio INTERFACE asio)
4
+
5
+ get_target_property(_ASIO_INCLUDE_DIR asio INTERFACE_INCLUDE_DIRECTORIES)
6
+ set(ASIO_INCLUDE_DIR "${_ASIO_INCLUDE_DIR}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO chriskohlhoff/asio
6
+ REF asio-1-22-1
7
+ SHA512 7658293f2be1f5ea659a424614b2f3092954df45802fbb0031b7983d11762f4f68d18eab076e14954df3a24ce89ff26bd4bebea88b9a3dc680387252efec8398
8
+ HEAD_REF master
9
+ )
10
+
11
+ # Always use "ASIO_STANDALONE" to avoid boost dependency
12
+ vcpkg_replace_string("${SOURCE_PATH}/asio/include/asio/detail/config.hpp" "defined(ASIO_STANDALONE)" "!defined(VCPKG_DISABLE_ASIO_STANDALONE)")
13
+
14
+ # CMake install
15
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
16
+ vcpkg_cmake_configure(
17
+ SOURCE_PATH "${SOURCE_PATH}"
18
+ )
19
+ vcpkg_cmake_install()
20
+
21
+ vcpkg_cmake_config_fixup()
22
+ file(INSTALL
23
+ "${CMAKE_CURRENT_LIST_DIR}/asio-config.cmake"
24
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
25
+ )
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
27
+
28
+ # Handle copyright
29
+ file(INSTALL "${SOURCE_PATH}/asio/LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asio/vcpkg.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "asio",
3
+ "version": "1.22.1",
4
+ "description": "Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.",
5
+ "homepage": "https://github.com/chriskohlhoff/asio",
6
+ "documentation": "https://think-async.com/Asio/asio-1.22.1/doc/",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ],
17
+ "features": {
18
+ "coroutine": {
19
+ "description": "Boost.Coroutine (optional) if you use spawn() to launch coroutines",
20
+ "dependencies": [
21
+ "boost-coroutine"
22
+ ]
23
+ },
24
+ "openssl": {
25
+ "description": "OpenSSL (optional) if you use Asio's SSL support.",
26
+ "dependencies": [
27
+ "openssl"
28
+ ]
29
+ },
30
+ "regex": {
31
+ "description": "Boost.Regex (optional) if you use any of the read_until() or async_read_until() overloads that take a boost::regex parameter.",
32
+ "dependencies": [
33
+ "boost-regex"
34
+ ]
35
+ }
36
+ }
37
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/Findasiosdk.cmake ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(WIN32)
2
+ else(WIN32)
3
+ message(FATAL_ERROR "Findasiosdk.cmake: Unsupported platform ${CMAKE_SYSTEM_NAME}" )
4
+ endif(WIN32)
5
+
6
+ find_path(
7
+ ASIOSDK_ROOT_DIR
8
+ asiosdk
9
+ )
10
+
11
+ if (NOT "${ASIOSDK_ROOT_DIR}" STREQUAL "")
12
+ set(ASIOSDK_ROOT_DIR
13
+ ${ASIOSDK_ROOT_DIR}/asiosdk
14
+ )
15
+ endif()
16
+
17
+ find_path(ASIOSDK_INCLUDE_DIR
18
+ asio.h
19
+ PATHS
20
+ ${ASIOSDK_ROOT_DIR}/common
21
+ )
22
+
23
+
24
+ if (NOT "${ASIOSDK_ROOT_DIR}" STREQUAL "")
25
+ set (ASIOSDK_INCLUDE_DIR
26
+ ${ASIOSDK_ROOT_DIR}/common
27
+ ${ASIOSDK_ROOT_DIR}/host
28
+ ${ASIOSDK_ROOT_DIR}/hostpc
29
+ )
30
+ endif()
31
+
32
+ include(FindPackageHandleStandardArgs)
33
+ find_package_handle_standard_args(ASIOSDK DEFAULT_MSG ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR)
34
+
35
+ MARK_AS_ADVANCED(
36
+ ASIOSDK_ROOT_DIR ASIOSDK_INCLUDE_DIR
37
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/portfile.cmake ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(VERSION 2.3.3)
2
+
3
+ vcpkg_download_distfile(ARCHIVE
4
+ URLS "https://download.steinberg.net/sdk_downloads/asiosdk_2.3.3_2019-06-14.zip"
5
+ FILENAME "asiosdk_2.3.3_2019-06-14-eac6c1a57829.zip"
6
+ SHA512 eac6c1a57829b7f722a681c54b2f6469d54695523f08f727d0dd6744dcd7fce4f3249c57689bb15ed7a8bcb912833b226439d800913e122e0ef9ab73672f6542
7
+ )
8
+
9
+ vcpkg_extract_source_archive_ex(
10
+ OUT_SOURCE_PATH SOURCE_PATH
11
+ ARCHIVE ${ARCHIVE}
12
+ REF ${VERSION}
13
+ )
14
+
15
+ file(INSTALL ${SOURCE_PATH}/asio/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/asiosdk/asio)
16
+ file(INSTALL ${SOURCE_PATH}/common/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/asiosdk/common)
17
+ file(INSTALL ${SOURCE_PATH}/driver/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/asiosdk/driver)
18
+ file(INSTALL ${SOURCE_PATH}/host/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/asiosdk/host)
19
+ file(INSTALL ${SOURCE_PATH}/readme.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
20
+ file(INSTALL ${SOURCE_PATH}/readme.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
21
+ file(INSTALL ${SOURCE_PATH}/changes.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
22
+ file(INSTALL "${SOURCE_PATH}/Steinberg ASIO Logo Artwork.zip" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
23
+ file(INSTALL "${SOURCE_PATH}/Steinberg ASIO 2.3.3 Licensing Agreement 2.0.1 - 2019.pdf" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
24
+ file(INSTALL "${SOURCE_PATH}/ASIO SDK 2.3.pdf" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
25
+
26
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/Findasiosdk.cmake" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
27
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
28
+
29
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The package asiosdk provides CMake integration:
2
+
3
+ find_package(asiosdk REQUIRED)
4
+ target_include_directories(<my_target> PRIVATE ${ASIOSDK_INCLUDE_DIRS})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ set(ASIOSDK_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
2
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
3
+
4
+ _find_package(${ARGS})
5
+
6
+ set(CMAKE_MODULE_PATH ${ASIOSDK_PREV_MODULE_PATH})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asiosdk/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "asiosdk",
3
+ "version": "2.3.3",
4
+ "port-version": 4,
5
+ "description": "ASIO is a low latency audio API from Steinberg.",
6
+ "homepage": "https://www.steinberg.net/en/company/developers.html",
7
+ "supports": "windows & !(arm | uwp)"
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asmjit/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO asmjit/asmjit
4
+ REF d0d14ac774977d0060a351f66e35cb57ba0bf59c # accessed on 2021-10-26
5
+ SHA512 2822763fcb3c18f6699119c1773404667d81f8afb86f8f2e8dbe627526a2877b049d16505557e680e4e310f0e0667263dc4ac442f682e95f2568bf0bf8b61b4b
6
+ HEAD_REF master
7
+ )
8
+
9
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ASMJIT_STATIC)
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ OPTIONS
14
+ -DASMJIT_STATIC=${ASMJIT_STATIC}
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+ vcpkg_copy_pdbs()
19
+
20
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmjit)
21
+
22
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
23
+
24
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
25
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/asmjit/core/api-config.h"
26
+ "#if !defined(ASMJIT_STATIC)"
27
+ "#if 0"
28
+ )
29
+ endif()
30
+
31
+ file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asmjit/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "asmjit",
3
+ "version-date": "2021-10-26",
4
+ "port-version": 1,
5
+ "description": "Complete x86/x64 JIT and Remote Assembler for C++",
6
+ "homepage": "https://github.com/asmjit/asmjit",
7
+ "supports": "!arm",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/build_fixes.patch ADDED
@@ -0,0 +1,626 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index dcafb64..761040d 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -51,7 +51,7 @@ IF(HUNTER_ENABLED)
6
+ add_definitions(-DASSIMP_USE_HUNTER)
7
+ ENDIF(HUNTER_ENABLED)
8
+
9
+ -PROJECT( Assimp VERSION 5.0.0 )
10
+ +PROJECT( Assimp VERSION 5.0.1 )
11
+
12
+ # All supported options ###############################################
13
+
14
+ @@ -130,6 +130,16 @@ OPTION ( IGNORE_GIT_HASH
15
+ OFF
16
+ )
17
+
18
+ +find_package(Stb REQUIRED)
19
+ +include_directories(${Stb_INCLUDE_DIR})
20
+ +find_package(utf8cpp CONFIG REQUIRED)
21
+ +link_libraries(utf8cpp)
22
+ +find_package(RapidJSON CONFIG REQUIRED)
23
+ +include_directories(${RAPIDJSON_INCLUDE_DIRS})
24
+ +find_path(UNZIP_INCLUDE_DIRS "minizip/unzip.h")
25
+ +include_directories(${UNZIP_INCLUDE_DIRS}/minizip)
26
+ +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/contrib)
27
+ +
28
+ IF (IOS AND NOT HUNTER_ENABLED)
29
+ IF (NOT CMAKE_BUILD_TYPE)
30
+ SET(CMAKE_BUILD_TYPE "Release")
31
+ @@ -230,10 +240,8 @@ SET(LIBASSIMP-DEV_COMPONENT "libassimp${ASSIMP_VERSION_MAJOR}.${ASSIMP_VERSION_M
32
+ SET(CPACK_COMPONENTS_ALL assimp-bin ${LIBASSIMP_COMPONENT} ${LIBASSIMP-DEV_COMPONENT} assimp-dev)
33
+ SET(ASSIMP_LIBRARY_SUFFIX "" CACHE STRING "Suffix to append to library names")
34
+
35
+ -IF( UNIX )
36
+ # Use GNUInstallDirs for Unix predefined directories
37
+ INCLUDE(GNUInstallDirs)
38
+ -ENDIF( UNIX )
39
+
40
+ # Grouped compiler settings
41
+ IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT CMAKE_COMPILER_IS_MINGW)
42
+ @@ -253,7 +261,6 @@ ELSEIF(MSVC)
43
+ IF(MSVC12)
44
+ ADD_COMPILE_OPTIONS(/wd4351)
45
+ ENDIF()
46
+ - SET(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MDd /Ob2 /DEBUG:FULL /Zi")
47
+ ELSEIF ( "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" )
48
+ IF(NOT HUNTER_ENABLED)
49
+ SET(CMAKE_CXX_FLAGS "-fPIC -std=c++11 ${CMAKE_CXX_FLAGS}")
50
+ @@ -352,35 +359,21 @@ IF (NOT TARGET uninstall)
51
+ ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
52
+ ENDIF()
53
+
54
+ -IF(HUNTER_ENABLED)
55
+ - set(CONFIG_INSTALL_DIR "lib/cmake/${PROJECT_NAME}")
56
+ + set(CONFIG_INSTALL_DIR "share/assimp")
57
+ set(INCLUDE_INSTALL_DIR "include")
58
+
59
+ - set(GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated")
60
+ + string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWERCASE)
61
+ + set(NAMESPACE "${PROJECT_NAME_LOWERCASE}::")
62
+
63
+ - # Configuration
64
+ - set(VERSION_CONFIG "${GENERATED_DIR}/${PROJECT_NAME}ConfigVersion.cmake")
65
+ - set(PROJECT_CONFIG "${GENERATED_DIR}/${PROJECT_NAME}Config.cmake")
66
+ - set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
67
+ - set(NAMESPACE "${PROJECT_NAME}::")
68
+ + set(TARGETS_EXPORT_NAME "${PROJECT_NAME_LOWERCASE}Config")
69
+ + set(VERSION_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME_LOWERCASE}ConfigVersion.cmake")
70
+ + set(NAMESPACE "${PROJECT_NAME_LOWERCASE}::")
71
+
72
+ - # Include module with fuction 'write_basic_package_version_file'
73
+ include(CMakePackageConfigHelpers)
74
+ -
75
+ - # Note: PROJECT_VERSION is used as a VERSION
76
+ - write_basic_package_version_file("${VERSION_CONFIG}" COMPATIBILITY SameMajorVersion)
77
+ -
78
+ - # Use variables:
79
+ - # * TARGETS_EXPORT_NAME
80
+ - # * PROJECT_NAME
81
+ - configure_package_config_file(
82
+ - "cmake/assimp-hunter-config.cmake.in"
83
+ - "${PROJECT_CONFIG}"
84
+ - INSTALL_DESTINATION "${CONFIG_INSTALL_DIR}"
85
+ - )
86
+ + write_basic_package_version_file("${VERSION_CONFIG}" VERSION ${${PROJECT_NAME}_VERSION} COMPATIBILITY SameMajorVersion)
87
+
88
+ install(
89
+ - FILES "${PROJECT_CONFIG}" "${VERSION_CONFIG}"
90
+ + FILES ${VERSION_CONFIG}
91
+ DESTINATION "${CONFIG_INSTALL_DIR}"
92
+ )
93
+
94
+ @@ -389,30 +382,6 @@ IF(HUNTER_ENABLED)
95
+ NAMESPACE "${NAMESPACE}"
96
+ DESTINATION "${CONFIG_INSTALL_DIR}"
97
+ )
98
+ -ELSE(HUNTER_ENABLED)
99
+ - # cmake configuration files
100
+ - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/assimp-config.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/assimp-config.cmake" @ONLY IMMEDIATE)
101
+ - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/assimpTargets.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets.cmake" @ONLY IMMEDIATE)
102
+ - IF (is_multi_config)
103
+ - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/assimpTargets-debug.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-debug.cmake" @ONLY IMMEDIATE)
104
+ - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/assimpTargets-release.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-release.cmake" @ONLY IMMEDIATE)
105
+ - SET(PACKAGE_TARGETS_FILE "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-debug.cmake" "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-release.cmake")
106
+ - ELSEIF (CMAKE_BUILD_TYPE STREQUAL Debug)
107
+ - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/assimpTargets-debug.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-debug.cmake" @ONLY IMMEDIATE)
108
+ - SET(PACKAGE_TARGETS_FILE "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-debug.cmake")
109
+ - ELSE()
110
+ - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/assimpTargets-release.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-release.cmake" @ONLY IMMEDIATE)
111
+ - SET(PACKAGE_TARGETS_FILE "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets-release.cmake")
112
+ - ENDIF()
113
+ - CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/assimp-config-version.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/assimp-config-version.cmake" @ONLY IMMEDIATE)
114
+ - #we should generated these scripts after CMake VERSION 3.0.2 using export(EXPORT ...) and write_basic_package_version_file(...)
115
+ - INSTALL(FILES
116
+ - "${CMAKE_CURRENT_BINARY_DIR}/assimp-config.cmake"
117
+ - "${CMAKE_CURRENT_BINARY_DIR}/assimp-config-version.cmake"
118
+ - "${CMAKE_CURRENT_BINARY_DIR}/assimpTargets.cmake"
119
+ - ${PACKAGE_TARGETS_FILE}
120
+ - DESTINATION "${ASSIMP_LIB_INSTALL_DIR}/cmake/assimp-${ASSIMP_VERSION_MAJOR}.${ASSIMP_VERSION_MINOR}" COMPONENT ${LIBASSIMP-DEV_COMPONENT})
121
+ -ENDIF(HUNTER_ENABLED)
122
+
123
+ FIND_PACKAGE( DirectX )
124
+
125
+ @@ -422,63 +391,19 @@ ENDIF( BUILD_DOCS )
126
+
127
+ # Look for system installed irrXML
128
+ IF ( SYSTEM_IRRXML )
129
+ - FIND_PACKAGE( IrrXML REQUIRED )
130
+ + FIND_PACKAGE( irrlicht CONFIG REQUIRED )
131
+ ENDIF( SYSTEM_IRRXML )
132
+
133
+ # Search for external dependencies, and build them from source if not found
134
+ # Search for zlib
135
+ -IF(HUNTER_ENABLED)
136
+ - hunter_add_package(ZLIB)
137
+ - find_package(ZLIB CONFIG REQUIRED)
138
+ + find_package(ZLIB REQUIRED)
139
+
140
+ add_definitions(-DASSIMP_BUILD_NO_OWN_ZLIB)
141
+ set(ZLIB_FOUND TRUE)
142
+ - set(ZLIB_LIBRARIES ZLIB::zlib)
143
+ - set(ASSIMP_BUILD_MINIZIP TRUE)
144
+ -ELSE(HUNTER_ENABLED)
145
+ - IF ( NOT ASSIMP_BUILD_ZLIB )
146
+ - FIND_PACKAGE(ZLIB)
147
+ - ENDIF( NOT ASSIMP_BUILD_ZLIB )
148
+ -
149
+ - IF( NOT ZLIB_FOUND )
150
+ - MESSAGE(STATUS "compiling zlib from sources")
151
+ - INCLUDE(CheckIncludeFile)
152
+ - INCLUDE(CheckTypeSize)
153
+ - INCLUDE(CheckFunctionExists)
154
+ -
155
+ - # Explicitly turn off ASM686 and AMD64 cmake options.
156
+ - # The AMD64 option causes a build failure on MSVC and the ASM builds seem to have problems:
157
+ - # https://github.com/madler/zlib/issues/41#issuecomment-125848075
158
+ - # Also prevents these options from "polluting" the cmake options if assimp is being
159
+ - # included as a submodule.
160
+ - set( ASM686 FALSE CACHE INTERNAL "Override ZLIB flag to turn off assembly" FORCE )
161
+ - set( AMD64 FALSE CACHE INTERNAL "Override ZLIB flag to turn off assembly" FORCE )
162
+ -
163
+ - # compile from sources
164
+ - ADD_SUBDIRECTORY(contrib/zlib)
165
+ - SET(ZLIB_FOUND 1)
166
+ - SET(ZLIB_LIBRARIES zlibstatic)
167
+ - SET(ZLIB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/contrib/zlib ${CMAKE_CURRENT_BINARY_DIR}/contrib/zlib)
168
+ - # need to ensure we don't link with system zlib or minizip as well.
169
+ - SET(ASSIMP_BUILD_MINIZIP 1)
170
+ - ELSE(NOT ZLIB_FOUND)
171
+ - ADD_DEFINITIONS(-DASSIMP_BUILD_NO_OWN_ZLIB)
172
+ - SET(ZLIB_LIBRARIES_LINKED -lz)
173
+ - ENDIF(NOT ZLIB_FOUND)
174
+ + set(ZLIB_LIBRARIES ZLIB::ZLIB)
175
+ INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR})
176
+ -ENDIF(HUNTER_ENABLED)
177
+
178
+ -IF( NOT IOS )
179
+ - IF( NOT ASSIMP_BUILD_MINIZIP )
180
+ - use_pkgconfig(UNZIP minizip)
181
+ - ENDIF( NOT ASSIMP_BUILD_MINIZIP )
182
+ -ELSE ( NOT IOS )
183
+ - IF( NOT BUILD_SHARED_LIBS )
184
+ - IF( NOT ASSIMP_BUILD_MINIZIP )
185
+ - use_pkgconfig(UNZIP minizip)
186
+ - ENDIF( NOT ASSIMP_BUILD_MINIZIP )
187
+ - ENDIF ( NOT BUILD_SHARED_LIBS )
188
+ -ENDIF ( NOT IOS )
189
+ + find_package(minizip CONFIG REQUIRED)
190
+
191
+ IF ( ASSIMP_NO_EXPORT )
192
+ ADD_DEFINITIONS( -DASSIMP_BUILD_NO_EXPORT)
193
+ @@ -633,7 +558,7 @@ IF(CMAKE_CPACK_COMMAND AND UNIX AND ASSIMP_OPT_BUILD_PACKAGES)
194
+ INCLUDE(DebSourcePPA)
195
+ ENDIF()
196
+
197
+ -if(WIN32)
198
+ +if(0)
199
+ if (CMAKE_SIZEOF_VOID_P EQUAL 8)
200
+ SET(BIN_DIR "${PROJECT_SOURCE_DIR}/bin64/")
201
+ SET(LIB_DIR "${PROJECT_SOURCE_DIR}/lib64/")
202
+ @@ -677,4 +602,4 @@ if(WIN32)
203
+ ADD_CUSTOM_COMMAND(TARGET UpdateAssimpLibsDebugSymbolsAndDLLs COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/code/assimp-${ASSIMP_MSVC_VERSION}-mtd.pdb ${LIB_DIR}assimp-${ASSIMP_MSVC_VERSION}-mtd.pdb VERBATIM)
204
+ ENDIF()
205
+ ENDIF(MSVC12 OR MSVC14 OR MSVC15 )
206
+ -ENDIF (WIN32)
207
+ +ENDIF (0)
208
+ diff --git a/assimpTargets.cmake.in b/assimpTargets.cmake.in
209
+ index ab1a8d2..4b0729b 100644
210
+ --- a/assimpTargets.cmake.in
211
+ +++ b/assimpTargets.cmake.in
212
+ @@ -5,6 +5,8 @@ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.5)
213
+ endif()
214
+ cmake_policy(PUSH)
215
+ cmake_policy(VERSION 2.6)
216
+ +# Required for the evaluation of "if(@BUILD_SHARED_LIBS@)" below to function
217
+ +cmake_policy(SET CMP0012 NEW)
218
+ #----------------------------------------------------------------
219
+ # Generated CMake target import file.
220
+ #----------------------------------------------------------------
221
+ diff --git a/code/3MF/D3MFExporter.cpp b/code/3MF/D3MFExporter.cpp
222
+ index 1f388ad..1ccd2aa 100644
223
+ --- a/code/3MF/D3MFExporter.cpp
224
+ +++ b/code/3MF/D3MFExporter.cpp
225
+ @@ -58,7 +58,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
226
+ #ifdef ASSIMP_USE_HUNTER
227
+ # include <zip/zip.h>
228
+ #else
229
+ -# include <contrib/zip/src/zip.h>
230
+ +# include <zip/zip.h>
231
+ #endif
232
+
233
+ namespace Assimp {
234
+ @@ -255,7 +255,7 @@ void D3MFExporter::writeBaseMaterials() {
235
+ hexDiffuseColor.clear();
236
+ tmp.clear();
237
+ hexDiffuseColor = "#";
238
+ -
239
+ +
240
+ tmp = DecimalToHexa( color.r );
241
+ hexDiffuseColor += tmp;
242
+ tmp = DecimalToHexa( color.g );
243
+ diff --git a/code/Blender/BlenderTessellator.h b/code/Blender/BlenderTessellator.h
244
+ index 518e56c..ec4a653 100644
245
+ --- a/code/Blender/BlenderTessellator.h
246
+ +++ b/code/Blender/BlenderTessellator.h
247
+ @@ -147,7 +147,7 @@ namespace Assimp
248
+ #ifdef ASSIMP_USE_HUNTER
249
+ # include <poly2tri/poly2tri.h>
250
+ #else
251
+ -# include "../contrib/poly2tri/poly2tri/poly2tri.h"
252
+ +# include <poly2tri/poly2tri.h>
253
+ #endif
254
+
255
+ namespace Assimp
256
+ diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
257
+ index 55538d9..f5553e5 100644
258
+ --- a/code/CMakeLists.txt
259
+ +++ b/code/CMakeLists.txt
260
+ @@ -862,89 +862,24 @@ SET( Extra_SRCS
261
+ SOURCE_GROUP( Extra FILES ${Extra_SRCS})
262
+
263
+ # irrXML
264
+ -IF(HUNTER_ENABLED)
265
+ - hunter_add_package(irrXML)
266
+ find_package(irrXML CONFIG REQUIRED)
267
+ -ELSE(HUNTER_ENABLED)
268
+ - # irrXML already included in contrib directory by parent CMakeLists.txt.
269
+ -ENDIF(HUNTER_ENABLED)
270
+ -
271
+ -# utf8
272
+ -IF(HUNTER_ENABLED)
273
+ - hunter_add_package(utf8)
274
+ - find_package(utf8 CONFIG REQUIRED)
275
+ -ELSE(HUNTER_ENABLED)
276
+ - # utf8 is header-only, so Assimp doesn't need to do anything.
277
+ -ENDIF(HUNTER_ENABLED)
278
+
279
+ # polyclipping
280
+ -IF(HUNTER_ENABLED)
281
+ - hunter_add_package(polyclipping)
282
+ find_package(polyclipping CONFIG REQUIRED)
283
+ -ELSE(HUNTER_ENABLED)
284
+ SET( Clipper_SRCS
285
+ ../contrib/clipper/clipper.hpp
286
+ ../contrib/clipper/clipper.cpp
287
+ )
288
+ SOURCE_GROUP( Contrib\\Clipper FILES ${Clipper_SRCS})
289
+ -ENDIF(HUNTER_ENABLED)
290
+
291
+ # poly2tri
292
+ -IF(HUNTER_ENABLED)
293
+ - hunter_add_package(poly2tri)
294
+ find_package(poly2tri CONFIG REQUIRED)
295
+ -ELSE(HUNTER_ENABLED)
296
+ - SET( Poly2Tri_SRCS
297
+ - ../contrib/poly2tri/poly2tri/common/shapes.cc
298
+ - ../contrib/poly2tri/poly2tri/common/shapes.h
299
+ - ../contrib/poly2tri/poly2tri/common/utils.h
300
+ - ../contrib/poly2tri/poly2tri/sweep/advancing_front.h
301
+ - ../contrib/poly2tri/poly2tri/sweep/advancing_front.cc
302
+ - ../contrib/poly2tri/poly2tri/sweep/cdt.cc
303
+ - ../contrib/poly2tri/poly2tri/sweep/cdt.h
304
+ - ../contrib/poly2tri/poly2tri/sweep/sweep.cc
305
+ - ../contrib/poly2tri/poly2tri/sweep/sweep.h
306
+ - ../contrib/poly2tri/poly2tri/sweep/sweep_context.cc
307
+ - ../contrib/poly2tri/poly2tri/sweep/sweep_context.h
308
+ - )
309
+ - SOURCE_GROUP( Contrib\\Poly2Tri FILES ${Poly2Tri_SRCS})
310
+ -ENDIF(HUNTER_ENABLED)
311
+
312
+ # minizip/unzip
313
+ -IF(HUNTER_ENABLED)
314
+ - hunter_add_package(minizip)
315
+ find_package(minizip CONFIG REQUIRED)
316
+ -ELSE(HUNTER_ENABLED)
317
+ - SET( unzip_SRCS
318
+ - ../contrib/unzip/crypt.h
319
+ - ../contrib/unzip/ioapi.c
320
+ - ../contrib/unzip/ioapi.h
321
+ - ../contrib/unzip/unzip.c
322
+ - ../contrib/unzip/unzip.h
323
+ - )
324
+ - SOURCE_GROUP(Contrib\\unzip FILES ${unzip_SRCS})
325
+ -ENDIF(HUNTER_ENABLED)
326
+
327
+ # zip (https://github.com/kuba--/zip)
328
+ -IF(HUNTER_ENABLED)
329
+ - hunter_add_package(zip)
330
+ - find_package(zip CONFIG REQUIRED)
331
+ -ELSE(HUNTER_ENABLED)
332
+ - SET( ziplib_SRCS
333
+ - ../contrib/zip/src/miniz.h
334
+ - ../contrib/zip/src/zip.c
335
+ - ../contrib/zip/src/zip.h
336
+ - )
337
+ -
338
+ - # TODO if cmake required version has been updated to >3.12.0, collapse this to the second case only
339
+ - if(${CMAKE_VERSION} VERSION_LESS "3.12.0")
340
+ - add_definitions(-DMINIZ_USE_UNALIGNED_LOADS_AND_STORES=0)
341
+ - else()
342
+ - add_compile_definitions(MINIZ_USE_UNALIGNED_LOADS_AND_STORES=0)
343
+ - endif()
344
+ -
345
+ - SOURCE_GROUP( ziplib FILES ${ziplib_SRCS} )
346
+ -ENDIF(HUNTER_ENABLED)
347
+ + find_package(kubazip CONFIG REQUIRED)
348
+
349
+ # openddlparser
350
+ IF(HUNTER_ENABLED)
351
+ @@ -1021,13 +956,7 @@ ELSE ()
352
+ ENDIF ()
353
+
354
+ # RapidJSON
355
+ -IF(HUNTER_ENABLED)
356
+ - hunter_add_package(RapidJSON)
357
+ find_package(RapidJSON CONFIG REQUIRED)
358
+ -ELSE(HUNTER_ENABLED)
359
+ - INCLUDE_DIRECTORIES( "../contrib/rapidjson/include" )
360
+ - INCLUDE_DIRECTORIES( "../contrib" )
361
+ -ENDIF(HUNTER_ENABLED)
362
+
363
+ # VC2010 fixes
364
+ if(MSVC10)
365
+ @@ -1044,15 +973,6 @@ if ( MSVC )
366
+ ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
367
+ endif ( MSVC )
368
+
369
+ -IF(NOT HUNTER_ENABLED)
370
+ - if (UNZIP_FOUND)
371
+ - SET (unzip_compile_SRCS "")
372
+ - else (UNZIP_FOUND)
373
+ - SET (unzip_compile_SRCS ${unzip_SRCS})
374
+ - INCLUDE_DIRECTORIES( "../contrib/unzip/" )
375
+ - endif (UNZIP_FOUND)
376
+ -ENDIF(NOT HUNTER_ENABLED)
377
+ -
378
+ MESSAGE(STATUS "Enabled importer formats:${ASSIMP_IMPORTERS_ENABLED}")
379
+ MESSAGE(STATUS "Disabled importer formats:${ASSIMP_IMPORTERS_DISABLED}")
380
+
381
+ @@ -1111,22 +1031,14 @@ TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
382
+ $<INSTALL_INTERFACE:include>
383
+ )
384
+
385
+ -IF(HUNTER_ENABLED)
386
+ TARGET_LINK_LIBRARIES(assimp
387
+ - PUBLIC
388
+ polyclipping::polyclipping
389
+ irrXML::irrXML
390
+ - openddlparser::openddl_parser
391
+ - poly2tri::poly2tri
392
+ minizip::minizip
393
+ - ZLIB::zlib
394
+ - RapidJSON::rapidjson
395
+ - utf8::utf8
396
+ - zip::zip
397
+ + ZLIB::ZLIB
398
+ + kubazip::kubazip
399
+ + poly2tri::poly2tri
400
+ )
401
+ -ELSE(HUNTER_ENABLED)
402
+ - TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES} ${IRRXML_LIBRARY} )
403
+ -ENDIF(HUNTER_ENABLED)
404
+
405
+ if(ASSIMP_ANDROID_JNIIOSYSTEM)
406
+ set(ASSIMP_ANDROID_JNIIOSYSTEM_PATH port/AndroidJNI)
407
+ @@ -1208,21 +1120,12 @@ ENDIF(APPLE)
408
+
409
+ # Build against external unzip, or add ../contrib/unzip so
410
+ # assimp can #include "unzip.h"
411
+ -IF(NOT HUNTER_ENABLED)
412
+ - if (UNZIP_FOUND)
413
+ - INCLUDE_DIRECTORIES(${UNZIP_INCLUDE_DIRS})
414
+ - TARGET_LINK_LIBRARIES(assimp ${UNZIP_LIBRARIES})
415
+ - else (UNZIP_FOUND)
416
+ - INCLUDE_DIRECTORIES("../")
417
+ - endif (UNZIP_FOUND)
418
+ -ENDIF(NOT HUNTER_ENABLED)
419
+
420
+ # Add RT-extension library for glTF importer with Open3DGC-compression.
421
+ IF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC)
422
+ TARGET_LINK_LIBRARIES(assimp ${RT_LIBRARY})
423
+ ENDIF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC)
424
+
425
+ -IF(HUNTER_ENABLED)
426
+ INSTALL( TARGETS assimp
427
+ EXPORT "${TARGETS_EXPORT_NAME}"
428
+ LIBRARY DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
429
+ @@ -1231,14 +1134,6 @@ IF(HUNTER_ENABLED)
430
+ FRAMEWORK DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
431
+ COMPONENT ${LIBASSIMP_COMPONENT}
432
+ INCLUDES DESTINATION "include")
433
+ -ELSE(HUNTER_ENABLED)
434
+ -INSTALL( TARGETS assimp
435
+ - LIBRARY DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
436
+ - ARCHIVE DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
437
+ - RUNTIME DESTINATION ${ASSIMP_BIN_INSTALL_DIR}
438
+ - FRAMEWORK DESTINATION ${ASSIMP_LIB_INSTALL_DIR}
439
+ - COMPONENT ${LIBASSIMP_COMPONENT})
440
+ -ENDIF(HUNTER_ENABLED)
441
+ INSTALL( FILES ${PUBLIC_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp COMPONENT assimp-dev)
442
+ INSTALL( FILES ${COMPILER_HEADERS} DESTINATION ${ASSIMP_INCLUDE_INSTALL_DIR}/assimp/Compiler COMPONENT assimp-dev)
443
+
444
+ diff --git a/code/Common/BaseImporter.cpp b/code/Common/BaseImporter.cpp
445
+ index b77bbfe..51cba43 100644
446
+ --- a/code/Common/BaseImporter.cpp
447
+ +++ b/code/Common/BaseImporter.cpp
448
+ @@ -344,7 +344,7 @@ std::string BaseImporter::GetExtension( const std::string& file ) {
449
+ #ifdef ASSIMP_USE_HUNTER
450
+ # include <utf8/utf8.h>
451
+ #else
452
+ -# include "../contrib/utf8cpp/source/utf8.h"
453
+ +# include <utf8.h>
454
+ #endif
455
+
456
+ // ------------------------------------------------------------------------------------------------
457
+ @@ -364,8 +364,8 @@ void BaseImporter::ConvertToUTF8(std::vector<char>& data)
458
+ data.resize(data.size()-3);
459
+ return;
460
+ }
461
+ -
462
+ -
463
+ +
464
+ +
465
+ // UTF 32 BE with BOM
466
+ if(*((uint32_t*)&data.front()) == 0xFFFE0000) {
467
+
468
+ @@ -507,7 +507,7 @@ struct Assimp::BatchData {
469
+ , next_id(0xffff)
470
+ , validate( validate ) {
471
+ ai_assert( nullptr != pIO );
472
+ -
473
+ +
474
+ pImporter = new Importer();
475
+ pImporter->SetIOHandler( pIO );
476
+ }
477
+ diff --git a/code/Importer/IFC/IFCGeometry.cpp b/code/Importer/IFC/IFCGeometry.cpp
478
+ index d1c7aee..8e11373 100644
479
+ --- a/code/Importer/IFC/IFCGeometry.cpp
480
+ +++ b/code/Importer/IFC/IFCGeometry.cpp
481
+ @@ -51,9 +51,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
482
+
483
+ #ifdef ASSIMP_USE_HUNTER
484
+ # include <poly2tri/poly2tri.h>
485
+ -# include <polyclipping/clipper.hpp>
486
+ +# include "../contrib/clipper/clipper.hpp"
487
+ #else
488
+ -# include "../contrib/poly2tri/poly2tri/poly2tri.h"
489
+ +# include <poly2tri/poly2tri.h>
490
+ # include "../contrib/clipper/clipper.hpp"
491
+ #endif
492
+
493
+ diff --git a/code/Importer/IFC/IFCOpenings.cpp b/code/Importer/IFC/IFCOpenings.cpp
494
+ index d6c40b3..387c625 100644
495
+ --- a/code/Importer/IFC/IFCOpenings.cpp
496
+ +++ b/code/Importer/IFC/IFCOpenings.cpp
497
+ @@ -51,9 +51,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
498
+
499
+ #ifdef ASSIMP_USE_HUNTER
500
+ # include <poly2tri/poly2tri.h>
501
+ -# include <polyclipping/clipper.hpp>
502
+ +# include "../contrib/clipper/clipper.hpp"
503
+ #else
504
+ -# include "../contrib/poly2tri/poly2tri/poly2tri.h"
505
+ +# include <poly2tri/poly2tri.h>
506
+ # include "../contrib/clipper/clipper.hpp"
507
+ #endif
508
+
509
+ @@ -911,14 +911,14 @@ size_t CloseWindows(ContourVector& contours,
510
+ // compare base poly normal and contour normal to detect if we need to reverse the face winding
511
+ if(curmesh.mVertcnt.size() > 0) {
512
+ IfcVector3 basePolyNormal = TempMesh::ComputePolygonNormal(curmesh.mVerts.data(), curmesh.mVertcnt.front());
513
+ -
514
+ +
515
+ std::vector<IfcVector3> worldSpaceContourVtx(it->contour.size());
516
+ -
517
+ +
518
+ for(size_t a = 0; a < it->contour.size(); ++a)
519
+ worldSpaceContourVtx[a] = minv * IfcVector3(it->contour[a].x, it->contour[a].y, 0.0);
520
+ -
521
+ +
522
+ IfcVector3 contourNormal = TempMesh::ComputePolygonNormal(worldSpaceContourVtx.data(), worldSpaceContourVtx.size());
523
+ -
524
+ +
525
+ reverseCountourFaces = (contourNormal * basePolyNormal) > 0.0;
526
+ }
527
+
528
+ diff --git a/code/Importer/STEPParser/STEPFileEncoding.cpp b/code/Importer/STEPParser/STEPFileEncoding.cpp
529
+ index 101dcdf..3f12403 100644
530
+ --- a/code/Importer/STEPParser/STEPFileEncoding.cpp
531
+ +++ b/code/Importer/STEPParser/STEPFileEncoding.cpp
532
+ @@ -48,7 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
533
+ #ifdef ASSIMP_USE_HUNTER
534
+ # include <utf8/utf8.h>
535
+ #else
536
+ -# include <contrib/utf8cpp/source/utf8.h>
537
+ +# include <utf8.h>
538
+ #endif
539
+
540
+ #include <memory>
541
+ diff --git a/code/MMD/MMDPmxParser.cpp b/code/MMD/MMDPmxParser.cpp
542
+ index 80f0986..47725e2 100644
543
+ --- a/code/MMD/MMDPmxParser.cpp
544
+ +++ b/code/MMD/MMDPmxParser.cpp
545
+ @@ -45,7 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
546
+ #ifdef ASSIMP_USE_HUNTER
547
+ # include <utf8/utf8.h>
548
+ #else
549
+ -# include "../contrib/utf8cpp/source/utf8.h"
550
+ +# include <utf8.h>
551
+ #endif
552
+ #include <assimp/Exceptional.h>
553
+
554
+ @@ -102,7 +102,7 @@ namespace pmx
555
+ const unsigned int targetSize = size * 3; // enough to encode
556
+ char *targetStart = new char[targetSize];
557
+ std::memset(targetStart, 0, targetSize * sizeof(char));
558
+ -
559
+ +
560
+ utf8::utf16to8( sourceStart, sourceStart + size/2, targetStart );
561
+
562
+ std::string result(targetStart);
563
+ diff --git a/code/SIB/SIBImporter.cpp b/code/SIB/SIBImporter.cpp
564
+ index 20cdc80..46e9a32 100644
565
+ --- a/code/SIB/SIBImporter.cpp
566
+ +++ b/code/SIB/SIBImporter.cpp
567
+ @@ -63,7 +63,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
568
+ # include <utf8/utf8.h>
569
+ #else
570
+ //# include "../contrib/ConvertUTF/ConvertUTF.h"
571
+ -# include "../contrib/utf8cpp/source/utf8.h"
572
+ +# include <utf8.h>
573
+ #endif
574
+ #include <assimp/IOSystem.hpp>
575
+ #include <assimp/DefaultLogger.hpp>
576
+ @@ -90,10 +90,10 @@ struct SIBChunk {
577
+ uint32_t Size;
578
+ } PACK_STRUCT;
579
+
580
+ -enum {
581
+ - POS,
582
+ - NRM,
583
+ - UV,
584
+ +enum {
585
+ + POS,
586
+ + NRM,
587
+ + UV,
588
+ N
589
+ };
590
+
591
+ diff --git a/code/X3D/FIReader.cpp b/code/X3D/FIReader.cpp
592
+ index 9bb2c69..525a084 100644
593
+ --- a/code/X3D/FIReader.cpp
594
+ +++ b/code/X3D/FIReader.cpp
595
+ @@ -63,7 +63,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
596
+ #ifdef ASSIMP_USE_HUNTER
597
+ # include <utf8/utf8.h>
598
+ #else
599
+ -# include "../contrib/utf8cpp/source/utf8.h"
600
+ +# include <utf8.h>
601
+ #endif
602
+ #include <assimp/fast_atof.h>
603
+ #include <stack>
604
+ diff --git a/contrib/clipper/clipper.hpp b/contrib/clipper/clipper.hpp
605
+ index 7cdac6c..2728425 100644
606
+ --- a/contrib/clipper/clipper.hpp
607
+ +++ b/contrib/clipper/clipper.hpp
608
+ @@ -302,5 +302,3 @@ class clipperException : public std::exception
609
+ } //ClipperLib namespace
610
+
611
+ #endif //clipper_hpp
612
+ -
613
+ -
614
+ diff --git a/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp b/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp
615
+ index 8d25aaa..e4bc306 100644
616
+ --- a/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp
617
+ +++ b/samples/SimpleTexturedOpenGL/SimpleTexturedOpenGL/src/model_loading.cpp
618
+ @@ -19,7 +19,7 @@
619
+ #include <GL/glu.h>
620
+
621
+ #define STB_IMAGE_IMPLEMENTATION
622
+ -#include "contrib/stb_image/stb_image.h"
623
+ +#include <stb_image.h>
624
+
625
+ #include <fstream>
626
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/irrlicht.patch ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
2
+ index f5553e5..5cffa0c 100644
3
+ --- a/code/CMakeLists.txt
4
+ +++ b/code/CMakeLists.txt
5
+ @@ -862,7 +862,7 @@ SET( Extra_SRCS
6
+ SOURCE_GROUP( Extra FILES ${Extra_SRCS})
7
+
8
+ # irrXML
9
+ - find_package(irrXML CONFIG REQUIRED)
10
+ + find_package(irrlicht CONFIG REQUIRED)
11
+
12
+ # polyclipping
13
+ find_package(polyclipping CONFIG REQUIRED)
14
+ @@ -1033,7 +1033,7 @@ TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
15
+
16
+ TARGET_LINK_LIBRARIES(assimp
17
+ polyclipping::polyclipping
18
+ - irrXML::irrXML
19
+ + Irrlicht
20
+ minizip::minizip
21
+ ZLIB::ZLIB
22
+ kubazip::kubazip
23
+ diff --git a/code/X3D/FIReader.cpp b/code/X3D/FIReader.cpp
24
+ index 525a084..0cbca48 100644
25
+ --- a/code/X3D/FIReader.cpp
26
+ +++ b/code/X3D/FIReader.cpp
27
+ @@ -654,8 +654,8 @@ public:
28
+ return currentNodeType;
29
+ }
30
+
31
+ - virtual int getAttributeCount() const /*override*/ {
32
+ - return static_cast<int>(attributes.size());
33
+ + virtual unsigned int getAttributeCount() const /*override*/ {
34
+ + return static_cast<unsigned int>(attributes.size());
35
+ }
36
+
37
+ virtual const char* getAttributeName(int idx) const /*override*/ {
38
+ @@ -1733,7 +1733,7 @@ public:
39
+ return reader->getNodeType();
40
+ }
41
+
42
+ - virtual int getAttributeCount() const /*override*/ {
43
+ + virtual unsigned int getAttributeCount() const /*override*/ {
44
+ return reader->getAttributeCount();
45
+ }
46
+
47
+ diff --git a/include/assimp/irrXMLWrapper.h b/include/assimp/irrXMLWrapper.h
48
+ index 77cfd5e..ba584a0 100644
49
+ --- a/include/assimp/irrXMLWrapper.h
50
+ +++ b/include/assimp/irrXMLWrapper.h
51
+ @@ -133,8 +133,8 @@ public:
52
+
53
+ // ----------------------------------------------------------------------------------
54
+ //! Returns size of file in bytes
55
+ - virtual int getSize() {
56
+ - return (int)data.size();
57
+ + virtual long getSize() const override {
58
+ + return (long)data.size();
59
+ }
60
+
61
+ private:
third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/portfile.cmake ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO assimp/assimp
4
+ REF 8f0c6b04b2257a520aaab38421b2e090204b69df # v5.0.1
5
+ SHA512 59b213428e2f7494cb5da423e6b2d51556318f948b00cea420090d74d4f5f0f8970d38dba70cd47b2ef35a1f57f9e15df8597411b6cd8732b233395080147c0f
6
+ HEAD_REF master
7
+ PATCHES
8
+ build_fixes.patch
9
+ irrlicht.patch
10
+ )
11
+
12
+ file(REMOVE ${SOURCE_PATH}/cmake-modules/FindZLIB.cmake)
13
+ file(REMOVE ${SOURCE_PATH}/cmake-modules/FindIrrXML.cmake)
14
+ #file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/clipper) # https://github.com/assimp/assimp/issues/788
15
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/poly2tri)
16
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/zlib)
17
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/gtest)
18
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/irrXML)
19
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/rapidjson)
20
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/stb_image)
21
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/zip)
22
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/unzip)
23
+ file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/utf8cpp)
24
+ #file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/Open3DGC) #TODO
25
+ #file(REMOVE_RECURSE ${SOURCE_PATH}/contrib/openddlparser) #TODO
26
+
27
+ set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
28
+ set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
29
+
30
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ASSIMP_BUILD_SHARED_LIBS)
31
+
32
+ vcpkg_configure_cmake(
33
+ SOURCE_PATH ${SOURCE_PATH}
34
+ PREFER_NINJA
35
+ OPTIONS -DASSIMP_BUILD_TESTS=OFF
36
+ -DASSIMP_BUILD_ASSIMP_VIEW=OFF
37
+ -DASSIMP_BUILD_ZLIB=OFF
38
+ -DASSIMP_BUILD_SHARED_LIBS=${ASSIMP_BUILD_SHARED_LIBS}
39
+ -DASSIMP_BUILD_ASSIMP_TOOLS=OFF
40
+ -DASSIMP_INSTALL_PDB=OFF
41
+ -DSYSTEM_IRRXML=ON
42
+ -DIGNORE_GIT_HASH=ON
43
+ )
44
+
45
+ vcpkg_install_cmake()
46
+
47
+ if(VCPKG_TARGET_IS_WINDOWS)
48
+ set(VCVER vc140 vc141 vc142 )
49
+ set(CRT mt md)
50
+ set(DBG_NAMES)
51
+ set(REL_NAMES)
52
+ foreach(_ver IN LISTS VCVER)
53
+ foreach(_crt IN LISTS CRT)
54
+ list(APPEND DBG_NAMES assimp-${_ver}-${_crt}d)
55
+ list(APPEND REL_NAMES assimp-${_ver}-${_crt})
56
+ endforeach()
57
+ endforeach()
58
+ endif()
59
+
60
+ find_library(ASSIMP_REL NAMES assimp ${REL_NAMES} PATHS "${CURRENT_PACKAGES_DIR}/lib" NO_DEFAULT_PATH)
61
+ find_library(ASSIMP_DBG NAMES assimp assimpd ${DBG_NAMES} PATHS "${CURRENT_PACKAGES_DIR}/debug/lib" NO_DEFAULT_PATH)
62
+ if(ASSIMP_REL)
63
+ get_filename_component(ASSIMP_NAME_REL "${ASSIMP_REL}" NAME_WLE)
64
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/assimp.pc" "-lassimp" "-l${ASSIMP_NAME_REL}")
65
+ endif()
66
+ if(ASSIMP_DBG)
67
+ get_filename_component(ASSIMP_NAME_DBG "${ASSIMP_DBG}" NAME_WLE)
68
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/assimp.pc" "-lassimp" "-l${ASSIMP_NAME_DBG}")
69
+ endif()
70
+
71
+ vcpkg_fixup_cmake_targets()
72
+ vcpkg_fixup_pkgconfig() # Probably requires more fixing for static builds. See qt5-3d and the config changes below
73
+ vcpkg_copy_pdbs()
74
+
75
+ file(READ ${CURRENT_PACKAGES_DIR}/share/assimp/assimpConfig.cmake ASSIMP_CONFIG)
76
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/assimp/assimpConfig.cmake "
77
+ include(CMakeFindDependencyMacro)
78
+ find_dependency(ZLIB)
79
+ find_dependency(irrlicht CONFIG)
80
+ find_dependency(polyclipping CONFIG)
81
+ find_dependency(minizip CONFIG)
82
+ find_dependency(kubazip CONFIG)
83
+ find_dependency(poly2tri CONFIG)
84
+ find_dependency(utf8cpp CONFIG)
85
+ ${ASSIMP_CONFIG}")
86
+
87
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
88
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
89
+
90
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/assimp/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "assimp",
3
+ "version-string": "5.0.1",
4
+ "port-version": 5,
5
+ "description": "The Open Asset import library",
6
+ "homepage": "https://github.com/assimp/assimp",
7
+ "dependencies": [
8
+ "irrlicht",
9
+ "kubazip",
10
+ "minizip",
11
+ "poly2tri",
12
+ "polyclipping",
13
+ "rapidjson",
14
+ "stb",
15
+ "utfcpp",
16
+ "zlib"
17
+ ]
18
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asynch/portfile.cmake ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO naasking/async.h
4
+ REF 080cbb257ab60ad06008c574d7feb94f8478efdd #Commits on Sep 21, 2019
5
+ SHA512 4fe0229ffd8b3c6438294a419ccb213b4d28a0a04d834406b67120e9bc90d339ec91f3b3eb52d4e27c1f12add41e9347bffbea47868b0d7a1da40f784d113c71
6
+ HEAD_REF master
7
+ )
8
+
9
+ # Copy the single reusable library header
10
+ file(COPY ${SOURCE_PATH}/async/async.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
11
+
12
+ # Handle copyright
13
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asynch/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "asynch",
3
+ "version-string": "2019-09-21",
4
+ "port-version": 2,
5
+ "description": "Async.h - asynchronous, stackless subroutines.",
6
+ "homepage": "https://github.com/naasking/async.h"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asyncplusplus/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 Amanieu/asyncplusplus
6
+ REF 172ca3f8e0df1b3f7f5ee8b8244e4ac67258b0d8 # v1.1
7
+ SHA512 fd95b3349ceed4cab5cb0e146d2ccfe77c85318303015cf513037fc69c1ade7cfdb3dc81de8a90846c4387c5e31f5a70a64da770547c201dfe24d2c181be1933
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+
18
+ file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/Async++.cmake ${CURRENT_PACKAGES_DIR}/cmake/Async++Targets.cmake)
19
+
20
+ vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/async++)
21
+
22
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/async++/Async++Targets.cmake ${CURRENT_PACKAGES_DIR}/share/async++/Async++.cmake)
23
+
24
+ file(READ ${CURRENT_PACKAGES_DIR}/share/async++/Async++Config.cmake _contents)
25
+ file(WRITE ${CURRENT_PACKAGES_DIR}/share/async++/Async++Config.cmake "include(CMakeFindDependencyMacro)\n${_contents}")
26
+
27
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
28
+
29
+ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/asyncplusplus)
30
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/asyncplusplus/LICENSE ${CURRENT_PACKAGES_DIR}/share/asyncplusplus/copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/asyncplusplus/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "asyncplusplus",
3
+ "version-string": "1.1",
4
+ "port-version": 1,
5
+ "description": "Async++ is a lightweight concurrency framework for C++11",
6
+ "supports": "!uwp"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atk/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
2
+
3
+ set(ATK_VERSION 2.36.0)
4
+
5
+ vcpkg_download_distfile(ARCHIVE
6
+ URLS "https://ftp.gnome.org/pub/GNOME/sources/atk/2.36/atk-${ATK_VERSION}.tar.xz"
7
+ FILENAME "atk-${ATK_VERSION}.tar.xz"
8
+ SHA512 d0f18204eaf96511e8448e3dfbc4b6953a7cf8b816151fb7caf5592cf578572b1cdb16836fe2157b11e3ad018ef171f1ca1bfdf255bb31bb455716d7519fd634
9
+ )
10
+
11
+ vcpkg_extract_source_archive_ex(
12
+ OUT_SOURCE_PATH SOURCE_PATH
13
+ ARCHIVE ${ARCHIVE}
14
+ PATCHES
15
+ )
16
+
17
+ vcpkg_configure_meson(
18
+ SOURCE_PATH ${SOURCE_PATH}
19
+ OPTIONS -Dintrospection=false
20
+ ADDITIONAL_NATIVE_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
21
+ glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
22
+ ADDITIONAL_CROSS_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
23
+ glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
24
+ )
25
+ vcpkg_install_meson()
26
+
27
+ vcpkg_copy_pdbs()
28
+
29
+ vcpkg_fixup_pkgconfig()
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
31
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atk/vcpkg.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "atk",
3
+ "version": "2.36.0",
4
+ "port-version": 2,
5
+ "description": "GNOME Accessibility Toolkit",
6
+ "homepage": "https://developer.gnome.org/atk/",
7
+ "supports": "!arm",
8
+ "dependencies": [
9
+ "gettext",
10
+ "glib",
11
+ {
12
+ "name": "glib",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-tool-meson",
17
+ "host": true
18
+ }
19
+ ]
20
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atkmm/COPYING ADDED
@@ -0,0 +1,510 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ GNU LESSER GENERAL PUBLIC LICENSE
3
+ Version 2.1, February 1999
4
+
5
+ Copyright (C) 1991, 1999 Free Software Foundation, Inc.
6
+ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
7
+ Everyone is permitted to copy and distribute verbatim copies
8
+ of this license document, but changing it is not allowed.
9
+
10
+ [This is the first released version of the Lesser GPL. It also counts
11
+ as the successor of the GNU Library Public License, version 2, hence
12
+ the version number 2.1.]
13
+
14
+ Preamble
15
+
16
+ The licenses for most software are designed to take away your
17
+ freedom to share and change it. By contrast, the GNU General Public
18
+ Licenses are intended to guarantee your freedom to share and change
19
+ free software--to make sure the software is free for all its users.
20
+
21
+ This license, the Lesser General Public License, applies to some
22
+ specially designated software packages--typically libraries--of the
23
+ Free Software Foundation and other authors who decide to use it. You
24
+ can use it too, but we suggest you first think carefully about whether
25
+ this license or the ordinary General Public License is the better
26
+ strategy to use in any particular case, based on the explanations
27
+ below.
28
+
29
+ When we speak of free software, we are referring to freedom of use,
30
+ not price. Our General Public Licenses are designed to make sure that
31
+ you have the freedom to distribute copies of free software (and charge
32
+ for this service if you wish); that you receive source code or can get
33
+ it if you want it; that you can change the software and use pieces of
34
+ it in new free programs; and that you are informed that you can do
35
+ these things.
36
+
37
+ To protect your rights, we need to make restrictions that forbid
38
+ distributors to deny you these rights or to ask you to surrender these
39
+ rights. These restrictions translate to certain responsibilities for
40
+ you if you distribute copies of the library or if you modify it.
41
+
42
+ For example, if you distribute copies of the library, whether gratis
43
+ or for a fee, you must give the recipients all the rights that we gave
44
+ you. You must make sure that they, too, receive or can get the source
45
+ code. If you link other code with the library, you must provide
46
+ complete object files to the recipients, so that they can relink them
47
+ with the library after making changes to the library and recompiling
48
+ it. And you must show them these terms so they know their rights.
49
+
50
+ We protect your rights with a two-step method: (1) we copyright the
51
+ library, and (2) we offer you this license, which gives you legal
52
+ permission to copy, distribute and/or modify the library.
53
+
54
+ To protect each distributor, we want to make it very clear that
55
+ there is no warranty for the free library. Also, if the library is
56
+ modified by someone else and passed on, the recipients should know
57
+ that what they have is not the original version, so that the original
58
+ author's reputation will not be affected by problems that might be
59
+ introduced by others.
60
+
61
+ Finally, software patents pose a constant threat to the existence of
62
+ any free program. We wish to make sure that a company cannot
63
+ effectively restrict the users of a free program by obtaining a
64
+ restrictive license from a patent holder. Therefore, we insist that
65
+ any patent license obtained for a version of the library must be
66
+ consistent with the full freedom of use specified in this license.
67
+
68
+ Most GNU software, including some libraries, is covered by the
69
+ ordinary GNU General Public License. This license, the GNU Lesser
70
+ General Public License, applies to certain designated libraries, and
71
+ is quite different from the ordinary General Public License. We use
72
+ this license for certain libraries in order to permit linking those
73
+ libraries into non-free programs.
74
+
75
+ When a program is linked with a library, whether statically or using
76
+ a shared library, the combination of the two is legally speaking a
77
+ combined work, a derivative of the original library. The ordinary
78
+ General Public License therefore permits such linking only if the
79
+ entire combination fits its criteria of freedom. The Lesser General
80
+ Public License permits more lax criteria for linking other code with
81
+ the library.
82
+
83
+ We call this license the "Lesser" General Public License because it
84
+ does Less to protect the user's freedom than the ordinary General
85
+ Public License. It also provides other free software developers Less
86
+ of an advantage over competing non-free programs. These disadvantages
87
+ are the reason we use the ordinary General Public License for many
88
+ libraries. However, the Lesser license provides advantages in certain
89
+ special circumstances.
90
+
91
+ For example, on rare occasions, there may be a special need to
92
+ encourage the widest possible use of a certain library, so that it
93
+ becomes a de-facto standard. To achieve this, non-free programs must
94
+ be allowed to use the library. A more frequent case is that a free
95
+ library does the same job as widely used non-free libraries. In this
96
+ case, there is little to gain by limiting the free library to free
97
+ software only, so we use the Lesser General Public License.
98
+
99
+ In other cases, permission to use a particular library in non-free
100
+ programs enables a greater number of people to use a large body of
101
+ free software. For example, permission to use the GNU C Library in
102
+ non-free programs enables many more people to use the whole GNU
103
+ operating system, as well as its variant, the GNU/Linux operating
104
+ system.
105
+
106
+ Although the Lesser General Public License is Less protective of the
107
+ users' freedom, it does ensure that the user of a program that is
108
+ linked with the Library has the freedom and the wherewithal to run
109
+ that program using a modified version of the Library.
110
+
111
+ The precise terms and conditions for copying, distribution and
112
+ modification follow. Pay close attention to the difference between a
113
+ "work based on the library" and a "work that uses the library". The
114
+ former contains code derived from the library, whereas the latter must
115
+ be combined with the library in order to run.
116
+
117
+ GNU LESSER GENERAL PUBLIC LICENSE
118
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
119
+
120
+ 0. This License Agreement applies to any software library or other
121
+ program which contains a notice placed by the copyright holder or
122
+ other authorized party saying it may be distributed under the terms of
123
+ this Lesser General Public License (also called "this License").
124
+ Each licensee is addressed as "you".
125
+
126
+ A "library" means a collection of software functions and/or data
127
+ prepared so as to be conveniently linked with application programs
128
+ (which use some of those functions and data) to form executables.
129
+
130
+ The "Library", below, refers to any such software library or work
131
+ which has been distributed under these terms. A "work based on the
132
+ Library" means either the Library or any derivative work under
133
+ copyright law: that is to say, a work containing the Library or a
134
+ portion of it, either verbatim or with modifications and/or translated
135
+ straightforwardly into another language. (Hereinafter, translation is
136
+ included without limitation in the term "modification".)
137
+
138
+ "Source code" for a work means the preferred form of the work for
139
+ making modifications to it. For a library, complete source code means
140
+ all the source code for all modules it contains, plus any associated
141
+ interface definition files, plus the scripts used to control
142
+ compilation and installation of the library.
143
+
144
+ Activities other than copying, distribution and modification are not
145
+ covered by this License; they are outside its scope. The act of
146
+ running a program using the Library is not restricted, and output from
147
+ such a program is covered only if its contents constitute a work based
148
+ on the Library (independent of the use of the Library in a tool for
149
+ writing it). Whether that is true depends on what the Library does
150
+ and what the program that uses the Library does.
151
+
152
+ 1. You may copy and distribute verbatim copies of the Library's
153
+ complete source code as you receive it, in any medium, provided that
154
+ you conspicuously and appropriately publish on each copy an
155
+ appropriate copyright notice and disclaimer of warranty; keep intact
156
+ all the notices that refer to this License and to the absence of any
157
+ warranty; and distribute a copy of this License along with the
158
+ Library.
159
+
160
+ You may charge a fee for the physical act of transferring a copy,
161
+ and you may at your option offer warranty protection in exchange for a
162
+ fee.
163
+
164
+ 2. You may modify your copy or copies of the Library or any portion
165
+ of it, thus forming a work based on the Library, and copy and
166
+ distribute such modifications or work under the terms of Section 1
167
+ above, provided that you also meet all of these conditions:
168
+
169
+ a) The modified work must itself be a software library.
170
+
171
+ b) You must cause the files modified to carry prominent notices
172
+ stating that you changed the files and the date of any change.
173
+
174
+ c) You must cause the whole of the work to be licensed at no
175
+ charge to all third parties under the terms of this License.
176
+
177
+ d) If a facility in the modified Library refers to a function or a
178
+ table of data to be supplied by an application program that uses
179
+ the facility, other than as an argument passed when the facility
180
+ is invoked, then you must make a good faith effort to ensure that,
181
+ in the event an application does not supply such function or
182
+ table, the facility still operates, and performs whatever part of
183
+ its purpose remains meaningful.
184
+
185
+ (For example, a function in a library to compute square roots has
186
+ a purpose that is entirely well-defined independent of the
187
+ application. Therefore, Subsection 2d requires that any
188
+ application-supplied function or table used by this function must
189
+ be optional: if the application does not supply it, the square
190
+ root function must still compute square roots.)
191
+
192
+ These requirements apply to the modified work as a whole. If
193
+ identifiable sections of that work are not derived from the Library,
194
+ and can be reasonably considered independent and separate works in
195
+ themselves, then this License, and its terms, do not apply to those
196
+ sections when you distribute them as separate works. But when you
197
+ distribute the same sections as part of a whole which is a work based
198
+ on the Library, the distribution of the whole must be on the terms of
199
+ this License, whose permissions for other licensees extend to the
200
+ entire whole, and thus to each and every part regardless of who wrote
201
+ it.
202
+
203
+ Thus, it is not the intent of this section to claim rights or contest
204
+ your rights to work written entirely by you; rather, the intent is to
205
+ exercise the right to control the distribution of derivative or
206
+ collective works based on the Library.
207
+
208
+ In addition, mere aggregation of another work not based on the Library
209
+ with the Library (or with a work based on the Library) on a volume of
210
+ a storage or distribution medium does not bring the other work under
211
+ the scope of this License.
212
+
213
+ 3. You may opt to apply the terms of the ordinary GNU General Public
214
+ License instead of this License to a given copy of the Library. To do
215
+ this, you must alter all the notices that refer to this License, so
216
+ that they refer to the ordinary GNU General Public License, version 2,
217
+ instead of to this License. (If a newer version than version 2 of the
218
+ ordinary GNU General Public License has appeared, then you can specify
219
+ that version instead if you wish.) Do not make any other change in
220
+ these notices.
221
+
222
+ Once this change is made in a given copy, it is irreversible for
223
+ that copy, so the ordinary GNU General Public License applies to all
224
+ subsequent copies and derivative works made from that copy.
225
+
226
+ This option is useful when you wish to copy part of the code of
227
+ the Library into a program that is not a library.
228
+
229
+ 4. You may copy and distribute the Library (or a portion or
230
+ derivative of it, under Section 2) in object code or executable form
231
+ under the terms of Sections 1 and 2 above provided that you accompany
232
+ it with the complete corresponding machine-readable source code, which
233
+ must be distributed under the terms of Sections 1 and 2 above on a
234
+ medium customarily used for software interchange.
235
+
236
+ If distribution of object code is made by offering access to copy
237
+ from a designated place, then offering equivalent access to copy the
238
+ source code from the same place satisfies the requirement to
239
+ distribute the source code, even though third parties are not
240
+ compelled to copy the source along with the object code.
241
+
242
+ 5. A program that contains no derivative of any portion of the
243
+ Library, but is designed to work with the Library by being compiled or
244
+ linked with it, is called a "work that uses the Library". Such a
245
+ work, in isolation, is not a derivative work of the Library, and
246
+ therefore falls outside the scope of this License.
247
+
248
+ However, linking a "work that uses the Library" with the Library
249
+ creates an executable that is a derivative of the Library (because it
250
+ contains portions of the Library), rather than a "work that uses the
251
+ library". The executable is therefore covered by this License.
252
+ Section 6 states terms for distribution of such executables.
253
+
254
+ When a "work that uses the Library" uses material from a header file
255
+ that is part of the Library, the object code for the work may be a
256
+ derivative work of the Library even though the source code is not.
257
+ Whether this is true is especially significant if the work can be
258
+ linked without the Library, or if the work is itself a library. The
259
+ threshold for this to be true is not precisely defined by law.
260
+
261
+ If such an object file uses only numerical parameters, data
262
+ structure layouts and accessors, and small macros and small inline
263
+ functions (ten lines or less in length), then the use of the object
264
+ file is unrestricted, regardless of whether it is legally a derivative
265
+ work. (Executables containing this object code plus portions of the
266
+ Library will still fall under Section 6.)
267
+
268
+ Otherwise, if the work is a derivative of the Library, you may
269
+ distribute the object code for the work under the terms of Section 6.
270
+ Any executables containing that work also fall under Section 6,
271
+ whether or not they are linked directly with the Library itself.
272
+
273
+ 6. As an exception to the Sections above, you may also combine or
274
+ link a "work that uses the Library" with the Library to produce a
275
+ work containing portions of the Library, and distribute that work
276
+ under terms of your choice, provided that the terms permit
277
+ modification of the work for the customer's own use and reverse
278
+ engineering for debugging such modifications.
279
+
280
+ You must give prominent notice with each copy of the work that the
281
+ Library is used in it and that the Library and its use are covered by
282
+ this License. You must supply a copy of this License. If the work
283
+ during execution displays copyright notices, you must include the
284
+ copyright notice for the Library among them, as well as a reference
285
+ directing the user to the copy of this License. Also, you must do one
286
+ of these things:
287
+
288
+ a) Accompany the work with the complete corresponding
289
+ machine-readable source code for the Library including whatever
290
+ changes were used in the work (which must be distributed under
291
+ Sections 1 and 2 above); and, if the work is an executable linked
292
+ with the Library, with the complete machine-readable "work that
293
+ uses the Library", as object code and/or source code, so that the
294
+ user can modify the Library and then relink to produce a modified
295
+ executable containing the modified Library. (It is understood
296
+ that the user who changes the contents of definitions files in the
297
+ Library will not necessarily be able to recompile the application
298
+ to use the modified definitions.)
299
+
300
+ b) Use a suitable shared library mechanism for linking with the
301
+ Library. A suitable mechanism is one that (1) uses at run time a
302
+ copy of the library already present on the user's computer system,
303
+ rather than copying library functions into the executable, and (2)
304
+ will operate properly with a modified version of the library, if
305
+ the user installs one, as long as the modified version is
306
+ interface-compatible with the version that the work was made with.
307
+
308
+ c) Accompany the work with a written offer, valid for at least
309
+ three years, to give the same user the materials specified in
310
+ Subsection 6a, above, for a charge no more than the cost of
311
+ performing this distribution.
312
+
313
+ d) If distribution of the work is made by offering access to copy
314
+ from a designated place, offer equivalent access to copy the above
315
+ specified materials from the same place.
316
+
317
+ e) Verify that the user has already received a copy of these
318
+ materials or that you have already sent this user a copy.
319
+
320
+ For an executable, the required form of the "work that uses the
321
+ Library" must include any data and utility programs needed for
322
+ reproducing the executable from it. However, as a special exception,
323
+ the materials to be distributed need not include anything that is
324
+ normally distributed (in either source or binary form) with the major
325
+ components (compiler, kernel, and so on) of the operating system on
326
+ which the executable runs, unless that component itself accompanies
327
+ the executable.
328
+
329
+ It may happen that this requirement contradicts the license
330
+ restrictions of other proprietary libraries that do not normally
331
+ accompany the operating system. Such a contradiction means you cannot
332
+ use both them and the Library together in an executable that you
333
+ distribute.
334
+
335
+ 7. You may place library facilities that are a work based on the
336
+ Library side-by-side in a single library together with other library
337
+ facilities not covered by this License, and distribute such a combined
338
+ library, provided that the separate distribution of the work based on
339
+ the Library and of the other library facilities is otherwise
340
+ permitted, and provided that you do these two things:
341
+
342
+ a) Accompany the combined library with a copy of the same work
343
+ based on the Library, uncombined with any other library
344
+ facilities. This must be distributed under the terms of the
345
+ Sections above.
346
+
347
+ b) Give prominent notice with the combined library of the fact
348
+ that part of it is a work based on the Library, and explaining
349
+ where to find the accompanying uncombined form of the same work.
350
+
351
+ 8. You may not copy, modify, sublicense, link with, or distribute
352
+ the Library except as expressly provided under this License. Any
353
+ attempt otherwise to copy, modify, sublicense, link with, or
354
+ distribute the Library is void, and will automatically terminate your
355
+ rights under this License. However, parties who have received copies,
356
+ or rights, from you under this License will not have their licenses
357
+ terminated so long as such parties remain in full compliance.
358
+
359
+ 9. You are not required to accept this License, since you have not
360
+ signed it. However, nothing else grants you permission to modify or
361
+ distribute the Library or its derivative works. These actions are
362
+ prohibited by law if you do not accept this License. Therefore, by
363
+ modifying or distributing the Library (or any work based on the
364
+ Library), you indicate your acceptance of this License to do so, and
365
+ all its terms and conditions for copying, distributing or modifying
366
+ the Library or works based on it.
367
+
368
+ 10. Each time you redistribute the Library (or any work based on the
369
+ Library), the recipient automatically receives a license from the
370
+ original licensor to copy, distribute, link with or modify the Library
371
+ subject to these terms and conditions. You may not impose any further
372
+ restrictions on the recipients' exercise of the rights granted herein.
373
+ You are not responsible for enforcing compliance by third parties with
374
+ this License.
375
+
376
+ 11. If, as a consequence of a court judgment or allegation of patent
377
+ infringement or for any other reason (not limited to patent issues),
378
+ conditions are imposed on you (whether by court order, agreement or
379
+ otherwise) that contradict the conditions of this License, they do not
380
+ excuse you from the conditions of this License. If you cannot
381
+ distribute so as to satisfy simultaneously your obligations under this
382
+ License and any other pertinent obligations, then as a consequence you
383
+ may not distribute the Library at all. For example, if a patent
384
+ license would not permit royalty-free redistribution of the Library by
385
+ all those who receive copies directly or indirectly through you, then
386
+ the only way you could satisfy both it and this License would be to
387
+ refrain entirely from distribution of the Library.
388
+
389
+ If any portion of this section is held invalid or unenforceable under
390
+ any particular circumstance, the balance of the section is intended to
391
+ apply, and the section as a whole is intended to apply in other
392
+ circumstances.
393
+
394
+ It is not the purpose of this section to induce you to infringe any
395
+ patents or other property right claims or to contest validity of any
396
+ such claims; this section has the sole purpose of protecting the
397
+ integrity of the free software distribution system which is
398
+ implemented by public license practices. Many people have made
399
+ generous contributions to the wide range of software distributed
400
+ through that system in reliance on consistent application of that
401
+ system; it is up to the author/donor to decide if he or she is willing
402
+ to distribute software through any other system and a licensee cannot
403
+ impose that choice.
404
+
405
+ This section is intended to make thoroughly clear what is believed to
406
+ be a consequence of the rest of this License.
407
+
408
+ 12. If the distribution and/or use of the Library is restricted in
409
+ certain countries either by patents or by copyrighted interfaces, the
410
+ original copyright holder who places the Library under this License
411
+ may add an explicit geographical distribution limitation excluding those
412
+ countries, so that distribution is permitted only in or among
413
+ countries not thus excluded. In such case, this License incorporates
414
+ the limitation as if written in the body of this License.
415
+
416
+ 13. The Free Software Foundation may publish revised and/or new
417
+ versions of the Lesser General Public License from time to time.
418
+ Such new versions will be similar in spirit to the present version,
419
+ but may differ in detail to address new problems or concerns.
420
+
421
+ Each version is given a distinguishing version number. If the Library
422
+ specifies a version number of this License which applies to it and
423
+ "any later version", you have the option of following the terms and
424
+ conditions either of that version or of any later version published by
425
+ the Free Software Foundation. If the Library does not specify a
426
+ license version number, you may choose any version ever published by
427
+ the Free Software Foundation.
428
+
429
+ 14. If you wish to incorporate parts of the Library into other free
430
+ programs whose distribution conditions are incompatible with these,
431
+ write to the author to ask for permission. For software which is
432
+ copyrighted by the Free Software Foundation, write to the Free
433
+ Software Foundation; we sometimes make exceptions for this. Our
434
+ decision will be guided by the two goals of preserving the free status
435
+ of all derivatives of our free software and of promoting the sharing
436
+ and reuse of software generally.
437
+
438
+ NO WARRANTY
439
+
440
+ 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
441
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
442
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
443
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
444
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
445
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
446
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
447
+ LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
448
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
449
+
450
+ 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
451
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
452
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
453
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
454
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
455
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
456
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
457
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
458
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
459
+ DAMAGES.
460
+
461
+ END OF TERMS AND CONDITIONS
462
+
463
+ How to Apply These Terms to Your New Libraries
464
+
465
+ If you develop a new library, and you want it to be of the greatest
466
+ possible use to the public, we recommend making it free software that
467
+ everyone can redistribute and change. You can do so by permitting
468
+ redistribution under these terms (or, alternatively, under the terms
469
+ of the ordinary General Public License).
470
+
471
+ To apply these terms, attach the following notices to the library.
472
+ It is safest to attach them to the start of each source file to most
473
+ effectively convey the exclusion of warranty; and each file should
474
+ have at least the "copyright" line and a pointer to where the full
475
+ notice is found.
476
+
477
+
478
+ <one line to give the library's name and a brief idea of what it does.>
479
+ Copyright (C) <year> <name of author>
480
+
481
+ This library is free software; you can redistribute it and/or
482
+ modify it under the terms of the GNU Lesser General Public
483
+ License as published by the Free Software Foundation; either
484
+ version 2.1 of the License, or (at your option) any later version.
485
+
486
+ This library is distributed in the hope that it will be useful,
487
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
488
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
489
+ Lesser General Public License for more details.
490
+
491
+ You should have received a copy of the GNU Lesser General Public
492
+ License along with this library; if not, write to the Free Software
493
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
494
+
495
+ Also add information on how to contact you by electronic and paper mail.
496
+
497
+ You should also get your employer (if you work as a programmer) or
498
+ your school, if any, to sign a "copyright disclaimer" for the library,
499
+ if necessary. Here is a sample; alter the names:
500
+
501
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the
502
+ library `Frob' (a library for tweaking knobs) written by James
503
+ Random Hacker.
504
+
505
+ <signature of Ty Coon>, 1 April 1990
506
+ Ty Coon, President of Vice
507
+
508
+ That's all there is to it!
509
+
510
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atkmm/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if (VCPKG_TARGET_IS_WINDOWS)
2
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
3
+ endif()
4
+
5
+ vcpkg_download_distfile(ARCHIVE
6
+ URLS "https://ftp.gnome.org/pub/GNOME/sources/atkmm/2.36/atkmm-2.36.0.tar.xz"
7
+ FILENAME "atkmm-2.36.0.tar.xz"
8
+ SHA512 8527dfa50191919a7dcf6db6699767352cb0dac800d834ee39ed21694eee3136a41a7532d600b8b3c0fcea52da6129b623e8e61ada728d806aa61fdc8dc8dedf
9
+ )
10
+
11
+ vcpkg_extract_source_archive_ex(
12
+ OUT_SOURCE_PATH SOURCE_PATH
13
+ ARCHIVE ${ARCHIVE}
14
+ PATCHES
15
+ )
16
+
17
+ vcpkg_configure_meson(
18
+ SOURCE_PATH ${SOURCE_PATH}
19
+ OPTIONS
20
+ -Dbuild-documentation=false
21
+ -Dbuild-deprecated-api=true # Build deprecated API and include it in the library
22
+ -Dmsvc14x-parallel-installable=false) # Use separate DLL and LIB filenames for Visual Studio 2017 and 2019
23
+ vcpkg_install_meson()
24
+
25
+ vcpkg_fixup_pkgconfig()
26
+
27
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
28
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atkmm/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "atkmm",
3
+ "version": "2.36.0",
4
+ "port-version": 2,
5
+ "description": "atkmm is the official C++ interface for the ATK accessibility toolkit library. It may be used, for instance, by user interfaces implemented with gtkmm.",
6
+ "homepage": "https://www.gtkmm.org",
7
+ "dependencies": [
8
+ "atk",
9
+ "gettext",
10
+ "glib",
11
+ "glibmm",
12
+ {
13
+ "name": "vcpkg-tool-meson",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atlmfc/portfile.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ find_path(AFXRES_H
2
+ NAMES afxres.h
3
+ PATHS $ENV{INCLUDE}
4
+ )
5
+
6
+ if(NOT AFXRES_H)
7
+ message(FATAL_ERROR "Unable to locate 'afxres.h'. Ensure you have installed the ATL/MFC component of Visual Studio.")
8
+ endif()
9
+
10
+ SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atlmfc/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "atlmfc",
3
+ "version-string": "0",
4
+ "port-version": 1,
5
+ "description": "a stub package that ensures VS has ATL/MFC installed.",
6
+ "supports": "windows"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atomic-queue/portfile.cmake ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO max0x7ba/atomic_queue
4
+ REF 7619054490efdbfe377bd528bc09b21f5cd38a02
5
+ SHA512 0d145f461a5c978c4d6f6d8ec1f06f0c61f3d009e65eac12db806c2aa7941461f881b34b9c4dd9aeebd3206a4598e6081f89f983c389b2f5aecefefcbddd94b6
6
+ HEAD_REF master
7
+ )
8
+
9
+ file(
10
+ COPY
11
+ ${SOURCE_PATH}/include/atomic_queue/atomic_queue.h
12
+ ${SOURCE_PATH}/include/atomic_queue/atomic_queue_mutex.h
13
+ ${SOURCE_PATH}/include/atomic_queue/barrier.h
14
+ ${SOURCE_PATH}/include/atomic_queue/defs.h
15
+ ${SOURCE_PATH}/include/atomic_queue/spinlock.h
16
+ DESTINATION
17
+ ${CURRENT_PACKAGES_DIR}/include/atomic_queue
18
+ )
19
+
20
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/atomic-queue/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "atomic-queue",
3
+ "version-date": "2021-05-03",
4
+ "description": "Minimalistic header-only thread-safe ultra-low-latency multiple-producer-multiple-consumer lockless queues based on circular buffer with std::atomic.",
5
+ "homepage": "https://github.com/max0x7ba/atomic_queue"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aubio/CMakeLists.txt ADDED
@@ -0,0 +1,129 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(aubio C)
3
+
4
+ option(WITH_DEPENDENCIES "Adds extra dependencies" ON)
5
+ option(BUILD_TOOLS "Build and install tools" ON)
6
+
7
+ add_definitions(
8
+ -DHAVE_STDLIB_H=1
9
+ -DHAVE_STDIO_H=1
10
+ -DHAVE_MATH_H=1
11
+ -DHAVE_STRING_H=1
12
+ -DHAVE_LIMITS_H=1
13
+ -DHAVE_STDARG_H=1
14
+ -DHAVE_ERRNO_H=1
15
+ -DHAVE_C99_VARARGS_MACROS=1
16
+ -D_CRT_SECURE_NO_WARNINGS=1
17
+ )
18
+
19
+ if(WITH_DEPENDENCIES)
20
+ add_definitions(
21
+ -DHAVE_SNDFILE=1
22
+ -DHAVE_WAVWRITE=1
23
+ -DHAVE_WAVREAD=1
24
+ -DHAVE_LIBAV=1
25
+ -DHAVE_SWRESAMPLE=1
26
+ )
27
+ endif()
28
+
29
+ set(TOOLS_INSTALLDIR "bin" CACHE STRING "Target directory for installed tools")
30
+
31
+ if(WITH_DEPENDENCIES)
32
+ find_package(FFMPEG COMPONENTS avcodec avutil avformat swresample REQUIRED)
33
+ find_package(BZip2 REQUIRED)
34
+ find_package(LibLZMA REQUIRED)
35
+ find_package(SndFile REQUIRED)
36
+
37
+ include_directories(${LIBLZMA_INCLUDE_DIRS})
38
+ endif()
39
+
40
+ include_directories(src)
41
+
42
+ file(GLOB_RECURSE SOURCES src/*.c)
43
+
44
+ if(WIN32 AND NOT MINGW)
45
+ set_source_files_properties(src/io/sink_wavwrite.c PROPERTIES COMPILE_FLAGS /FIWinsock2.h)
46
+ endif()
47
+
48
+ add_library(aubio ${SOURCES})
49
+ if(WITH_DEPENDENCIES)
50
+ target_link_libraries(aubio PUBLIC
51
+ SndFile::sndfile
52
+ ${FFMPEG_LIBRARIES}
53
+ BZip2::BZip2
54
+ ${LIBLZMA_LIBRARIES}
55
+ )
56
+ endif()
57
+
58
+ if(WIN32)
59
+ target_link_libraries(aubio PUBLIC ws2_32)
60
+ endif()
61
+
62
+ if(BUILD_TOOLS AND WITH_DEPENDENCIES)
63
+ set(EXAMPLE_EXECS aubiomfcc aubionotes aubioonset aubiopitch aubioquiet aubiotrack)
64
+ foreach(EXAMPLE_EXEC ${EXAMPLE_EXECS})
65
+ add_executable(${EXAMPLE_EXEC} examples/${EXAMPLE_EXEC}.c examples/utils.c examples/jackio.c)
66
+ target_link_libraries(${EXAMPLE_EXEC} PRIVATE aubio)
67
+ if(WIN32)
68
+ target_compile_definitions(${EXAMPLE_EXEC} PRIVATE -DHAVE_WIN_HACKS=1)
69
+ target_link_libraries(${EXAMPLE_EXEC} PUBLIC ws2_32)
70
+ else()
71
+ target_compile_definitions(${EXAMPLE_EXEC} PRIVATE -DHAVE_UNISTD_H=1)
72
+ endif()
73
+ endforeach()
74
+ # Create and add fake config.h to avoid build errors (file is generated for
75
+ # cross-platform requirements in waf build-system)
76
+ file(WRITE "${CMAKE_BINARY_DIR}/config.h" "")
77
+ include_directories(${CMAKE_BINARY_DIR})
78
+
79
+ install(
80
+ TARGETS ${EXAMPLE_EXECS}
81
+ RUNTIME DESTINATION ${TOOLS_INSTALLDIR}
82
+ )
83
+ endif()
84
+
85
+ install(
86
+ TARGETS aubio EXPORT AubioTargets
87
+ INCLUDES DESTINATION include
88
+ RUNTIME DESTINATION bin
89
+ LIBRARY DESTINATION lib
90
+ ARCHIVE DESTINATION lib
91
+ )
92
+
93
+ install(EXPORT AubioTargets NAMESPACE Aubio:: DESTINATION share/aubio)
94
+
95
+ install(
96
+ DIRECTORY src/
97
+ DESTINATION include/aubio
98
+ FILES_MATCHING
99
+ PATTERN "*.h"
100
+ PATTERN "*_priv.h" EXCLUDE
101
+ PATTERN "config.h" EXCLUDE
102
+ )
103
+
104
+ # Create CMake configuration export file.
105
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in "@PACKAGE_INIT@\n")
106
+ if(WITH_DEPENDENCIES)
107
+ file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in "
108
+ include(CMakeFindDependencyMacro)
109
+ find_dependency(FFMPEG COMPONENTS avcodec avutil avformat swresample REQUIRED)
110
+ find_dependency(BZip2 REQUIRED)
111
+ find_dependency(LibLZMA REQUIRED)
112
+ find_dependency(SndFile REQUIRED)
113
+ ")
114
+ endif()
115
+ file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in "include(\${CMAKE_CURRENT_LIST_DIR}/AubioTargets.cmake)")
116
+
117
+ # Install CMake configuration export file.
118
+ include(CMakePackageConfigHelpers)
119
+ configure_package_config_file(
120
+ ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in
121
+ ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake
122
+ INSTALL_DESTINATION share/aubio
123
+ )
124
+ install(
125
+ FILES
126
+ ${CMAKE_BINARY_DIR}/AubioConfig.cmake
127
+ DESTINATION
128
+ share/aubio
129
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/aubio/portfile.cmake ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO aubio/aubio
6
+ REF 0.4.9
7
+ SHA512 a22c7c581ce1f428270021591649273396e6dc222b3c7b3d46f5c4abf94a98be1ab89320cdbf1b6b60d4330eef23976439e3fc9e0f8d3cdd867dac4542fa48c9
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
12
+
13
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
14
+ FEATURES
15
+ tools WITH_DEPENDENCIES
16
+ )
17
+
18
+ vcpkg_cmake_configure(
19
+ SOURCE_PATH ${SOURCE_PATH}
20
+ PREFER_NINJA
21
+ OPTIONS ${FEATURE_OPTIONS}
22
+ OPTIONS_RELEASE
23
+ -DTOOLS_INSTALLDIR=tools/aubio
24
+ -DBUILD_TOOLS=ON
25
+ OPTIONS_DEBUG
26
+ -DBUILD_TOOLS=OFF
27
+ )
28
+ vcpkg_cmake_install()
29
+
30
+ vcpkg_cmake_config_fixup()
31
+
32
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
33
+
34
+ # Handle copyright and credentials
35
+ file(COPY
36
+ ${SOURCE_PATH}/COPYING
37
+ ${SOURCE_PATH}/AUTHORS
38
+ ${SOURCE_PATH}/ChangeLog
39
+ ${SOURCE_PATH}/README.md
40
+ DESTINATION
41
+ ${CURRENT_PACKAGES_DIR}/share/${PORT})
42
+
43
+ vcpkg_copy_pdbs()
44
+ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
45
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright)