Techt3o commited on
Commit
84111cb
·
verified ·
1 Parent(s): 38efe77

756330196ecc860ba054fdadf2d554e36d85c847cf3a08ab95a3cabd1d05cdd2

Browse files
Files changed (50) hide show
  1. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plf-nanotimer/vcpkg.json +7 -0
  2. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plf-stack/portfile.cmake +14 -0
  3. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plf-stack/vcpkg.json +7 -0
  4. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plib/CMakeLists.txt +361 -0
  5. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plib/portfile.cmake +25 -0
  6. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plib/vcpkg.json +6 -0
  7. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/fix_configuration.patch +142 -0
  8. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/portfile.cmake +31 -0
  9. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/usage +5 -0
  10. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/vcpkg-cmake-wrapper.cmake +12 -0
  11. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/vcpkg.json +8 -0
  12. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plog/portfile.cmake +15 -0
  13. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plog/vcpkg.json +7 -0
  14. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/0001-findwxwidgets-fixes.patch +71 -0
  15. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/0002-wxwidgets-dev-fixes.patch +12 -0
  16. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/fix-pkg-config.patch +17 -0
  17. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/fix_utils.patch +23 -0
  18. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/install-interface-include-directories.patch +13 -0
  19. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/portfile.cmake +71 -0
  20. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/use-math-h-nan.patch +28 -0
  21. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/vcpkg.json +28 -0
  22. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plustache/CMakeLists.txt +36 -0
  23. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plustache/portfile.cmake +26 -0
  24. third-party/DPVO/Pangolin/scripts/vcpkg/ports/plustache/vcpkg.json +10 -0
  25. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pmdk/portfile.cmake +54 -0
  26. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pmdk/vcpkg.json +8 -0
  27. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngpp/portfile.cmake +15 -0
  28. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngpp/vcpkg.json +8 -0
  29. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngwriter/portfile.cmake +23 -0
  30. third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngwriter/vcpkg.json +11 -0
  31. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/arm64_pcre.patch +62 -0
  32. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix-InstallDataMysql.patch +13 -0
  33. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix-error-c3861.patch +12 -0
  34. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix-feature-sqlite3.patch +13 -0
  35. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix_dependency.patch +244 -0
  36. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/portfile.cmake +111 -0
  37. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/static_pcre.patch +26 -0
  38. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/vcpkg.json +62 -0
  39. third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/0002-HAVE_UNISTD_H.patch +15 -0
  40. third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/0003-uwp_fix.patch +15 -0
  41. third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/0005-fix-crypto.patch +29 -0
  42. third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/fix-x64-osx.patch +13 -0
  43. third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/freetype.patch +18 -0
  44. third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/portfile.cmake +56 -0
  45. third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/vcpkg.json +23 -0
  46. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/CMakeLists.txt +82 -0
  47. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/disable-gcc5-checks.patch +47 -0
  48. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/portfile.cmake +32 -0
  49. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/use-external-libs.patch +42 -0
  50. third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/vcpkg.json +19 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plf-nanotimer/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "plf-nanotimer",
3
+ "version-string": "2019-08-10",
4
+ "port-version": 1,
5
+ "description": "A simple C++ 03/11/etc timer class for ~microsecond-precision cross-platform benchmarking",
6
+ "homepage": "https://www.plflib.org/"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plf-stack/portfile.cmake ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO mattreecebentley/plf_stack
6
+ REF 9d046154d8954eafc12f8d4845505beec8c4a5da
7
+ SHA512 2202bbff0e93bf515ae7b237551d084dcba9b870bca82f49b4e1a64446f4574079b0cb45fb91f0ad0472e008f21ad014464b45e307ffa6dab19affc6dc38626a
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY ${SOURCE_PATH}/plf_stack.h DESTINATION ${CURRENT_PACKAGES_DIR}/include)
12
+
13
+ # Handle copyright
14
+ configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plf-stack/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "plf-stack",
3
+ "version-string": "2019-08-10",
4
+ "port-version": 1,
5
+ "description": "A C++ data container replicating std::stack functionality but with better performance",
6
+ "homepage": "https://www.plflib.org/"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plib/CMakeLists.txt ADDED
@@ -0,0 +1,361 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.3.0)
2
+
3
+ project(plib VERSION 1.8.5)
4
+
5
+ set(CMAKE_DEBUG_POSTFIX d)
6
+
7
+ # Sources & Headers
8
+ set(fnt_SOURCES
9
+ src/fnt/fnt.cxx
10
+ src/fnt/fntBitmap.cxx
11
+ src/fnt/fntTXF.cxx)
12
+
13
+ set(fnt_HEADERS
14
+ src/fnt/fnt.h
15
+ src/fnt/fntLocal.h)
16
+
17
+ set(js_SOURCES
18
+ src/js/js.cxx
19
+ src/js/jsBSD.cxx
20
+ src/js/jsLinux.cxx
21
+ src/js/jsMacOS.cxx
22
+ src/js/jsMacOSX.cxx
23
+ src/js/jsNone.cxx
24
+ src/js/jsWindows.cxx)
25
+
26
+ set(js_HEADERS
27
+ src/js/js.h)
28
+
29
+ set(net_SOURCES
30
+ src/net/netBuffer.cxx
31
+ src/net/netChannel.cxx
32
+ src/net/netChat.cxx
33
+ src/net/netMessage.cxx
34
+ src/net/netMonitor.cxx
35
+ src/net/netSocket.cxx)
36
+
37
+ set(net_HEADERS
38
+ src/net/netBuffer.h
39
+ src/net/netChannel.h
40
+ src/net/netChat.h
41
+ src/net/netMessage.h
42
+ src/net/netMonitor.h
43
+ src/net/netSocket.h)
44
+
45
+ set(psl_SOURCES
46
+ src/psl/psl.cxx
47
+ src/psl/pslCodeGen.cxx
48
+ src/psl/pslCompiler.cxx
49
+ src/psl/pslContext.cxx
50
+ src/psl/pslDump.cxx
51
+ src/psl/pslError.cxx
52
+ src/psl/pslExpression.cxx
53
+ src/psl/pslFileIO.cxx
54
+ src/psl/pslProgram.cxx
55
+ src/psl/pslSymbols.cxx
56
+ src/psl/pslToken.cxx)
57
+
58
+ set(psl_HEADERS
59
+ src/psl/psl.h
60
+ src/psl/pslCompiler.h
61
+ src/psl/pslContext.h
62
+ src/psl/pslFileIO.h
63
+ src/psl/pslLocal.h
64
+ src/psl/pslOpcodes.h
65
+ src/psl/pslSymbol.h)
66
+
67
+ set(puAux_SOURCES
68
+ src/puAux/puAux.cxx
69
+ src/puAux/puAuxBiSlider.cxx
70
+ src/puAux/puAuxBiSliderWithEnds.cxx
71
+ src/puAux/puAuxChooser.cxx
72
+ src/puAux/puAuxComboBox.cxx
73
+ src/puAux/puAuxCompass.cxx
74
+ src/puAux/puAuxFileSelector.cxx
75
+ src/puAux/puAuxLargeInput.cxx
76
+ src/puAux/puAuxList.cxx
77
+ src/puAux/puAuxScrollBar.cxx
78
+ src/puAux/puAuxSelectBox.cxx
79
+ src/puAux/puAuxSliderWithInput.cxx
80
+ src/puAux/puAuxSpinBox.cxx
81
+ src/puAux/puAuxTriSlider.cxx
82
+ src/puAux/puAuxVerticalMenu.cxx)
83
+
84
+ set(puAux_HEADERS
85
+ src/puAux/puAux.h
86
+ src/puAux/puAuxLocal.h)
87
+
88
+ set(pui_SOURCES
89
+ src/pui/pu.cxx
90
+ src/pui/puArrowButton.cxx
91
+ src/pui/puBox.cxx
92
+ src/pui/puButton.cxx
93
+ src/pui/puButtonBox.cxx
94
+ src/pui/puDial.cxx
95
+ src/pui/puDialogBox.cxx
96
+ src/pui/puFont.cxx
97
+ src/pui/puFrame.cxx
98
+ src/pui/puGroup.cxx
99
+ src/pui/puInput.cxx
100
+ src/pui/puInputBase.cxx
101
+ src/pui/puInterface.cxx
102
+ src/pui/puListBox.cxx
103
+ src/pui/puMenuBar.cxx
104
+ src/pui/puObject.cxx
105
+ src/pui/puOneShot.cxx
106
+ src/pui/puPopup.cxx
107
+ src/pui/puPopupMenu.cxx
108
+ src/pui/puRange.cxx
109
+ src/pui/puSlider.cxx
110
+ src/pui/puText.cxx
111
+ src/pui/puValue.cxx)
112
+
113
+ set(pui_HEADERS
114
+ src/pui/pu.h
115
+ src/pui/puFLTK.h
116
+ src/pui/puGLUT.h
117
+ src/pui/puLocal.h
118
+ src/pui/puNative.h
119
+ src/pui/puPW.h
120
+ src/pui/puSDL.h)
121
+
122
+ set(pw_SOURCES
123
+ src/pw/pwWindows.cxx)
124
+
125
+ set(pw_HEADERS
126
+ src/pw/pw.h)
127
+
128
+ set(sg_SOURCES
129
+ src/sg/sg.cxx
130
+ src/sg/sgd.cxx
131
+ src/sg/sgdIsect.cxx
132
+ src/sg/sgIsect.cxx
133
+ src/sg/sgPerlinNoise.cxx)
134
+
135
+ set(sg_HEADERS
136
+ src/sg/sg.h)
137
+
138
+ set(sl_SOURCES
139
+ src/sl/slDSP.cxx
140
+ src/sl/slEnvelope.cxx
141
+ src/sl/slMODdacio.cxx
142
+ src/sl/slMODfile.cxx
143
+ src/sl/slMODinst.cxx
144
+ src/sl/slMODnote.cxx
145
+ src/sl/slMODPlayer.cxx
146
+ src/sl/slPlayer.cxx
147
+ src/sl/slSample.cxx
148
+ src/sl/slSamplePlayer.cxx
149
+ src/sl/slScheduler.cxx
150
+ src/sl/smMixer.cxx)
151
+
152
+ set(sl_HEADERS
153
+ src/sl/sl.h
154
+ src/sl/slMODfile.h
155
+ src/sl/slMODPrivate.h
156
+ src/sl/slPortability.h
157
+ src/sl/sm.h)
158
+
159
+ set(ssg_SOURCES
160
+ src/ssg/ssg.cxx
161
+ src/ssg/ssgAnimation.cxx
162
+ src/ssg/ssgAnimTransform.cxx
163
+ src/ssg/ssgAxisTransform.cxx
164
+ src/ssg/ssgBase.cxx
165
+ src/ssg/ssgBaseTransform.cxx
166
+ src/ssg/ssgBranch.cxx
167
+ src/ssg/ssgContext.cxx
168
+ src/ssg/ssgCutout.cxx
169
+ src/ssg/ssgDList.cxx
170
+ src/ssg/ssgEntity.cxx
171
+ src/ssg/ssgInvisible.cxx
172
+ src/ssg/ssgIO.cxx
173
+ src/ssg/ssgIsect.cxx
174
+ src/ssg/ssgLeaf.cxx
175
+ src/ssg/ssgList.cxx
176
+ src/ssg/ssgLoad.cxx
177
+ src/ssg/ssgLoad3ds.cxx
178
+ src/ssg/ssgLoadAC.cxx
179
+ src/ssg/ssgLoadASC.cxx
180
+ src/ssg/ssgLoadASE.cxx
181
+ src/ssg/ssgLoadATG.cxx
182
+ src/ssg/ssgLoadBMP.cxx
183
+ src/ssg/ssgLoadDOF.cxx
184
+ src/ssg/ssgLoadDXF.cxx
185
+ src/ssg/ssgLoaderWriterStuff.cxx
186
+ src/ssg/ssgLoadFLT.cxx
187
+ src/ssg/ssgLoadIV.cxx
188
+ src/ssg/ssgLoadM.cxx
189
+ src/ssg/ssgLoadMD2.cxx
190
+ src/ssg/ssgLoadMDL.cxx
191
+ src/ssg/ssgLoadMDL_BGLTexture.cxx
192
+ src/ssg/ssgLoadOBJ.cxx
193
+ src/ssg/ssgLoadOFF.cxx
194
+ src/ssg/ssgLoadPCX.cxx
195
+ src/ssg/ssgLoadPNG.cxx
196
+ src/ssg/ssgLoadSGI.cxx
197
+ src/ssg/ssgLoadSSG.cxx
198
+ src/ssg/ssgLoadStrip.cxx
199
+ src/ssg/ssgLoadTexture.cxx
200
+ src/ssg/ssgLoadTGA.cxx
201
+ src/ssg/ssgLoadTRI.cxx
202
+ src/ssg/ssgLoadVRML1.cxx
203
+ src/ssg/ssgLoadX.cxx
204
+ src/ssg/ssgLoadXPlaneObj.cxx
205
+ src/ssg/ssgOptimiser.cxx
206
+ src/ssg/ssgParser.cxx
207
+ src/ssg/ssgRangeSelector.cxx
208
+ src/ssg/ssgRoot.cxx
209
+ src/ssg/ssgSave3ds.cxx
210
+ src/ssg/ssgSaveAC.cxx
211
+ src/ssg/ssgSaveASC.cxx
212
+ src/ssg/ssgSaveASE.cxx
213
+ src/ssg/ssgSaveATG.cxx
214
+ src/ssg/ssgSaveDXF.cxx
215
+ src/ssg/ssgSaveFLT.cxx
216
+ src/ssg/ssgSaveIV.cxx
217
+ src/ssg/ssgSaveM.cxx
218
+ src/ssg/ssgSaveOBJ.cxx
219
+ src/ssg/ssgSaveOFF.cxx
220
+ src/ssg/ssgSaveQHI.cxx
221
+ src/ssg/ssgSaveTRI.cxx
222
+ src/ssg/ssgSaveVRML1.cxx
223
+ src/ssg/ssgSaveX.cxx
224
+ src/ssg/ssgSelector.cxx
225
+ src/ssg/ssgSimpleList.cxx
226
+ src/ssg/ssgSimpleState.cxx
227
+ src/ssg/ssgState.cxx
228
+ src/ssg/ssgStateSelector.cxx
229
+ src/ssg/ssgStateTables.cxx
230
+ src/ssg/ssgStatistics.cxx
231
+ src/ssg/ssgStats.cxx
232
+ src/ssg/ssgTexTrans.cxx
233
+ src/ssg/ssgTexture.cxx
234
+ src/ssg/ssgTransform.cxx
235
+ src/ssg/ssgTween.cxx
236
+ src/ssg/ssgTweenController.cxx
237
+ src/ssg/ssgVertSplitter.cxx
238
+ src/ssg/ssgVTable.cxx
239
+ src/ssg/ssgVtxArray.cxx
240
+ src/ssg/ssgVtxTable.cxx)
241
+
242
+ set(ssg_HEADERS
243
+ src/ssg/ssg.h
244
+ src/ssg/ssg3ds.h
245
+ src/ssg/ssgKeyFlier.h
246
+ src/ssg/ssgLoaderWriterStuff.h
247
+ src/ssg/ssgLoadMDL.h
248
+ src/ssg/ssgLoadVRML.h
249
+ src/ssg/ssgLocal.h
250
+ src/ssg/ssgMSFSPalette.h
251
+ src/ssg/ssgParser.h
252
+ src/ssg/ssgVertSplitter.h)
253
+
254
+ set(ssgAux_SOURCES
255
+ src/ssgAux/ssgAux.cxx
256
+ src/ssgAux/ssgaBillboards.cxx
257
+ src/ssgAux/ssgaCelestialBody.cxx
258
+ src/ssgAux/ssgaCloudLayer.cxx
259
+ src/ssgAux/ssgaFire.cxx
260
+ src/ssgAux/ssgaLensFlare.cxx
261
+ src/ssgAux/ssgaLensFlareTexture.cxx
262
+ src/ssgAux/ssgaParticleSystem.cxx
263
+ src/ssgAux/ssgaPatch.cxx
264
+ src/ssgAux/ssgaScreenDump.cxx
265
+ src/ssgAux/ssgaShapes.cxx
266
+ src/ssgAux/ssgaSky.cxx
267
+ src/ssgAux/ssgaSkyDome.cxx
268
+ src/ssgAux/ssgaSphere.cxx
269
+ src/ssgAux/ssgaStars.cxx
270
+ src/ssgAux/ssgaTeapot.cxx
271
+ src/ssgAux/ssgaWaveSystem.cxx)
272
+
273
+ set(ssgAux_HEADERS
274
+ src/ssgAux/ssgAux.h
275
+ src/ssgAux/ssgaBillboards.h
276
+ src/ssgAux/ssgaFire.h
277
+ src/ssgAux/ssgaLensFlare.h
278
+ src/ssgAux/ssgaParticleSystem.h
279
+ src/ssgAux/ssgaScreenDump.h
280
+ src/ssgAux/ssgaShapes.h
281
+ src/ssgAux/ssgaSky.h
282
+ src/ssgAux/ssgaSphere.h
283
+ src/ssgAux/ssgaWaveSystem.h)
284
+
285
+ set(ul_SOURCES
286
+ src/util/ul.cxx
287
+ src/util/ulClock.cxx
288
+ src/util/ulError.cxx
289
+ src/util/ulLinkedList.cxx
290
+ src/util/ulList.cxx
291
+ src/util/ulRTTI.cxx)
292
+
293
+ set(ul_HEADERS
294
+ src/util/ul.h
295
+ src/util/ulLocal.h
296
+ src/util/ulRTTI.h)
297
+
298
+ # Create and configure the targets
299
+ add_library(plib_fnt STATIC ${fnt_SOURCES} ${fnt_HEADERS})
300
+ target_include_directories(plib_fnt PRIVATE src/sg src/util)
301
+
302
+ add_library(plib_js STATIC ${js_SOURCES} ${js_HEADERS})
303
+ target_include_directories(plib_js PRIVATE src/util)
304
+
305
+ add_library(plib_net STATIC ${net_SOURCES} ${net_HEADERS})
306
+ target_include_directories(plib_net PRIVATE src/util)
307
+
308
+ add_library(plib_psl STATIC ${psl_SOURCES} ${psl_HEADERS})
309
+ target_include_directories(plib_psl PRIVATE src/util)
310
+
311
+ add_library(plib_puAux STATIC ${puAux_SOURCES} ${puAux_HEADERS})
312
+ target_include_directories(plib_puAux PRIVATE
313
+ src/fnt
314
+ src/pui
315
+ src/sg
316
+ src/util
317
+ )
318
+
319
+ add_library(plib_pui STATIC ${pui_SOURCES} ${pui_HEADERS})
320
+ target_include_directories(plib_pui PRIVATE src/fnt src/sg src/util)
321
+
322
+ add_library(plib_pw STATIC ${pw_SOURCES} ${pw_HEADERS})
323
+ target_include_directories(plib_pw PRIVATE src/util)
324
+
325
+ add_library(plib_sg STATIC ${sg_SOURCES} ${sg_HEADERS})
326
+ target_include_directories(plib_sg PRIVATE src/util)
327
+
328
+ add_library(plib_sl STATIC ${sl_SOURCES} ${sl_HEADERS})
329
+ target_include_directories(plib_sl PRIVATE src/util)
330
+
331
+ add_library(plib_ssg STATIC ${ssg_SOURCES} ${ssg_HEADERS})
332
+ target_include_directories(plib_ssg PRIVATE src/sg src/util)
333
+
334
+ add_library(plib_ssgAux STATIC ${ssgAux_SOURCES} ${ssgAux_HEADERS})
335
+ target_include_directories(plib_ssgAux PRIVATE src/sg src/ssg src/util)
336
+
337
+ add_library(plib_ul STATIC ${ul_SOURCES} ${ul_HEADERS})
338
+
339
+ # Install
340
+ install(
341
+ TARGETS plib_fnt plib_js plib_net plib_psl plib_puAux plib_pui plib_pw plib_sg plib_sl plib_ssg plib_ssgAux plib_ul
342
+ ARCHIVE DESTINATION lib
343
+ LIBRARY DESTINATION lib
344
+ RUNTIME DESTINATION bin
345
+ )
346
+
347
+ install(
348
+ FILES ${fnt_HEADERS}
349
+ ${js_HEADERS}
350
+ ${net_HEADERS}
351
+ ${psl_HEADERS}
352
+ ${puAux_HEADERS}
353
+ ${pui_HEADERS}
354
+ ${pw_HEADERS}
355
+ ${sg_HEADERS}
356
+ ${sl_HEADERS}
357
+ ${ssg_HEADERS}
358
+ ${ssgAux_HEADERS}
359
+ ${ul_HEADERS}
360
+ DESTINATION include/plib
361
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plib/portfile.cmake ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_download_distfile(ARCHIVE
4
+ URLS "http://plib.sourceforge.net/dist/plib-1.8.5.tar.gz"
5
+ FILENAME "plib-1.8.5.tar.gz"
6
+ SHA512 17154cc77243fe576c2bcbcb0285b98aef1a0634658f5473e95fe0ac8fa3ed477dbe5620e44ccf0b7cc616f812af0cd44d6fcbba0c563180d3b61c9d6f158e1d
7
+ )
8
+
9
+ vcpkg_extract_source_archive_ex(
10
+ OUT_SOURCE_PATH SOURCE_PATH
11
+ ARCHIVE ${ARCHIVE}
12
+ )
13
+
14
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
15
+
16
+ vcpkg_configure_cmake(
17
+ SOURCE_PATH ${SOURCE_PATH}
18
+ PREFER_NINJA
19
+ )
20
+
21
+ vcpkg_install_cmake()
22
+
23
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
24
+
25
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plib/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "plib",
3
+ "version-string": "1.8.5",
4
+ "port-version": 5,
5
+ "description": "A suite of portable game libraries"
6
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/fix_configuration.patch ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index 343e3d2..aff7929 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -785,18 +785,18 @@ if (PLIBSYS_PLATFORM_DEFINES)
6
+ endif()
7
+
8
+ # Add targets
9
+ -add_library (plibsys SHARED ${PLIBSYS_SRCS} ${PLIBSYS_PLATFORM_SRCS} ${PLIBSYS_PUBLIC_HDRS} ${PLIBSYS_PRIVATE_HDRS})
10
+ -
11
+ if (PLIBSYS_BUILD_STATIC)
12
+ add_library (plibsysstatic STATIC ${PLIBSYS_SRCS} ${PLIBSYS_PLATFORM_SRCS} ${PLIBSYS_PUBLIC_HDRS} ${PLIBSYS_PRIVATE_HDRS})
13
+ +else()
14
+ + add_library (plibsys SHARED ${PLIBSYS_SRCS} ${PLIBSYS_PLATFORM_SRCS} ${PLIBSYS_PUBLIC_HDRS} ${PLIBSYS_PRIVATE_HDRS})
15
+ endif()
16
+
17
+ # Add include directories
18
+ if (COMMAND target_include_directories)
19
+ - target_include_directories (plibsys PUBLIC ${PLIBSYS_INCLUDE_DIRS})
20
+ -
21
+ if (PLIBSYS_BUILD_STATIC)
22
+ target_include_directories (plibsysstatic PUBLIC ${PLIBSYS_INCLUDE_DIRS})
23
+ + else()
24
+ + target_include_directories (plibsys PUBLIC ${PLIBSYS_INCLUDE_DIRS})
25
+ endif()
26
+ else()
27
+ include_directories (${PLIBSYS_INCLUDE_DIRS})
28
+ @@ -804,15 +804,16 @@ endif()
29
+
30
+ # Add compile definitions
31
+ if (COMMAND target_compile_definitions)
32
+ - target_compile_definitions (plibsys PRIVATE ${PLIBSYS_COMPILE_DEFS})
33
+ -
34
+ if (PLIBSYS_BUILD_STATIC)
35
+ target_compile_definitions (plibsysstatic PRIVATE ${PLIBSYS_COMPILE_DEFS})
36
+ + else()
37
+ + target_compile_definitions (plibsys PRIVATE ${PLIBSYS_COMPILE_DEFS})
38
+ endif()
39
+ else()
40
+ add_definitions (${PLIBSYS_COMPILE_DEFS})
41
+ endif()
42
+
43
+ +if(NOT PLIBSYS_BUILD_STATIC)
44
+ set_target_properties (plibsys PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})
45
+ set_target_properties (plibsys PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIR})
46
+ set_target_properties (plibsys PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIR})
47
+ @@ -820,6 +821,7 @@ set_target_properties (plibsys PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIR}
48
+ if (NOT PLIBSYS_TARGET_OS STREQUAL os2 AND NOT PLIBSYS_TARGET_OS STREQUAL amigaos)
49
+ set_target_properties (plibsys PROPERTIES SOVERSION ${PLIBSYS_SOVERSION})
50
+ endif()
51
+ +endif()
52
+
53
+ if (PLIBSYS_BUILD_STATIC)
54
+ set_target_properties (plibsysstatic PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIR})
55
+ @@ -834,10 +836,10 @@ if (PLIBSYS_PLATFORM_CFLAGS)
56
+ set (PLIBSYS_PLATFORM_CFLAGS_STR "${PLIBSYS_PLATFORM_CFLAGS_STR} ${PLATFORM_CFLAG}")
57
+ endforeach()
58
+
59
+ - set_target_properties (plibsys PROPERTIES COMPILE_FLAGS "${PLIBSYS_PLATFORM_CFLAGS_STR}")
60
+ -
61
+ if (PLIBSYS_BUILD_STATIC)
62
+ set_target_properties (plibsysstatic PROPERTIES COMPILE_FLAGS "${PLIBSYS_PLATFORM_CFLAGS_STR}")
63
+ + else()
64
+ + set_target_properties (plibsys PROPERTIES COMPILE_FLAGS "${PLIBSYS_PLATFORM_CFLAGS_STR}")
65
+ endif()
66
+ endif()
67
+
68
+ @@ -846,29 +848,30 @@ if (PLIBSYS_PLATFORM_LDFLAGS)
69
+ set (PLIBSYS_PLATFORM_LDFLAGS_STR "${PLIBSYS_PLATFORM_LDFLAGS_STR} ${PLATFORM_LDFLAG}")
70
+ endforeach()
71
+
72
+ - set_target_properties (plibsys PROPERTIES LINK_FLAGS "${PLIBSYS_PLATFORM_LDFLAGS_STR}")
73
+ -
74
+ if (PLIBSYS_BUILD_STATIC)
75
+ set_target_properties (plibsysstatic PROPERTIES LINK_FLAGS "${PLIBSYS_PLATFORM_LDFLAGS_STR}")
76
+ + else()
77
+ + set_target_properties (plibsys PROPERTIES LINK_FLAGS "${PLIBSYS_PLATFORM_LDFLAGS_STR}")
78
+ endif()
79
+ endif()
80
+
81
+ -target_link_libraries (plibsys ${PLIBSYS_PLATFORM_LINK_LIBRARIES})
82
+
83
+ if (PLIBSYS_BUILD_STATIC)
84
+ - target_link_libraries (plibsysstatic ${PLIBSYS_PLATFORM_LINK_LIBRARIES})
85
+ + target_link_libraries (plibsysstatic ${PLIBSYS_PLATFORM_LINK_LIBRARIES})
86
+ +else()
87
+ + target_link_libraries (plibsys ${PLIBSYS_PLATFORM_LINK_LIBRARIES})
88
+ endif()
89
+
90
+ if (PLIBSYS_BUILD_STATIC)
91
+ - set (PLIBSYS_INSTALL_TARGETS plibsys plibsysstatic)
92
+ + set (PLIBSYS_INSTALL_TARGETS plibsysstatic)
93
+ else()
94
+ set (PLIBSYS_INSTALL_TARGETS plibsys)
95
+ endif()
96
+
97
+ if (PLIBSYS_NATIVE_WINDOWS)
98
+ install (TARGETS ${PLIBSYS_INSTALL_TARGETS}
99
+ - DESTINATION lib
100
+ - RUNTIME DESTINATION lib
101
+ + LIBRARY DESTINATION lib
102
+ + RUNTIME DESTINATION bin
103
+ COMPONENT Core
104
+ )
105
+
106
+ @@ -878,11 +881,6 @@ if (PLIBSYS_NATIVE_WINDOWS)
107
+
108
+ set (CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP TRUE)
109
+ include (InstallRequiredSystemLibraries)
110
+ -
111
+ - install (PROGRAMS ${CMAKE_INSTALL_SYSTEM_RUNTIME_LIBS}
112
+ - DESTINATION lib
113
+ - COMPONENT Core
114
+ - )
115
+ endif()
116
+
117
+ # Prepare installation dirs
118
+ @@ -890,18 +888,18 @@ if (NOT CMAKE_INSTALL_LIBDIR)
119
+ set (CMAKE_INSTALL_LIBDIR "lib")
120
+ endif()
121
+
122
+ +if (NOT CMAKE_INSTALL_BINDIR)
123
+ + set (CMAKE_INSTALL_BINDIR "bin")
124
+ +endif()
125
+ +
126
+ if (NOT CMAKE_INSTALL_INCLUDEDIR)
127
+ set (CMAKE_INSTALL_INCLUDEDIR "include")
128
+ endif()
129
+
130
+ install (TARGETS ${PLIBSYS_INSTALL_TARGETS} EXPORT plibsys-targets
131
+ - DESTINATION ${CMAKE_INSTALL_LIBDIR}
132
+ - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
133
+ - COMPONENT Core
134
+ -)
135
+ -install (TARGETS ${PLIBSYS_INSTALL_TARGETS}
136
+ - DESTINATION ${CMAKE_INSTALL_LIBDIR}
137
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
138
+ + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
139
+ + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
140
+ COMPONENT Core
141
+ )
142
+ install (FILES
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO saprykin/plibsys
4
+ REF 0.0.4
5
+ SHA512 61957666fb454469e1ff68435463eaf426e960caed33540dbb495e1aa7c446c9803d100f33f1a6ea70d5f2ee2d0d19ec315f3a8c651747f65a186ad061c05e51
6
+ HEAD_REF master
7
+ PATCHES
8
+ fix_configuration.patch
9
+ )
10
+
11
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PLIBSYS_STATIC)
12
+
13
+ vcpkg_configure_cmake(
14
+ SOURCE_PATH ${SOURCE_PATH}
15
+ PREFER_NINJA
16
+ OPTIONS
17
+ -DPLIBSYS_TESTS=OFF
18
+ -DPLIBSYS_COVERAGE=OFF
19
+ -DPLIBSYS_BUILD_DOC=OFF
20
+ -DPLIBSYS_BUILD_STATIC=${PLIBSYS_STATIC}
21
+ )
22
+
23
+ vcpkg_install_cmake()
24
+
25
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
26
+
27
+ vcpkg_copy_pdbs()
28
+
29
+ configure_file(${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake @ONLY)
30
+ file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
31
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/usage ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ The package plibsys provides CMake targets:
2
+
3
+ find_package(plibsys CONFIG REQUIRED)
4
+ target_include_directories(main PRIVATE ${PLIBSYS_INCLUDE_DIRS})
5
+ target_link_libraries(main PRIVATE ${PLIBSYS_LIBRARIES})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ include(FindPackageHandleStandardArgs)
2
+ include(SelectLibraryConfigurations)
3
+
4
+ find_path(PLIBSYS_INCLUDE_DIR NAMES plibsys.h HINTS ${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET} PATH_SUFFIXES plibsys)
5
+
6
+ find_library(PLIBSYS_LIBRARY_DEBUG NAMES plibsys plibsysstatic libplibsys NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" NO_DEFAULT_PATH REQUIRED)
7
+ find_library(PLIBSYS_LIBRARY_RELEASE NAMES plibsys plibsysstatic libplibsys NAMES_PER_DIR PATH_SUFFIXES lib PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH REQUIRED)
8
+
9
+ select_library_configurations(PLIBSYS)
10
+
11
+ set(PLIBSYS_INCLUDE_DIRS ${PLIBSYS_INCLUDE_DIR})
12
+ set(PLIBSYS_LIBRARIES ${PLIBSYS_LIBRARY})
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plibsys/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "plibsys",
3
+ "version": "0.0.4",
4
+ "port-version": 6,
5
+ "description": "Highly portable C system library: threads and synchronization, sockets, IPC, data structures and more.",
6
+ "homepage": "https://github.com/saprykin/plibsys",
7
+ "supports": "!uwp"
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plog/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO SergiusTheBest/plog
5
+ REF 1.1.5
6
+ SHA512 c16b428e1855c905c486130c8610d043962bedc2b40d1d986c250c8f7fd7139540164a3cbb408ed08298370aa150d5937f358c13ccae2728ce8ea47fa897fd0b
7
+ HEAD_REF master
8
+ )
9
+
10
+ # Put the licence file where vcpkg expects it
11
+ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/plog)
12
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/plog/LICENSE ${CURRENT_PACKAGES_DIR}/share/plog/copyright)
13
+
14
+ # Copy header files
15
+ file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plog/vcpkg.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "plog",
3
+ "version-string": "1.1.5",
4
+ "port-version": 1,
5
+ "description": "Portable, simple and extensible C++ logging library.",
6
+ "homepage": "https://github.com/SergiusTheBest/plog"
7
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/0001-findwxwidgets-fixes.patch ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/modules/FindwxWidgets.cmake b/cmake/modules/FindwxWidgets.cmake
2
+ index 4d3a2d1..c83d8a6 100644
3
+ --- a/cmake/modules/FindwxWidgets.cmake
4
+ +++ b/cmake/modules/FindwxWidgets.cmake
5
+ @@ -515,7 +515,14 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
6
+ set(_WX_ARCH _x64)
7
+ endif()
8
+ endif()
9
+ - if(BUILD_SHARED_LIBS)
10
+ +
11
+ + include(SelectLibraryConfigurations)
12
+ + find_library(wxWidgets_LIB_DIR_LIBRARY_RELEASE NAMES wxmsw31u_core)
13
+ + find_library(wxWidgets_LIB_DIR_LIBRARY_DEBUG NAMES wxmsw31ud_core)
14
+ + select_library_configurations(wxWidgets_LIB_DIR)
15
+ + get_filename_component(wxWidgets_LIB_DIR ${wxWidgets_LIB_DIR} DIRECTORY)
16
+ + if(0)
17
+ + if(BUILD_SHARED_LIBS)
18
+ find_path(wxWidgets_LIB_DIR
19
+ NAMES
20
+ msw/wx/setup.h
21
+ @@ -554,6 +561,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
22
+ NO_DEFAULT_PATH
23
+ )
24
+ endif()
25
+ + endif()
26
+ unset(_WX_TOOL)
27
+ unset(_WX_TOOLVER)
28
+ unset(_WX_ARCH)
29
+ @@ -571,7 +579,9 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
30
+ set(wxWidgets_DEFINITIONS WXUSINGDLL)
31
+ DBG_MSG_V("detected SHARED/DLL tree WX_LIB_DIR=${WX_LIB_DIR}")
32
+ endif()
33
+ -
34
+ + if(BUILD_SHARED_LIBS)
35
+ + set(wxWidgets_DEFINITIONS WXUSINGDLL)
36
+ + endif(BUILD_SHARED_LIBS)
37
+ # Search for available configuration types.
38
+ foreach(CFG mswunivud mswunivd mswud mswd mswunivu mswuniv mswu msw)
39
+ set(WX_${CFG}_FOUND FALSE)
40
+ @@ -583,6 +593,13 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
41
+ endforeach()
42
+ DBG_MSG_V("WX_CONFIGURATION_LIST=${WX_CONFIGURATION_LIST}")
43
+
44
+ + if(CMAKE_BUILD_TYPE STREQUAL "Debug")
45
+ + set(WX_CONFIGURATION "mswud")
46
+ + else()
47
+ + set(WX_CONFIGURATION "mswu")
48
+ + endif()
49
+ + set(WX_${WX_CONFIGURATION}_FOUND TRUE)
50
+ +
51
+ if(WX_CONFIGURATION)
52
+ set(wxWidgets_FOUND TRUE)
53
+
54
+ @@ -616,6 +633,8 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
55
+ WX_GET_NAME_COMPONENTS(${wxWidgets_CONFIGURATION} UNV UCD DBG)
56
+
57
+ # Set wxWidgets lib setup include directory.
58
+ + set(wxWidgets_INCLUDE_DIRS "${wxWidgets_ROOT_DIR}/include")
59
+ + if(0)
60
+ if(EXISTS ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h)
61
+ set(wxWidgets_INCLUDE_DIRS
62
+ ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION})
63
+ @@ -623,7 +642,7 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
64
+ DBG_MSG("wxWidgets_FOUND FALSE because ${WX_LIB_DIR}/${wxWidgets_CONFIGURATION}/wx/setup.h does not exists.")
65
+ set(wxWidgets_FOUND FALSE)
66
+ endif()
67
+ -
68
+ + endif()
69
+ # Set wxWidgets main include directory.
70
+ if(EXISTS ${WX_ROOT_DIR}/include/wx/wx.h)
71
+ list(APPEND wxWidgets_INCLUDE_DIRS ${WX_ROOT_DIR}/include)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/0002-wxwidgets-dev-fixes.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/drivers/wxwidgets_dev.cpp b/drivers/wxwidgets_dev.cpp
2
+ index f025bd8..f5881b1 100644
3
+ --- a/drivers/wxwidgets_dev.cpp
4
+ +++ b/drivers/wxwidgets_dev.cpp
5
+ @@ -31,6 +31,7 @@
6
+
7
+ // Headers needed for Rand
8
+ #ifdef WIN32
9
+ +#define _WINSOCKAPI_
10
+ // This include must occur before any other include of stdlib.h due to
11
+ // the #define _CRT_RAND_S
12
+ #define _CRT_RAND_S
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/fix-pkg-config.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/modules/psttf.cmake b/cmake/modules/psttf.cmake
2
+ index 950f41b..6c20af5 100644
3
+ --- a/cmake/modules/psttf.cmake
4
+ +++ b/cmake/modules/psttf.cmake
5
+ @@ -56,7 +56,11 @@ if(PLD_psttf)
6
+ endif(PLD_psttf)
7
+
8
+ if(PLD_psttf)
9
+ - pkg_check_pkgconfig("lasi;pango;pangoft2" includedir libdir linkflags cflags version _PSTTF)
10
+ + set(PKG_LIST lasi pango pangoft2)
11
+ + foreach (SELECTED_PKG ${PKG_LIST})
12
+ + pkg_check_pkgconfig("${SELECTED_PKG}" includedir libdir linkflags cflags version _PSTTF)
13
+ + endforeach()
14
+ +
15
+ if(linkflags)
16
+ #blank-separated required.
17
+ string(REGEX REPLACE ";" " " psttf_COMPILE_FLAGS "${cflags}")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/fix_utils.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/utils/CMakeLists.txt b/utils/CMakeLists.txt
2
+ index 59cfe20..b936dad 100644
3
+ --- a/utils/CMakeLists.txt
4
+ +++ b/utils/CMakeLists.txt
5
+ @@ -75,7 +75,8 @@ add_executable(parity_bit_check parity_bit_check.c)
6
+ if(ENABLE_wxwidgets AND NOT OLD_WXWIDGETS)
7
+ # Build wxwidgets applications with same wxwidgets compile and link flags
8
+ # as used with the PLplot wxwidgets device driver.
9
+ -
10
+ + find_package(JPEG REQUIRED)
11
+ + find_package(TIFF REQUIRED)
12
+ set(wxPLViewer_SRCS wxplviewer.cpp wxplframe.cpp ${CMAKE_SOURCE_DIR}/drivers/wxwidgets_comms.cpp)
13
+ set_source_files_properties(${wxPLViewer_SRCS}
14
+ PROPERTIES COMPILE_FLAGS "${wxwidgets_COMPILE_FLAGS}")
15
+ @@ -90,7 +91,7 @@ if(ENABLE_wxwidgets AND NOT OLD_WXWIDGETS)
16
+ COMPILE_DEFINITIONS "USINGDLL"
17
+ )
18
+ endif(BUILD_SHARED_LIBS)
19
+ - target_link_libraries(wxPLViewer plplotwxwidgets plplotcxx ${wxwidgets_LINK_FLAGS} ${MATH_LIB} ${RT_LIB})
20
+ + target_link_libraries(wxPLViewer plplotwxwidgets plplotcxx ${wxwidgets_LINK_FLAGS} ${MATH_LIB} ${RT_LIB} ${JPEG_LIBRARIES} ${TIFF_LIBRARIES})
21
+
22
+ if(USE_RPATH)
23
+ # Assume that plplotwxwidgets and plplotcxx have the same install location as plplot
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/install-interface-include-directories.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index d81b6a7..6b51809 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -181,6 +181,8 @@ include_directories(
6
+ add_library(plplot ${plplot_LIB_SRCS})
7
+ add_dependencies(plplot plhershey-unicode.h_built)
8
+
9
+ +target_include_directories(plplot INTERFACE $<INSTALL_INTERFACE:include>)
10
+ +
11
+ # Deal with external libraries.
12
+ set(LIB_INSTALL_RPATH ${LIB_DIR})
13
+ set(libplplot_LINK_LIBRARIES)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/portfile.cmake ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(PLPLOT_VERSION 5.13.0)
2
+
3
+ vcpkg_from_sourceforge(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO plplot/plplot
6
+ REF ${PLPLOT_VERSION}%20Source
7
+ FILENAME "plplot-${PLPLOT_VERSION}.tar.gz"
8
+ SHA512 1d5cb5da17d4bde6d675585bff1f8dcb581719249a0b2687867e767703f8dab0870e7ea44b9549a497f4ac0141a3cabf6761c49520c0e2b26ffe581468512cbb
9
+ PATCHES
10
+ 0001-findwxwidgets-fixes.patch
11
+ 0002-wxwidgets-dev-fixes.patch
12
+ install-interface-include-directories.patch
13
+ use-math-h-nan.patch
14
+ fix_utils.patch
15
+ fix-pkg-config.patch
16
+ )
17
+
18
+ vcpkg_check_features(
19
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
20
+ FEATURES
21
+ wxwidgets PLD_wxwidgets
22
+ wxwidgets ENABLE_wxwidgets
23
+ )
24
+
25
+ vcpkg_cmake_configure(
26
+ SOURCE_PATH "${SOURCE_PATH}"
27
+ OPTIONS
28
+ -DDEFAULT_NO_BINDINGS=ON
29
+ -DENABLE_cxx=ON
30
+ -DPL_HAVE_QHULL=OFF
31
+ -DPLPLOT_USE_QT5=OFF
32
+ -DPL_DOUBLE=ON
33
+ -DENABLE_DYNDRIVERS=OFF
34
+ -DDATA_DIR=${CURRENT_PACKAGES_DIR}/share/plplot
35
+ ${FEATURE_OPTIONS}
36
+ OPTIONS_DEBUG
37
+ -DDRV_DIR=${CURRENT_PACKAGES_DIR}/debug/bin
38
+ OPTIONS_RELEASE
39
+ -DDRV_DIR=${CURRENT_PACKAGES_DIR}/bin
40
+ )
41
+
42
+ vcpkg_cmake_install()
43
+
44
+ vcpkg_copy_pdbs()
45
+
46
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/plplot)
47
+
48
+ # Remove unnecessary tool
49
+ file(REMOVE
50
+ "${CURRENT_PACKAGES_DIR}/debug/bin/pltek.exe"
51
+ "${CURRENT_PACKAGES_DIR}/bin/pltek.exe"
52
+ "${CURRENT_PACKAGES_DIR}/debug/bin/wxPLViewer.exe"
53
+ "${CURRENT_PACKAGES_DIR}/bin/wxPLViewer.exe"
54
+ )
55
+
56
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
57
+ message(STATUS "Static build: Removing the full bin directory.")
58
+ file(REMOVE_RECURSE
59
+ "${CURRENT_PACKAGES_DIR}/debug/bin"
60
+ "${CURRENT_PACKAGES_DIR}/bin"
61
+ )
62
+ endif()
63
+
64
+ # Remove unwanted and duplicate directories
65
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
66
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
67
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/plplot/examples")
68
+
69
+ file(INSTALL "${SOURCE_PATH}/Copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
70
+
71
+ vcpkg_fixup_pkgconfig()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/use-math-h-nan.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git "a/lib/csa/nan.h" "b/lib/csa/nan.h"
2
+ index 29fd3d2f..7f16e8c8 100644
3
+ --- "a/lib/csa/nan.h"
4
+ +++ "b/lib/csa/nan.h"
5
+ @@ -19,6 +19,16 @@
6
+ #if !defined ( _NAN_H )
7
+ #define _NAN_H
8
+
9
+ +// Try to use the implementation-provided NAN constant:
10
+ +
11
+ +#include <math.h>
12
+ +
13
+ +#if defined(NAN)
14
+ +
15
+ +#define NaN ((double)NAN)
16
+ +
17
+ +#else // ^^^ implementation provides NAN // implementation does not provide NAN vvv
18
+ +
19
+ #if ( defined ( __GNUC__ ) && !defined ( __ICC ) ) || defined ( __BORLANDC__ )
20
+
21
+ static const double NaN = 0.0 / 0.0;
22
+ @@ -63,4 +73,6 @@ static const long long lNaN = ( (unsigned long long) 1 << 63 ) - 1;
23
+
24
+ #endif
25
+
26
+ +#endif // defined(NAN)
27
+ +
28
+ #endif
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plplot/vcpkg.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "plplot",
3
+ "version-semver": "5.13.0",
4
+ "port-version": 15,
5
+ "description": "PLplot is a cross-platform software package for creating scientific plots whose (UTF-8) plot symbols and text are limited in practice only by what Unicode-aware system fonts are installed on a user's computer.",
6
+ "dependencies": [
7
+ "bzip2",
8
+ "freetype",
9
+ "libpng",
10
+ {
11
+ "name": "vcpkg-cmake",
12
+ "host": true
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true
17
+ },
18
+ "zlib"
19
+ ],
20
+ "features": {
21
+ "wxwidgets": {
22
+ "description": "plplot wxwidgets module",
23
+ "dependencies": [
24
+ "wxwidgets"
25
+ ]
26
+ }
27
+ }
28
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plustache/CMakeLists.txt ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
2
+ project(plustache LANGUAGES CXX)
3
+
4
+ find_package(Boost REQUIRED COMPONENTS regex)
5
+
6
+ add_library(
7
+ plustache
8
+
9
+ src/template.cpp
10
+ src/context.cpp
11
+ )
12
+
13
+
14
+ target_include_directories(
15
+ plustache
16
+
17
+ PUBLIC
18
+ ${CMAKE_CURRENT_LIST_DIR}/include
19
+ PRIVATE
20
+ ${Boost_INCLUDE_DIRS}
21
+ )
22
+
23
+ target_link_libraries(
24
+ plustache
25
+
26
+ PRIVATE
27
+ ${Boost_LIBRARIES}
28
+ )
29
+
30
+
31
+ install(TARGETS plustache
32
+ RUNTIME DESTINATION bin
33
+ LIBRARY DESTINATION lib
34
+ ARCHIVE DESTINATION lib
35
+ )
36
+ install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/include/plustache DESTINATION include)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plustache/portfile.cmake ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO mrtazz/plustache
6
+ REF 3208529343e1858cfe504041be8c1fa0af0a59d1
7
+ SHA512 8d9ae368b2f276da2faaf4e3b543fc7ded88ebd8fbe33544aa7d85765a38d085d4c31bb68f6a2f73d4f660da1618d187fb94c74a5f6594e7642bf3949707c67b
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
12
+
13
+ vcpkg_configure_cmake(
14
+ SOURCE_PATH ${SOURCE_PATH}
15
+ PREFER_NINJA
16
+ )
17
+
18
+ vcpkg_install_cmake()
19
+ vcpkg_copy_pdbs()
20
+
21
+ #Debug
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
23
+
24
+ # Handle copyright
25
+ file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/plustache)
26
+ file(RENAME ${CURRENT_PACKAGES_DIR}/share/plustache/LICENSE ${CURRENT_PACKAGES_DIR}/share/plustache/copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/plustache/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "plustache",
3
+ "version-string": "0.4.0",
4
+ "port-version": 2,
5
+ "description": "{{mustaches}} for C++",
6
+ "dependencies": [
7
+ "boost-algorithm",
8
+ "boost-regex"
9
+ ]
10
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pmdk/portfile.cmake ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY ONLY_DYNAMIC_CRT)
2
+
3
+ set(PMDK_VERSION "1.11.0")
4
+
5
+ vcpkg_from_github(
6
+ OUT_SOURCE_PATH SOURCE_PATH
7
+ REPO pmem/pmdk
8
+ REF 8583fcfd68764ac6779e6f93db89b06971b26704 #Commit id corresponding to the version 1.11.0
9
+ SHA512 6d0a9697c97f75ac10e9e8736c2397c6ee23c26af96b65c746e0c32bc2d16f083b177e52bc399aa93c6f2e29ac6106c2696c6bbf9779788d9d19167ac07000b8
10
+ HEAD_REF master
11
+ )
12
+
13
+ # Build only the selected projects
14
+ vcpkg_build_msbuild(
15
+ PROJECT_PATH ${SOURCE_PATH}/src/PMDK.sln
16
+ TARGET "Solution Items\\libpmem,Solution Items\\libpmemlog,Solution Items\\libpmemblk,Solution Items\\libpmemobj,Solution Items\\libpmempool,Solution Items\\Tools\\pmempool"
17
+ OPTIONS /p:SRCVERSION=${PMDK_VERSION}
18
+ )
19
+
20
+ set(DEBUG_ARTIFACTS_PATH ${SOURCE_PATH}/src/x64/Debug)
21
+ set(RELEASE_ARTIFACTS_PATH ${SOURCE_PATH}/src/x64/Release)
22
+
23
+ # Install header files
24
+ file(GLOB HEADER_FILES ${SOURCE_PATH}/src/include/*.h)
25
+ file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
26
+ file(GLOB HEADER_FILES ${SOURCE_PATH}/src/include/libpmemobj/*.h)
27
+ file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/libpmemobj)
28
+
29
+ # Remove unneeded header files
30
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/include/libvmmalloc.h)
31
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/include/librpmem.h)
32
+
33
+ # Install libraries (debug)
34
+ file(GLOB LIB_DEBUG_FILES ${DEBUG_ARTIFACTS_PATH}/libs/libpmem*.lib)
35
+ file(INSTALL ${LIB_DEBUG_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
36
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/libpmemcommon.lib)
37
+ file(GLOB LIB_DEBUG_FILES ${DEBUG_ARTIFACTS_PATH}/libs/libpmem*.dll)
38
+ file(INSTALL ${LIB_DEBUG_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/bin)
39
+
40
+ # Install libraries (release)
41
+ file(GLOB LIB_RELEASE_FILES ${RELEASE_ARTIFACTS_PATH}/libs/libpmem*.lib)
42
+ file(INSTALL ${LIB_RELEASE_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
43
+ file(REMOVE ${CURRENT_PACKAGES_DIR}/lib/libpmemcommon.lib)
44
+ file(GLOB LIB_RELEASE_FILES ${RELEASE_ARTIFACTS_PATH}/libs/libpmem*.dll)
45
+ file(INSTALL ${LIB_RELEASE_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/bin)
46
+
47
+ # Install tools (release only)
48
+ file(INSTALL ${RELEASE_ARTIFACTS_PATH}/libs/pmempool.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/${PORT})
49
+
50
+ vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/pmdk)
51
+
52
+ vcpkg_copy_pdbs()
53
+
54
+ file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pmdk/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pmdk",
3
+ "version": "1.11.0",
4
+ "port-version": 1,
5
+ "description": "Persistent Memory Development Kit",
6
+ "homepage": "https://github.com/pmem/pmdk",
7
+ "supports": "!(arm | x86)"
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngpp/portfile.cmake ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Header only library
2
+ vcpkg_download_distfile(ARCHIVE
3
+ URLS "http://download.savannah.nongnu.org/releases/pngpp/png++-0.2.10.tar.gz"
4
+ FILENAME "png++-0.2.10.tar.gz"
5
+ SHA512 c54a74c0c20212bd0dcf86386c0c11dd824ad14952917ba0ff4c184b6547744458728a4f06018371acb7d5b842b641708914ccaa81bad8e72e173903f494ca85
6
+ )
7
+
8
+ vcpkg_extract_source_archive_ex(
9
+ OUT_SOURCE_PATH SOURCE_PATH
10
+ ARCHIVE ${ARCHIVE}
11
+ )
12
+
13
+ file(GLOB HEADER_FILES ${SOURCE_PATH}/*.hpp)
14
+ file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/png++)
15
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngpp/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pngpp",
3
+ "version-string": "0.2.10",
4
+ "description": "A C++ wrapper for libpng library.",
5
+ "dependencies": [
6
+ "libpng"
7
+ ]
8
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngwriter/portfile.cmake ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO pngwriter/pngwriter
6
+ REF 0.7.0
7
+ SHA512 3e4ef098e4d715d18844cada64f32dbf079fdd1f7a64b6fe5e19584094f6b2a61f80c53804f936b6eefd7ef9dad4a01a7210b1273939d385a0850e48f8ba6683
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_configure_cmake(
12
+ SOURCE_PATH ${SOURCE_PATH}
13
+ PREFER_NINJA
14
+ )
15
+
16
+ vcpkg_install_cmake()
17
+
18
+ vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/PNGwriter)
19
+
20
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
21
+
22
+ # Handle copyright
23
+ file(INSTALL ${SOURCE_PATH}/doc/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pngwriter RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/pngwriter/vcpkg.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pngwriter",
3
+ "version-string": "0.7.0",
4
+ "port-version": 3,
5
+ "description": "PNGwriter is a very easy to use open source graphics library that uses PNG as its output format",
6
+ "dependencies": [
7
+ "freetype",
8
+ "libpng",
9
+ "zlib"
10
+ ]
11
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/arm64_pcre.patch ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/Foundation/include/Poco/Platform.h b/Foundation/include/Poco/Platform.h
2
+ index 9a945f3..f5a9a7f 100644
3
+ --- a/Foundation/include/Poco/Platform.h
4
+ +++ b/Foundation/include/Poco/Platform.h
5
+ @@ -191,7 +191,7 @@
6
+ #else
7
+ #define POCO_ARCH_LITTLE_ENDIAN 1
8
+ #endif
9
+ -#elif defined(__arm64__) || defined(__arm64)
10
+ +#elif defined(__arm64__) || defined(__arm64) || defined(_M_ARM64)
11
+ #define POCO_ARCH POCO_ARCH_ARM64
12
+ #if defined(__ARMEB__)
13
+ #define POCO_ARCH_BIG_ENDIAN 1
14
+ diff --git a/Foundation/src/EventLogChannel.cpp b/Foundation/src/EventLogChannel.cpp
15
+ index 1f51296..c67b71b 100644
16
+ --- a/Foundation/src/EventLogChannel.cpp
17
+ +++ b/Foundation/src/EventLogChannel.cpp
18
+ @@ -11,6 +11,7 @@
19
+ // SPDX-License-Identifier: BSL-1.0
20
+ //
21
+
22
+ +#pragma comment(lib,"advapi32.lib")
23
+
24
+ #include "Poco/EventLogChannel.h"
25
+ #include "Poco/Message.h"
26
+ diff --git a/Foundation/src/utils.h b/Foundation/src/utils.h
27
+ index 4328344..5eeafcd 100644
28
+ --- a/Foundation/src/utils.h
29
+ +++ b/Foundation/src/utils.h
30
+ @@ -91,7 +91,7 @@ int main(int argc, char** argv) {
31
+ //
32
+ // If it prints "correct" then the architecture should be here, in the "correct" section.
33
+ #if defined(_M_X64) || defined(__x86_64__) || \
34
+ - defined(__ARMEL__) || defined(__avr32__) || defined(_M_ARM) || defined(_M_ARM64) || \
35
+ + defined(__ARMEL__) || defined(_M_ARM) || defined(__arm__) || defined(__arm64__) || defined(_M_ARM64) || \
36
+ defined(__hppa__) || defined(__ia64__) || \
37
+ defined(__mips__) || \
38
+ defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) || \
39
+ diff --git a/Net/src/Net.cpp b/Net/src/Net.cpp
40
+ index 1a75379..b4081fd 100644
41
+ --- a/Net/src/Net.cpp
42
+ +++ b/Net/src/Net.cpp
43
+ @@ -11,6 +11,7 @@
44
+ // SPDX-License-Identifier: BSL-1.0
45
+ //
46
+
47
+ +#pragma comment(lib,"advapi32.lib")
48
+
49
+ #include "Poco/Net/Net.h"
50
+
51
+ diff --git a/Util/src/WinRegistryKey.cpp b/Util/src/WinRegistryKey.cpp
52
+ index 7fd1a28..a07c5d2 100644
53
+ --- a/Util/src/WinRegistryKey.cpp
54
+ +++ b/Util/src/WinRegistryKey.cpp
55
+ @@ -11,6 +11,7 @@
56
+ // SPDX-License-Identifier: BSL-1.0
57
+ //
58
+
59
+ +#pragma comment(lib,"advapi32.lib")
60
+
61
+ #include "Poco/Util/WinRegistryKey.h"
62
+ #include "Poco/Exception.h"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix-InstallDataMysql.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/Data/CMakeLists.txt b/Data/CMakeLists.txt
2
+ index 9d0a85c..4f1ae21 100644
3
+ --- a/Data/CMakeLists.txt
4
+ +++ b/Data/CMakeLists.txt
5
+ @@ -45,7 +45,7 @@ else(ENABLE_DATA_SQLITE)
6
+ message(STATUS "SQLite Support Disabled")
7
+ endif()
8
+
9
+ -if((MYSQL_FOUND OR unofficial-libmariadb_FOUND) AND ENABLE_DATA_MYSQL)
10
+ +if((unofficial-libmysql_FOUND OR unofficial-libmariadb_FOUND) AND ENABLE_DATA_MYSQL)
11
+ message(STATUS "MySQL Support Enabled")
12
+ add_subdirectory(MySQL)
13
+ else()
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix-error-c3861.patch ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/XML/include/Poco/XML/ParserEngine.h b/XML/include/Poco/XML/ParserEngine.h
2
+ index e0c8455..363654c 100644
3
+ --- a/XML/include/Poco/XML/ParserEngine.h
4
+ +++ b/XML/include/Poco/XML/ParserEngine.h
5
+ @@ -19,6 +19,7 @@
6
+
7
+ #include "Poco/XML/XML.h"
8
+ #if defined(POCO_UNBUNDLED)
9
+ +#include <expat_config.h>
10
+ #include <expat.h>
11
+ #else
12
+ #include "Poco/XML/expat.h"
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix-feature-sqlite3.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake b/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake
2
+ index 5478bab..c5d6d6d 100644
3
+ --- a/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake
4
+ +++ b/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake
5
+ @@ -5,7 +5,7 @@ if(@POCO_UNBUNDLED@)
6
+ if(CMAKE_VERSION VERSION_LESS "3.14")
7
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/V313")
8
+ endif()
9
+ - find_dependency(SQLite3 REQUIRED)
10
+ + find_dependency(unofficial-sqlite3 REQUIRED)
11
+ endif()
12
+
13
+ include("${CMAKE_CURRENT_LIST_DIR}/PocoDataSQLiteTargets.cmake")
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/fix_dependency.patch ADDED
@@ -0,0 +1,244 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 4e05272..44dd7cb 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -82,8 +82,6 @@ option(FORCE_OPENSSL "Force usage of OpenSSL even under windows" OFF)
6
+
7
+ if(ENABLE_CRYPTO OR ENABLE_NETSSL OR ENABLE_JWT)
8
+ find_package(OpenSSL REQUIRED)
9
+ -else()
10
+ - find_package(OpenSSL)
11
+ endif()
12
+
13
+ if(OPENSSL_FOUND)
14
+ @@ -113,24 +111,19 @@ else()
15
+ option(ENABLE_APACHECONNECTOR "Enable ApacheConnector" OFF)
16
+ endif()
17
+
18
+ -if(ENABLE_DATA_MYSQL)
19
+ - find_package(MySQL REQUIRED)
20
+ -else()
21
+ - find_package(MySQL)
22
+ -endif()
23
+ +option(ENABLE_DATA "Enable Data" OFF)
24
+ +option(ENABLE_DATA_MYSQL "Enable Data MySQL or MariaDB" OFF)
25
+
26
+ -if(MYSQL_FOUND)
27
+ - option(ENABLE_DATA "Enable Data" ON)
28
+ - option(ENABLE_DATA_MYSQL "Enable Data MySQL or MariaDB" ON)
29
+ -else()
30
+ - option(ENABLE_DATA "Enable Data" OFF)
31
+ - option(ENABLE_DATA_MYSQL "Enable Data MySQL or MariaDB" OFF)
32
+ +if(ENABLE_DATA_MYSQL)
33
+ + find_package(libmysql)
34
+ + if (NOT libmysql_FOUND)
35
+ + find_package(unofficial-libmariadb CONFIG REQUIRED)
36
+ + set(MYSQL_LIBRARIES unofficial::libmariadb)
37
+ + endif()
38
+ endif()
39
+
40
+ if(ENABLE_DATA_POSTGRESQL)
41
+ find_package(PostgreSQL REQUIRED)
42
+ -else()
43
+ - find_package(PostgreSQL)
44
+ endif()
45
+
46
+ if(PostgreSQL_FOUND)
47
+ @@ -207,6 +200,9 @@ include(DefinePlatformSpecifc)
48
+ # Collect the built libraries and include dirs, the will be used to create the PocoConfig.cmake file
49
+ set(Poco_COMPONENTS "")
50
+
51
+ +# Do not declare the link library in the code!
52
+ +add_definitions(-DPOCO_NO_AUTOMATIC_LIBS)
53
+ +
54
+ if(ENABLE_TESTS)
55
+ add_subdirectory(CppUnit)
56
+ set(ENABLE_XML ON CACHE BOOL "Enable XML" FORCE)
57
+ @@ -339,8 +335,11 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/Redis AND ENABLE_REDIS)
58
+ list(APPEND Poco_COMPONENTS "Redis")
59
+ endif()
60
+
61
+ -if(EXISTS ${PROJECT_SOURCE_DIR}/PDF AND ENABLE_PDF)
62
+ - add_subdirectory(PDF)
63
+ +if(ENABLE_PDF)
64
+ + include(SelectLibraryConfigurations)
65
+ + find_library(PocoPDF_LIBRARY_RELEASE NAMES libhpdf)
66
+ + find_library(PocoPDF_LIBRARY_DEBUG NAMES libhpdfd)
67
+ + select_library_configurations(PocoPDF)
68
+ list(APPEND Poco_COMPONENTS "PDF")
69
+ endif()
70
+
71
+ @@ -478,15 +477,6 @@ install(
72
+ Devel
73
+ )
74
+
75
+ -if(POCO_UNBUNDLED)
76
+ - install(FILES cmake/FindPCRE.cmake
77
+ - DESTINATION "${PocoConfigPackageLocation}")
78
+ - install(FILES cmake/V39/FindEXPAT.cmake
79
+ - DESTINATION "${PocoConfigPackageLocation}/V39")
80
+ - install(FILES cmake/V313/FindSQLite3.cmake
81
+ - DESTINATION "${PocoConfigPackageLocation}/V313")
82
+ -endif()
83
+ -
84
+ message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
85
+ message(STATUS "${PROJECT_NAME} package version: ${PROJECT_VERSION}")
86
+ if(BUILD_SHARED_LIBS)
87
+ diff --git a/Data/CMakeLists.txt b/Data/CMakeLists.txt
88
+ index 7d1e99e..9d0a85c 100644
89
+ --- a/Data/CMakeLists.txt
90
+ +++ b/Data/CMakeLists.txt
91
+ @@ -45,7 +45,7 @@ else(ENABLE_DATA_SQLITE)
92
+ message(STATUS "SQLite Support Disabled")
93
+ endif()
94
+
95
+ -if(MYSQL_FOUND AND ENABLE_DATA_MYSQL)
96
+ +if((MYSQL_FOUND OR unofficial-libmariadb_FOUND) AND ENABLE_DATA_MYSQL)
97
+ message(STATUS "MySQL Support Enabled")
98
+ add_subdirectory(MySQL)
99
+ else()
100
+ diff --git a/Data/MySQL/CMakeLists.txt b/Data/MySQL/CMakeLists.txt
101
+ index f71b145..7034974 100644
102
+ --- a/Data/MySQL/CMakeLists.txt
103
+ +++ b/Data/MySQL/CMakeLists.txt
104
+ @@ -21,7 +21,7 @@ set_target_properties(DataMySQL
105
+ DEFINE_SYMBOL MySQL_EXPORTS
106
+ )
107
+
108
+ -target_link_libraries(DataMySQL PUBLIC Poco::Data MySQL::client)
109
+ +target_link_libraries(DataMySQL PUBLIC Poco::Data ${MYSQL_LIBRARIES})
110
+ target_include_directories(DataMySQL
111
+ PUBLIC
112
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
113
+ diff --git a/Data/MySQL/include/Poco/Data/MySQL/MySQL.h b/Data/MySQL/include/Poco/Data/MySQL/MySQL.h
114
+ index 6ddcd39..9e50803 100644
115
+ --- a/Data/MySQL/include/Poco/Data/MySQL/MySQL.h
116
+ +++ b/Data/MySQL/include/Poco/Data/MySQL/MySQL.h
117
+ @@ -57,8 +57,6 @@
118
+ #endif
119
+ #if defined(LIBMARIADB)
120
+ #pragma comment(lib, "libmariadb")
121
+ - #else
122
+ - #pragma comment(lib, "libmysql")
123
+ #endif
124
+ #endif
125
+
126
+ diff --git a/Data/SQLite/CMakeLists.txt b/Data/SQLite/CMakeLists.txt
127
+ index b52e2c5..0dcfae2 100644
128
+ --- a/Data/SQLite/CMakeLists.txt
129
+ +++ b/Data/SQLite/CMakeLists.txt
130
+ @@ -7,7 +7,7 @@ file(GLOB_RECURSE HDRS_G "include/*.h")
131
+ POCO_HEADERS_AUTO(SQLITE_SRCS ${HDRS_G})
132
+
133
+ if(POCO_UNBUNDLED)
134
+ - find_package(SQLite3 REQUIRED)
135
+ + find_package(unofficial-sqlite3 CONFIG REQUIRED)
136
+ else()
137
+ # sqlite3
138
+ POCO_SOURCES(SQLITE_SRCS sqlite3
139
+ @@ -43,7 +43,7 @@ target_include_directories(DataSQLite
140
+ )
141
+
142
+ if(POCO_UNBUNDLED)
143
+ - target_link_libraries(DataSQLite PUBLIC SQLite::SQLite3)
144
+ + target_link_libraries(DataSQLite PUBLIC unofficial::sqlite3::sqlite3)
145
+ target_compile_definitions(DataSQLite PUBLIC
146
+ POCO_UNBUNDLED
147
+ SQLITE_THREADSAFE=1
148
+ diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
149
+ index 6f5100f..c9fa2e5 100644
150
+ --- a/Foundation/CMakeLists.txt
151
+ +++ b/Foundation/CMakeLists.txt
152
+ @@ -35,7 +35,7 @@ POCO_MESSAGES(SRCS Logging src/pocomsg.mc)
153
+ # If POCO_UNBUNDLED is enabled we try to find the required packages
154
+ # The configuration will fail if the packages are not found
155
+ if(POCO_UNBUNDLED)
156
+ - find_package(PCRE REQUIRED)
157
+ + find_package(unofficial-pcre CONFIG REQUIRED)
158
+ find_package(ZLIB REQUIRED)
159
+
160
+ #HACK: Unicode.cpp requires functions from these files. The can't be taken from the library
161
+ @@ -101,7 +101,7 @@ set_target_properties(Foundation
162
+ )
163
+
164
+ if(POCO_UNBUNDLED)
165
+ - target_link_libraries(Foundation PUBLIC Pcre::Pcre ZLIB::ZLIB)
166
+ + target_link_libraries(Foundation PUBLIC unofficial::pcre::pcre ZLIB::ZLIB)
167
+ target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED)
168
+ add_definitions(
169
+ -D_pcre_utf8_table1=_poco_pcre_utf8_table1
170
+ diff --git a/Foundation/cmake/PocoFoundationConfig.cmake b/Foundation/cmake/PocoFoundationConfig.cmake
171
+ index 46c2d3f..af2e78c 100644
172
+ --- a/Foundation/cmake/PocoFoundationConfig.cmake
173
+ +++ b/Foundation/cmake/PocoFoundationConfig.cmake
174
+ @@ -2,7 +2,7 @@ if(@POCO_UNBUNDLED@)
175
+ include(CMakeFindDependencyMacro)
176
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
177
+ find_dependency(ZLIB REQUIRED)
178
+ - find_dependency(PCRE REQUIRED)
179
+ + find_dependency(unofficial-pcre REQUIRED)
180
+ endif()
181
+
182
+ include("${CMAKE_CURRENT_LIST_DIR}/PocoFoundationTargets.cmake")
183
+ diff --git a/XML/CMakeLists.txt b/XML/CMakeLists.txt
184
+ index 4fbf06f..793285a 100644
185
+ --- a/XML/CMakeLists.txt
186
+ +++ b/XML/CMakeLists.txt
187
+ @@ -20,7 +20,7 @@ endif()
188
+ # If POCO_UNBUNDLED is enabled we try to find the required packages
189
+ # The configuration will fail if the packages are not found
190
+ if(POCO_UNBUNDLED)
191
+ - find_package(EXPAT REQUIRED)
192
+ + find_package(expat CONFIG REQUIRED)
193
+ else()
194
+ POCO_SOURCES(SRCS expat
195
+ src/xmlparse.cpp
196
+ @@ -50,7 +50,7 @@ target_include_directories(XML
197
+ )
198
+
199
+ if(POCO_UNBUNDLED)
200
+ - target_link_libraries(XML PUBLIC EXPAT::EXPAT)
201
+ + target_link_libraries(XML PUBLIC expat::expat)
202
+ target_compile_definitions(XML PUBLIC POCO_UNBUNDLED)
203
+ else()
204
+ if(WIN32)
205
+ diff --git a/XML/cmake/PocoXMLConfig.cmake b/XML/cmake/PocoXMLConfig.cmake
206
+ index ef58207..4ed94ec 100644
207
+ --- a/XML/cmake/PocoXMLConfig.cmake
208
+ +++ b/XML/cmake/PocoXMLConfig.cmake
209
+ @@ -4,7 +4,7 @@ if(@POCO_UNBUNDLED@)
210
+ if(CMAKE_VERSION VERSION_LESS "3.10")
211
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/V39")
212
+ endif()
213
+ - find_dependency(EXPAT REQUIRED)
214
+ + find_dependency(expat CONFIG REQUIRED)
215
+ endif()
216
+
217
+ include("${CMAKE_CURRENT_LIST_DIR}/PocoXMLTargets.cmake")
218
+ diff --git a/cmake/PocoConfig.cmake.in b/cmake/PocoConfig.cmake.in
219
+ index 173eacd..936edf4 100644
220
+ --- a/cmake/PocoConfig.cmake.in
221
+ +++ b/cmake/PocoConfig.cmake.in
222
+ @@ -8,6 +8,13 @@ if (NOT Poco_FIND_COMPONENTS)
223
+ return()
224
+ endif()
225
+
226
+ +include(CMakeFindDependencyMacro)
227
+ +find_dependency(ZLIB REQUIRED)
228
+ +find_dependency(unofficial-pcre REQUIRED)
229
+ +if(Poco_FIND_REQUIRED_XML)
230
+ + find_dependency(expat CONFIG REQUIRED)
231
+ +endif()
232
+ +
233
+ set(_Poco_FIND_PARTS_REQUIRED)
234
+ if (Poco_FIND_REQUIRED)
235
+ set(_Poco_FIND_PARTS_REQUIRED REQUIRED)
236
+ @@ -23,7 +30,7 @@ set(_Poco_NOTFOUND_MESSAGE)
237
+
238
+ # Let components find each other, but don't overwrite CMAKE_PREFIX_PATH
239
+ set(_Poco_CMAKE_PREFIX_PATH_old ${CMAKE_PREFIX_PATH})
240
+ -set(CMAKE_PREFIX_PATH ${_Poco_install_prefix})
241
+ +set(CMAKE_PREFIX_PATH ${_Poco_install_prefix} ${CMAKE_PREFIX_PATH})
242
+
243
+ foreach(module ${Poco_FIND_COMPONENTS})
244
+ find_package(Poco${module}
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/portfile.cmake ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO pocoproject/poco
4
+ REF de61f0049175a941cc83c2615c3bdc5e947b89f9 # poco-1.11.1-release
5
+ SHA512 0290eeeca8a85286efe8f583224062ea97668c2730f8f7db4e075ce75e997b0a0c969159d4034c27fbb2e8d4b9c6504888d8ffa001193f7eb0e450bca2d5d7a2
6
+ HEAD_REF master
7
+ PATCHES
8
+ # Fix embedded copy of pcre in static linking mode
9
+ static_pcre.patch
10
+ # Add the support of arm64-windows
11
+ arm64_pcre.patch
12
+ fix_dependency.patch
13
+ fix-feature-sqlite3.patch
14
+ fix-error-c3861.patch
15
+ fix-InstallDataMysql.patch
16
+ )
17
+
18
+ file(REMOVE "${SOURCE_PATH}/Foundation/src/pcre.h")
19
+ file(REMOVE "${SOURCE_PATH}/cmake/V39/FindEXPAT.cmake")
20
+ file(REMOVE "${SOURCE_PATH}/cmake/V313/FindSQLite3.cmake")
21
+ file(REMOVE "${SOURCE_PATH}/cmake/FindPCRE.cmake")
22
+ file(REMOVE "${SOURCE_PATH}/XML/src/expat_config.h")
23
+ file(REMOVE "${SOURCE_PATH}/cmake/FindMySQL.cmake")
24
+
25
+ # define Poco linkage type
26
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" POCO_STATIC)
27
+ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" POCO_MT)
28
+
29
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
30
+ FEATURES
31
+ pdf ENABLE_PDF
32
+ netssl ENABLE_NETSSL
33
+ netssl ENABLE_NETSSL_WIN
34
+ netssl ENABLE_CRYPTO
35
+ sqlite3 ENABLE_DATA_SQLITE
36
+ postgresql ENABLE_DATA_POSTGRESQL
37
+ )
38
+
39
+ if ("mysql" IN_LIST FEATURES OR "mariadb" IN_LIST FEATURES)
40
+ set(POCO_USE_MYSQL ON)
41
+ else()
42
+ set(POCO_USE_MYSQL OFF)
43
+ endif()
44
+
45
+ vcpkg_cmake_configure(
46
+ SOURCE_PATH "${SOURCE_PATH}"
47
+ OPTIONS ${FEATURE_OPTIONS}
48
+ # force to use dependencies as external
49
+ -DPOCO_UNBUNDLED=ON
50
+ # Define linking feature
51
+ -DPOCO_STATIC=${POCO_STATIC}
52
+ -DPOCO_MT=${POCO_MT}
53
+ -DENABLE_TESTS=OFF
54
+ # Allow enabling and disabling components
55
+ # POCO_ENABLE_SQL_ODBC, POCO_ENABLE_SQL_MYSQL and POCO_ENABLE_SQL_POSTGRESQL are
56
+ # defined on the fly if the required librairies are present
57
+ -DENABLE_ENCODINGS=ON
58
+ -DENABLE_ENCODINGS_COMPILER=ON
59
+ -DENABLE_XML=ON
60
+ -DENABLE_JSON=ON
61
+ -DENABLE_MONGODB=ON
62
+ # -DPOCO_ENABLE_SQL_SQLITE=ON # SQLITE are not supported.
63
+ -DENABLE_REDIS=ON
64
+ -DENABLE_UTIL=ON
65
+ -DENABLE_NET=ON
66
+ -DENABLE_SEVENZIP=ON
67
+ -DENABLE_ZIP=ON
68
+ -DENABLE_CPPPARSER=ON
69
+ -DENABLE_POCODOC=ON
70
+ -DENABLE_PAGECOMPILER=ON
71
+ -DENABLE_PAGECOMPILER_FILE2PAGE=ON
72
+ -DPOCO_DISABLE_INTERNAL_OPENSSL=ON
73
+ -DENABLE_APACHECONNECTOR=OFF
74
+ -DENABLE_DATA_MYSQL=${POCO_USE_MYSQL}
75
+ )
76
+
77
+ vcpkg_cmake_install()
78
+
79
+ vcpkg_copy_pdbs()
80
+
81
+ # Move apps to the tools folder
82
+ vcpkg_copy_tools(TOOL_NAMES cpspc f2cpsp PocoDoc tec arc AUTO_CLEAN)
83
+
84
+ # Copy additional include files not part of any libraries
85
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/include/Poco/SQL")
86
+ file(COPY "${SOURCE_PATH}/Data/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
87
+ endif()
88
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/include/Poco/SQL/MySQL")
89
+ file(COPY "${SOURCE_PATH}/Data/MySQL/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
90
+ endif()
91
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/include/Poco/SQL/ODBC")
92
+ file(COPY "${SOURCE_PATH}/Data/ODBC/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
93
+ endif()
94
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/include/Poco/SQL/PostgreSQL")
95
+ file(COPY "${SOURCE_PATH}/Data/PostgreSQL/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
96
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/libpq")
97
+ endif()
98
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/include/Poco/SQL/SQLite")
99
+ file(COPY "${SOURCE_PATH}/Data/SQLite/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
100
+ endif()
101
+
102
+ if(VCPKG_TARGET_IS_WINDOWS)
103
+ vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
104
+ else()
105
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Poco)
106
+ endif()
107
+
108
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
109
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
110
+
111
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/static_pcre.patch ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/Foundation/CMakeLists.txt b/Foundation/CMakeLists.txt
2
+ index 6b276be..6f5100f 100644
3
+ --- a/Foundation/CMakeLists.txt
4
+ +++ b/Foundation/CMakeLists.txt
5
+ @@ -103,6 +103,21 @@ set_target_properties(Foundation
6
+ if(POCO_UNBUNDLED)
7
+ target_link_libraries(Foundation PUBLIC Pcre::Pcre ZLIB::ZLIB)
8
+ target_compile_definitions(Foundation PUBLIC POCO_UNBUNDLED)
9
+ + add_definitions(
10
+ + -D_pcre_utf8_table1=_poco_pcre_utf8_table1
11
+ + -D_pcre_utf8_table1_size=_poco_pcre_utf8_table1_size
12
+ + -D_pcre_utf8_table2=_poco_pcre_utf8_table2
13
+ + -D_pcre_utf8_table3=_poco_pcre_utf8_table3
14
+ + -D_pcre_utf8_table4=_poco_pcre_utf8_table4
15
+ + -D_pcre_utt_names=_poco_pcre_utt_names
16
+ + -D_pcre_utt=_poco_pcre_utt
17
+ + -D_pcre_utt_size=_poco_pcre_utt_size
18
+ + -D_pcre_OP_lengths=_poco_pcre_OP_lengths
19
+ + -D_pcre_hspace_list=_poco_pcre_hspace_list
20
+ + -D_pcre_vspace_list=_poco_pcre_vspace_list
21
+ + -D_pcre_ucp_gentype=_poco_pcre_ucp_gentype
22
+ + -D_pcre_ucp_gbtable=_poco_pcre_ucp_gbtable
23
+ + )
24
+ endif(POCO_UNBUNDLED)
25
+
26
+ target_include_directories(Foundation
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poco/vcpkg.json ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "poco",
3
+ "version": "1.11.1",
4
+ "description": "Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.",
5
+ "homepage": "https://github.com/pocoproject/poco",
6
+ "license": "BSL-1.0",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ "expat",
10
+ "pcre",
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ },
19
+ "zlib"
20
+ ],
21
+ "features": {
22
+ "mariadb": {
23
+ "description": "MariaDB support for POCO",
24
+ "dependencies": [
25
+ "libmariadb"
26
+ ]
27
+ },
28
+ "mysql": {
29
+ "description": "Mysql support for POCO",
30
+ "dependencies": [
31
+ "libmysql"
32
+ ]
33
+ },
34
+ "netssl": {
35
+ "description": "NetSSL support for POCO",
36
+ "dependencies": [
37
+ {
38
+ "name": "openssl",
39
+ "platform": "!windows"
40
+ }
41
+ ]
42
+ },
43
+ "pdf": {
44
+ "description": "Haru support for POCO",
45
+ "dependencies": [
46
+ "libharu"
47
+ ]
48
+ },
49
+ "postgresql": {
50
+ "description": "PostgreSQL support for POCO",
51
+ "dependencies": [
52
+ "libpqxx"
53
+ ]
54
+ },
55
+ "sqlite3": {
56
+ "description": "Sqlite3 support for POCO",
57
+ "dependencies": [
58
+ "sqlite3"
59
+ ]
60
+ }
61
+ }
62
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/0002-HAVE_UNISTD_H.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/podofo_config.h.in b/podofo_config.h.in
2
+ index fea9ada..a813c7b 100644
3
+ --- a/podofo_config.h.in
4
+ +++ b/podofo_config.h.in
5
+ @@ -59,3 +59,10 @@
6
+ #cmakedefine PODOFO_HAVE_OPENSSL_NO_RC4
7
+ #cmakedefine PODOFO_HAVE_LIBIDN
8
+ #cmakedefine PODOFO_HAVE_UNISTRING_LIB
9
+ +
10
+ +/* Fix build for MacOS 10.13 */
11
+ +#if defined(__APPLE__) && !defined(__IOS__)
12
+ +#cmakedefine01 HAVE_UNISTD_H
13
+ +#else
14
+ +#cmakedefine HAVE_UNISTD_H
15
+ +#endif
third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/0003-uwp_fix.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/podofo/base/PdfCompilerCompat.h b/src/podofo/base/PdfCompilerCompat.h
2
+ index 146731d..7041712 100644
3
+ --- a/src/podofo/base/PdfCompilerCompat.h
4
+ +++ b/src/podofo/base/PdfCompilerCompat.h
5
+ @@ -113,6 +113,10 @@
6
+ #define NOMINMAX
7
+ #endif
8
+
9
+ +#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
10
+ +#include <combaseapi.h>
11
+ +#endif
12
+ +
13
+ // Integer types - fixed size types guaranteed to work anywhere
14
+ // because we detect the right underlying type name to use with
15
+ // CMake. Use typedefs rather than macros for saner error messages
third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/0005-fix-crypto.patch ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index f23dd5a..fd9e8ed 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -315,11 +315,12 @@ ENDIF(CMAKE_COMPILER_IS_GNUCXX)
6
+ FIND_PACKAGE(ZLIB REQUIRED)
7
+ MESSAGE("Found zlib headers in ${ZLIB_INCLUDE_DIR}, library at ${ZLIB_LIBRARIES}")
8
+
9
+ -FIND_PACKAGE(LIBCRYPTO)
10
+ +FIND_PACKAGE(OpenSSL)
11
+
12
+ -IF(LIBCRYPTO_FOUND)
13
+ +IF(OpenSSL_FOUND)
14
+ SET(PODOFO_HAVE_OPENSSL TRUE)
15
+ - INCLUDE_DIRECTORIES(${LIBCRYPTO_INCLUDE_DIR})
16
+ + LIST(APPEND OPENSSL_LIBRARIES OpenSSL::SSL OpenSSL::Crypto)
17
+ + ADD_DEFINITIONS(-DPODOFO_HAVE_OPENSSL_1_1)
18
+ MESSAGE("Found OpenSSL's libCrypto headers in ${LIBCRYPTO_INCLUDE_DIR}, library at ${LIBCRYPTO_LIBRARIES}")
19
+ ELSE(LIBCRYPTO_FOUND)
20
+ MESSAGE("OpenSSL's libCrypto not found. Encryption support will be disabled")
21
+ @@ -396,8 +397,6 @@ ENDIF(CppUnit_FOUND)
22
+
23
+ ENDIF(NOT PODOFO_BUILD_LIB_ONLY)
24
+
25
+ -FIND_PACKAGE(OpenSSL)
26
+ -
27
+ FIND_PACKAGE(FREETYPE REQUIRED)
28
+ MESSAGE("Found freetype library at ${FREETYPE_LIBRARIES}, headers ${FREETYPE_INCLUDE_DIR}")
29
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/fix-x64-osx.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/podofo/base/PdfDate.cpp b/src/podofo/base/PdfDate.cpp
2
+ index cefa221..75d80e4 100644
3
+ --- a/src/podofo/base/PdfDate.cpp
4
+ +++ b/src/podofo/base/PdfDate.cpp
5
+ @@ -196,7 +196,7 @@ PdfDate::PdfDate( const PdfString & sDate )
6
+
7
+ strncpy(m_szDate,sDate.GetString(),PDF_DATE_BUFFER_SIZE);
8
+
9
+ - struct tm _tm{};
10
+ + struct tm _tm; memset (&_tm, 0, sizeof(struct tm));
11
+ _tm.tm_mday = 1;
12
+
13
+ const char * pszDate = sDate.GetString();
third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/freetype.patch ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/modules/FindFREETYPE.cmake b/cmake/modules/FindFREETYPE.cmake
2
+ index 41114798f..0911dc092 100644
3
+ --- a/cmake/modules/FindFREETYPE.cmake
4
+ +++ b/cmake/modules/FindFREETYPE.cmake
5
+ @@ -15,9 +15,13 @@ SET(FREETYPE_FIND_QUIETLY 1)
6
+ # first we try to find ft2build.h in the new location as
7
+ # of freetype 2.5.1
8
+ FIND_PATH(FREETYPE_INCLUDE_DIR_FT2BUILD ft2build.h
9
+ + PATHS
10
+ /usr/include/freetype2
11
+ /usr/local/include/freetype2
12
+ /usr/X11/include/freetype2
13
+ + PATH_SUFFIXES
14
+ + freetype2
15
+ + include/freetype2
16
+ NO_CMAKE_SYSTEM_PATH
17
+ )
18
+
third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/portfile.cmake ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(PODOFO_VERSION 0.9.7)
2
+
3
+ if (VCPKG_TARGET_IS_UWP)
4
+ set(ADDITIONAL_PATCH "0003-uwp_fix.patch")
5
+ endif()
6
+
7
+ vcpkg_from_sourceforge(
8
+ OUT_SOURCE_PATH SOURCE_PATH
9
+ REPO podofo/podofo
10
+ REF ${PODOFO_VERSION}
11
+ FILENAME "podofo-${PODOFO_VERSION}.tar.gz"
12
+ SHA512 0e699739c2fb7d4d02ffca371504bb19f3a8a97ddcbfc06f8d9636db9e73064b4f633f7f09bce92140bb2174610ad68c1e5f8460d474d176ab803ed28295251b
13
+ PATCHES
14
+ 0002-HAVE_UNISTD_H.patch
15
+ freetype.patch
16
+ ${ADDITIONAL_PATCH}
17
+ 0005-fix-crypto.patch
18
+ fix-x64-osx.patch
19
+ )
20
+
21
+ set(PODOFO_NO_FONTMANAGER ON)
22
+ if("fontconfig" IN_LIST FEATURES)
23
+ set(PODOFO_NO_FONTMANAGER OFF)
24
+ endif()
25
+
26
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PODOFO_BUILD_SHARED)
27
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PODOFO_BUILD_STATIC)
28
+
29
+ set(IS_WIN32 OFF)
30
+ if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
31
+ set(IS_WIN32 ON)
32
+ endif()
33
+
34
+ file(REMOVE ${SOURCE_PATH}/cmake/modules/FindOpenSSL.cmake)
35
+ file(REMOVE ${SOURCE_PATH}/cmake/modules/FindZLIB.cmake)
36
+
37
+ vcpkg_configure_cmake(
38
+ SOURCE_PATH ${SOURCE_PATH}
39
+ PREFER_NINJA
40
+ OPTIONS
41
+ -DPODOFO_BUILD_LIB_ONLY=1
42
+ -DPODOFO_BUILD_SHARED=${PODOFO_BUILD_SHARED}
43
+ -DPODOFO_BUILD_STATIC=${PODOFO_BUILD_STATIC}
44
+ -DPODOFO_NO_FONTMANAGER=${PODOFO_NO_FONTMANAGER}
45
+ -DCMAKE_DISABLE_FIND_PACKAGE_FONTCONFIG=${PODOFO_NO_FONTMANAGER}
46
+ -DCMAKE_DISABLE_FIND_PACKAGE_LIBCRYPTO=${IS_WIN32}
47
+ -DCMAKE_DISABLE_FIND_PACKAGE_LIBIDN=ON
48
+ -DCMAKE_DISABLE_FIND_PACKAGE_CppUnit=ON
49
+ -DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
50
+ )
51
+
52
+ vcpkg_install_cmake()
53
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
54
+
55
+ # Handle copyright
56
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/podofo/vcpkg.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "podofo",
3
+ "version": "0.9.7",
4
+ "description": "PoDoFo is a library to work with the PDF file format",
5
+ "homepage": "https://sourceforge.net/projects/podofo/",
6
+ "supports": "!uwp",
7
+ "dependencies": [
8
+ "freetype",
9
+ "libjpeg-turbo",
10
+ "libpng",
11
+ "openssl",
12
+ "tiff",
13
+ "zlib"
14
+ ],
15
+ "features": {
16
+ "fontconfig": {
17
+ "description": "Enable font manager support on Unix platforms",
18
+ "dependencies": [
19
+ "fontconfig"
20
+ ]
21
+ }
22
+ }
23
+ }
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/CMakeLists.txt ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.12)
2
+
3
+ project(PoissonRecon LANGUAGES NONE)
4
+
5
+ set(INSTALL_BIN_DIR "bin" CACHE PATH "Path where exe and dll will be installed")
6
+ set(INSTALL_LIB_DIR "lib" CACHE PATH "Path where lib will be installed")
7
+ set(INSTALL_INCLUDE_DIR "include/${PROJECT_NAME}" CACHE PATH "Path where headers will be installed")
8
+ set(INSTALL_CMAKE_DIR "share/poissonrecon" CACHE PATH "Path where cmake configs will be installed")
9
+
10
+ find_package(PNG REQUIRED)
11
+ find_package(JPEG REQUIRED)
12
+
13
+ set(PoissonRecon_HEADERS
14
+ "Src/Allocator.h"
15
+ "Src/Array.h"
16
+ "Src/BinaryNode.h"
17
+ "Src/BlockedVector.h"
18
+ "Src/BSplineData.h"
19
+ "Src/CmdLineParser.h"
20
+ "Src/Factor.h"
21
+ "Src/FEMTree.h"
22
+ "Src/FunctionData.h"
23
+ "Src/Geometry.h"
24
+ "Src/Image.h"
25
+ "Src/JPEG.h"
26
+ "Src/LinearSolvers.h"
27
+ "Src/MarchingCubes.h"
28
+ "Src/MAT.h"
29
+ "Src/MyMiscellany.h"
30
+ "Src/Ply.h"
31
+ "Src/PlyFile.h"
32
+ "Src/PNG.h"
33
+ "Src/Polynomial.h"
34
+ "Src/PPolynomial.h"
35
+ "Src/PreProcessor.h"
36
+ "Src/RegularTree.h"
37
+ "Src/SparseMatrix.h"
38
+ "Src/SparseMatrixInterface.h"
39
+ "Src/Window.h"
40
+ )
41
+
42
+ set(PoissonRecon_INLINES
43
+ "Src/Array.inl"
44
+ "Src/BMPStream.inl"
45
+ "Src/BSplineData.inl"
46
+ "Src/CmdLineParser.inl"
47
+ "Src/FEMTree.Evaluation.inl"
48
+ "Src/FEMTree.Initialize.inl"
49
+ "Src/FEMTree.inl"
50
+ "Src/FEMTree.IsoSurface.specialized.inl"
51
+ "Src/FEMTree.SortedTreeNodes.inl"
52
+ "Src/FEMTree.System.inl"
53
+ "Src/FEMTree.WeightedSamples.inl"
54
+ "Src/FunctionData.inl"
55
+ "Src/Geometry.inl"
56
+ "Src/JPEG.inl"
57
+ "Src/MAT.inl"
58
+ "Src/PlyFile.inl"
59
+ "Src/PNG.inl"
60
+ "Src/Polynomial.inl"
61
+ "Src/PPolynomial.inl"
62
+ "Src/RegularTree.inl"
63
+ "Src/SparseMatrix.inl"
64
+ "Src/SparseMatrixInterface.inl"
65
+ "Src/Window.inl"
66
+ )
67
+
68
+ add_library(PoissonRecon INTERFACE)
69
+ target_link_libraries(PoissonRecon INTERFACE PNG::PNG JPEG::JPEG)
70
+ set_target_properties(PoissonRecon PROPERTIES PUBLIC_HEADER "${PoissonRecon_HEADERS};${PoissonRecon_INLINES}")
71
+ target_include_directories(PoissonRecon INTERFACE $<INSTALL_INTERFACE:${INSTALL_INCLUDE_DIR}>)
72
+
73
+ install(TARGETS PoissonRecon EXPORT PoissonReconTargets
74
+ RUNTIME DESTINATION "${INSTALL_BIN_DIR}"
75
+ LIBRARY DESTINATION "${INSTALL_LIB_DIR}"
76
+ ARCHIVE DESTINATION "${INSTALL_LIB_DIR}"
77
+ PUBLIC_HEADER DESTINATION "${INSTALL_INCLUDE_DIR}"
78
+ )
79
+ install(EXPORT PoissonReconTargets
80
+ NAMESPACE PoissonRecon::
81
+ DESTINATION ${INSTALL_CMAKE_DIR}
82
+ )
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/disable-gcc5-checks.patch ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/Src/FEMTree.WeightedSamples.inl b/Src/FEMTree.WeightedSamples.inl
2
+ index 7b0d6b4..bb3ad0f 100644
3
+ --- a/Src/FEMTree.WeightedSamples.inl
4
+ +++ b/Src/FEMTree.WeightedSamples.inl
5
+ @@ -362,7 +362,7 @@ Real FEMTree< Dim , Real >::_splatPointData( Allocator< FEMTreeNode > *nodeAlloc
6
+ // pow( width , -dim ): So that each sample is splatted with a unit volume
7
+ V _v = v * weight / Real( pow( width , dim ) ) * dx;
8
+ // V _v = v / Length(v) * dx;
9
+ -#if defined( __GNUC__ ) && __GNUC__ < 5
10
+ +#if defined( __GNUC__ ) && __GNUC__ < 5 && 0
11
+ #ifdef SHOW_WARNINGS
12
+ #warning "you've got me gcc version<5"
13
+ #endif // SHOW_WARNINGS
14
+ diff --git a/Src/FEMTree.h b/Src/FEMTree.h
15
+ index 8f00045..2faa0f4 100644
16
+ --- a/Src/FEMTree.h
17
+ +++ b/Src/FEMTree.h
18
+ @@ -231,6 +231,7 @@ template< class Data , typename Pack > struct _SparseOrDenseNodeData{};
19
+ template< class Data , unsigned int ... FEMSigs >
20
+ struct _SparseOrDenseNodeData< Data , UIntPack< FEMSigs ... > >
21
+ {
22
+ + virtual ~_SparseOrDenseNodeData() {}
23
+ static const unsigned int Dim = sizeof ... ( FEMSigs );
24
+ typedef UIntPack< FEMSigs ... > FEMSignatures;
25
+ typedef Data data_type;
26
+ diff --git a/Src/FEMTree.inl b/Src/FEMTree.inl
27
+ index 814f1ae..405e996 100644
28
+ --- a/Src/FEMTree.inl
29
+ +++ b/Src/FEMTree.inl
30
+ @@ -425,7 +425,7 @@ SparseNodeData< OutData , UIntPack< DataSigs ... > > FEMTree< Dim , Real >::setI
31
+ AddAtomic( weightSum , sample.weight );
32
+ out *= sample.weight;
33
+ Allocator< FEMTreeNode > *nodeAllocator = nodeAllocators.size() ? nodeAllocators[ thread ] : NULL;
34
+ -#if defined( __GNUC__ ) && __GNUC__ < 5
35
+ +#if defined( __GNUC__ ) && __GNUC__ < 5 && 0
36
+ #ifdef SHOW_WARNINGS
37
+ #warning "you've got me gcc version<5"
38
+ #endif // SHOW_WARNINGS
39
+ @@ -436,7 +436,7 @@ SparseNodeData< OutData , UIntPack< DataSigs ... > > FEMTree< Dim , Real >::setI
40
+ else
41
+ {
42
+ Real width = (Real)( 1.0 / ( 1<<maxDepth ) );
43
+ -#if defined( __GNUC__ ) && __GNUC__ < 5
44
+ +#if defined( __GNUC__ ) && __GNUC__ < 5 && 0
45
+ #ifdef SHOW_WARNINGS
46
+ #warning "you've got me gcc version<5"
47
+ #endif // SHOW_WARNINGS
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/portfile.cmake ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO mkazhdan/PoissonRecon
4
+ REF 455ea0dbe651f31bf6985ff2891becff1dd79c72
5
+ SHA512 93ef904b0a73b7650e2f1ed143444861661db74b4991182ffd0ff49c008fec9d664fb93e24825fce748576d8d6abbd1de8bfc8f8b1f7c48f57207712bf80ce9e
6
+ HEAD_REF master
7
+ PATCHES
8
+ use-external-libs.patch
9
+ disable-gcc5-checks.patch
10
+ )
11
+
12
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ OPTIONS
17
+ -DBUILD_TOOLS=OFF
18
+ )
19
+
20
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/poissonrecon/PoissonRecon-config.cmake" [=[
21
+ include(CMakeFindDependencyMacro)
22
+ find_dependency(PNG)
23
+ find_dependency(JPEG)
24
+ include("${CMAKE_CURRENT_LIST_DIR}/PoissonReconTargets.cmake")
25
+ ]=])
26
+
27
+ vcpkg_cmake_install()
28
+ vcpkg_cmake_config_fixup()
29
+
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
31
+
32
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/use-external-libs.patch ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Src/JPEG.h
2
+ +++ b/Src/JPEG.h
3
+ @@ -6,14 +6,10 @@
4
+
5
+ #ifdef _WIN32
6
+ #include <windows.h>
7
+ -#include "JPEG/jpeglib.h"
8
+ -#include "JPEG/jerror.h"
9
+ -#include "JPEG/jmorecfg.h"
10
+ -#else // !_WIN32
11
+ +#endif // _WIN32
12
+ #include <jpeglib.h>
13
+ #include <jerror.h>
14
+ #include <jmorecfg.h>
15
+ -#endif // _WIN32
16
+
17
+ struct my_error_mgr
18
+ {
19
+ --- a/Src/PNG.h
20
+ +++ b/Src/PNG.h
21
+ @@ -1,7 +1,7 @@
22
+ #ifndef PNG_INCLUDED
23
+ #define PNG_INCLUDED
24
+
25
+ -#include "PNG/png.h"
26
+ +#include <png.h>
27
+
28
+ struct PNGReader : public ImageReader
29
+ {
30
+ --- a/Src/PNG.inl
31
+ +++ b/Src/PNG.inl
32
+ @@ -1,10 +1,6 @@
33
+ #include <stdio.h>
34
+ #include <vector>
35
+ -#ifdef _WIN32
36
+ -#include "PNG/png.h"
37
+ -#else // !_WIN32
38
+ #include <png.h>
39
+ -#endif // _WIN32
40
+
41
+ inline PNGReader::PNGReader( const char* fileName , unsigned int& width , unsigned int& height , unsigned int& channels )
42
+ {
third-party/DPVO/Pangolin/scripts/vcpkg/ports/poissonrecon/vcpkg.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "poissonrecon",
3
+ "version-date": "2021-09-26",
4
+ "description": "Adaptive Multigrid Solvers",
5
+ "homepage": "https://github.com/mkazhdan/PoissonRecon",
6
+ "dependencies": [
7
+ "libjpeg-turbo",
8
+ "libpng",
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ },
17
+ "zlib"
18
+ ]
19
+ }