applied-ai-018 commited on
Commit
8a2fccd
·
verified ·
1 Parent(s): aef78e7

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. cc-multilingual-main/cc_net/vcpkg/ports/amd-adl-sdk/portfile.cmake +16 -0
  2. cc-multilingual-main/cc_net/vcpkg/ports/amd-adl-sdk/vcpkg.json +8 -0
  3. cc-multilingual-main/cc_net/vcpkg/ports/antlr4/set-export-macro-define-as-private.patch +13 -0
  4. cc-multilingual-main/cc_net/vcpkg/ports/assimp/build_fixes.patch +520 -0
  5. cc-multilingual-main/cc_net/vcpkg/ports/assimp/portfile.cmake +89 -0
  6. cc-multilingual-main/cc_net/vcpkg/ports/assimp/vcpkg.json +28 -0
  7. cc-multilingual-main/cc_net/vcpkg/ports/azure-umqtt-c/package-location-fix-preview.patch +13 -0
  8. cc-multilingual-main/cc_net/vcpkg/ports/azure-umqtt-c/portfile.cmake +31 -0
  9. cc-multilingual-main/cc_net/vcpkg/ports/azure-umqtt-c/vcpkg.json +20 -0
  10. cc-multilingual-main/cc_net/vcpkg/ports/boost-graph/portfile.cmake +14 -0
  11. cc-multilingual-main/cc_net/vcpkg/ports/boost-graph/vcpkg.json +193 -0
  12. cc-multilingual-main/cc_net/vcpkg/ports/cello/CMakeLists.txt +26 -0
  13. cc-multilingual-main/cc_net/vcpkg/ports/cello/portfile.cmake +26 -0
  14. cc-multilingual-main/cc_net/vcpkg/ports/cello/vcpkg.json +17 -0
  15. cc-multilingual-main/cc_net/vcpkg/ports/cppzmq/portfile.cmake +28 -0
  16. cc-multilingual-main/cc_net/vcpkg/ports/cppzmq/vcpkg.json +32 -0
  17. cc-multilingual-main/cc_net/vcpkg/ports/fastcdr/pdb-file.patch +13 -0
  18. cc-multilingual-main/cc_net/vcpkg/ports/fastcdr/portfile.cmake +30 -0
  19. cc-multilingual-main/cc_net/vcpkg/ports/fastcdr/vcpkg.json +17 -0
  20. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/base-must-be-enabled.patch +13 -0
  21. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-bz2-windows-debug-dependency.patch +26 -0
  22. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-bad.patch +111 -0
  23. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-base.patch +13 -0
  24. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-good.patch +22 -0
  25. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-gstreamer.patch +39 -0
  26. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-ugly.patch +13 -0
  27. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl.patch +22 -0
  28. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/gstreamer-disable-no-unused.patch +14 -0
  29. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/no-downloads.patch +17 -0
  30. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/plugin-base-disable-no-unused.patch +26 -0
  31. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/plugins-base-x11.patch +13 -0
  32. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/portfile.cmake +420 -0
  33. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/remove_x264_define.patch +18 -0
  34. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/srtp_fix.patch +30 -0
  35. cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/vcpkg.json +841 -0
  36. cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/copy-from-dmg.cmake +53 -0
  37. cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/portfile.cmake +254 -0
  38. cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/usage +4 -0
  39. cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/vcpkg.json +16 -0
  40. cc-multilingual-main/cc_net/vcpkg/ports/kinectsdk1/Config.cmake.in +33 -0
  41. cc-multilingual-main/cc_net/vcpkg/ports/kinectsdk1/portfile.cmake +66 -0
  42. cc-multilingual-main/cc_net/vcpkg/ports/kinectsdk1/vcpkg.json +15 -0
  43. cc-multilingual-main/cc_net/vcpkg/ports/libcsv/Makefile.patch +13 -0
  44. cc-multilingual-main/cc_net/vcpkg/ports/libcsv/portfile.cmake +21 -0
  45. cc-multilingual-main/cc_net/vcpkg/ports/libcsv/vcpkg.json +9 -0
  46. cc-multilingual-main/cc_net/vcpkg/ports/lzokay/portfile.cmake +22 -0
  47. cc-multilingual-main/cc_net/vcpkg/ports/lzokay/vcpkg.json +17 -0
  48. cc-multilingual-main/cc_net/vcpkg/ports/openxr-loader/fix-jinja2.patch +23 -0
  49. cc-multilingual-main/cc_net/vcpkg/ports/openxr-loader/fix-openxr-sdk-jsoncpp.patch +30 -0
  50. cc-multilingual-main/cc_net/vcpkg/ports/openxr-loader/portfile.cmake +79 -0
cc-multilingual-main/cc_net/vcpkg/ports/amd-adl-sdk/portfile.cmake ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO GPUOpen-LibrariesAndSDKs/display-library
4
+ REF "${VERSION}"
5
+ SHA512 805bc1a7f221b33955d79943833d04838b459f316c2a9ad5fa1831588b07c0bbe5975aca07c90117c10c6ff22ee12a69d5a26a75e7191eb6c40c1dccccd192af
6
+ HEAD_REF master
7
+ )
8
+
9
+ # Install the ADL headers to the default vcpkg location
10
+ file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
11
+
12
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" [[As of 2023-07-25, according to
13
+ https://github.com/GPUOpen-LibrariesAndSDKs/display-library/blob/master/Public-Documents/README.md#end-user-license-agreement
14
+ this software is bound by the "SOFTWARE DEVELOPMENT KIT LICENSE AGREEMENT" PDF located at
15
+ https://github.com/GPUOpen-LibrariesAndSDKs/display-library/blob/master/Public-Documents/ADL%20SDK%20EULA.pdf
16
+ ]])
cc-multilingual-main/cc_net/vcpkg/ports/amd-adl-sdk/vcpkg.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "amd-adl-sdk",
3
+ "version": "17.1",
4
+ "description": "AMD Display Library (ADL) SDK",
5
+ "homepage": "https://gpuopen.com/adl/",
6
+ "license": null,
7
+ "supports": "!osx"
8
+ }
cc-multilingual-main/cc_net/vcpkg/ports/antlr4/set-export-macro-define-as-private.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/runtime/Cpp/runtime/CMakeLists.txt b/runtime/Cpp/runtime/CMakeLists.txt
2
+ index 86fdab9..97486fb 100644
3
+ --- a/runtime/Cpp/runtime/CMakeLists.txt
4
+ +++ b/runtime/Cpp/runtime/CMakeLists.txt
5
+ @@ -120,7 +120,7 @@ set(static_lib_suffix "")
6
+ if (WIN32)
7
+ set(static_lib_suffix "-static")
8
+ if (TARGET antlr4_shared)
9
+ - target_compile_definitions(antlr4_shared PUBLIC ANTLR4CPP_EXPORTS)
10
+ + target_compile_definitions(antlr4_shared PRIVATE ANTLR4CPP_EXPORTS)
11
+ endif()
12
+ if (TARGET antlr4_static)
13
+ target_compile_definitions(antlr4_static PUBLIC ANTLR4CPP_STATIC)
cc-multilingual-main/cc_net/vcpkg/ports/assimp/build_fixes.patch ADDED
@@ -0,0 +1,520 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 458a328..b8c2fc6 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -291,9 +291,9 @@ IF ((CMAKE_C_COMPILER_ID MATCHES "GNU") AND NOT MINGW)
6
+ ENDIF()
7
+ # supress warning for double to float conversion if Double precission is activated
8
+ ADD_COMPILE_OPTIONS(/wd4244)
9
+ - SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /D_DEBUG /Zi /Od")
10
+ - SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
11
+ - SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG:FULL /PDBALTPATH:%_PDB% /OPT:REF /OPT:ICF")
12
+ + # SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /D_DEBUG /Zi /Od")
13
+ + # SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}")
14
+ + # SET(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG:FULL /PDBALTPATH:%_PDB% /OPT:REF /OPT:ICF")
15
+ ELSEIF (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
16
+ IF(NOT ASSIMP_HUNTER_ENABLED)
17
+ SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
18
+ @@ -418,7 +418,7 @@ ENDIF()
19
+
20
+ set(GENERATED_DIR "${CMAKE_CURRENT_BINARY_DIR}/generated")
21
+
22
+ -IF(ASSIMP_HUNTER_ENABLED)
23
+ +IF(0)
24
+ set(CONFIG_INSTALL_DIR "lib/cmake/${PROJECT_NAME}")
25
+ set(CMAKE_CONFIG_TEMPLATE_FILE "cmake-modules/assimp-hunter-config.cmake.in")
26
+ set(NAMESPACE "${PROJECT_NAME}::")
27
+ @@ -426,7 +426,7 @@ IF(ASSIMP_HUNTER_ENABLED)
28
+ set(VERSION_CONFIG "${GENERATED_DIR}/${PROJECT_NAME}ConfigVersion.cmake")
29
+ set(PROJECT_CONFIG "${GENERATED_DIR}/${PROJECT_NAME}Config.cmake")
30
+ ELSE()
31
+ - set(CONFIG_INSTALL_DIR "${ASSIMP_LIB_INSTALL_DIR}/cmake/assimp-${ASSIMP_VERSION_MAJOR}.${ASSIMP_VERSION_MINOR}")
32
+ + set(CONFIG_INSTALL_DIR "${ASSIMP_LIB_INSTALL_DIR}/cmake/assimp")
33
+ set(CMAKE_CONFIG_TEMPLATE_FILE "cmake-modules/assimp-plain-config.cmake.in")
34
+ string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWERCASE)
35
+ set(NAMESPACE "${PROJECT_NAME_LOWERCASE}::")
36
+ @@ -468,14 +468,14 @@ ENDIF()
37
+
38
+ # Search for external dependencies, and build them from source if not found
39
+ # Search for zlib
40
+ -IF(ASSIMP_HUNTER_ENABLED)
41
+ - hunter_add_package(ZLIB)
42
+ - find_package(ZLIB CONFIG REQUIRED)
43
+ +IF(1)
44
+ + # hunter_add_package(ZLIB)
45
+ + find_package(ZLIB REQUIRED)
46
+
47
+ add_definitions(-DASSIMP_BUILD_NO_OWN_ZLIB)
48
+ set(ZLIB_FOUND TRUE)
49
+ - set(ZLIB_LIBRARIES ZLIB::zlib)
50
+ - set(ASSIMP_BUILD_MINIZIP TRUE)
51
+ + set(ZLIB_LIBRARIES ZLIB::ZLIB)
52
+ + set(ASSIMP_BUILD_MINIZIP OFF)
53
+ ELSE()
54
+ # If the zlib is already found outside, add an export in case assimpTargets can't find it.
55
+ IF( ZLIB_FOUND )
56
+ @@ -516,12 +516,12 @@ ELSE()
57
+ ENDIF()
58
+
59
+ IF( NOT IOS )
60
+ - IF( NOT ASSIMP_BUILD_MINIZIP )
61
+ + IF( 0 )
62
+ use_pkgconfig(UNZIP minizip)
63
+ ENDIF()
64
+ ELSE ()
65
+ IF( NOT BUILD_SHARED_LIBS )
66
+ - IF( NOT ASSIMP_BUILD_MINIZIP )
67
+ + IF( 0 )
68
+ use_pkgconfig(UNZIP minizip)
69
+ ENDIF()
70
+ ENDIF ()
71
+ diff --git a/cmake-modules/assimp-plain-config.cmake.in b/cmake-modules/assimp-plain-config.cmake.in
72
+ index 6551dcb..0796448 100644
73
+ --- a/cmake-modules/assimp-plain-config.cmake.in
74
+ +++ b/cmake-modules/assimp-plain-config.cmake.in
75
+ @@ -1,5 +1,20 @@
76
+ @PACKAGE_INIT@
77
+
78
+ +include(CMakeFindDependencyMacro)
79
+ +
80
+ +find_dependency(pugixml CONFIG)
81
+ +if(NOT @BUILD_SHARED_LIBS@)
82
+ + find_dependency(kubazip CONFIG)
83
+ + find_dependency(unofficial-minizip CONFIG)
84
+ + #find_dependency(openddlparser CONFIG)
85
+ + find_dependency(poly2tri CONFIG)
86
+ + find_dependency(polyclipping CONFIG)
87
+ + find_dependency(RapidJSON CONFIG)
88
+ + find_dependency(Stb MODULE)
89
+ + find_dependency(utf8cpp CONFIG)
90
+ + find_dependency(ZLIB)
91
+ +endif()
92
+ +
93
+ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
94
+
95
+ set(ASSIMP_ROOT_DIR ${PACKAGE_PREFIX_DIR})
96
+ diff --git a/code/AssetLib/3MF/D3MFExporter.cpp b/code/AssetLib/3MF/D3MFExporter.cpp
97
+ index 42cd991..640e2fb 100644
98
+ --- a/code/AssetLib/3MF/D3MFExporter.cpp
99
+ +++ b/code/AssetLib/3MF/D3MFExporter.cpp
100
+ @@ -57,7 +57,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
101
+ #ifdef ASSIMP_USE_HUNTER
102
+ #include <zip/zip.h>
103
+ #else
104
+ -#include <contrib/zip/src/zip.h>
105
+ +#include <zip/zip.h>
106
+ #endif
107
+
108
+ namespace Assimp {
109
+ diff --git a/code/AssetLib/Blender/BlenderTessellator.h b/code/AssetLib/Blender/BlenderTessellator.h
110
+ index 0d0ba32..c3703c4 100644
111
+ --- a/code/AssetLib/Blender/BlenderTessellator.h
112
+ +++ b/code/AssetLib/Blender/BlenderTessellator.h
113
+ @@ -143,7 +143,7 @@ namespace Assimp
114
+
115
+ #if ASSIMP_BLEND_WITH_POLY_2_TRI
116
+
117
+ -#include "contrib/poly2tri/poly2tri/poly2tri.h"
118
+ +#include <poly2tri/poly2tri.h>
119
+
120
+ namespace Assimp
121
+ {
122
+ diff --git a/code/AssetLib/IFC/IFCGeometry.cpp b/code/AssetLib/IFC/IFCGeometry.cpp
123
+ index ef59542..17e00cd 100644
124
+ --- a/code/AssetLib/IFC/IFCGeometry.cpp
125
+ +++ b/code/AssetLib/IFC/IFCGeometry.cpp
126
+ @@ -45,8 +45,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
127
+ #include "IFCUtil.h"
128
+ #include "Common/PolyTools.h"
129
+ #include "PostProcessing/ProcessHelper.h"
130
+ -#include "contrib/poly2tri/poly2tri/poly2tri.h"
131
+ -#include "contrib/clipper/clipper.hpp"
132
+ +#include <poly2tri/poly2tri.h>
133
+ +#include <polyclipping/clipper.hpp>
134
+
135
+ #include <iterator>
136
+ #include <memory>
137
+ diff --git a/code/AssetLib/IFC/IFCLoader.cpp b/code/AssetLib/IFC/IFCLoader.cpp
138
+ index 0c20686..e6b20a3 100644
139
+ --- a/code/AssetLib/IFC/IFCLoader.cpp
140
+ +++ b/code/AssetLib/IFC/IFCLoader.cpp
141
+ @@ -54,7 +54,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
142
+ #ifdef ASSIMP_USE_HUNTER
143
+ #include <minizip/unzip.h>
144
+ #else
145
+ -#include <unzip.h>
146
+ +#include <minizip/unzip.h>
147
+ #endif
148
+ #endif
149
+
150
+ diff --git a/code/AssetLib/IFC/IFCOpenings.cpp b/code/AssetLib/IFC/IFCOpenings.cpp
151
+ index 3c4a0b3..3fab616 100644
152
+ --- a/code/AssetLib/IFC/IFCOpenings.cpp
153
+ +++ b/code/AssetLib/IFC/IFCOpenings.cpp
154
+ @@ -47,7 +47,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
155
+ #include "IFCUtil.h"
156
+ #include "Common/PolyTools.h"
157
+ #include "PostProcessing/ProcessHelper.h"
158
+ -#include "contrib/poly2tri/poly2tri/poly2tri.h"
159
+ -#include "contrib/clipper/clipper.hpp"
160
+ +#include <poly2tri/poly2tri.h>
161
+ +#include <polyclipping/clipper.hpp>
162
+
163
+ #include <deque>
164
+ #include <forward_list>
165
+ diff --git a/code/AssetLib/MMD/MMDPmxParser.cpp b/code/AssetLib/MMD/MMDPmxParser.cpp
166
+ index ca37ba1..2ce7bdd 100644
167
+ --- a/code/AssetLib/MMD/MMDPmxParser.cpp
168
+ +++ b/code/AssetLib/MMD/MMDPmxParser.cpp
169
+ @@ -45,7 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
170
+ #ifdef ASSIMP_USE_HUNTER
171
+ # include <utf8.h>
172
+ #else
173
+ -# include "../contrib/utf8cpp/source/utf8.h"
174
+ +# include <utf8cpp/utf8.h>
175
+ #endif
176
+ #include <assimp/Exceptional.h>
177
+
178
+ diff --git a/code/AssetLib/SIB/SIBImporter.cpp b/code/AssetLib/SIB/SIBImporter.cpp
179
+ index 7b66afa..5adbe1d 100644
180
+ --- a/code/AssetLib/SIB/SIBImporter.cpp
181
+ +++ b/code/AssetLib/SIB/SIBImporter.cpp
182
+ @@ -59,7 +59,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
183
+ #ifdef ASSIMP_USE_HUNTER
184
+ #include <utf8.h>
185
+ #else
186
+ -#include "../contrib/utf8cpp/source/utf8.h"
187
+ +#include <utf8cpp/utf8.h>
188
+ #endif
189
+ #include <assimp/importerdesc.h>
190
+ #include <assimp/scene.h>
191
+ diff --git a/code/AssetLib/STEPParser/STEPFileEncoding.cpp b/code/AssetLib/STEPParser/STEPFileEncoding.cpp
192
+ index d4456e6..812f29b 100644
193
+ --- a/code/AssetLib/STEPParser/STEPFileEncoding.cpp
194
+ +++ b/code/AssetLib/STEPParser/STEPFileEncoding.cpp
195
+ @@ -48,7 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
196
+ #ifdef ASSIMP_USE_HUNTER
197
+ # include <utf8.h>
198
+ #else
199
+ -# include <contrib/utf8cpp/source/utf8.h>
200
+ +# include <utf8cpp/utf8.h>
201
+ #endif
202
+
203
+ #include <memory>
204
+ diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt
205
+ index 5339454..45e07c0 100644
206
+ --- a/code/CMakeLists.txt
207
+ +++ b/code/CMakeLists.txt
208
+ @@ -897,8 +897,8 @@ SET( Extra_SRCS
209
+ SOURCE_GROUP( Extra FILES ${Extra_SRCS})
210
+
211
+ # pugixml
212
+ -IF(ASSIMP_HUNTER_ENABLED)
213
+ - hunter_add_package(pugixml)
214
+ +IF(1)
215
+ + #hunter_add_package(pugixml)
216
+ find_package(pugixml CONFIG REQUIRED)
217
+ ELSE()
218
+ SET( Pugixml_SRCS
219
+ @@ -919,30 +919,30 @@ ELSE()
220
+ ENDIF()
221
+
222
+ # utf8
223
+ -IF(ASSIMP_HUNTER_ENABLED)
224
+ - hunter_add_package(utf8)
225
+ +IF(1)
226
+ + #hunter_add_package(utf8)
227
+ find_package(utf8cpp CONFIG REQUIRED)
228
+ ELSE()
229
+ # utf8 is header-only, so Assimp doesn't need to do anything.
230
+ ENDIF()
231
+
232
+ # polyclipping
233
+ -#IF(ASSIMP_HUNTER_ENABLED)
234
+ +IF(1)
235
+ # hunter_add_package(polyclipping)
236
+ -# find_package(polyclipping CONFIG REQUIRED)
237
+ -#ELSE()
238
+ + find_package(polyclipping CONFIG REQUIRED)
239
+ +ELSE()
240
+ SET( Clipper_SRCS
241
+ ../contrib/clipper/clipper.hpp
242
+ ../contrib/clipper/clipper.cpp
243
+ )
244
+ SOURCE_GROUP( Contrib\\Clipper FILES ${Clipper_SRCS})
245
+ -#ENDIF()
246
+ +ENDIF()
247
+
248
+ # poly2tri
249
+ -#IF(ASSIMP_HUNTER_ENABLED)
250
+ +IF(1)
251
+ # hunter_add_package(poly2tri)
252
+ -# find_package(poly2tri CONFIG REQUIRED)
253
+ -#ELSE()
254
+ + find_package(poly2tri CONFIG REQUIRED)
255
+ +ELSE()
256
+ SET( Poly2Tri_SRCS
257
+ ../contrib/poly2tri/poly2tri/common/shapes.cc
258
+ ../contrib/poly2tri/poly2tri/common/shapes.h
259
+ @@ -957,11 +957,11 @@ ELSE()
260
+ ../contrib/poly2tri/poly2tri/sweep/sweep_context.h
261
+ )
262
+ SOURCE_GROUP( Contrib\\Poly2Tri FILES ${Poly2Tri_SRCS})
263
+ -#ENDIF()
264
+ +ENDIF()
265
+
266
+ # minizip/unzip
267
+ -IF(ASSIMP_HUNTER_ENABLED)
268
+ - hunter_add_package(minizip)
269
+ +IF(1)
270
+ + #hunter_add_package(minizip)
271
+ - find_package(minizip CONFIG REQUIRED)
272
+ + find_package(unofficial-minizip CONFIG REQUIRED)
273
+ ELSE()
274
+ SET( unzip_SRCS
275
+ @@ -969,9 +969,9 @@ ENDIF()
276
+ # zip (https://github.com/kuba--/zip)
277
+ separate_arguments(ASSIMP_EXPORTERS_LIST UNIX_COMMAND ${ASSIMP_EXPORTERS_ENABLED})
278
+ IF(3MF IN_LIST ASSIMP_EXPORTERS_LIST)
279
+ - IF(ASSIMP_HUNTER_ENABLED)
280
+ - hunter_add_package(zip)
281
+ - find_package(zip CONFIG REQUIRED)
282
+ + IF(1)
283
+ + #hunter_add_package(zip)
284
+ + find_package(kubazip CONFIG REQUIRED)
285
+ ELSE()
286
+ SET( ziplib_SRCS
287
+ ../contrib/zip/src/miniz.h
288
+ @@ -991,7 +991,7 @@ IF(3MF IN_LIST ASSIMP_EXPORTERS_LIST)
289
+ ENDIF()
290
+
291
+ # openddlparser
292
+ -IF(ASSIMP_HUNTER_ENABLED)
293
+ +IF(0)
294
+ hunter_add_package(openddlparser)
295
+ find_package(openddlparser CONFIG REQUIRED)
296
+ ELSE()
297
+ @@ -1014,7 +1014,7 @@ ELSE()
298
+ ENDIF()
299
+
300
+ # Open3DGC
301
+ -IF(ASSIMP_HUNTER_ENABLED)
302
+ +IF(0)
303
+ # Nothing to do, not available in Hunter yet.
304
+ ELSE()
305
+ SET ( open3dgc_SRCS
306
+ @@ -1049,6 +1049,7 @@ ELSE()
307
+ ../contrib/Open3DGC/o3dgcVector.inl
308
+ )
309
+ SOURCE_GROUP( Contrib\\open3dgc FILES ${open3dgc_SRCS})
310
+ + INCLUDE_DIRECTORIES("../contrib")
311
+ ENDIF()
312
+
313
+ # Check dependencies for glTF importer with Open3DGC-compression.
314
+ @@ -1057,7 +1058,7 @@ ENDIF()
315
+ IF (NOT WIN32)
316
+ FIND_PACKAGE(RT QUIET)
317
+ ENDIF ()
318
+ -IF (NOT ASSIMP_HUNTER_ENABLED AND (RT_FOUND OR WIN32))
319
+ +IF (1)
320
+ SET( ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC 1 )
321
+ ADD_DEFINITIONS( -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 )
322
+ ELSE ()
323
+ @@ -1067,9 +1068,10 @@ ELSE ()
324
+ ENDIF ()
325
+
326
+ # RapidJSON
327
+ -IF(ASSIMP_HUNTER_ENABLED)
328
+ - hunter_add_package(RapidJSON)
329
+ +IF(1)
330
+ + #hunter_add_package(RapidJSON)
331
+ find_package(RapidJSON CONFIG REQUIRED)
332
+ + ADD_DEFINITIONS( -DRAPIDJSON_HAS_STDSTRING=1)
333
+ ELSE()
334
+ INCLUDE_DIRECTORIES("../contrib/rapidjson/include")
335
+ ADD_DEFINITIONS( -DRAPIDJSON_HAS_STDSTRING=1)
336
+ @@ -1080,9 +1082,9 @@ ELSE()
337
+ ENDIF()
338
+
339
+ # stb
340
+ -IF(ASSIMP_HUNTER_ENABLED)
341
+ - hunter_add_package(stb)
342
+ - find_package(stb CONFIG REQUIRED)
343
+ +IF(1)
344
+ + #hunter_add_package(stb)
345
+ + find_package(Stb REQUIRED)
346
+ ELSE()
347
+ SET( stb_SRCS
348
+ ../contrib/stb/stb_image.h
349
+ @@ -1106,7 +1108,7 @@ IF( MSVC OR "${CMAKE_CXX_SIMULATE_ID}" MATCHES "MSVC") # clang with MSVC ABI
350
+ ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS )
351
+ endif ()
352
+
353
+ -IF(NOT ASSIMP_HUNTER_ENABLED)
354
+ +IF(0)
355
+ if (UNZIP_FOUND)
356
+ SET (unzip_compile_SRCS "")
357
+ else ()
358
+ @@ -1157,7 +1159,7 @@ SET( assimp_src
359
+ )
360
+ ADD_DEFINITIONS( -DOPENDDLPARSER_BUILD )
361
+
362
+ -IF(NOT ASSIMP_HUNTER_ENABLED)
363
+ +IF(1)
364
+ INCLUDE_DIRECTORIES(
365
+ ${IRRXML_INCLUDE_DIR}
366
+ ../contrib/openddlparser/include
367
+ @@ -1195,45 +1197,48 @@ TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
368
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
369
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../include>
370
+ $<INSTALL_INTERFACE:${ASSIMP_INCLUDE_INSTALL_DIR}>
371
+ + PRIVATE
372
+ + ${Stb_INCLUDE_DIR}
373
+ )
374
+
375
+ -IF(ASSIMP_HUNTER_ENABLED)
376
+ +IF(1)
377
+ TARGET_LINK_LIBRARIES(assimp
378
+ - PUBLIC
379
+ - #polyclipping::polyclipping
380
+ - openddlparser::openddl_parser
381
+ + PRIVATE
382
+ + polyclipping::polyclipping
383
+ + #openddlparser::openddl_parser
384
+ + ${OPENDDL_PARSER_LIBRARIES}
385
+ - #poly2tri::poly2tri
386
+ + poly2tri::poly2tri
387
+ - minizip::minizip
388
+ + unofficial::minizip::minizip
389
+ - ZLIB::zlib
390
+ - RapidJSON::rapidjson
391
+ + ZLIB::ZLIB
392
+ + rapidjson
393
+ - utf8cpp
394
+ + utf8cpp::utf8cpp
395
+ + PUBLIC
396
+ pugixml
397
+ - stb::stb
398
+ )
399
+ - if(TARGET zip::zip)
400
+ - target_link_libraries(assimp PUBLIC zip::zip)
401
+ + if(1)
402
+ + target_link_libraries(assimp PRIVATE kubazip::kubazip)
403
+ endif()
404
+
405
+ if (ASSIMP_BUILD_DRACO)
406
+ - target_link_libraries(assimp PUBLIC ${draco_LIBRARIES})
407
+ + target_link_libraries(assimp PRIVATE ${draco_LIBRARIES})
408
+ endif()
409
+ ELSE()
410
+ - TARGET_LINK_LIBRARIES(assimp ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES})
411
+ + TARGET_LINK_LIBRARIES(assimp PRIVATE ${ZLIB_LIBRARIES} ${OPENDDL_PARSER_LIBRARIES})
412
+ if (ASSIMP_BUILD_DRACO)
413
+ - target_link_libraries(assimp ${draco_LIBRARIES})
414
+ + target_link_libraries(assimp PRIVATE ${draco_LIBRARIES})
415
+ endif()
416
+ ENDIF()
417
+
418
+ if(ASSIMP_ANDROID_JNIIOSYSTEM)
419
+ set(ASSIMP_ANDROID_JNIIOSYSTEM_PATH port/AndroidJNI)
420
+ add_subdirectory(../${ASSIMP_ANDROID_JNIIOSYSTEM_PATH}/ ../${ASSIMP_ANDROID_JNIIOSYSTEM_PATH}/)
421
+ - target_link_libraries(assimp android_jniiosystem)
422
+ + target_link_libraries(assimp PRIVATE android_jniiosystem)
423
+ endif()
424
+
425
+ IF (ASSIMP_BUILD_NONFREE_C4D_IMPORTER)
426
+ - TARGET_LINK_LIBRARIES(assimp optimized ${C4D_RELEASE_LIBRARIES})
427
+ - TARGET_LINK_LIBRARIES(assimp debug ${C4D_DEBUG_LIBRARIES})
428
+ - TARGET_LINK_LIBRARIES(assimp ${C4D_EXTRA_LIBRARIES})
429
+ + TARGET_LINK_LIBRARIES(assimp PRIVATE optimized ${C4D_RELEASE_LIBRARIES})
430
+ + TARGET_LINK_LIBRARIES(assimp PRIVATE debug ${C4D_DEBUG_LIBRARIES})
431
+ + TARGET_LINK_LIBRARIES(assimp PRIVATE ${C4D_EXTRA_LIBRARIES})
432
+ ENDIF ()
433
+
434
+ if( MSVC )
435
+ @@ -1274,13 +1279,13 @@ if (MINGW)
436
+ ARCHIVE_OUTPUT_NAME assimp
437
+ )
438
+ if (NOT BUILD_SHARED_LIBS)
439
+ - TARGET_LINK_LIBRARIES ( assimp -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lwinpthread ) # winpthread is for libminizip.
440
+ + TARGET_LINK_LIBRARIES ( assimp PRIVATE -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lwinpthread ) # winpthread is for libminizip.
441
+ endif ()
442
+ endif()
443
+
444
+ if (${CMAKE_SYSTEM_NAME} MATCHES "WindowsStore")
445
+ target_compile_definitions(assimp PUBLIC WindowsStore)
446
+ - TARGET_LINK_LIBRARIES(assimp advapi32)
447
+ + TARGET_LINK_LIBRARIES(assimp PRIVATE advapi32)
448
+ endif()
449
+
450
+ SET_TARGET_PROPERTIES( assimp PROPERTIES
451
+ @@ -1310,10 +1315,10 @@ ENDIF()
452
+
453
+ # Build against external unzip, or add ../contrib/unzip so
454
+ # assimp can #include "unzip.h"
455
+ -IF(NOT ASSIMP_HUNTER_ENABLED)
456
+ +IF(0)
457
+ if (UNZIP_FOUND)
458
+ INCLUDE_DIRECTORIES(${UNZIP_INCLUDE_DIRS})
459
+ - TARGET_LINK_LIBRARIES(assimp ${UNZIP_LIBRARIES})
460
+ + TARGET_LINK_LIBRARIES(assimp PRIVATE ${UNZIP_LIBRARIES})
461
+ else ()
462
+ INCLUDE_DIRECTORIES("../")
463
+ endif ()
464
+ @@ -1321,7 +1326,7 @@ ENDIF()
465
+
466
+ # Add RT-extension library for glTF importer with Open3DGC-compression.
467
+ IF (RT_FOUND AND ASSIMP_IMPORTER_GLTF_USE_OPEN3DGC)
468
+ - TARGET_LINK_LIBRARIES(assimp rt)
469
+ + TARGET_LINK_LIBRARIES(assimp PRIVATE rt)
470
+ ENDIF ()
471
+
472
+
473
+ diff --git a/code/Common/StbCommon.h b/code/Common/StbCommon.h
474
+ index 1265d25..18f4564 100644
475
+ --- a/code/Common/StbCommon.h
476
+ +++ b/code/Common/StbCommon.h
477
+ @@ -53,7 +53,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
478
+ #pragma clang diagnostic ignored "-Wunused-function"
479
+ #endif
480
+
481
+ -#ifndef STB_USE_HUNTER
482
+ +#if 0
483
+ /* Use prefixed names for the symbols from stb_image as it is a very commonly embedded library.
484
+ Including vanilla stb_image symbols causes duplicate symbol problems if assimp is linked
485
+ statically together with another library or executable that also embeds stb_image.
486
+ @@ -111,7 +111,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
487
+ #define stbi_zlib_decode_noheader_malloc assimp_stbi_zlib_decode_noheader_malloc
488
+ #endif
489
+
490
+ -#include "stb/stb_image.h"
491
+ +#include <stb_image.h>
492
+
493
+ #if _MSC_VER
494
+ #pragma warning(pop)
495
+ diff --git a/code/Common/BaseImporter.cpp b/code/Common/BaseImporter.cpp
496
+ index 383300e..03fdd9a 100644
497
+ --- a/code/Common/BaseImporter.cpp
498
+ +++ b/code/Common/BaseImporter.cpp
499
+ @@ -332,7 +332,7 @@ std::string BaseImporter::GetExtension(const std::string &file) {
500
+ #ifdef ASSIMP_USE_HUNTER
501
+ #include <utf8.h>
502
+ #else
503
+ -#include "../contrib/utf8cpp/source/utf8.h"
504
+ +#include <utf8cpp/utf8.h>
505
+ #endif
506
+
507
+ // ------------------------------------------------------------------------------------------------
508
+ diff --git a/code/Common/ZipArchiveIOSystem.cpp b/code/Common/ZipArchiveIOSystem.cpp
509
+ index 3d5c72e..770cb9d 100644
510
+ --- a/code/Common/ZipArchiveIOSystem.cpp
511
+ +++ b/code/Common/ZipArchiveIOSystem.cpp
512
+ @@ -54,7 +54,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
513
+ #ifdef ASSIMP_USE_HUNTER
514
+ # include <minizip/unzip.h>
515
+ #else
516
+ -# include <unzip.h>
517
+ +# include <minizip/unzip.h>
518
+ #endif
519
+
520
+ namespace Assimp {
cc-multilingual-main/cc_net/vcpkg/ports/assimp/portfile.cmake ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO assimp/assimp
4
+ REF v${VERSION}
5
+ SHA512 49963f84ed0a8145f3af249890a533f0b12f5553ae09581289cb1f20cb49cb1a3ed3f3c4c966ceb43aa897b90deca268aa6554066b2bd34f2ac9c15041420ddb
6
+ HEAD_REF master
7
+ PATCHES
8
+ build_fixes.patch
9
+ )
10
+
11
+ file(REMOVE "${SOURCE_PATH}/cmake-modules/FindZLIB.cmake")
12
+
13
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/clipper")
14
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/draco")
15
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/gtest")
16
+ #file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/Open3DGC") #TODO
17
+ #file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/openddlparser") #TODO
18
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/poly2tri")
19
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/pugixml")
20
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/rapidjson")
21
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/stb")
22
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/unzip")
23
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/utf8cpp")
24
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/zip")
25
+ file(REMOVE_RECURSE "${SOURCE_PATH}/contrib/zlib")
26
+
27
+ set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
28
+ set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
29
+
30
+ vcpkg_cmake_configure(
31
+ SOURCE_PATH "${SOURCE_PATH}"
32
+ OPTIONS
33
+ -DASSIMP_BUILD_ZLIB=OFF
34
+ -DASSIMP_BUILD_ASSIMP_TOOLS=OFF
35
+ -DASSIMP_BUILD_TESTS=OFF
36
+ -DASSIMP_WARNINGS_AS_ERRORS=OFF
37
+ -DASSIMP_IGNORE_GIT_HASH=ON
38
+ -DASSIMP_INSTALL_PDB=OFF
39
+ )
40
+
41
+ vcpkg_cmake_install()
42
+ vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/assimp")
43
+
44
+ vcpkg_copy_pdbs()
45
+
46
+ if(VCPKG_TARGET_IS_WINDOWS)
47
+ set(VCVER vc140 vc141 vc142 vc143)
48
+ set(CRT mt md)
49
+ set(DBG_NAMES)
50
+ set(REL_NAMES)
51
+ foreach(_ver IN LISTS VCVER)
52
+ foreach(_crt IN LISTS CRT)
53
+ list(APPEND DBG_NAMES assimp-${_ver}-${_crt}d)
54
+ list(APPEND REL_NAMES assimp-${_ver}-${_crt})
55
+ endforeach()
56
+ endforeach()
57
+ endif()
58
+
59
+ find_library(ASSIMP_REL NAMES assimp ${REL_NAMES} PATHS "${CURRENT_PACKAGES_DIR}/lib" NO_DEFAULT_PATH)
60
+ find_library(ASSIMP_DBG NAMES assimp assimpd ${DBG_NAMES} PATHS "${CURRENT_PACKAGES_DIR}/debug/lib" NO_DEFAULT_PATH)
61
+ if(ASSIMP_REL)
62
+ get_filename_component(ASSIMP_NAME_REL "${ASSIMP_REL}" NAME_WLE)
63
+ string(REGEX REPLACE "^lib(.*)" "\\1" ASSIMP_NAME_REL "${ASSIMP_NAME_REL}")
64
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/assimp.pc" "-lassimp" "-l${ASSIMP_NAME_REL}")
65
+ endif()
66
+ if(ASSIMP_DBG)
67
+ get_filename_component(ASSIMP_NAME_DBG "${ASSIMP_DBG}" NAME_WLE)
68
+ string(REGEX REPLACE "^lib(.*)" "\\1" ASSIMP_NAME_DBG "${ASSIMP_NAME_DBG}")
69
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/assimp.pc" "-lassimp" "-l${ASSIMP_NAME_DBG}")
70
+ endif()
71
+
72
+ if("${VCPKG_LIBRARY_LINKAGE}" STREQUAL "static")
73
+ set(assimp_PC_REQUIRES "draco polyclipping pugixml minizip")
74
+ set(assimp_LIBS_REQUIRES "-lpoly2tri")
75
+
76
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/assimp.pc" "Libs:" "Requires.private: ${assimp_PC_REQUIRES}\nLibs:")
77
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/assimp.pc" "Libs.private:" "Libs.private: ${assimp_LIBS_REQUIRES}")
78
+ if(NOT VCPKG_BUILD_TYPE)
79
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/assimp.pc" "Libs:" "Requires.private: ${assimp_PC_REQUIRES}\nLibs:")
80
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/assimp.pc" "Libs.private:" "Libs.private: ${assimp_LIBS_REQUIRES}")
81
+ endif()
82
+ endif()
83
+
84
+ vcpkg_fixup_pkgconfig()
85
+
86
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
87
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
88
+
89
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/assimp/vcpkg.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "assimp",
3
+ "version": "5.3.1",
4
+ "port-version": 4,
5
+ "description": "The Open Asset import library",
6
+ "homepage": "https://github.com/assimp/assimp",
7
+ "license": "BSD-3-Clause",
8
+ "dependencies": [
9
+ "draco",
10
+ "jhasse-poly2tri",
11
+ "kubazip",
12
+ "minizip",
13
+ "polyclipping",
14
+ "pugixml",
15
+ "rapidjson",
16
+ "stb",
17
+ "utfcpp",
18
+ {
19
+ "name": "vcpkg-cmake",
20
+ "host": true
21
+ },
22
+ {
23
+ "name": "vcpkg-cmake-config",
24
+ "host": true
25
+ },
26
+ "zlib"
27
+ ]
28
+ }
cc-multilingual-main/cc_net/vcpkg/ports/azure-umqtt-c/package-location-fix-preview.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 8fd08f0..c228519 100755
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -155,7 +155,7 @@ endif ()
6
+ include(GNUInstallDirs)
7
+
8
+ # Install umqtt
9
+ -set(package_location "cmake")
10
+ +set(package_location "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
11
+
12
+ if(NOT DEFINED CMAKE_INSTALL_LIBDIR)
13
+ set(CMAKE_INSTALL_LIBDIR "lib")
cc-multilingual-main/cc_net/vcpkg/ports/azure-umqtt-c/portfile.cmake ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO Azure/azure-umqtt-c
6
+ REF b4e16beaaa2a025d18a95a665e2784dd9284c066
7
+ SHA512 12e3c75aa374edcc654bb37397a69af45e64fc1f923cd905d7518bf469228e020cd1c50f9d963ccbf566aadee7bfb83b60503176b4d408fc9332e526c3e424ba
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY "${CURRENT_INSTALLED_DIR}/share/azure-c-shared-utility/azure_iot_build_rules.cmake" DESTINATION "${SOURCE_PATH}/deps/c-utility/configs/")
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS
16
+ -Dskip_samples=ON
17
+ -Duse_installed_dependencies=ON
18
+ -Dbuild_as_dynamic=OFF
19
+ MAYBE_UNUSED_VARIABLES
20
+ build_as_dynamic
21
+ )
22
+
23
+ vcpkg_cmake_install()
24
+
25
+ vcpkg_cmake_config_fixup(PACKAGE_NAME umqtt CONFIG_PATH "lib/cmake/umqtt")
26
+
27
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
28
+
29
+ configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
30
+
31
+ vcpkg_copy_pdbs()
cc-multilingual-main/cc_net/vcpkg/ports/azure-umqtt-c/vcpkg.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "azure-umqtt-c",
3
+ "version-date": "2024-03-04",
4
+ "description": "General purpose library for communication over the mqtt protocol",
5
+ "homepage": "https://github.com/Azure/azure-umqtt-c",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ "azure-c-shared-utility",
9
+ "azure-macro-utils-c",
10
+ "umock-c",
11
+ {
12
+ "name": "vcpkg-cmake",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "vcpkg-cmake-config",
17
+ "host": true
18
+ }
19
+ ]
20
+ }
cc-multilingual-main/cc_net/vcpkg/ports/boost-graph/portfile.cmake ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Automatically generated by scripts/boost/generate-ports.ps1
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO boostorg/graph
6
+ REF boost-${VERSION}
7
+ SHA512 4ce65598660aa1ba8f0e6f40d11b8faaa5f60ff0388b5e5d21554ae4878037c71fd30c9de4b16153d43962a37a7bee51f409ebc3065d41cdba4aed52eb4ad90f
8
+ HEAD_REF master
9
+ )
10
+
11
+ include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
12
+ boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
13
+ include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
14
+ boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/boost-graph/vcpkg.json ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
3
+ "name": "boost-graph",
4
+ "version": "1.84.0",
5
+ "description": "Boost graph module",
6
+ "homepage": "https://github.com/boostorg/graph",
7
+ "license": "BSL-1.0",
8
+ "dependencies": [
9
+ {
10
+ "name": "boost-algorithm",
11
+ "version>=": "1.84.0"
12
+ },
13
+ {
14
+ "name": "boost-any",
15
+ "version>=": "1.84.0"
16
+ },
17
+ {
18
+ "name": "boost-array",
19
+ "version>=": "1.84.0"
20
+ },
21
+ {
22
+ "name": "boost-assert",
23
+ "version>=": "1.84.0"
24
+ },
25
+ {
26
+ "name": "boost-bimap",
27
+ "version>=": "1.84.0"
28
+ },
29
+ {
30
+ "name": "boost-bind",
31
+ "version>=": "1.84.0"
32
+ },
33
+ {
34
+ "name": "boost-build",
35
+ "host": true,
36
+ "version>=": "1.84.0"
37
+ },
38
+ {
39
+ "name": "boost-concept-check",
40
+ "version>=": "1.84.0"
41
+ },
42
+ {
43
+ "name": "boost-config",
44
+ "version>=": "1.84.0"
45
+ },
46
+ {
47
+ "name": "boost-container-hash",
48
+ "version>=": "1.84.0"
49
+ },
50
+ {
51
+ "name": "boost-conversion",
52
+ "version>=": "1.84.0"
53
+ },
54
+ {
55
+ "name": "boost-core",
56
+ "version>=": "1.84.0"
57
+ },
58
+ {
59
+ "name": "boost-detail",
60
+ "version>=": "1.84.0"
61
+ },
62
+ {
63
+ "name": "boost-foreach",
64
+ "version>=": "1.84.0"
65
+ },
66
+ {
67
+ "name": "boost-function",
68
+ "version>=": "1.84.0"
69
+ },
70
+ {
71
+ "name": "boost-integer",
72
+ "version>=": "1.84.0"
73
+ },
74
+ {
75
+ "name": "boost-iterator",
76
+ "version>=": "1.84.0"
77
+ },
78
+ {
79
+ "name": "boost-lexical-cast",
80
+ "version>=": "1.84.0"
81
+ },
82
+ {
83
+ "name": "boost-math",
84
+ "version>=": "1.84.0"
85
+ },
86
+ {
87
+ "name": "boost-modular-build-helper",
88
+ "host": true,
89
+ "version>=": "1.84.0"
90
+ },
91
+ {
92
+ "name": "boost-move",
93
+ "version>=": "1.84.0"
94
+ },
95
+ {
96
+ "name": "boost-mpl",
97
+ "version>=": "1.84.0"
98
+ },
99
+ {
100
+ "name": "boost-multi-index",
101
+ "version>=": "1.84.0"
102
+ },
103
+ {
104
+ "name": "boost-optional",
105
+ "version>=": "1.84.0"
106
+ },
107
+ {
108
+ "name": "boost-parameter",
109
+ "version>=": "1.84.0"
110
+ },
111
+ {
112
+ "name": "boost-preprocessor",
113
+ "version>=": "1.84.0"
114
+ },
115
+ {
116
+ "name": "boost-property-map",
117
+ "version>=": "1.84.0"
118
+ },
119
+ {
120
+ "name": "boost-property-tree",
121
+ "version>=": "1.84.0"
122
+ },
123
+ {
124
+ "name": "boost-random",
125
+ "platform": "!uwp",
126
+ "version>=": "1.84.0"
127
+ },
128
+ {
129
+ "name": "boost-range",
130
+ "version>=": "1.84.0"
131
+ },
132
+ {
133
+ "name": "boost-regex",
134
+ "version>=": "1.84.0"
135
+ },
136
+ {
137
+ "name": "boost-serialization",
138
+ "version>=": "1.84.0"
139
+ },
140
+ {
141
+ "name": "boost-smart-ptr",
142
+ "version>=": "1.84.0"
143
+ },
144
+ {
145
+ "name": "boost-spirit",
146
+ "version>=": "1.84.0"
147
+ },
148
+ {
149
+ "name": "boost-static-assert",
150
+ "version>=": "1.84.0"
151
+ },
152
+ {
153
+ "name": "boost-throw-exception",
154
+ "version>=": "1.84.0"
155
+ },
156
+ {
157
+ "name": "boost-tti",
158
+ "version>=": "1.84.0"
159
+ },
160
+ {
161
+ "name": "boost-tuple",
162
+ "version>=": "1.84.0"
163
+ },
164
+ {
165
+ "name": "boost-type-traits",
166
+ "version>=": "1.84.0"
167
+ },
168
+ {
169
+ "name": "boost-typeof",
170
+ "version>=": "1.84.0"
171
+ },
172
+ {
173
+ "name": "boost-unordered",
174
+ "version>=": "1.84.0"
175
+ },
176
+ {
177
+ "name": "boost-utility",
178
+ "version>=": "1.84.0"
179
+ },
180
+ {
181
+ "name": "boost-vcpkg-helpers",
182
+ "version>=": "1.84.0"
183
+ },
184
+ {
185
+ "name": "boost-xpressive",
186
+ "version>=": "1.84.0"
187
+ },
188
+ {
189
+ "name": "vcpkg-cmake",
190
+ "host": true
191
+ }
192
+ ]
193
+ }
cc-multilingual-main/cc_net/vcpkg/ports/cello/CMakeLists.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.14)
2
+
3
+ project(cello LANGUAGES C)
4
+
5
+ include(GNUInstallDirs)
6
+
7
+ file(GLOB cello_sources src/*.c)
8
+ add_library(cello ${cello_sources})
9
+
10
+ target_include_directories(
11
+ cello
12
+ PUBLIC
13
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
14
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
15
+ )
16
+
17
+ set_target_properties(cello PROPERTIES PUBLIC_HEADER include/Cello.h)
18
+
19
+ install(TARGETS cello EXPORT unofficial-cello-config)
20
+
21
+ install(
22
+ EXPORT unofficial-cello-config
23
+ NAMESPACE unofficial::cello::
24
+ DESTINATION share/unofficial-cello
25
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
26
+ )
cc-multilingual-main/cc_net/vcpkg/ports/cello/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 orangeduck/Cello
6
+ REF da28eefbc95d8bd5628e5f1c4cc12bc1b13fef4f
7
+ SHA512 64825cf37223dd679b379d78475218a543690c3b78333acb906d42982261df4b9ada3a87bea183fad5e2cf220311904e657b0bf5051b141c389d5ee1d2974e5b
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ )
16
+
17
+ vcpkg_cmake_install()
18
+
19
+ vcpkg_copy_pdbs()
20
+
21
+ vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
22
+
23
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
24
+
25
+ # Handle copyright
26
+ configure_file("${SOURCE_PATH}/LICENSE.md" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
cc-multilingual-main/cc_net/vcpkg/ports/cello/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cello",
3
+ "version-date": "2019-07-23",
4
+ "port-version": 3,
5
+ "description": "Higher level programming in C",
6
+ "homepage": "https://libcello.org/",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
cc-multilingual-main/cc_net/vcpkg/ports/cppzmq/portfile.cmake ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO zeromq/cppzmq
4
+ REF "v${VERSION}"
5
+ SHA512 4a4f3c2a270b9b21591b08a81f2ab6a72693af213c115f2c0aa5b737fd0363d09dba92437f48268ff982e6c27d6830f79244599bd9198e3402c6cca566cea27a
6
+ HEAD_REF master
7
+ )
8
+
9
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
10
+ FEATURES
11
+ draft ENABLE_DRAFTS
12
+ )
13
+
14
+ vcpkg_cmake_configure(
15
+ SOURCE_PATH "${SOURCE_PATH}"
16
+ OPTIONS ${FEATURE_OPTIONS}
17
+ -DCPPZMQ_BUILD_TESTS=OFF
18
+ )
19
+
20
+ vcpkg_cmake_install()
21
+
22
+ vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/cppzmq)
23
+ vcpkg_fixup_pkgconfig()
24
+
25
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/share/${PORT}/libzmq-pkg-config")
26
+
27
+ # Handle copyright
28
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/cppzmq/vcpkg.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cppzmq",
3
+ "version": "4.10.0",
4
+ "description": "Header-only C++ binding for ZeroMQ",
5
+ "homepage": "https://github.com/zeromq/cppzmq",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ },
16
+ "zeromq"
17
+ ],
18
+ "features": {
19
+ "draft": {
20
+ "description": "Build and install draft",
21
+ "dependencies": [
22
+ {
23
+ "name": "zeromq",
24
+ "default-features": false,
25
+ "features": [
26
+ "draft"
27
+ ]
28
+ }
29
+ ]
30
+ }
31
+ }
32
+ }
cc-multilingual-main/cc_net/vcpkg/ports/fastcdr/pdb-file.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt
2
+ index da35d03..343f038 100644
3
+ --- a/src/cpp/CMakeLists.txt
4
+ +++ b/src/cpp/CMakeLists.txt
5
+ @@ -195,7 +195,7 @@ elseif(NOT EPROSIMA_INSTALLER)
6
+ endif()
7
+
8
+ # install symbols if any
9
+ - if(PDB_FILE)
10
+ + if(PDB_FILE AND BUILD_SHARED_LIBS)
11
+ install(FILES ${PDB_FILE}
12
+ DESTINATION ${LIB_INSTALL_DIR}${MSVCARCH_DIR_EXTENSION}
13
+ COMPONENT symbols
cc-multilingual-main/cc_net/vcpkg/ports/fastcdr/portfile.cmake ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO eProsima/Fast-CDR
6
+ REF v${VERSION}
7
+ SHA512 66040acb563d7c06efb67a1536eb178183776e71a6b54c7e02efbe50ff0926aa24d87fb7869273e985c5c0f2b5d1496d3b1a20f10358373c73171b51c71e7e6a
8
+ HEAD_REF master
9
+ PATCHES
10
+ pdb-file.patch
11
+ )
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH ${SOURCE_PATH})
15
+
16
+ vcpkg_cmake_install()
17
+
18
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fastcdr)
19
+
20
+ vcpkg_copy_pdbs()
21
+
22
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/lib/fastcdr ${CURRENT_PACKAGES_DIR}/debug/lib/fastcdr)
23
+ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
24
+
25
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
26
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fastcdr/eProsima_auto_link.h" "(defined(_DLL) || defined(_RTLDLL)) && defined(EPROSIMA_DYN_LINK)" "1")
27
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/fastcdr/fastcdr_dll.h" "defined(FASTCDR_DYN_LINK)" "1")
28
+ endif()
29
+
30
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/fastcdr/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "fastcdr",
3
+ "version-semver": "1.1.0",
4
+ "description": "eProsima FastCDR is a C++ library that provides two serialization mechanisms. One is the standard CDR serialization mechanism, while the other is a faster implementation that modifies the standard.",
5
+ "homepage": "https://github.com/eProsima/Fast-CDR",
6
+ "license": "Apache-2.0",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/base-must-be-enabled.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/meson.build b/meson.build
2
+ index 6d07929..df015cb 100644
3
+ --- a/meson.build
4
+ +++ b/meson.build
5
+ @@ -159,7 +159,7 @@ foreach sp : subprojects
6
+ subproj = subproject(project_name, required: is_required, default_options: default_options)
7
+ endif
8
+
9
+ - if project_name == 'gst-plugins-base'
10
+ + if project_name == 'gst-plugins-base' and subproj.found()
11
+ gst_base_orc_req = subproj.get_variable('orc_req', '')
12
+ if gst_base_orc_req != orc_req
13
+ error('orc_req is "@0@" but it should be "@1@" from subprojects/gst-plugins-base/meson.build'
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-bz2-windows-debug-dependency.patch ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-bad/ext/bz2/meson.build b/subprojects/gst-plugins-bad/ext/bz2/meson.build
2
+ index 08d1596..be5fa02 100644
3
+ --- a/subprojects/gst-plugins-bad/ext/bz2/meson.build
4
+ +++ b/subprojects/gst-plugins-bad/ext/bz2/meson.build
5
+ @@ -4,7 +4,7 @@ bz2_sources = [
6
+ 'gstbz2enc.c',
7
+ ]
8
+
9
+ -bz2_dep = cc.find_library('bz2', required : get_option('bz2'))
10
+ +bz2_dep = dependency('bzip2', required : get_option('bz2'))
11
+
12
+ if bz2_dep.found() and cc.has_header_symbol('bzlib.h', 'BZ2_bzlibVersion')
13
+ gstbz2 = library('gstbz2',
14
+ diff --git a/subprojects/gst-plugins-good/gst/matroska/meson.build b/subprojects/gst-plugins-good/gst/matroska/meson.build
15
+ index d8a6a96..dd03de2 100644
16
+ --- a/subprojects/gst-plugins-good/gst/matroska/meson.build
17
+ +++ b/subprojects/gst-plugins-good/gst/matroska/meson.build
18
+ @@ -12,7 +12,7 @@ matroska_sources = [
19
+ 'lzo.c',
20
+ ]
21
+
22
+ -bz2_dep = cc.find_library('bz2', required : get_option('bz2'))
23
+ +bz2_dep = dependency('bzip2', required : get_option('bz2'))
24
+ cdata.set('HAVE_BZ2', bz2_dep.found() and cc.has_header('bzlib.h'))
25
+
26
+ gstmatroska = library('gstmatroska',
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-bad.patch ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-bad/ext/dts/meson.build b/subprojects/gst-plugins-bad/ext/dts/meson.build
2
+ index c4868a4..6b34cb7 100644
3
+ --- a/subprojects/gst-plugins-bad/ext/dts/meson.build
4
+ +++ b/subprojects/gst-plugins-bad/ext/dts/meson.build
5
+ @@ -20,7 +20,7 @@ if not dca_dep.found()
6
+ endif
7
+
8
+ no_warn_c_args = []
9
+ -if cc.get_id() != 'msvc'
10
+ +if cc.get_argument_syntax() != 'msvc'
11
+ # autotools didn't use the libdca pkg-config cflags, and they
12
+ # can point to a non-existing location (/usr/include/dca)
13
+ no_warn_c_args = ['-Wno-missing-include-dirs']
14
+ diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build
15
+ index 160080a..6acf110 100644
16
+ --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build
17
+ +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d11/meson.build
18
+ @@ -158,7 +158,7 @@ endif
19
+
20
+ # MinGW 32bits compiler seems to be complaining about redundant-decls
21
+ # when ComPtr is in use. Let's just disable the warning
22
+ -if cc.get_id() != 'msvc'
23
+ +if cc.get_argument_syntax() != 'msvc'
24
+ extra_args = cc.get_supported_arguments([
25
+ '-Wno-redundant-decls',
26
+ ])
27
+ diff --git a/subprojects/gst-plugins-bad/meson.build b/subprojects/gst-plugins-bad/meson.build
28
+ index 84eeb17..1743f41 100644
29
+ --- a/subprojects/gst-plugins-bad/meson.build
30
+ +++ b/subprojects/gst-plugins-bad/meson.build
31
+ @@ -54,7 +54,7 @@ endif
32
+
33
+ cdata = configuration_data()
34
+ cdata.set('ENABLE_NLS', 1)
35
+
36
+ -if cc.get_id() == 'msvc'
37
+ +if cc.get_argument_syntax() == 'msvc'
38
+ msvc_args = [
39
+ # Ignore several spurious warnings for things gstreamer does very commonly
40
+ # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
41
+ diff --git a/subprojects/gst-plugins-bad/sys/asio/meson.build b/subprojects/gst-plugins-bad/sys/asio/meson.build
42
+ index c61ad4e..b30793c 100644
43
+ --- a/subprojects/gst-plugins-bad/sys/asio/meson.build
44
+ +++ b/subprojects/gst-plugins-bad/sys/asio/meson.build
45
+ @@ -15,7 +15,7 @@ endif
46
+
47
+ # FIXME: non-msvc is not tested, and unlikely supported yet because of
48
+ # tool-chain issue
49
+ -if cxx.get_id() != 'msvc'
50
+ +if cxx.get_argument_syntax() != 'msvc'
51
+ if asio_option.enabled()
52
+ error('asio plugin can only be built with MSVC')
53
+ else
54
+ diff --git a/subprojects/gst-plugins-bad/sys/d3d11/meson.build b/subprojects/gst-plugins-bad/sys/d3d11/meson.build
55
+ index 1368b79..8dd3b30 100644
56
+ --- a/subprojects/gst-plugins-bad/sys/d3d11/meson.build
57
+ +++ b/subprojects/gst-plugins-bad/sys/d3d11/meson.build
58
+ @@ -96,7 +96,7 @@ endif
59
+
60
+ # MinGW 32bits compiler seems to be complaining about redundant-decls
61
+ # when ComPtr is in use. Let's just disable the warning
62
+ -if cc.get_id() != 'msvc'
63
+ +if cc.get_argument_syntax() != 'msvc'
64
+ extra_mingw_args = cc.get_supported_arguments([
65
+ '-Wno-redundant-decls',
66
+ ])
67
+ diff --git a/subprojects/gst-plugins-bad/sys/decklink/meson.build b/subprojects/gst-plugins-bad/sys/decklink/meson.build
68
+ index d869e79a4..c7b37a7c6 100644
69
+ --- a/subprojects/gst-plugins-bad/sys/decklink/meson.build
70
+ +++ b/subprojects/gst-plugins-bad/sys/decklink/meson.build
71
+ @@ -18,7 +18,7 @@ decklink_libs = []
72
+
73
+ if host_system == 'windows'
74
+ decklink_sources += ['win/DeckLinkAPIDispatch.cpp', 'win/DeckLinkAPI_i.c']
75
+ - if cxx.get_id() == 'msvc'
76
+ + if cxx.get_argument_syntax() == 'msvc'
77
+ # FIXME: Use commsuppwd.lib for debug builds?
78
+ comutil_dep = cxx.find_library('comsuppw', required : get_option('decklink'))
79
+ if comutil_dep.found()
80
+ diff --git a/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build b/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
81
+ index 6b9a059..40713ce 100644
82
+ --- a/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
83
+ +++ b/subprojects/gst-plugins-bad/sys/mediafoundation/meson.build
84
+ @@ -54,7 +54,7 @@ if host_system != 'windows' or mf_option.disabled()
85
+ subdir_done()
86
+ endif
87
+
88
+ -if cc.get_id() != 'msvc'
89
+ +if cc.get_argument_syntax() != 'msvc'
90
+ if mf_option.enabled()
91
+ error('mediafoundation plugin can only be built with MSVC')
92
+ endif
93
+ diff --git a/subprojects/gst-plugins-bad/sys/msdk/meson.build b/subprojects/gst-plugins-bad/sys/msdk/meson.build
94
+ index 659b96c..92e6bc4 100644
95
+ --- a/subprojects/gst-plugins-bad/sys/msdk/meson.build
96
+ +++ b/subprojects/gst-plugins-bad/sys/msdk/meson.build
97
+ @@ -176,12 +176,12 @@ if use_onevpl and have_mfx_ver205
98
+ endif
99
+
100
+ if host_machine.system() == 'windows'
101
+ - if cc.get_id() != 'msvc' and msdk_option.enabled()
102
+ + if cc.get_argument_syntax() != 'msvc' and msdk_option.enabled()
103
+ error('msdk plugin can only be built with MSVC')
104
+ endif
105
+ legacy_stdio_dep = cc.find_library('legacy_stdio_definitions', required: get_option('msdk'))
106
+ msdk_deps = declare_dependency(dependencies: [gstd3d11_dep, legacy_stdio_dep])
107
+ - msdk_deps_found = gstd3d11_dep.found() and legacy_stdio_dep.found() and cc.get_id() == 'msvc'
108
+ + msdk_deps_found = d3d11_dep.found() and legacy_stdio_dep.found() and cc.get_argument_syntax() == 'msvc'
109
+ else
110
+ libdl_dep = cc.find_library('dl', required: get_option('msdk'))
111
+ libgudev_dep = dependency('gudev-1.0', required: get_option('msdk'))
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-base.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-base/meson.build b/subprojects/gst-plugins-base/meson.build
2
+ index c040bc9..ce9071c 100644
3
+ --- a/subprojects/gst-plugins-base/meson.build
4
+ +++ b/subprojects/gst-plugins-base/meson.build
5
+ @@ -51,7 +51,7 @@ gst_libraries = []
6
+
7
+ cc = meson.get_compiler('c')
8
+
9
+ -if cc.get_id() == 'msvc'
10
+ +if cc.get_argument_syntax() == 'msvc'
11
+ msvc_args = [
12
+ # Ignore several spurious warnings for things gstreamer does very commonly
13
+ # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-good.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-good/meson.build b/subprojects/gst-plugins-good/meson.build
2
+ index 64705379f..0c55b9732 100644
3
+ --- a/subprojects/gst-plugins-good/meson.build
4
+ +++ b/subprojects/gst-plugins-good/meson.build
5
+ @@ -30,7 +30,7 @@ plugins = []
6
+ cc = meson.get_compiler('c')
7
+ host_system = host_machine.system()
8
+
9
+ -if cc.get_id() == 'msvc'
10
+ +if cc.get_argument_syntax() == 'msvc'
11
+ msvc_args = [
12
+ # Ignore several spurious warnings for things gstreamer does very commonly
13
+ # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
14
+ @@ -183,7 +183,7 @@ cdata.set('SIZEOF_OFF_T', cc.sizeof('off_t'))
15
+ # Here be fixmes.
16
+ # FIXME: check if this is correct
17
+ cdata.set('HAVE_CPU_X86_64', host_machine.cpu() == 'amd64')
18
+ -cdata.set('HAVE_GCC_ASM', cc.get_id() != 'msvc')
19
+ +cdata.set('HAVE_GCC_ASM', cc.get_argument_syntax() != 'msvc')
20
+ cdata.set_quoted('VERSION', gst_version)
21
+ cdata.set_quoted('PACKAGE_VERSION', gst_version)
22
+ cdata.set_quoted('GST_LICENSE', 'LGPL')
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-gstreamer.patch ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gstreamer/gst/parse/meson.build b/subprojects/gstreamer/gst/parse/meson.build
2
+ index b79a07c..891f907 100644
3
+ --- a/subprojects/gstreamer/gst/parse/meson.build
4
+ +++ b/subprojects/gstreamer/gst/parse/meson.build
5
+ @@ -16,7 +16,7 @@ else
6
+ endif
7
+
8
+ flex_cdata.set('FLEX', flex.full_path())
9
+ -if cc.get_id() == 'msvc'
10
+ +if cc.get_argument_syntax() == 'msvc'
11
+ flex_cdata.set('FLEX_ARGS', '--nounistd')
12
+ else
13
+ flex_cdata.set('FLEX_ARGS', '')
14
+ diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build
15
+ index 941bedc..cd37a40 100644
16
+ --- a/subprojects/gstreamer/meson.build
17
+ +++ b/subprojects/gstreamer/meson.build
18
+ @@ -47,7 +47,7 @@ endif
19
+
20
+ cdata = configuration_data()
21
+
22
+ -if cc.get_id() == 'msvc'
23
+ +if cc.get_argument_syntax() == 'msvc'
24
+ msvc_args = [
25
+ # Ignore several spurious warnings for things gstreamer does very commonly
26
+ # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
27
+ @@ -347,8 +347,10 @@ static __uint128_t v2 = 10;
28
+ static __uint128_t u;
29
+ u = v1 / v2;
30
+ }'''
31
+ -if cc.compiles(uint128_t_src, name : '__uint128_t available')
32
+ - cdata.set('HAVE_UINT128_T', 1)
33
+ +if cc.get_argument_syntax() != 'msvc'
34
+ + if cc.compiles(uint128_t_src, name : '__uint128_t available')
35
+ + cdata.set('HAVE_UINT128_T', 1)
36
+ + endif
37
+ endif
38
+
39
+ # All supported platforms have long long now
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl-ugly.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-ugly/meson.build b/subprojects/gst-plugins-ugly/meson.build
2
+ index 14be48c4c..83d019874 100644
3
+ --- a/subprojects/gst-plugins-ugly/meson.build
4
+ +++ b/subprojects/gst-plugins-ugly/meson.build
5
+ @@ -31,7 +31,7 @@ if have_cxx
6
+ cxx = meson.get_compiler('cpp')
7
+ endif
8
+
9
+ -if cc.get_id() == 'msvc'
10
+ +if cc.get_argument_syntax() == 'msvc'
11
+ msvc_args = [
12
+ # Ignore several spurious warnings for things gstreamer does very commonly
13
+ # If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/fix-clang-cl.patch ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/meson.build b/meson.build
2
+ index 1316366ed..daeaf3cb1 100644
3
+ --- a/meson.build
4
+ +++ b/meson.build
5
+ @@ -62,7 +62,7 @@ endif
6
+ # Ensure that MSVC interprets all source code as UTF-8. Only do this when we're
7
+ # not a subproject, because subprojects are not allowed to call
8
+ # add_global_arguments().
9
+ -if not meson.is_subproject() and cc.get_id() == 'msvc'
10
+ +if not meson.is_subproject() and cc.get_argument_syntax() == 'msvc'
11
+ add_global_arguments(
12
+ cc.get_supported_arguments(['/utf-8']), # set the input encoding to utf-8
13
+ language: ['c', 'cpp'])
14
+ @@ -316,7 +316,7 @@ if get_option('default_library') == 'static'
15
+ if cc.has_link_argument(link_arg)
16
+ gstfull_link_args += link_arg
17
+ link_deps += symbol_map
18
+ - elif cc.get_id() == 'msvc'
19
+ + elif cc.get_argument_syntax() == 'msvc'
20
+ warning('FIXME: Provide a def file to publish the public symbols')
21
+ else
22
+ warning('FIXME: Linker does not support the supplied version script (' + symbol_map + '), please disable the "gst-full-version-script" option')
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/gstreamer-disable-no-unused.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gstreamer/meson.build b/subprojects/gstreamer/meson.build
2
+ index bed8c4e..772809e 100644
3
+ --- a/subprojects/gstreamer/meson.build
4
+ +++ b/subprojects/gstreamer/meson.build
5
+ @@ -435,8 +435,8 @@ if cc.has_header('execinfo.h')
6
+ endif
7
+ endif
8
+
9
+ gst_debug = get_option('gst_debug')
10
+ -if not gst_debug
11
+ +if not gst_debug and cc.has_argument('-Wno-unused')
12
+ add_project_arguments(['-Wno-unused'], language: 'c')
13
+ endif
14
+
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/no-downloads.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/meson.build b/meson.build
2
+ index df015cb..93cf7e9 100644
3
+ --- a/meson.build
4
+ +++ b/meson.build
5
+ @@ -105,12 +105,6 @@ subprojects = [
6
+ ['gst-plugins-rs', { 'option': get_option('rs'), 'build-hotdoc': true, 'match_gst_version': false}],
7
+ ]
8
+
9
+ -if build_system == 'windows'
10
+ - subproject('win-flex-bison-binaries')
11
+ - subproject('win-nasm')
12
+ -elif build_system == 'darwin'
13
+ - subproject('macos-bison-binary')
14
+ -endif
15
+
16
+ orc_option = get_option('orc')
17
+ # There is a check below to keep this in sync with subprojects/gst-plugins-base/meson.build
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/plugin-base-disable-no-unused.patch ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-base/meson.build b/subprojects/gst-plugins-base/meson.build
2
+ index 9b00253..495671e 100644
3
+ --- a/subprojects/gst-plugins-base/meson.build
4
+ +++ b/subprojects/gst-plugins-base/meson.build
5
+ @@ -388,10 +388,11 @@ int32x4_t testfunc(int16_t *a, int16_t *b) {
6
+ endif
7
+ endif
8
+
9
+ +build_system = build_machine.system()
10
+ if gst_dep.type_name() == 'internal'
11
+ gst_proj = subproject('gstreamer')
12
+
13
+ - if not gst_proj.get_variable('gst_debug')
14
+ + if not gst_proj.get_variable('gst_debug') and build_system != 'windows'
15
+ message('GStreamer debug system is disabled')
16
+ add_project_arguments('-Wno-unused', language: 'c')
17
+ else
18
+ @@ -404,7 +405,7 @@ else
19
+ #include <gst/gstconfig.h>
20
+ #ifdef GST_DISABLE_GST_DEBUG
21
+ #error "debugging disabled, make compiler fail"
22
+ -#endif''' , dependencies: gst_dep)
23
+ +#endif''' , dependencies: gst_dep) and build_system != 'windows'
24
+ message('GStreamer debug system is disabled')
25
+ add_project_arguments('-Wno-unused', language: 'c')
26
+ else
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/plugins-base-x11.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-base/meson.build b/subprojects/gst-plugins-base/meson.build
2
+ index 9b00253a0f..e3c3a0d920 100644
3
+ --- a/subprojects/gst-plugins-base/meson.build
4
+ +++ b/subprojects/gst-plugins-base/meson.build
5
+ @@ -316,7 +316,7 @@ else
6
+ gtk_quartz_dep = dependency('', required : false)
7
+ endif
8
+
9
+ -core_conf.set('HAVE_X11', x11_dep.found())
10
+ +core_conf.set('HAVE_X11', false)
11
+ core_conf.set('HAVE_GIO_UNIX_2_0', giounix_dep.found())
12
+
13
+ if gio_dep.type_name() == 'pkgconfig'
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/portfile.cmake ADDED
@@ -0,0 +1,420 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_TARGET_IS_WINDOWS)
2
+ set(PATCHES
3
+ plugin-base-disable-no-unused.patch
4
+ )
5
+ endif()
6
+
7
+ vcpkg_from_gitlab(
8
+ GITLAB_URL https://gitlab.freedesktop.org
9
+ OUT_SOURCE_PATH SOURCE_PATH
10
+ REPO gstreamer/gstreamer
11
+ REF "${VERSION}"
12
+ SHA512 0d69896d0a83452320df0d0f56c710df1365a259cd3f48dc7cd4df18d45b27caea7174aafa15ae5eb8637ccdef192c1047185b369b7232db4eaacbc57ffaaa22
13
+ HEAD_REF main
14
+ PATCHES
15
+ fix-clang-cl.patch
16
+ fix-clang-cl-gstreamer.patch
17
+ fix-clang-cl-base.patch
18
+ fix-clang-cl-good.patch
19
+ fix-clang-cl-bad.patch
20
+ fix-clang-cl-ugly.patch
21
+ gstreamer-disable-no-unused.patch
22
+ srtp_fix.patch
23
+ fix-bz2-windows-debug-dependency.patch
24
+ base-must-be-enabled.patch
25
+ no-downloads.patch
26
+ ${PATCHES}
27
+ )
28
+
29
+ vcpkg_find_acquire_program(FLEX)
30
+ vcpkg_find_acquire_program(BISON)
31
+ vcpkg_find_acquire_program(NASM)
32
+
33
+ if(VCPKG_TARGET_IS_OSX)
34
+ # In Darwin platform, there can be an old version of `bison`,
35
+ # Which can't be used for `gst-build`. It requires 2.4+
36
+ execute_process(
37
+ COMMAND ${BISON} --version
38
+ OUTPUT_VARIABLE BISON_OUTPUT
39
+ )
40
+ string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" BISON_VERSION "${BISON_OUTPUT}")
41
+ set(BISON_MAJOR ${CMAKE_MATCH_1})
42
+ set(BISON_MINOR ${CMAKE_MATCH_2})
43
+ message(STATUS "Using bison: ${BISON_MAJOR}.${BISON_MINOR}.${CMAKE_MATCH_3}")
44
+ if(NOT (BISON_MAJOR GREATER_EQUAL 2 AND BISON_MINOR GREATER_EQUAL 4))
45
+ message(WARNING "'bison' upgrade is required. Please check the https://stackoverflow.com/a/35161881")
46
+ endif()
47
+ endif()
48
+
49
+ # General features
50
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
51
+ FEATURES
52
+ gpl gpl
53
+ libav libav
54
+ nls nls
55
+ ges ges
56
+
57
+ plugins-base base
58
+ gl-graphene gst-plugins-base:gl-graphene
59
+ alsa gst-plugins-base:alsa
60
+ ogg gst-plugins-base:ogg
61
+ opus-base gst-plugins-base:opus
62
+ pango gst-plugins-base:pango
63
+ vorbis gst-plugins-base:vorbis
64
+ x11-base gst-plugins-base:x11
65
+ x11-base gst-plugins-base:xshm
66
+
67
+ plugins-good good
68
+ bzip2-good gst-plugins-good:bz2
69
+ cairo gst-plugins-good:cairo
70
+ flac gst-plugins-good:flac
71
+ gdk-pixbuf gst-plugins-good:gdk-pixbuf
72
+ jpeg gst-plugins-good:jpeg
73
+ mpg123 gst-plugins-good:mpg123
74
+ png gst-plugins-good:png
75
+ speex gst-plugins-good:speex
76
+ taglib gst-plugins-good:taglib
77
+ vpx gst-plugins-good:vpx
78
+
79
+ plugins-ugly ugly
80
+ x264 gst-plugins-ugly:x264
81
+
82
+ plugins-bad bad
83
+ aes gst-plugins-bad:aes
84
+ aom gst-plugins-bad:aom
85
+ assrender gst-plugins-bad:assrender
86
+ bzip2-bad gst-plugins-bad:bz2
87
+ chromaprint gst-plugins-bad:chromaprint
88
+ closedcaption gst-plugins-bad:closedcaption
89
+ colormanagement gst-plugins-bad:colormanagement
90
+ dash gst-plugins-bad:dash
91
+ dc1394 gst-plugins-bad:dc1394
92
+ dtls gst-plugins-bad:dtls
93
+ faad gst-plugins-bad:faad
94
+ fdkaac gst-plugins-bad:fdkaac
95
+ fluidsynth gst-plugins-bad:fluidsynth
96
+ libde265 gst-plugins-bad:libde265
97
+ microdns gst-plugins-bad:microdns
98
+ modplug gst-plugins-bad:modplug
99
+ nvcodec gst-plugins-bad:nvcodec
100
+ openal gst-plugins-bad:openal
101
+ openh264 gst-plugins-bad:openh264
102
+ openjpeg gst-plugins-bad:openjpeg
103
+ openmpt gst-plugins-bad:openmpt
104
+ opus-bad gst-plugins-bad:opus
105
+ smoothstreaming gst-plugins-bad:smoothstreaming
106
+ sndfile gst-plugins-bad:sndfile
107
+ soundtouch gst-plugins-bad:soundtouch
108
+ srt gst-plugins-bad:srt
109
+ srtp gst-plugins-bad:srtp
110
+ webp gst-plugins-bad:webp
111
+ webrtc gst-plugins-bad:webrtc
112
+ wildmidi gst-plugins-bad:wildmidi
113
+ x11-bad gst-plugins-bad:x11
114
+ x265 gst-plugins-bad:x265
115
+ asio gst-plugins-bad:asio
116
+ )
117
+
118
+ string(REPLACE "OFF" "disabled" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
119
+ string(REPLACE "ON" "enabled" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
120
+
121
+ if(VCPKG_TARGET_IS_WINDOWS)
122
+ set(PLUGIN_BASE_WINDOW_SYSTEM win32)
123
+ set(PLUGIN_BASE_GL_PLATFORM wgl)
124
+ else()
125
+ set(PLUGIN_BASE_WINDOW_SYSTEM auto)
126
+ set(PLUGIN_BASE_GL_PLATFORM auto)
127
+ endif()
128
+
129
+ if("asio" IN_LIST FEATURES)
130
+ set(PLUGIN_BAD_ASIO_SDK_PATH ${CURRENT_INSTALLED_DIR}/include/asiosdk)
131
+ else()
132
+ set(PLUGIN_BAD_ASIO_SDK_PATH "")
133
+ endif()
134
+
135
+ #
136
+ # References
137
+ # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.20.4/subprojects/gstreamer/meson_options.txt
138
+ # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.20.4/subprojects/gst-plugins-base/meson_options.txt
139
+ # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.20.4/subprojects/gst-plugins-good/meson_options.txt
140
+ # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.20.4/subprojects/gst-plugins-ugly/meson_options.txt
141
+ # https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.20.4/subprojects/gst-plugins-bad/meson_options.txt
142
+ #
143
+ # Rationale for added options
144
+ # Common options are added below systematically
145
+ # Feature options are added below only if the feature needs an external dependency
146
+ # Feature options that are dependent on the operating system type (like wasapi or osxaudio) are set to auto
147
+ # Every other feature options are made available if the dependency is available on vcpkg and if the plugin has managed to build during tests
148
+ #
149
+
150
+ vcpkg_configure_meson(
151
+ SOURCE_PATH "${SOURCE_PATH}"
152
+ OPTIONS
153
+ ${FEATURE_OPTIONS}
154
+ # General options
155
+ -Dpython=disabled
156
+ -Dlibnice=disabled
157
+ -Ddevtools=disabled
158
+ -Drtsp_server=disabled
159
+ -Domx=disabled
160
+ -Dvaapi=disabled
161
+ -Dsharp=disabled
162
+ -Drs=disabled
163
+ -Dgst-examples=disabled
164
+ -Dtls=disabled
165
+ -Dqt5=disabled
166
+ # Common options
167
+ -Dtests=disabled
168
+ -Dexamples=disabled
169
+ -Dintrospection=disabled
170
+ -Dorc=disabled # gstreamer requires a specific version of orc which is not available in vcpkg
171
+ -Ddoc=disabled
172
+ -Dgtk_doc=disabled
173
+ # gstreamer
174
+ -Dgstreamer:check=disabled
175
+ -Dgstreamer:libunwind=disabled
176
+ -Dgstreamer:libdw=disabled
177
+ -Dgstreamer:dbghelp=disabled
178
+ -Dgstreamer:bash-completion=disabled
179
+ -Dgstreamer:coretracers=disabled
180
+ -Dgstreamer:benchmarks=disabled
181
+ -Dgstreamer:gst_debug=true
182
+ # gst-plugins-base
183
+ -Dgst-plugins-base:gl_winsys=${PLUGIN_BASE_WINDOW_SYSTEM}
184
+ -Dgst-plugins-base:gl_platform=${PLUGIN_BASE_GL_PLATFORM}
185
+ -Dgst-plugins-base:cdparanoia=disabled
186
+ -Dgst-plugins-base:libvisual=disabled
187
+ -Dgst-plugins-base:theora=disabled
188
+ -Dgst-plugins-base:tremor=disabled
189
+ -Dgst-plugins-base:xvideo=disabled
190
+ # gst-plugins-good
191
+ -Dgst-plugins-good:aalib=disabled
192
+ -Dgst-plugins-good:directsound=auto
193
+ -Dgst-plugins-good:dv=disabled
194
+ -Dgst-plugins-good:dv1394=disabled
195
+ -Dgst-plugins-good:gtk3=disabled # GTK version 3 only
196
+ -Dgst-plugins-good:jack=disabled
197
+ -Dgst-plugins-good:lame=disabled
198
+ -Dgst-plugins-good:libcaca=disabled
199
+ -Dgst-plugins-good:oss=disabled
200
+ -Dgst-plugins-good:oss4=disabled
201
+ -Dgst-plugins-good:osxaudio=auto
202
+ -Dgst-plugins-good:osxvideo=auto
203
+ -Dgst-plugins-good:pulse=auto
204
+ -Dgst-plugins-good:qt5=disabled
205
+ -Dgst-plugins-good:shout2=disabled
206
+ #-Dgst-plugins-good:soup=disabled
207
+ -Dgst-plugins-good:twolame=disabled
208
+ -Dgst-plugins-good:waveform=auto
209
+ -Dgst-plugins-good:wavpack=disabled # Error during plugin build
210
+ # gst-plugins-ugly
211
+ -Dgst-plugins-ugly:a52dec=disabled
212
+ -Dgst-plugins-ugly:amrnb=disabled
213
+ -Dgst-plugins-ugly:amrwbdec=disabled
214
+ -Dgst-plugins-ugly:cdio=disabled
215
+ -Dgst-plugins-ugly:dvdread=disabled
216
+ -Dgst-plugins-ugly:mpeg2dec=disabled # libmpeg2 not found
217
+ -Dgst-plugins-ugly:sidplay=disabled
218
+ # gst-plugins-bad
219
+ -Dgst-plugins-bad:avtp=disabled
220
+ -Dgst-plugins-bad:androidmedia=auto
221
+ -Dgst-plugins-bad:applemedia=auto
222
+ -Dgst-plugins-bad:asio-sdk-path=${PLUGIN_BAD_ASIO_SDK_PATH}
223
+ -Dgst-plugins-bad:bluez=disabled
224
+ -Dgst-plugins-bad:bs2b=disabled
225
+ -Dgst-plugins-bad:curl=disabled # Error during plugin build
226
+ -Dgst-plugins-bad:curl-ssh2=disabled
227
+ -Dgst-plugins-bad:d3dvideosink=auto
228
+ -Dgst-plugins-bad:d3d11=auto
229
+ -Dgst-plugins-bad:decklink=disabled
230
+ -Dgst-plugins-bad:directfb=disabled
231
+ -Dgst-plugins-bad:directsound=auto
232
+ -Dgst-plugins-bad:dts=disabled
233
+ -Dgst-plugins-bad:dvb=auto
234
+ -Dgst-plugins-bad:faac=disabled
235
+ -Dgst-plugins-bad:fbdev=auto
236
+ -Dgst-plugins-bad:flite=disabled
237
+ -Dgst-plugins-bad:gl=auto
238
+ -Dgst-plugins-bad:gme=disabled
239
+ -Dgst-plugins-bad:gs=disabled # Error during plugin configuration (abseil pkg-config file missing)
240
+ -Dgst-plugins-bad:gsm=disabled
241
+ -Dgst-plugins-bad:ipcpipeline=auto
242
+ -Dgst-plugins-bad:iqa=disabled
243
+ -Dgst-plugins-bad:kate=disabled
244
+ -Dgst-plugins-bad:kms=disabled
245
+ -Dgst-plugins-bad:ladspa=disabled
246
+ -Dgst-plugins-bad:ldac=disabled
247
+ -Dgst-plugins-bad:lv2=disabled # Error during plugin configuration (lilv pkg-config file missing)
248
+ -Dgst-plugins-bad:mediafoundation=auto
249
+ -Dgst-plugins-bad:mpeg2enc=disabled
250
+ -Dgst-plugins-bad:mplex=disabled
251
+ -Dgst-plugins-bad:msdk=disabled
252
+ -Dgst-plugins-bad:musepack=disabled
253
+ -Dgst-plugins-bad:neon=disabled
254
+ -Dgst-plugins-bad:onnx=disabled # libonnxruntime not found
255
+ -Dgst-plugins-bad:openaptx=disabled
256
+ -Dgst-plugins-bad:opencv=disabled # opencv not found
257
+ -Dgst-plugins-bad:openexr=disabled # OpenEXR::IlmImf target not found
258
+ -Dgst-plugins-bad:openni2=disabled # libopenni2 not found
259
+ -Dgst-plugins-bad:opensles=disabled
260
+ -Dgst-plugins-bad:qroverlay=disabled
261
+ -Dgst-plugins-bad:resindvd=disabled
262
+ -Dgst-plugins-bad:rsvg=disabled # librsvg-2.0 not found
263
+ -Dgst-plugins-bad:rtmp=disabled # librtmp not found
264
+ -Dgst-plugins-bad:sbc=disabled
265
+ -Dgst-plugins-bad:sctp=auto
266
+ -Dgst-plugins-bad:shm=disabled
267
+ -Dgst-plugins-bad:spandsp=disabled
268
+ -Dgst-plugins-bad:svthevcenc=disabled
269
+ -Dgst-plugins-bad:teletext=disabled
270
+ -Dgst-plugins-bad:tinyalsa=disabled
271
+ -Dgst-plugins-bad:transcode=disabled
272
+ -Dgst-plugins-bad:ttml=disabled
273
+ -Dgst-plugins-bad:uvch264=disabled
274
+ -Dgst-plugins-bad:va=disabled
275
+ -Dgst-plugins-bad:voaacenc=disabled
276
+ -Dgst-plugins-bad:voamrwbenc=disabled
277
+ -Dgst-plugins-bad:vulkan=auto
278
+ -Dgst-plugins-bad:wasapi=auto
279
+ -Dgst-plugins-bad:wasapi2=auto
280
+ -Dgst-plugins-bad:wayland=auto
281
+ -Dgst-plugins-bad:winks=disabled
282
+ -Dgst-plugins-bad:winscreencap=auto
283
+ -Dgst-plugins-bad:zbar=disabled # Error during plugin build
284
+ -Dgst-plugins-bad:zxing=disabled # Error during plugin build
285
+ -Dgst-plugins-bad:wpe=disabled
286
+ -Dgst-plugins-bad:magicleap=disabled
287
+ -Dgst-plugins-bad:v4l2codecs=disabled
288
+ -Dgst-plugins-bad:isac=disabled
289
+ OPTIONS_RELEASE
290
+ -Dgobject-cast-checks=disabled
291
+ -Dglib-asserts=disabled
292
+ -Dglib-checks=disabled
293
+ -Dgstreamer:extra-checks=disabled
294
+ ADDITIONAL_BINARIES
295
+ flex='${FLEX}'
296
+ bison='${BISON}'
297
+ nasm='${NASM}'
298
+ glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
299
+ glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
300
+ )
301
+
302
+ vcpkg_install_meson()
303
+
304
+ # Remove duplicated GL headers (we already have `opengl-registry`)
305
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/KHR"
306
+ "${CURRENT_PACKAGES_DIR}/include/GL"
307
+ )
308
+
309
+ if(NOT VCPKG_TARGET_IS_LINUX AND "plugins-base" IN_LIST FEATURES)
310
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/include/gst/gl/gstglconfig.h"
311
+ "${CURRENT_PACKAGES_DIR}/include/gstreamer-1.0/gst/gl/gstglconfig.h"
312
+ )
313
+ endif()
314
+
315
+ list(APPEND GST_BIN_TOOLS
316
+ gst-inspect-1.0
317
+ gst-launch-1.0
318
+ gst-stats-1.0
319
+ gst-typefind-1.0
320
+ )
321
+ list(APPEND GST_LIBEXEC_TOOLS
322
+ gst-plugin-scanner
323
+ )
324
+
325
+ if("ges" IN_LIST FEATURES)
326
+ list(APPEND GST_BIN_TOOLS ges-launch-1.0)
327
+ endif()
328
+
329
+ if("plugins-base" IN_LIST FEATURES)
330
+ list(APPEND GST_BIN_TOOLS
331
+ gst-device-monitor-1.0
332
+ gst-discoverer-1.0
333
+ gst-play-1.0
334
+ )
335
+ endif()
336
+
337
+ if("plugins-bad" IN_LIST FEATURES)
338
+ list(APPEND GST_BIN_TOOLS
339
+ gst-transcoder-1.0
340
+ )
341
+ endif()
342
+
343
+ vcpkg_copy_tools(
344
+ TOOL_NAMES ${GST_BIN_TOOLS}
345
+ AUTO_CLEAN
346
+ )
347
+
348
+ vcpkg_copy_tools(
349
+ TOOL_NAMES ${GST_LIBEXEC_TOOLS}
350
+ SEARCH_DIR "${CURRENT_PACKAGES_DIR}/libexec/gstreamer-1.0"
351
+ AUTO_CLEAN
352
+ )
353
+
354
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share"
355
+ "${CURRENT_PACKAGES_DIR}/debug/libexec"
356
+ "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/include"
357
+ "${CURRENT_PACKAGES_DIR}/libexec"
358
+ "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/include"
359
+ "${CURRENT_PACKAGES_DIR}/share/gdb"
360
+ )
361
+
362
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
363
+ # Move plugin pkg-config files
364
+ file(GLOB pc_files "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/pkgconfig/*")
365
+ file(COPY ${pc_files} DESTINATION "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
366
+ file(GLOB pc_files_dbg "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/pkgconfig/*")
367
+ file(COPY ${pc_files_dbg} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
368
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/pkgconfig/"
369
+ "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/pkgconfig/")
370
+
371
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin"
372
+ "${CURRENT_PACKAGES_DIR}/bin"
373
+ )
374
+ set(PREFIX "${CMAKE_SHARED_LIBRARY_PREFIX}")
375
+ set(SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}")
376
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/${PREFIX}gstreamer-full-1.0${SUFFIX}"
377
+ "${CURRENT_PACKAGES_DIR}/lib/${PREFIX}gstreamer-full-1.0${SUFFIX}"
378
+ )
379
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/gstreamer-1.0/gst/gstconfig.h" "!defined(GST_STATIC_COMPILATION)" "0")
380
+ endif()
381
+
382
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
383
+ # move plugins to ${prefix}/plugins/${PORT} instead of ${prefix}/lib/gstreamer-1.0
384
+ if(NOT VCPKG_BUILD_TYPE)
385
+ file(GLOB DBG_BINS "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}*${CMAKE_SHARED_LIBRARY_SUFFIX}"
386
+ "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/*.pdb"
387
+ )
388
+ file(COPY ${DBG_BINS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/plugins/${PORT}")
389
+ endif()
390
+ file(GLOB REL_BINS "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}*${CMAKE_SHARED_LIBRARY_SUFFIX}"
391
+ "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/*.pdb"
392
+ )
393
+ file(COPY ${REL_BINS} DESTINATION "${CURRENT_PACKAGES_DIR}/plugins/${PORT}")
394
+ file(REMOVE ${DBG_BINS} ${REL_BINS})
395
+ if(NOT VCPKG_TARGET_IS_WINDOWS)
396
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0" "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0")
397
+ endif()
398
+
399
+ set(_file "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/gstreamer-1.0.pc")
400
+ if(EXISTS "${_file}")
401
+ file(READ "${_file}" _contents)
402
+ string(REPLACE [[toolsdir=${exec_prefix}/bin]] "toolsdir=\${prefix}/../tools/${PORT}" _contents "${_contents}")
403
+ string(REPLACE [[pluginscannerdir=${libexecdir}/gstreamer-1.0]] "pluginscannerdir=\${prefix}/../tools/${PORT}" _contents "${_contents}")
404
+ string(REPLACE [[pluginsdir=${libdir}/gstreamer-1.0]] "pluginsdir=\${prefix}/plugins/${PORT}" _contents "${_contents}")
405
+ file(WRITE "${_file}" "${_contents}")
406
+ endif()
407
+
408
+ set(_file "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/gstreamer-1.0.pc")
409
+ if(EXISTS "${_file}")
410
+ file(READ "${_file}" _contents)
411
+ string(REPLACE [[toolsdir=${exec_prefix}/bin]] "toolsdir=\${prefix}/tools/${PORT}" _contents "${_contents}")
412
+ string(REPLACE [[pluginscannerdir=${libexecdir}/gstreamer-1.0]] "pluginscannerdir=\${prefix}/tools/${PORT}" _contents "${_contents}")
413
+ string(REPLACE [[pluginsdir=${libdir}/gstreamer-1.0]] "pluginsdir=\${prefix}/plugins/${PORT}" _contents "${_contents}")
414
+ file(WRITE "${_file}" "${_contents}")
415
+ endif()
416
+ endif()
417
+
418
+ vcpkg_fixup_pkgconfig()
419
+
420
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/remove_x264_define.patch ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/ext/x264/gstx264enc.h b/ext/x264/gstx264enc.h
2
+ index 6cbfc5c3d..ba7845b20 100644
3
+ --- a/ext/x264/gstx264enc.h
4
+ +++ b/ext/x264/gstx264enc.h
5
+ @@ -31,13 +31,6 @@
6
+ #include <stdint.h>
7
+ #endif
8
+
9
+ -/* The x264.h header says this isn't needed with MinGW, but sometimes the
10
+ - * compiler is unable to correctly do the pointer indirection for us, which
11
+ - * leads to a segfault when you try to dereference any const values provided
12
+ - * by x264.dll. See: https://bugzilla.gnome.org/show_bug.cgi?id=779249 */
13
+ -#if defined(_WIN32) && !defined(X264_API_IMPORTS)
14
+ -# define X264_API_IMPORTS
15
+ -#endif
16
+ #include <x264.h>
17
+
18
+ G_BEGIN_DECLS
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/srtp_fix.patch ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/subprojects/gst-plugins-bad/ext/srtp/meson.build b/subprojects/gst-plugins-bad/ext/srtp/meson.build
2
+ index 49eed5b..db5aed0 100644
3
+ --- a/subprojects/gst-plugins-bad/ext/srtp/meson.build
4
+ +++ b/subprojects/gst-plugins-bad/ext/srtp/meson.build
5
+ @@ -6,13 +6,15 @@ srtp_sources = [
6
+ 'gstsrtpenc.c',
7
+ ]
8
+
9
+ +gst_plugins_install_dir = join_paths(get_option('libdir'), 'gstreamer-1.0')
10
+ +
11
+ srtp_cargs = []
12
+ if get_option('srtp').disabled()
13
+ srtp_dep = dependency('', required : false)
14
+ subdir_done()
15
+ endif
16
+
17
+ -srtp_dep = dependency('libsrtp2', version : '>= 2.1.0', required : false)
18
+ +srtp_dep = dependency('libSRTP', modules: ['libSRTP::srtp2'], version : '>= 2.1.0', required : false)
19
+ if srtp_dep.found()
20
+ srtp_cargs += ['-DHAVE_SRTP2']
21
+ else
22
+ @@ -38,7 +40,7 @@ if srtp_dep.found()
23
+ include_directories : [configinc],
24
+ dependencies : [gstrtp_dep, gstvideo_dep, srtp_dep],
25
+ install : true,
26
+ - install_dir : plugins_install_dir,
27
+ + install_dir : gst_plugins_install_dir,
28
+ )
29
+ plugins += [gstsrtp]
30
+ endif
cc-multilingual-main/cc_net/vcpkg/ports/gstreamer/vcpkg.json ADDED
@@ -0,0 +1,841 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "gstreamer",
3
+ "version": "1.22.5",
4
+ "port-version": 8,
5
+ "description": "GStreamer open-source multimedia framework core library",
6
+ "homepage": "https://gstreamer.freedesktop.org/",
7
+ "license": "LGPL-2.0-only",
8
+ "supports": "!uwp & !xbox",
9
+ "dependencies": [
10
+ "glib",
11
+ {
12
+ "name": "glib",
13
+ "host": true
14
+ },
15
+ {
16
+ "name": "opengl",
17
+ "platform": "windows | osx"
18
+ },
19
+ {
20
+ "name": "vcpkg-tool-meson",
21
+ "host": true
22
+ }
23
+ ],
24
+ "default-features": [
25
+ "plugins-base"
26
+ ],
27
+ "features": {
28
+ "aes": {
29
+ "description": "Enable support for AES encryption/decryption",
30
+ "dependencies": [
31
+ {
32
+ "name": "gstreamer",
33
+ "default-features": false,
34
+ "features": [
35
+ "plugins-bad"
36
+ ]
37
+ },
38
+ "openssl"
39
+ ]
40
+ },
41
+ "alsa": {
42
+ "description": "Enable support for ALSA (Advanced Linux Sound Architecture)",
43
+ "supports": "linux",
44
+ "dependencies": [
45
+ {
46
+ "name": "alsa",
47
+ "platform": "linux"
48
+ },
49
+ {
50
+ "name": "gstreamer",
51
+ "default-features": false,
52
+ "features": [
53
+ "plugins-base"
54
+ ]
55
+ }
56
+ ]
57
+ },
58
+ "aom": {
59
+ "description": "Enable support for the Alliance for Open Media (AOM) AV1 encoder and decoder",
60
+ "supports": "!windows",
61
+ "dependencies": [
62
+ "aom",
63
+ {
64
+ "name": "gstreamer",
65
+ "default-features": false,
66
+ "features": [
67
+ "plugins-bad"
68
+ ]
69
+ }
70
+ ]
71
+ },
72
+ "asio": {
73
+ "description": "Enable support for the Steinberg Audio Streaming Input Output (ASIO) library (Windows only)",
74
+ "dependencies": [
75
+ {
76
+ "name": "asiosdk",
77
+ "platform": "windows"
78
+ },
79
+ {
80
+ "name": "gstreamer",
81
+ "default-features": false,
82
+ "features": [
83
+ "plugins-bad"
84
+ ]
85
+ }
86
+ ]
87
+ },
88
+ "assrender": {
89
+ "description": "Enable support for the ASS/SSA subtitle renderer",
90
+ "dependencies": [
91
+ {
92
+ "name": "gstreamer",
93
+ "default-features": false,
94
+ "features": [
95
+ "plugins-bad"
96
+ ]
97
+ },
98
+ "libass"
99
+ ]
100
+ },
101
+ "bzip2-bad": {
102
+ "description": "Enable bzip2 stream compression in bad plugins",
103
+ "dependencies": [
104
+ "bzip2",
105
+ {
106
+ "name": "gstreamer",
107
+ "default-features": false,
108
+ "features": [
109
+ "plugins-bad"
110
+ ]
111
+ }
112
+ ]
113
+ },
114
+ "bzip2-good": {
115
+ "description": "Enable bzip2 stream compression in good plugins",
116
+ "dependencies": [
117
+ "bzip2",
118
+ {
119
+ "name": "gstreamer",
120
+ "default-features": false,
121
+ "features": [
122
+ "plugins-good"
123
+ ]
124
+ }
125
+ ]
126
+ },
127
+ "cairo": {
128
+ "description": "Enable support for the cairo graphics library",
129
+ "dependencies": [
130
+ {
131
+ "name": "cairo",
132
+ "features": [
133
+ "gobject"
134
+ ]
135
+ },
136
+ {
137
+ "name": "gstreamer",
138
+ "default-features": false,
139
+ "features": [
140
+ "plugins-good"
141
+ ]
142
+ }
143
+ ]
144
+ },
145
+ "chromaprint": {
146
+ "description": "Enable support for the Chromaprint audio fingerprint library",
147
+ "dependencies": [
148
+ "chromaprint",
149
+ {
150
+ "name": "gstreamer",
151
+ "default-features": false,
152
+ "features": [
153
+ "plugins-bad"
154
+ ]
155
+ }
156
+ ]
157
+ },
158
+ "closedcaption": {
159
+ "description": "Enable support for the closed caption extractor, decoder, and overlay",
160
+ "dependencies": [
161
+ {
162
+ "name": "gstreamer",
163
+ "default-features": false,
164
+ "features": [
165
+ "plugins-bad"
166
+ ]
167
+ },
168
+ "pango"
169
+ ]
170
+ },
171
+ "colormanagement": {
172
+ "description": "Enable support for the color management correction",
173
+ "dependencies": [
174
+ {
175
+ "name": "gstreamer",
176
+ "default-features": false,
177
+ "features": [
178
+ "plugins-bad"
179
+ ]
180
+ },
181
+ "lcms"
182
+ ]
183
+ },
184
+ "dash": {
185
+ "description": "Enable support for the DASH demuxer",
186
+ "dependencies": [
187
+ {
188
+ "name": "gstreamer",
189
+ "default-features": false,
190
+ "features": [
191
+ "plugins-bad"
192
+ ]
193
+ },
194
+ "libxml2"
195
+ ]
196
+ },
197
+ "dc1394": {
198
+ "description": "Enable support for the libdc1394 IIDC camera source",
199
+ "supports": "!windows",
200
+ "dependencies": [
201
+ {
202
+ "name": "gstreamer",
203
+ "default-features": false,
204
+ "features": [
205
+ "plugins-bad"
206
+ ]
207
+ },
208
+ "libdc1394"
209
+ ]
210
+ },
211
+ "dtls": {
212
+ "description": "Enable support for the DTLS encoder and decoder",
213
+ "dependencies": [
214
+ {
215
+ "name": "gstreamer",
216
+ "default-features": false,
217
+ "features": [
218
+ "plugins-bad"
219
+ ]
220
+ },
221
+ "openssl"
222
+ ]
223
+ },
224
+ "faad": {
225
+ "description": "Enable support for the free AAC audio decoder (GPL licensed)",
226
+ "dependencies": [
227
+ "faad2",
228
+ {
229
+ "name": "gstreamer",
230
+ "default-features": false,
231
+ "features": [
232
+ "gpl",
233
+ "plugins-bad"
234
+ ]
235
+ }
236
+ ]
237
+ },
238
+ "fdkaac": {
239
+ "description": "Enable support for the Fraunhofer AAC audio codec",
240
+ "dependencies": [
241
+ "fdk-aac",
242
+ {
243
+ "name": "gstreamer",
244
+ "default-features": false,
245
+ "features": [
246
+ "plugins-bad"
247
+ ]
248
+ }
249
+ ]
250
+ },
251
+ "flac": {
252
+ "description": "Enable support for FLAC: Free Lossless Audio Codec",
253
+ "dependencies": [
254
+ {
255
+ "name": "gstreamer",
256
+ "default-features": false,
257
+ "features": [
258
+ "ogg",
259
+ "plugins-good"
260
+ ]
261
+ },
262
+ "libflac"
263
+ ]
264
+ },
265
+ "fluidsynth": {
266
+ "description": "Enable support for the Fluidsynth MIDI decoder",
267
+ "supports": "!windows",
268
+ "dependencies": [
269
+ {
270
+ "name": "fluidsynth",
271
+ "platform": "!windows"
272
+ },
273
+ {
274
+ "name": "gstreamer",
275
+ "default-features": false,
276
+ "features": [
277
+ "plugins-bad"
278
+ ]
279
+ }
280
+ ]
281
+ },
282
+ "gdk-pixbuf": {
283
+ "description": "Enable support for gdk-pixbuf image loader",
284
+ "dependencies": [
285
+ "gdk-pixbuf",
286
+ {
287
+ "name": "gstreamer",
288
+ "default-features": false,
289
+ "features": [
290
+ "plugins-good"
291
+ ]
292
+ }
293
+ ]
294
+ },
295
+ "ges": {
296
+ "description": "Enable support for GStreamer Editing Services",
297
+ "dependencies": [
298
+ {
299
+ "name": "gstreamer",
300
+ "default-features": false,
301
+ "features": [
302
+ "plugins-base"
303
+ ]
304
+ }
305
+ ]
306
+ },
307
+ "gl-graphene": {
308
+ "description": "Use Graphene in OpenGL plugin",
309
+ "dependencies": [
310
+ "graphene",
311
+ {
312
+ "name": "gstreamer",
313
+ "default-features": false,
314
+ "features": [
315
+ "plugins-base"
316
+ ]
317
+ }
318
+ ]
319
+ },
320
+ "gpl": {
321
+ "description": "Allow build of plugins that have (A)GPL-licensed dependencies",
322
+ "dependencies": [
323
+ {
324
+ "name": "gstreamer",
325
+ "default-features": false,
326
+ "features": [
327
+ "plugins-base"
328
+ ]
329
+ }
330
+ ]
331
+ },
332
+ "jpeg": {
333
+ "description": "Enable support for the JPEG file format",
334
+ "dependencies": [
335
+ {
336
+ "name": "gstreamer",
337
+ "default-features": false,
338
+ "features": [
339
+ "plugins-base",
340
+ "plugins-good"
341
+ ]
342
+ },
343
+ "libjpeg-turbo"
344
+ ]
345
+ },
346
+ "libav": {
347
+ "description": "libav plugins",
348
+ "dependencies": [
349
+ {
350
+ "name": "ffmpeg",
351
+ "default-features": false
352
+ },
353
+ {
354
+ "name": "gstreamer",
355
+ "default-features": false,
356
+ "features": [
357
+ "plugins-base"
358
+ ]
359
+ }
360
+ ]
361
+ },
362
+ "libde265": {
363
+ "description": "Enable support for the HEVC/H.265 video decoder",
364
+ "dependencies": [
365
+ {
366
+ "name": "gstreamer",
367
+ "default-features": false,
368
+ "features": [
369
+ "plugins-bad"
370
+ ]
371
+ },
372
+ "libde265"
373
+ ]
374
+ },
375
+ "microdns": {
376
+ "description": "Enable support for the microdns device provider",
377
+ "dependencies": [
378
+ {
379
+ "name": "gstreamer",
380
+ "default-features": false,
381
+ "features": [
382
+ "plugins-bad"
383
+ ]
384
+ },
385
+ "libmicrodns"
386
+ ]
387
+ },
388
+ "modplug": {
389
+ "description": "Enable support for the ModPlug audio decoder",
390
+ "supports": "!uwp",
391
+ "dependencies": [
392
+ {
393
+ "name": "gstreamer",
394
+ "default-features": false,
395
+ "features": [
396
+ "plugins-bad"
397
+ ]
398
+ },
399
+ {
400
+ "name": "libmodplug",
401
+ "platform": "!uwp"
402
+ }
403
+ ]
404
+ },
405
+ "mpg123": {
406
+ "description": "Enable support for the MPG123 decoding library",
407
+ "dependencies": [
408
+ {
409
+ "name": "gstreamer",
410
+ "default-features": false,
411
+ "features": [
412
+ "plugins-good"
413
+ ]
414
+ },
415
+ "mpg123"
416
+ ]
417
+ },
418
+ "nls": {
419
+ "description": "National language support",
420
+ "dependencies": [
421
+ "gettext",
422
+ {
423
+ "name": "gettext",
424
+ "host": true,
425
+ "default-features": false,
426
+ "features": [
427
+ "tools"
428
+ ]
429
+ },
430
+ {
431
+ "name": "gstreamer",
432
+ "default-features": false,
433
+ "features": [
434
+ "plugins-base"
435
+ ]
436
+ }
437
+ ]
438
+ },
439
+ "nvcodec": {
440
+ "description": "Enable support for the NVCODEC encoders and decoders",
441
+ "supports": "!osx & !ios & !android & !emscripten",
442
+ "dependencies": [
443
+ {
444
+ "name": "gstreamer",
445
+ "default-features": false,
446
+ "features": [
447
+ "plugins-bad"
448
+ ]
449
+ }
450
+ ]
451
+ },
452
+ "ogg": {
453
+ "description": "Enable support for the Ogg container format (commonly used by Vorbis, Theora and flac)",
454
+ "dependencies": [
455
+ {
456
+ "name": "gstreamer",
457
+ "default-features": false,
458
+ "features": [
459
+ "plugins-base"
460
+ ]
461
+ },
462
+ "libogg"
463
+ ]
464
+ },
465
+ "openal": {
466
+ "description": "Enable support for the OpenAL audio library",
467
+ "dependencies": [
468
+ {
469
+ "name": "gstreamer",
470
+ "default-features": false,
471
+ "features": [
472
+ "plugins-bad"
473
+ ]
474
+ },
475
+ "openal-soft"
476
+ ]
477
+ },
478
+ "openh264": {
479
+ "description": "Enable support for the OpenH264 codec",
480
+ "dependencies": [
481
+ {
482
+ "name": "gstreamer",
483
+ "default-features": false,
484
+ "features": [
485
+ "plugins-bad"
486
+ ]
487
+ },
488
+ "openh264"
489
+ ]
490
+ },
491
+ "openjpeg": {
492
+ "description": "Enable support for the JPEG2000 codec",
493
+ "dependencies": [
494
+ {
495
+ "name": "gstreamer",
496
+ "default-features": false,
497
+ "features": [
498
+ "plugins-bad"
499
+ ]
500
+ },
501
+ "openjpeg"
502
+ ]
503
+ },
504
+ "openmpt": {
505
+ "description": "Enable support for the OpenMPT codec",
506
+ "dependencies": [
507
+ {
508
+ "name": "gstreamer",
509
+ "default-features": false,
510
+ "features": [
511
+ "plugins-bad"
512
+ ]
513
+ },
514
+ "libopenmpt"
515
+ ]
516
+ },
517
+ "opus-bad": {
518
+ "description": "Enable support for the Opus codec in bad plugins",
519
+ "dependencies": [
520
+ {
521
+ "name": "gstreamer",
522
+ "default-features": false,
523
+ "features": [
524
+ "plugins-bad"
525
+ ]
526
+ },
527
+ "opus"
528
+ ]
529
+ },
530
+ "opus-base": {
531
+ "description": "Enable support for the Opus codec in base plugins",
532
+ "dependencies": [
533
+ {
534
+ "name": "gstreamer",
535
+ "default-features": false,
536
+ "features": [
537
+ "plugins-base"
538
+ ]
539
+ },
540
+ "opus"
541
+ ]
542
+ },
543
+ "pango": {
544
+ "description": "Enable support for pango font rendering",
545
+ "dependencies": [
546
+ {
547
+ "name": "gstreamer",
548
+ "default-features": false,
549
+ "features": [
550
+ "plugins-base"
551
+ ]
552
+ },
553
+ "pango"
554
+ ]
555
+ },
556
+ "plugins-bad": {
557
+ "description": "'Bad' GStreamer plugins and helper libraries",
558
+ "dependencies": [
559
+ {
560
+ "name": "gstreamer",
561
+ "default-features": false,
562
+ "features": [
563
+ "plugins-base"
564
+ ]
565
+ }
566
+ ]
567
+ },
568
+ "plugins-base": {
569
+ "description": "'Base' GStreamer plugins and helper libraries",
570
+ "dependencies": [
571
+ "zlib"
572
+ ]
573
+ },
574
+ "plugins-good": {
575
+ "description": "'Good' GStreamer plugins and helper libraries",
576
+ "dependencies": [
577
+ {
578
+ "name": "gstreamer",
579
+ "default-features": false,
580
+ "features": [
581
+ "plugins-base"
582
+ ]
583
+ },
584
+ "zlib"
585
+ ]
586
+ },
587
+ "plugins-ugly": {
588
+ "description": "'Ugly' GStreamer plugins and helper libraries",
589
+ "dependencies": [
590
+ {
591
+ "name": "gstreamer",
592
+ "default-features": false,
593
+ "features": [
594
+ "plugins-base"
595
+ ]
596
+ }
597
+ ]
598
+ },
599
+ "png": {
600
+ "description": "Enable support for the PNG image format",
601
+ "dependencies": [
602
+ {
603
+ "name": "gstreamer",
604
+ "default-features": false,
605
+ "features": [
606
+ "plugins-good"
607
+ ]
608
+ },
609
+ "libpng"
610
+ ]
611
+ },
612
+ "smoothstreaming": {
613
+ "description": "Enable support for the Microsoft Smooth Streaming format",
614
+ "dependencies": [
615
+ {
616
+ "name": "gstreamer",
617
+ "default-features": false,
618
+ "features": [
619
+ "plugins-bad"
620
+ ]
621
+ },
622
+ "libxml2"
623
+ ]
624
+ },
625
+ "sndfile": {
626
+ "description": "Enable support for the SndFile file reader/writer",
627
+ "dependencies": [
628
+ {
629
+ "name": "gstreamer",
630
+ "default-features": false,
631
+ "features": [
632
+ "plugins-bad"
633
+ ]
634
+ },
635
+ "libsndfile"
636
+ ]
637
+ },
638
+ "soundtouch": {
639
+ "description": "Enable support for the SoundTouch audio processing library",
640
+ "dependencies": [
641
+ {
642
+ "name": "gstreamer",
643
+ "default-features": false,
644
+ "features": [
645
+ "plugins-bad"
646
+ ]
647
+ },
648
+ "soundtouch"
649
+ ]
650
+ },
651
+ "soup": {
652
+ "description": "Enable support for the soup plugin",
653
+ "dependencies": [
654
+ {
655
+ "name": "gstreamer",
656
+ "default-features": false,
657
+ "features": [
658
+ "plugins-good"
659
+ ]
660
+ },
661
+ "libsoup"
662
+ ]
663
+ },
664
+ "speex": {
665
+ "description": "Enable support for the speex codec",
666
+ "dependencies": [
667
+ {
668
+ "name": "gstreamer",
669
+ "default-features": false,
670
+ "features": [
671
+ "plugins-good"
672
+ ]
673
+ },
674
+ "speex"
675
+ ]
676
+ },
677
+ "srt": {
678
+ "description": "Enable support for the SRT protocol",
679
+ "dependencies": [
680
+ {
681
+ "name": "gstreamer",
682
+ "default-features": false,
683
+ "features": [
684
+ "plugins-bad"
685
+ ]
686
+ },
687
+ "libsrt"
688
+ ]
689
+ },
690
+ "srtp": {
691
+ "description": "Enable support for the SRTP protocol",
692
+ "dependencies": [
693
+ {
694
+ "name": "gstreamer",
695
+ "default-features": false,
696
+ "features": [
697
+ "plugins-bad"
698
+ ]
699
+ },
700
+ "libsrtp"
701
+ ]
702
+ },
703
+ "taglib": {
704
+ "description": "Enable support for the taglib library",
705
+ "dependencies": [
706
+ {
707
+ "name": "gstreamer",
708
+ "default-features": false,
709
+ "features": [
710
+ "plugins-good"
711
+ ]
712
+ },
713
+ "taglib"
714
+ ]
715
+ },
716
+ "vorbis": {
717
+ "description": "Enable support for the OggVorbis audio codec",
718
+ "dependencies": [
719
+ {
720
+ "name": "gstreamer",
721
+ "default-features": false,
722
+ "features": [
723
+ "ogg",
724
+ "plugins-base"
725
+ ]
726
+ },
727
+ "libvorbis"
728
+ ]
729
+ },
730
+ "vpx": {
731
+ "description": "Enable support for the VP8 and VP9 codecs",
732
+ "dependencies": [
733
+ {
734
+ "name": "gstreamer",
735
+ "default-features": false,
736
+ "features": [
737
+ "plugins-good"
738
+ ]
739
+ },
740
+ "libvpx"
741
+ ]
742
+ },
743
+ "webp": {
744
+ "description": "Enable support for WebP image format",
745
+ "dependencies": [
746
+ {
747
+ "name": "gstreamer",
748
+ "default-features": false,
749
+ "features": [
750
+ "plugins-bad"
751
+ ]
752
+ },
753
+ "libwebp"
754
+ ]
755
+ },
756
+ "webrtc": {
757
+ "description": "Enable support for WebRTC",
758
+ "dependencies": [
759
+ {
760
+ "name": "gstreamer",
761
+ "default-features": false,
762
+ "features": [
763
+ "plugins-bad"
764
+ ]
765
+ },
766
+ "libnice"
767
+ ]
768
+ },
769
+ "wildmidi": {
770
+ "description": "Enable support for the WildMIDI synthesizer",
771
+ "dependencies": [
772
+ {
773
+ "name": "gstreamer",
774
+ "default-features": false,
775
+ "features": [
776
+ "plugins-bad"
777
+ ]
778
+ },
779
+ "wildmidi"
780
+ ]
781
+ },
782
+ "x11-bad": {
783
+ "description": "Enable support for X11 in bad plugins",
784
+ "supports": "!windows",
785
+ "dependencies": [
786
+ {
787
+ "name": "gstreamer",
788
+ "default-features": false,
789
+ "features": [
790
+ "plugins-bad"
791
+ ]
792
+ },
793
+ "libxkbcommon",
794
+ "xcb"
795
+ ]
796
+ },
797
+ "x11-base": {
798
+ "description": "Enable support for X11 in base plugins",
799
+ "supports": "!windows",
800
+ "dependencies": [
801
+ {
802
+ "name": "gstreamer",
803
+ "default-features": false,
804
+ "features": [
805
+ "plugins-good"
806
+ ]
807
+ },
808
+ "libx11",
809
+ "libxext"
810
+ ]
811
+ },
812
+ "x264": {
813
+ "description": "Enable support for the x264 encoder (GPL license)",
814
+ "dependencies": [
815
+ {
816
+ "name": "gstreamer",
817
+ "default-features": false,
818
+ "features": [
819
+ "gpl",
820
+ "plugins-ugly"
821
+ ]
822
+ },
823
+ "x264"
824
+ ]
825
+ },
826
+ "x265": {
827
+ "description": "Enable support for the x265 encoder (GPL license)",
828
+ "dependencies": [
829
+ {
830
+ "name": "gstreamer",
831
+ "default-features": false,
832
+ "features": [
833
+ "gpl",
834
+ "plugins-bad"
835
+ ]
836
+ },
837
+ "x265"
838
+ ]
839
+ }
840
+ }
841
+ }
cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/copy-from-dmg.cmake ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ find_program(HDIUTIL NAMES hdiutil REQUIRED)
2
+ set(dmg_path "NOTFOUND" CACHE FILEPATH "Where to find the DMG")
3
+ set(output_dir "output_dir" CACHE FILEPATH "Where to put the packages")
4
+
5
+ if(NOT EXISTS "${dmg_path}")
6
+ message(FATAL_ERROR "'dmg_path' (${dmg_path}) does not exist.")
7
+ endif()
8
+ if(NOT IS_DIRECTORY "${output_dir}")
9
+ message(FATAL_ERROR "'output_dir' (${output_dir}) is not a directory.")
10
+ endif()
11
+
12
+ execute_process(
13
+ COMMAND mktemp -d
14
+ RESULT_VARIABLE mktemp_result
15
+ OUTPUT_VARIABLE mount_point
16
+ OUTPUT_STRIP_TRAILING_WHITESPACE
17
+ )
18
+ if(NOT mktemp_result STREQUAL "0")
19
+ message(FATAL_ERROR "mktemp -d failed: ${mktemp_result}")
20
+ elseif(NOT IS_DIRECTORY "${mount_point}")
21
+ message(FATAL_ERROR "'mount_point' (${mount_point}) is not a directory.")
22
+ endif()
23
+
24
+ execute_process(
25
+ COMMAND "${HDIUTIL}" attach "${dmg_path}" -mountpoint "${mount_point}" -readonly
26
+ RESULT_VARIABLE mount_result
27
+ )
28
+ if(mount_result STREQUAL "0")
29
+ set(dmg_packages_dir "${mount_point}/bootstrapper.app/Contents/Resources/packages")
30
+ file(GLOB packages
31
+ "${dmg_packages_dir}/intel.oneapi.mac.mkl.devel,*"
32
+ "${dmg_packages_dir}/intel.oneapi.mac.mkl.runtime,*"
33
+ "${dmg_packages_dir}/intel.oneapi.mac.mkl.product,*"
34
+ "${dmg_packages_dir}/intel.oneapi.mac.openmp,*"
35
+ )
36
+ # Using execute_process to avoid direct errors
37
+ execute_process(
38
+ COMMAND cp -R ${packages} "${output_dir}/"
39
+ RESULT_VARIABLE copy_result
40
+ )
41
+ endif()
42
+ execute_process(
43
+ COMMAND "${HDIUTIL}" detach "${mount_point}"
44
+ RESULT_VARIABLE unmount_result
45
+ )
46
+
47
+ if(NOT mount_result STREQUAL "0")
48
+ message(FATAL_ERROR "Mounting ${dmg_path} failed: ${mount_result}")
49
+ elseif(NOT copy_result STREQUAL "0")
50
+ message(FATAL_ERROR "Coyping packages failed: ${copy_result}")
51
+ elseif(NOT unmount_result STREQUAL "0")
52
+ message(FATAL_ERROR "Unounting ${dmg_path} failed: ${unmount_result}")
53
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/portfile.cmake ADDED
@@ -0,0 +1,254 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This package installs Intel MKL on Linux, macOS and Windows for x64.
2
+ # Configuration:
3
+ # - ilp64
4
+ # - dynamic CRT: intel_thread, static CRT: sequential
5
+
6
+ set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
7
+
8
+ # https://registrationcenter-download.intel.com/akdlm/IRC_NAS/19150/w_onemkl_p_2023.0.0.25930_offline.exe # windows
9
+ # https://registrationcenter-download.intel.com/akdlm/IRC_NAS/19116/m_onemkl_p_2023.0.0.25376_offline.dmg # macos
10
+ # https://registrationcenter-download.intel.com/akdlm/irc_nas/19138/l_onemkl_p_2023.0.0.25398_offline.sh # linux
11
+ set(sha "")
12
+ if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
13
+ # nop
14
+ elseif(VCPKG_TARGET_IS_WINDOWS)
15
+ set(filename w_onemkl_p_2023.0.0.25930_offline.exe)
16
+ set(magic_number 19150)
17
+ set(sha a3eb6b75241a2eccb73ed73035ff111172c55d3fa51f545c7542277a155df84ff72fc826621711153e683f84058e64cb549c030968f9f964531db76ca8a3ed46)
18
+ set(package_infix "win")
19
+ elseif(VCPKG_TARGET_IS_OSX)
20
+ set(filename m_onemkl_p_2023.0.0.25376_offline.dmg)
21
+ set(magic_number 19116)
22
+ set(sha 7b9b8c004054603e6830fb9b9c049d5a4cfc0990c224cb182ac5262ab9f1863775a67491413040e3349c590e2cca58edcfc704db9f3b9f9faa8b5b09022cd2af)
23
+ set(package_infix "mac")
24
+ set(package_libdir "lib")
25
+ set(compiler_libdir "mac/compiler/lib")
26
+ elseif(VCPKG_TARGET_IS_LINUX)
27
+ set(filename l_onemkl_p_2023.0.0.25398_offline.sh)
28
+ set(magic_number 19138)
29
+ set(sha b5f2f464675f0fd969dde2faf2e622b834eb1cc406c4a867148116f6c24ba5c709d98b678840f4a89a1778e12cde0ff70ce2ef59faeef3d3f3aa1d0329c71af1)
30
+ set(package_infix "lin")
31
+ set(package_libdir "lib/intel64")
32
+ set(compiler_libdir "linux/compiler/lib/intel64_lin")
33
+ endif()
34
+
35
+ if(NOT sha)
36
+ message(WARNING "${PORT} is empty for ${TARGET_TRIPLET}.")
37
+ return()
38
+ endif()
39
+
40
+ vcpkg_download_distfile(installer_path
41
+ URLS "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/${magic_number}/${filename}"
42
+ FILENAME "${filename}"
43
+ SHA512 "${sha}"
44
+ )
45
+
46
+ # Note: intel_thread and lp64 are the defaults.
47
+ set(interface "ilp64") # or ilp64; ilp == 64 bit int api
48
+ #https://www.intel.com/content/www/us/en/develop/documentation/onemkl-linux-developer-guide/top/linking-your-application-with-onemkl/linking-in-detail/linking-with-interface-libraries/using-the-ilp64-interface-vs-lp64-interface.html
49
+ if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
50
+ set(threading "intel_thread") #sequential or intel_thread or tbb_thread or pgi_thread
51
+ else()
52
+ set(threading "sequential")
53
+ endif()
54
+ if(threading STREQUAL "intel_thread")
55
+ set(short_thread "iomp")
56
+ else()
57
+ string(SUBSTRING "${threading}" "0" "3" short_thread)
58
+ endif()
59
+ set(main_pc_file "mkl-${VCPKG_LIBRARY_LINKAGE}-${interface}-${short_thread}.pc")
60
+
61
+ # First extraction level: packages (from offline installer)
62
+ set(extract_0_dir "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-extract")
63
+ file(REMOVE_RECURSE "${extract_0_dir}")
64
+ file(MAKE_DIRECTORY "${extract_0_dir}")
65
+
66
+ # Second extraction level: actual files (from packages)
67
+ set(extract_1_dir "${CURRENT_PACKAGES_DIR}/intel-extract")
68
+ file(REMOVE_RECURSE "${extract_1_dir}")
69
+ file(MAKE_DIRECTORY "${extract_1_dir}")
70
+
71
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
72
+
73
+ if(VCPKG_TARGET_IS_WINDOWS)
74
+ vcpkg_find_acquire_program(7Z)
75
+ message(STATUS "Extracting offline installer")
76
+ vcpkg_execute_required_process(
77
+ COMMAND "${7Z}" x "${installer_path}" "-o${extract_0_dir}" "-y" "-bso0" "-bsp0"
78
+ WORKING_DIRECTORY "${extract_0_dir}"
79
+ LOGNAME "extract-${TARGET_TRIPLET}-0"
80
+ )
81
+
82
+ set(packages
83
+ "intel.oneapi.win.mkl.devel,v=2023.0.0-25930/oneapi-mkl-devel-for-installer_p_2023.0.0.25930.msi" # has the required libs.
84
+ "intel.oneapi.win.mkl.runtime,v=2023.0.0-25930/oneapi-mkl-for-installer_p_2023.0.0.25930.msi" # has the required DLLs
85
+ #"intel.oneapi.win.compilers-common-runtime,v=2023.0.0-25922" # SVML
86
+ "intel.oneapi.win.openmp,v=2023.0.0-25922/oneapi-comp-openmp-for-installer_p_2023.0.0.25922.msi" # OpenMP
87
+ #"intel.oneapi.win.tbb.runtime,v=2021.8.0-25874" #TBB
88
+ )
89
+
90
+ foreach(pack IN LISTS packages)
91
+ set(package_path "${extract_0_dir}/packages/${pack}")
92
+ cmake_path(GET pack STEM LAST_ONLY packstem)
93
+ cmake_path(NATIVE_PATH package_path package_path_native)
94
+ vcpkg_execute_required_process(
95
+ COMMAND "${LESSMSI}" x "${package_path_native}"
96
+ WORKING_DIRECTORY "${extract_1_dir}"
97
+ LOGNAME "extract-${TARGET_TRIPLET}-${packstem}"
98
+ )
99
+ file(COPY "${extract_1_dir}/${packstem}/SourceDir/" DESTINATION "${extract_1_dir}")
100
+ file(REMOVE_RECURSE "${extract_1_dir}/${packstem}")
101
+ endforeach()
102
+
103
+ set(mkl_dir "${extract_1_dir}/Intel/Compiler/12.0/mkl/2023.0.0")
104
+ file(COPY "${mkl_dir}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
105
+ # see https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html for linking
106
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
107
+ set(files "mkl_core_dll.lib" "mkl_${threading}_dll.lib" "mkl_intel_${interface}_dll.lib" "mkl_blas95_${interface}.lib" "mkl_lapack95_${interface}.lib") # "mkl_rt.lib" single dynamic lib with dynamic dispatch
108
+ file(COPY "${mkl_dir}/redist/intel64/" DESTINATION "${CURRENT_PACKAGES_DIR}/bin") # Could probably be reduced instead of copying all
109
+ if(NOT VCPKG_BUILD_TYPE)
110
+ file(COPY "${mkl_dir}/redist/intel64/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
111
+ endif()
112
+ else()
113
+ set(files "mkl_core.lib" "mkl_${threading}.lib" "mkl_intel_${interface}.lib" "mkl_blas95_${interface}.lib" "mkl_lapack95_${interface}.lib")
114
+ endif()
115
+ foreach(file IN LISTS files)
116
+ file(COPY "${mkl_dir}/lib/intel64/${file}" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/intel64") # instead of manual-link keep normal structure
117
+ if(NOT VCPKG_BUILD_TYPE)
118
+ file(COPY "${mkl_dir}/lib/intel64/${file}" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/intel64")
119
+ endif()
120
+ endforeach()
121
+ file(COPY_FILE "${mkl_dir}/lib/pkgconfig/${main_pc_file}" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${main_pc_file}")
122
+
123
+ set(compiler_dir "${extract_1_dir}/Intel/Compiler/12.0/compiler/2023.0.0")
124
+ if(threading STREQUAL "intel_thread")
125
+ file(COPY "${compiler_dir}/windows/redist/intel64_win/compiler/" DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
126
+ file(COPY "${compiler_dir}/windows/compiler/lib/intel64_win/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/intel64")
127
+ file(COPY_FILE "${compiler_dir}/lib/pkgconfig/openmp.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libiomp5.pc")
128
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libiomp5.pc" "/windows/compiler/lib/intel64_win/" "/lib/intel64/")
129
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libiomp5.pc" "-I \${includedir}" "-I\"\${includedir}\"")
130
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${main_pc_file}" "openmp" "libiomp5")
131
+ if(NOT VCPKG_BUILD_TYPE)
132
+ file(COPY "${compiler_dir}/windows/redist/intel64_win/compiler/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
133
+ file(COPY "${compiler_dir}/windows/compiler/lib/intel64_win/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/intel64")
134
+ endif()
135
+ endif()
136
+ else()
137
+ message(STATUS "Warning: This port is still a work on progress.
138
+ E.g. it is not correctly filtering the libraries in accordance with
139
+ VCPKG_LIBRARY_LINKAGE. It is using the default threading (Intel OpenMP)
140
+ which is known to segfault when used together with GNU OpenMP.
141
+ ")
142
+
143
+ message(STATUS "Extracting offline installer")
144
+ if(VCPKG_TARGET_IS_LINUX)
145
+ vcpkg_execute_required_process(
146
+ COMMAND "bash" "--verbose" "--noprofile" "${installer_path}" "--extract-only" "--extract-folder" "${extract_0_dir}"
147
+ WORKING_DIRECTORY "${extract_0_dir}"
148
+ LOGNAME "extract-${TARGET_TRIPLET}-0"
149
+ )
150
+ file(RENAME "${extract_0_dir}/l_onemkl_p_2023.0.0.25398_offline/packages" "${extract_0_dir}/packages")
151
+ elseif(VCPKG_TARGET_IS_OSX)
152
+ find_program(HDIUTIL NAMES hdiutil REQUIRED)
153
+ file(MAKE_DIRECTORY "${extract_0_dir}/packages")
154
+ message(STATUS "... Don't interrupt.")
155
+ vcpkg_execute_required_process(
156
+ COMMAND "${CMAKE_COMMAND}" "-Ddmg_path=${installer_path}"
157
+ "-Doutput_dir=${extract_0_dir}/packages"
158
+ "-DHDIUTIL=${HDIUTIL}"
159
+ -P "${CMAKE_CURRENT_LIST_DIR}/copy-from-dmg.cmake"
160
+ WORKING_DIRECTORY "${extract_0_dir}"
161
+ LOGNAME "extract-${TARGET_TRIPLET}-0"
162
+ )
163
+ message(STATUS "... Done.")
164
+ endif()
165
+
166
+ file(GLOB package_path "${extract_0_dir}/packages/intel.oneapi.${package_infix}.mkl.runtime,v=2023.0.0-*")
167
+ cmake_path(GET package_path STEM LAST_ONLY packstem)
168
+ message(STATUS "Extracting ${packstem}")
169
+ vcpkg_execute_required_process(
170
+ COMMAND "${CMAKE_COMMAND}" "-E" "tar" "-xf" "${package_path}/cupPayload.cup"
171
+ "_installdir/mkl/2023.0.0/lib"
172
+ "_installdir/mkl/2023.0.0/licensing"
173
+ WORKING_DIRECTORY "${extract_1_dir}"
174
+ LOGNAME "extract-${TARGET_TRIPLET}-${packstem}"
175
+ )
176
+ file(GLOB package_path "${extract_0_dir}/packages/intel.oneapi.${package_infix}.mkl.devel,v=2023.0.0-*")
177
+ cmake_path(GET package_path STEM LAST_ONLY packstem)
178
+ message(STATUS "Extracting ${packstem}")
179
+ vcpkg_execute_required_process(
180
+ COMMAND "${CMAKE_COMMAND}" "-E" "tar" "-xf" "${package_path}/cupPayload.cup"
181
+ "_installdir/mkl/2023.0.0/bin"
182
+ "_installdir/mkl/2023.0.0/include"
183
+ "_installdir/mkl/2023.0.0/lib"
184
+ WORKING_DIRECTORY "${extract_1_dir}"
185
+ LOGNAME "extract-${TARGET_TRIPLET}-${packstem}"
186
+ )
187
+ file(GLOB package_path "${extract_0_dir}/packages/intel.oneapi.${package_infix}.openmp,v=2023.0.0-*")
188
+ cmake_path(GET package_path STEM LAST_ONLY packstem)
189
+ message(STATUS "Extracting ${packstem}")
190
+ vcpkg_execute_required_process(
191
+ COMMAND "${CMAKE_COMMAND}" "-E" "tar" "-xf" "${package_path}/cupPayload.cup"
192
+ "_installdir/compiler/2023.0.0"
193
+ WORKING_DIRECTORY "${extract_1_dir}"
194
+ LOGNAME "extract-${TARGET_TRIPLET}-${packstem}"
195
+ )
196
+
197
+ set(mkl_dir "${extract_1_dir}/_installdir/mkl/2023.0.0")
198
+ file(COPY "${mkl_dir}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
199
+ file(COPY "${mkl_dir}/${package_libdir}/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/intel64")
200
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
201
+ set(to_remove_suffix .a)
202
+ elseif(VCPKG_TARGET_IS_OSX)
203
+ set(to_remove_suffix .dylib)
204
+ else()
205
+ set(to_remove_suffix .so)
206
+ endif()
207
+ file(GLOB_RECURSE files_to_remove
208
+ "${CURRENT_PACKAGES_DIR}/lib/intel64/*${to_remove_suffix}"
209
+ "${CURRENT_PACKAGES_DIR}/lib/intel64/*${to_remove_suffix}.?"
210
+ )
211
+ file(REMOVE ${files_to_remove})
212
+ file(COPY_FILE "${mkl_dir}/lib/pkgconfig/${main_pc_file}" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${main_pc_file}")
213
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${main_pc_file}" "\${exec_prefix}/${package_libdir}" "\${exec_prefix}/lib/intel64")
214
+
215
+ set(compiler_dir "${extract_1_dir}/_installdir/compiler/2023.0.0")
216
+ if(threading STREQUAL "intel_thread")
217
+ file(COPY "${compiler_dir}/${compiler_libdir}/" DESTINATION "${CURRENT_PACKAGES_DIR}/lib/intel64")
218
+ file(COPY_FILE "${compiler_dir}/lib/pkgconfig/openmp.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libiomp5.pc")
219
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libiomp5.pc" "/${compiler_libdir}/" "/lib/intel64/")
220
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${main_pc_file}" "openmp" "libiomp5")
221
+ endif()
222
+ endif()
223
+
224
+ file(COPY_FILE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${main_pc_file}" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/mkl.pc")
225
+ if(NOT VCPKG_BUILD_TYPE)
226
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
227
+ file(GLOB pc_files RELATIVE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/*.pc")
228
+ foreach(file IN LISTS pc_files)
229
+ file(COPY_FILE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/${file}" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${file}")
230
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${file}" "/include" "/../include")
231
+ if(NOT VCPKG_TARGET_IS_WINDOWS)
232
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/${file}" "/lib/intel64" "/../lib/intel64")
233
+ endif()
234
+ endforeach()
235
+ endif()
236
+
237
+ file(COPY "${mkl_dir}/lib/cmake/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/")
238
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/mkl/MKLConfig.cmake" "MKL_CMAKE_PATH}/../../../" "MKL_CMAKE_PATH}/../../")
239
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/mkl/MKLConfig.cmake" "redist/\${MKL_ARCH}" "bin")
240
+ #TODO: Hardcode settings from portfile in config.cmake
241
+ #TODO: Give lapack/blas information about the correct BLA_VENDOR depending on settings.
242
+
243
+ file(INSTALL "${mkl_dir}/licensing" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
244
+ file(GLOB package_path "${extract_0_dir}/packages/intel.oneapi.${package_infix}.mkl.product,v=2023.0.0-*")
245
+ vcpkg_install_copyright(FILE_LIST "${package_path}/licenses/license.htm")
246
+
247
+ file(REMOVE_RECURSE
248
+ "${extract_0_dir}"
249
+ "${extract_1_dir}"
250
+ "${CURRENT_PACKAGES_DIR}/lib/intel64/cmake"
251
+ "${CURRENT_PACKAGES_DIR}/lib/intel64/pkgconfig"
252
+ )
253
+
254
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ intel-mkl provides CMake targets:
2
+
3
+ find_package(MKL CONFIG REQUIRED)
4
+ target_link_libraries(main PRIVATE MKL::MKL)
cc-multilingual-main/cc_net/vcpkg/ports/intel-mkl/vcpkg.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "intel-mkl",
3
+ "version": "2023.0.0",
4
+ "port-version": 3,
5
+ "description": "Intel® Math Kernel Library (Intel® MKL) accelerates math processing routines, increases application performance, and reduces development time on Intel® processors.",
6
+ "homepage": "https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl.html",
7
+ "license": null,
8
+ "supports": "(windows | linux | osx) & x64",
9
+ "dependencies": [
10
+ {
11
+ "name": "vcpkg-tool-lessmsi",
12
+ "host": true,
13
+ "platform": "windows"
14
+ }
15
+ ]
16
+ }
cc-multilingual-main/cc_net/vcpkg/ports/kinectsdk1/Config.cmake.in ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ get_filename_component(_kinectsdk1_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
3
+ get_filename_component(_kinectsdk1_root "${_kinectsdk1_root}" PATH)
4
+ get_filename_component(_kinectsdk1_root "${_kinectsdk1_root}" PATH)
5
+
6
+ set(_kinectsdk1_rel_lib "${_kinectsdk1_root}/lib/Kinect10.lib")
7
+ set(_kinectsdk1_dbg_lib "${_kinectsdk1_root}/debug/lib/Kinect10.lib")
8
+ if (EXISTS "${_kinectsdk1_rel_lib}" OR EXISTS "${_kinectsdk1_dbg_lib}")
9
+
10
+ add_library(unofficial::kinectsdk1::kinectsdk1 INTERFACE IMPORTED)
11
+ set_target_properties(unofficial::kinectsdk1::kinectsdk1 PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${_kinectsdk1_root}/include")
12
+
13
+ if (EXISTS "${_kinectsdk1_rel_lib}")
14
+ set_target_properties(unofficial::kinectsdk1::kinectsdk1
15
+ PROPERTIES IMPORTED_LOCATION_RELEASE "${_kinectsdk1_rel_lib}")
16
+ set_property(TARGET unofficial::kinectsdk1::kinectsdk1 APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
17
+ endif()
18
+ if (EXISTS "${_kinectsdk1_dbg_lib}")
19
+ set_target_properties(unofficial::kinectsdk1::kinectsdk1
20
+ PROPERTIES IMPORTED_LOCATION_DEBUG "${_kinectsdk1_dbg_lib}")
21
+ set_property(TARGET unofficial::kinectsdk1::kinectsdk1 APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
22
+ endif()
23
+
24
+ else()
25
+
26
+ set(kinectsdk1_FOUND FALSE)
27
+
28
+ endif()
29
+
30
+ unset(_kinectsdk1_rel_lib)
31
+ unset(_kinectsdk1_dbg_lib)
32
+
33
+ unset(_kinectsdk1_root)
cc-multilingual-main/cc_net/vcpkg/ports/kinectsdk1/portfile.cmake ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(KINECTSDK10_VERSION "v1.8")
2
+
3
+ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
4
+ set(ARCHITECTURE x86)
5
+ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
6
+ set(ARCHITECTURE amd64)
7
+ else()
8
+ message(FATAL_ERROR "This port does not currently support architecture: ${VCPKG_TARGET_ARCHITECTURE}")
9
+ endif()
10
+
11
+ vcpkg_download_distfile(KINECTSDK10_INSTALLER
12
+ URLS "https://download.microsoft.com/download/E/1/D/E1DEC243-0389-4A23-87BF-F47DE869FC1A/KinectSDK-${KINECTSDK10_VERSION}-Setup.exe"
13
+ FILENAME "KinectSDK-${KINECTSDK10_VERSION}-Setup.exe"
14
+ SHA512 d7e886d639b4310addc7c1350311f81289ffbcd653237882da7bf3d4074281ed35d217cb8be101579cac880c574dd89c62cd6a87772d60905c446d0be5fd1932
15
+ )
16
+
17
+ vcpkg_find_acquire_program(DARK)
18
+
19
+ set(KINECTSDK10_WIX_INSTALLER "${KINECTSDK10_INSTALLER}")
20
+ set(KINECTSDK10_WIX_EXTRACT_DIR "${CURRENT_BUILDTREES_DIR}/src/installer/wix")
21
+ vcpkg_execute_required_process(
22
+ COMMAND "${DARK}" -x "${KINECTSDK10_WIX_EXTRACT_DIR}" "${KINECTSDK10_WIX_INSTALLER}"
23
+ WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}
24
+ LOGNAME extract-wix-${TARGET_TRIPLET}
25
+ )
26
+
27
+ file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/src/KinectSDK-${KINECTSDK10_VERSION}-${VCPKG_TARGET_ARCHITECTURE}")
28
+ set(KINECTSDK10_MSI_INSTALLER "installer\\wix\\AttachedContainer\\KinectSDK-${KINECTSDK10_VERSION}-${VCPKG_TARGET_ARCHITECTURE}.msi")
29
+ vcpkg_execute_required_process(
30
+ COMMAND
31
+ "${LESSMSI}"
32
+ x
33
+ "${KINECTSDK10_MSI_INSTALLER}"
34
+ WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/src"
35
+ LOGNAME extract-msi-${TARGET_TRIPLET}
36
+ )
37
+ set(KINECTSDK10_DIR "${CURRENT_BUILDTREES_DIR}/src/KinectSDK-${KINECTSDK10_VERSION}-${VCPKG_TARGET_ARCHITECTURE}/SourceDir/Microsoft SDKs/Kinect/${KINECTSDK10_VERSION}")
38
+
39
+ file(
40
+ INSTALL
41
+ "${KINECTSDK10_DIR}/inc/NuiApi.h"
42
+ "${KINECTSDK10_DIR}/inc/NuiImageCamera.h"
43
+ "${KINECTSDK10_DIR}/inc/NuiSensor.h"
44
+ "${KINECTSDK10_DIR}/inc/NuiSkeleton.h"
45
+ DESTINATION
46
+ "${CURRENT_PACKAGES_DIR}/include"
47
+ )
48
+
49
+ file(
50
+ INSTALL
51
+ "${KINECTSDK10_DIR}/lib/${ARCHITECTURE}/Kinect10.lib"
52
+ DESTINATION
53
+ "${CURRENT_PACKAGES_DIR}/lib"
54
+ )
55
+
56
+ file(
57
+ INSTALL
58
+ "${KINECTSDK10_DIR}/lib/${ARCHITECTURE}/Kinect10.lib"
59
+ DESTINATION
60
+ "${CURRENT_PACKAGES_DIR}/debug/lib"
61
+ )
62
+
63
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}/unofficial-${PORT}-config.cmake" @ONLY)
64
+
65
+ # Handle copyright
66
+ file(INSTALL "${KINECTSDK10_DIR}/SDKEula.rtf" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/kinectsdk1/vcpkg.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "kinectsdk1",
3
+ "version": "1.8",
4
+ "port-version": 8,
5
+ "description": "Kinect for Windows SDK for Kinect v1 sensor.",
6
+ "license": null,
7
+ "supports": "!arm & windows & !uwp & !xbox",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-tool-lessmsi",
11
+ "host": true,
12
+ "version>=": "1.10.0#1"
13
+ }
14
+ ]
15
+ }
cc-multilingual-main/cc_net/vcpkg/ports/libcsv/Makefile.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/Makefile.am b/Makefile.am
2
+ index 79a3527..619a253 100644
3
+ --- a/Makefile.am
4
+ +++ b/Makefile.am
5
+ @@ -1,7 +1,7 @@
6
+ lib_LTLIBRARIES = libcsv.la
7
+ libcsv_la_SOURCES = libcsv.c
8
+ libcsv_la_LDFLAGS = -version-info 3:3:0
9
+ - libcsv_la_CFLAGS = -Wall -Wextra
10
+ + libcsv_la_CFLAGS = -Wall
11
+ libcsv_includedir = $(includedir)
12
+ nobase_libcsv_include_HEADERS = csv.h
13
+ dist_man_MANS = csv.3
cc-multilingual-main/cc_net/vcpkg/ports/libcsv/portfile.cmake ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO rgamble/libcsv
6
+ REF b1d5212831842ee5869d99bc208a21837e4037d5 # v3.0.3
7
+ SHA512 2e6ea0b68768d502e9bdb3bb801a1eb64b7fb0010a5006dec1b36a0fe705ec717560ec91f586572654c015db1f0d3a6e804dbcaa666a419192e93820b2c5e891
8
+ HEAD_REF master
9
+ PATCHES
10
+ Makefile.patch
11
+ )
12
+
13
+ vcpkg_configure_make(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ AUTOCONFIG
16
+ )
17
+
18
+ vcpkg_install_make()
19
+
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
21
+ file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libcsv" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/libcsv/vcpkg.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libcsv",
3
+ "version": "3.0.3",
4
+ "port-version": 1,
5
+ "description": "CSV parser and writer library",
6
+ "homepage": "https://github.com/rgamble/libcsv",
7
+ "license": "GPL-2.0-or-later",
8
+ "supports": "!xbox"
9
+ }
cc-multilingual-main/cc_net/vcpkg/ports/lzokay/portfile.cmake ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO jackoalan/lzokay
6
+ REF 546a9695271e8a8b4711383f828172754fd825f2
7
+ SHA512 b4e96183ea52dc5ba0d88b4b9b27baa2c3e2c540b1bfd50cf7a3c2569337fbe9d73dd9939cb456d5f7459df8e10d84677d40ee33f7d524f0f5f8a723d7a70583
8
+ HEAD_REF master
9
+ )
10
+
11
+ vcpkg_cmake_configure(
12
+ SOURCE_PATH "${SOURCE_PATH}"
13
+ )
14
+
15
+ vcpkg_cmake_install()
16
+ vcpkg_copy_pdbs()
17
+
18
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
19
+
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
21
+
22
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/lzokay/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "lzokay",
3
+ "version-date": "2020-07-30",
4
+ "port-version": 2,
5
+ "description": "lzokay – MIT licensed C++ implementation of LZO compression/decompression algorithm",
6
+ "homepage": "https://github.com/jackoalan/lzokay",
7
+ "dependencies": [
8
+ {
9
+ "name": "vcpkg-cmake",
10
+ "host": true
11
+ },
12
+ {
13
+ "name": "vcpkg-cmake-config",
14
+ "host": true
15
+ }
16
+ ]
17
+ }
cc-multilingual-main/cc_net/vcpkg/ports/openxr-loader/fix-jinja2.patch ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ From d80c7dc3f4810fc49e4444590d39ef71e8a9b01c Mon Sep 17 00:00:00 2001
2
+ From: Adam Johnson <[email protected]>
3
+ Date: Sat, 19 Feb 2022 19:42:31 -0500
4
+ Subject: [PATCH] Fix bad import in jinja2
5
+
6
+ ---
7
+ external/python/jinja2/utils.py | 6 +++++-
8
+ 1 file changed, 5 insertions(+), 1 deletion(-)
9
+
10
+ diff --git a/external/python/jinja2/utils.py b/external/python/jinja2/utils.py
11
+ index db9c5d06..f198e3ef 100644
12
+ --- a/external/python/jinja2/utils.py
13
+ +++ b/external/python/jinja2/utils.py
14
+ @@ -639,4 +639,8 @@ def __repr__(self):
15
+
16
+
17
+ # Imported here because that's where it was in the past
18
+ -from markupsafe import Markup, escape, soft_unicode
19
+ +from markupsafe import Markup, escape
20
+ +try:
21
+ + from markupsafe import soft_unicode
22
+ +except ImportError:
23
+ + from markupsafe import soft_str as soft_unicode
cc-multilingual-main/cc_net/vcpkg/ports/openxr-loader/fix-openxr-sdk-jsoncpp.patch ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index c75b145..386494c 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -89,7 +89,7 @@ if(NOT VULKAN_INCOMPATIBLE)
6
+ endif()
7
+
8
+ find_package(Threads REQUIRED)
9
+ -find_package(JsonCpp)
10
+ +find_package(jsoncpp CONFIG REQUIRED)
11
+
12
+ ### All options defined here
13
+ option(BUILD_LOADER "Build loader" ON)
14
+ diff --git a/src/loader/CMakeLists.txt b/src/loader/CMakeLists.txt
15
+ index 6a88cf4..0821a3d 100644
16
+ --- a/src/loader/CMakeLists.txt
17
+ +++ b/src/loader/CMakeLists.txt
18
+ @@ -68,7 +68,11 @@ add_library(openxr_loader ${LIBRARY_TYPE}
19
+ ${openxr_loader_RESOURCE_FILE}
20
+ )
21
+ if(BUILD_WITH_SYSTEM_JSONCPP)
22
+ - target_link_libraries(openxr_loader PRIVATE JsonCpp::JsonCpp)
23
+ + if(BUILD_SHARED_LIBS)
24
+ + target_link_libraries(openxr_loader PRIVATE jsoncpp_lib)
25
+ + else()
26
+ + target_link_libraries(openxr_loader PRIVATE jsoncpp_static)
27
+ + endif()
28
+ else()
29
+ target_sources(openxr_loader
30
+ PRIVATE
cc-multilingual-main/cc_net/vcpkg/ports/openxr-loader/portfile.cmake ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO KhronosGroup/OpenXR-SDK
5
+ REF "release-${VERSION}"
6
+ SHA512 6efc7596e707f95366dbcdbac9bd7d0c20735a2175b4edf56a9e8a112cf0ab8b664069fe942313164a37119032ddbf5671bc88ab5f276005dd36e4a4dabba1c7
7
+ HEAD_REF master
8
+ PATCHES
9
+ fix-openxr-sdk-jsoncpp.patch
10
+ )
11
+
12
+ vcpkg_from_github(
13
+ OUT_SOURCE_PATH SDK_SOURCE_PATH
14
+ REPO KhronosGroup/OpenXR-SDK-Source
15
+ REF "release-${VERSION}"
16
+ SHA512 04bdb0f16078209b5edd175a3396f70e1ceb8cfa382c65b8fda388e565480e3844daf68e0d987e72ed8c21d3148af0b41a2170911ec1660565887e0e5ae6d2bf
17
+ HEAD_REF master
18
+ PATCHES
19
+ fix-openxr-sdk-jsoncpp.patch
20
+ fix-jinja2.patch
21
+ )
22
+
23
+ vcpkg_from_github(
24
+ OUT_SOURCE_PATH HPP_SOURCE_PATH
25
+ REPO KhronosGroup/OpenXR-hpp
26
+ REF 63db9919822f8af6f7bf7416ba6a015d4617202e
27
+ SHA512 9e768f485d1631f8e74f35f028a64e2d64e33d362c53ae1c54427a10786e3befdd24089927319aa1a4b4c3e010247bd6cb3394bcee460c467c637ab6bc7bec90
28
+ HEAD_REF master
29
+ PATCHES
30
+ python3_8_compatibility.patch
31
+ )
32
+
33
+ # Weird behavior inside the OpenXR loader. On Windows they force shared libraries to use static crt, and
34
+ # vice-versa. Might be better in future iterations to patch the CMakeLists.txt for OpenXR
35
+ if (VCPKG_TARGET_IS_UWP OR VCPKG_TARGET_IS_WINDOWS)
36
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
37
+ set(DYNAMIC_LOADER OFF)
38
+ set(VCPKG_CRT_LINKAGE dynamic)
39
+ else()
40
+ set(DYNAMIC_LOADER ON)
41
+ set(VCPKG_CRT_LINKAGE static)
42
+ endif()
43
+ endif()
44
+
45
+ vcpkg_find_acquire_program(PYTHON3)
46
+
47
+ vcpkg_cmake_configure(
48
+ SOURCE_PATH "${SOURCE_PATH}"
49
+ OPTIONS
50
+ -DBUILD_API_LAYERS=OFF
51
+ -DBUILD_TESTS=OFF
52
+ -DBUILD_CONFORMANCE_TESTS=OFF
53
+ -DDYNAMIC_LOADER=${DYNAMIC_LOADER}
54
+ -DPYTHON_EXECUTABLE="${PYTHON3}"
55
+ -DBUILD_WITH_SYSTEM_JSONCPP=ON
56
+ )
57
+
58
+ vcpkg_cmake_install()
59
+
60
+ # Generate the OpenXR C++ bindings
61
+ set(ENV{OPENXR_REPO} "${SDK_SOURCE_PATH}")
62
+ vcpkg_execute_required_process(
63
+ COMMAND ${PYTHON3} "${HPP_SOURCE_PATH}/scripts/hpp_genxr.py" -quiet -registry "${SDK_SOURCE_PATH}/specification/registry/xr.xml" -o "${CURRENT_PACKAGES_DIR}/include/openxr"
64
+ WORKING_DIRECTORY "${HPP_SOURCE_PATH}"
65
+ LOGNAME "openxr-hpp"
66
+ )
67
+
68
+ if(VCPKG_TARGET_IS_WINDOWS)
69
+ vcpkg_cmake_config_fixup(PACKAGE_NAME OpenXR CONFIG_PATH cmake)
70
+ else()
71
+ vcpkg_cmake_config_fixup(PACKAGE_NAME OpenXR CONFIG_PATH lib/cmake/openxr)
72
+ endif()
73
+
74
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
75
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
76
+
77
+ vcpkg_fixup_pkgconfig()
78
+ vcpkg_copy_pdbs()
79
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)