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/alac-decoder/CMakeLists.txt +48 -0
- cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/decomp.c +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/no-pragma-warning.patch +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-assign/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-assign/vcpkg.json +58 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-interval/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-interval/vcpkg.json +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-io/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-io/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-redis/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-redis/vcpkg.json +42 -0
- cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cjson/portfile.cmake +61 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cjson/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/CMakeLists.txt +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/portfile.cmake +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/unofficial-concurrentqueue-config.in.cmake +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-visibility.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-write-batch.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fmt/portfile.cmake +38 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fmt/usage +8 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fmt/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/dynamic_bzip2.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/portfile.cmake +46 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hashids/hashids.patch +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hashids/portfile.cmake +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hashids/vcpkg.json +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/portfile.cmake +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/portfile.cmake +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lager/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lager/vcpkg.json +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/cmake-config.patch +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libbson/fix-include-directory.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libbson/libbson-1.0-config.cmake +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libbson/portfile.cmake +73 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libbson/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libbson/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/CMakeLists.txt +72 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/cmake/package-config.cmakein +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/cmake/runtest.cmake +3 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/lmdb.def +58 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/getopt-win32.diff +50 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/lmdb-config.cmake +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/portfile.cmake +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lmdb/usage +4 -0
cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/CMakeLists.txt
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required (VERSION 3.9)
|
2 |
+
project (alac_decoder)
|
3 |
+
|
4 |
+
set(HEADERS
|
5 |
+
decomp.h
|
6 |
+
demux.h
|
7 |
+
stream.h
|
8 |
+
wavwriter.h
|
9 |
+
)
|
10 |
+
|
11 |
+
set (SRCS
|
12 |
+
decomp.c
|
13 |
+
alac.c
|
14 |
+
demux.c
|
15 |
+
stream.c
|
16 |
+
wavwriter.c
|
17 |
+
)
|
18 |
+
|
19 |
+
if(MSVC)
|
20 |
+
add_compile_options(/W4 -D_CRT_SECURE_NO_WARNINGS -DTARGET_OS_WIN32)
|
21 |
+
else()
|
22 |
+
add_compile_options(-Wno-error=implicit-function-declaration)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
include_directories(.)
|
26 |
+
|
27 |
+
add_library(libalac_decoder ${SRCS})
|
28 |
+
|
29 |
+
add_executable(alac_decoder main.c)
|
30 |
+
target_link_libraries(alac_decoder libalac_decoder)
|
31 |
+
|
32 |
+
install(
|
33 |
+
TARGETS libalac_decoder
|
34 |
+
RUNTIME DESTINATION bin
|
35 |
+
LIBRARY DESTINATION lib
|
36 |
+
ARCHIVE DESTINATION lib
|
37 |
+
)
|
38 |
+
|
39 |
+
if(NOT DISABLE_INSTALL_TOOLS)
|
40 |
+
install (
|
41 |
+
TARGETS alac_decoder
|
42 |
+
RUNTIME DESTINATION tools/alac-decoder
|
43 |
+
)
|
44 |
+
endif()
|
45 |
+
|
46 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
47 |
+
install(FILES ${HEADERS} DESTINATION include/alac_decoder)
|
48 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/decomp.c
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#include "decomp.h"
|
2 |
+
#include <stdint.h>
|
3 |
+
|
4 |
+
int set_endian()
|
5 |
+
{
|
6 |
+
uint32_t integer = 0x000000aa;
|
7 |
+
unsigned char *p = (unsigned char*)&integer;
|
8 |
+
|
9 |
+
if (p[0] == 0xaa) return 0;
|
10 |
+
else return 1;
|
11 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/no-pragma-warning.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/alac.c b/alac.c
|
2 |
+
index b829e29..8e8805f 100644
|
3 |
+
--- a/alac.c
|
4 |
+
+++ b/alac.c
|
5 |
+
@@ -284,7 +284,9 @@ static int count_leading_zeros(int input)
|
6 |
+
return output;
|
7 |
+
}
|
8 |
+
#else
|
9 |
+
+#if !defined(_MSC_VER)
|
10 |
+
#warning using generic count leading zeroes. You may wish to write one for your CPU / compiler
|
11 |
+
+#endif
|
12 |
+
static int count_leading_zeros(int input)
|
13 |
+
{
|
14 |
+
int output = 0;
|
cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "alac-decoder",
|
3 |
+
"version": "0.2",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "ALAC C implementation of a decoder, written from reverse engineering the file format",
|
6 |
+
"homepage": "https://distfiles.macports.org/alac_decoder",
|
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/boost-assign/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/assign
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 e6887a3000b356b3c343d4a14c63757870493c264eff22a2c00f3c8c3dec30891dec336dce6121497e97146e5ece404f7dc2088715bf9fc7704b3d4aae44c598
|
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-assign/vcpkg.json
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-assign",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost assign module",
|
6 |
+
"homepage": "https://github.com/boostorg/assign",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-array",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-config",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-core",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-move",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "boost-preprocessor",
|
27 |
+
"version>=": "1.84.0"
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "boost-ptr-container",
|
31 |
+
"version>=": "1.84.0"
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"name": "boost-range",
|
35 |
+
"version>=": "1.84.0"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"name": "boost-static-assert",
|
39 |
+
"version>=": "1.84.0"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"name": "boost-throw-exception",
|
43 |
+
"version>=": "1.84.0"
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"name": "boost-tuple",
|
47 |
+
"version>=": "1.84.0"
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"name": "boost-type-traits",
|
51 |
+
"version>=": "1.84.0"
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"name": "boost-vcpkg-helpers",
|
55 |
+
"version>=": "1.84.0"
|
56 |
+
}
|
57 |
+
]
|
58 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-interval/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/interval
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 5940cccab41e298e3eb442940f6dfccf00a89bdc5f9c9540eb530a8bfe5f19f06b3bcb2efaa81530e6712515946adc8a2854e28e0d395cd201e99b1068cd2511
|
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-interval/vcpkg.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-interval",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost interval module",
|
6 |
+
"homepage": "https://github.com/boostorg/interval",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-config",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-detail",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-logic",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-vcpkg-helpers",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
}
|
25 |
+
]
|
26 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-io/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/io
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 1297ead38cde0c8859a43270dbb6d4e47050350fc22a3152b7f0b2f488ac3ed841f9ebb0f6c8ba40c56a93a700d5bb4656f9498dd9153040385509493e5dd9b9
|
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-io/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-io",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost io module",
|
6 |
+
"homepage": "https://github.com/boostorg/io",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-config",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-vcpkg-helpers",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-redis/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/redis
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 f402f177ff0611655d44288c8cad08654db8d233e0f43baaf514c3d60438e5bb4a44a2dbf2ada0914123d09d591e703d6d9f00e409ae4dd01eeaf3d92cd5df17
|
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-redis/vcpkg.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-redis",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost redis module",
|
6 |
+
"homepage": "https://github.com/boostorg/redis",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-asio",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-assert",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-config",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-core",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "boost-mp11",
|
27 |
+
"version>=": "1.84.0"
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "boost-system",
|
31 |
+
"version>=": "1.84.0"
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"name": "boost-throw-exception",
|
35 |
+
"version>=": "1.84.0"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"name": "boost-vcpkg-helpers",
|
39 |
+
"version>=": "1.84.0"
|
40 |
+
}
|
41 |
+
]
|
42 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/bxzstr/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO tmaklin/bxzstr
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 e357eb99b007031a1b15b20077883ebb20b294fda97d4aa354ded04c8d0b398fdeae9e1e97747caf55699a8feadf8c10eb807a9c6a66837a0816002df34fb7a1
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(INSTALL
|
10 |
+
"${SOURCE_PATH}/include/bxzstr.hpp"
|
11 |
+
"${SOURCE_PATH}/include/bz_stream_wrapper.hpp"
|
12 |
+
"${SOURCE_PATH}/include/compression_types.hpp"
|
13 |
+
"${SOURCE_PATH}/include/config.hpp"
|
14 |
+
"${SOURCE_PATH}/include/lzma_stream_wrapper.hpp"
|
15 |
+
"${SOURCE_PATH}/include/stream_wrapper.hpp"
|
16 |
+
"${SOURCE_PATH}/include/strict_fstream.hpp"
|
17 |
+
"${SOURCE_PATH}/include/z_stream_wrapper.hpp"
|
18 |
+
"${SOURCE_PATH}/include/zstd_stream_wrapper.hpp"
|
19 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include/bxzstr")
|
20 |
+
|
21 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
22 |
+
|
23 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/cjson/portfile.cmake
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO DaveGamble/cJSON
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 4feebafa5225297fa3e6a7bf23f8d31b5c3e172f437078c5a07528522ad58ca2e9c72dd9e8611241d2b8321e9aa0a1a9af7743689d1c2001d1d9cb624aae6fa8
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(
|
10 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
11 |
+
FEATURES
|
12 |
+
utils ENABLE_CJSON_UTILS
|
13 |
+
)
|
14 |
+
|
15 |
+
if(CMAKE_HOST_WIN32)
|
16 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_PUBLIC_SYMBOLS)
|
17 |
+
string(COMPARE NOTEQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DENABLE_HIDDEN_SYMBOLS)
|
18 |
+
else()
|
19 |
+
set(ENABLE_PUBLIC_SYMBOLS OFF)
|
20 |
+
set(DENABLE_HIDDEN_SYMBOLS OFF)
|
21 |
+
endif()
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS
|
26 |
+
-DBUILD_SHARED_AND_STATIC_LIBS=OFF
|
27 |
+
-DCJSON_OVERRIDE_BUILD_SHARED_LIBS=OFF
|
28 |
+
-DENABLE_PUBLIC_SYMBOLS=${ENABLE_PUBLIC_SYMBOLS}
|
29 |
+
-DENABLE_HIDDEN_SYMBOLS=${DENABLE_HIDDEN_SYMBOLS}
|
30 |
+
-DENABLE_TARGET_EXPORT=ON # Export CMake config files
|
31 |
+
-DENABLE_CJSON_TEST=OFF
|
32 |
+
-DENABLE_CUSTOM_COMPILER_FLAGS=OFF
|
33 |
+
-DENABLE_FUZZING=OFF
|
34 |
+
${FEATURE_OPTIONS}
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_cmake_install()
|
38 |
+
|
39 |
+
vcpkg_copy_pdbs()
|
40 |
+
|
41 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cJSON)
|
42 |
+
|
43 |
+
file(REMOVE_RECURSE
|
44 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
45 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
46 |
+
)
|
47 |
+
|
48 |
+
file(READ "${CURRENT_PACKAGES_DIR}/include/cjson/cJSON.h" _contents)
|
49 |
+
if(ENABLE_PUBLIC_SYMBOLS)
|
50 |
+
string(REPLACE "defined(CJSON_HIDE_SYMBOLS)" "0 /* defined(CJSON_HIDE_SYMBOLS) */" _contents "${_contents}")
|
51 |
+
string(REPLACE "defined(CJSON_EXPORT_SYMBOLS)" "0 /* defined(CJSON_EXPORT_SYMBOLS) */" _contents "${_contents}")
|
52 |
+
string(REPLACE "defined(CJSON_IMPORT_SYMBOLS)" "1 /* defined(CJSON_IMPORT_SYMBOLS) */" _contents "${_contents}")
|
53 |
+
else()
|
54 |
+
string(REPLACE "defined(CJSON_HIDE_SYMBOLS)" "1 /* defined(CJSON_HIDE_SYMBOLS) */" _contents "${_contents}")
|
55 |
+
endif()
|
56 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/include/cjson/cJSON.h" "${_contents}")
|
57 |
+
|
58 |
+
# Handle copyright
|
59 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
60 |
+
|
61 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/cjson/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cjson",
|
3 |
+
"version": "1.7.17",
|
4 |
+
"description": "Ultralightweight JSON parser in ANSI C",
|
5 |
+
"homepage": "https://github.com/DaveGamble/cJSON",
|
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 |
+
"features": {
|
18 |
+
"utils": {
|
19 |
+
"description": "Enable building the cJSON_Utils library"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/CMakeLists.txt
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
project(concurrentqueue C)
|
3 |
+
|
4 |
+
add_library(concurrentqueue INTERFACE)
|
5 |
+
|
6 |
+
target_include_directories(concurrentqueue INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
7 |
+
|
8 |
+
install(TARGETS concurrentqueue
|
9 |
+
EXPORT concurrentqueue
|
10 |
+
)
|
11 |
+
install(EXPORT concurrentqueue FILE unofficial-concurrentqueue-targets.cmake NAMESPACE unofficial::concurrentqueue:: DESTINATION share/unofficial-concurrentqueue)
|
cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO cameron314/concurrentqueue
|
6 |
+
REF v${VERSION}
|
7 |
+
SHA512 a27306d1a7ad725daf5155a8e33a93efd29839708b2147ba703d036c4a92e04cbd8a505d804d2596ccb4dd797e88aca030b1cb34a4eaf09c45abb0ab55e604ea
|
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 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-concurrentqueue)
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
21 |
+
|
22 |
+
configure_file(
|
23 |
+
"${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-config.in.cmake"
|
24 |
+
"${CURRENT_PACKAGES_DIR}/share/unofficial-concurrentqueue/unofficial-concurrentqueue-config.cmake"
|
25 |
+
@ONLY
|
26 |
+
)
|
27 |
+
|
28 |
+
file(GLOB HEADER_FILES "${SOURCE_PATH}/*.h")
|
29 |
+
file(INSTALL ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
30 |
+
|
31 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/unofficial-concurrentqueue-config.in.cmake
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static" AND NOT WIN32)
|
2 |
+
include(CMakeFindDependencyMacro)
|
3 |
+
find_dependency(Threads)
|
4 |
+
endif()
|
5 |
+
|
6 |
+
include(${CMAKE_CURRENT_LIST_DIR}/unofficial-concurrentqueue-targets.cmake)
|
cc-multilingual-main/cc_net/vcpkg/ports/concurrentqueue/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "concurrentqueue",
|
3 |
+
"version": "1.0.4",
|
4 |
+
"description": "A fast multi-producer, multi-consumer lock-free concurrent queue for C++11",
|
5 |
+
"homepage": "https://github.com/cameron314/concurrentqueue",
|
6 |
+
"license": "BSD-2-Clause OR BSL-1.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/fmt/fix-visibility.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/fmt/core.h b/include/fmt/core.h
|
2 |
+
index b51c1406..bb139509 100644
|
3 |
+
--- a/include/fmt/core.h
|
4 |
+
+++ b/include/fmt/core.h
|
5 |
+
@@ -2306,6 +2306,7 @@ enum class state { start, align, sign, hash, zero, width, precision, locale };
|
6 |
+
|
7 |
+
// Parses standard format specifiers.
|
8 |
+
template <typename Char>
|
9 |
+
+FMT_VISIBILITY("hidden") // Suppress an ld warning on macOS (#3769).
|
10 |
+
FMT_CONSTEXPR FMT_INLINE auto parse_format_specs(
|
11 |
+
const Char* begin, const Char* end, dynamic_format_specs<Char>& specs,
|
12 |
+
basic_format_parse_context<Char>& ctx, type arg_type) -> const Char* {
|
cc-multilingual-main/cc_net/vcpkg/ports/fmt/fix-write-batch.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 88c12148..967b53dd 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -260,7 +260,7 @@ if (FMT_MASTER_PROJECT AND CMAKE_GENERATOR MATCHES "Visual Studio")
|
6 |
+
join(netfxpath
|
7 |
+
"C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\"
|
8 |
+
".NETFramework\\v4.0")
|
9 |
+
- file(WRITE run-msbuild.bat "
|
10 |
+
+ file(WRITE "${CMAKE_BINARY_DIR}/run-msbuild.bat" "
|
11 |
+
${MSBUILD_SETUP}
|
12 |
+
${CMAKE_MAKE_PROGRAM} -p:FrameworkPathOverride=\"${netfxpath}\" %*")
|
13 |
+
endif ()
|
cc-multilingual-main/cc_net/vcpkg/ports/fmt/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO fmtlib/fmt
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 27df90c681ec37e55625062a79e3b83589b6d7e94eff37a3b412bb8c1473f757a8adb727603acc9185c3490628269216843b7d7bd5a3cb37f0029da5d1495ffa
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-visibility.patch
|
9 |
+
fix-write-batch.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DFMT_CMAKE_DIR=share/fmt
|
16 |
+
-DFMT_TEST=OFF
|
17 |
+
-DFMT_DOC=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_cmake_config_fixup()
|
22 |
+
vcpkg_fixup_pkgconfig()
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
|
25 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
26 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/fmt/core.h
|
27 |
+
"defined(FMT_SHARED)"
|
28 |
+
"1"
|
29 |
+
)
|
30 |
+
endif()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE
|
33 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
34 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
35 |
+
)
|
36 |
+
|
37 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
38 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/fmt/usage
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package fmt provides CMake targets:
|
2 |
+
|
3 |
+
find_package(fmt CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE fmt::fmt)
|
5 |
+
|
6 |
+
# Or use the header-only version
|
7 |
+
find_package(fmt CONFIG REQUIRED)
|
8 |
+
target_link_libraries(main PRIVATE fmt::fmt-header-only)
|
cc-multilingual-main/cc_net/vcpkg/ports/fmt/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "fmt",
|
3 |
+
"version": "10.2.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams.",
|
6 |
+
"homepage": "https://github.com/fmtlib/fmt",
|
7 |
+
"license": "MIT",
|
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/graphicsmagick/dynamic_bzip2.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From: Josue Andrade Gomes <[email protected]>
|
2 |
+
Date: Tue, 18 Apr 2017 09:56:53 -0300
|
3 |
+
Subject: [PATCH] dynamic bzip2 only if dynamic gm
|
4 |
+
|
5 |
+
---
|
6 |
+
|
7 |
+
diff -ur a/magick/nt_base.h b/magick/nt_base.h
|
8 |
+
--- a/magick/nt_base.h Mon May 30 14:19:55 2016
|
9 |
+
+++ b/magick/nt_base.h Mon Apr 17 15:10:01 2017
|
10 |
+
@@ -275,7 +275,9 @@
|
11 |
+
*/
|
12 |
+
#if defined(HasBZLIB)
|
13 |
+
# if defined(_WIN32)
|
14 |
+
-# define BZ_IMPORT 1
|
15 |
+
+# if defined(_DLL) // For vcpkg. Building GM DLL requires BZIP2 DLL too, otherwise static
|
16 |
+
+# define BZ_IMPORT 1
|
17 |
+
+# endif
|
18 |
+
# endif
|
19 |
+
#endif /* defined(HasBZLIB) */
|
20 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/graphicsmagick/portfile.cmake
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(GM_VERSION 1.3.41)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO graphicsmagick/graphicsmagick
|
6 |
+
REF ${GM_VERSION}
|
7 |
+
FILENAME "GraphicsMagick-${GM_VERSION}-windows.7z"
|
8 |
+
SHA512 4790081136af67bf406b94e3de88feff295cc98fd3b125776e014436b12dbb31331af4ee4f8497ccc39d4afda08145b5e4bfeb45b3210a50e17b14e4dc2a220d
|
9 |
+
PATCHES
|
10 |
+
# GM always requires a dynamic BZIP2. This patch makes this dependent if _DLL is defined
|
11 |
+
dynamic_bzip2.patch
|
12 |
+
|
13 |
+
# Bake GM's own modules into the .dll itself. This fixes a bug whereby
|
14 |
+
# 'vcpkg install graphicsmagick' did not lead to a copy of GM that could
|
15 |
+
# load either PNG or JPEG files (due to missing GM Modules, with names
|
16 |
+
# matching "IM_*.DLL").
|
17 |
+
disable_graphicsmagick_modules.patch
|
18 |
+
)
|
19 |
+
|
20 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
21 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/magick_types.h" DESTINATION "${SOURCE_PATH}/magick")
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS_DEBUG
|
26 |
+
-DINSTALL_HEADERS=OFF
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
|
31 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-graphicsmagick)
|
32 |
+
|
33 |
+
# copy license
|
34 |
+
file(INSTALL "${SOURCE_PATH}/Copyright.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
35 |
+
|
36 |
+
# copy config
|
37 |
+
file(COPY "${SOURCE_PATH}/config/colors.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config")
|
38 |
+
file(COPY "${SOURCE_PATH}/config/log.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config")
|
39 |
+
file(COPY "${SOURCE_PATH}/config/modules.mgk" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/config")
|
40 |
+
|
41 |
+
file(READ "${SOURCE_PATH}/config/type-windows.mgk.in" TYPE_MGK)
|
42 |
+
string(REPLACE "@windows_font_dir@" "$ENV{SYSTEMROOT}/Fonts/" TYPE_MGK "${TYPE_MGK}")
|
43 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/graphicsmagick/config/type.mgk" "${TYPE_MGK}")
|
44 |
+
|
45 |
+
configure_file("${SOURCE_PATH}/config/delegates.mgk.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/config/delegates.mgk" @ONLY)
|
46 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/hashids/hashids.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/hashids.c b/src/hashids.c
|
2 |
+
index 7f0b2f3..8d68509 100644
|
3 |
+
--- a/src/hashids.c
|
4 |
+
+++ b/src/hashids.c
|
5 |
+
@@ -6,6 +6,13 @@
|
6 |
+
|
7 |
+
#include "hashids.h"
|
8 |
+
|
9 |
+
+#ifdef _MSC_VER
|
10 |
+
+#include <BaseTsd.h>
|
11 |
+
+typedef SSIZE_T ssize_t;
|
12 |
+
+#else
|
13 |
+
+#include <unistd.h>
|
14 |
+
+#endif
|
15 |
+
+
|
16 |
+
/* branch prediction hinting */
|
17 |
+
#ifndef __has_builtin
|
18 |
+
# define __has_builtin(x) (0)
|
cc-multilingual-main/cc_net/vcpkg/ports/hashids/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO tzvetkoff/hashids.c
|
6 |
+
REF 11ea51510ba968438eb9b1bc3f8c9981be731521 # v1.2.1
|
7 |
+
SHA512 a6c066ff6544502f1c0ed55afcf994e6ed52b207e428de58992ec9e3ffef1e6fdb4439f2565e7cb039065403f497fcf8e95a8e3b9843e4f0b9bef22853816270
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
hashids.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
set(EXTRA_OPTS "")
|
14 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
15 |
+
# $LIBS is an environment variable that vcpkg already pre-populated with some libraries.
|
16 |
+
# We need to re-purpose it when passing LIBS option to make to avoid overriding the vcpkg's own list.
|
17 |
+
list(APPEND EXTRA_OPTS "LIBS=-lgetopt \$LIBS")
|
18 |
+
endif()
|
19 |
+
|
20 |
+
vcpkg_configure_make(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
22 |
+
AUTOCONFIG
|
23 |
+
OPTIONS
|
24 |
+
${EXTRA_OPTS}
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_install_make()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
30 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/hashids" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/hashids/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "hashids",
|
3 |
+
"version": "1.2.1",
|
4 |
+
"description": "generate short unique ids from integers",
|
5 |
+
"homepage": "https://hashids.org/c/",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "getopt",
|
10 |
+
"platform": "windows & !mingw"
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO open-source-parsers/jsoncpp
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 1d06e044759b1e1a4cc4960189dd7e001a0a4389d7239a6d59295af995a553518e4e0337b4b4b817e70da5d9731a4c98655af90791b6287870b5ff8d73ad8873
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" JSONCPP_STATIC)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DJSONCPP_WITH_CMAKE_PACKAGE=ON
|
16 |
+
-DBUILD_STATIC_LIBS=${JSONCPP_STATIC}
|
17 |
+
-DJSONCPP_STATIC_WINDOWS_RUNTIME=${STATIC_CRT}
|
18 |
+
-DJSONCPP_WITH_PKGCONFIG_SUPPORT=ON
|
19 |
+
-DJSONCPP_WITH_POST_BUILD_UNITTEST=OFF
|
20 |
+
-DJSONCPP_WITH_TESTS=OFF
|
21 |
+
-DJSONCPP_WITH_EXAMPLE=OFF
|
22 |
+
-DBUILD_OBJECT_LIBS=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/jsoncpp)
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
|
31 |
+
vcpkg_copy_pdbs()
|
32 |
+
vcpkg_fixup_pkgconfig()
|
33 |
+
|
34 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/jsoncpp/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "jsoncpp",
|
3 |
+
"version": "1.9.5",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "jsoncpp is an implementation of a JSON reader and writer in C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format that it is easy to parse and redeable for human.",
|
6 |
+
"homepage": "https://github.com/open-source-parsers/jsoncpp",
|
7 |
+
"license": "MIT",
|
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/kdalgorithms/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO KDAB/KDAlgorithms
|
5 |
+
REF ${VERSION}
|
6 |
+
SHA512 2229712954c377e9167b78fc931988f33c82349baeae9a64e3506f66fd96508e8482ce777c4ef8928c2ab38cbeffc413e96c75a9f41902080230f8c434782232
|
7 |
+
)
|
8 |
+
|
9 |
+
file(INSTALL "${SOURCE_PATH}/src/kdalgorithms.h" "${SOURCE_PATH}/src/kdalgorithms_bits"
|
10 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
11 |
+
|
12 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
13 |
+
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage"
|
15 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
kdalgorithms is header-only and can be used from CMake via:
|
2 |
+
|
3 |
+
find_path(KDALGORITHMS_INCLUDE_DIRS "kdalgorithms.h" PATH_SUFFIXES kdalgorithms)
|
4 |
+
target_include_directories(main PRIVATE ${KDALGORITHMS_INCLUDE_DIRS})
|
cc-multilingual-main/cc_net/vcpkg/ports/kdalgorithms/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kdalgorithms",
|
3 |
+
"version": "1.2",
|
4 |
+
"description": "KDAB's algorithm helpers for C++14 and up",
|
5 |
+
"homepage": "https://github.com/KDAB/KDAlgorithms",
|
6 |
+
"license": "MIT"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/lager/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO arximboldi/lager
|
4 |
+
REF 2016df38be90ee176bcb73ea414be2318bc1ef31
|
5 |
+
SHA512 07d9f2cf128ad2e751abbfaa03969524ffba785ac2696e6b94ee8e28166fc3ab427de2fc6a98eba50d2f936879b9e878a011c3ba9a25ba39109e7939d39c4902
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
docs lager_BUILD_DOCS
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS
|
17 |
+
-Dlager_BUILD_EXAMPLES=OFF
|
18 |
+
-Dlager_BUILD_TESTS=OFF
|
19 |
+
${FEATURE_OPTIONS}
|
20 |
+
)
|
21 |
+
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Lager)
|
25 |
+
|
26 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/lager/resources_path.hpp" "${CURRENT_PACKAGES_DIR}" ".")
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
29 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/lager/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lager",
|
3 |
+
"version-date": "2023-03-19",
|
4 |
+
"description": "C++ library for value-oriented design using the unidirectional data-flow architecture",
|
5 |
+
"homepage": "https://sinusoid.es/lager/",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-hana",
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"zug"
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"docs": {
|
20 |
+
"description": "Build documentation"
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/cmake-config.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMAKE/lapack-config-install.cmake.in b/CMAKE/lapack-config-install.cmake.in
|
2 |
+
index 7760960..102eb92 100644
|
3 |
+
--- a/CMAKE/lapack-config-install.cmake.in
|
4 |
+
+++ b/CMAKE/lapack-config-install.cmake.in
|
5 |
+
@@ -12,8 +12,14 @@ unset(_LAPACK_TARGET)
|
6 |
+
set(LAPACK_Fortran_COMPILER_ID "@CMAKE_Fortran_COMPILER_ID@")
|
7 |
+
|
8 |
+
# Report the blas and lapack raw or imported libraries.
|
9 |
+
-set(LAPACK_blas_LIBRARIES "@BLAS_LIBRARIES@")
|
10 |
+
+if("@USE_OPTIMIZED_BLAS@")
|
11 |
+
+ include(CMakeFindDependencyMacro)
|
12 |
+
+ find_dependency(BLAS) # For current build type
|
13 |
+
+ set(LAPACK_blas_LIBRARIES "${BLAS_LIBRARIES}")
|
14 |
+
+else()
|
15 |
+
+ set(LAPACK_blas_LIBRARIES "@BLASLIB@") # target carries link libraries
|
16 |
+
+endif()
|
17 |
+
set(LAPACK_lapack_LIBRARIES "@LAPACK_LIBRARIES@")
|
18 |
+
-set(LAPACK_LIBRARIES ${LAPACK_blas_LIBRARIES} ${LAPACK_lapack_LIBRARIES})
|
19 |
+
+set(LAPACK_LIBRARIES ${LAPACK_lapack_LIBRARIES}) # target carries link libraries
|
20 |
+
|
21 |
+
unset(_LAPACK_SELF_DIR)
|
cc-multilingual-main/cc_net/vcpkg/ports/libbson/fix-include-directory.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/libbson/CMakeLists.txt b/src/libbson/CMakeLists.txt
|
2 |
+
index e3eaca4..ef3644b 100644
|
3 |
+
--- a/src/libbson/CMakeLists.txt
|
4 |
+
+++ b/src/libbson/CMakeLists.txt
|
5 |
+
@@ -302,7 +302,7 @@ endif () # ENABLE_EXAMPLES
|
6 |
+
# 8888888 888 888 88888P' "Y888 "Y888888 888 888
|
7 |
+
|
8 |
+
set (BSON_HEADER_INSTALL_DIR
|
9 |
+
- "${CMAKE_INSTALL_INCLUDEDIR}/libbson-${BSON_API_VERSION}"
|
10 |
+
+ "${CMAKE_INSTALL_INCLUDEDIR}"
|
11 |
+
)
|
12 |
+
function(install_export_target target)
|
13 |
+
# Tell pkg-config where the headers are going:
|
cc-multilingual-main/cc_net/vcpkg/ports/libbson/libbson-1.0-config.cmake
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(CMakeFindDependencyMacro)
|
2 |
+
find_dependency(libbson-static-1.0 ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} CONFIG)
|
3 |
+
set(BSON_DEFINITIONS "${BSON_STATIC_DEFINITIONS}")
|
4 |
+
set(BSON_INCLUDE_DIRS "${BSON_STATIC_INCLUDE_DIRS}")
|
5 |
+
set(BSON_LIBRARIES "${BSON_STATIC_LIBRARIES}")
|
cc-multilingual-main/cc_net/vcpkg/ports/libbson/portfile.cmake
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mongodb/mongo-c-driver
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 ef55fadf66a28a7e9dd513ce9cd36fc91898775d5d20903193b1f321f7814129b1d56c980cfc81cf348830d7bbfde81885585fbcf498ead287675b67c91d470d
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-include-directory.patch # vcpkg legacy decision
|
9 |
+
)
|
10 |
+
file(WRITE "${SOURCE_PATH}/VERSION_CURRENT" "${VERSION}")
|
11 |
+
|
12 |
+
# Cannot use string(COMPARE EQUAL ...)
|
13 |
+
set(ENABLE_STATIC OFF)
|
14 |
+
set(ENABLE_SHARED OFF)
|
15 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
16 |
+
set(ENABLE_STATIC ON)
|
17 |
+
else()
|
18 |
+
set(ENABLE_SHARED ON)
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
DISABLE_PARALLEL_CONFIGURE # because it writes the file VERSION_CURRENT in the source directory
|
24 |
+
OPTIONS
|
25 |
+
"-DBUILD_VERSION=${VERSION}"
|
26 |
+
-DENABLE_BSON=ON
|
27 |
+
-DENABLE_EXAMPLES=OFF
|
28 |
+
-DENABLE_ICU=OFF
|
29 |
+
-DENABLE_MONGOC=OFF
|
30 |
+
-DENABLE_SASL=OFF
|
31 |
+
-DENABLE_SNAPPY=OFF
|
32 |
+
-DENABLE_SRV=OFF
|
33 |
+
-DENABLE_SSL=OFF
|
34 |
+
-DENABLE_STATIC=${ENABLE_STATIC}
|
35 |
+
-DENABLE_SHARED=${ENABLE_SHARED}
|
36 |
+
-DENABLE_TESTS=OFF
|
37 |
+
-DENABLE_UNINSTALL=OFF
|
38 |
+
-DENABLE_ZLIB=SYSTEM
|
39 |
+
-DENABLE_ZSTD=OFF
|
40 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Python=ON
|
41 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Python3=ON
|
42 |
+
MAYBE_UNUSED_VARIABLES
|
43 |
+
ENABLE_ICU
|
44 |
+
)
|
45 |
+
vcpkg_cmake_install()
|
46 |
+
vcpkg_copy_pdbs()
|
47 |
+
vcpkg_fixup_pkgconfig()
|
48 |
+
|
49 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME bson-1.0 CONFIG_PATH "lib/cmake/bson-1.0" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
50 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
51 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/bson/bson-macros.h"
|
52 |
+
"#define BSON_MACROS_H" "#define BSON_MACROS_H\n#ifndef BSON_STATIC\n#define BSON_STATIC\n#endif")
|
53 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME libbson-static-1.0 CONFIG_PATH "lib/cmake/libbson-static-1.0")
|
54 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/libbson-1.0")
|
55 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/libbson-1.0-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/libbson-1.0")
|
56 |
+
else()
|
57 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME libbson-1.0 CONFIG_PATH "lib/cmake/libbson-1.0")
|
58 |
+
endif()
|
59 |
+
|
60 |
+
file(REMOVE_RECURSE
|
61 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
62 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
63 |
+
"${CURRENT_PACKAGES_DIR}/share/mongo-c-driver"
|
64 |
+
)
|
65 |
+
|
66 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
67 |
+
|
68 |
+
vcpkg_install_copyright(
|
69 |
+
FILE_LIST
|
70 |
+
"${SOURCE_PATH}/COPYING"
|
71 |
+
"${SOURCE_PATH}/THIRD_PARTY_NOTICES"
|
72 |
+
"${SOURCE_PATH}/src/libbson/THIRD_PARTY_NOTICES"
|
73 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/libbson/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
libbson provides CMake targets:
|
2 |
+
|
3 |
+
find_package(bson-1.0 CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:mongo::bson_static>,mongo::bson_static,mongo::bson_shared>)
|
cc-multilingual-main/cc_net/vcpkg/ports/libbson/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libbson",
|
3 |
+
"version": "1.26.1",
|
4 |
+
"description": "libbson is a library providing useful routines related to building, parsing, and iterating BSON documents.",
|
5 |
+
"homepage": "https://github.com/mongodb/mongo-c-driver/tree/master/src/libbson",
|
6 |
+
"license": null,
|
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/lmdb/cmake/CMakeLists.txt
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.27)
|
2 |
+
|
3 |
+
project(lmdb)
|
4 |
+
|
5 |
+
option(LMDB_BUILD_TOOLS "Build lmdb tools" OFF)
|
6 |
+
option(LMDB_BUILD_TESTS "Build lmdb tests" OFF)
|
7 |
+
option(LMDB_INSTALL_HEADERS "Install LMDB header files" ON)
|
8 |
+
|
9 |
+
include(GNUInstallDirs)
|
10 |
+
|
11 |
+
add_library(lmdb mdb.c lmdb.h midl.c midl.h)
|
12 |
+
if(WIN32 AND BUILD_SHARED_LIBS)
|
13 |
+
target_sources(lmdb PRIVATE lmdb.def)
|
14 |
+
endif()
|
15 |
+
|
16 |
+
set(THREADS_PREFER_PTHREAD_FLAG 1)
|
17 |
+
find_package(Threads REQUIRED)
|
18 |
+
target_link_libraries(lmdb PRIVATE Threads::Threads)
|
19 |
+
|
20 |
+
install(TARGETS lmdb
|
21 |
+
EXPORT unofficial-lmdb-targets
|
22 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
23 |
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
24 |
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
25 |
+
)
|
26 |
+
|
27 |
+
if(LMDB_INSTALL_HEADERS)
|
28 |
+
install(FILES lmdb.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
29 |
+
endif()
|
30 |
+
target_include_directories(lmdb INTERFACE "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
|
31 |
+
|
32 |
+
include(CMakePackageConfigHelpers)
|
33 |
+
configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/package-config.cmakein" "${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config.cmake"
|
34 |
+
INSTALL_DESTINATION "${CMAKE_INSTALL_DATADIR}/lmdb"
|
35 |
+
)
|
36 |
+
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config-version.cmake"
|
37 |
+
VERSION "${LMDB_VERSION}"
|
38 |
+
COMPATIBILITY SameMajorVersion
|
39 |
+
)
|
40 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/unofficial-lmdb-config-version.cmake"
|
41 |
+
DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-lmdb"
|
42 |
+
)
|
43 |
+
install(EXPORT unofficial-lmdb-targets
|
44 |
+
NAMESPACE unofficial::lmdb::
|
45 |
+
DESTINATION "${CMAKE_INSTALL_DATADIR}/unofficial-lmdb"
|
46 |
+
)
|
47 |
+
|
48 |
+
if(LMDB_BUILD_TOOLS)
|
49 |
+
set(getopt_libs "")
|
50 |
+
if(WIN32 AND NOT MINGW)
|
51 |
+
find_package(unofficial-getopt-win32 REQUIRED)
|
52 |
+
set(getopt_libs "unofficial::getopt-win32::getopt")
|
53 |
+
endif()
|
54 |
+
foreach(tool IN ITEMS mdb_copy mdb_dump mdb_load mdb_stat)
|
55 |
+
add_executable(${tool} ${tool}.c)
|
56 |
+
target_link_libraries(${tool} lmdb ${getopt_libs})
|
57 |
+
install(TARGETS ${tool}
|
58 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
59 |
+
)
|
60 |
+
endforeach()
|
61 |
+
endif()
|
62 |
+
|
63 |
+
if(LMDB_BUILD_TESTS)
|
64 |
+
enable_testing()
|
65 |
+
# mtest6 needs more symbols than provided by some builds of lmdb
|
66 |
+
foreach(test IN ITEMS mtest mtest2 mtest3 mtest4 mtest5)
|
67 |
+
add_executable(${test} ${test}.c)
|
68 |
+
target_link_libraries(${test} lmdb)
|
69 |
+
add_test(NAME ${test}
|
70 |
+
COMMAND "${CMAKE_COMMAND}" "-DTEST=$<TARGET_FILE:${test}" -P "${CMAKE_CURRENT_SOURCE_DIR}/cmake/runtest.cmake")
|
71 |
+
endforeach()
|
72 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/cmake/package-config.cmakein
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include(CMakeFindDependencyMacro)
|
4 |
+
set(THREADS_PREFER_PTHREAD_FLAG 1)
|
5 |
+
find_dependency(Threads)
|
6 |
+
|
7 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-lmdb-targets.cmake")
|
cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/cmake/runtest.cmake
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
file(REMOVE_RECURSE testdb)
|
2 |
+
file(MAKE_DIRECTORY testdb)
|
3 |
+
execute_process(COMMAND "${TEST}")
|
cc-multilingual-main/cc_net/vcpkg/ports/lmdb/cmake/lmdb.def
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
LIBRARY lmdb
|
2 |
+
EXPORTS
|
3 |
+
mdb_version
|
4 |
+
mdb_strerror
|
5 |
+
mdb_env_create
|
6 |
+
mdb_env_open
|
7 |
+
mdb_env_copy
|
8 |
+
mdb_env_copyfd
|
9 |
+
mdb_env_copy2
|
10 |
+
mdb_env_copyfd2
|
11 |
+
mdb_env_stat
|
12 |
+
mdb_env_info
|
13 |
+
mdb_env_sync
|
14 |
+
mdb_env_close
|
15 |
+
mdb_env_set_flags
|
16 |
+
mdb_env_get_flags
|
17 |
+
mdb_env_get_path
|
18 |
+
mdb_env_get_fd
|
19 |
+
mdb_env_set_mapsize
|
20 |
+
mdb_env_set_maxreaders
|
21 |
+
mdb_env_get_maxreaders
|
22 |
+
mdb_env_set_maxdbs
|
23 |
+
mdb_env_get_maxkeysize
|
24 |
+
mdb_env_set_userctx
|
25 |
+
mdb_env_get_userctx
|
26 |
+
mdb_env_set_assert
|
27 |
+
mdb_txn_begin
|
28 |
+
mdb_txn_env
|
29 |
+
mdb_txn_id
|
30 |
+
mdb_txn_commit
|
31 |
+
mdb_txn_abort
|
32 |
+
mdb_txn_reset
|
33 |
+
mdb_txn_renew
|
34 |
+
mdb_dbi_open
|
35 |
+
mdb_stat
|
36 |
+
mdb_dbi_flags
|
37 |
+
mdb_dbi_close
|
38 |
+
mdb_drop
|
39 |
+
mdb_set_compare
|
40 |
+
mdb_set_dupsort
|
41 |
+
mdb_set_relfunc
|
42 |
+
mdb_set_relctx
|
43 |
+
mdb_get
|
44 |
+
mdb_put
|
45 |
+
mdb_del
|
46 |
+
mdb_cursor_open
|
47 |
+
mdb_cursor_close
|
48 |
+
mdb_cursor_renew
|
49 |
+
mdb_cursor_txn
|
50 |
+
mdb_cursor_dbi
|
51 |
+
mdb_cursor_get
|
52 |
+
mdb_cursor_put
|
53 |
+
mdb_cursor_del
|
54 |
+
mdb_cursor_count
|
55 |
+
mdb_cmp
|
56 |
+
mdb_dcmp
|
57 |
+
mdb_reader_list
|
58 |
+
mdb_reader_check
|
cc-multilingual-main/cc_net/vcpkg/ports/lmdb/getopt-win32.diff
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libraries/liblmdb/mdb_dump.c b/libraries/liblmdb/mdb_dump.c
|
2 |
+
index 7ea72e8..198230c 100644
|
3 |
+
--- a/libraries/liblmdb/mdb_dump.c
|
4 |
+
+++ b/libraries/liblmdb/mdb_dump.c
|
5 |
+
@@ -16,7 +16,11 @@
|
6 |
+
#include <stdlib.h>
|
7 |
+
#include <string.h>
|
8 |
+
#include <ctype.h>
|
9 |
+
+#ifdef _MSC_VER
|
10 |
+
+#include <getopt.h>
|
11 |
+
+#else
|
12 |
+
#include <unistd.h>
|
13 |
+
+#endif
|
14 |
+
#include <signal.h>
|
15 |
+
#include "lmdb.h"
|
16 |
+
|
17 |
+
diff --git a/libraries/liblmdb/mdb_load.c b/libraries/liblmdb/mdb_load.c
|
18 |
+
index d2a3cec..f050286 100644
|
19 |
+
--- a/libraries/liblmdb/mdb_load.c
|
20 |
+
+++ b/libraries/liblmdb/mdb_load.c
|
21 |
+
@@ -16,7 +16,11 @@
|
22 |
+
#include <errno.h>
|
23 |
+
#include <string.h>
|
24 |
+
#include <ctype.h>
|
25 |
+
+#ifdef _MSC_VER
|
26 |
+
+#include <getopt.h>
|
27 |
+
+#else
|
28 |
+
#include <unistd.h>
|
29 |
+
+#endif
|
30 |
+
#include "lmdb.h"
|
31 |
+
|
32 |
+
#define PRINT 1
|
33 |
+
diff --git a/libraries/liblmdb/mdb_stat.c b/libraries/liblmdb/mdb_stat.c
|
34 |
+
index 3a81175..f1f4a75 100644
|
35 |
+
--- a/libraries/liblmdb/mdb_stat.c
|
36 |
+
+++ b/libraries/liblmdb/mdb_stat.c
|
37 |
+
@@ -14,7 +14,13 @@
|
38 |
+
#include <stdio.h>
|
39 |
+
#include <stdlib.h>
|
40 |
+
#include <string.h>
|
41 |
+
+#ifdef _MSC_VER
|
42 |
+
+#include <getopt.h>
|
43 |
+
+#include <BaseTsd.h>
|
44 |
+
+typedef SSIZE_T ssize_t;
|
45 |
+
+#else
|
46 |
+
#include <unistd.h>
|
47 |
+
+#endif
|
48 |
+
#include "lmdb.h"
|
49 |
+
|
50 |
+
#ifdef _WIN32
|
cc-multilingual-main/cc_net/vcpkg/ports/lmdb/lmdb-config.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
file(READ "${CMAKE_CURRENT_LIST_DIR}/../lmdb/usage" usage)
|
2 |
+
message(WARNING "find_package(lmdb) is deprecated.\n${usage}")
|
3 |
+
|
4 |
+
include(CMakeFindDependencyMacro)
|
5 |
+
find_dependency(unofficial-lmdb ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION})
|
6 |
+
|
7 |
+
set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include")
|
8 |
+
set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}")
|
9 |
+
set(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES lmdb)
|
10 |
+
|
11 |
+
string(TOUPPER "${CMAKE_FIND_PACKAGE_NAME}" UPPER_PACKAGE_NAME)
|
12 |
+
set(${UPPER_PACKAGE_NAME}_INCLUDE_DIR "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}")
|
13 |
+
set(${UPPER_PACKAGE_NAME}_INCLUDE_DIRS "${${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR}")
|
14 |
+
set(${UPPER_PACKAGE_NAME}_LIBRARIES lmdb)
|
cc-multilingual-main/cc_net/vcpkg/ports/lmdb/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO LMDB/lmdb
|
4 |
+
REF "LMDB_${VERSION}"
|
5 |
+
SHA512 a5763ff94af0b5bbc2406c52890797e6232e77593bacdb240441ed30c8634e4e6de6eba206880475544e21561ccd0be2dee16733d6ec35483eb1dbbb81913a8d
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
getopt-win32.diff
|
9 |
+
)
|
10 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/cmake/" DESTINATION "${SOURCE_PATH}/libraries/liblmdb")
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS options_release
|
13 |
+
FEATURES
|
14 |
+
tools LMDB_BUILD_TOOLS
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}/libraries/liblmdb"
|
19 |
+
OPTIONS
|
20 |
+
"-DLMDB_VERSION=${VERSION}"
|
21 |
+
OPTIONS_RELEASE
|
22 |
+
${options_release}
|
23 |
+
OPTIONS_DEBUG
|
24 |
+
-DLMDB_INSTALL_HEADERS=OFF
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-lmdb)
|
30 |
+
|
31 |
+
if(LMDB_BUILD_TOOLS)
|
32 |
+
vcpkg_copy_tools(TOOL_NAMES mdb_copy mdb_dump mdb_load mdb_stat AUTO_CLEAN)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
36 |
+
|
37 |
+
file(COPY "${CURRENT_PORT_DIR}/lmdb-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
38 |
+
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
39 |
+
vcpkg_install_copyright(
|
40 |
+
FILE_LIST
|
41 |
+
"${SOURCE_PATH}/libraries/liblmdb/COPYRIGHT"
|
42 |
+
"${SOURCE_PATH}/libraries/liblmdb/LICENSE"
|
43 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/lmdb/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
lmdb provides CMake targets:
|
2 |
+
|
3 |
+
find_package(unofficial-lmdb CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE unofficial::lmdb::lmdb)
|