Spaces:
Sleeping
Sleeping
4f32d2a6504d5494b801abaa98040eae8479c507fe08d4f37400e204fadd4bb4
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/intelrdfpmathlib/CMakeLists.txt +289 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/intelrdfpmathlib/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/intelrdfpmathlib/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/io2d/cmake.dep.patch +62 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/io2d/portfile.cmake +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/io2d/vcpkg.json +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/CMakeLists.txt +250 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/LICENSE.txt +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/fix-encoding.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/fix-osx-compilation.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/fix-sysctl.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/portfile.cmake +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/vcpkg-cmake-wrapper.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/vcpkg.json +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrxml/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrxml/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/CMakeLists.txt +51 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/isalConfig.cmake +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/portfile.cmake +46 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/fix-depends-hdf5.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/portfile.cmake +51 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/vcpkg.json +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/x86-windows-include-stddef.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/double-conversion.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/opencl.patch +176 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/openjpeg.patch +548 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/openjpeg2.patch +58 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/portfile.cmake +206 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/rtk/already_defined.patch +100 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/rtk/unresolved.patch +213 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/use-the-lrintf-intrinsic.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/var_libraries.patch +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/vcpkg.json +119 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/wrapping.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/fix-linux.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/fix-uwp.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/msvc2013.patch +284 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/portfile.cmake +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/rename-version.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ixwebsocket/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ixwebsocket/vcpkg.json +71 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/CMakeLists.txt +33 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/jack.def +96 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/portfile.cmake +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jaeger-client-cpp/fix-CMakeLists.patch +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/jaeger-client-cpp/portfile.cmake +65 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intelrdfpmathlib/CMakeLists.txt
ADDED
@@ -0,0 +1,289 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(intelrdfpmathlib C)
|
3 |
+
|
4 |
+
set(
|
5 |
+
intelrdfpmathlib_SOURCES
|
6 |
+
float128/dpml_exception.c
|
7 |
+
float128/dpml_four_over_pi.c
|
8 |
+
float128/dpml_ux_bessel.c
|
9 |
+
float128/dpml_ux_bid.c
|
10 |
+
float128/dpml_ux_cbrt.c
|
11 |
+
float128/dpml_ux_erf.c
|
12 |
+
float128/dpml_ux_exp.c
|
13 |
+
float128/dpml_ux_int.c
|
14 |
+
float128/dpml_ux_inv_hyper.c
|
15 |
+
float128/dpml_ux_inv_trig.c
|
16 |
+
float128/dpml_ux_lgamma.c
|
17 |
+
float128/dpml_ux_log.c
|
18 |
+
float128/dpml_ux_mod.c
|
19 |
+
float128/dpml_ux_ops.c
|
20 |
+
float128/dpml_ux_ops_64.c
|
21 |
+
float128/dpml_ux_pow.c
|
22 |
+
float128/dpml_ux_powi.c
|
23 |
+
float128/dpml_ux_sqrt.c
|
24 |
+
float128/dpml_ux_trig.c
|
25 |
+
float128/sqrt_tab_t.c
|
26 |
+
src/bid128.c
|
27 |
+
src/bid128_2_str_tables.c
|
28 |
+
src/bid128_acos.c
|
29 |
+
src/bid128_acosh.c
|
30 |
+
src/bid128_add.c
|
31 |
+
src/bid128_asin.c
|
32 |
+
src/bid128_asinh.c
|
33 |
+
src/bid128_atan.c
|
34 |
+
src/bid128_atan2.c
|
35 |
+
src/bid128_atanh.c
|
36 |
+
src/bid128_cbrt.c
|
37 |
+
src/bid128_compare.c
|
38 |
+
src/bid128_cos.c
|
39 |
+
src/bid128_cosh.c
|
40 |
+
src/bid128_div.c
|
41 |
+
src/bid128_erf.c
|
42 |
+
src/bid128_erfc.c
|
43 |
+
src/bid128_exp.c
|
44 |
+
src/bid128_exp10.c
|
45 |
+
src/bid128_exp2.c
|
46 |
+
src/bid128_expm1.c
|
47 |
+
src/bid128_fdimd.c
|
48 |
+
src/bid128_fma.c
|
49 |
+
src/bid128_fmod.c
|
50 |
+
src/bid128_frexp.c
|
51 |
+
src/bid128_hypot.c
|
52 |
+
src/bid128_ldexp.c
|
53 |
+
src/bid128_lgamma.c
|
54 |
+
src/bid128_llrintd.c
|
55 |
+
src/bid128_log.c
|
56 |
+
src/bid128_log10.c
|
57 |
+
src/bid128_log1p.c
|
58 |
+
src/bid128_log2.c
|
59 |
+
src/bid128_logb.c
|
60 |
+
src/bid128_logbd.c
|
61 |
+
src/bid128_lrintd.c
|
62 |
+
src/bid128_lround.c
|
63 |
+
src/bid128_minmax.c
|
64 |
+
src/bid128_modf.c
|
65 |
+
src/bid128_mul.c
|
66 |
+
src/bid128_nearbyintd.c
|
67 |
+
src/bid128_next.c
|
68 |
+
src/bid128_nexttowardd.c
|
69 |
+
src/bid128_noncomp.c
|
70 |
+
src/bid128_pow.c
|
71 |
+
src/bid128_quantexpd.c
|
72 |
+
src/bid128_quantize.c
|
73 |
+
src/bid128_rem.c
|
74 |
+
src/bid128_round_integral.c
|
75 |
+
src/bid128_scalb.c
|
76 |
+
src/bid128_scalbl.c
|
77 |
+
src/bid128_sin.c
|
78 |
+
src/bid128_sinh.c
|
79 |
+
src/bid128_sqrt.c
|
80 |
+
src/bid128_string.c
|
81 |
+
src/bid128_tan.c
|
82 |
+
src/bid128_tanh.c
|
83 |
+
src/bid128_tgamma.c
|
84 |
+
src/bid128_to_int16.c
|
85 |
+
src/bid128_to_int32.c
|
86 |
+
src/bid128_to_int64.c
|
87 |
+
src/bid128_to_int8.c
|
88 |
+
src/bid128_to_uint16.c
|
89 |
+
src/bid128_to_uint32.c
|
90 |
+
src/bid128_to_uint64.c
|
91 |
+
src/bid128_to_uint8.c
|
92 |
+
src/bid32_acos.c
|
93 |
+
src/bid32_acosh.c
|
94 |
+
src/bid32_add.c
|
95 |
+
src/bid32_asin.c
|
96 |
+
src/bid32_asinh.c
|
97 |
+
src/bid32_atan.c
|
98 |
+
src/bid32_atan2.c
|
99 |
+
src/bid32_atanh.c
|
100 |
+
src/bid32_cbrt.c
|
101 |
+
src/bid32_compare.c
|
102 |
+
src/bid32_cos.c
|
103 |
+
src/bid32_cosh.c
|
104 |
+
src/bid32_div.c
|
105 |
+
src/bid32_erf.c
|
106 |
+
src/bid32_erfc.c
|
107 |
+
src/bid32_exp.c
|
108 |
+
src/bid32_exp10.c
|
109 |
+
src/bid32_exp2.c
|
110 |
+
src/bid32_expm1.c
|
111 |
+
src/bid32_fdimd.c
|
112 |
+
src/bid32_fma.c
|
113 |
+
src/bid32_fmod.c
|
114 |
+
src/bid32_frexp.c
|
115 |
+
src/bid32_hypot.c
|
116 |
+
src/bid32_ldexp.c
|
117 |
+
src/bid32_lgamma.c
|
118 |
+
src/bid32_llrintd.c
|
119 |
+
src/bid32_log.c
|
120 |
+
src/bid32_log10.c
|
121 |
+
src/bid32_log1p.c
|
122 |
+
src/bid32_log2.c
|
123 |
+
src/bid32_logb.c
|
124 |
+
src/bid32_logbd.c
|
125 |
+
src/bid32_lrintd.c
|
126 |
+
src/bid32_lround.c
|
127 |
+
src/bid32_minmax.c
|
128 |
+
src/bid32_modf.c
|
129 |
+
src/bid32_mul.c
|
130 |
+
src/bid32_nearbyintd.c
|
131 |
+
src/bid32_next.c
|
132 |
+
src/bid32_nexttowardd.c
|
133 |
+
src/bid32_noncomp.c
|
134 |
+
src/bid32_pow.c
|
135 |
+
src/bid32_quantexpd.c
|
136 |
+
src/bid32_quantize.c
|
137 |
+
src/bid32_rem.c
|
138 |
+
src/bid32_round_integral.c
|
139 |
+
src/bid32_scalb.c
|
140 |
+
src/bid32_scalbl.c
|
141 |
+
src/bid32_sin.c
|
142 |
+
src/bid32_sinh.c
|
143 |
+
src/bid32_sqrt.c
|
144 |
+
src/bid32_string.c
|
145 |
+
src/bid32_sub.c
|
146 |
+
src/bid32_tan.c
|
147 |
+
src/bid32_tanh.c
|
148 |
+
src/bid32_tgamma.c
|
149 |
+
src/bid32_to_bid128.c
|
150 |
+
src/bid32_to_bid64.c
|
151 |
+
src/bid32_to_int16.c
|
152 |
+
src/bid32_to_int32.c
|
153 |
+
src/bid32_to_int64.c
|
154 |
+
src/bid32_to_int8.c
|
155 |
+
src/bid32_to_uint16.c
|
156 |
+
src/bid32_to_uint32.c
|
157 |
+
src/bid32_to_uint64.c
|
158 |
+
src/bid32_to_uint8.c
|
159 |
+
src/bid64_acos.c
|
160 |
+
src/bid64_acosh.c
|
161 |
+
src/bid64_add.c
|
162 |
+
src/bid64_asin.c
|
163 |
+
src/bid64_asinh.c
|
164 |
+
src/bid64_atan.c
|
165 |
+
src/bid64_atan2.c
|
166 |
+
src/bid64_atanh.c
|
167 |
+
src/bid64_cbrt.c
|
168 |
+
src/bid64_compare.c
|
169 |
+
src/bid64_cos.c
|
170 |
+
src/bid64_cosh.c
|
171 |
+
src/bid64_div.c
|
172 |
+
src/bid64_erf.c
|
173 |
+
src/bid64_erfc.c
|
174 |
+
src/bid64_exp.c
|
175 |
+
src/bid64_exp10.c
|
176 |
+
src/bid64_exp2.c
|
177 |
+
src/bid64_expm1.c
|
178 |
+
src/bid64_fdimd.c
|
179 |
+
src/bid64_fma.c
|
180 |
+
src/bid64_fmod.c
|
181 |
+
src/bid64_frexp.c
|
182 |
+
src/bid64_hypot.c
|
183 |
+
src/bid64_ldexp.c
|
184 |
+
src/bid64_lgamma.c
|
185 |
+
src/bid64_llrintd.c
|
186 |
+
src/bid64_log.c
|
187 |
+
src/bid64_log10.c
|
188 |
+
src/bid64_log1p.c
|
189 |
+
src/bid64_log2.c
|
190 |
+
src/bid64_logb.c
|
191 |
+
src/bid64_logbd.c
|
192 |
+
src/bid64_lrintd.c
|
193 |
+
src/bid64_lround.c
|
194 |
+
src/bid64_minmax.c
|
195 |
+
src/bid64_modf.c
|
196 |
+
src/bid64_mul.c
|
197 |
+
src/bid64_nearbyintd.c
|
198 |
+
src/bid64_next.c
|
199 |
+
src/bid64_nexttowardd.c
|
200 |
+
src/bid64_noncomp.c
|
201 |
+
src/bid64_pow.c
|
202 |
+
src/bid64_quantexpd.c
|
203 |
+
src/bid64_quantize.c
|
204 |
+
src/bid64_rem.c
|
205 |
+
src/bid64_round_integral.c
|
206 |
+
src/bid64_scalb.c
|
207 |
+
src/bid64_scalbl.c
|
208 |
+
src/bid64_sin.c
|
209 |
+
src/bid64_sinh.c
|
210 |
+
src/bid64_sqrt.c
|
211 |
+
src/bid64_string.c
|
212 |
+
src/bid64_tan.c
|
213 |
+
src/bid64_tanh.c
|
214 |
+
src/bid64_tgamma.c
|
215 |
+
src/bid64_to_bid128.c
|
216 |
+
src/bid64_to_int16.c
|
217 |
+
src/bid64_to_int32.c
|
218 |
+
src/bid64_to_int64.c
|
219 |
+
src/bid64_to_int8.c
|
220 |
+
src/bid64_to_uint16.c
|
221 |
+
src/bid64_to_uint32.c
|
222 |
+
src/bid64_to_uint64.c
|
223 |
+
src/bid64_to_uint8.c
|
224 |
+
src/bid_binarydecimal.c
|
225 |
+
src/bid_convert_data.c
|
226 |
+
src/bid_decimal_data.c
|
227 |
+
src/bid_decimal_globals.c
|
228 |
+
src/bid_dpd.c
|
229 |
+
src/bid_feclearexcept.c
|
230 |
+
src/bid_fegetexceptflag.c
|
231 |
+
src/bid_feraiseexcept.c
|
232 |
+
src/bid_fesetexceptflag.c
|
233 |
+
src/bid_fetestexcept.c
|
234 |
+
src/bid_flag_operations.c
|
235 |
+
src/bid_from_int.c
|
236 |
+
src/bid_round.c
|
237 |
+
src/strtod128.c
|
238 |
+
src/strtod32.c
|
239 |
+
src/strtod64.c
|
240 |
+
src/wcstod128.c
|
241 |
+
src/wcstod32.c
|
242 |
+
src/wcstod64.c
|
243 |
+
)
|
244 |
+
|
245 |
+
if(MSVC)
|
246 |
+
add_compile_options(/W3 )
|
247 |
+
else()
|
248 |
+
add_compile_options(-w)
|
249 |
+
endif()
|
250 |
+
|
251 |
+
if(WIN32)
|
252 |
+
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
253 |
+
add_compile_options(-Defi2=1 -DEFI2=1)
|
254 |
+
else()
|
255 |
+
add_compile_options(-DIA32= -Dia32=1)
|
256 |
+
endif()
|
257 |
+
else()
|
258 |
+
add_compile_options(-Defi2=1 -DEFI2=1)
|
259 |
+
endif()
|
260 |
+
|
261 |
+
|
262 |
+
include_directories(. src float128)
|
263 |
+
|
264 |
+
add_library(intel_decimal128 ${intelrdfpmathlib_SOURCES})
|
265 |
+
|
266 |
+
target_compile_definitions(
|
267 |
+
intel_decimal128 PRIVATE -DDECIMAL_CALL_BY_REFERENCE=0 -DDECIMAL_GLOBAL_ROUNDING=0 -DDECIMAL_GLOBAL_EXCEPTION_FLAGS=0
|
268 |
+
)
|
269 |
+
|
270 |
+
if(WIN32)
|
271 |
+
target_compile_definitions(intel_decimal128 PRIVATE -DWINDOWS=1 -DWNT=1 -Dwinnt=1)
|
272 |
+
elseif(APPLE)
|
273 |
+
target_compile_definitions(intel_decimal128 PRIVATE -DLINUX=1 -Dmach=1)
|
274 |
+
elseif(CMAKE_SYSTEM_NAME MATCHES "(FreeBSD|OpenBSD|NetBSD)")
|
275 |
+
target_compile_definitions(intel_decimal128 PRIVATE -DLINUX=1 -Dfreebsd=1)
|
276 |
+
else()
|
277 |
+
target_compile_definitions(intel_decimal128 PRIVATE -DLINUX=1 -Dlinux=1)
|
278 |
+
endif()
|
279 |
+
|
280 |
+
install(
|
281 |
+
TARGETS intel_decimal128
|
282 |
+
RUNTIME DESTINATION bin
|
283 |
+
LIBRARY DESTINATION lib
|
284 |
+
ARCHIVE DESTINATION lib
|
285 |
+
)
|
286 |
+
|
287 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
288 |
+
install(FILES src/dfp754.h DESTINATION include)
|
289 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intelrdfpmathlib/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "http://www.netlib.org/misc/intel/IntelRDFPMathLib20U2.tar.gz"
|
5 |
+
FILENAME "IntelRDFPMathLib20U2.tar.gz"
|
6 |
+
SHA512 4d445855f41b066b784f0c6b4e52f854df4129fa9d43569b1e1518f002b860f69796459c78de46a8ea24fb6e7aefe7f8bc1f253e78971a5ef202dab2a7b1b75a
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
ARCHIVE ${ARCHIVE}
|
11 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
12 |
+
)
|
13 |
+
|
14 |
+
set(LIB_SOURCE_PATH "${SOURCE_PATH}/LIBRARY")
|
15 |
+
|
16 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${LIB_SOURCE_PATH}")
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${LIB_SOURCE_PATH}"
|
20 |
+
OPTIONS_DEBUG
|
21 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
file(INSTALL "${SOURCE_PATH}/eula.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/intelrdfpmathlib/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "intelrdfpmathlib",
|
3 |
+
"version-string": "20U2",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Intel(R) Decimal Floating-Point Math Library",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
}
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/io2d/cmake.dep.patch
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
|
2 |
+
index 5ebeb6afa..702864667 100644
|
3 |
+
--- a/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
|
4 |
+
+++ b/P0267_RefImpl/P0267_RefImpl/cairo/CMakeLists.txt
|
5 |
+
@@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 3.8)
|
6 |
+
|
7 |
+
project(io2d CXX)
|
8 |
+
|
9 |
+
-find_package(Cairo REQUIRED)
|
10 |
+
-find_package(GraphicsMagick REQUIRED)
|
11 |
+
+find_package(Cairo REQUIRED)
|
12 |
+
+find_package(unofficial-GraphicsMagick REQUIRED)
|
13 |
+
|
14 |
+
add_library(io2d_cairo
|
15 |
+
cairo_renderer-graphicsmagickinit.cpp
|
16 |
+
@@ -24,7 +24,7 @@ target_include_directories(io2d_cairo PUBLIC
|
17 |
+
|
18 |
+
target_compile_features(io2d_cairo PUBLIC cxx_std_17)
|
19 |
+
|
20 |
+
-target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo GraphicsMagick::GraphicsMagick)
|
21 |
+
+target_link_libraries(io2d_cairo PUBLIC io2d_core Cairo::Cairo unofficial::graphicsmagick::graphicsmagick)
|
22 |
+
|
23 |
+
install(
|
24 |
+
TARGETS io2d_cairo EXPORT io2d_targets
|
25 |
+
diff --git a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
|
26 |
+
index abb150113..75d8c654d 100644
|
27 |
+
--- a/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
|
28 |
+
+++ b/P0267_RefImpl/P0267_RefImpl/cairo/win32/CMakeLists.txt
|
29 |
+
@@ -27,15 +27,24 @@ if(MSVC)
|
30 |
+
target_compile_definitions(io2d_cairo_win32 PUBLIC -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_WARNINGS)
|
31 |
+
|
32 |
+
find_library(PIXMAN_LIB pixman-1)
|
33 |
+
- find_library(FREETYPE_LIB freetype)
|
34 |
+
- find_library(FONTCONFIG_LIB fontconfig)
|
35 |
+
- find_library(BZ_LIB bz2)
|
36 |
+
- find_library(JPEG_LIB jpeg)
|
37 |
+
- find_library(TIFF_LIB tiff)
|
38 |
+
- find_library(EXPAT_LIB expat)
|
39 |
+
- find_library(LZMA_LIB lzma)
|
40 |
+
- find_library(ICONV_LIB libiconv)
|
41 |
+
- find_library(CHARSET_LIB libcharset)
|
42 |
+
+ find_package(FreeType REQUIRED)
|
43 |
+
+ set(FREETYPE_LIB ${FREETYPE_LIBRARIES}) # I dont use targets here since this means I have to correct the config.cmake too
|
44 |
+
+ find_package(Fontconfig REQUIRED)
|
45 |
+
+ set(FONTCONFIG_LIB ${Fontconfig_LIBRARIES})
|
46 |
+
+ find_package(BZip2 REQUIRED)
|
47 |
+
+ set(BZ_LIB ${BZIP2_LIBRARIES})
|
48 |
+
+ find_package(JPEG REQUIRED)
|
49 |
+
+ set(JPEG_LIB ${JPEG_LIBRARIES})
|
50 |
+
+ find_package(TIFF REQUIRED)
|
51 |
+
+ set(TIFF_LIB ${TIFF_LIBRARIES})
|
52 |
+
+ find_package(EXPAT REQUIRED)
|
53 |
+
+ set(EXPAT_LIB ${EXPAT_LIBRARIES})
|
54 |
+
+ find_package(LibLZMA REQUIRED)
|
55 |
+
+ set(LZMA_LIB ${LIBLZMA_LIBRARIES})
|
56 |
+
+ find_package(Iconv REQUIRED)
|
57 |
+
+ if(NOT Iconv_IS_BUILT_IN)
|
58 |
+
+ set(ICONV_LIB ${Iconv_LIBRARIES})
|
59 |
+
+ endif()
|
60 |
+
|
61 |
+
target_link_libraries(io2d_cairo_win32 PUBLIC ${PIXMAN_LIB} ${FREETYPE_LIB} ${FONTCONFIG_LIB} ${BZ_LIB} ${JPEG_LIB} ${TIFF_LIB} ${EXPAT_LIB} ${LZMA_LIB} ${ICONV_LIB} ${CHARSET_LIB})
|
62 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/io2d/portfile.cmake
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO cpp-io2d/P0267_RefImpl
|
6 |
+
REF caa0ba0cb5a421a38bc26afaf3505bee206c44dd # accessed on 2020-09-14
|
7 |
+
SHA512 f8e5a708f6cbda913a0492a843e1502b8d3cc615a6abda50e850be944e1484ec9087b787c54cc25d513172a7d5ab789be41a761c97df94266df4d1bcf14db17c
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
cmake.dep.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
if (VCPKG_TARGET_IS_OSX)
|
14 |
+
set(IO2D_DEFAULT_OPTION "-DIO2D_DEFAULT=COREGRAPHICS_MAC")
|
15 |
+
endif()
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
-DIO2D_WITHOUT_SAMPLES=1
|
22 |
+
-DIO2D_WITHOUT_TESTS=1
|
23 |
+
-DCMAKE_INSTALL_INCLUDEDIR:STRING=include
|
24 |
+
${IO2D_DEFAULT_OPTION}
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_install_cmake()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
30 |
+
|
31 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/io2d)
|
32 |
+
|
33 |
+
if (NOT VCPKG_TARGET_IS_OSX)
|
34 |
+
file(RENAME ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake ${CURRENT_PACKAGES_DIR}/share/io2d/io2dTargets.cmake)
|
35 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/io2d/io2dConfig.cmake "
|
36 |
+
include(CMakeFindDependencyMacro)
|
37 |
+
find_dependency(unofficial-cairo CONFIG)
|
38 |
+
find_dependency(unofficial-graphicsmagick CONFIG)
|
39 |
+
|
40 |
+
include(\${CMAKE_CURRENT_LIST_DIR}/io2dTargets.cmake)
|
41 |
+
")
|
42 |
+
endif()
|
43 |
+
|
44 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/io2d/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "io2d",
|
3 |
+
"version-date": "2020-09-14",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "a lightweight, cross platform drawing library",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "cairo",
|
9 |
+
"features": [
|
10 |
+
"x11"
|
11 |
+
],
|
12 |
+
"platform": "linux"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "cairo",
|
16 |
+
"platform": "!osx"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "graphicsmagick",
|
20 |
+
"platform": "!osx"
|
21 |
+
}
|
22 |
+
]
|
23 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/CMakeLists.txt
ADDED
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
# Irrlicht 3D engine
|
3 |
+
#
|
4 |
+
cmake_minimum_required(VERSION 3.16)
|
5 |
+
project(Irrlicht LANGUAGES C CXX)
|
6 |
+
|
7 |
+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
8 |
+
|
9 |
+
# Irrlicht directories
|
10 |
+
# -------------------------------------------------------------------------------------------------
|
11 |
+
set(IRR_SRC_DIR "source/Irrlicht")
|
12 |
+
set(IRR_INC_DIR "include")
|
13 |
+
set(IRR_TOOL_DIR "tools")
|
14 |
+
|
15 |
+
# Options
|
16 |
+
# -------------------------------------------------------------------------------------------------
|
17 |
+
set(DXSDK "")
|
18 |
+
if(DEFINED ENV{DXSDK_DIR})
|
19 |
+
set(DXSDK "$ENV{DXSDK_DIR}")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
set(IRR_UNICODE_PATH 0 CACHE BOOL "Whether to enable unicode path support on windows")
|
23 |
+
set(IRR_FAST_MATH 0 CACHE BOOL "Whether to enable fast maths (at the expense of precision)")
|
24 |
+
set(IRR_SHARED_LIB 1 CACHE BOOL "Whether to generate shared libraries instead of static libraries")
|
25 |
+
set(IRR_DIRECTX_SDK ${DXSDK} CACHE PATH "Path to the DirectX SDK (for DirectX 9, this folder should contain /Include, /Lib)")
|
26 |
+
set(IRR_BUILD_TOOLS 0 CACHE BOOL "Whether to generate the tools")
|
27 |
+
|
28 |
+
# Some helper functions
|
29 |
+
# -------------------------------------------------------------------------------------------------
|
30 |
+
function(glob_c_cpp_sources result folder)
|
31 |
+
file(GLOB res
|
32 |
+
"${folder}/*.c"
|
33 |
+
"${folder}/*.cpp"
|
34 |
+
"${folder}/*.h"
|
35 |
+
"${folder}/*.hpp"
|
36 |
+
"${folder}/*.rc")
|
37 |
+
set(${result} ${res} PARENT_SCOPE)
|
38 |
+
endfunction()
|
39 |
+
|
40 |
+
# Source files
|
41 |
+
# -------------------------------------------------------------------------------------------------
|
42 |
+
glob_c_cpp_sources(IRR_SRC_FILES ${IRR_SRC_DIR})
|
43 |
+
glob_c_cpp_sources(IRR_SRC_FILES_INTERFACE ${IRR_INC_DIR})
|
44 |
+
glob_c_cpp_sources(IRR_SRC_FILES_AESGLADMAN ${IRR_SRC_DIR}/aesGladman)
|
45 |
+
glob_c_cpp_sources(IRR_SRC_FILES_LZMA ${IRR_SRC_DIR}/lzma)
|
46 |
+
|
47 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_FILE_TO_HEADER ${IRR_TOOL_DIR}/FileToHeader/)
|
48 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_GUI_EDITOR ${IRR_TOOL_DIR}/GUIEditor/)
|
49 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_FONT_TOOL ${IRR_TOOL_DIR}/IrrFontTool/newFontTool/)
|
50 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_MESH_CONVERTER ${IRR_TOOL_DIR}/MeshConverter/)
|
51 |
+
|
52 |
+
if(APPLE)
|
53 |
+
file(GLOB IRR_SRC_FILES_OSX
|
54 |
+
"${IRR_SRC_DIR}/MacOSX/*.mm"
|
55 |
+
"${IRR_SRC_DIR}/MacOSX/*.h")
|
56 |
+
|
57 |
+
set(IRR_SRC_FILES ${IRR_SRC_FILES} ${IRR_SRC_FILES_OSX})
|
58 |
+
endif()
|
59 |
+
|
60 |
+
# Group files
|
61 |
+
# -------------------------------------------------------------------------------------------------
|
62 |
+
source_group(Irrlicht\\engine FILES ${IRR_SRC_FILES})
|
63 |
+
source_group(Irrlicht\\interface FILES ${IRR_SRC_FILES_INTERFACE})
|
64 |
+
source_group(Irrlicht\\libs\\aesGladman FILES ${IRR_SRC_FILES_AESGLADMAN})
|
65 |
+
source_group(Irrlicht\\libs\\lzma FILES ${IRR_SRC_FILES_LZMA})
|
66 |
+
|
67 |
+
# Library files
|
68 |
+
# -------------------------------------------------------------------------------------------------
|
69 |
+
find_package(ZLIB REQUIRED)
|
70 |
+
find_package(PNG REQUIRED)
|
71 |
+
find_package(JPEG REQUIRED)
|
72 |
+
find_package(BZip2 REQUIRED)
|
73 |
+
#find_package(LIBLZMA REQUIRED) # LIBLZMA does not export _LzmaDecode
|
74 |
+
|
75 |
+
# Irrlicht target
|
76 |
+
# -------------------------------------------------------------------------------------------------
|
77 |
+
set(IRR_ALL_SRC_FILES
|
78 |
+
${IRR_SRC_FILES}
|
79 |
+
${IRR_SRC_FILES_INTERFACE}
|
80 |
+
${IRR_SRC_FILES_AESGLADMAN}
|
81 |
+
${IRR_SRC_FILES_LZMA}
|
82 |
+
)
|
83 |
+
|
84 |
+
if(${IRR_SHARED_LIB})
|
85 |
+
add_library(Irrlicht SHARED ${IRR_ALL_SRC_FILES})
|
86 |
+
else()
|
87 |
+
add_library(Irrlicht STATIC ${IRR_ALL_SRC_FILES})
|
88 |
+
endif()
|
89 |
+
|
90 |
+
if(APPLE)
|
91 |
+
target_include_directories(Irrlicht PRIVATE ${IRR_SRC_DIR}/MacOSX)
|
92 |
+
|
93 |
+
target_compile_definitions(Irrlicht PRIVATE SYSTEM=MacOSX)
|
94 |
+
|
95 |
+
target_link_libraries(Irrlicht ${OSX_LIBRARIES})
|
96 |
+
|
97 |
+
target_compile_options(Irrlicht PRIVATE "-ObjC++")
|
98 |
+
|
99 |
+
set(ADDITIONAL_LIRARIES
|
100 |
+
"-framework OpenGL"
|
101 |
+
"-framework IOKit"
|
102 |
+
"-framework Carbon"
|
103 |
+
"-framework AppKit"
|
104 |
+
"-framework Cocoa")
|
105 |
+
endif()
|
106 |
+
|
107 |
+
target_link_libraries(Irrlicht PRIVATE
|
108 |
+
${PNG_LIBRARY}
|
109 |
+
${JPEG_LIBRARY}
|
110 |
+
${ZLIB_LIBRARY}
|
111 |
+
${BZIP2_LIBRARY}
|
112 |
+
${ADDITIONAL_LIRARIES}
|
113 |
+
)
|
114 |
+
|
115 |
+
if(IRR_BUILD_TOOLS)
|
116 |
+
add_executable(FileToHeader ${IRR_TOOL_FILES_FILE_TO_HEADER})
|
117 |
+
|
118 |
+
add_executable(GUIEditor ${IRR_TOOL_FILES_GUI_EDITOR})
|
119 |
+
target_link_libraries(GUIEditor Irrlicht)
|
120 |
+
|
121 |
+
add_executable(FontTool ${IRR_TOOL_FILES_FONT_TOOL})
|
122 |
+
target_link_libraries(FontTool Irrlicht)
|
123 |
+
|
124 |
+
add_executable(MeshConverter ${IRR_TOOL_FILES_MESH_CONVERTER})
|
125 |
+
target_link_libraries(MeshConverter Irrlicht)
|
126 |
+
endif()
|
127 |
+
|
128 |
+
# Target properties (for compilation & export)
|
129 |
+
# -------------------------------------------------------------------------------------------------
|
130 |
+
target_include_directories(Irrlicht
|
131 |
+
PRIVATE ${IRR_SRC_DIR}
|
132 |
+
PRIVATE ${IRR_SRC_DIR}/aesGladman
|
133 |
+
PRIVATE ${BZIP2_INCLUDE_DIR}
|
134 |
+
PRIVATE ${JPEG_INCLUDE_DIR}
|
135 |
+
PRIVATE ${LIBPNG_INCLUDE_DIR}
|
136 |
+
PRIVATE ${IRR_SRC_DIR}/lzma
|
137 |
+
PRIVATE ${ZLIB_INCLUDE_DIR}
|
138 |
+
)
|
139 |
+
|
140 |
+
# I dont realy understand why this is necesary or what it is doing,
|
141 |
+
# but it is necesarry to build and export a package.
|
142 |
+
# See: https://cmake.org/cmake/help/v3.8/command/target_include_directories.html
|
143 |
+
target_include_directories(Irrlicht PUBLIC
|
144 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
145 |
+
$<INSTALL_INTERFACE:include/irrlicht> # <prefix>/include/irrlicht
|
146 |
+
)
|
147 |
+
|
148 |
+
if(NOT ${IRR_DIRECTX_SDK} STREQUAL "")
|
149 |
+
target_include_directories(Irrlicht PRIVATE ${IRR_DIRECTX_SDK}/Include)
|
150 |
+
if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
151 |
+
set(DX_LIBS ${IRR_DIRECTX_SDK}/Lib/x86)
|
152 |
+
else()
|
153 |
+
set(DX_LIBS ${IRR_DIRECTX_SDK}/Lib/x64)
|
154 |
+
endif()
|
155 |
+
target_link_libraries(Irrlicht
|
156 |
+
PRIVATE ${DX_LIBS}/d3dx9.lib
|
157 |
+
PRIVATE ${DX_LIBS}/dinput8.lib
|
158 |
+
PRIVATE ${DX_LIBS}/dxguid.lib)
|
159 |
+
else()
|
160 |
+
target_compile_definitions(Irrlicht PRIVATE NO_IRR_COMPILE_WITH_DIRECT3D_9_)
|
161 |
+
endif()
|
162 |
+
|
163 |
+
if(NOT ${IRR_SHARED_LIB})
|
164 |
+
target_compile_definitions(Irrlicht PUBLIC _IRR_STATIC_LIB_)
|
165 |
+
endif()
|
166 |
+
|
167 |
+
# Disable Irrlicht building already provided dependencies
|
168 |
+
target_compile_definitions(Irrlicht
|
169 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_ZLIB_
|
170 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_LIB_PNG_
|
171 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_BZLIB_
|
172 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
|
173 |
+
)
|
174 |
+
|
175 |
+
# Per platform config
|
176 |
+
# -------------------------------------------------------------------------------------------------
|
177 |
+
|
178 |
+
# Export symbols
|
179 |
+
target_compile_definitions(Irrlicht PRIVATE IRRLICHT_EXPORTS)
|
180 |
+
|
181 |
+
if(WIN32)
|
182 |
+
# Import the symbols of bzip2
|
183 |
+
target_compile_definitions(Irrlicht PRIVATE BZ_IMPORT)
|
184 |
+
|
185 |
+
# Disable the ton of warnings from standard library
|
186 |
+
target_compile_definitions(Irrlicht PRIVATE _CRT_SECURE_NO_WARNINGS)
|
187 |
+
|
188 |
+
# Multi processor compilation
|
189 |
+
target_compile_options(Irrlicht PRIVATE /MP)
|
190 |
+
|
191 |
+
# Unicode
|
192 |
+
if(${IRR_UNICODE_PATH})
|
193 |
+
target_compile_definitions(Irrlicht PRIVATE UNICODE _UNICODE)
|
194 |
+
target_compile_definitions(Irrlicht PUBLIC _IRR_WCHAR_FILESYSTEM)
|
195 |
+
endif()
|
196 |
+
|
197 |
+
# Fast math options
|
198 |
+
if(${IRR_FAST_MATH})
|
199 |
+
target_compile_options(Irrlicht PRIVATE /fp:fast)
|
200 |
+
message("Fast Math Enabled")
|
201 |
+
# SSE2 is automatically activated on x64
|
202 |
+
if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
203 |
+
target_compile_options(Irrlicht PRIVATE /arch:SSE2)
|
204 |
+
endif()
|
205 |
+
endif()
|
206 |
+
elseif(UNIX)
|
207 |
+
# Standard mode
|
208 |
+
target_compile_options(Irrlicht
|
209 |
+
PRIVATE -Wall
|
210 |
+
PRIVATE -pipe
|
211 |
+
PRIVATE -fno-exceptions
|
212 |
+
PRIVATE -fno-strict-aliasing)
|
213 |
+
|
214 |
+
# Disable RTTI on C++ files only (no sense for C files)
|
215 |
+
set_source_files_properties(${IRR_SRC_FILES} ${IRR_SRC_FILES_AESGLADMAN}
|
216 |
+
PROPERTIES COMPILE_FLAGS -fno-rtti)
|
217 |
+
|
218 |
+
# Debug macro
|
219 |
+
target_compile_options(Irrlicht PRIVATE $<$<CONFIG:Debug>:-D_DEBUG>)
|
220 |
+
|
221 |
+
# X11 and OpenGL
|
222 |
+
if(NOT APPLE)
|
223 |
+
target_link_libraries(Irrlicht
|
224 |
+
PRIVATE X11
|
225 |
+
PRIVATE GL
|
226 |
+
PRIVATE Xxf86vm)
|
227 |
+
endif()
|
228 |
+
endif()
|
229 |
+
|
230 |
+
# Installation
|
231 |
+
# -------------------------------------------------------------------------------------------------
|
232 |
+
install(
|
233 |
+
TARGETS Irrlicht
|
234 |
+
EXPORT Irrlicht
|
235 |
+
RUNTIME DESTINATION bin
|
236 |
+
LIBRARY DESTINATION lib
|
237 |
+
ARCHIVE DESTINATION lib
|
238 |
+
)
|
239 |
+
|
240 |
+
install(FILES ${IRR_SRC_FILES_INTERFACE} DESTINATION "include/irrlicht" CONFIGURATIONS Release)
|
241 |
+
|
242 |
+
if(IRR_BUILD_TOOLS)
|
243 |
+
install(
|
244 |
+
TARGETS FileToHeader GUIEditor FontTool MeshConverter
|
245 |
+
RUNTIME DESTINATION tools/irrlicht/
|
246 |
+
CONFIGURATIONS Release
|
247 |
+
)
|
248 |
+
endif()
|
249 |
+
|
250 |
+
install(EXPORT Irrlicht FILE irrlicht-targets.cmake DESTINATION share/irrlicht)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The Irrlicht Engine License
|
2 |
+
===========================
|
3 |
+
|
4 |
+
Copyright (C) 2002-2015 Nikolaus Gebhardt
|
5 |
+
|
6 |
+
This software is provided 'as-is', without any express or implied
|
7 |
+
warranty. In no event will the authors be held liable for any damages
|
8 |
+
arising from the use of this software.
|
9 |
+
|
10 |
+
Permission is granted to anyone to use this software for any purpose,
|
11 |
+
including commercial applications, and to alter it and redistribute it
|
12 |
+
freely, subject to the following restrictions:
|
13 |
+
|
14 |
+
1. The origin of this software must not be misrepresented; you must not
|
15 |
+
claim that you wrote the original software. If you use this software
|
16 |
+
in a product, an acknowledgement in the product documentation would be
|
17 |
+
appreciated but is not required.
|
18 |
+
2. Altered source versions must be clearly marked as such, and must not be
|
19 |
+
misrepresented as being the original software.
|
20 |
+
3. This notice may not be removed or altered from any source distribution.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/fix-encoding.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/Keycodes.h b/include/Keycodes.h
|
2 |
+
index e56eca1..57ab312 100644
|
3 |
+
--- a/include/Keycodes.h
|
4 |
+
+++ b/include/Keycodes.h
|
5 |
+
@@ -89,7 +89,7 @@ namespace irr
|
6 |
+
KEY_KEY_X = 0x58, // X key
|
7 |
+
KEY_KEY_Y = 0x59, // Y key
|
8 |
+
KEY_KEY_Z = 0x5A, // Z key
|
9 |
+
- KEY_LWIN = 0x5B, // Left Windows key (Microsoft� Natural� keyboard)
|
10 |
+
+ KEY_LWIN = 0x5B, // Left Windows key (Microsoft® Natural® keyboard)
|
11 |
+
KEY_RWIN = 0x5C, // Right Windows key (Natural keyboard)
|
12 |
+
KEY_APPS = 0x5D, // Applications key (Natural keyboard)
|
13 |
+
KEY_SLEEP = 0x5F, // Computer Sleep key
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/fix-osx-compilation.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/Irrlicht/CImageLoaderJPG.cpp b/source/Irrlicht/CImageLoaderJPG.cpp
|
2 |
+
index 66144326c..4ea224c24 100644
|
3 |
+
--- a/source/Irrlicht/CImageLoaderJPG.cpp
|
4 |
+
+++ b/source/Irrlicht/CImageLoaderJPG.cpp
|
5 |
+
@@ -68,7 +68,7 @@ void CImageLoaderJPG::init_source (j_decompress_ptr cinfo)
|
6 |
+
boolean CImageLoaderJPG::fill_input_buffer (j_decompress_ptr cinfo)
|
7 |
+
{
|
8 |
+
// DO NOTHING
|
9 |
+
- return 1;
|
10 |
+
+ return TRUE;
|
11 |
+
}
|
12 |
+
|
13 |
+
|
14 |
+
diff --git a/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm b/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
|
15 |
+
index 53029eb45..e75b707e1 100644
|
16 |
+
--- a/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
|
17 |
+
+++ b/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm
|
18 |
+
@@ -495,8 +495,8 @@ long GetDictionaryLong(CFDictionaryRef theDict, const void* key)
|
19 |
+
if(!CreationParams.WindowId) //load menus if standalone application
|
20 |
+
{
|
21 |
+
[[NSAutoreleasePool alloc] init];
|
22 |
+
- [NSApplication sharedApplication];
|
23 |
+
- [NSApp setDelegate:(id<NSFileManagerDelegate>)[[[AppDelegate alloc] initWithDevice:this] autorelease]];
|
24 |
+
+ [[NSApplication sharedApplication] activateIgnoringOtherApps];
|
25 |
+
+ [NSApp setDelegate:(id<NSApplicationDelegate>)[[[AppDelegate alloc] initWithDevice:this] autorelease]];
|
26 |
+
[NSBundle loadNibNamed:@"MainMenu" owner:[NSApp delegate]];
|
27 |
+
[NSApp finishLaunching];
|
28 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/fix-sysctl.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/source/Irrlicht/COSOperator.cpp
|
2 |
+
+++ b/source/Irrlicht/COSOperator.cpp
|
3 |
+
@@ -11,8 +11,8 @@
|
4 |
+
#else
|
5 |
+
#include <string.h>
|
6 |
+
#include <unistd.h>
|
7 |
+
-#ifndef _IRR_SOLARIS_PLATFORM_
|
8 |
+
#include <sys/types.h>
|
9 |
+
+#ifdef _IRR_OSX_PLATFORM_
|
10 |
+
#include <sys/sysctl.h>
|
11 |
+
#endif
|
12 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/portfile.cmake
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_sourceforge(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO irrlicht/Irrlicht%20SDK
|
4 |
+
REF 1.8/1.8.4
|
5 |
+
FILENAME "irrlicht-1.8.4.zip"
|
6 |
+
SHA512 de69ddd2c6bc80a1b27b9a620e3697b1baa552f24c7d624076d471f3aecd9b15f71dce3b640811e6ece20f49b57688d428e3503936a7926b3e3b0cc696af98d1
|
7 |
+
PATCHES
|
8 |
+
fix-encoding.patch
|
9 |
+
fix-sysctl.patch
|
10 |
+
fix-osx-compilation.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_IS_LINUX)
|
14 |
+
message(
|
15 |
+
"Irrlicht currently requires the following libraries from the system package manager:
|
16 |
+
libgl1-mesa
|
17 |
+
xf86vmode
|
18 |
+
|
19 |
+
These can be installed on Ubuntu systems via sudo apt-get install libgl1-mesa-dev libxxf86vm-dev")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" "${SOURCE_PATH}/CMakeLists.txt" COPYONLY)
|
23 |
+
|
24 |
+
vcpkg_check_features(
|
25 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
26 |
+
FEATURES
|
27 |
+
unicode IRR_UNICODE_PATH
|
28 |
+
fast-fpu IRR_FAST_MATH
|
29 |
+
tools IRR_BUILD_TOOLS
|
30 |
+
)
|
31 |
+
|
32 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED_LIB)
|
33 |
+
|
34 |
+
vcpkg_cmake_configure(
|
35 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
36 |
+
OPTIONS
|
37 |
+
-DIRR_SHARED_LIB=${SHARED_LIB}
|
38 |
+
${FEATURE_OPTIONS}
|
39 |
+
)
|
40 |
+
|
41 |
+
vcpkg_cmake_install()
|
42 |
+
|
43 |
+
vcpkg_cmake_config_fixup()
|
44 |
+
|
45 |
+
if("tools" IN_LIST FEATURES)
|
46 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/irrlicht/")
|
47 |
+
endif()
|
48 |
+
|
49 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/irrlicht/irrlicht-config.cmake" "include(\${CMAKE_CURRENT_LIST_DIR}/irrlicht-targets.cmake)")
|
50 |
+
|
51 |
+
vcpkg_copy_pdbs()
|
52 |
+
|
53 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
54 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/irrlicht")
|
55 |
+
endif()
|
56 |
+
|
57 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
find_package(ZLIB REQUIRED)
|
3 |
+
find_package(PNG REQUIRED)
|
4 |
+
find_package(JPEG REQUIRED)
|
5 |
+
find_package(BZip2 REQUIRED)
|
6 |
+
if(TARGET Irrlicht::Irrlicht)
|
7 |
+
set_property(TARGET Irrlicht::Irrlicht APPEND PROPERTY INTERFACE_LINK_LIBRARIES ZLIB::ZLIB PNG::PNG JPEG::JPEG BZip2::BZip2)
|
8 |
+
endif()
|
9 |
+
if(IRRLICHT_LIBRARIES)
|
10 |
+
list(APPEND IRRLICHT_LIBRARIES ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${BZIP2_LIBRARIES})
|
11 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrlicht/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "irrlicht",
|
3 |
+
"version-string": "1.8.4",
|
4 |
+
"port-version": 13,
|
5 |
+
"description": "The Irrlicht Engine is an open source realtime 3D engine written in C++. It is cross-platform, using D3D, OpenGL and its own software renderers.",
|
6 |
+
"homepage": "http://irrlicht.sourceforge.net",
|
7 |
+
"supports": "!(arm | uwp)",
|
8 |
+
"dependencies": [
|
9 |
+
"bzip2",
|
10 |
+
"libjpeg-turbo",
|
11 |
+
"libpng",
|
12 |
+
"vcpkg-cmake",
|
13 |
+
"vcpkg-cmake-config",
|
14 |
+
"zlib"
|
15 |
+
],
|
16 |
+
"features": {
|
17 |
+
"fast-fpu": {
|
18 |
+
"description": "Enable fast maths (at the expense of precision)"
|
19 |
+
},
|
20 |
+
"tools": {
|
21 |
+
"description": "Build the Tools FileToHeader, FontTool, GUIEditor and MeshConverter"
|
22 |
+
},
|
23 |
+
"unicode": {
|
24 |
+
"description": "Support unicode path on windows"
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrxml/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/irrxml/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "irrxml",
|
3 |
+
"version-string": "0",
|
4 |
+
"description": "Alias port for irrlicht",
|
5 |
+
"dependencies": [
|
6 |
+
"irrlicht"
|
7 |
+
]
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/CMakeLists.txt
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
|
2 |
+
PROJECT(isal C)
|
3 |
+
|
4 |
+
IF (SOURCE_PATH)
|
5 |
+
SET(CMAKE_SOURCE_DIR ${SOURCE_PATH})
|
6 |
+
ENDIF ()
|
7 |
+
|
8 |
+
INCLUDE(ProcessorCount)
|
9 |
+
PROCESSORCOUNT(PROCS)
|
10 |
+
|
11 |
+
FIND_PROGRAM(NASM nasm)
|
12 |
+
IF (NOT NASM)
|
13 |
+
MESSAGE(FATAL_ERROR "NASM not found")
|
14 |
+
ENDIF ()
|
15 |
+
|
16 |
+
IF (EXEC_ENV STREQUAL "Windows")
|
17 |
+
FIND_PROGRAM(MAKE nmake)
|
18 |
+
IF (NOT MAKE)
|
19 |
+
MESSAGE(FATAL_ERROR "nmake not found")
|
20 |
+
ENDIF ()
|
21 |
+
ELSEIF(EXEC_ENV STREQUAL "Linux")
|
22 |
+
FIND_PROGRAM(MAKE make)
|
23 |
+
IF (NOT MAKE)
|
24 |
+
MESSAGE(FATAL_ERROR "MAKE not found")
|
25 |
+
ENDIF ()
|
26 |
+
ENDIF()
|
27 |
+
|
28 |
+
SET(MAKE_FLAGS "-f")
|
29 |
+
|
30 |
+
IF (EXEC_ENV STREQUAL Windows)
|
31 |
+
STRING(APPEND MAKE_FLAGS " Makefile.nmake /E CC=cl AS=nasm")
|
32 |
+
ELSEIF (EXEC_ENV STREQUAL Linux)
|
33 |
+
STRING(APPEND MAKE_FLAGS "Makefile.unx")
|
34 |
+
ENDIF ()
|
35 |
+
|
36 |
+
ADD_CUSTOM_TARGET(isal ALL
|
37 |
+
COMMAND ${MAKE} ${MAKE_FLAGS}
|
38 |
+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/
|
39 |
+
)
|
40 |
+
|
41 |
+
SET(LIB_PATH ${CMAKE_SOURCE_DIR}/bin/)
|
42 |
+
IF (LIBRARY_LINKAGE STREQUAL "dynamic")
|
43 |
+
STRING(APPEND LIB_PATH isal.so)
|
44 |
+
ELSEIF (LIBRARY_LINKAGE STREQUAL "static")
|
45 |
+
STRING(APPEND LIB_PATH isa-l.a)
|
46 |
+
ELSE ()
|
47 |
+
MESSAGE(FATAL_ERROR "Unknown linkage type ${LIBRARY_LINKAGE}")
|
48 |
+
ENDIF ()
|
49 |
+
INSTALL(FILES ${LIB_PATH}
|
50 |
+
DESTINATION ${CMAKE_SOURCE_DIR}/${CMAKE_BUILD_TYPE}/lib/)
|
51 |
+
INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/include DESTINATION ${CMAKE_SOURCE_DIR}/${CMAKE_BUILD_TYPE}/)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/isalConfig.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
FUNCTION(SET_LIBRARY_TARGET NAMESPACE LIB_NAME DEBUG_LIB_FILE_NAME RELEASE_LIB_FILE_NAME INCLUDE_DIR)
|
3 |
+
ADD_LIBRARY(${NAMESPACE}::${LIB_NAME} STATIC IMPORTED)
|
4 |
+
SET_TARGET_PROPERTIES(${NAMESPACE}::${LIB_NAME} PROPERTIES
|
5 |
+
IMPORTED_CONFIGURATIONS "RELEASE;DEBUG"
|
6 |
+
IMPORTED_LOCATION_RELEASE "${RELEASE_LIB_FILE_NAME}"
|
7 |
+
IMPORTED_LOCATION_DEBUG "${DEBUG_LIB_FILE_NAME}"
|
8 |
+
INTERFACE_INCLUDE_DIRECTORIES "${INCLUDE_DIR}"
|
9 |
+
)
|
10 |
+
SET(${NAMESPACE}_${LIB_NAME}_FOUND 1)
|
11 |
+
ENDFUNCTION()
|
12 |
+
|
13 |
+
GET_FILENAME_COMPONENT(ROOT "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
14 |
+
GET_FILENAME_COMPONENT(ROOT "${ROOT}" PATH)
|
15 |
+
GET_FILENAME_COMPONENT(ROOT "${ROOT}" PATH)
|
16 |
+
|
17 |
+
SET_LIBRARY_TARGET("ISAL" "isal" "${ROOT}/debug/lib/isa-l.a" "${ROOT}/lib/isa-l.a" "${ROOT}/include/isal")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/portfile.cmake
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
IF (NOT VCPKG_CMAKE_SYSTEM_NAME)
|
2 |
+
SET(EXEC_ENV "Windows")
|
3 |
+
ELSE ()
|
4 |
+
SET(EXEC_ENV "${VCPKG_CMAKE_SYSTEM_NAME}")
|
5 |
+
ENDIF ()
|
6 |
+
|
7 |
+
IF (NOT EXEC_ENV STREQUAL "Linux")
|
8 |
+
MESSAGE(FATAL_ERROR "Intel(R) Intelligent Storage Acceleration Library currently only supports Linux platforms")
|
9 |
+
MESSAGE(STATUS "Well, it is not true, but I didnt manage to get it working on Windows")
|
10 |
+
ENDIF ()
|
11 |
+
|
12 |
+
IF (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
13 |
+
MESSAGE(FATAL_ERROR "Intel(R) Intelligent Storage Acceleration Library currently only supports x64 architecture")
|
14 |
+
ELSEIF (NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
15 |
+
MESSAGE(FATAL_ERROR "Unsupported architecture: ${VCPKG_TARGET_ARCHITECTURE}")
|
16 |
+
ENDIF ()
|
17 |
+
|
18 |
+
VCPKG_FROM_GITHUB(
|
19 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
20 |
+
REPO 01org/isa-l
|
21 |
+
REF v2.25.0
|
22 |
+
SHA512 aa556c8ba26b4637493b3de50a23636668bcfd71249029c52fe6983d0bcf120d1b91f39aaa259cb58e59448d401366f3bfaaee24609db7e6a1cd3fdf1a953efe
|
23 |
+
HEAD_REF master
|
24 |
+
)
|
25 |
+
|
26 |
+
VCPKG_FIND_ACQUIRE_PROGRAM(NASM)
|
27 |
+
GET_FILENAME_COMPONENT(NASM_PATH ${NASM} DIRECTORY)
|
28 |
+
SET(ENV{PATH} "$ENV{PATH};${NASM_PATH}")
|
29 |
+
|
30 |
+
VCPKG_CONFIGURE_CMAKE(
|
31 |
+
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR}
|
32 |
+
PREFER_NINJA
|
33 |
+
OPTIONS
|
34 |
+
-DSOURCE_PATH=${SOURCE_PATH}
|
35 |
+
-DEXEC_ENV:STRING=${EXEC_ENV}
|
36 |
+
-DLIBRARY_LINKAGE:STRING=${VCPKG_LIBRARY_LINKAGE}
|
37 |
+
)
|
38 |
+
|
39 |
+
VCPKG_INSTALL_CMAKE()
|
40 |
+
|
41 |
+
FILE(INSTALL ${SOURCE_PATH}/Release/lib/ DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
42 |
+
FILE(INSTALL ${SOURCE_PATH}/Debug/lib/ DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
43 |
+
FILE(INSTALL ${SOURCE_PATH}/Release/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
|
44 |
+
FILE(INSTALL ${CMAKE_CURRENT_LIST_DIR}/isalConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
45 |
+
FILE(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
46 |
+
FILE(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package isal is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
FIND_PACKAGE(isal REQUIRED)
|
4 |
+
TARGET_LINK_LIBRARIES(main PRIVATE ISAL::isa-l) for static linkage or
|
5 |
+
TARGET_LINK_LIBRARIES(main PRIVATE ISAL::isal) for dynamic linkage
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/isal/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "isal",
|
3 |
+
"version-string": "2.25.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Intel(R) Intelligent Storage Acceleration Library"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/fix-depends-hdf5.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 2144fd3..68f9ca9 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -108,7 +108,11 @@ endif()
|
6 |
+
if (USE_HDF5_DATASET_SUPPORT)
|
7 |
+
if (VCPKG_TARGET_TRIPLET) #VCPKG HDF5 is packaged differently.
|
8 |
+
find_package(HDF5 CONFIG COMPONENTS C shared REQUIRED)
|
9 |
+
- set(HDF5_C_LIBRARIES hdf5::hdf5-shared)
|
10 |
+
+ if (BUILD_SHARED_LIBS)
|
11 |
+
+ set(HDF5_C_LIBRARIES hdf5::hdf5-shared)
|
12 |
+
+ else()
|
13 |
+
+ set(HDF5_C_LIBRARIES hdf5::hdf5-static)
|
14 |
+
+ endif()
|
15 |
+
else ()
|
16 |
+
find_package(HDF5 COMPONENTS C REQUIRED)
|
17 |
+
endif ()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/portfile.cmake
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
2 |
+
set(WIN32_INCLUDE_STDDEF_PATCH "x86-windows-include-stddef.patch")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO ismrmrd/ismrmrd
|
8 |
+
REF v1.5.0
|
9 |
+
SHA512 96e24be75ecde8e56001d805ffaf4502d39c87e2c4fe01c84c90cb01d8bd49268c48440728de2ffb4c3efa75a029b3ffc0101b5841893685f82b4fafec9b1c73
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
${WIN32_INCLUDE_STDDEF_PATCH}
|
13 |
+
fix-depends-hdf5.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
-DUSE_SYSTEM_PUGIXML=ON
|
20 |
+
-DUSE_HDF5_DATASET_SUPPORT=ON
|
21 |
+
-DVCPKG_TARGET_TRIPLET=ON
|
22 |
+
-DBUILD_TESTS=OFF
|
23 |
+
-DBUILD_EXAMPLES=OFF
|
24 |
+
-DBUILD_UTILITIES=OFF
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ISMRMRD/)
|
30 |
+
|
31 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/ismrmrd.dll")
|
32 |
+
file(COPY "${CURRENT_PACKAGES_DIR}/lib/ismrmrd.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/ismrmrd.dll")
|
34 |
+
endif()
|
35 |
+
|
36 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/ismrmrd.dll")
|
37 |
+
file(COPY "${CURRENT_PACKAGES_DIR}/debug/lib/ismrmrd.dll" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/ismrmrd.dll")
|
39 |
+
endif()
|
40 |
+
|
41 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/ismrmrd/cmake")
|
42 |
+
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
44 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
45 |
+
|
46 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
47 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin/")
|
48 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin/")
|
49 |
+
endif()
|
50 |
+
|
51 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ismrmrd",
|
3 |
+
"version": "1.5.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "ISMRM Raw Data Format",
|
6 |
+
"homepage": "https://github.com/ismrmrd/ismrmrd",
|
7 |
+
"dependencies": [
|
8 |
+
"boost",
|
9 |
+
"fftw3",
|
10 |
+
"hdf5",
|
11 |
+
"pugixml",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
]
|
21 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ismrmrd/x86-windows-include-stddef.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/ismrmrd/ismrmrd.h b/include/ismrmrd/ismrmrd.h
|
2 |
+
index 40614eb..e5e3e25 100644
|
3 |
+
--- a/include/ismrmrd/ismrmrd.h
|
4 |
+
+++ b/include/ismrmrd/ismrmrd.h
|
5 |
+
@@ -30,6 +30,9 @@ typedef unsigned __int32 uint32_t;
|
6 |
+
typedef __int64 int64_t;
|
7 |
+
typedef unsigned __int64 uint64_t;
|
8 |
+
#endif
|
9 |
+
+#if _WIN32
|
10 |
+
+#include <stddef.h> /* for size_t */
|
11 |
+
+#endif
|
12 |
+
#else /* non MS C or C++ compiler */
|
13 |
+
#include <stdint.h>
|
14 |
+
#include <stddef.h> /* for size_t */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/double-conversion.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Modules/ThirdParty/DoubleConversion/CMakeLists.txt b/Modules/ThirdParty/DoubleConversion/CMakeLists.txt
|
2 |
+
index 16c611fd3..13978724c 100644
|
3 |
+
--- a/Modules/ThirdParty/DoubleConversion/CMakeLists.txt
|
4 |
+
+++ b/Modules/ThirdParty/DoubleConversion/CMakeLists.txt
|
5 |
+
@@ -9,7 +9,10 @@ mark_as_advanced(ITK_USE_SYSTEM_DOUBLECONVERSION)
|
6 |
+
if(ITK_USE_SYSTEM_DOUBLECONVERSION)
|
7 |
+
find_package(double-conversion REQUIRED)
|
8 |
+
get_target_property(ITKDoubleConversion_INCLUDE_DIRS double-conversion::double-conversion INTERFACE_INCLUDE_DIRECTORIES)
|
9 |
+
- get_target_property(ITKDoubleConversion_LIBRARIES double-conversion::double-conversion LOCATION)
|
10 |
+
+ get_target_property(ITKDoubleConversion_LIBRARY_RELEASE double-conversion::double-conversion LOCATION_RELEASE)
|
11 |
+
+ get_target_property(ITKDoubleConversion_LIBRARY_DEBUG double-conversion::double-conversion LOCATION_DEBUG)
|
12 |
+
+ include(SelectLibraryConfigurations)
|
13 |
+
+ select_library_configurations(ITKDoubleConversion)
|
14 |
+
else()
|
15 |
+
set(ITKDoubleConversion_INCLUDE_DIRS
|
16 |
+
${ITKDoubleConversion_SOURCE_DIR}/src
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/opencl.patch
ADDED
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Modules/Core/GPUCommon/CMakeLists.txt b/Modules/Core/GPUCommon/CMakeLists.txt
|
2 |
+
index da2d66b63..6fb476680 100644
|
3 |
+
--- a/Modules/Core/GPUCommon/CMakeLists.txt
|
4 |
+
+++ b/Modules/Core/GPUCommon/CMakeLists.txt
|
5 |
+
@@ -24,9 +24,13 @@ if(ITK_USE_GPU AND APPLE AND NOT ITK_COMPILER_HAS_BLOCKS)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
if(ITK_USE_GPU)
|
9 |
+
+ message(STATUS "OPENCL_LIBRARIES:${OPENCL_LIBRARIES}")
|
10 |
+
+ if(TARGET OpenCL::OpenCL)
|
11 |
+
+ message(STATUS "OPENCL_LIBRARIES:${OpenCL_LIBRARIES}")
|
12 |
+
+ endif()
|
13 |
+
set(ITKGPUCommon_LIBRARIES ITKGPUCommon)
|
14 |
+
- set(ITKGPUCommon_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
|
15 |
+
- set(ITKGPUCommon_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
|
16 |
+
+ set(ITKGPUCommon_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
|
17 |
+
+ set(ITKGPUCommon_SYSTEM_LIBRARY_DIRS ${OpenCL_LIBRARIES})
|
18 |
+
endif()
|
19 |
+
|
20 |
+
if(NOT ITK_SOURCE_DIR)
|
21 |
+
diff --git a/Modules/Core/GPUCommon/src/CMakeLists.txt b/Modules/Core/GPUCommon/src/CMakeLists.txt
|
22 |
+
index 0b39f2a9a..160f7a752 100644
|
23 |
+
--- a/Modules/Core/GPUCommon/src/CMakeLists.txt
|
24 |
+
+++ b/Modules/Core/GPUCommon/src/CMakeLists.txt
|
25 |
+
@@ -14,5 +14,5 @@ if (ITK_USE_GPU)
|
26 |
+
write_gpu_kernels("${ITKGPUCommon_Kernels}" ITKGPUCommon_SRCS)
|
27 |
+
|
28 |
+
itk_module_add_library(ITKGPUCommon ${ITKGPUCommon_SRCS})
|
29 |
+
- target_link_libraries(ITKGPUCommon LINK_PUBLIC ${OPENCL_LIBRARIES})
|
30 |
+
+ target_link_libraries(ITKGPUCommon LINK_PUBLIC ${OpenCL_LIBRARIES})
|
31 |
+
endif()
|
32 |
+
diff --git a/Modules/Core/GPUFiniteDifference/CMakeLists.txt b/Modules/Core/GPUFiniteDifference/CMakeLists.txt
|
33 |
+
index c1bfde450..a642d9230 100644
|
34 |
+
--- a/Modules/Core/GPUFiniteDifference/CMakeLists.txt
|
35 |
+
+++ b/Modules/Core/GPUFiniteDifference/CMakeLists.txt
|
36 |
+
@@ -9,8 +9,8 @@ if(NOT ITK_SOURCE_DIR)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
if (ITK_USE_GPU)
|
40 |
+
- set(ITKGPUFiniteDifference_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
|
41 |
+
- set(ITKGPUFiniteDifference_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
|
42 |
+
+ set(ITKGPUFiniteDifference_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
|
43 |
+
+ set(ITKGPUFiniteDifference_SYSTEM_LIBRARY_DIRS ${OpenCL_LIBRARIES})
|
44 |
+
set(ITKGPUFiniteDifference_LIBRARIES ITKGPUFiniteDifference)
|
45 |
+
endif()
|
46 |
+
|
47 |
+
diff --git a/Modules/Core/GPUFiniteDifference/src/CMakeLists.txt b/Modules/Core/GPUFiniteDifference/src/CMakeLists.txt
|
48 |
+
index 8425cc025..8335c69a0 100644
|
49 |
+
--- a/Modules/Core/GPUFiniteDifference/src/CMakeLists.txt
|
50 |
+
+++ b/Modules/Core/GPUFiniteDifference/src/CMakeLists.txt
|
51 |
+
@@ -9,5 +9,5 @@ if (ITK_USE_GPU)
|
52 |
+
write_gpu_kernels("${ITKGPUFiniteDifference_Kernels}" ITKGPUFiniteDifference_SRCS)
|
53 |
+
|
54 |
+
itk_module_add_library(ITKGPUFiniteDifference ${ITKGPUFiniteDifference_SRCS})
|
55 |
+
- target_link_libraries(ITKGPUFiniteDifference LINK_PUBLIC ${OPENCL_LIBRARIES})
|
56 |
+
+ target_link_libraries(ITKGPUFiniteDifference LINK_PUBLIC ${OpenCL_LIBRARIES})
|
57 |
+
endif()
|
58 |
+
diff --git a/Modules/Filtering/GPUAnisotropicSmoothing/CMakeLists.txt b/Modules/Filtering/GPUAnisotropicSmoothing/CMakeLists.txt
|
59 |
+
index f36fd887d..310d983fa 100644
|
60 |
+
--- a/Modules/Filtering/GPUAnisotropicSmoothing/CMakeLists.txt
|
61 |
+
+++ b/Modules/Filtering/GPUAnisotropicSmoothing/CMakeLists.txt
|
62 |
+
@@ -10,8 +10,8 @@ endif()
|
63 |
+
|
64 |
+
if (ITK_USE_GPU)
|
65 |
+
set(ITKGPUAnisotropicSmoothing_LIBRARIES ITKGPUAnisotropicSmoothing)
|
66 |
+
- set(ITKGPUAnisotropicSmoothing_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
|
67 |
+
- set(ITKGPUAnisotropicSmoothing_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
|
68 |
+
+ set(ITKGPUAnisotropicSmoothing_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
|
69 |
+
+ set(ITKGPUAnisotropicSmoothing_SYSTEM_LIBRARY_DIRS ${OpenCL_LIBRARIES})
|
70 |
+
endif()
|
71 |
+
|
72 |
+
if(NOT ITK_SOURCE_DIR)
|
73 |
+
diff --git a/Modules/Filtering/GPUImageFilterBase/CMakeLists.txt b/Modules/Filtering/GPUImageFilterBase/CMakeLists.txt
|
74 |
+
index 078905521..67fd7b832 100644
|
75 |
+
--- a/Modules/Filtering/GPUImageFilterBase/CMakeLists.txt
|
76 |
+
+++ b/Modules/Filtering/GPUImageFilterBase/CMakeLists.txt
|
77 |
+
@@ -10,8 +10,8 @@ endif()
|
78 |
+
|
79 |
+
if (ITK_USE_GPU)
|
80 |
+
set(ITKGPUImageFilterBase_LIBRARIES ITKGPUImageFilterBase)
|
81 |
+
- set(ITKGPUImageFilterBase_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
|
82 |
+
- set(ITKGPUImageFilterBase_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
|
83 |
+
+ set(ITKGPUImageFilterBase_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
|
84 |
+
+ set(ITKGPUImageFilterBase_SYSTEM_LIBRARY_DIRS ${OpenCL_LIBRARIES})
|
85 |
+
endif()
|
86 |
+
|
87 |
+
if(NOT ITK_SOURCE_DIR)
|
88 |
+
diff --git a/Modules/Filtering/GPUImageFilterBase/src/CMakeLists.txt b/Modules/Filtering/GPUImageFilterBase/src/CMakeLists.txt
|
89 |
+
index 251493f5e..6d33fa964 100644
|
90 |
+
--- a/Modules/Filtering/GPUImageFilterBase/src/CMakeLists.txt
|
91 |
+
+++ b/Modules/Filtering/GPUImageFilterBase/src/CMakeLists.txt
|
92 |
+
@@ -10,5 +10,5 @@ if (ITK_USE_GPU)
|
93 |
+
write_gpu_kernels("${ITKGPUImageFilterBase_Kernels}" ITKGPUImageFilterBase_SRCS)
|
94 |
+
|
95 |
+
itk_module_add_library(ITKGPUImageFilterBase ${ITKGPUImageFilterBase_SRCS})
|
96 |
+
- target_link_libraries(ITKGPUImageFilterBase LINK_PUBLIC ${OPENCL_LIBRARIES})
|
97 |
+
+ target_link_libraries(ITKGPUImageFilterBase LINK_PUBLIC ${OpenCL_LIBRARIES})
|
98 |
+
endif()
|
99 |
+
diff --git a/Modules/Filtering/GPUSmoothing/CMakeLists.txt b/Modules/Filtering/GPUSmoothing/CMakeLists.txt
|
100 |
+
index 9bac40921..2ed493d40 100644
|
101 |
+
--- a/Modules/Filtering/GPUSmoothing/CMakeLists.txt
|
102 |
+
+++ b/Modules/Filtering/GPUSmoothing/CMakeLists.txt
|
103 |
+
@@ -10,8 +10,8 @@ endif()
|
104 |
+
|
105 |
+
if (ITK_USE_GPU)
|
106 |
+
set(ITKGPUSmoothing_LIBRARIES ITKGPUSmoothing)
|
107 |
+
- set(ITKGPUSmoothing_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
|
108 |
+
- set(ITKGPUSmoothing_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
|
109 |
+
+ set(ITKGPUSmoothing_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
|
110 |
+
+ set(ITKGPUSmoothing_SYSTEM_LIBRARY_DIRS ${OpenCL_LIBRARIES})
|
111 |
+
endif()
|
112 |
+
|
113 |
+
if(NOT ITK_SOURCE_DIR)
|
114 |
+
diff --git a/Modules/Filtering/GPUSmoothing/src/CMakeLists.txt b/Modules/Filtering/GPUSmoothing/src/CMakeLists.txt
|
115 |
+
index d2120e842..2c6ca4a4a 100644
|
116 |
+
--- a/Modules/Filtering/GPUSmoothing/src/CMakeLists.txt
|
117 |
+
+++ b/Modules/Filtering/GPUSmoothing/src/CMakeLists.txt
|
118 |
+
@@ -9,5 +9,5 @@ if (ITK_USE_GPU)
|
119 |
+
write_gpu_kernels("${ITKGPUSmoothing_Kernels}" ITKGPUSmoothing_SRCS)
|
120 |
+
|
121 |
+
itk_module_add_library(ITKGPUSmoothing ${ITKGPUSmoothing_SRCS})
|
122 |
+
- target_link_libraries(ITKGPUSmoothing LINK_PUBLIC ${OPENCL_LIBRARIES})
|
123 |
+
+ target_link_libraries(ITKGPUSmoothing LINK_PUBLIC ${OpenCL_LIBRARIES})
|
124 |
+
endif()
|
125 |
+
diff --git a/Modules/Filtering/GPUThresholding/CMakeLists.txt b/Modules/Filtering/GPUThresholding/CMakeLists.txt
|
126 |
+
index 4390785f5..61786b7a8 100644
|
127 |
+
--- a/Modules/Filtering/GPUThresholding/CMakeLists.txt
|
128 |
+
+++ b/Modules/Filtering/GPUThresholding/CMakeLists.txt
|
129 |
+
@@ -2,8 +2,8 @@ project(ITKGPUThresholding)
|
130 |
+
|
131 |
+
if (ITK_USE_GPU)
|
132 |
+
set(ITKGPUThresholding_LIBRARIES ITKGPUThresholding)
|
133 |
+
- set(ITKGPUThresholding_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
|
134 |
+
- set(ITKGPUThresholding_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
|
135 |
+
+ set(ITKGPUThresholding_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
|
136 |
+
+ set(ITKGPUThresholding_SYSTEM_LIBRARY_DIRS ${OpenCL_LIBRARIES})
|
137 |
+
endif()
|
138 |
+
|
139 |
+
itk_module_impl()
|
140 |
+
diff --git a/Modules/Filtering/GPUThresholding/src/CMakeLists.txt b/Modules/Filtering/GPUThresholding/src/CMakeLists.txt
|
141 |
+
index 326c86859..c07c80414 100644
|
142 |
+
--- a/Modules/Filtering/GPUThresholding/src/CMakeLists.txt
|
143 |
+
+++ b/Modules/Filtering/GPUThresholding/src/CMakeLists.txt
|
144 |
+
@@ -9,5 +9,5 @@ if (ITK_USE_GPU)
|
145 |
+
write_gpu_kernels("${ITKGPUThresholding_Kernels}" ITKGPUThresholding_SRCS)
|
146 |
+
|
147 |
+
itk_module_add_library(ITKGPUThresholding ${ITKGPUThresholding_SRCS})
|
148 |
+
- target_link_libraries(ITKGPUThresholding LINK_PUBLIC ${OPENCL_LIBRARIES})
|
149 |
+
+ target_link_libraries(ITKGPUThresholding LINK_PUBLIC ${OpenCL_LIBRARIES})
|
150 |
+
endif()
|
151 |
+
diff --git a/Modules/Registration/GPUPDEDeformable/CMakeLists.txt b/Modules/Registration/GPUPDEDeformable/CMakeLists.txt
|
152 |
+
index c8d70a423..097c974c5 100644
|
153 |
+
--- a/Modules/Registration/GPUPDEDeformable/CMakeLists.txt
|
154 |
+
+++ b/Modules/Registration/GPUPDEDeformable/CMakeLists.txt
|
155 |
+
@@ -2,8 +2,8 @@ project(ITKGPUPDEDeformableRegistration)
|
156 |
+
|
157 |
+
if (ITK_USE_GPU)
|
158 |
+
set(ITKGPUPDEDeformableRegistration_LIBRARIES ITKGPUPDEDeformableRegistration)
|
159 |
+
- set(ITKGPUPDEDeformableRegistration_SYSTEM_INCLUDE_DIRS ${OPENCL_INCLUDE_DIRS})
|
160 |
+
- set(ITKGPUPDEDeformableRegistration_SYSTEM_LIBRARY_DIRS ${OPENCL_LIBRARIES})
|
161 |
+
+ set(ITKGPUPDEDeformableRegistration_SYSTEM_INCLUDE_DIRS ${OpenCL_INCLUDE_DIRS})
|
162 |
+
+ set(ITKGPUPDEDeformableRegistration_SYSTEM_LIBRARY_DIRS ${OpenCL_LIBRARIES})
|
163 |
+
endif()
|
164 |
+
|
165 |
+
itk_module_impl()
|
166 |
+
diff --git a/Modules/Registration/GPUPDEDeformable/src/CMakeLists.txt b/Modules/Registration/GPUPDEDeformable/src/CMakeLists.txt
|
167 |
+
index 28b1d194c..1a049bdde 100644
|
168 |
+
--- a/Modules/Registration/GPUPDEDeformable/src/CMakeLists.txt
|
169 |
+
+++ b/Modules/Registration/GPUPDEDeformable/src/CMakeLists.txt
|
170 |
+
@@ -10,5 +10,5 @@ if (ITK_USE_GPU)
|
171 |
+
write_gpu_kernels("${ITKGPUPDEDeformableRegistration_Kernels}" ITKGPUPDEDeformableRegistration_SRCS)
|
172 |
+
|
173 |
+
itk_module_add_library(ITKGPUPDEDeformableRegistration ${ITKGPUPDEDeformableRegistration_SRCS})
|
174 |
+
- target_link_libraries(ITKGPUPDEDeformableRegistration LINK_PUBLIC ${OPENCL_LIBRARIES})
|
175 |
+
+ target_link_libraries(ITKGPUPDEDeformableRegistration LINK_PUBLIC ${OpenCL_LIBRARIES})
|
176 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/openjpeg.patch
ADDED
@@ -0,0 +1,548 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx b/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx
|
2 |
+
index 1b1fe9526..0da4aa0c4 100644
|
3 |
+
--- a/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx
|
4 |
+
+++ b/Modules/IO/JPEG2000/src/itkJPEG2000ImageIO.cxx
|
5 |
+
@@ -26,9 +26,9 @@
|
6 |
+
|
7 |
+
extern "C"
|
8 |
+
{
|
9 |
+
-#include "openjpeg.h"
|
10 |
+
-#include "j2k.h"
|
11 |
+
-#include "jp2.h"
|
12 |
+
+#include <openjpeg.h>
|
13 |
+
+//#include "j2k.h"
|
14 |
+
+//##include "jp2.h"
|
15 |
+
}
|
16 |
+
|
17 |
+
|
18 |
+
@@ -62,8 +62,7 @@ public:
|
19 |
+
OPJ_UINT32 m_TileStartX;
|
20 |
+
OPJ_UINT32 m_TileStartY;
|
21 |
+
|
22 |
+
- OPJ_UINT32 m_NumberOfTilesInX;
|
23 |
+
- OPJ_UINT32 m_NumberOfTilesInY;
|
24 |
+
+ OPJ_UINT32 m_NumberOfTiles;
|
25 |
+
|
26 |
+
opj_dparameters_t m_DecompressionParameters; /* decompression parameters */
|
27 |
+
};
|
28 |
+
@@ -86,8 +85,7 @@ JPEG2000ImageIO::JPEG2000ImageIO()
|
29 |
+
this->m_Internal->m_TileStartX = 0;
|
30 |
+
this->m_Internal->m_TileStartY = 0;
|
31 |
+
|
32 |
+
- this->m_Internal->m_NumberOfTilesInX = 0;
|
33 |
+
- this->m_Internal->m_NumberOfTilesInY = 0;
|
34 |
+
+ this->m_Internal->m_NumberOfTiles = 0;
|
35 |
+
|
36 |
+
const char * extensions[] = { ".j2k", ".jp2", ".jpt" };
|
37 |
+
|
38 |
+
@@ -139,22 +137,16 @@ JPEG2000ImageIO::ReadImageInformation()
|
39 |
+
{
|
40 |
+
itkDebugMacro(<< "ReadImageInformation()");
|
41 |
+
|
42 |
+
- FILE * l_file = fopen(this->m_FileName.c_str(), "rb");
|
43 |
+
-
|
44 |
+
- /* decompression parameters */
|
45 |
+
+ /* set decoding parameters to default values */
|
46 |
+
+ opj_set_default_decoder_parameters(&(this->m_Internal->m_DecompressionParameters));
|
47 |
+
|
48 |
+
- if (!l_file)
|
49 |
+
+ opj_stream_t * cio = opj_stream_create_default_file_stream(this->m_FileName.c_str(), true);
|
50 |
+
+ if (!cio)
|
51 |
+
{
|
52 |
+
itkExceptionMacro("JPEG2000ImageIO failed to open file for reading: " << this->GetFileName() << std::endl
|
53 |
+
<< "Reason: "
|
54 |
+
<< itksys::SystemTools::GetLastSystemError());
|
55 |
+
}
|
56 |
+
-
|
57 |
+
- /* set decoding parameters to default values */
|
58 |
+
- opj_set_default_decoder_parameters(&(this->m_Internal->m_DecompressionParameters));
|
59 |
+
-
|
60 |
+
- opj_stream_t * cio = opj_stream_create_default_file_stream(l_file, true);
|
61 |
+
-
|
62 |
+
this->m_Internal->m_Dinfo = nullptr; /* handle to a decompressor */
|
63 |
+
|
64 |
+
opj_image_t * l_image = nullptr;
|
65 |
+
@@ -187,14 +179,14 @@ JPEG2000ImageIO::ReadImageInformation()
|
66 |
+
/* JPEG-2000 codestream */
|
67 |
+
|
68 |
+
/* get a decoder handle */
|
69 |
+
- this->m_Internal->m_Dinfo = opj_create_decompress(CODEC_J2K);
|
70 |
+
+ this->m_Internal->m_Dinfo = opj_create_decompress(OPJ_CODEC_J2K);
|
71 |
+
if (!this->m_Internal->m_Dinfo)
|
72 |
+
{
|
73 |
+
opj_stream_destroy(cio);
|
74 |
+
- fclose(l_file);
|
75 |
+
+ // fclose(l_file);
|
76 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
77 |
+
<< this->GetFileName() << std::endl
|
78 |
+
- << "Reason: opj_create_decompress(CODEC_J2K) returns nullptr");
|
79 |
+
+ << "Reason: opj_create_decompress(OPJ_CODEC_J2K) returns nullptr");
|
80 |
+
}
|
81 |
+
break;
|
82 |
+
}
|
83 |
+
@@ -202,14 +194,14 @@ JPEG2000ImageIO::ReadImageInformation()
|
84 |
+
{
|
85 |
+
/* JPEG 2000 compressed image data */
|
86 |
+
/* get a decoder handle */
|
87 |
+
- this->m_Internal->m_Dinfo = opj_create_decompress(CODEC_JP2);
|
88 |
+
+ this->m_Internal->m_Dinfo = opj_create_decompress(OPJ_CODEC_JP2);
|
89 |
+
if (!this->m_Internal->m_Dinfo)
|
90 |
+
{
|
91 |
+
opj_stream_destroy(cio);
|
92 |
+
- fclose(l_file);
|
93 |
+
+ // fclose(l_file);
|
94 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
95 |
+
<< this->GetFileName() << std::endl
|
96 |
+
- << "Reason: opj_create_decompress(CODEC_JP2) returns nullptr");
|
97 |
+
+ << "Reason: opj_create_decompress(OPJ_CODEC_JP2) returns nullptr");
|
98 |
+
}
|
99 |
+
break;
|
100 |
+
}
|
101 |
+
@@ -217,20 +209,19 @@ JPEG2000ImageIO::ReadImageInformation()
|
102 |
+
{
|
103 |
+
/* JPEG 2000, JPIP */
|
104 |
+
/* get a decoder handle */
|
105 |
+
- this->m_Internal->m_Dinfo = opj_create_decompress(CODEC_JPT);
|
106 |
+
+ this->m_Internal->m_Dinfo = opj_create_decompress(OPJ_CODEC_JPT);
|
107 |
+
if (!this->m_Internal->m_Dinfo)
|
108 |
+
{
|
109 |
+
opj_stream_destroy(cio);
|
110 |
+
- fclose(l_file);
|
111 |
+
+ // fclose(l_file);
|
112 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
113 |
+
<< this->GetFileName() << std::endl
|
114 |
+
- << "Reason: opj_create_decompress(CODEC_JPT) returns nullptr");
|
115 |
+
+ << "Reason: opj_create_decompress(OPJ_CODEC_JPT) returns nullptr");
|
116 |
+
}
|
117 |
+
break;
|
118 |
+
}
|
119 |
+
default:
|
120 |
+
opj_stream_destroy(cio);
|
121 |
+
- fclose(l_file);
|
122 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
123 |
+
<< this->GetFileName() << std::endl
|
124 |
+
<< "Reason: "
|
125 |
+
@@ -247,27 +238,11 @@ JPEG2000ImageIO::ReadImageInformation()
|
126 |
+
<< "Reason: opj_setup_decoder returns false");
|
127 |
+
}
|
128 |
+
|
129 |
+
- // Image parameters - first tile
|
130 |
+
- OPJ_INT32 l_tile_x0;
|
131 |
+
- OPJ_INT32 l_tile_y0;
|
132 |
+
|
133 |
+
- // Image parameters - tile width, height and number of tiles
|
134 |
+
- OPJ_UINT32 l_tile_width;
|
135 |
+
- OPJ_UINT32 l_tile_height;
|
136 |
+
- OPJ_UINT32 l_nb_tiles_x;
|
137 |
+
- OPJ_UINT32 l_nb_tiles_y;
|
138 |
+
|
139 |
+
itkDebugMacro(<< "Trying to read header now...");
|
140 |
+
|
141 |
+
- bResult = opj_read_header(this->m_Internal->m_Dinfo,
|
142 |
+
- &l_image,
|
143 |
+
- &l_tile_x0,
|
144 |
+
- &l_tile_y0,
|
145 |
+
- &l_tile_width,
|
146 |
+
- &l_tile_height,
|
147 |
+
- &l_nb_tiles_x,
|
148 |
+
- &l_nb_tiles_y,
|
149 |
+
- cio);
|
150 |
+
+ bResult = opj_read_header(cio, this->m_Internal->m_Dinfo, &l_image);
|
151 |
+
|
152 |
+
if (!bResult)
|
153 |
+
{
|
154 |
+
@@ -283,14 +258,22 @@ JPEG2000ImageIO::ReadImageInformation()
|
155 |
+
<< "Reason: Error whle reading image header");
|
156 |
+
}
|
157 |
+
|
158 |
+
+ // Image parameters - first tile
|
159 |
+
+ OPJ_INT32 l_tile_x0=l_image->x0;
|
160 |
+
+ OPJ_INT32 l_tile_y0=l_image->y0;
|
161 |
+
+
|
162 |
+
+ // Image parameters - tile width, height and number of tiles
|
163 |
+
+ OPJ_UINT32 l_tile_width=l_image->x1;
|
164 |
+
+ OPJ_UINT32 l_tile_height=l_image->y1;
|
165 |
+
+ OPJ_UINT32 l_nb_tiles=l_image->numcomps;
|
166 |
+
+
|
167 |
+
this->m_Internal->m_TileStartX = l_tile_x0;
|
168 |
+
this->m_Internal->m_TileStartY = l_tile_y0;
|
169 |
+
|
170 |
+
this->m_Internal->m_TileWidth = l_tile_width;
|
171 |
+
this->m_Internal->m_TileHeight = l_tile_height;
|
172 |
+
|
173 |
+
- this->m_Internal->m_NumberOfTilesInX = l_nb_tiles_x;
|
174 |
+
- this->m_Internal->m_NumberOfTilesInY = l_nb_tiles_y;
|
175 |
+
+ this->m_Internal->m_NumberOfTiles = l_nb_tiles;
|
176 |
+
|
177 |
+
|
178 |
+
itkDebugMacro(<< "Number of Components = " << l_image->numcomps);
|
179 |
+
@@ -319,7 +302,7 @@ JPEG2000ImageIO::ReadImageInformation()
|
180 |
+
this->SetPixelType(IOPixelEnum::SCALAR);
|
181 |
+
break;
|
182 |
+
case 3:
|
183 |
+
- if (l_image->color_space != CLRSPC_SRGB)
|
184 |
+
+ if (l_image->color_space != OPJ_CLRSPC_SRGB)
|
185 |
+
{
|
186 |
+
itkWarningMacro(<< "file does not specify color space, assuming sRGB");
|
187 |
+
}
|
188 |
+
@@ -335,8 +318,7 @@ JPEG2000ImageIO::ReadImageInformation()
|
189 |
+
itkDebugMacro(<< "Tile Start Y = " << this->m_Internal->m_TileStartY);
|
190 |
+
itkDebugMacro(<< "Tile Width = " << this->m_Internal->m_TileWidth);
|
191 |
+
itkDebugMacro(<< "Tile Height = " << this->m_Internal->m_TileHeight);
|
192 |
+
- itkDebugMacro(<< "Number of Tiles X = " << this->m_Internal->m_NumberOfTilesInX);
|
193 |
+
- itkDebugMacro(<< "Number of Tiles Y = " << this->m_Internal->m_NumberOfTilesInY);
|
194 |
+
+ itkDebugMacro(<< "Number of Tiles = " << this->m_Internal->m_NumberOfTiles);
|
195 |
+
|
196 |
+
itkDebugMacro(<< "image->x1 = " << l_image->x1);
|
197 |
+
itkDebugMacro(<< "image->y1 = " << l_image->y1);
|
198 |
+
@@ -349,7 +331,6 @@ JPEG2000ImageIO::ReadImageInformation()
|
199 |
+
|
200 |
+
/* close the byte stream */
|
201 |
+
opj_stream_destroy(cio);
|
202 |
+
- fclose(l_file);
|
203 |
+
|
204 |
+
if (this->m_Internal->m_Dinfo)
|
205 |
+
{
|
206 |
+
@@ -368,16 +349,7 @@ JPEG2000ImageIO::Read(void * buffer)
|
207 |
+
{
|
208 |
+
itkDebugMacro(<< "JPEG2000ImageIO::Read() Begin");
|
209 |
+
|
210 |
+
- FILE * l_file = fopen(this->m_FileName.c_str(), "rb");
|
211 |
+
-
|
212 |
+
- if (!l_file)
|
213 |
+
- {
|
214 |
+
- itkExceptionMacro("JPEG2000ImageIO failed to open file for reading: " << this->GetFileName() << std::endl
|
215 |
+
- << "Reason: "
|
216 |
+
- << itksys::SystemTools::GetLastSystemError());
|
217 |
+
- }
|
218 |
+
-
|
219 |
+
- opj_stream_t * l_stream = opj_stream_create_default_file_stream(l_file, true);
|
220 |
+
+ opj_stream_t * l_stream = opj_stream_create_default_file_stream(this->m_FileName.c_str(), true);
|
221 |
+
if (!l_stream)
|
222 |
+
{
|
223 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
224 |
+
@@ -397,12 +369,13 @@ JPEG2000ImageIO::Read(void * buffer)
|
225 |
+
{
|
226 |
+
/* JPEG-2000 codestream */
|
227 |
+
/* get a decoder handle */
|
228 |
+
- this->m_Internal->m_Dinfo = opj_create_decompress(CODEC_J2K);
|
229 |
+
+ this->m_Internal->m_Dinfo = opj_create_decompress(OPJ_CODEC_J2K);
|
230 |
+
if (!this->m_Internal->m_Dinfo)
|
231 |
+
{
|
232 |
+
+ opj_stream_destroy(l_stream);
|
233 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
234 |
+
<< this->GetFileName() << std::endl
|
235 |
+
- << "Reason: opj_create_decompress(CODEC_J2K) returns nullptr");
|
236 |
+
+ << "Reason: opj_create_decompress(OPJ_CODEC_J2K) returns nullptr");
|
237 |
+
}
|
238 |
+
break;
|
239 |
+
}
|
240 |
+
@@ -410,12 +383,13 @@ JPEG2000ImageIO::Read(void * buffer)
|
241 |
+
{
|
242 |
+
/* JPEG 2000 compressed image data */
|
243 |
+
/* get a decoder handle */
|
244 |
+
- this->m_Internal->m_Dinfo = opj_create_decompress(CODEC_JP2);
|
245 |
+
+ this->m_Internal->m_Dinfo = opj_create_decompress(OPJ_CODEC_JP2);
|
246 |
+
if (!this->m_Internal->m_Dinfo)
|
247 |
+
{
|
248 |
+
+ opj_stream_destroy(l_stream);
|
249 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
250 |
+
<< this->GetFileName() << std::endl
|
251 |
+
- << "Reason: opj_create_decompress(CODEC_JP2) returns nullptr");
|
252 |
+
+ << "Reason: opj_create_decompress(OPJ_CODEC_JP2) returns nullptr");
|
253 |
+
}
|
254 |
+
break;
|
255 |
+
}
|
256 |
+
@@ -423,17 +397,18 @@ JPEG2000ImageIO::Read(void * buffer)
|
257 |
+
{
|
258 |
+
/* JPEG 2000, JPIP */
|
259 |
+
/* get a decoder handle */
|
260 |
+
- this->m_Internal->m_Dinfo = opj_create_decompress(CODEC_JPT);
|
261 |
+
+ this->m_Internal->m_Dinfo = opj_create_decompress(OPJ_CODEC_JPT);
|
262 |
+
if (!this->m_Internal->m_Dinfo)
|
263 |
+
{
|
264 |
+
+ opj_stream_destroy(l_stream);
|
265 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
266 |
+
<< this->GetFileName() << std::endl
|
267 |
+
- << "Reason: opj_create_decompress(CODEC_JPT) returns nullptr");
|
268 |
+
+ << "Reason: opj_create_decompress(OPJ_CODEC_JPT) returns nullptr");
|
269 |
+
}
|
270 |
+
break;
|
271 |
+
}
|
272 |
+
default:
|
273 |
+
- fclose(l_file);
|
274 |
+
+ opj_stream_destroy(l_stream);
|
275 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: "
|
276 |
+
<< this->GetFileName() << std::endl
|
277 |
+
<< "Reason: "
|
278 |
+
@@ -448,29 +423,13 @@ JPEG2000ImageIO::Read(void * buffer)
|
279 |
+
<< "Reason: opj_setup_decoder returns false");
|
280 |
+
}
|
281 |
+
|
282 |
+
- OPJ_INT32 l_tile_x0, l_tile_y0;
|
283 |
+
-
|
284 |
+
- OPJ_UINT32 l_tile_width;
|
285 |
+
- OPJ_UINT32 l_tile_height;
|
286 |
+
- OPJ_UINT32 l_nb_tiles_x;
|
287 |
+
- OPJ_UINT32 l_nb_tiles_y;
|
288 |
+
-
|
289 |
+
- bool bResult = opj_read_header(this->m_Internal->m_Dinfo,
|
290 |
+
- &l_image,
|
291 |
+
- &l_tile_x0,
|
292 |
+
- &l_tile_y0,
|
293 |
+
- &l_tile_width,
|
294 |
+
- &l_tile_height,
|
295 |
+
- &l_nb_tiles_x,
|
296 |
+
- &l_nb_tiles_y,
|
297 |
+
- l_stream);
|
298 |
+
+ bool bResult = opj_read_header(l_stream, this->m_Internal->m_Dinfo,&l_image);
|
299 |
+
|
300 |
+
if (!bResult)
|
301 |
+
{
|
302 |
+
opj_destroy_codec(this->m_Internal->m_Dinfo);
|
303 |
+
this->m_Internal->m_Dinfo = nullptr;
|
304 |
+
opj_stream_destroy(l_stream);
|
305 |
+
- fclose(l_file);
|
306 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: " << this->GetFileName() << std::endl
|
307 |
+
<< "Reason: opj_read_header returns false");
|
308 |
+
}
|
309 |
+
@@ -499,7 +458,7 @@ JPEG2000ImageIO::Read(void * buffer)
|
310 |
+
itkDebugMacro(<< "p_end_x = " << p_end_x);
|
311 |
+
itkDebugMacro(<< "p_end_y = " << p_end_y);
|
312 |
+
|
313 |
+
- bResult = opj_set_decode_area(this->m_Internal->m_Dinfo, p_start_x, p_start_y, p_end_x, p_end_y);
|
314 |
+
+ bResult = opj_set_decode_area(this->m_Internal->m_Dinfo, l_image, p_start_x, p_start_y, p_end_x, p_end_y);
|
315 |
+
|
316 |
+
itkDebugMacro(<< "opj_set_decode_area() after");
|
317 |
+
|
318 |
+
@@ -508,7 +467,6 @@ JPEG2000ImageIO::Read(void * buffer)
|
319 |
+
opj_destroy_codec(this->m_Internal->m_Dinfo);
|
320 |
+
this->m_Internal->m_Dinfo = nullptr;
|
321 |
+
opj_stream_destroy(l_stream);
|
322 |
+
- fclose(l_file);
|
323 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: " << this->GetFileName() << std::endl
|
324 |
+
<< "Reason: opj_set_decode_area returns false");
|
325 |
+
}
|
326 |
+
@@ -525,13 +483,13 @@ JPEG2000ImageIO::Read(void * buffer)
|
327 |
+
|
328 |
+
OPJ_UINT32 l_max_data_size = 1000;
|
329 |
+
|
330 |
+
- bool l_go_on = true;
|
331 |
+
+ int l_go_on = true; // should be OBJ_BOOL
|
332 |
+
|
333 |
+
auto * l_data = (OPJ_BYTE *)malloc(1000);
|
334 |
+
|
335 |
+
while (l_go_on)
|
336 |
+
{
|
337 |
+
- bool tileHeaderRead = opj_read_tile_header(this->m_Internal->m_Dinfo,
|
338 |
+
+ bool tileHeaderRead = opj_read_tile_header(this->m_Internal->m_Dinfo, l_stream,
|
339 |
+
&l_tile_index,
|
340 |
+
&l_data_size,
|
341 |
+
&l_current_tile_x0,
|
342 |
+
@@ -539,14 +497,12 @@ JPEG2000ImageIO::Read(void * buffer)
|
343 |
+
&l_current_tile_x1,
|
344 |
+
&l_current_tile_y1,
|
345 |
+
&l_nb_comps,
|
346 |
+
- &l_go_on,
|
347 |
+
- l_stream);
|
348 |
+
+ &l_go_on);
|
349 |
+
|
350 |
+
if (!tileHeaderRead)
|
351 |
+
{
|
352 |
+
free(l_data);
|
353 |
+
opj_stream_destroy(l_stream);
|
354 |
+
- fclose(l_file);
|
355 |
+
opj_destroy_codec(this->m_Internal->m_Dinfo);
|
356 |
+
opj_image_destroy(l_image);
|
357 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: " << this->GetFileName() << std::endl
|
358 |
+
@@ -571,7 +527,6 @@ JPEG2000ImageIO::Read(void * buffer)
|
359 |
+
if (!l_data)
|
360 |
+
{
|
361 |
+
opj_stream_destroy(l_stream);
|
362 |
+
- fclose(l_file);
|
363 |
+
opj_destroy_codec(this->m_Internal->m_Dinfo);
|
364 |
+
opj_image_destroy(l_image);
|
365 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: " << this->GetFileName() << std::endl
|
366 |
+
@@ -590,7 +545,6 @@ JPEG2000ImageIO::Read(void * buffer)
|
367 |
+
{
|
368 |
+
free(l_data);
|
369 |
+
opj_stream_destroy(l_stream);
|
370 |
+
- fclose(l_file);
|
371 |
+
opj_destroy_codec(this->m_Internal->m_Dinfo);
|
372 |
+
opj_image_destroy(l_image);
|
373 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: " << this->GetFileName() << std::endl
|
374 |
+
@@ -654,7 +608,6 @@ JPEG2000ImageIO::Read(void * buffer)
|
375 |
+
{
|
376 |
+
free(l_data);
|
377 |
+
opj_stream_destroy(l_stream);
|
378 |
+
- fclose(l_file);
|
379 |
+
opj_destroy_codec(this->m_Internal->m_Dinfo);
|
380 |
+
opj_image_destroy(l_image);
|
381 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: " << this->GetFileName() << std::endl
|
382 |
+
@@ -666,14 +619,12 @@ JPEG2000ImageIO::Read(void * buffer)
|
383 |
+
opj_destroy_codec(this->m_Internal->m_Dinfo);
|
384 |
+
this->m_Internal->m_Dinfo = nullptr;
|
385 |
+
opj_stream_destroy(l_stream);
|
386 |
+
- fclose(l_file);
|
387 |
+
itkExceptionMacro("JPEG2000ImageIO failed to read file: " << this->GetFileName() << std::endl
|
388 |
+
<< "Reason: error whle reading image");
|
389 |
+
}
|
390 |
+
|
391 |
+
/* close the byte stream */
|
392 |
+
opj_stream_destroy(l_stream);
|
393 |
+
- fclose(l_file);
|
394 |
+
|
395 |
+
if (this->m_Internal->m_Dinfo)
|
396 |
+
{
|
397 |
+
@@ -840,13 +791,13 @@ JPEG2000ImageIO ::Write(const void * buffer)
|
398 |
+
|
399 |
+
parameters.numresolution = numberOfResolutions;
|
400 |
+
|
401 |
+
- OPJ_COLOR_SPACE color_space = CLRSPC_GRAY;
|
402 |
+
+ OPJ_COLOR_SPACE color_space = OPJ_CLRSPC_GRAY;
|
403 |
+
opj_image_cmptparm_t cmptparms[3];
|
404 |
+
|
405 |
+
if (this->GetNumberOfComponents() == 3)
|
406 |
+
{
|
407 |
+
|
408 |
+
- color_space = (this->GetPixelType() == IOPixelEnum::RGB) ? CLRSPC_SRGB : CLRSPC_UNSPECIFIED;
|
409 |
+
+ color_space = (this->GetPixelType() == IOPixelEnum::RGB) ? OPJ_CLRSPC_SRGB : OPJ_CLRSPC_UNSPECIFIED;
|
410 |
+
|
411 |
+
/* initialize image components */
|
412 |
+
memset(&cmptparms[0], 0, 3 * sizeof(opj_image_cmptparm_t));
|
413 |
+
@@ -864,7 +815,7 @@ JPEG2000ImageIO ::Write(const void * buffer)
|
414 |
+
|
415 |
+
if (this->GetNumberOfComponents() == 1)
|
416 |
+
{
|
417 |
+
- color_space = CLRSPC_GRAY;
|
418 |
+
+ color_space = OPJ_CLRSPC_GRAY;
|
419 |
+
|
420 |
+
/* initialize image components */
|
421 |
+
memset(&cmptparms[0], 0, sizeof(opj_image_cmptparm_t));
|
422 |
+
@@ -940,32 +891,32 @@ JPEG2000ImageIO ::Write(const void * buffer)
|
423 |
+
opj_codec_t * cinfo = nullptr;
|
424 |
+
if (extension == ".j2k")
|
425 |
+
{
|
426 |
+
- cinfo = opj_create_compress(CODEC_J2K);
|
427 |
+
+ cinfo = opj_create_compress(OPJ_CODEC_J2K);
|
428 |
+
if (!cinfo)
|
429 |
+
{
|
430 |
+
itkExceptionMacro("JPEG2000ImageIO failed to write file: "
|
431 |
+
<< this->GetFileName() << std::endl
|
432 |
+
- << "Reason: opj_create_compress(CODEC_J2K) returns nullptr");
|
433 |
+
+ << "Reason: opj_create_compress(OPJ_CODEC_J2K) returns nullptr");
|
434 |
+
}
|
435 |
+
}
|
436 |
+
else if (extension == ".jp2")
|
437 |
+
{
|
438 |
+
- cinfo = opj_create_compress(CODEC_JP2);
|
439 |
+
+ cinfo = opj_create_compress(OPJ_CODEC_JP2);
|
440 |
+
if (!cinfo)
|
441 |
+
{
|
442 |
+
itkExceptionMacro("JPEG2000ImageIO failed to write file: "
|
443 |
+
<< this->GetFileName() << std::endl
|
444 |
+
- << "Reason: opj_create_compress(CODEC_JP2) returns nullptr");
|
445 |
+
+ << "Reason: opj_create_compress(OPJ_CODEC_JP2) returns nullptr");
|
446 |
+
}
|
447 |
+
}
|
448 |
+
else if (extension == ".jpt")
|
449 |
+
{
|
450 |
+
- cinfo = opj_create_compress(CODEC_JPT);
|
451 |
+
+ cinfo = opj_create_compress(OPJ_CODEC_JPT);
|
452 |
+
if (!cinfo)
|
453 |
+
{
|
454 |
+
itkExceptionMacro("JPEG2000ImageIO failed to write file: "
|
455 |
+
<< this->GetFileName() << std::endl
|
456 |
+
- << "Reason: opj_create_compress(CODEC_JPT) returns nullptr");
|
457 |
+
+ << "Reason: opj_create_compress(OPJ_CODEC_JPT) returns nullptr");
|
458 |
+
}
|
459 |
+
}
|
460 |
+
else
|
461 |
+
@@ -989,17 +940,9 @@ JPEG2000ImageIO ::Write(const void * buffer)
|
462 |
+
<< "Reason: opj_setup_encoder returns false");
|
463 |
+
}
|
464 |
+
|
465 |
+
- FILE * l_file = fopen(parameters.outfile, "wb");
|
466 |
+
- if (!l_file)
|
467 |
+
- {
|
468 |
+
- itkExceptionMacro("JPEG2000ImageIO failed to open file for writing: " << this->GetFileName() << std::endl
|
469 |
+
- << "Reason: "
|
470 |
+
- << itksys::SystemTools::GetLastSystemError());
|
471 |
+
- }
|
472 |
+
-
|
473 |
+
/* open a byte stream for writing */
|
474 |
+
/* allocate memory for all tiles */
|
475 |
+
- opj_stream_t * cio = opj_stream_create_default_file_stream(l_file, false);
|
476 |
+
+ opj_stream_t * cio = opj_stream_create_default_file_stream(parameters.outfile, false);
|
477 |
+
if (!cio)
|
478 |
+
{
|
479 |
+
itkExceptionMacro("JPEG2000ImageIO failed to write file: "
|
480 |
+
@@ -1017,8 +960,7 @@ JPEG2000ImageIO ::Write(const void * buffer)
|
481 |
+
if (!bSuccess)
|
482 |
+
{
|
483 |
+
opj_stream_destroy(cio);
|
484 |
+
- fclose(l_file);
|
485 |
+
- itkExceptionMacro("JPEG2000ImageIO failed to write file: " << this->GetFileName() << std::endl
|
486 |
+
+ itkExceptionMacro("JPEG2000ImageIO failed to write file: " << this->GetFileName() << std::endl
|
487 |
+
<< "Reason: opj_start_compress returns false");
|
488 |
+
}
|
489 |
+
|
490 |
+
@@ -1026,7 +968,6 @@ JPEG2000ImageIO ::Write(const void * buffer)
|
491 |
+
if (!bSuccess)
|
492 |
+
{
|
493 |
+
opj_stream_destroy(cio);
|
494 |
+
- fclose(l_file);
|
495 |
+
itkExceptionMacro("JPEG2000ImageIO failed to write file: " << this->GetFileName() << std::endl
|
496 |
+
<< "Reason: opj_encode returns false");
|
497 |
+
}
|
498 |
+
@@ -1035,14 +976,12 @@ JPEG2000ImageIO ::Write(const void * buffer)
|
499 |
+
if (!bSuccess)
|
500 |
+
{
|
501 |
+
opj_stream_destroy(cio);
|
502 |
+
- fclose(l_file);
|
503 |
+
itkExceptionMacro("JPEG2000ImageIO failed to write file: " << this->GetFileName() << std::endl
|
504 |
+
<< "Reason: opj_end_compress returns false");
|
505 |
+
}
|
506 |
+
|
507 |
+
/* close and free the byte stream */
|
508 |
+
opj_stream_destroy(cio);
|
509 |
+
- fclose(l_file);
|
510 |
+
|
511 |
+
/* free remaining compression structures */
|
512 |
+
opj_destroy_codec(cinfo);
|
513 |
+
diff --git a/Modules/ThirdParty/OpenJPEG/CMakeLists.txt b/Modules/ThirdParty/OpenJPEG/CMakeLists.txt
|
514 |
+
index 103eaa9dd..eb8989135 100644
|
515 |
+
--- a/Modules/ThirdParty/OpenJPEG/CMakeLists.txt
|
516 |
+
+++ b/Modules/ThirdParty/OpenJPEG/CMakeLists.txt
|
517 |
+
@@ -1,12 +1,25 @@
|
518 |
+
project(ITKOpenJPEG)
|
519 |
+
set(ITKOpenJPEG_THIRD_PARTY 1)
|
520 |
+
|
521 |
+
-set(ITKOpenJPEG_INCLUDE_DIRS
|
522 |
+
- ${ITKOpenJPEG_BINARY_DIR}/src/openjpeg
|
523 |
+
- ${ITKOpenJPEG_SOURCE_DIR}/src/openjpeg
|
524 |
+
- )
|
525 |
+
-set(ITKOpenJPEG_LIBRARIES itkopenjpeg)
|
526 |
+
-set(ITK_LIBRARY_PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS FALSE)
|
527 |
+
+if(ITK_USE_SYSTEM_OpenJPEG)
|
528 |
+
+ find_package(OpenJPEG REQUIRED)
|
529 |
+
+ if(TARGET openjp2)
|
530 |
+
+ set(ITKOpenJPEG_LIBRARIES ${OPENJPEG_LIBRARIES})
|
531 |
+
+ else()
|
532 |
+
+ message(FATAL_ERROR "OpenJPEG target openjp2 missing!")
|
533 |
+
+ endif()
|
534 |
+
+ set(ITKOpenJPEG_INCLUDE_DIRS
|
535 |
+
+ ${ITKOpenJPEG_BINARY_DIR}/src/openjpeg
|
536 |
+
+ ${ITKOpenJPEG_SOURCE_DIR}/src/openjpeg
|
537 |
+
+ )
|
538 |
+
+else()
|
539 |
+
+ set(ITKOpenJPEG_INCLUDE_DIRS
|
540 |
+
+ ${ITKOpenJPEG_BINARY_DIR}/src/openjpeg
|
541 |
+
+ ${ITKOpenJPEG_SOURCE_DIR}/src/openjpeg
|
542 |
+
+ )
|
543 |
+
+ set(ITKOpenJPEG_LIBRARIES itkopenjpeg)
|
544 |
+
+ set(ITK_LIBRARY_PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS FALSE)
|
545 |
+
+endif()
|
546 |
+
|
547 |
+
itk_module_impl()
|
548 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/openjpeg2.patch
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt b/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt
|
2 |
+
index 565cc338b..c061f0721 100644
|
3 |
+
--- a/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt
|
4 |
+
+++ b/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/CMakeLists.txt
|
5 |
+
@@ -194,7 +194,7 @@ mark_as_advanced(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH)
|
6 |
+
# configure name mangling to allow multiple libraries to coexist
|
7 |
+
# peacefully
|
8 |
+
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in)
|
9 |
+
-set(MANGLE_PREFIX ${OPENJPEG_LIBRARY_NAME})
|
10 |
+
+set(MANGLE_PREFIX)
|
11 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in
|
12 |
+
${CMAKE_CURRENT_BINARY_DIR}/openjpeg_mangle.h
|
13 |
+
@ONLY)
|
14 |
+
diff --git a/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/src/lib/openjp2/CMakeLists.txt b/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/src/lib/openjp2/CMakeLists.txt
|
15 |
+
index c4adb91a2..89b731d88 100644
|
16 |
+
--- a/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/src/lib/openjp2/CMakeLists.txt
|
17 |
+
+++ b/Modules/ThirdParty/GDCM/src/gdcm/Utilities/gdcmopenjpeg/src/lib/openjp2/CMakeLists.txt
|
18 |
+
@@ -3,7 +3,7 @@ include_regular_expression("^.*$")
|
19 |
+
# configure name mangling to allow multiple libraries to coexist
|
20 |
+
# peacefully
|
21 |
+
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in)
|
22 |
+
-set(MANGLE_PREFIX ${OPENJPEG_LIBRARY_NAME})
|
23 |
+
+set(MANGLE_PREFIX)
|
24 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in
|
25 |
+
${CMAKE_CURRENT_BINARY_DIR}/openjpeg_mangle.h
|
26 |
+
@ONLY)
|
27 |
+
diff --git a/Modules/ThirdParty/OpenJPEG/CMakeLists.txt b/Modules/ThirdParty/OpenJPEG/CMakeLists.txt
|
28 |
+
index 3811e52f4..a41e9264e 100644
|
29 |
+
--- a/Modules/ThirdParty/OpenJPEG/CMakeLists.txt
|
30 |
+
+++ b/Modules/ThirdParty/OpenJPEG/CMakeLists.txt
|
31 |
+
@@ -8,10 +8,10 @@ if(ITK_USE_SYSTEM_OpenJPEG)
|
32 |
+
else()
|
33 |
+
message(FATAL_ERROR "OpenJPEG target openjp2 missing!")
|
34 |
+
endif()
|
35 |
+
- set(ITKOpenJPEG_INCLUDE_DIRS
|
36 |
+
- ${ITKOpenJPEG_BINARY_DIR}/src/openjpeg
|
37 |
+
- ${ITKOpenJPEG_SOURCE_DIR}/src/openjpeg
|
38 |
+
- )
|
39 |
+
+ # set(ITKOpenJPEG_INCLUDE_DIRS
|
40 |
+
+ # ${ITKOpenJPEG_BINARY_DIR}/src/openjpeg
|
41 |
+
+ # ${ITKOpenJPEG_SOURCE_DIR}/src/openjpeg
|
42 |
+
+ # )
|
43 |
+
else()
|
44 |
+
set(ITKOpenJPEG_INCLUDE_DIRS
|
45 |
+
${ITKOpenJPEG_BINARY_DIR}/src/openjpeg
|
46 |
+
diff --git a/Modules/ThirdParty/OpenJPEG/src/openjpeg/CMakeLists.txt b/Modules/ThirdParty/OpenJPEG/src/openjpeg/CMakeLists.txt
|
47 |
+
index e62e43eda..35dc89976 100644
|
48 |
+
--- a/Modules/ThirdParty/OpenJPEG/src/openjpeg/CMakeLists.txt
|
49 |
+
+++ b/Modules/ThirdParty/OpenJPEG/src/openjpeg/CMakeLists.txt
|
50 |
+
@@ -68,7 +68,7 @@ CONFIGURE_FILE(${ITK3P_OpenJPEG_SOURCE_DIR}/opj_configure.h.in
|
51 |
+
# configure name mangling to allow multiple libraries to coexist
|
52 |
+
# peacefully
|
53 |
+
if(EXISTS ${ITK3P_OpenJPEG_SOURCE_DIR}/openjpeg_mangle.h.in)
|
54 |
+
-set(MANGLE_PREFIX itk)
|
55 |
+
+#set(MANGLE_PREFIX itk)
|
56 |
+
configure_file(${ITK3P_OpenJPEG_SOURCE_DIR}/openjpeg_mangle.h.in
|
57 |
+
${ITK3P_OpenJPEG_BINARY_DIR}/openjpeg_mangle.h
|
58 |
+
@ONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/portfile.cmake
ADDED
@@ -0,0 +1,206 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_buildpath_length_warning(37)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO InsightSoftwareConsortium/ITK
|
6 |
+
REF 95800fd4d4b08678a6c0ebb63eb242893025b660 #5.2.1
|
7 |
+
SHA512 fe703bc6ed681cb9983d7d6e21c8ffa7650337e470c09a7241de58a463c23e315516b1a81a18c14f682706056a0ec66932b63d2e24945bdcea03169bc1122bb2
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
double-conversion.patch
|
11 |
+
openjpeg.patch
|
12 |
+
openjpeg2.patch
|
13 |
+
var_libraries.patch
|
14 |
+
wrapping.patch
|
15 |
+
opencl.patch
|
16 |
+
use-the-lrintf-intrinsic.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
20 |
+
FEATURES
|
21 |
+
"vtk" Module_ITKVtkGlue
|
22 |
+
"cuda" Module_ITKCudaCommon # Requires RTK?
|
23 |
+
#"cuda" CUDA_HAVE_GPU # Automatically set by FindCUDA?
|
24 |
+
"cufftw" ITK_USE_CUFFTW
|
25 |
+
"opencl" ITK_USE_GPU
|
26 |
+
"tbb" Module_ITKTBB
|
27 |
+
"rtk" Module_RTK
|
28 |
+
"tools" RTK_BUILD_APPLICATIONS
|
29 |
+
"opencv" Module_ITKVideoBridgeOpenCV
|
30 |
+
# There are a lot of more (remote) modules and options in ITK
|
31 |
+
# feel free to add those as a feature
|
32 |
+
)
|
33 |
+
|
34 |
+
if("cufftw" IN_LIST FEATURES)
|
35 |
+
# Alternativly set CUFFT_LIB and CUFFTW_LIB
|
36 |
+
if(WIN32)
|
37 |
+
file(TO_CMAKE_PATH "$ENV{CUDA_PATH}" CUDA_PATH)
|
38 |
+
set(CUDA_LIB_PATH "${CUDA_PATH}")
|
39 |
+
|
40 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
41 |
+
string(APPEND CUDA_LIB_PATH "/lib/x64")
|
42 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
43 |
+
string(APPEND CUDA_LIB_PATH "/lib/Win32")
|
44 |
+
message(FATAL_ERROR "CUFFTW is not supported on architecture ${VCPKG_TARGET_ARCHITECTURE}")
|
45 |
+
else()
|
46 |
+
message(FATAL_ERROR "Architecture ${VCPKG_TARGET_ARCHITECTURE} not supported !")
|
47 |
+
endif()
|
48 |
+
|
49 |
+
list(APPEND ADDITIONAL_OPTIONS
|
50 |
+
"-DFFTW_LIB_SEARCHPATH=${CUDA_LIB_PATH}"
|
51 |
+
"-DFFTW_INCLUDE_PATH=${CUDA_PATH}/include"
|
52 |
+
"-DCUFFTW_INCLUDE_PATH=${CUDA_PATH}/include"
|
53 |
+
)
|
54 |
+
endif()
|
55 |
+
endif()
|
56 |
+
|
57 |
+
if("rtk" IN_LIST FEATURES)
|
58 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
59 |
+
message(FATAL_ERROR "RTK is not supported on architecture ${VCPKG_TARGET_ARCHITECTURE}")
|
60 |
+
endif()
|
61 |
+
SET(BUILD_RTK ON)
|
62 |
+
list(APPEND ADDITIONAL_OPTIONS
|
63 |
+
"-DModule_RTK_GIT_TAG=8099212f715231d093f7d6a1114daecf45d871ed" # RTK latest versions (11.05.2020)
|
64 |
+
)
|
65 |
+
if("cuda" IN_LIST FEATURES)
|
66 |
+
list(APPEND ADDITIONAL_OPTIONS "-DRTK_USE_CUDA=ON")
|
67 |
+
#RTK + CUDA + PYTHON + dynamic library linkage will fail and needs upstream fixes.
|
68 |
+
endif()
|
69 |
+
endif()
|
70 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/Modules/Remote/RTK")
|
71 |
+
|
72 |
+
if("opencl" IN_LIST FEATURES)
|
73 |
+
list(APPEND ADDITIONAL_OPTIONS # Wrapping options required by OpenCL if build with Python Wrappers
|
74 |
+
-DITK_WRAP_unsigned_long_long=ON
|
75 |
+
-DITK_WRAP_signed_long_long=ON
|
76 |
+
)
|
77 |
+
endif()
|
78 |
+
if("tools" IN_LIST FEATURES)
|
79 |
+
|
80 |
+
if("rtk" IN_LIST FEATURES)
|
81 |
+
list(APPEND TOOL_NAMES rtkadmmtotalvariation rtkadmmwavelets rtkamsterdamshroud rtkbackprojections rtkbioscangeometry rtkcheckimagequality rtkconjugategradient
|
82 |
+
rtkdigisensgeometry rtkdrawgeometricphantom rtkdrawshepploganphantom rtkdualenergysimplexdecomposition rtkelektasynergygeometry rtkextractphasesignal
|
83 |
+
rtkextractshroudsignal rtkfdk rtkfdktwodweights rtkfieldofview rtkforwardprojections rtkfourdconjugategradient rtkfourdfdk rtkfourdrooster rtkfourdsart
|
84 |
+
rtkgaincorrection rtki0estimation rtkimagxgeometry rtkiterativefdk rtklagcorrection rtklastdimensionl0gradientdenoising rtklut rtkmaskcollimation rtkmcrooster
|
85 |
+
rtkmotioncompensatedfourdconjugategradient rtkorageometry rtkosem rtkoverlayphaseandshroud rtkparkershortscanweighting rtkprojectgeometricphantom
|
86 |
+
rtkprojectionmatrix rtkprojections rtkprojectshepploganphantom rtkramp rtkrayboxintersection rtkrayquadricintersection rtkregularizedconjugategradient
|
87 |
+
rtksart rtkscatterglarecorrection rtksimulatedgeometry rtkspectraldenoiseprojections rtkspectralforwardmodel rtkspectralonestep rtkspectralrooster rtkspectralsimplexdecomposition
|
88 |
+
rtksubselect rtktotalnuclearvariationdenoising rtktotalvariationdenoising rtktutorialapplication rtkvarianobigeometry rtkvarianprobeamgeometry rtkvectorconjugategradient
|
89 |
+
rtkwangdisplaceddetectorweighting rtkwarpedbackprojectsequence rtkwarpedforwardprojectsequence rtkwaveletsdenoising rtkxradgeometry)
|
90 |
+
endif()
|
91 |
+
endif()
|
92 |
+
if("vtk" IN_LIST FEATURES)
|
93 |
+
vcpkg_find_acquire_program(PYTHON3)
|
94 |
+
list(APPEND ADDITIONAL_OPTIONS
|
95 |
+
"-DPython3_EXECUTABLE:PATH=${PYTHON3}" # Required by mvtk if vtk[python] was build
|
96 |
+
)
|
97 |
+
endif()
|
98 |
+
if("python" IN_LIST FEATURES)
|
99 |
+
message(STATUS "${PORT} builds a long time (>1h) with python wrappers enabled!")
|
100 |
+
vcpkg_find_acquire_program(PYTHON3)
|
101 |
+
vcpkg_find_acquire_program(SWIG) # Swig is only required for wrapping!
|
102 |
+
get_filename_component(SWIG_DIR "${SWIG}" DIRECTORY)
|
103 |
+
list(APPEND ADDITIONAL_OPTIONS
|
104 |
+
-DITK_WRAP_PYTHON=ON
|
105 |
+
-DPython3_FIND_REGISTRY=NEVER
|
106 |
+
"-DPython3_EXECUTABLE:PATH=${PYTHON3}" # Required by more than one feature
|
107 |
+
"-DSWIG_EXECUTABLE=${SWIG}"
|
108 |
+
"-DSWIG_DIR=${SWIG_DIR}"
|
109 |
+
)
|
110 |
+
#ITK_PYTHON_SITE_PACKAGES_SUFFIX should be set to the install dir of the site-packages within vcpkg
|
111 |
+
endif()
|
112 |
+
if("opencv" IN_LIST FEATURES)
|
113 |
+
message(STATUS "${PORT} includes the ITKVideoBridgeOpenCV")
|
114 |
+
list(APPEND ADDITIONAL_OPTIONS
|
115 |
+
-DModule_ITKVideoBridgeOpenCV:BOOL=ON
|
116 |
+
)
|
117 |
+
endif()
|
118 |
+
|
119 |
+
set(USE_64BITS_IDS OFF)
|
120 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL x64 OR VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
121 |
+
set(USE_64BITS_IDS ON)
|
122 |
+
endif()
|
123 |
+
|
124 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/CMake/FindOpenCL.cmake")
|
125 |
+
vcpkg_cmake_configure(
|
126 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
127 |
+
DISABLE_PARALLEL_CONFIGURE
|
128 |
+
OPTIONS
|
129 |
+
-DBUILD_TESTING=OFF
|
130 |
+
-DBUILD_EXAMPLES=OFF
|
131 |
+
-DBUILD_PKGCONFIG_FILES=OFF
|
132 |
+
-DITK_DOXYGEN_HTML=OFF
|
133 |
+
-DDO_NOT_INSTALL_ITK_TEST_DRIVER=ON
|
134 |
+
-DITK_SKIP_PATH_LENGTH_CHECKS=ON
|
135 |
+
-DITK_INSTALL_DATA_DIR=share/itk/data
|
136 |
+
-DITK_INSTALL_DOC_DIR=share/itk/doc
|
137 |
+
-DITK_INSTALL_PACKAGE_DIR=share/itk
|
138 |
+
-DITK_USE_64BITS_IDS=${USE_64BITS_IDS}
|
139 |
+
-DITK_USE_CONCEPT_CHECKING=ON
|
140 |
+
#-DITK_USE_SYSTEM_LIBRARIES=ON # enables USE_SYSTEM for all third party libraries, some of which do not have vcpkg ports such as CastXML, SWIG, MINC etc
|
141 |
+
-DITK_USE_SYSTEM_DOUBLECONVERSION=ON
|
142 |
+
-DITK_USE_SYSTEM_EXPAT=ON
|
143 |
+
-DITK_USE_SYSTEM_JPEG=ON
|
144 |
+
-DITK_USE_SYSTEM_PNG=ON
|
145 |
+
-DITK_USE_SYSTEM_TIFF=ON
|
146 |
+
-DITK_USE_SYSTEM_ZLIB=ON
|
147 |
+
-DITK_USE_SYSTEM_EIGEN=ON
|
148 |
+
-DITK_USE_SYSTEM_FFTW=ON
|
149 |
+
-DITK_USE_SYSTEM_HDF5=ON # HDF5 was problematic in the past and still is. ITK still has not figured out how to do it correctly!
|
150 |
+
-DITK_USE_SYSTEM_GDCM=ON
|
151 |
+
-DITK_USE_SYSTEM_OpenJPEG=ON # Added by VCPKG
|
152 |
+
-DITK_USE_SYSTEM_DCMTK=ON
|
153 |
+
-DDCMTK_USE_ICU=ON
|
154 |
+
-DITK_USE_SYSTEM_ICU=ON
|
155 |
+
#-DITK_USE_SYSTEM_VXL=ON
|
156 |
+
#-DITK_USE_SYSTEM_CASTXML=ON # needs to be added to vcpkg_find_acquire_program https://data.kitware.com/api/v1/file/hashsum/sha512/b8b6f0aff11fe89ab2fcd1949cc75f2c2378a7bc408827a004396deb5ff5a9976bffe8a597f8db1b74c886ea39eb905e610dce8f5bd7586a4d6c196d7349da8d/download
|
157 |
+
-DITK_USE_SYSTEM_MINC=ON
|
158 |
+
-DITK_USE_SYSTEM_SWIG=ON
|
159 |
+
-DITK_FORBID_DOWNLOADS=OFF # This should be turned on some day, however for now ITK does download specific versions so it shouldn't spontaneously break. Remote Modules would probably break with this!
|
160 |
+
-DINSTALL_GTEST=OFF
|
161 |
+
-DITK_USE_SYSTEM_GOOGLETEST=ON
|
162 |
+
-DEXECUTABLE_OUTPUT_PATH=tools/${PORT}
|
163 |
+
|
164 |
+
# TODO
|
165 |
+
#-DVXL_USE_GEOTIFF=ON
|
166 |
+
-DVXL_USE_LFS=ON
|
167 |
+
|
168 |
+
-DITK_MINIMUM_COMPLIANCE_LEVEL:STRING=1 # To Display all remote modules within cmake-gui
|
169 |
+
#-DModule_IOSTL=ON # example how to turn on a non-default module
|
170 |
+
#-DModule_MorphologicalContourInterpolation=ON # example how to turn on a remote module
|
171 |
+
#-DModule_RLEImage=ON # example how to turn on a remote module
|
172 |
+
|
173 |
+
# Some additional wraping options
|
174 |
+
#-DITK_WRAP_double=ON
|
175 |
+
#-DITK_WRAP_complex_double=ON
|
176 |
+
#-DITK_WRAP_covariant_vector_double=ON
|
177 |
+
#-DITK_WRAP_vector_double=ON
|
178 |
+
|
179 |
+
${FEATURE_OPTIONS}
|
180 |
+
${ADDITIONAL_OPTIONS}
|
181 |
+
|
182 |
+
OPTIONS_DEBUG ${OPTIONS_DEBUG}
|
183 |
+
OPTIONS_RELEASE ${OPTIONS_RELEASE}
|
184 |
+
)
|
185 |
+
if(BUILD_RTK) # Remote Modules are only downloaded on configure.
|
186 |
+
# TODO: In the future try to download via vcpkg_from_github and move the files. That way patching does not need this workaround
|
187 |
+
vcpkg_apply_patches(SOURCE_PATH "${SOURCE_PATH}/Modules/Remote/RTK" QUIET PATCHES rtk/already_defined.patch rtk/unresolved.patch)
|
188 |
+
endif()
|
189 |
+
vcpkg_cmake_install()
|
190 |
+
vcpkg_copy_pdbs()
|
191 |
+
vcpkg_cmake_config_fixup()
|
192 |
+
|
193 |
+
if(TOOL_NAMES)
|
194 |
+
vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN)
|
195 |
+
endif()
|
196 |
+
|
197 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
|
198 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
199 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
200 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
201 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/ITK-5.3/vcl_where_root_dir.h")
|
202 |
+
|
203 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/ITK-5.3/itk_eigen.h" "include(${SOURCE_PATH}/CMake/UseITK.cmake)" "include(UseITK)")
|
204 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/ITK-5.3/itk_eigen.h" "message(STATUS \"From ITK: Eigen3_DIR: ${CURRENT_INSTALLED_DIR}/share/eigen3\")" "")
|
205 |
+
|
206 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/rtk/already_defined.patch
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/rtkProjectionGeometry.h b/include/rtkProjectionGeometry.h
|
2 |
+
index e5831611f..73ed2b74f 100644
|
3 |
+
--- a/include/rtkProjectionGeometry.h
|
4 |
+
+++ b/include/rtkProjectionGeometry.h
|
5 |
+
@@ -23,6 +23,7 @@
|
6 |
+
|
7 |
+
#include <vector>
|
8 |
+
|
9 |
+
+#include "RTKExport.h"
|
10 |
+
#include "rtkMacro.h"
|
11 |
+
|
12 |
+
namespace rtk
|
13 |
+
@@ -67,25 +68,18 @@ public:
|
14 |
+
* with the i-th matrix provides the physical coordinate on
|
15 |
+
* the i-th projection.
|
16 |
+
*/
|
17 |
+
- const std::vector<MatrixType> &
|
18 |
+
- GetMatrices() const
|
19 |
+
- {
|
20 |
+
- return this->m_Matrices;
|
21 |
+
- }
|
22 |
+
+ itkGetConstReferenceMacro(Matrices,std::vector<MatrixType>)
|
23 |
+
|
24 |
+
/** Get the i-th projection matrix. */
|
25 |
+
MatrixType
|
26 |
+
- GetMatrix(const unsigned int i) const
|
27 |
+
- {
|
28 |
+
- return this->m_Matrices[i];
|
29 |
+
- }
|
30 |
+
+ GetMatrix(const unsigned int i) const;
|
31 |
+
|
32 |
+
/** Empty the geometry object. */
|
33 |
+
virtual void
|
34 |
+
Clear();
|
35 |
+
|
36 |
+
protected:
|
37 |
+
- ProjectionGeometry() = default;
|
38 |
+
+ ProjectionGeometry();
|
39 |
+
~ProjectionGeometry() override = default;
|
40 |
+
|
41 |
+
void
|
42 |
+
@@ -93,11 +87,7 @@ protected:
|
43 |
+
|
44 |
+
/** Add projection matrix */
|
45 |
+
virtual void
|
46 |
+
- AddMatrix(const MatrixType & m)
|
47 |
+
- {
|
48 |
+
- this->m_Matrices.push_back(m);
|
49 |
+
- this->Modified();
|
50 |
+
- }
|
51 |
+
+ AddMatrix(const MatrixType & m);
|
52 |
+
|
53 |
+
private:
|
54 |
+
/** Projection matrices */
|
55 |
+
@@ -105,6 +95,9 @@ private:
|
56 |
+
};
|
57 |
+
} // namespace rtk
|
58 |
+
|
59 |
+
-#include "rtkProjectionGeometry.hxx"
|
60 |
+
+#ifndef ITK_MANUAL_INSTANTIATION
|
61 |
+
+# include "rtkProjectionGeometry.hxx"
|
62 |
+
+#endif
|
63 |
+
+
|
64 |
+
|
65 |
+
#endif // rtkProjectionGeometry_h
|
66 |
+
diff --git a/include/rtkProjectionGeometry.hxx b/include/rtkProjectionGeometry.hxx
|
67 |
+
index 192265812..97dfe8c3a 100644
|
68 |
+
--- a/include/rtkProjectionGeometry.hxx
|
69 |
+
+++ b/include/rtkProjectionGeometry.hxx
|
70 |
+
@@ -23,6 +23,8 @@
|
71 |
+
|
72 |
+
namespace rtk
|
73 |
+
{
|
74 |
+
+template <unsigned int TDimension>
|
75 |
+
+ProjectionGeometry<TDimension>::ProjectionGeometry() = default;
|
76 |
+
|
77 |
+
template <unsigned int TDimension>
|
78 |
+
void
|
79 |
+
@@ -43,6 +45,21 @@ ProjectionGeometry<TDimension>::Clear()
|
80 |
+
this->Modified();
|
81 |
+
}
|
82 |
+
|
83 |
+
+template <unsigned int TDimension>
|
84 |
+
+typename ProjectionGeometry<TDimension>::MatrixType
|
85 |
+
+ProjectionGeometry<TDimension>::GetMatrix(const unsigned int i) const
|
86 |
+
+{
|
87 |
+
+ return this->m_Matrices[i];
|
88 |
+
+}
|
89 |
+
+
|
90 |
+
+template <unsigned int TDimension>
|
91 |
+
+void
|
92 |
+
+ProjectionGeometry<TDimension>::AddMatrix(const typename ProjectionGeometry<TDimension>::MatrixType & m)
|
93 |
+
+{
|
94 |
+
+ this->m_Matrices.push_back(m);
|
95 |
+
+ this->Modified();
|
96 |
+
+}
|
97 |
+
+
|
98 |
+
} // namespace rtk
|
99 |
+
|
100 |
+
#endif // rtkProjectionGeometry_hxx
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/rtk/unresolved.patch
ADDED
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/rtkDCMImagXImageIO.h b/include/rtkDCMImagXImageIO.h
|
2 |
+
index 2a70ae046..69abb409e 100644
|
3 |
+
--- a/include/rtkDCMImagXImageIO.h
|
4 |
+
+++ b/include/rtkDCMImagXImageIO.h
|
5 |
+
@@ -18,7 +18,7 @@
|
6 |
+
|
7 |
+
#ifndef rtkDCMImagXImageIO_h
|
8 |
+
#define rtkDCMImagXImageIO_h
|
9 |
+
-
|
10 |
+
+#include "RTKExport.h"
|
11 |
+
#include <itkGDCMImageIO.h>
|
12 |
+
|
13 |
+
#include "rtkMacro.h"
|
14 |
+
@@ -32,7 +32,7 @@ namespace rtk
|
15 |
+
*
|
16 |
+
* \ingroup RTK
|
17 |
+
*/
|
18 |
+
-class DCMImagXImageIO : public itk::GDCMImageIO
|
19 |
+
+class RTK_EXPORT DCMImagXImageIO : public itk::GDCMImageIO
|
20 |
+
{
|
21 |
+
public:
|
22 |
+
ITK_DISALLOW_COPY_AND_ASSIGN(DCMImagXImageIO);
|
23 |
+
diff --git a/include/rtkEdfImageIO.h b/include/rtkEdfImageIO.h
|
24 |
+
index 66499c56b..7b16fbc5a 100644
|
25 |
+
--- a/include/rtkEdfImageIO.h
|
26 |
+
+++ b/include/rtkEdfImageIO.h
|
27 |
+
@@ -18,7 +18,7 @@
|
28 |
+
|
29 |
+
#ifndef rtkEdfImageIO_h
|
30 |
+
#define rtkEdfImageIO_h
|
31 |
+
-
|
32 |
+
+#include "RTKExport.h"
|
33 |
+
#include <itkImageIOBase.h>
|
34 |
+
#include <fstream>
|
35 |
+
#include <cstring>
|
36 |
+
@@ -36,7 +36,7 @@ namespace rtk
|
37 |
+
*
|
38 |
+
* \ingroup RTK IOFilters
|
39 |
+
*/
|
40 |
+
-class EdfImageIO : public itk::ImageIOBase
|
41 |
+
+class RTK_EXPORT EdfImageIO : public itk::ImageIOBase
|
42 |
+
{
|
43 |
+
public:
|
44 |
+
ITK_DISALLOW_COPY_AND_ASSIGN(EdfImageIO);
|
45 |
+
diff --git a/include/rtkHisImageIO.h b/include/rtkHisImageIO.h
|
46 |
+
index 2ef2005dd..95449b8a6 100644
|
47 |
+
--- a/include/rtkHisImageIO.h
|
48 |
+
+++ b/include/rtkHisImageIO.h
|
49 |
+
@@ -19,6 +19,8 @@
|
50 |
+
#ifndef rtkHisImageIO_h
|
51 |
+
#define rtkHisImageIO_h
|
52 |
+
|
53 |
+
+#include "RTKExport.h"
|
54 |
+
+
|
55 |
+
// itk include
|
56 |
+
#include <itkImageIOBase.h>
|
57 |
+
#include "rtkMacro.h"
|
58 |
+
@@ -35,7 +37,7 @@ namespace rtk
|
59 |
+
*
|
60 |
+
* \ingroup RTK IOFilters
|
61 |
+
*/
|
62 |
+
-class HisImageIO : public itk::ImageIOBase
|
63 |
+
+class RTK_EXPORT HisImageIO : public itk::ImageIOBase
|
64 |
+
{
|
65 |
+
public:
|
66 |
+
/** Standard class type alias. */
|
67 |
+
diff --git a/include/rtkHncImageIO.h b/include/rtkHncImageIO.h
|
68 |
+
index 7b9539bde..dc9dca759 100644
|
69 |
+
--- a/include/rtkHncImageIO.h
|
70 |
+
+++ b/include/rtkHncImageIO.h
|
71 |
+
@@ -19,9 +19,11 @@
|
72 |
+
#ifndef rtkHncImageIO_h
|
73 |
+
#define rtkHncImageIO_h
|
74 |
+
|
75 |
+
+#include "RTKExport.h"
|
76 |
+
+
|
77 |
+
// itk include
|
78 |
+
#include <itkImageIOBase.h>
|
79 |
+
-#include "itksys/SystemTools.hxx"
|
80 |
+
+//#include "itksys/SystemTools.hxx"
|
81 |
+
|
82 |
+
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
83 |
+
// SR: taken from
|
84 |
+
@@ -43,7 +45,7 @@ namespace rtk
|
85 |
+
*
|
86 |
+
* \ingroup RTK IOFilters
|
87 |
+
*/
|
88 |
+
-class HncImageIO : public itk::ImageIOBase
|
89 |
+
+class RTK_EXPORT HncImageIO : public itk::ImageIOBase
|
90 |
+
{
|
91 |
+
public:
|
92 |
+
/** Standard class type alias. */
|
93 |
+
diff --git a/include/rtkHncImageIOFactory.h b/include/rtkHncImageIOFactory.h
|
94 |
+
index 2bca8f77e..1d5a97938 100644
|
95 |
+
--- a/include/rtkHncImageIOFactory.h
|
96 |
+
+++ b/include/rtkHncImageIOFactory.h
|
97 |
+
@@ -38,7 +38,7 @@ namespace rtk
|
98 |
+
*
|
99 |
+
* \ingroup RTK IOFilters
|
100 |
+
*/
|
101 |
+
-class HncImageIOFactory : public itk::ObjectFactoryBase
|
102 |
+
+class RTK_EXPORT HncImageIOFactory : public itk::ObjectFactoryBase
|
103 |
+
{
|
104 |
+
public:
|
105 |
+
/** Standard class type alias. */
|
106 |
+
diff --git a/include/rtkHndImageIO.h b/include/rtkHndImageIO.h
|
107 |
+
index 5a07897cc..5f843362a 100644
|
108 |
+
--- a/include/rtkHndImageIO.h
|
109 |
+
+++ b/include/rtkHndImageIO.h
|
110 |
+
@@ -19,6 +19,8 @@
|
111 |
+
#ifndef rtkHndImageIO_h
|
112 |
+
#define rtkHndImageIO_h
|
113 |
+
|
114 |
+
+#include "RTKExport.h"
|
115 |
+
+
|
116 |
+
// itk include
|
117 |
+
#include <itkImageIOBase.h>
|
118 |
+
|
119 |
+
@@ -43,7 +45,7 @@ namespace rtk
|
120 |
+
*
|
121 |
+
* \ingroup RTK IOFilters
|
122 |
+
*/
|
123 |
+
-class HndImageIO : public itk::ImageIOBase
|
124 |
+
+class RTK_EXPORT HndImageIO : public itk::ImageIOBase
|
125 |
+
{
|
126 |
+
public:
|
127 |
+
/** Standard class type alias. */
|
128 |
+
diff --git a/include/rtkImagXImageIO.h b/include/rtkImagXImageIO.h
|
129 |
+
index d69e9a790..d6cc8388e 100644
|
130 |
+
--- a/include/rtkImagXImageIO.h
|
131 |
+
+++ b/include/rtkImagXImageIO.h
|
132 |
+
@@ -18,7 +18,7 @@
|
133 |
+
|
134 |
+
#ifndef rtkImagXImageIO_h
|
135 |
+
#define rtkImagXImageIO_h
|
136 |
+
-
|
137 |
+
+#include "RTKExport.h"
|
138 |
+
#include <itkImageIOBase.h>
|
139 |
+
#include <fstream>
|
140 |
+
#include <cstring>
|
141 |
+
@@ -34,7 +34,7 @@ namespace rtk
|
142 |
+
*
|
143 |
+
* \ingroup RTK
|
144 |
+
*/
|
145 |
+
-class ImagXImageIO : public itk::ImageIOBase
|
146 |
+
+class RTK_EXPORT ImagXImageIO : public itk::ImageIOBase
|
147 |
+
{
|
148 |
+
public:
|
149 |
+
/** Standard class type alias. */
|
150 |
+
diff --git a/include/rtkOraImageIO.h b/include/rtkOraImageIO.h
|
151 |
+
index ece525a42..2d5332872 100644
|
152 |
+
--- a/include/rtkOraImageIO.h
|
153 |
+
+++ b/include/rtkOraImageIO.h
|
154 |
+
@@ -19,6 +19,8 @@
|
155 |
+
#ifndef rtkOraImageIO_h
|
156 |
+
#define rtkOraImageIO_h
|
157 |
+
|
158 |
+
+#include "RTKExport.h"
|
159 |
+
+
|
160 |
+
// This is done to avoid any interference with zlib
|
161 |
+
#ifdef OF
|
162 |
+
# undef OF
|
163 |
+
@@ -41,7 +43,7 @@ namespace rtk
|
164 |
+
*
|
165 |
+
* \ingroup RTK IOFilters
|
166 |
+
*/
|
167 |
+
-class OraImageIO : public itk::MetaImageIO
|
168 |
+
+class RTK_EXPORT OraImageIO : public itk::MetaImageIO
|
169 |
+
{
|
170 |
+
public:
|
171 |
+
/** Standard class type alias. */
|
172 |
+
diff --git a/include/rtkXRadImageIO.h b/include/rtkXRadImageIO.h
|
173 |
+
index a72c934e4..0a92afa22 100644
|
174 |
+
--- a/include/rtkXRadImageIO.h
|
175 |
+
+++ b/include/rtkXRadImageIO.h
|
176 |
+
@@ -19,6 +19,7 @@
|
177 |
+
#ifndef rtkXRadImageIO_h
|
178 |
+
#define rtkXRadImageIO_h
|
179 |
+
|
180 |
+
+#include "RTKExport.h"
|
181 |
+
#include <itkImageIOBase.h>
|
182 |
+
#include <fstream>
|
183 |
+
#include <cstring>
|
184 |
+
@@ -37,7 +38,7 @@ namespace rtk
|
185 |
+
*
|
186 |
+
* \ingroup RTK IOFilters
|
187 |
+
*/
|
188 |
+
-class XRadImageIO : public itk::ImageIOBase
|
189 |
+
+class RTK_EXPORT XRadImageIO : public itk::ImageIOBase
|
190 |
+
{
|
191 |
+
public:
|
192 |
+
/** Standard class type alias. */
|
193 |
+
diff --git a/include/rtkXimImageIO.h b/include/rtkXimImageIO.h
|
194 |
+
index ae789dbf9..741f05183 100644
|
195 |
+
--- a/include/rtkXimImageIO.h
|
196 |
+
+++ b/include/rtkXimImageIO.h
|
197 |
+
@@ -19,6 +19,7 @@
|
198 |
+
#ifndef rtkXimImageIO_h
|
199 |
+
#define rtkXimImageIO_h
|
200 |
+
|
201 |
+
+#include "RTKExport.h"
|
202 |
+
#include "rtkMacro.h"
|
203 |
+
|
204 |
+
// itk include
|
205 |
+
@@ -43,7 +44,7 @@ namespace rtk
|
206 |
+
*
|
207 |
+
* \ingroup RTK IOFilters
|
208 |
+
*/
|
209 |
+
-class XimImageIO : public itk::ImageIOBase
|
210 |
+
+class RTK_EXPORT XimImageIO : public itk::ImageIOBase
|
211 |
+
{
|
212 |
+
public:
|
213 |
+
/** Standard class type alias. */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/use-the-lrintf-intrinsic.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h b/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h
|
2 |
+
index e75a220d4d..4b13e1726a 100644
|
3 |
+
--- a/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h
|
4 |
+
+++ b/Modules/ThirdParty/OpenJPEG/src/openjpeg/opj_includes.h
|
5 |
+
@@ -87,8 +87,8 @@ Most compilers implement their own version of this keyword ...
|
6 |
+
#endif
|
7 |
+
#endif
|
8 |
+
|
9 |
+
-/* MSVC and Borland C do not have lrintf */
|
10 |
+
-#if defined(_MSC_VER) || defined(__BORLANDC__)
|
11 |
+
+/* MSVC pre 16.8 and Borland C do not have lrintf */
|
12 |
+
+#if (defined(_MSC_VER) && _MSC_VER < 1928) || defined(__BORLANDC__)
|
13 |
+
|
14 |
+
/* MSVC 64bits doesn't support _asm */
|
15 |
+
#if !defined(_WIN64)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/var_libraries.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMake/ITKModuleMacros.cmake b/CMake/ITKModuleMacros.cmake
|
2 |
+
index da9f3a902..60420bb0a 100644
|
3 |
+
--- a/CMake/ITKModuleMacros.cmake
|
4 |
+
+++ b/CMake/ITKModuleMacros.cmake
|
5 |
+
@@ -162,9 +162,6 @@ macro(itk_module_impl)
|
6 |
+
foreach(dep IN LISTS ITK_MODULE_${itk-module}_DEPENDS)
|
7 |
+
list(APPEND ${itk-module}_LIBRARIES "${${dep}_LIBRARIES}")
|
8 |
+
endforeach()
|
9 |
+
- if(${itk-module}_LIBRARIES)
|
10 |
+
- list(REMOVE_DUPLICATES ${itk-module}_LIBRARIES)
|
11 |
+
- endif()
|
12 |
+
endif()
|
13 |
+
|
14 |
+
if(EXISTS ${${itk-module}_SOURCE_DIR}/include)
|
15 |
+
diff --git a/CMake/ITKModuleAPI.cmake b/CMake/ITKModuleAPI.cmake
|
16 |
+
index af64d96dc..809335e6d 100644
|
17 |
+
--- a/CMake/ITKModuleAPI.cmake
|
18 |
+
+++ b/CMake/ITKModuleAPI.cmake
|
19 |
+
@@ -133,7 +133,7 @@ macro(itk_module_config ns)
|
20 |
+
endforeach()
|
21 |
+
unset(_${ns}_USED_MODULES)
|
22 |
+
|
23 |
+
- foreach(v ${ns}_LIBRARIES ${ns}_INCLUDE_DIRS ${ns}_LIBRARY_DIRS
|
24 |
+
+ foreach(v ${ns}_INCLUDE_DIRS ${ns}_LIBRARY_DIRS
|
25 |
+
${ns}_RUNTIME_LIBRARY_DIRS ${ns}_FACTORY_NAMES ${ns}_FACTORY_LIST)
|
26 |
+
if(${v})
|
27 |
+
list(REMOVE_DUPLICATES ${v})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/vcpkg.json
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "itk",
|
3 |
+
"version": "5.2.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Insight Segmentation and Registration Toolkit (ITK) is used for image processing and analysis.",
|
6 |
+
"homepage": "https://github.com/InsightSoftwareConsortium/ITK",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"dependencies": [
|
9 |
+
"double-conversion",
|
10 |
+
"eigen3",
|
11 |
+
"expat",
|
12 |
+
{
|
13 |
+
"name": "fftw3",
|
14 |
+
"default-features": false
|
15 |
+
},
|
16 |
+
"gdcm",
|
17 |
+
"gtest",
|
18 |
+
{
|
19 |
+
"name": "hdf5",
|
20 |
+
"default-features": false,
|
21 |
+
"features": [
|
22 |
+
"cpp"
|
23 |
+
]
|
24 |
+
},
|
25 |
+
"icu",
|
26 |
+
"libjpeg-turbo",
|
27 |
+
"libpng",
|
28 |
+
"minc",
|
29 |
+
{
|
30 |
+
"name": "openjpeg",
|
31 |
+
"default-features": false
|
32 |
+
},
|
33 |
+
"tiff",
|
34 |
+
{
|
35 |
+
"name": "vcpkg-cmake",
|
36 |
+
"host": true
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"name": "vcpkg-cmake-config",
|
40 |
+
"host": true
|
41 |
+
},
|
42 |
+
"zlib"
|
43 |
+
],
|
44 |
+
"features": {
|
45 |
+
"cuda": {
|
46 |
+
"description": "Build CUDA module",
|
47 |
+
"dependencies": [
|
48 |
+
"cuda",
|
49 |
+
{
|
50 |
+
"name": "itk",
|
51 |
+
"default-features": false,
|
52 |
+
"features": [
|
53 |
+
"opencl"
|
54 |
+
]
|
55 |
+
}
|
56 |
+
]
|
57 |
+
},
|
58 |
+
"cufftw": {
|
59 |
+
"description": "Use CUDA FFTW",
|
60 |
+
"dependencies": [
|
61 |
+
"cuda"
|
62 |
+
]
|
63 |
+
},
|
64 |
+
"opencl": {
|
65 |
+
"description": "Use OpenCL",
|
66 |
+
"dependencies": [
|
67 |
+
"opencl"
|
68 |
+
]
|
69 |
+
},
|
70 |
+
"opencv": {
|
71 |
+
"description": "Build ITKVideoBridgeOpenCV module.",
|
72 |
+
"dependencies": [
|
73 |
+
{
|
74 |
+
"name": "opencv",
|
75 |
+
"default-features": false,
|
76 |
+
"features": [
|
77 |
+
"default-features"
|
78 |
+
]
|
79 |
+
}
|
80 |
+
]
|
81 |
+
},
|
82 |
+
"python": {
|
83 |
+
"description": "Python functionality for ITK",
|
84 |
+
"dependencies": [
|
85 |
+
"python3"
|
86 |
+
]
|
87 |
+
},
|
88 |
+
"rtk": {
|
89 |
+
"description": "Build RTK Module"
|
90 |
+
},
|
91 |
+
"tbb": {
|
92 |
+
"description": "Build TBB Module",
|
93 |
+
"dependencies": [
|
94 |
+
"tbb"
|
95 |
+
]
|
96 |
+
},
|
97 |
+
"tools": {
|
98 |
+
"description": "Build RTK with tools",
|
99 |
+
"dependencies": [
|
100 |
+
{
|
101 |
+
"name": "itk",
|
102 |
+
"default-features": false,
|
103 |
+
"features": [
|
104 |
+
"rtk"
|
105 |
+
]
|
106 |
+
}
|
107 |
+
]
|
108 |
+
},
|
109 |
+
"vtk": {
|
110 |
+
"description": "Build ITKVtkGlue module.",
|
111 |
+
"dependencies": [
|
112 |
+
{
|
113 |
+
"name": "vtk",
|
114 |
+
"default-features": false
|
115 |
+
}
|
116 |
+
]
|
117 |
+
}
|
118 |
+
}
|
119 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itk/wrapping.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Wrapping/TypedefMacros.cmake b/Wrapping/TypedefMacros.cmake
|
2 |
+
index e6f8d0bf3..6c000dba8 100644
|
3 |
+
--- a/Wrapping/TypedefMacros.cmake
|
4 |
+
+++ b/Wrapping/TypedefMacros.cmake
|
5 |
+
@@ -57,13 +57,12 @@ macro(itk_wrap_module library_name)
|
6 |
+
|
7 |
+
# WRAPPER_LIBRARY_DEPENDS. List of names of other wrapper libraries that
|
8 |
+
# define symbols used by this wrapper library.
|
9 |
+
INTERSECTION(WRAPPER_LIBRARY_DEPENDS "${ITK_MODULE_${library_name}_DEPENDS}" "${WRAP_ITK_MODULES}")
|
10 |
+
# set(WRAPPER_LIBRARY_DEPENDS ${ITK_MODULE_${library_name}_DEPENDS})
|
11 |
+
|
12 |
+
# WRAPPER_LIBRARY_LINK_LIBRARIES. List of other libraries that should
|
13 |
+
# be linked to the wrapper library.
|
14 |
+
- set(WRAPPER_LIBRARY_LINK_LIBRARIES ${ITK_LIBRARIES} ${${itk-module}_LIBRARIES})
|
15 |
+
-
|
16 |
+
+ set(WRAPPER_LIBRARY_LINK_LIBRARIES ${ITK_LIBRARIES} ${${library_name}_LIBRARIES})
|
17 |
+
# WRAPPER_SUBMODULE_ORDER. List of *.wrap submodules in the source dir
|
18 |
+
# that should be included/wrapped before the rest in the given order.
|
19 |
+
# Just the submodule group name is needed, not the full path or file name.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/fix-linux.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/itpp/base/random_dsfmt.h b/itpp/base/random_dsfmt.h
|
2 |
+
index ccbf182..de819fb 100644
|
3 |
+
--- a/itpp/base/random_dsfmt.h
|
4 |
+
+++ b/itpp/base/random_dsfmt.h
|
5 |
+
@@ -299,7 +299,12 @@ private:
|
6 |
+
*/
|
7 |
+
static void do_recursion(typename Context::w128_t *r, typename Context::w128_t *a, typename Context::w128_t *b, typename Context::w128_t *lung) {
|
8 |
+
#if defined(__SSE2__)
|
9 |
+
+
|
10 |
+
+#ifdef __linux__
|
11 |
+
+#define SSE2_SHUFF 0x1bU
|
12 |
+
+#else
|
13 |
+
const unsigned int SSE2_SHUFF = 0x1bU;
|
14 |
+
+#endif
|
15 |
+
|
16 |
+
__m128i x = a->si;
|
17 |
+
__m128i z = _mm_slli_epi64(x, SL1);
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/fix-uwp.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/itpp/base/timing.cpp b/itpp/base/timing.cpp
|
2 |
+
index 58178e4..6b173d0 100644
|
3 |
+
--- a/itpp/base/timing.cpp
|
4 |
+
+++ b/itpp/base/timing.cpp
|
5 |
+
@@ -52,6 +52,10 @@
|
6 |
+
#if defined(_WIN32) && !defined(__CYGWIN__)
|
7 |
+
#include <windows.h>
|
8 |
+
|
9 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
|
10 |
+
+#include <Winsock2.h>
|
11 |
+
+#endif
|
12 |
+
+
|
13 |
+
int gettimeofday(struct timeval* p, void*)
|
14 |
+
{
|
15 |
+
union {
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/msvc2013.patch
ADDED
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
CMakeLists.txt | 2 ++
|
2 |
+
itpp/base/algebra/eigen.cpp | 1 +
|
3 |
+
itpp/base/algebra/ls_solve.cpp | 2 +-
|
4 |
+
itpp/base/algebra/qr.cpp | 1 +
|
5 |
+
itpp/base/algebra/svd.cpp | 2 +-
|
6 |
+
itpp/base/bessel/gamma.cpp | 5 +++++
|
7 |
+
itpp/base/itcompat.cpp | 11 ++++++++++-
|
8 |
+
itpp/base/itcompat.h | 14 ++++++++++++--
|
9 |
+
itpp/base/matfunc.h | 1 +
|
10 |
+
itpp/base/svec.h | 1 +
|
11 |
+
itpp/comm/siso_dem.cpp | 6 ++++++
|
12 |
+
itpp/comm/siso_eq.cpp | 6 ++++++
|
13 |
+
itpp/comm/siso_mud.cpp | 7 +++++++
|
14 |
+
itpp/comm/siso_nsc.cpp | 6 ++++++
|
15 |
+
itpp/comm/siso_rsc.cpp | 7 +++++++
|
16 |
+
15 files changed, 67 insertions(+), 5 deletions(-)
|
17 |
+
|
18 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
19 |
+
index 9f6a9a6..2360f86 100644
|
20 |
+
--- a/CMakeLists.txt
|
21 |
+
+++ b/CMakeLists.txt
|
22 |
+
@@ -122,7 +122,9 @@ CHECK_CXX_SYMBOL_EXISTS ( isnan "cmath" HAVE_DECL_ISNAN )
|
23 |
+
CHECK_CXX_SYMBOL_EXISTS ( signgam "cmath" HAVE_DECL_SIGNGAM )
|
24 |
+
|
25 |
+
#check for functions
|
26 |
+
+if( NOT MSVC )
|
27 |
+
set(CMAKE_REQUIRED_LIBRARIES m)
|
28 |
+
+endif()
|
29 |
+
include (CheckFunctionExists)
|
30 |
+
CHECK_FUNCTION_EXISTS ( acosh HAVE_ACOSH )
|
31 |
+
CHECK_FUNCTION_EXISTS ( asinh HAVE_ASINH )
|
32 |
+
diff --git a/itpp/base/algebra/eigen.cpp b/itpp/base/algebra/eigen.cpp
|
33 |
+
index 8c0c36b..54ae3e1 100644
|
34 |
+
--- a/itpp/base/algebra/eigen.cpp
|
35 |
+
+++ b/itpp/base/algebra/eigen.cpp
|
36 |
+
@@ -39,6 +39,7 @@
|
37 |
+
#include <itpp/base/algebra/eigen.h>
|
38 |
+
#include <itpp/base/converters.h>
|
39 |
+
|
40 |
+
+#include <algorithm>
|
41 |
+
|
42 |
+
namespace itpp
|
43 |
+
{
|
44 |
+
diff --git a/itpp/base/algebra/ls_solve.cpp b/itpp/base/algebra/ls_solve.cpp
|
45 |
+
index dae38fc..95abf0a 100644
|
46 |
+
--- a/itpp/base/algebra/ls_solve.cpp
|
47 |
+
+++ b/itpp/base/algebra/ls_solve.cpp
|
48 |
+
@@ -37,7 +37,7 @@
|
49 |
+
#endif
|
50 |
+
|
51 |
+
#include <itpp/base/algebra/ls_solve.h>
|
52 |
+
-
|
53 |
+
+#include <algorithm>
|
54 |
+
|
55 |
+
namespace itpp
|
56 |
+
{
|
57 |
+
diff --git a/itpp/base/algebra/qr.cpp b/itpp/base/algebra/qr.cpp
|
58 |
+
index 91dfb2b..0b47294 100644
|
59 |
+
--- a/itpp/base/algebra/qr.cpp
|
60 |
+
+++ b/itpp/base/algebra/qr.cpp
|
61 |
+
@@ -39,6 +39,7 @@
|
62 |
+
#include <itpp/base/algebra/qr.h>
|
63 |
+
#include <itpp/base/specmat.h>
|
64 |
+
|
65 |
+
+#include <algorithm>
|
66 |
+
|
67 |
+
namespace itpp
|
68 |
+
{
|
69 |
+
diff --git a/itpp/base/algebra/svd.cpp b/itpp/base/algebra/svd.cpp
|
70 |
+
index aa21e36..b2e499c 100644
|
71 |
+
--- a/itpp/base/algebra/svd.cpp
|
72 |
+
+++ b/itpp/base/algebra/svd.cpp
|
73 |
+
@@ -37,7 +37,7 @@
|
74 |
+
#endif
|
75 |
+
|
76 |
+
#include <itpp/base/algebra/svd.h>
|
77 |
+
-
|
78 |
+
+#include <algorithm>
|
79 |
+
|
80 |
+
namespace itpp
|
81 |
+
{
|
82 |
+
diff --git a/itpp/base/bessel/gamma.cpp b/itpp/base/bessel/gamma.cpp
|
83 |
+
index 162c4ae..9405507 100644
|
84 |
+
--- a/itpp/base/bessel/gamma.cpp
|
85 |
+
+++ b/itpp/base/bessel/gamma.cpp
|
86 |
+
@@ -34,6 +34,11 @@
|
87 |
+
#include <itpp/base/itcompat.h>
|
88 |
+
#include <itpp/base/math/misc.h>
|
89 |
+
|
90 |
+
+#if _MSC_VER
|
91 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
92 |
+
+#pragma warning(disable: 4056)
|
93 |
+
+#pragma warning(disable: 4756)
|
94 |
+
+#endif
|
95 |
+
|
96 |
+
/*
|
97 |
+
* Gamma function
|
98 |
+
diff --git a/itpp/base/itcompat.cpp b/itpp/base/itcompat.cpp
|
99 |
+
index f99ec81..aa34b28 100644
|
100 |
+
--- a/itpp/base/itcompat.cpp
|
101 |
+
+++ b/itpp/base/itcompat.cpp
|
102 |
+
@@ -47,12 +47,21 @@ double tgamma(double x)
|
103 |
+
}
|
104 |
+
#endif
|
105 |
+
|
106 |
+
-#if !defined(HAVE_LGAMMA) || (HAVE_DECL_SIGNGAM != 1)
|
107 |
+
+#if !defined(HAVE_LGAMMA) && (HAVE_DECL_SIGNGAM != 1)
|
108 |
+
// The sign of the Gamma function is returned in the external integer
|
109 |
+
// signgam declared in <math.h>. It is 1 when the Gamma function is positive
|
110 |
+
// or zero, -1 when it is negative. However, MinGW definition of lgamma()
|
111 |
+
// function does not use the global signgam variable.
|
112 |
+
+//May 3rd 2015 (Andy Panov):
|
113 |
+
+//Nonetheless, I guess it would be smarter not to break the ODR rule and not to provide our own definition of lgamma
|
114 |
+
+//function when HAVE_LGAMMA is defined. If we still provide the definition, two definitions
|
115 |
+
+//of the same function will exist in the program (this is undefined behaviour, as C++ standard says),
|
116 |
+
+//so we can not ensure linker will choose our definition and user's code will work as expected.
|
117 |
+
+//I guess, error message from linker regarding the unresolved symbol is much better option,
|
118 |
+
+//since it clearly points to the math library limitations. Otherwise user can get a malfunctioning program
|
119 |
+
+//with really subtle error.
|
120 |
+
int signgam;
|
121 |
+
+
|
122 |
+
// Logarithm of an absolute value of gamma function
|
123 |
+
double lgamma(double x)
|
124 |
+
{
|
125 |
+
diff --git a/itpp/base/itcompat.h b/itpp/base/itcompat.h
|
126 |
+
index e6be223..dcf2ed7 100644
|
127 |
+
--- a/itpp/base/itcompat.h
|
128 |
+
+++ b/itpp/base/itcompat.h
|
129 |
+
@@ -41,8 +41,12 @@
|
130 |
+
#if defined(_MSC_VER)
|
131 |
+
# include <cfloat>
|
132 |
+
# define finite(x) _finite(x)
|
133 |
+
+#ifndef HAVE_STD_ISFINITE
|
134 |
+
# define isfinite(x) _finite(x)
|
135 |
+
+#endif
|
136 |
+
+#ifndef HAVE_STD_ISNAN
|
137 |
+
# define isnan(x) _isnan(x)
|
138 |
+
+#endif
|
139 |
+
# define fpclass(x) _fpclass(x)
|
140 |
+
# define FP_NINF _FPCLASS_NINF
|
141 |
+
# define FP_PINF _FPCLASS_PINF
|
142 |
+
@@ -119,13 +123,19 @@ inline bool isfinite(double x)
|
143 |
+
double tgamma(double x);
|
144 |
+
#endif
|
145 |
+
|
146 |
+
-#if !defined(HAVE_LGAMMA) || (HAVE_DECL_SIGNGAM != 1)
|
147 |
+
+#if !defined(HAVE_LGAMMA) && (HAVE_DECL_SIGNGAM != 1)
|
148 |
+
+//Provide own definitions if both conditions are met:
|
149 |
+
+//-lgammma is not defined
|
150 |
+
+//-signgam was not found
|
151 |
+
+//See ODR desicussion in itcompat.cpp
|
152 |
+
+
|
153 |
+
//! Lograrithm of an absolute gamma function
|
154 |
+
double lgamma(double x);
|
155 |
+
//! Global variable needed by \c lgamma function
|
156 |
+
extern int signgam;
|
157 |
+
#endif
|
158 |
+
|
159 |
+
+
|
160 |
+
#ifndef HAVE_CBRT
|
161 |
+
//! Cubic root
|
162 |
+
double cbrt(double x);
|
163 |
+
@@ -141,7 +151,7 @@ inline double log1p(double x) { return std::log(1.0 + x); }
|
164 |
+
//! Base-2 logarithm
|
165 |
+
inline double log2(double x)
|
166 |
+
{
|
167 |
+
- static const double one_over_log2 = 1.0 / std::log(2.0);
|
168 |
+
+ const double one_over_log2 = 1.0 / std::log(2.0);
|
169 |
+
return std::log(x) * one_over_log2;
|
170 |
+
}
|
171 |
+
#endif
|
172 |
+
diff --git a/itpp/base/matfunc.h b/itpp/base/matfunc.h
|
173 |
+
index 8ae683e..60cf95f 100644
|
174 |
+
--- a/itpp/base/matfunc.h
|
175 |
+
+++ b/itpp/base/matfunc.h
|
176 |
+
@@ -36,6 +36,7 @@
|
177 |
+
#include <itpp/base/algebra/inv.h>
|
178 |
+
#include <itpp/base/algebra/svd.h>
|
179 |
+
#include <itpp/itexports.h>
|
180 |
+
+#include <algorithm>
|
181 |
+
|
182 |
+
namespace itpp
|
183 |
+
{
|
184 |
+
diff --git a/itpp/base/svec.h b/itpp/base/svec.h
|
185 |
+
index d105b2f..3a2c15b 100644
|
186 |
+
--- a/itpp/base/svec.h
|
187 |
+
+++ b/itpp/base/svec.h
|
188 |
+
@@ -33,6 +33,7 @@
|
189 |
+
#include <itpp/base/math/min_max.h>
|
190 |
+
#include <cstdlib>
|
191 |
+
#include <itpp/itexports.h>
|
192 |
+
+#include <algorithm>
|
193 |
+
|
194 |
+
namespace itpp
|
195 |
+
{
|
196 |
+
diff --git a/itpp/comm/siso_dem.cpp b/itpp/comm/siso_dem.cpp
|
197 |
+
index 666f38c..4fa03fd 100644
|
198 |
+
--- a/itpp/comm/siso_dem.cpp
|
199 |
+
+++ b/itpp/comm/siso_dem.cpp
|
200 |
+
@@ -32,6 +32,12 @@
|
201 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
202 |
+
#endif
|
203 |
+
|
204 |
+
+#if _MSC_VER
|
205 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
206 |
+
+#pragma warning(disable: 4056)
|
207 |
+
+#endif
|
208 |
+
+
|
209 |
+
+
|
210 |
+
namespace itpp
|
211 |
+
{
|
212 |
+
void SISO::find_half_const(int &select_half, itpp::vec &re_part, itpp::bmat &re_bin_part, itpp::vec &im_part, itpp::bmat &im_bin_part)
|
213 |
+
diff --git a/itpp/comm/siso_eq.cpp b/itpp/comm/siso_eq.cpp
|
214 |
+
index 856c01a..6553b33 100644
|
215 |
+
--- a/itpp/comm/siso_eq.cpp
|
216 |
+
+++ b/itpp/comm/siso_eq.cpp
|
217 |
+
@@ -32,6 +32,12 @@
|
218 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
219 |
+
#endif
|
220 |
+
|
221 |
+
+#if _MSC_VER
|
222 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
223 |
+
+#pragma warning(disable: 4056)
|
224 |
+
+#pragma warning(disable: 4756)
|
225 |
+
+#endif
|
226 |
+
+
|
227 |
+
namespace itpp
|
228 |
+
{
|
229 |
+
void SISO::gen_chtrellis(void)
|
230 |
+
diff --git a/itpp/comm/siso_mud.cpp b/itpp/comm/siso_mud.cpp
|
231 |
+
index 60aa6d3..a7ff735 100644
|
232 |
+
--- a/itpp/comm/siso_mud.cpp
|
233 |
+
+++ b/itpp/comm/siso_mud.cpp
|
234 |
+
@@ -32,6 +32,13 @@
|
235 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
236 |
+
#endif
|
237 |
+
|
238 |
+
+#if _MSC_VER
|
239 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
240 |
+
+#pragma warning(disable: 4056)
|
241 |
+
+#pragma warning(disable: 4756)
|
242 |
+
+#endif
|
243 |
+
+
|
244 |
+
+
|
245 |
+
namespace itpp
|
246 |
+
{
|
247 |
+
void SISO::descrambler(itpp::vec &extrinsic_coded, itpp::vec &extrinsic_data, const itpp::vec &intrinsic_coded, const itpp::vec &apriori_data)
|
248 |
+
diff --git a/itpp/comm/siso_nsc.cpp b/itpp/comm/siso_nsc.cpp
|
249 |
+
index ca7d19a..12ca62a 100644
|
250 |
+
--- a/itpp/comm/siso_nsc.cpp
|
251 |
+
+++ b/itpp/comm/siso_nsc.cpp
|
252 |
+
@@ -33,6 +33,12 @@
|
253 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
254 |
+
#endif
|
255 |
+
|
256 |
+
+#if _MSC_VER
|
257 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
258 |
+
+#pragma warning(disable: 4056)
|
259 |
+
+#pragma warning(disable: 4756)
|
260 |
+
+#endif
|
261 |
+
+
|
262 |
+
namespace itpp
|
263 |
+
{
|
264 |
+
void SISO::gen_nsctrellis(void)
|
265 |
+
diff --git a/itpp/comm/siso_rsc.cpp b/itpp/comm/siso_rsc.cpp
|
266 |
+
index e5003c7..9e3eea1 100644
|
267 |
+
--- a/itpp/comm/siso_rsc.cpp
|
268 |
+
+++ b/itpp/comm/siso_rsc.cpp
|
269 |
+
@@ -29,6 +29,13 @@
|
270 |
+
#include <itpp/comm/siso.h>
|
271 |
+
#include <itpp/base/itcompat.h>
|
272 |
+
#include <limits>
|
273 |
+
+
|
274 |
+
+#if _MSC_VER
|
275 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
276 |
+
+#pragma warning(disable: 4056)
|
277 |
+
+#pragma warning(disable: 4756)
|
278 |
+
+#endif
|
279 |
+
+
|
280 |
+
#ifndef INFINITY
|
281 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
282 |
+
#endif
|
283 |
+
|
284 |
+
#Remove this patch if the source has fixed these issues.
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(ITPP_VERSION 4.3.1)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO itpp/itpp
|
6 |
+
REF ${ITPP_VERSION}
|
7 |
+
FILENAME "itpp-${ITPP_VERSION}.tar.bz2"
|
8 |
+
SHA512 b46d048fa7f33e80d2291a5e38e205c159791ea200f92c70d69e8ad8447ac2f0c847fece566a99af739853a1643cb16e226b4200c8bf115417f324e6d38c66bd
|
9 |
+
PATCHES
|
10 |
+
msvc2013.patch
|
11 |
+
fix-uwp.patch
|
12 |
+
fix-linux.patch
|
13 |
+
rename-version.patch
|
14 |
+
)
|
15 |
+
file(RENAME "${SOURCE_PATH}/VERSION" "${SOURCE_PATH}/VERSION.txt")
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_LAPACK=ON
|
22 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_FFT=ON
|
23 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_BLAS=ON
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_install_cmake()
|
27 |
+
|
28 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
29 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
30 |
+
endif()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
33 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
34 |
+
vcpkg_copy_pdbs()
|
35 |
+
|
36 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
37 |
+
|
38 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/rename-version.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/autogen.sh
|
2 |
+
+++ b/autogen.sh
|
3 |
+
@@ -25,6 +25,6 @@
|
4 |
+
|
5 |
+
-PV=$(cat VERSION | cut -d' ' -f1)
|
6 |
+
-LV=$(cat VERSION | cut -d' ' -f2)
|
7 |
+
-if test "x$(cat VERSION | cut -d' ' -f3)" = "xsvn"; then
|
8 |
+
+PV=$(cat VERSION.txt | cut -d' ' -f1)
|
9 |
+
+LV=$(cat VERSION.txt | cut -d' ' -f2)
|
10 |
+
+if test "x$(cat VERSION.txt | cut -d' ' -f3)" = "xsvn"; then
|
11 |
+
if test -d ".git/svn"; then
|
12 |
+
REV=$(LC_ALL=C git svn find-rev HEAD)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/itpp/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "itpp",
|
3 |
+
"version-semver": "4.3.1",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simulation of communication systems and for performing research in the area of communications.",
|
6 |
+
"homepage": "http://itpp.sourceforge.net"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ixwebsocket/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO machinezone/IXWebSocket
|
6 |
+
REF f7eb3688ddcb7d555df91e97ce8804421378e3b4 #v11.3.3
|
7 |
+
SHA512 78eddce7d3f817632b2f48b7f7c8e767fe1995d6a91d9156b0683fafd89c00e898b09fdcaa40559df333fc63c9160fe03b2770e5e9afcfcf489e89871e12fb1c
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
11 |
+
FEATURES
|
12 |
+
openssl USE_OPEN_SSL
|
13 |
+
mbedtls USE_MBED_TLS
|
14 |
+
sectransp USE_SECURE_TRANSPORT
|
15 |
+
)
|
16 |
+
|
17 |
+
if("sectransp" IN_LIST FEATURES AND NOT VCPKG_TARGET_IS_OSX)
|
18 |
+
message(FATAL_ERROR "sectransp is not supported on non-Apple platforms")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
23 |
+
OPTIONS
|
24 |
+
${FEATURE_OPTIONS}
|
25 |
+
-DUSE_TLS=1
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ixwebsocket)
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
32 |
+
|
33 |
+
# Handle copyright
|
34 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ixwebsocket/vcpkg.json
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ixwebsocket",
|
3 |
+
"version-semver": "11.3.3",
|
4 |
+
"description": "Lightweight WebSocket Client and Server + HTTP Client and Server",
|
5 |
+
"homepage": "https://github.com/machinezone/IXWebSocket",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"zlib"
|
17 |
+
],
|
18 |
+
"default-features": [
|
19 |
+
"ssl"
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"mbedtls": {
|
23 |
+
"description": "SSL support (mbedTLS)",
|
24 |
+
"dependencies": [
|
25 |
+
"mbedtls"
|
26 |
+
]
|
27 |
+
},
|
28 |
+
"openssl": {
|
29 |
+
"description": "SSL support (OpenSSL)",
|
30 |
+
"dependencies": [
|
31 |
+
"openssl"
|
32 |
+
]
|
33 |
+
},
|
34 |
+
"sectransp": {
|
35 |
+
"description": "SSL support (sectransp)"
|
36 |
+
},
|
37 |
+
"ssl": {
|
38 |
+
"description": "Default SSL backend",
|
39 |
+
"dependencies": [
|
40 |
+
{
|
41 |
+
"name": "ixwebsocket",
|
42 |
+
"features": [
|
43 |
+
"sectransp"
|
44 |
+
],
|
45 |
+
"platform": "osx"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "ixwebsocket",
|
49 |
+
"features": [
|
50 |
+
"mbedtls"
|
51 |
+
],
|
52 |
+
"platform": "windows"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"name": "ixwebsocket",
|
56 |
+
"features": [
|
57 |
+
"mbedtls"
|
58 |
+
],
|
59 |
+
"platform": "windows & uwp"
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"name": "ixwebsocket",
|
63 |
+
"features": [
|
64 |
+
"openssl"
|
65 |
+
],
|
66 |
+
"platform": "!uwp & !windows & !osx"
|
67 |
+
}
|
68 |
+
]
|
69 |
+
}
|
70 |
+
}
|
71 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/CMakeLists.txt
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.1)
|
2 |
+
project(jack VERSION 1.9 LANGUAGES C)
|
3 |
+
|
4 |
+
include_directories(common)
|
5 |
+
|
6 |
+
add_library(jack common/JackWeakAPI.c)
|
7 |
+
if(WIN32 AND BUILD_SHARED_LIBS)
|
8 |
+
target_sources(jack PRIVATE jack.def)
|
9 |
+
endif()
|
10 |
+
target_link_libraries(jack PRIVATE ${CMAKE_DL_LIBS})
|
11 |
+
|
12 |
+
include(GNUInstallDirs)
|
13 |
+
install(TARGETS jack
|
14 |
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
15 |
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
16 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
17 |
+
)
|
18 |
+
|
19 |
+
set(PREFIX "${CMAKE_INSTALL_PREFIX}")
|
20 |
+
set(LIBDIR "\${prefix}/${CMAKE_INSTALL_LIBDIR}")
|
21 |
+
set(INCLUDEDIR "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
|
22 |
+
set(JACK_VERSION "${CMAKE_PROJECT_VERSION}")
|
23 |
+
# JackWeak dynamically loads the real JACK library which requires linking CMAKE_DL_LIBS
|
24 |
+
if(CMAKE_DL_LIBS)
|
25 |
+
set(CLIENTLIB "jack -l${CMAKE_DL_LIBS}")
|
26 |
+
else()
|
27 |
+
set(CLIENTLIB "jack")
|
28 |
+
endif()
|
29 |
+
# NOTE: the server_libs variable will be broken but this port does not build the server anyway
|
30 |
+
configure_file(jack.pc.in "${CMAKE_CURRENT_BINARY_DIR}/jack.pc" @ONLY)
|
31 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/jack.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
|
32 |
+
|
33 |
+
install(DIRECTORY "common/jack" DESTINATION "include")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/jack.def
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
LIBRARY JACK
|
2 |
+
|
3 |
+
EXPORTS
|
4 |
+
|
5 |
+
;FIXME these are unimplemented
|
6 |
+
;jack_port_uuid
|
7 |
+
;jack_get_cycle_times
|
8 |
+
|
9 |
+
jack_get_version
|
10 |
+
jack_get_version_string
|
11 |
+
jack_client_open
|
12 |
+
jack_client_new
|
13 |
+
jack_client_close
|
14 |
+
jack_client_name_size
|
15 |
+
jack_get_client_name
|
16 |
+
jack_get_uuid_for_client_name
|
17 |
+
jack_get_client_name_by_uuid
|
18 |
+
jack_internal_client_new
|
19 |
+
jack_internal_client_close
|
20 |
+
jack_activate
|
21 |
+
jack_deactivate
|
22 |
+
jack_client_thread_id
|
23 |
+
jack_is_realtime
|
24 |
+
jack_thread_wait
|
25 |
+
jack_cycle_wait
|
26 |
+
jack_cycle_signal
|
27 |
+
jack_set_process_thread
|
28 |
+
jack_set_thread_init_callback
|
29 |
+
jack_on_shutdown
|
30 |
+
jack_on_info_shutdown
|
31 |
+
jack_set_process_callback
|
32 |
+
jack_set_freewheel_callback
|
33 |
+
jack_set_buffer_size_callback
|
34 |
+
jack_set_sample_rate_callback
|
35 |
+
jack_set_client_registration_callback
|
36 |
+
jack_set_port_registration_callback
|
37 |
+
jack_set_port_connect_callback
|
38 |
+
jack_set_port_rename_callback
|
39 |
+
jack_set_graph_order_callback
|
40 |
+
jack_set_xrun_callback
|
41 |
+
jack_set_latency_callback
|
42 |
+
jack_set_freewheel
|
43 |
+
jack_set_buffer_size
|
44 |
+
jack_get_sample_rate
|
45 |
+
jack_get_buffer_size
|
46 |
+
jack_engine_takeover_timebase
|
47 |
+
jack_cpu_load
|
48 |
+
jack_port_register
|
49 |
+
jack_port_unregister
|
50 |
+
jack_port_get_buffer
|
51 |
+
jack_port_name
|
52 |
+
jack_port_short_name
|
53 |
+
jack_port_flags
|
54 |
+
jack_port_type
|
55 |
+
jack_port_type_id
|
56 |
+
jack_port_is_mine
|
57 |
+
jack_port_connected
|
58 |
+
jack_port_connected_to
|
59 |
+
jack_port_get_connections
|
60 |
+
jack_port_get_all_connections
|
61 |
+
jack_port_tie
|
62 |
+
jack_port_untie
|
63 |
+
jack_port_set_name
|
64 |
+
jack_port_rename
|
65 |
+
jack_port_set_alias
|
66 |
+
jack_port_unset_alias
|
67 |
+
jack_port_get_aliases
|
68 |
+
jack_port_request_monitor
|
69 |
+
jack_port_request_monitor_by_name
|
70 |
+
jack_port_ensure_monitor
|
71 |
+
jack_port_monitoring_input
|
72 |
+
jack_connect
|
73 |
+
jack_disconnect
|
74 |
+
jack_port_disconnect
|
75 |
+
jack_port_name_size
|
76 |
+
jack_port_type_size
|
77 |
+
jack_port_type_get_buffer_size
|
78 |
+
jack_port_set_latency
|
79 |
+
jack_port_get_latency_range
|
80 |
+
jack_port_set_latency_range
|
81 |
+
jack_recompute_total_latencies
|
82 |
+
jack_port_get_latency
|
83 |
+
jack_port_get_total_latency
|
84 |
+
jack_recompute_total_latency
|
85 |
+
jack_get_ports
|
86 |
+
jack_port_by_name
|
87 |
+
jack_port_by_id
|
88 |
+
jack_frames_since_cycle_start
|
89 |
+
jack_frame_time
|
90 |
+
jack_last_frame_time
|
91 |
+
jack_frames_to_time
|
92 |
+
jack_time_to_frames
|
93 |
+
jack_get_time
|
94 |
+
jack_set_error_function
|
95 |
+
jack_set_info_function
|
96 |
+
jack_free
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jackaudio/jack2
|
4 |
+
REF v1.9.19
|
5 |
+
SHA512 d8d5fe17e2984959546af3c53f044aa4648860e19ff8ffd54452e87fa6cdfd111f825c57e3df17cb8ed95de8392b6f354b12ded41e3e021a37f07b99a89ba18d
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# Install headers and a shim library with JackWeakAPI.c
|
10 |
+
file(COPY
|
11 |
+
"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
12 |
+
"${CMAKE_CURRENT_LIST_DIR}/jack.def"
|
13 |
+
DESTINATION "${SOURCE_PATH}"
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_fixup_pkgconfig()
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
24 |
+
|
25 |
+
file(INSTALL "${SOURCE_PATH}/README.rst" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jack2/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "jack2",
|
3 |
+
"version-semver": "1.9.19",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Cross-platform API that enables device sharing and inter-application audio routing",
|
6 |
+
"homepage": "https://jackaudio.org/",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jaeger-client-cpp/fix-CMakeLists.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d9bf7b5..eb2692c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -60,7 +60,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND
|
6 |
+
endif()
|
7 |
+
|
8 |
+
hunter_add_package(thrift)
|
9 |
+
-find_package(thrift ${hunter_config} REQUIRED)
|
10 |
+
+find_package(Thrift CONFIG REQUIRED)
|
11 |
+
if(HUNTER_ENABLED)
|
12 |
+
list(APPEND LIBS thrift::thrift_static)
|
13 |
+
else()
|
14 |
+
@@ -273,6 +273,9 @@ if(JAEGERTRACING_PLUGIN)
|
15 |
+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/export.map
|
16 |
+
"{ global: OpenTracingMakeTracerFactory; local: *; };")
|
17 |
+
add_library(jaegertracing_plugin MODULE ${SRC})
|
18 |
+
+ if (WIN32)
|
19 |
+
+ target_link_libraries(jaegertracing_plugin PUBLIC Iphlpapi Ws2_32)
|
20 |
+
+ endif()
|
21 |
+
add_lib_deps(jaegertracing_plugin)
|
22 |
+
target_link_libraries(jaegertracing_plugin PUBLIC
|
23 |
+
-static-libgcc
|
24 |
+
@@ -418,7 +421,7 @@ include(GNUInstallDirs)
|
25 |
+
# * <prefix>/lib*/cmake/<PROJECT-NAME>
|
26 |
+
# * <prefix>/lib*/
|
27 |
+
# * <prefix>/include/
|
28 |
+
-set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
|
29 |
+
+set(config_install_dir "${CMAKE_INSTALL_DATAROOTDIR}/jaeger-client-cpp")
|
30 |
+
|
31 |
+
set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
32 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/jaeger-client-cpp/portfile.cmake
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Get jaeger-idl from github
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO jaegertracing/jaeger-idl
|
5 |
+
REF b9acaab7b20fd4f984225657ffe272799ebdfefb #commit on 2021-08-04
|
6 |
+
SHA512 d136e68e54f39779a48b1c5bc61f81dc06b312120dc8d3788a9c360f89aa924ca4cc074c6515743a930982637f9fca94299000a4b2dca1f9c243d8d9d1c62de2
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
# Create target directory for proxy/stub generation
|
11 |
+
file(MAKE_DIRECTORY "${SOURCE_PATH}/data")
|
12 |
+
# List of input files
|
13 |
+
set(THRIFT_SOURCE_FILES agent.thrift jaeger.thrift sampling.thrift zipkincore.thrift crossdock/tracetest.thrift baggage.thrift dependency.thrift aggregation_validator.thrift)
|
14 |
+
|
15 |
+
# Generate proxy/stubs for the input files
|
16 |
+
foreach(THRIFT_SOURCE_FILE IN LISTS THRIFT_SOURCE_FILES)
|
17 |
+
vcpkg_execute_required_process(
|
18 |
+
COMMAND "${CURRENT_INSTALLED_DIR}/tools/thrift/thrift" --gen cpp:no_skeleton -o "${SOURCE_PATH}/data" ${THRIFT_SOURCE_FILE}
|
19 |
+
WORKING_DIRECTORY "${SOURCE_PATH}/thrift"
|
20 |
+
LOGNAME jaeger-idl-${TARGET_TRIPLET}
|
21 |
+
)
|
22 |
+
endforeach()
|
23 |
+
|
24 |
+
# Save generated proxy/stub target directory
|
25 |
+
set(IDL_SOURCE_DIR "${SOURCE_PATH}/data/gen-cpp")
|
26 |
+
|
27 |
+
# Get jaeger-client-cpp from github
|
28 |
+
vcpkg_from_github(
|
29 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
30 |
+
REPO jaegertracing/jaeger-client-cpp
|
31 |
+
REF 277fdd75e413c914bff04d510afafc7f0811a31a #v0.7.0
|
32 |
+
SHA512 5112bda5ec24621044bbcd5393922564de70f4d696b1d4248e889dd3d49e492155bfc88626fea214ce4e4cb50e9a49ea031ddb8efbaafc6f1753a586db534a50
|
33 |
+
HEAD_REF master
|
34 |
+
PATCHES
|
35 |
+
fix-CMakeLists.patch
|
36 |
+
)
|
37 |
+
|
38 |
+
# Do not use hunter, not testtools and build opentracing plugin
|
39 |
+
vcpkg_cmake_configure(
|
40 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
41 |
+
OPTIONS
|
42 |
+
-DHUNTER_ENABLED=0
|
43 |
+
-DBUILD_TESTING=0
|
44 |
+
-DJAEGERTRACING_PLUGIN=0
|
45 |
+
-DJAEGERTRACING_BUILD_EXAMPLES=0
|
46 |
+
)
|
47 |
+
|
48 |
+
# Copy generated files over to jaeger-client-cpp
|
49 |
+
file(GLOB IDL_SOURCE_FILES LIST_DIRECTORIES false "${IDL_SOURCE_DIR}/*")
|
50 |
+
file(COPY ${IDL_SOURCE_FILES} DESTINATION "${SOURCE_PATH}/src/jaegertracing/thrift-gen")
|
51 |
+
|
52 |
+
# Generate Jaeger client
|
53 |
+
vcpkg_cmake_install()
|
54 |
+
|
55 |
+
vcpkg_cmake_config_fixup()
|
56 |
+
|
57 |
+
# Cleanup unused Debug files
|
58 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
59 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
60 |
+
|
61 |
+
# Handle copyright
|
62 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
63 |
+
|
64 |
+
# Cleanup
|
65 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/jaegertracing/testutils")
|