Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/CMakeLists.txt +278 -0
- cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/fix-conflict-macro.patch +123 -0
- cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/portfile.cmake +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/better-enums/portfile.cmake +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/better-enums/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-convert/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-regex/b2-options.cmake +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-regex/portfile.cmake +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-regex/vcpkg.json +84 -0
- cc-multilingual-main/cc_net/vcpkg/ports/brunocodutra-metal/portfile.cmake +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cpp-jwt/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cpp-jwt/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dataframe/portfile.cmake +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dataframe/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/entt/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/entt/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/entt/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/0003-Fix-UWP.patch +65 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/brotli-static.patch +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/bzip2.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/fix-exports.patch +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/portfile.cmake +90 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/vcpkg-cmake-wrapper.cmake +95 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freetype/vcpkg.json +52 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ignition-plugin1/portfile.cmake +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ignition-plugin1/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kcp/portfile.cmake +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kcp/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5config/portfile.cmake +50 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5config/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5itemmodels/portfile.cmake +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5itemmodels/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5plotting/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5plotting/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libice/portfile.cmake +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libleidenalg/portfile.cmake +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libleidenalg/vcpkg.json +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libopenmpt/CMakeLists.txt +97 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libopenmpt/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libopenmpt/vcpkg.json +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libqrencode/portfile.cmake +59 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libqrencode/usage +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libqrencode/vcpkg.json +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsync/portfile.cmake +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsync/vcpkg.json +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librtmp/handshake.patch +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librtmp/hashswf.patch +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librtmp/portfile.cmake +29 -0
cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/CMakeLists.txt
ADDED
@@ -0,0 +1,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(berkeleydb C CXX)
|
3 |
+
|
4 |
+
option(INSTALL_HEADERS "Install header files" ON)
|
5 |
+
|
6 |
+
add_definitions(
|
7 |
+
-DWIN32
|
8 |
+
-D_WINDOWS
|
9 |
+
-D_CRT_SECURE_NO_DEPRECATE
|
10 |
+
-D_CRT_NONSTDC_NO_DEPRECATE
|
11 |
+
-D_LIB
|
12 |
+
-DUNICODE
|
13 |
+
-D_UNICODE
|
14 |
+
)
|
15 |
+
|
16 |
+
if (BUILD_SHARED_LIBS)
|
17 |
+
add_definitions(
|
18 |
+
-DDB_CREATE_DLL
|
19 |
+
-D_USRDLL
|
20 |
+
)
|
21 |
+
else()
|
22 |
+
add_definitions(
|
23 |
+
-D_LIB
|
24 |
+
)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
add_library(libdb48
|
28 |
+
btree/bt_compact.c
|
29 |
+
btree/bt_compare.c
|
30 |
+
btree/bt_compress.c
|
31 |
+
btree/bt_conv.c
|
32 |
+
btree/bt_curadj.c
|
33 |
+
btree/bt_cursor.c
|
34 |
+
btree/bt_delete.c
|
35 |
+
btree/bt_method.c
|
36 |
+
btree/bt_open.c
|
37 |
+
btree/bt_put.c
|
38 |
+
btree/bt_rec.c
|
39 |
+
btree/bt_reclaim.c
|
40 |
+
btree/bt_recno.c
|
41 |
+
btree/bt_rsearch.c
|
42 |
+
btree/bt_search.c
|
43 |
+
btree/bt_split.c
|
44 |
+
btree/bt_stat.c
|
45 |
+
btree/bt_upgrade.c
|
46 |
+
btree/bt_verify.c
|
47 |
+
btree/btree_auto.c
|
48 |
+
db/crdel_auto.c
|
49 |
+
db/crdel_rec.c
|
50 |
+
common/crypto_stub.c
|
51 |
+
cxx/cxx_db.cpp
|
52 |
+
cxx/cxx_dbc.cpp
|
53 |
+
cxx/cxx_dbt.cpp
|
54 |
+
cxx/cxx_env.cpp
|
55 |
+
cxx/cxx_except.cpp
|
56 |
+
cxx/cxx_lock.cpp
|
57 |
+
cxx/cxx_logc.cpp
|
58 |
+
cxx/cxx_mpool.cpp
|
59 |
+
cxx/cxx_multi.cpp
|
60 |
+
cxx/cxx_seq.cpp
|
61 |
+
cxx/cxx_txn.cpp
|
62 |
+
db/db.c
|
63 |
+
db/db_am.c
|
64 |
+
db/db_auto.c
|
65 |
+
common/db_byteorder.c
|
66 |
+
db/db_cam.c
|
67 |
+
db/db_cds.c
|
68 |
+
db/db_conv.c
|
69 |
+
db/db_dispatch.c
|
70 |
+
db/db_dup.c
|
71 |
+
common/db_err.c
|
72 |
+
common/db_getlong.c
|
73 |
+
common/db_idspace.c
|
74 |
+
common/db_compint.c
|
75 |
+
db/db_iface.c
|
76 |
+
db/db_join.c
|
77 |
+
common/db_log2.c
|
78 |
+
db/db_meta.c
|
79 |
+
db/db_method.c
|
80 |
+
db/db_open.c
|
81 |
+
db/db_overflow.c
|
82 |
+
db/db_ovfl_vrfy.c
|
83 |
+
db/db_pr.c
|
84 |
+
db/db_rec.c
|
85 |
+
db/db_reclaim.c
|
86 |
+
db/db_remove.c
|
87 |
+
db/db_rename.c
|
88 |
+
db/db_ret.c
|
89 |
+
db/db_setid.c
|
90 |
+
db/db_setlsn.c
|
91 |
+
common/db_shash.c
|
92 |
+
db/db_sort_multiple.c
|
93 |
+
db/db_stati.c
|
94 |
+
db/db_truncate.c
|
95 |
+
db/db_upg.c
|
96 |
+
db/db_upg_opd.c
|
97 |
+
db/db_vrfy.c
|
98 |
+
db/db_vrfyutil.c
|
99 |
+
db/partition.c
|
100 |
+
dbm/dbm.c
|
101 |
+
dbreg/dbreg.c
|
102 |
+
dbreg/dbreg_auto.c
|
103 |
+
dbreg/dbreg_rec.c
|
104 |
+
dbreg/dbreg_stat.c
|
105 |
+
dbreg/dbreg_util.c
|
106 |
+
common/dbt.c
|
107 |
+
env/env_alloc.c
|
108 |
+
env/env_config.c
|
109 |
+
env/env_failchk.c
|
110 |
+
env/env_file.c
|
111 |
+
env/env_globals.c
|
112 |
+
env/env_method.c
|
113 |
+
env/env_name.c
|
114 |
+
env/env_open.c
|
115 |
+
env/env_recover.c
|
116 |
+
env/env_region.c
|
117 |
+
env/env_register.c
|
118 |
+
env/env_sig.c
|
119 |
+
env/env_stat.c
|
120 |
+
fileops/fileops_auto.c
|
121 |
+
fileops/fop_basic.c
|
122 |
+
fileops/fop_rec.c
|
123 |
+
fileops/fop_util.c
|
124 |
+
hash/hash.c
|
125 |
+
hash/hash_auto.c
|
126 |
+
hash/hash_conv.c
|
127 |
+
hash/hash_dup.c
|
128 |
+
hash/hash_func.c
|
129 |
+
hash/hash_meta.c
|
130 |
+
hash/hash_method.c
|
131 |
+
hash/hash_open.c
|
132 |
+
hash/hash_page.c
|
133 |
+
hash/hash_rec.c
|
134 |
+
hash/hash_reclaim.c
|
135 |
+
hash/hash_stat.c
|
136 |
+
hash/hash_upgrade.c
|
137 |
+
hash/hash_verify.c
|
138 |
+
hmac/hmac.c
|
139 |
+
hsearch/hsearch.c
|
140 |
+
build_windows/libdb.def
|
141 |
+
lock/lock.c
|
142 |
+
lock/lock_deadlock.c
|
143 |
+
lock/lock_failchk.c
|
144 |
+
lock/lock_id.c
|
145 |
+
lock/lock_list.c
|
146 |
+
lock/lock_method.c
|
147 |
+
lock/lock_region.c
|
148 |
+
lock/lock_stat.c
|
149 |
+
lock/lock_timer.c
|
150 |
+
lock/lock_util.c
|
151 |
+
log/log.c
|
152 |
+
log/log_archive.c
|
153 |
+
log/log_compare.c
|
154 |
+
log/log_debug.c
|
155 |
+
log/log_get.c
|
156 |
+
log/log_method.c
|
157 |
+
log/log_put.c
|
158 |
+
log/log_stat.c
|
159 |
+
common/mkpath.c
|
160 |
+
mp/mp_alloc.c
|
161 |
+
mp/mp_bh.c
|
162 |
+
mp/mp_fget.c
|
163 |
+
mp/mp_fmethod.c
|
164 |
+
mp/mp_fopen.c
|
165 |
+
mp/mp_fput.c
|
166 |
+
mp/mp_fset.c
|
167 |
+
mp/mp_method.c
|
168 |
+
mp/mp_mvcc.c
|
169 |
+
mp/mp_region.c
|
170 |
+
mp/mp_register.c
|
171 |
+
mp/mp_resize.c
|
172 |
+
mp/mp_stat.c
|
173 |
+
mp/mp_sync.c
|
174 |
+
mp/mp_trickle.c
|
175 |
+
mutex/mut_alloc.c
|
176 |
+
mutex/mut_failchk.c
|
177 |
+
mutex/mut_method.c
|
178 |
+
mutex/mut_region.c
|
179 |
+
mutex/mut_stat.c
|
180 |
+
mutex/mut_win32.c
|
181 |
+
common/openflags.c
|
182 |
+
os/os_abort.c
|
183 |
+
os/os_addrinfo.c
|
184 |
+
os_windows/os_abs.c
|
185 |
+
os/os_alloc.c
|
186 |
+
os_windows/os_clock.c
|
187 |
+
os_windows/os_config.c
|
188 |
+
os_windows/os_cpu.c
|
189 |
+
os/os_ctime.c
|
190 |
+
os_windows/os_dir.c
|
191 |
+
os_windows/os_errno.c
|
192 |
+
os_windows/os_fid.c
|
193 |
+
os_windows/os_flock.c
|
194 |
+
os_windows/os_fsync.c
|
195 |
+
os_windows/os_getenv.c
|
196 |
+
os_windows/os_handle.c
|
197 |
+
os_windows/os_map.c
|
198 |
+
os_windows/os_mkdir.c
|
199 |
+
os_windows/os_open.c
|
200 |
+
os/os_pid.c
|
201 |
+
os_windows/os_rename.c
|
202 |
+
os/os_root.c
|
203 |
+
os/os_rpath.c
|
204 |
+
os_windows/os_rw.c
|
205 |
+
os_windows/os_seek.c
|
206 |
+
os/os_stack.c
|
207 |
+
os_windows/os_stat.c
|
208 |
+
os/os_tmpdir.c
|
209 |
+
os_windows/os_truncate.c
|
210 |
+
os/os_uid.c
|
211 |
+
os_windows/os_unlink.c
|
212 |
+
os_windows/os_yield.c
|
213 |
+
qam/qam.c
|
214 |
+
qam/qam_auto.c
|
215 |
+
qam/qam_conv.c
|
216 |
+
qam/qam_files.c
|
217 |
+
qam/qam_method.c
|
218 |
+
qam/qam_open.c
|
219 |
+
qam/qam_rec.c
|
220 |
+
qam/qam_stat.c
|
221 |
+
qam/qam_upgrade.c
|
222 |
+
qam/qam_verify.c
|
223 |
+
rep/rep_auto.c
|
224 |
+
rep/rep_backup.c
|
225 |
+
rep/rep_elect.c
|
226 |
+
rep/rep_lease.c
|
227 |
+
rep/rep_log.c
|
228 |
+
rep/rep_method.c
|
229 |
+
rep/rep_record.c
|
230 |
+
rep/rep_region.c
|
231 |
+
rep/rep_stat.c
|
232 |
+
rep/rep_util.c
|
233 |
+
rep/rep_verify.c
|
234 |
+
repmgr/repmgr_auto.c
|
235 |
+
repmgr/repmgr_elect.c
|
236 |
+
repmgr/repmgr_method.c
|
237 |
+
repmgr/repmgr_msg.c
|
238 |
+
repmgr/repmgr_net.c
|
239 |
+
repmgr/repmgr_queue.c
|
240 |
+
repmgr/repmgr_sel.c
|
241 |
+
repmgr/repmgr_stat.c
|
242 |
+
repmgr/repmgr_util.c
|
243 |
+
repmgr/repmgr_windows.c
|
244 |
+
sequence/seq_stat.c
|
245 |
+
sequence/sequence.c
|
246 |
+
hmac/sha1.c
|
247 |
+
clib/strsep.c
|
248 |
+
txn/txn.c
|
249 |
+
txn/txn_auto.c
|
250 |
+
txn/txn_chkpt.c
|
251 |
+
txn/txn_failchk.c
|
252 |
+
txn/txn_method.c
|
253 |
+
txn/txn_rec.c
|
254 |
+
txn/txn_recover.c
|
255 |
+
txn/txn_region.c
|
256 |
+
txn/txn_stat.c
|
257 |
+
txn/txn_util.c
|
258 |
+
common/os_method.c
|
259 |
+
common/util_cache.c
|
260 |
+
common/util_log.c
|
261 |
+
common/util_sig.c
|
262 |
+
common/zerofill.c
|
263 |
+
)
|
264 |
+
|
265 |
+
include_directories(${CMAKE_CURRENT_SOURCE_DIR} build_windows dbinc)
|
266 |
+
|
267 |
+
target_link_libraries(libdb48 PUBLIC ws2_32.lib)
|
268 |
+
|
269 |
+
install(TARGETS libdb48
|
270 |
+
RUNTIME DESTINATION bin
|
271 |
+
ARCHIVE DESTINATION lib
|
272 |
+
LIBRARY DESTINATION lib
|
273 |
+
)
|
274 |
+
|
275 |
+
if(INSTALL_HEADERS)
|
276 |
+
file(GLOB HEADERS build_windows/*.h)
|
277 |
+
install(FILES ${HEADERS} DESTINATION include)
|
278 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/fix-conflict-macro.patch
ADDED
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/dbinc/atomic.h b/dbinc/atomic.h
|
2 |
+
index 0034dcc..2dd5e03 100644
|
3 |
+
--- a/dbinc/atomic.h
|
4 |
+
+++ b/dbinc/atomic.h
|
5 |
+
@@ -70,7 +70,7 @@ typedef struct {
|
6 |
+
* These have no memory barriers; the caller must include them when necessary.
|
7 |
+
*/
|
8 |
+
#define atomic_read(p) ((p)->value)
|
9 |
+
-#define atomic_init(p, val) ((p)->value = (val))
|
10 |
+
+#define bdb_atomic_init(p, val) ((p)->value = (val))
|
11 |
+
|
12 |
+
#ifdef HAVE_ATOMIC_SUPPORT
|
13 |
+
|
14 |
+
@@ -206,7 +206,7 @@ static inline int __atomic_compare_exchange(
|
15 |
+
#define atomic_dec(env, p) (--(p)->value)
|
16 |
+
#define atomic_compare_exchange(env, p, oldval, newval) \
|
17 |
+
(DB_ASSERT(env, atomic_read(p) == (oldval)), \
|
18 |
+
- atomic_init(p, (newval)), 1)
|
19 |
+
+ bdb_atomic_init(p, (newval)), 1)
|
20 |
+
#else
|
21 |
+
#define atomic_inc(env, p) __atomic_inc(env, p)
|
22 |
+
#define atomic_dec(env, p) __atomic_dec(env, p)
|
23 |
+
diff --git a/mp/mp_fget.c b/mp/mp_fget.c
|
24 |
+
index 5fdee5a..452ef17 100644
|
25 |
+
--- a/mp/mp_fget.c
|
26 |
+
+++ b/mp/mp_fget.c
|
27 |
+
@@ -617,7 +617,7 @@ alloc: /* Allocate a new buffer header and data space. */
|
28 |
+
|
29 |
+
/* Initialize enough so we can call __memp_bhfree. */
|
30 |
+
alloc_bhp->flags = 0;
|
31 |
+
- atomic_init(&alloc_bhp->ref, 1);
|
32 |
+
+ bdb_atomic_init(&alloc_bhp->ref, 1);
|
33 |
+
#ifdef DIAGNOSTIC
|
34 |
+
if ((uintptr_t)alloc_bhp->buf & (sizeof(size_t) - 1)) {
|
35 |
+
__db_errx(env,
|
36 |
+
@@ -911,7 +911,7 @@ alloc: /* Allocate a new buffer header and data space. */
|
37 |
+
MVCC_MPROTECT(bhp->buf, mfp->stat.st_pagesize,
|
38 |
+
PROT_READ);
|
39 |
+
|
40 |
+
- atomic_init(&alloc_bhp->ref, 1);
|
41 |
+
+ bdb_atomic_init(&alloc_bhp->ref, 1);
|
42 |
+
MUTEX_LOCK(env, alloc_bhp->mtx_buf);
|
43 |
+
alloc_bhp->priority = bhp->priority;
|
44 |
+
alloc_bhp->pgno = bhp->pgno;
|
45 |
+
diff --git a/mp/mp_mvcc.c b/mp/mp_mvcc.c
|
46 |
+
index 34467d2..b604388 100644
|
47 |
+
--- a/mp/mp_mvcc.c
|
48 |
+
+++ b/mp/mp_mvcc.c
|
49 |
+
@@ -276,7 +276,7 @@ __memp_bh_freeze(dbmp, infop, hp, bhp, need_frozenp)
|
50 |
+
#else
|
51 |
+
memcpy(frozen_bhp, bhp, SSZA(BH, buf));
|
52 |
+
#endif
|
53 |
+
- atomic_init(&frozen_bhp->ref, 0);
|
54 |
+
+ bdb_atomic_init(&frozen_bhp->ref, 0);
|
55 |
+
if (mutex != MUTEX_INVALID)
|
56 |
+
frozen_bhp->mtx_buf = mutex;
|
57 |
+
else if ((ret = __mutex_alloc(env, MTX_MPOOL_BH,
|
58 |
+
@@ -428,7 +428,7 @@ __memp_bh_thaw(dbmp, infop, hp, frozen_bhp, alloc_bhp)
|
59 |
+
#endif
|
60 |
+
alloc_bhp->mtx_buf = mutex;
|
61 |
+
MUTEX_LOCK(env, alloc_bhp->mtx_buf);
|
62 |
+
- atomic_init(&alloc_bhp->ref, 1);
|
63 |
+
+ bdb_atomic_init(&alloc_bhp->ref, 1);
|
64 |
+
F_CLR(alloc_bhp, BH_FROZEN);
|
65 |
+
}
|
66 |
+
|
67 |
+
diff --git a/mp/mp_region.c b/mp/mp_region.c
|
68 |
+
index e6cece9..e3e3382 100644
|
69 |
+
--- a/mp/mp_region.c
|
70 |
+
+++ b/mp/mp_region.c
|
71 |
+
@@ -224,7 +224,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
|
72 |
+
MTX_MPOOL_FILE_BUCKET, 0, &htab[i].mtx_hash)) != 0)
|
73 |
+
return (ret);
|
74 |
+
SH_TAILQ_INIT(&htab[i].hash_bucket);
|
75 |
+
- atomic_init(&htab[i].hash_page_dirty, 0);
|
76 |
+
+ bdb_atomic_init(&htab[i].hash_page_dirty, 0);
|
77 |
+
}
|
78 |
+
|
79 |
+
/*
|
80 |
+
@@ -269,7 +269,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
|
81 |
+
hp->mtx_hash = (mtx_base == MUTEX_INVALID) ? MUTEX_INVALID :
|
82 |
+
mtx_base + i;
|
83 |
+
SH_TAILQ_INIT(&hp->hash_bucket);
|
84 |
+
- atomic_init(&hp->hash_page_dirty, 0);
|
85 |
+
+ bdb_atomic_init(&hp->hash_page_dirty, 0);
|
86 |
+
#ifdef HAVE_STATISTICS
|
87 |
+
hp->hash_io_wait = 0;
|
88 |
+
hp->hash_frozen = hp->hash_thawed = hp->hash_frozen_freed = 0;
|
89 |
+
diff --git a/mutex/mut_method.c b/mutex/mut_method.c
|
90 |
+
index 2588763..56b6723 100644
|
91 |
+
--- a/mutex/mut_method.c
|
92 |
+
+++ b/mutex/mut_method.c
|
93 |
+
@@ -426,7 +426,7 @@ atomic_compare_exchange(env, v, oldval, newval)
|
94 |
+
MUTEX_LOCK(env, mtx);
|
95 |
+
ret = atomic_read(v) == oldval;
|
96 |
+
if (ret)
|
97 |
+
- atomic_init(v, newval);
|
98 |
+
+ bdb_atomic_init(v, newval);
|
99 |
+
MUTEX_UNLOCK(env, mtx);
|
100 |
+
|
101 |
+
return (ret);
|
102 |
+
diff --git a/mutex/mut_tas.c b/mutex/mut_tas.c
|
103 |
+
index f3922e0..934a654 100644
|
104 |
+
--- a/mutex/mut_tas.c
|
105 |
+
+++ b/mutex/mut_tas.c
|
106 |
+
@@ -46,7 +46,7 @@ __db_tas_mutex_init(env, mutex, flags)
|
107 |
+
|
108 |
+
#ifdef HAVE_SHARED_LATCHES
|
109 |
+
if (F_ISSET(mutexp, DB_MUTEX_SHARED))
|
110 |
+
- atomic_init(&mutexp->sharecount, 0);
|
111 |
+
+ bdb_atomic_init(&mutexp->sharecount, 0);
|
112 |
+
else
|
113 |
+
#endif
|
114 |
+
if (MUTEX_INIT(&mutexp->tas)) {
|
115 |
+
@@ -486,7 +486,7 @@ __db_tas_mutex_unlock(env, mutex)
|
116 |
+
F_CLR(mutexp, DB_MUTEX_LOCKED);
|
117 |
+
/* Flush flag update before zeroing count */
|
118 |
+
MEMBAR_EXIT();
|
119 |
+
- atomic_init(&mutexp->sharecount, 0);
|
120 |
+
+ bdb_atomic_init(&mutexp->sharecount, 0);
|
121 |
+
} else {
|
122 |
+
DB_ASSERT(env, sharecount > 0);
|
123 |
+
MEMBAR_EXIT();
|
cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://download.oracle.com/berkeley-db/db-4.8.30.NC.zip"
|
3 |
+
FILENAME "db-4.8.30.NC.zip"
|
4 |
+
SHA512 59c1d2d5a3551f988ab1dc063900572b67ad087537e0d71760de34601f9ebd4d5c070a49b809bec4a599a62417e9a162683ce0f6442deb1a0dadb80764bf6eab
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive(
|
8 |
+
SOURCE_PATH
|
9 |
+
ARCHIVE "${ARCHIVE}"
|
10 |
+
PATCHES fix-conflict-macro.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
|
22 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/berkeleydb/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "berkeleydb",
|
3 |
+
"version": "4.8.30",
|
4 |
+
"port-version": 9,
|
5 |
+
"description": "BDB - A high-performance embedded database for key/value data.",
|
6 |
+
"homepage": "https://download.oracle.com/",
|
7 |
+
"supports": "!(uwp | linux | osx)",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/better-enums/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO aantron/better-enums
|
4 |
+
REF ${VERSION}
|
5 |
+
SHA512 5997c74932803fb96beabbe029d80f6fdeab7c46f781a4e11ef775242d294dfd82ca05cac99787dd68a622db62510fd5533e9c0e85a62c7792c0dbe6237af6d9
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${SOURCE_PATH}/enum.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include/better-enums")
|
10 |
+
|
11 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
cc-multilingual-main/cc_net/vcpkg/ports/better-enums/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "better-enums",
|
3 |
+
"version": "0.11.3",
|
4 |
+
"description": "C++ compile-time enum to string, iteration, in a single header file.",
|
5 |
+
"homepage": "http://aantron.github.io/better-enums/",
|
6 |
+
"license": "BSD-2-Clause"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-convert/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/convert
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 74beb9790bc80ca1a0cf657c6cc7d38168f4de1d0efe9dfbfd32512c30b9501693c911b3c3b483f8bec089dc00f735ed9bc3f27330e1aaaa325c94e8e9054545
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-regex/b2-options.cmake
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if("icu" IN_LIST FEATURES)
|
2 |
+
set(B2_REQUIREMENTS "<library>/user-config//icuuc <library>/user-config//icudt <library>/user-config//icuin <define>BOOST_HAS_ICU=1")
|
3 |
+
else()
|
4 |
+
list(APPEND B2_OPTIONS --disable-icu)
|
5 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-regex/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/regex
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 16103c3175cc9c2f15c3fa4a80324eaa130d44a66c85d7efc74f910670f9cfaadeef57d87b5ff1868d11cdb721ac739bd1a842401c2c88c54701f375e275a5af
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
12 |
+
boost_modular_build(
|
13 |
+
SOURCE_PATH ${SOURCE_PATH}
|
14 |
+
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
|
15 |
+
)
|
16 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
17 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-regex/vcpkg.json
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-regex",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost regex module",
|
6 |
+
"homepage": "https://github.com/boostorg/regex",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-assert",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-build",
|
15 |
+
"host": true,
|
16 |
+
"version>=": "1.84.0"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "boost-concept-check",
|
20 |
+
"version>=": "1.84.0"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "boost-config",
|
24 |
+
"version>=": "1.84.0"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"name": "boost-container-hash",
|
28 |
+
"version>=": "1.84.0"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"name": "boost-core",
|
32 |
+
"version>=": "1.84.0"
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"name": "boost-integer",
|
36 |
+
"version>=": "1.84.0"
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"name": "boost-modular-build-helper",
|
40 |
+
"host": true,
|
41 |
+
"version>=": "1.84.0"
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "boost-mpl",
|
45 |
+
"version>=": "1.84.0"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "boost-predef",
|
49 |
+
"version>=": "1.84.0"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"name": "boost-smart-ptr",
|
53 |
+
"version>=": "1.84.0"
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"name": "boost-static-assert",
|
57 |
+
"version>=": "1.84.0"
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"name": "boost-throw-exception",
|
61 |
+
"version>=": "1.84.0"
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"name": "boost-type-traits",
|
65 |
+
"version>=": "1.84.0"
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"name": "boost-vcpkg-helpers",
|
69 |
+
"version>=": "1.84.0"
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"name": "vcpkg-cmake",
|
73 |
+
"host": true
|
74 |
+
}
|
75 |
+
],
|
76 |
+
"features": {
|
77 |
+
"icu": {
|
78 |
+
"description": "ICU backend for Boost.Regex",
|
79 |
+
"dependencies": [
|
80 |
+
"icu"
|
81 |
+
]
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/brunocodutra-metal/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO brunocodutra/metal
|
6 |
+
REF 9db9b403e58e0be0bbd295ff64f01e700965f25d
|
7 |
+
SHA512 b611d88d310893329f48111716c849571cb1459da1e71851bf3ec7393f18f8eb94077ce12410a9bcb1953e6b4ea0e8f2d2db5ce7f555a72ab2b7dae434b52d62
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
vcpkg_cmake_config_fixup(
|
18 |
+
PACKAGE_NAME Metal
|
19 |
+
CONFIG_PATH lib/cmake/Metal
|
20 |
+
)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/cpp-jwt/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO arun11299/cpp-jwt
|
4 |
+
REF 4b66cf74e5ece16e7f7e8c3d8c0c63d01b4cc9aa
|
5 |
+
SHA512 b66c6f482feb03621926ee6739d081b7f03dcc963a57ba59fce62fb61a3f5082d4eb75db682b567d299ea6e80f37078c033b31c966cbad6f4c234850b0b81cd0
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DCPP_JWT_BUILD_EXAMPLES=off
|
13 |
+
-DCPP_JWT_BUILD_TESTS=off
|
14 |
+
-DCPP_JWT_USE_VENDORED_NLOHMANN_JSON=off
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "share/cmake/${PORT}")
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
22 |
+
|
23 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/cpp-jwt/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cpp-jwt",
|
3 |
+
"version-date": "2022-08-27",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "JSON Web Token library for C++",
|
6 |
+
"homepage": "https://github.com/arun11299/cpp-jwt",
|
7 |
+
"license": "MIT",
|
8 |
+
"dependencies": [
|
9 |
+
"nlohmann-json",
|
10 |
+
"openssl",
|
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/dataframe/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO hosseinmoein/DataFrame
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 42630c4d77115c8155afaf908ea103b3ae030963339f353b9aa885c27ce6b020c05c008b22948b305868671e378c56a2d491bf974cc230c3406fbb40f79f45dd
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
vcpkg_cmake_configure(
|
9 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
10 |
+
OPTIONS
|
11 |
+
-DHMDF_TESTING:BOOL=OFF
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/DataFrame)
|
17 |
+
|
18 |
+
vcpkg_fixup_pkgconfig()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License")
|
cc-multilingual-main/cc_net/vcpkg/ports/dataframe/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dataframe",
|
3 |
+
"version": "3.0.0",
|
4 |
+
"description": "This is a C++ statistical library that provides an interface similar to Pandas package in Python",
|
5 |
+
"homepage": "https://github.com/hosseinmoein/DataFrame",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/entt/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO skypjack/entt
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 440aa2a4aaef77271874e85a1804c867dfbe0aa31373dc754635fa6365682b3246e40765749e02cd56b7743eeae262eb2952185081a70eb92ce631f4626faf93
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
set(VCPKG_BUILD_TYPE release) # header-only port
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DENTT_BUILD_TESTING=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/EnTT/cmake)
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
21 |
+
|
22 |
+
# Install natvis files
|
23 |
+
file(INSTALL "${SOURCE_PATH}/natvis/entt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/natvis")
|
24 |
+
|
25 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
26 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/entt/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
entt provides CMake targets:
|
2 |
+
|
3 |
+
find_package(EnTT CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE EnTT::EnTT)
|
cc-multilingual-main/cc_net/vcpkg/ports/entt/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "entt",
|
3 |
+
"version": "3.13.1",
|
4 |
+
"description": "Gaming meets modern C++ - a fast and reliable entity-component system and much more",
|
5 |
+
"homepage": "https://github.com/skypjack/entt",
|
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 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/0003-Fix-UWP.patch
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index db48e9f..5c35276 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -328,6 +328,10 @@ else ()
|
6 |
+
list(APPEND BASE_SRCS src/base/ftdebug.c)
|
7 |
+
endif ()
|
8 |
+
|
9 |
+
+if(MSVC)
|
10 |
+
+ add_definitions(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
if (BUILD_FRAMEWORK)
|
14 |
+
list(APPEND BASE_SRCS builds/mac/freetype-Info.plist)
|
15 |
+
endif ()
|
16 |
+
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
|
17 |
+
index 4f2eaca..1e01fe4 100644
|
18 |
+
--- a/include/freetype/freetype.h
|
19 |
+
+++ b/include/freetype/freetype.h
|
20 |
+
@@ -1038,6 +1038,11 @@ FT_BEGIN_HEADER
|
21 |
+
* Especially for TrueType fonts see also the documentation for
|
22 |
+
* @FT_Size_Metrics.
|
23 |
+
*/
|
24 |
+
+
|
25 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
|
26 |
+
+#define generic GenericFromFreeTypeLibrary
|
27 |
+
+#endif
|
28 |
+
+
|
29 |
+
typedef struct FT_FaceRec_
|
30 |
+
{
|
31 |
+
FT_Long num_faces;
|
32 |
+
@@ -1910,6 +1915,9 @@ FT_BEGIN_HEADER
|
33 |
+
|
34 |
+
} FT_GlyphSlotRec;
|
35 |
+
|
36 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
|
37 |
+
+#undef generic
|
38 |
+
+#endif
|
39 |
+
|
40 |
+
/*************************************************************************/
|
41 |
+
/*************************************************************************/
|
42 |
+
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
|
43 |
+
index 3f8619d..edf03b6 100644
|
44 |
+
--- a/src/base/ftobjs.c
|
45 |
+
+++ b/src/base/ftobjs.c
|
46 |
+
@@ -528,6 +528,9 @@
|
47 |
+
return error;
|
48 |
+
}
|
49 |
+
|
50 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
|
51 |
+
+#define generic GenericFromFreeTypeLibrary
|
52 |
+
+#endif
|
53 |
+
|
54 |
+
static void
|
55 |
+
ft_glyphslot_clear( FT_GlyphSlot slot )
|
56 |
+
@@ -1195,6 +1198,9 @@
|
57 |
+
FT_FREE( face );
|
58 |
+
}
|
59 |
+
|
60 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY != WINAPI_FAMILY_DESKTOP_APP)
|
61 |
+
+#undef generic
|
62 |
+
+#endif
|
63 |
+
|
64 |
+
static void
|
65 |
+
Destroy_Driver( FT_Driver driver )
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/brotli-static.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/builds/cmake/FindBrotliDec.cmake b/builds/cmake/FindBrotliDec.cmake
|
2 |
+
index 46356b1fd..ed4cc2409 100644
|
3 |
+
--- a/builds/cmake/FindBrotliDec.cmake
|
4 |
+
+++ b/builds/cmake/FindBrotliDec.cmake
|
5 |
+
@@ -35,10 +35,15 @@ find_path(BROTLIDEC_INCLUDE_DIRS
|
6 |
+
PATH_SUFFIXES brotli)
|
7 |
+
|
8 |
+
find_library(BROTLIDEC_LIBRARIES
|
9 |
+
- NAMES brotlidec
|
10 |
+
+ NAMES brotlidec brotlidec-static NAMES_PER_DIR
|
11 |
+
HINTS ${PC_BROTLIDEC_LIBDIR}
|
12 |
+
${PC_BROTLIDEC_LIBRARY_DIRS})
|
13 |
+
|
14 |
+
+ find_library(BROTLICOMMON_LIBRARIES
|
15 |
+
+ NAMES brotlicommon-static brotlicommon NAMES_PER_DIR
|
16 |
+
+ HINTS ${PC_BROTLIDEC_LIBDIR}
|
17 |
+
+ ${PC_BROTLIDEC_LIBRARY_DIRS})
|
18 |
+
+ set(BROTLIDEC_LIBRARIES "${BROTLIDEC_LIBRARIES};${BROTLICOMMON_LIBRARIES}")
|
19 |
+
|
20 |
+
include(FindPackageHandleStandardArgs)
|
21 |
+
find_package_handle_standard_args(
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/bzip2.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 469a141a2..eec19c7d0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -517,7 +517,7 @@ if (BZIP2_FOUND)
|
6 |
+
if (PC_BZIP2_FOUND)
|
7 |
+
list(APPEND PKGCONFIG_REQUIRES_PRIVATE "bzip2")
|
8 |
+
else ()
|
9 |
+
- list(APPEND PKGCONFIG_LIBS_PRIVATE "-lbz2")
|
10 |
+
+ list(APPEND PKGCONFIG_REQUIRES_PRIVATE "bzip2")
|
11 |
+
endif ()
|
12 |
+
endif ()
|
13 |
+
if (PNG_FOUND)
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/fix-exports.patch
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index cb1b9a0f2..edca5d579 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -508,7 +508,6 @@ set(PKG_CONFIG_REQUIRED_PRIVATE "")
|
6 |
+
set(PKGCONFIG_LIBS_PRIVATE "")
|
7 |
+
|
8 |
+
if (ZLIB_FOUND)
|
9 |
+
- target_link_libraries(freetype PRIVATE ${ZLIB_LIBRARIES})
|
10 |
+
+ target_link_libraries(freetype PRIVATE ZLIB::ZLIB)
|
11 |
+
- target_include_directories(freetype PRIVATE ${ZLIB_INCLUDE_DIRS})
|
12 |
+
list(APPEND PKGCONFIG_REQUIRES_PRIVATE "zlib")
|
13 |
+
endif ()
|
14 |
+
@@ -596,12 +596,25 @@ if (NOT SKIP_INSTALL_LIBRARIES AND NOT SKIP_INSTALL_ALL)
|
15 |
+
install(
|
16 |
+
EXPORT freetype-targets
|
17 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/freetype
|
18 |
+
- FILE freetype-config.cmake
|
19 |
+
COMPONENT headers)
|
20 |
+
install(
|
21 |
+
FILES ${PROJECT_BINARY_DIR}/freetype-config-version.cmake
|
22 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/freetype
|
23 |
+
COMPONENT headers)
|
24 |
+
+
|
25 |
+
+ if(ZLIB_FOUND AND BUILD_SHARED_LIBS)
|
26 |
+
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/freetype-config.cmake"
|
27 |
+
+[[include(CMakeFindDependencyMacro)
|
28 |
+
+find_dependency(ZLIB)
|
29 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/freetype-targets.cmake")
|
30 |
+
+]])
|
31 |
+
+ else()
|
32 |
+
+ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/freetype-config.cmake"
|
33 |
+
+[[include("${CMAKE_CURRENT_LIST_DIR}/freetype-targets.cmake")
|
34 |
+
+]])
|
35 |
+
+ endif()
|
36 |
+
+
|
37 |
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/freetype-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/freetype)
|
38 |
+
endif ()
|
39 |
+
|
40 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/portfile.cmake
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_sourceforge(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO freetype/freetype2
|
4 |
+
REF "${VERSION}"
|
5 |
+
FILENAME freetype-${VERSION}.tar.xz
|
6 |
+
SHA512 a5917edaa45cb9f75786f8a4f9d12fdf07529247e09dfdb6c0cf7feb08f7588bb24f7b5b11425fb47f8fd62fcb426e731c944658f6d5a59ce4458ad5b0a50194
|
7 |
+
PATCHES
|
8 |
+
0003-Fix-UWP.patch
|
9 |
+
brotli-static.patch
|
10 |
+
bzip2.patch
|
11 |
+
fix-exports.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
zlib FT_REQUIRE_ZLIB
|
17 |
+
bzip2 FT_REQUIRE_BZIP2
|
18 |
+
error-strings FT_ENABLE_ERROR_STRINGS
|
19 |
+
png FT_REQUIRE_PNG
|
20 |
+
brotli FT_REQUIRE_BROTLI
|
21 |
+
INVERTED_FEATURES
|
22 |
+
zlib FT_DISABLE_ZLIB
|
23 |
+
bzip2 FT_DISABLE_BZIP2
|
24 |
+
png FT_DISABLE_PNG
|
25 |
+
brotli FT_DISABLE_BROTLI
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_configure(
|
29 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
30 |
+
OPTIONS
|
31 |
+
-DFT_DISABLE_HARFBUZZ=ON
|
32 |
+
${FEATURE_OPTIONS}
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_cmake_install()
|
36 |
+
vcpkg_copy_pdbs()
|
37 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/freetype)
|
38 |
+
|
39 |
+
# Rename for easy usage (VS integration; CMake and autotools will not care)
|
40 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/include/freetype2/freetype" "${CURRENT_PACKAGES_DIR}/include/freetype")
|
41 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/include/freetype2/ft2build.h" "${CURRENT_PACKAGES_DIR}/include/ft2build.h")
|
42 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/freetype2")
|
43 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
44 |
+
|
45 |
+
# Fix the include dir [freetype2 -> freetype]
|
46 |
+
file(READ "${CURRENT_PACKAGES_DIR}/share/freetype/freetype-targets.cmake" CONFIG_MODULE)
|
47 |
+
string(REPLACE "\${_IMPORT_PREFIX}/include/freetype2" "\${_IMPORT_PREFIX}/include" CONFIG_MODULE "${CONFIG_MODULE}")
|
48 |
+
string(REPLACE "\${_IMPORT_PREFIX}/lib/brotlicommon-static.lib" [[\$<\$<NOT:\$<CONFIG:DEBUG>>:${_IMPORT_PREFIX}/lib/brotlicommon-static.lib>;\$<\$<CONFIG:DEBUG>:${_IMPORT_PREFIX}/debug/lib/brotlicommon-static.lib>]] CONFIG_MODULE "${CONFIG_MODULE}")
|
49 |
+
string(REPLACE "\${_IMPORT_PREFIX}/lib/brotlidec-static.lib" [[\$<\$<NOT:\$<CONFIG:DEBUG>>:${_IMPORT_PREFIX}/lib/brotlidec-static.lib>;\$<\$<CONFIG:DEBUG>:${_IMPORT_PREFIX}/debug/lib/brotlidec-static.lib>]] CONFIG_MODULE "${CONFIG_MODULE}")
|
50 |
+
string(REPLACE "\${_IMPORT_PREFIX}/lib/brotlidec.lib" [[\$<\$<NOT:\$<CONFIG:DEBUG>>:${_IMPORT_PREFIX}/lib/brotlidec.lib>;\$<\$<CONFIG:DEBUG>:${_IMPORT_PREFIX}/debug/lib/brotlidec.lib>]] CONFIG_MODULE "${CONFIG_MODULE}")
|
51 |
+
string(REPLACE "\${_IMPORT_PREFIX}/lib/brotlidec.lib" [[\$<\$<NOT:\$<CONFIG:DEBUG>>:${_IMPORT_PREFIX}/lib/brotlidec.lib>;\$<\$<CONFIG:DEBUG>:${_IMPORT_PREFIX}/debug/lib/brotlidec.lib>]] CONFIG_MODULE "${CONFIG_MODULE}")
|
52 |
+
file(WRITE ${CURRENT_PACKAGES_DIR}/share/freetype/freetype-targets.cmake "${CONFIG_MODULE}")
|
53 |
+
|
54 |
+
find_library(FREETYPE_DEBUG NAMES freetyped PATHS "${CURRENT_PACKAGES_DIR}/debug/lib/" NO_DEFAULT_PATH)
|
55 |
+
if(NOT VCPKG_BUILD_TYPE)
|
56 |
+
file(READ "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freetype2.pc" _contents)
|
57 |
+
if(FREETYPE_DEBUG)
|
58 |
+
string(REPLACE "-lfreetype" "-lfreetyped" _contents "${_contents}")
|
59 |
+
endif()
|
60 |
+
string(REPLACE "-I\${includedir}/freetype2" "-I\${includedir}" _contents "${_contents}")
|
61 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freetype2.pc" "${_contents}")
|
62 |
+
endif()
|
63 |
+
|
64 |
+
file(READ "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freetype2.pc" _contents)
|
65 |
+
string(REPLACE "-I\${includedir}/freetype2" "-I\${includedir}" _contents "${_contents}")
|
66 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freetype2.pc" "${_contents}")
|
67 |
+
|
68 |
+
|
69 |
+
vcpkg_fixup_pkgconfig()
|
70 |
+
|
71 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
72 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
73 |
+
|
74 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
75 |
+
set(dll_linkage 1)
|
76 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
77 |
+
set(dll_linkage 0)
|
78 |
+
endif()
|
79 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/freetype/config/public-macros.h" "#elif defined( DLL_IMPORT )" "#elif ${dll_linkage}")
|
80 |
+
endif()
|
81 |
+
|
82 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
|
83 |
+
"${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|
84 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
85 |
+
vcpkg_install_copyright(
|
86 |
+
FILE_LIST
|
87 |
+
"${SOURCE_PATH}/LICENSE.TXT"
|
88 |
+
"${SOURCE_PATH}/docs/FTL.TXT"
|
89 |
+
"${SOURCE_PATH}/docs/GPLv2.TXT"
|
90 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
freetype is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
find_package(Freetype REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE Freetype::Freetype) # since CMake 3.10
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_policy(PUSH)
|
2 |
+
cmake_policy(SET CMP0012 NEW)
|
3 |
+
cmake_policy(SET CMP0054 NEW)
|
4 |
+
|
5 |
+
list(REMOVE_ITEM ARGS "NO_MODULE" "CONFIG" "MODULE")
|
6 |
+
_find_package(${ARGS} CONFIG)
|
7 |
+
|
8 |
+
if(Freetype_FOUND)
|
9 |
+
include("${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake")
|
10 |
+
|
11 |
+
get_target_property(_freetype_include_dirs freetype INTERFACE_INCLUDE_DIRECTORIES)
|
12 |
+
|
13 |
+
if (CMAKE_SYSTEM_NAME STREQUAL "Windows" OR CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
14 |
+
get_target_property(_freetype_location_debug freetype IMPORTED_IMPLIB_DEBUG)
|
15 |
+
get_target_property(_freetype_location_release freetype IMPORTED_IMPLIB_RELEASE)
|
16 |
+
endif()
|
17 |
+
if(NOT _freetype_location_debug AND NOT _freetype_location_release)
|
18 |
+
get_target_property(_freetype_location_debug freetype IMPORTED_LOCATION_DEBUG)
|
19 |
+
get_target_property(_freetype_location_release freetype IMPORTED_LOCATION_RELEASE)
|
20 |
+
endif()
|
21 |
+
|
22 |
+
set(FREETYPE_FOUND TRUE)
|
23 |
+
|
24 |
+
set(FREETYPE_INCLUDE_DIRS "${_freetype_include_dirs}")
|
25 |
+
set(FREETYPE_INCLUDE_DIR_ft2build "${_freetype_include_dirs}")
|
26 |
+
set(FREETYPE_INCLUDE_DIR_freetype2 "${_freetype_include_dirs}")
|
27 |
+
set(FREETYPE_LIBRARY_DEBUG "${_freetype_location_debug}" CACHE INTERNAL "vcpkg")
|
28 |
+
set(FREETYPE_LIBRARY_RELEASE "${_freetype_location_release}" CACHE INTERNAL "vcpkg")
|
29 |
+
select_library_configurations(FREETYPE)
|
30 |
+
set(FREETYPE_LIBRARIES ${FREETYPE_LIBRARY})
|
31 |
+
set(FREETYPE_VERSION_STRING "${Freetype_VERSION}")
|
32 |
+
|
33 |
+
unset(_freetype_include_dirs)
|
34 |
+
unset(_freetype_location_debug)
|
35 |
+
unset(_freetype_location_release)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
39 |
+
if("@FT_REQUIRE_ZLIB@")
|
40 |
+
find_package(ZLIB)
|
41 |
+
endif()
|
42 |
+
if("@FT_REQUIRE_BZIP2@")
|
43 |
+
find_package(BZip2)
|
44 |
+
endif()
|
45 |
+
if("@FT_REQUIRE_PNG@")
|
46 |
+
find_package(PNG)
|
47 |
+
endif()
|
48 |
+
if("@FT_REQUIRE_BROTLI@")
|
49 |
+
find_library(BROTLIDEC_LIBRARY_RELEASE NAMES brotlidec brotlidec-static PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" PATH_SUFFIXES lib NO_DEFAULT_PATH)
|
50 |
+
find_library(BROTLIDEC_LIBRARY_DEBUG NAMES brotlidec brotlidec-static brotlidecd brotlidec-staticd PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" PATH_SUFFIXES lib NO_DEFAULT_PATH)
|
51 |
+
find_library(BROTLICOMMON_LIBRARY_RELEASE NAMES brotlicommon brotlicommon-static PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" PATH_SUFFIXES lib NO_DEFAULT_PATH)
|
52 |
+
find_library(BROTLICOMMON_LIBRARY_DEBUG NAMES brotlicommon brotlicommon-static brotlicommond brotlicommon-staticd PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug" PATH_SUFFIXES lib NO_DEFAULT_PATH)
|
53 |
+
include(SelectLibraryConfigurations)
|
54 |
+
select_library_configurations(BROTLIDEC)
|
55 |
+
select_library_configurations(BROTLICOMMON)
|
56 |
+
endif("@FT_REQUIRE_BROTLI@")
|
57 |
+
|
58 |
+
if(TARGET Freetype::Freetype)
|
59 |
+
if("@FT_REQUIRE_ZLIB@")
|
60 |
+
set_property(TARGET Freetype::Freetype APPEND PROPERTY INTERFACE_LINK_LIBRARIES ZLIB::ZLIB)
|
61 |
+
endif()
|
62 |
+
if("@FT_REQUIRE_BZIP2@")
|
63 |
+
set_property(TARGET Freetype::Freetype APPEND PROPERTY INTERFACE_LINK_LIBRARIES BZip2::BZip2)
|
64 |
+
endif()
|
65 |
+
if("@FT_REQUIRE_PNG@")
|
66 |
+
set_property(TARGET Freetype::Freetype APPEND PROPERTY INTERFACE_LINK_LIBRARIES PNG::PNG)
|
67 |
+
endif()
|
68 |
+
if("@FT_REQUIRE_BROTLI@")
|
69 |
+
if(BROTLIDEC_LIBRARY_DEBUG)
|
70 |
+
set_property(TARGET Freetype::Freetype APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<CONFIG:DEBUG>:${BROTLIDEC_LIBRARY_DEBUG}>")
|
71 |
+
set_property(TARGET Freetype::Freetype APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<CONFIG:DEBUG>:${BROTLICOMMON_LIBRARY_DEBUG}>")
|
72 |
+
endif()
|
73 |
+
if(BROTLIDEC_LIBRARY_RELEASE)
|
74 |
+
set_property(TARGET Freetype::Freetype APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<NOT:$<CONFIG:DEBUG>>:${BROTLIDEC_LIBRARY_RELEASE}>")
|
75 |
+
set_property(TARGET Freetype::Freetype APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<NOT:$<CONFIG:DEBUG>>:${BROTLICOMMON_LIBRARY_RELEASE}>")
|
76 |
+
endif()
|
77 |
+
endif()
|
78 |
+
endif()
|
79 |
+
|
80 |
+
if(FREETYPE_LIBRARIES)
|
81 |
+
if("@FT_REQUIRE_ZLIB@")
|
82 |
+
list(APPEND FREETYPE_LIBRARIES ${ZLIB_LIBRARIES})
|
83 |
+
endif()
|
84 |
+
if("@FT_REQUIRE_BZIP2@")
|
85 |
+
list(APPEND FREETYPE_LIBRARIES ${BZIP2_LIBRARIES})
|
86 |
+
endif()
|
87 |
+
if("@FT_REQUIRE_PNG@")
|
88 |
+
list(APPEND FREETYPE_LIBRARIES ${PNG_LIBRARIES})
|
89 |
+
endif()
|
90 |
+
if("@FT_REQUIRE_BROTLI@")
|
91 |
+
list(APPEND FREETYPE_LIBRARIES ${BROTLIDEC_LIBRARIES} ${BROTLICOMMON_LIBRARIES})
|
92 |
+
endif()
|
93 |
+
endif()
|
94 |
+
endif()
|
95 |
+
cmake_policy(POP)
|
cc-multilingual-main/cc_net/vcpkg/ports/freetype/vcpkg.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "freetype",
|
3 |
+
"version": "2.13.2",
|
4 |
+
"description": "A library to render fonts.",
|
5 |
+
"homepage": "https://www.freetype.org/",
|
6 |
+
"license": "FTL OR GPL-2.0-or-later",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"default-features": [
|
18 |
+
"brotli",
|
19 |
+
"bzip2",
|
20 |
+
"png",
|
21 |
+
"zlib"
|
22 |
+
],
|
23 |
+
"features": {
|
24 |
+
"brotli": {
|
25 |
+
"description": "Support decompression of WOFF2 streams",
|
26 |
+
"dependencies": [
|
27 |
+
"brotli"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
"bzip2": {
|
31 |
+
"description": "Support bzip2 compressed fonts.",
|
32 |
+
"dependencies": [
|
33 |
+
"bzip2"
|
34 |
+
]
|
35 |
+
},
|
36 |
+
"error-strings": {
|
37 |
+
"description": "Enable support for meaningful error descriptions."
|
38 |
+
},
|
39 |
+
"png": {
|
40 |
+
"description": "Support PNG compressed OpenType embedded bitmaps.",
|
41 |
+
"dependencies": [
|
42 |
+
"libpng"
|
43 |
+
]
|
44 |
+
},
|
45 |
+
"zlib": {
|
46 |
+
"description": "Use zlib instead of internal library for DEFLATE",
|
47 |
+
"dependencies": [
|
48 |
+
"zlib"
|
49 |
+
]
|
50 |
+
}
|
51 |
+
}
|
52 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ignition-plugin1/portfile.cmake
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(PACKAGE_VERSION "1.4.0")
|
2 |
+
ignition_modular_library(NAME plugin
|
3 |
+
VERSION ${PACKAGE_VERSION}
|
4 |
+
REF "ignition-plugin_${PACKAGE_VERSION}"
|
5 |
+
SHA512 bc8d8012ae2a5f4cee26560323f65e40873fb9d1d014a9946317bf941953a7e5018bc08763f87fc624792cb02aebe289286265796697559eeaf41e28e9b05abb)
|
cc-multilingual-main/cc_net/vcpkg/ports/ignition-plugin1/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ignition-plugin1",
|
3 |
+
"version": "1.4.0",
|
4 |
+
"description": "Library for registering plugin libraries and dynamically loading them at runtime",
|
5 |
+
"homepage": "https://ignitionrobotics.org/libs/plugin",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "dlfcn-win32",
|
10 |
+
"platform": "windows | uwp"
|
11 |
+
},
|
12 |
+
"ignition-cmake2",
|
13 |
+
{
|
14 |
+
"name": "ignition-modularscripts",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/kcp/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO skywind3000/kcp
|
6 |
+
REF 38e0c9366e4a72c749ff0bcdf911d1fe9bdfe9f5
|
7 |
+
SHA512 1a05a692719f7f7bfa2e20df81c68af991bd01fe7236ab637a10644abfed425b9f46fd9ad399b8edca152d7bb617c37533b183bda2cf4a0cc1c3ce47031ba37f
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_TESTING=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
|
23 |
+
# Handle copyright
|
24 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/kcp/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kcp",
|
3 |
+
"version": "1.7",
|
4 |
+
"description": "A fast and reliable ARQ protocol",
|
5 |
+
"homepage": "https://github.com/skywind3000/kcp",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/kf5config/portfile.cmake
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KDE/kconfig
|
4 |
+
REF v5.98.0
|
5 |
+
SHA512 08d78422ae3df90f4ee2e88d2b2e3f485ecffc6f56c40e05825ecdc3321b95b4d18cfb3c11c327dce330ec50e09a8398e07f4d70243e0e2222f09de2005d9020
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
10 |
+
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DBUILD_TESTING=OFF
|
16 |
+
-DKDE_INSTALL_LIBEXECDIR=bin
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Config CONFIG_PATH lib/cmake/KF5Config)
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
vcpkg_copy_tools(
|
24 |
+
TOOL_NAMES kreadconfig5 kwriteconfig5
|
25 |
+
AUTO_CLEAN
|
26 |
+
)
|
27 |
+
|
28 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
29 |
+
set(LIBEXEC_SUBFOLDER "kf5/")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
vcpkg_copy_tools(
|
33 |
+
TOOL_NAMES kconf_update kconfig_compiler_kf5
|
34 |
+
SEARCH_DIR "${CURRENT_PACKAGES_DIR}/bin/${LIBEXEC_SUBFOLDER}"
|
35 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}/${LIBEXEC_SUBFOLDER}"
|
36 |
+
AUTO_CLEAN
|
37 |
+
)
|
38 |
+
|
39 |
+
file(APPEND "${CURRENT_PACKAGES_DIR}/tools/${PORT}/qt.conf" "Data = ../../share")
|
40 |
+
|
41 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
42 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
43 |
+
endif()
|
44 |
+
|
45 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
46 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
47 |
+
|
48 |
+
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
49 |
+
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|
50 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/kf5config/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kf5config",
|
3 |
+
"version": "5.98.0",
|
4 |
+
"description": "Configuration system",
|
5 |
+
"homepage": "https://api.kde.org/frameworks/kconfig/html/index.html",
|
6 |
+
"dependencies": [
|
7 |
+
"ecm",
|
8 |
+
"qt5-base",
|
9 |
+
"qt5-tools",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/kf5itemmodels/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KDE/kitemmodels
|
4 |
+
REF v5.98.0
|
5 |
+
SHA512 11badf9c62c0b4d2e48a800adee42a7392c2dd3749315ff91125b9eac0bd8e78fef9eac9b64fe3c4d97ead30f78961b82669590098a4b11b5c5a5a61c005b3c2
|
6 |
+
)
|
7 |
+
|
8 |
+
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
9 |
+
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_TESTING=OFF
|
15 |
+
-DKDE_INSTALL_QMLDIR=qml
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5ItemModels CONFIG_PATH lib/cmake/KF5ItemModels)
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
28 |
+
|
29 |
+
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
30 |
+
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|
31 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/kf5itemmodels/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kf5itemmodels",
|
3 |
+
"version": "5.98.0",
|
4 |
+
"description": "Models for Qt Model/View system",
|
5 |
+
"homepage": "https://api.kde.org/frameworks/kitemmodels/html/index.html",
|
6 |
+
"dependencies": [
|
7 |
+
"ecm",
|
8 |
+
"qt5-base",
|
9 |
+
"qt5-tools",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/kf5plotting/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KDE/kplotting
|
4 |
+
REF v5.98.0
|
5 |
+
SHA512 966b62cef7e617678d8ea63c68ff6e79db29a024ffa779a743e20ee643f9fcefe7af766fbb430ecfc2000ed1be9536ab0479d094fc8d899fcf5c0cd44f3d0302
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
10 |
+
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DBUILD_TESTING=OFF
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Plotting CONFIG_PATH lib/cmake/KF5Plotting)
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/plugins" "${CURRENT_PACKAGES_DIR}/debug/plugins")
|
24 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/plugins" "${CURRENT_PACKAGES_DIR}/plugins")
|
25 |
+
|
26 |
+
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
27 |
+
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|
28 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/kf5plotting/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kf5plotting",
|
3 |
+
"version": "5.98.0",
|
4 |
+
"description": "Lightweight plotting framework",
|
5 |
+
"homepage": "https://api.kde.org/frameworks/kplotting/html/index.html",
|
6 |
+
"dependencies": [
|
7 |
+
"ecm",
|
8 |
+
"qt5-base",
|
9 |
+
"qt5-tools",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libice/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
message(STATUS "Utils and libraries provided by '${PORT}' should be provided by your system! Install the required packages or force vcpkg libraries by setting X_VCPKG_FORCE_VCPKG_X_LIBRARIES in your triplet!")
|
3 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
4 |
+
else()
|
5 |
+
|
6 |
+
vcpkg_from_gitlab(
|
7 |
+
GITLAB_URL https://gitlab.freedesktop.org/xorg
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO lib/libice
|
10 |
+
REF 8e6a14c63d6b73cde87cb331439f2a4d19cba5b9 # 1.0.10
|
11 |
+
SHA512 ad79cfbc3b1d51fb1f019bc088999ac8a64062a71667dbb4ffb62fe6d1b7dba7665944f64be6dcd27de08cc77e91512de97231db1e4ac018088727e90113d040
|
12 |
+
HEAD_REF master
|
13 |
+
PATCHES fix_build.patch
|
14 |
+
replace_macros.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
|
18 |
+
|
19 |
+
vcpkg_configure_make(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
AUTOCONFIG
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_install_make()
|
25 |
+
vcpkg_fixup_pkgconfig()
|
26 |
+
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
29 |
+
|
30 |
+
# Handle copyright
|
31 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
32 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libleidenalg/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO vtraag/libleidenalg
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 a3077592b68cb6fd9bc24127898a64576982b608ff3c123e8b1c7ea1b8da2dfb302123fba64cbf93c16b9310ab42199ddc8de5efa5b6606dd49ee47f074f7f2f
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
10 |
+
|
11 |
+
vcpkg_cmake_install()
|
12 |
+
|
13 |
+
vcpkg_cmake_config_fixup()
|
14 |
+
|
15 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
16 |
+
|
17 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/libleidenalg/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libleidenalg",
|
3 |
+
"version": "0.10.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"maintainers": "Andrew Robbins <[email protected]>",
|
6 |
+
"description": "Leiden is a general algorithm for methods of community detection in large networks.",
|
7 |
+
"homepage": "https://github.com/vtraag/libleidenalg",
|
8 |
+
"license": "GPL-3.0-or-later",
|
9 |
+
"supports": "!xbox",
|
10 |
+
"dependencies": [
|
11 |
+
{
|
12 |
+
"name": "igraph",
|
13 |
+
"version>=": "0.10.1"
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake",
|
17 |
+
"host": true
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake-config",
|
21 |
+
"host": true
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libopenmpt/CMakeLists.txt
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(libopenmpt)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(
|
6 |
+
/W3 /wd4005 /wd4267 /wd4244 /wd4996 /wd4100 /wd4018
|
7 |
+
-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
|
8 |
+
-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS
|
9 |
+
)
|
10 |
+
endif()
|
11 |
+
|
12 |
+
find_package(ZLIB REQUIRED)
|
13 |
+
find_package(mpg123 CONFIG REQUIRED)
|
14 |
+
find_package(Vorbis CONFIG REQUIRED)
|
15 |
+
|
16 |
+
file(GLOB HEADERS libopenmpt/*.h libopenmpt/*.hpp src/openmpt/all/*.hpp)
|
17 |
+
list(FILTER HEADERS EXCLUDE REGEX "_impl\\.hpp$|_internal\\.h$")
|
18 |
+
|
19 |
+
include_directories(
|
20 |
+
.
|
21 |
+
src
|
22 |
+
build/svn_version
|
23 |
+
libopenmpt
|
24 |
+
common
|
25 |
+
soundbase
|
26 |
+
sounddsp
|
27 |
+
soundlib
|
28 |
+
openmpt123
|
29 |
+
)
|
30 |
+
|
31 |
+
file(GLOB_RECURSE SOURCES
|
32 |
+
common/*.cpp
|
33 |
+
soundbase/*.cpp
|
34 |
+
sounddsp/*.cpp
|
35 |
+
# Because this is a GLOB_RECURSE, soundlib/plugins/*.cpp will be included
|
36 |
+
soundlib/*.cpp
|
37 |
+
libopenmpt/libopenmpt_c.cpp
|
38 |
+
libopenmpt/libopenmpt_cxx.cpp
|
39 |
+
libopenmpt/libopenmpt_ext_impl.cpp
|
40 |
+
libopenmpt/libopenmpt_impl.cpp
|
41 |
+
)
|
42 |
+
|
43 |
+
set(CMAKE_CXX_STANDARD 17)
|
44 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
45 |
+
|
46 |
+
add_library(libopenmpt ${SOURCES})
|
47 |
+
set_target_properties(libopenmpt PROPERTIES OUTPUT_NAME openmpt)
|
48 |
+
|
49 |
+
target_compile_definitions(libopenmpt PRIVATE
|
50 |
+
-DMPT_WITH_MPG123 -DMPT_WITH_OGG
|
51 |
+
-DMPT_WITH_VORBIS -DMPT_WITH_VORBISFILE
|
52 |
+
-DMPT_WITH_ZLIB -DMPT_BUILD_VCPKG
|
53 |
+
-DLIBOPENMPT_BUILD
|
54 |
+
)
|
55 |
+
|
56 |
+
if(BUILD_SHARED_LIBS)
|
57 |
+
target_compile_definitions(
|
58 |
+
libopenmpt
|
59 |
+
PRIVATE -DLIBOPENMPT_BUILD_DLL
|
60 |
+
)
|
61 |
+
endif()
|
62 |
+
|
63 |
+
target_include_directories(
|
64 |
+
libopenmpt
|
65 |
+
PUBLIC
|
66 |
+
$<INSTALL_INTERFACE:include>
|
67 |
+
)
|
68 |
+
|
69 |
+
target_link_libraries(
|
70 |
+
libopenmpt
|
71 |
+
PRIVATE
|
72 |
+
MPG123::libmpg123
|
73 |
+
Vorbis::vorbisfile
|
74 |
+
Vorbis::vorbis
|
75 |
+
ZLIB::ZLIB
|
76 |
+
)
|
77 |
+
|
78 |
+
set(LIBOPENMPT_REQUIRES_PRIVATE "zlib vorbis vorbisfile libmpg123")
|
79 |
+
set(LIBOPENMPT_LIBS_PRIVATE "")
|
80 |
+
set(prefix "${CMAKE_INSTALL_PREFIX}")
|
81 |
+
set(exec_prefix [[${prefix}]])
|
82 |
+
set(includedir [[${prefix}/include]])
|
83 |
+
set(libdir [[${prefix}/lib]])
|
84 |
+
configure_file(libopenmpt/libopenmpt.pc.in libopenmpt.pc)
|
85 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libopenmpt.pc" DESTINATION lib/pkgconfig)
|
86 |
+
|
87 |
+
install(TARGETS libopenmpt EXPORT libopenmpt-targets)
|
88 |
+
install(EXPORT libopenmpt-targets DESTINATION share/libopenmpt NAMESPACE libopenmpt::)
|
89 |
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/libopenmpt-config.cmake" [[
|
90 |
+
include(CMakeFindDependencyMacro)
|
91 |
+
find_dependency(ZLIB)
|
92 |
+
find_dependency(mpg123 CONFIG)
|
93 |
+
find_dependency(Vorbis CONFIG)
|
94 |
+
include("${CMAKE_CURRENT_LIST_DIR}/libopenmpt-targets.cmake")
|
95 |
+
]])
|
96 |
+
install(FILES ${HEADERS} DESTINATION include/libopenmpt)
|
97 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libopenmpt-config.cmake" DESTINATION share/libopenmpt)
|
cc-multilingual-main/cc_net/vcpkg/ports/libopenmpt/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO OpenMPT/openmpt
|
4 |
+
REF "libopenmpt-${VERSION}"
|
5 |
+
SHA512 00c6f4984a3cbf28ce83442e4ddee7fdf4ec82468813bc4b79fef7f722cd930c11e01f30ffe3bb70763494846d97a09163d772ad9c7963ed425440ad93ffc77b
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
"-DVERSION=${VERSION}"
|
15 |
+
)
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
vcpkg_cmake_config_fixup()
|
18 |
+
vcpkg_fixup_pkgconfig()
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
22 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "0")
|
23 |
+
else()
|
24 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "1")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
28 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/libopenmpt/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libopenmpt",
|
3 |
+
"version": "0.7.4",
|
4 |
+
"description": "A cross-platform C++ and C library to decode tracked music files (modules) into a raw PCM audio stream.",
|
5 |
+
"homepage": "https://openmpt.org/",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"dependencies": [
|
8 |
+
"libogg",
|
9 |
+
"libvorbis",
|
10 |
+
"mpg123",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
},
|
19 |
+
"zlib"
|
20 |
+
]
|
21 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libqrencode/portfile.cmake
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO fukuchi/libqrencode
|
4 |
+
REF 715e29fd4cd71b6e452ae0f4e36d917b43122ce8 # v4.1.1
|
5 |
+
SHA512 78a5464c6fd37d2b4ed6d81c5faf8d95f6f1c95bfdb55dfe89fc227cd487c1685e8080694b1c93128364337959562ea133b3bb332ae1c5a4094614b493611e9f
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
tool WITH_TOOLS
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
OPTIONS
|
17 |
+
${FEATURE_OPTIONS}
|
18 |
+
-DWITH_TEST=NO
|
19 |
+
-DSKIP_INSTALL_PROGRAMS=ON
|
20 |
+
-DSKIP_INSTALL_EXECUTABLES=ON
|
21 |
+
-DSKIP_INSTALL_FILES=ON
|
22 |
+
OPTIONS_DEBUG
|
23 |
+
-DSKIP_INSTALL_HEADERS=ON
|
24 |
+
-DWITH_TOOLS=NO
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_IS_WINDOWS) # Windows
|
30 |
+
set(EXECUTABLE_SUFFIX ".exe")
|
31 |
+
else()
|
32 |
+
set(EXECUTABLE_SUFFIX "")
|
33 |
+
endif()
|
34 |
+
|
35 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/qrencode.dll")
|
36 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
37 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/qrencode.dll" "${CURRENT_PACKAGES_DIR}/bin/qrencode.dll")
|
38 |
+
endif()
|
39 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll")
|
40 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
41 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/qrencoded.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/qrencoded.dll")
|
42 |
+
endif()
|
43 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/qrencode${EXECUTABLE_SUFFIX}")
|
44 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/qrencode")
|
45 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/qrencode${EXECUTABLE_SUFFIX}" "${CURRENT_PACKAGES_DIR}/tools/qrencode/qrencode${EXECUTABLE_SUFFIX}")
|
46 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/qrencode")
|
47 |
+
if (NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
48 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
49 |
+
endif()
|
50 |
+
endif()
|
51 |
+
|
52 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
53 |
+
|
54 |
+
vcpkg_copy_pdbs()
|
55 |
+
|
56 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
57 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
58 |
+
|
59 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/libqrencode/usage
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
To use libqrencode library in CMakeLists.txt:
|
2 |
+
|
3 |
+
find_path(QRENCODE_INCLUDE_DIR NAMES qrencode.h)
|
4 |
+
find_library(QRENCODE_LIBRARY_RELEASE qrencode)
|
5 |
+
find_library(QRENCODE_LIBRARY_DEBUG qrencoded)
|
6 |
+
set(QRENCODE_LIBRARIES optimized ${QRENCODE_LIBRARY_RELEASE} debug ${QRENCODE_LIBRARY_DEBUG})
|
7 |
+
|
8 |
+
add_executable(main main.cpp)
|
9 |
+
target_include_directories(main PRIVATE ${QRENCODE_INCLUDE_DIR})
|
10 |
+
target_link_libraries(main PRIVATE ${QRENCODE_LIBRARIES})
|
cc-multilingual-main/cc_net/vcpkg/ports/libqrencode/vcpkg.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libqrencode",
|
3 |
+
"version-semver": "4.1.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "libqrencode - a fast and compact QR Code encoding library",
|
6 |
+
"homepage": "https://github.com/fukuchi/libqrencode",
|
7 |
+
"dependencies": [
|
8 |
+
"libiconv",
|
9 |
+
"libpng",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
],
|
15 |
+
"features": {
|
16 |
+
"tool": {
|
17 |
+
"description": "Build qrencode tool",
|
18 |
+
"dependencies": [
|
19 |
+
{
|
20 |
+
"name": "getopt",
|
21 |
+
"platform": "windows"
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/librsync/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO librsync/librsync
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 ac01413b875e774db9fec3888210a4b9a5f3d32c081f1ed5f2cf9dc29cfae6ecedf6eac42062631e6dcf188853313fce4520430549768a0f68993419b07e58d9
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_RDIFF:BOOL=OFF
|
15 |
+
-DENABLE_COMPRESSION:BOOL=OFF
|
16 |
+
-DENABLE_TRACE:BOOL=OFF
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
22 |
+
|
23 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/rsync.dll")
|
24 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
25 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/rsync.dll" "${CURRENT_PACKAGES_DIR}/bin/rsync.dll")
|
26 |
+
endif()
|
27 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll")
|
28 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
29 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/rsync.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/rsync.dll")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
33 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/librsync_export.h"
|
34 |
+
"# ifdef LIBRSYNC_STATIC_DEFINE"
|
35 |
+
"# if 1 /* LIBRSYNC_STATIC_DEFINE */"
|
36 |
+
)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
vcpkg_copy_pdbs()
|
40 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/librsync/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "librsync",
|
3 |
+
"version-semver": "2.3.4",
|
4 |
+
"description": "librsync is a library for calculating and applying network deltas, with an interface designed to ease integration into diverse network applications.",
|
5 |
+
"homepage": "http://librsync.sourcefrog.net/",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/librtmp/handshake.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/librtmp/handshake.h b/librtmp/handshake.h
|
2 |
+
index 98bf3c877..0819152bd 100644
|
3 |
+
--- a/librtmp/handshake.h
|
4 |
+
+++ b/librtmp/handshake.h
|
5 |
+
@@ -66,9 +66,9 @@ typedef gcry_cipher_hd_t RC4_handle;
|
6 |
+
#if OPENSSL_VERSION_NUMBER < 0x0090800 || !defined(SHA256_DIGEST_LENGTH)
|
7 |
+
#error Your OpenSSL is too old, need 0.9.8 or newer with SHA256
|
8 |
+
#endif
|
9 |
+
-#define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, key, len, EVP_sha256(), 0)
|
10 |
+
-#define HMAC_crunch(ctx, buf, len) HMAC_Update(&ctx, buf, len)
|
11 |
+
-#define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, dig, &dlen); HMAC_CTX_cleanup(&ctx)
|
12 |
+
+#define HMAC_setup(ctx, key, len) ctx = HMAC_CTX_new(); HMAC_Init_ex(ctx, key, len, EVP_sha256(), 0)
|
13 |
+
+#define HMAC_crunch(ctx, buf, len) HMAC_Update(ctx, buf, len)
|
14 |
+
+#define HMAC_finish(ctx, dig, dlen) HMAC_Final(ctx, dig, &dlen); HMAC_CTX_free(ctx)
|
15 |
+
|
16 |
+
typedef RC4_KEY * RC4_handle;
|
17 |
+
#define RC4_alloc(h) *h = malloc(sizeof(RC4_KEY))
|
18 |
+
@@ -114,7 +114,7 @@ static void InitRC4Encryption
|
19 |
+
{
|
20 |
+
uint8_t digest[SHA256_DIGEST_LENGTH];
|
21 |
+
unsigned int digestLen = 0;
|
22 |
+
- HMAC_CTX ctx;
|
23 |
+
+ HMAC_CTX *ctx;
|
24 |
+
|
25 |
+
RC4_alloc(rc4keyIn);
|
26 |
+
RC4_alloc(rc4keyOut);
|
27 |
+
@@ -263,7 +263,7 @@ HMACsha256(const uint8_t *message, size_t messageLen, const uint8_t *key,
|
28 |
+
size_t keylen, uint8_t *digest)
|
29 |
+
{
|
30 |
+
unsigned int digestLen;
|
31 |
+
- HMAC_CTX ctx;
|
32 |
+
+ HMAC_CTX *ctx;
|
33 |
+
|
34 |
+
HMAC_setup(ctx, key, keylen);
|
35 |
+
HMAC_crunch(ctx, message, messageLen);
|
cc-multilingual-main/cc_net/vcpkg/ports/librtmp/hashswf.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/librtmp/hashswf.c b/librtmp/hashswf.c
|
2 |
+
index 3c56b6922..964a64d01 100644
|
3 |
+
--- a/librtmp/hashswf.c
|
4 |
+
+++ b/librtmp/hashswf.c
|
5 |
+
@@ -57,10 +57,10 @@
|
6 |
+
#include <openssl/sha.h>
|
7 |
+
#include <openssl/hmac.h>
|
8 |
+
#include <openssl/rc4.h>
|
9 |
+
-#define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, (unsigned char *)key, len, EVP_sha256(), 0)
|
10 |
+
-#define HMAC_crunch(ctx, buf, len) HMAC_Update(&ctx, (unsigned char *)buf, len)
|
11 |
+
-#define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, (unsigned char *)dig, &dlen);
|
12 |
+
-#define HMAC_close(ctx) HMAC_CTX_cleanup(&ctx)
|
13 |
+
+#define HMAC_setup(ctx, key, len) ctx = HMAC_CTX_new(); HMAC_Init_ex(ctx, (unsigned char *)key, len, EVP_sha256(), 0)
|
14 |
+
+#define HMAC_crunch(ctx, buf, len) HMAC_Update(ctx, (unsigned char *)buf, len)
|
15 |
+
+#define HMAC_finish(ctx, dig, dlen) HMAC_Final(ctx, (unsigned char *)dig, &dlen);
|
16 |
+
+#define HMAC_close(ctx) HMAC_CTX_free(ctx)
|
17 |
+
#endif
|
18 |
+
|
19 |
+
extern void RTMP_TLS_Init();
|
20 |
+
@@ -289,7 +289,7 @@ leave:
|
21 |
+
struct info
|
22 |
+
{
|
23 |
+
z_stream *zs;
|
24 |
+
- HMAC_CTX ctx;
|
25 |
+
+ HMAC_CTX *ctx;
|
26 |
+
int first;
|
27 |
+
int zlib;
|
28 |
+
int size;
|
cc-multilingual-main/cc_net/vcpkg/ports/librtmp/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mirror/rtmpdump
|
4 |
+
REF c5f04a58fc2aeea6296ca7c44ee4734c18401aa3
|
5 |
+
SHA512 d97ac38672898a96412baa5f03d1e64d512ccefe15ead0a055ca039dc6057e2e620e046c28f4d7468e132b0b5a9eb9bd171250c1afa14da53760a0d7aae3c9e9
|
6 |
+
PATCHES
|
7 |
+
dh.patch #Openssl 1.1.1 patch
|
8 |
+
handshake.patch #Openssl 1.1.1 patch
|
9 |
+
hashswf.patch #Openssl 1.1.1 patch
|
10 |
+
fix_strncasecmp.patch
|
11 |
+
hide_netstackdump.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
15 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/librtmp.def" DESTINATION "${SOURCE_PATH}/librtmp")
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
24 |
+
|
25 |
+
# License and man
|
26 |
+
file(INSTALL "${SOURCE_PATH}/librtmp/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
27 |
+
file(INSTALL "${SOURCE_PATH}/librtmp/librtmp.3.html" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
28 |
+
|
29 |
+
vcpkg_copy_pdbs()
|