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/azure-core-cpp/portfile.cmake +41 -0
- cc-multilingual-main/cc_net/vcpkg/ports/azure-core-cpp/vcpkg.json +81 -0
- cc-multilingual-main/cc_net/vcpkg/ports/azure-messaging-eventhubs-cpp/portfile.cmake +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/azure-messaging-eventhubs-cpp/vcpkg.json +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-process/vcpkg.json +88 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-property-map-parallel/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-property-map-parallel/vcpkg.json +67 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cmocka/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cmocka/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cocoyaxi/fix-event-destruct.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cocoyaxi/install-dll.patch +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cocoyaxi/portfile.cmake +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cocoyaxi/vcpkg.json +39 -0
- cc-multilingual-main/cc_net/vcpkg/ports/darts-clone/CMakeLists.txt +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/darts-clone/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/darts-clone/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/directxmesh/portfile.cmake +81 -0
- cc-multilingual-main/cc_net/vcpkg/ports/directxmesh/usage +8 -0
- cc-multilingual-main/cc_net/vcpkg/ports/directxmesh/vcpkg.json +46 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dylib/portfile.cmake +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dylib/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ed25519/CMakeLists.txt +64 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ed25519/usage +3 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ed25519/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/folly/boost-1.70.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/folly/disable-uninitialized-resize-on-new-stl.patch +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/folly/fix-unistd-include.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/folly/fix-windows-minmax.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/folly/openssl.patch +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/folly/reorder-glog-gflags.patch +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/folly/vcpkg-cmake-wrapper.cmake +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/klein/find_simde_first.patch +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/klein/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/klein/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsnoretoast/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsnoretoast/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libtommath/portfile.cmake +91 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libtommath/vcpkg.json +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libvpx/0002-Fix-nasm-debug-format-flag.patch +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libvpx/0004-remove-library-suffixes.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libvpx/0005-fix-arm64-build.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libvpx/portfile.cmake +312 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libvpx/unofficial-libvpx-config.cmake.in +49 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxext/portfile.cmake +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxext/vcpkg.json +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/linalg/portfile.cmake +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/linalg/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ogre/fix-dependencies.patch +220 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ogre/vcpkg.json +116 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pfultz2-linq/portfile.cmake +24 -0
cc-multilingual-main/cc_net/vcpkg/ports/azure-core-cpp/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NOTE: All changes made to this file will get overwritten by the next port release.
|
2 |
+
# Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp.
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO Azure/azure-sdk-for-cpp
|
7 |
+
REF azure-core_1.11.2
|
8 |
+
SHA512 c3606d987a25c3a50aad0a3e62cd8c0769c53d200b7b9b08dbc5d422358284335855944bcbbafb5214bba6cd84d15a395dc55b9efe9caf4f16bd3e7883dab0d2
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
curl BUILD_TRANSPORT_CURL
|
15 |
+
winhttp BUILD_TRANSPORT_WINHTTP
|
16 |
+
)
|
17 |
+
|
18 |
+
if(EXISTS "${SOURCE_PATH}/sdk/core/azure-core")
|
19 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/core/_")
|
20 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/_")
|
21 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/_")
|
22 |
+
|
23 |
+
file(RENAME "${SOURCE_PATH}/sdk/core/azure-core" "${SOURCE_PATH}/sdk/core/_")
|
24 |
+
file(RENAME "${SOURCE_PATH}/sdk/core" "${SOURCE_PATH}/sdk/_")
|
25 |
+
file(RENAME "${SOURCE_PATH}/sdk" "${SOURCE_PATH}/_")
|
26 |
+
endif()
|
27 |
+
|
28 |
+
vcpkg_cmake_configure(
|
29 |
+
SOURCE_PATH "${SOURCE_PATH}/_/_/_"
|
30 |
+
OPTIONS
|
31 |
+
${FEATURE_OPTIONS}
|
32 |
+
-DWARNINGS_AS_ERRORS=OFF
|
33 |
+
-DBUILD_TESTING=OFF
|
34 |
+
-DNO_AUTOMATIC_TRANSPORT_BUILD=ON
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_cmake_install()
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
39 |
+
vcpkg_cmake_config_fixup()
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
41 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/azure-core-cpp/vcpkg.json
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": [
|
3 |
+
"NOTE: All changes made to this file will get overwritten by the next port release.",
|
4 |
+
"Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp."
|
5 |
+
],
|
6 |
+
"name": "azure-core-cpp",
|
7 |
+
"version-semver": "1.11.2",
|
8 |
+
"description": [
|
9 |
+
"Microsoft Azure Core SDK for C++",
|
10 |
+
"This library provides shared primitives, abstractions, and helpers for modern Azure SDK client libraries written in the C++."
|
11 |
+
],
|
12 |
+
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/core/azure-core",
|
13 |
+
"license": "MIT",
|
14 |
+
"dependencies": [
|
15 |
+
{
|
16 |
+
"name": "openssl",
|
17 |
+
"platform": "!windows & !uwp"
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake",
|
21 |
+
"host": true
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"name": "vcpkg-cmake-config",
|
25 |
+
"host": true
|
26 |
+
}
|
27 |
+
],
|
28 |
+
"default-features": [
|
29 |
+
"http"
|
30 |
+
],
|
31 |
+
"features": {
|
32 |
+
"curl": {
|
33 |
+
"description": "Libcurl HTTP transport implementation",
|
34 |
+
"dependencies": [
|
35 |
+
{
|
36 |
+
"name": "azure-core-cpp",
|
37 |
+
"default-features": false
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"name": "curl",
|
41 |
+
"default-features": false,
|
42 |
+
"features": [
|
43 |
+
"ssl"
|
44 |
+
]
|
45 |
+
}
|
46 |
+
]
|
47 |
+
},
|
48 |
+
"http": {
|
49 |
+
"description": "All HTTP transport implementations available on the platform",
|
50 |
+
"dependencies": [
|
51 |
+
{
|
52 |
+
"name": "azure-core-cpp",
|
53 |
+
"default-features": false,
|
54 |
+
"features": [
|
55 |
+
"curl"
|
56 |
+
]
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"name": "azure-core-cpp",
|
60 |
+
"default-features": false,
|
61 |
+
"features": [
|
62 |
+
"curl",
|
63 |
+
"winhttp"
|
64 |
+
],
|
65 |
+
"platform": "windows & !uwp"
|
66 |
+
}
|
67 |
+
]
|
68 |
+
},
|
69 |
+
"winhttp": {
|
70 |
+
"description": "WinHTTP HTTP transport implementation",
|
71 |
+
"supports": "windows & !uwp",
|
72 |
+
"dependencies": [
|
73 |
+
{
|
74 |
+
"name": "azure-core-cpp",
|
75 |
+
"default-features": false
|
76 |
+
},
|
77 |
+
"wil"
|
78 |
+
]
|
79 |
+
}
|
80 |
+
}
|
81 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/azure-messaging-eventhubs-cpp/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NOTE: All changes made to this file will get overwritten by the next port release.
|
2 |
+
# Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp.
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO Azure/azure-sdk-for-cpp
|
7 |
+
REF azure-messaging-eventhubs_1.0.0-beta.6
|
8 |
+
SHA512 bb3cd12637c487e779ebc64c12b3f68fb83a2d0b4aba7db35fc62c7f39b2f499b07f5f3fcdbd3992cc10f8b97c3c5f0710ccc156b9a97a07617ef1bf5d42088c
|
9 |
+
)
|
10 |
+
|
11 |
+
if(EXISTS "${SOURCE_PATH}/sdk/eventhubs/azure-messaging-eventhubs")
|
12 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/eventhubs/_")
|
13 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/_")
|
14 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/_")
|
15 |
+
|
16 |
+
file(RENAME "${SOURCE_PATH}/sdk/eventhubs/azure-messaging-eventhubs" "${SOURCE_PATH}/sdk/eventhubs/_")
|
17 |
+
file(RENAME "${SOURCE_PATH}/sdk/eventhubs" "${SOURCE_PATH}/sdk/_")
|
18 |
+
file(RENAME "${SOURCE_PATH}/sdk" "${SOURCE_PATH}/_")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}/_/_/_"
|
23 |
+
OPTIONS
|
24 |
+
-DWARNINGS_AS_ERRORS=OFF
|
25 |
+
-DBUILD_TESTING=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
vcpkg_cmake_config_fixup()
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
32 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/azure-messaging-eventhubs-cpp/vcpkg.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": [
|
3 |
+
"NOTE: All changes made to this file will get overwritten by the next port release.",
|
4 |
+
"Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp."
|
5 |
+
],
|
6 |
+
"name": "azure-messaging-eventhubs-cpp",
|
7 |
+
"version-semver": "1.0.0-beta.6",
|
8 |
+
"description": [
|
9 |
+
"Microsoft Azure Messaging Event Hubs SDK for C++",
|
10 |
+
"This library provides Azure Messaging Event Hubs SDK."
|
11 |
+
],
|
12 |
+
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/eventhubs/azure-messaging-eventhubs",
|
13 |
+
"license": "MIT",
|
14 |
+
"dependencies": [
|
15 |
+
{
|
16 |
+
"name": "azure-core-amqp-cpp",
|
17 |
+
"default-features": false,
|
18 |
+
"version>=": "1.0.0-beta.7"
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"name": "vcpkg-cmake",
|
22 |
+
"host": true
|
23 |
+
},
|
24 |
+
{
|
25 |
+
"name": "vcpkg-cmake-config",
|
26 |
+
"host": true
|
27 |
+
}
|
28 |
+
]
|
29 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-process/vcpkg.json
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-process",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost process module",
|
6 |
+
"homepage": "https://github.com/boostorg/process",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"supports": "!emscripten",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "boost-algorithm",
|
12 |
+
"version>=": "1.84.0"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "boost-asio",
|
16 |
+
"version>=": "1.84.0"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "boost-assert",
|
20 |
+
"version>=": "1.84.0"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "boost-config",
|
24 |
+
"version>=": "1.84.0"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"name": "boost-core",
|
28 |
+
"version>=": "1.84.0"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"name": "boost-filesystem",
|
32 |
+
"platform": "!uwp",
|
33 |
+
"version>=": "1.84.0"
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"name": "boost-fusion",
|
37 |
+
"version>=": "1.84.0"
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"name": "boost-io",
|
41 |
+
"version>=": "1.84.0"
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "boost-iterator",
|
45 |
+
"version>=": "1.84.0"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "boost-move",
|
49 |
+
"version>=": "1.84.0"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"name": "boost-optional",
|
53 |
+
"version>=": "1.84.0"
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"name": "boost-system",
|
57 |
+
"version>=": "1.84.0"
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"name": "boost-throw-exception",
|
61 |
+
"version>=": "1.84.0"
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"name": "boost-tokenizer",
|
65 |
+
"version>=": "1.84.0"
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"name": "boost-type-index",
|
69 |
+
"version>=": "1.84.0"
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"name": "boost-type-traits",
|
73 |
+
"version>=": "1.84.0"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"name": "boost-utility",
|
77 |
+
"version>=": "1.84.0"
|
78 |
+
},
|
79 |
+
{
|
80 |
+
"name": "boost-vcpkg-helpers",
|
81 |
+
"version>=": "1.84.0"
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"name": "boost-winapi",
|
85 |
+
"version>=": "1.84.0"
|
86 |
+
}
|
87 |
+
]
|
88 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-property-map-parallel/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/property_map_parallel
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 2a151616e81042627fb85a7dafd866059ab938baefa64d0f1ff9c05f55d72db93319dafdf100d71a521137969ee7729b96d09d1a8843c875ab21fa5811c53caf
|
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-property-map-parallel/vcpkg.json
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-property-map-parallel",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost property_map_parallel module",
|
6 |
+
"homepage": "https://github.com/boostorg/property_map_parallel",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-assert",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-concept-check",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-config",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-function",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "boost-mpi",
|
27 |
+
"platform": "!uwp",
|
28 |
+
"version>=": "1.84.0"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"name": "boost-mpl",
|
32 |
+
"version>=": "1.84.0"
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"name": "boost-multi-index",
|
36 |
+
"version>=": "1.84.0"
|
37 |
+
},
|
38 |
+
{
|
39 |
+
"name": "boost-optional",
|
40 |
+
"version>=": "1.84.0"
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"name": "boost-property-map",
|
44 |
+
"version>=": "1.84.0"
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"name": "boost-serialization",
|
48 |
+
"version>=": "1.84.0"
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"name": "boost-smart-ptr",
|
52 |
+
"version>=": "1.84.0"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"name": "boost-static-assert",
|
56 |
+
"version>=": "1.84.0"
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"name": "boost-type-traits",
|
60 |
+
"version>=": "1.84.0"
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"name": "boost-vcpkg-helpers",
|
64 |
+
"version>=": "1.84.0"
|
65 |
+
}
|
66 |
+
]
|
67 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cmocka/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.com
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO cmocka/cmocka
|
5 |
+
REF 672c5cee79eb412025c3dd8b034e611c1f119055
|
6 |
+
SHA512 e02ffe780698ce3930aceb1b927f7d48c932c6bb251a32b1f4ab44ecb4ff6bfe5c2a6b9e2dfede49cd4cc1d68a8bb903ef1d26c28536abf3581a9d803287aa0a
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
OPTIONS
|
13 |
+
-DWITH_CMOCKERY_SUPPORT=ON
|
14 |
+
-DUNIT_TESTING=OFF
|
15 |
+
-DWITH_EXAMPLES=OFF
|
16 |
+
-DPICKY_DEVELOPER=OFF
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
26 |
+
|
27 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
28 |
+
|
29 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/cmocka/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cmocka",
|
3 |
+
"version-date": "2020-08-01",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "An elegant unit testing framework for C with support for mock objects",
|
6 |
+
"homepage": "https://cmocka.org/",
|
7 |
+
"license": "Apache-2.0",
|
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/cocoyaxi/fix-event-destruct.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/co/co.cc b/src/co/co.cc
|
2 |
+
index 8921296..838ac16 100644
|
3 |
+
--- a/src/co/co.cc
|
4 |
+
+++ b/src/co/co.cc
|
5 |
+
@@ -8,7 +8,7 @@ namespace co {
|
6 |
+
class EventImpl {
|
7 |
+
public:
|
8 |
+
EventImpl() : _counter(0), _signaled(false), _has_cond(false) {}
|
9 |
+
- ~EventImpl() { co::xx::cond_destroy(&_cond); }
|
10 |
+
+ ~EventImpl() { if (_has_cond) co::xx::cond_destroy(&_cond); }
|
11 |
+
|
12 |
+
bool wait(uint32 ms);
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/cocoyaxi/install-dll.patch
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 9e03c9a..499b550 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -112,4 +112,5 @@ install(
|
6 |
+
TARGETS co
|
7 |
+
LIBRARY DESTINATION lib # shared lib installed to ${CMAKE_INSTALL_PREFIX}/lib
|
8 |
+
ARCHIVE DESTINATION lib # static lib installed to ${CMAKE_INSTALL_PREFIX}/lib
|
9 |
+
+ RUNTIME DESTINATION bin
|
10 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/cocoyaxi/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO idealvin/coost
|
4 |
+
REF 43a8bb4c8fceafe8a86752f522f744301d2b8a7f #v3.0.0
|
5 |
+
SHA512 e34c65853d4280412219d35f55a745e20475474bb59c208562b78edf49bc54852ea1e5d58d7a4bb8bf771f8c51c4eae1ad7426902a32b99c3ee5358bb9426740
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
libcurl WITH_LIBCURL
|
14 |
+
openssl WITH_OPENSSL
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
DISABLE_PARALLEL_CONFIGURE
|
20 |
+
OPTIONS
|
21 |
+
${FEATURE_OPTIONS}
|
22 |
+
-DSTATIC_VS_CRT=${STATIC_CRT}
|
23 |
+
MAYBE_UNUSED_VARIABLES
|
24 |
+
STATIC_VS_CRT
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/coost)
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE
|
31 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
32 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
33 |
+
)
|
34 |
+
|
35 |
+
vcpkg_fixup_pkgconfig()
|
36 |
+
|
37 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/cocoyaxi/vcpkg.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cocoyaxi",
|
3 |
+
"version": "3.0.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A go-style coroutine library in C++11 and more",
|
6 |
+
"homepage": "https://github.com/idealvin/cocoyaxi",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!uwp & !(arm & windows)",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"features": {
|
20 |
+
"libcurl": {
|
21 |
+
"description": "libcurl with OpenSSL support",
|
22 |
+
"dependencies": [
|
23 |
+
{
|
24 |
+
"name": "curl",
|
25 |
+
"default-features": false,
|
26 |
+
"features": [
|
27 |
+
"openssl"
|
28 |
+
]
|
29 |
+
}
|
30 |
+
]
|
31 |
+
},
|
32 |
+
"openssl": {
|
33 |
+
"description": "SSL support (OpenSSL)",
|
34 |
+
"dependencies": [
|
35 |
+
"openssl"
|
36 |
+
]
|
37 |
+
}
|
38 |
+
}
|
39 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/darts-clone/CMakeLists.txt
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(darts)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
add_library(darts src/darts.cc)
|
9 |
+
|
10 |
+
target_include_directories(darts
|
11 |
+
PUBLIC
|
12 |
+
$<INSTALL_INTERFACE:include>
|
13 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
14 |
+
PRIVATE
|
15 |
+
${CMAKE_CURRENT_SOURCE_DIR}/src
|
16 |
+
)
|
17 |
+
|
18 |
+
install(
|
19 |
+
TARGETS darts
|
20 |
+
RUNTIME DESTINATION bin
|
21 |
+
LIBRARY DESTINATION lib
|
22 |
+
ARCHIVE DESTINATION lib
|
23 |
+
)
|
24 |
+
|
25 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
26 |
+
install(
|
27 |
+
DIRECTORY include/ DESTINATION include/
|
28 |
+
)
|
29 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/darts-clone/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(
|
2 |
+
ONLY_STATIC_LIBRARY
|
3 |
+
)
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO s-yata/darts-clone
|
7 |
+
REF 1767ab87cffe7302856d1bb41e1c21b1df93f19e
|
8 |
+
SHA512 63112a4d8d6302d2602a8f161bf5fe5ec1b5b3b3097de9b28331f5261d76c06efb48601c08df26f242ddc881b917928baf54f24ccebac65da29e94380b6db0f5
|
9 |
+
HEAD_REF master
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS_DEBUG
|
18 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/Makefile.am")
|
25 |
+
|
26 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/darts-clone/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "darts-clone",
|
3 |
+
"version-string": "1767ab87cffe",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A static double-array trie structure",
|
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/directxmesh/portfile.cmake
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(DIRECTXMESH_TAG feb2024)
|
2 |
+
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO Microsoft/DirectXMesh
|
8 |
+
REF ${DIRECTXMESH_TAG}
|
9 |
+
SHA512 f15bba68982ffb69f2f07503aeb565a95b733feb14b5bfb546284e6be498e6e45a286e556228c4284c8fccddd3581cc7aa10b5b522f9ba4d511f0303757c83e8
|
10 |
+
HEAD_REF main
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(
|
14 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
dx12 BUILD_DX12
|
17 |
+
spectre ENABLE_SPECTRE_MITIGATION
|
18 |
+
tools BUILD_TOOLS
|
19 |
+
)
|
20 |
+
|
21 |
+
if (VCPKG_HOST_IS_LINUX)
|
22 |
+
message(WARNING "Build ${PORT} requires GCC version 9 or later")
|
23 |
+
endif()
|
24 |
+
|
25 |
+
vcpkg_cmake_configure(
|
26 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
27 |
+
OPTIONS ${FEATURE_OPTIONS}
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_install()
|
31 |
+
vcpkg_fixup_pkgconfig()
|
32 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/directxmesh)
|
33 |
+
|
34 |
+
if("tools" IN_LIST FEATURES)
|
35 |
+
|
36 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxmesh/")
|
37 |
+
|
38 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
39 |
+
|
40 |
+
vcpkg_download_distfile(
|
41 |
+
MESHCONVERT_EXE
|
42 |
+
URLS "https://github.com/Microsoft/DirectXMesh/releases/download/${DIRECTXMESH_TAG}/meshconvert.exe"
|
43 |
+
FILENAME "meshconvert-${DIRECTXMESH_TAG}.exe"
|
44 |
+
SHA512 a1a7187a19b5947dd5ab34097da55793f43fccb0cd1efc81d9b8ccdd8fcffeb638174c004c64a4cf9b720e878d9352fa3c2a7a1082de7123279dde14cc5a628c
|
45 |
+
)
|
46 |
+
|
47 |
+
file(INSTALL
|
48 |
+
"${MESHCONVERT_EXE}"
|
49 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxmesh/")
|
50 |
+
|
51 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert-${DIRECTXMESH_TAG}.exe" "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert.exe")
|
52 |
+
|
53 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
54 |
+
|
55 |
+
vcpkg_download_distfile(
|
56 |
+
MESHCONVERT_EXE
|
57 |
+
URLS "https://github.com/Microsoft/DirectXMesh/releases/download/${DIRECTXMESH_TAG}/meshconvert_arm64.exe"
|
58 |
+
FILENAME "meshconvert-${DIRECTXMESH_TAG}-arm64.exe"
|
59 |
+
SHA512 77e844accd195c859ca9501575e8aa83b2dda21efd0a313f46362321be0384c24bf8f16e45cfc543162488f4af18220260dc7155c8b49a0737cecc31fd152b2b
|
60 |
+
)
|
61 |
+
|
62 |
+
file(INSTALL
|
63 |
+
"${MESHCONVERT_EXE}"
|
64 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/directxmesh/")
|
65 |
+
|
66 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert-${DIRECTXMESH_TAG}-arm64.exe" "${CURRENT_PACKAGES_DIR}/tools/directxmesh/meshconvert.exe")
|
67 |
+
|
68 |
+
else()
|
69 |
+
|
70 |
+
vcpkg_copy_tools(
|
71 |
+
TOOL_NAMES meshconvert
|
72 |
+
SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin"
|
73 |
+
)
|
74 |
+
|
75 |
+
endif()
|
76 |
+
endif()
|
77 |
+
|
78 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
79 |
+
|
80 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
81 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/directxmesh/usage
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The DirectXMesh package provides CMake targets:
|
2 |
+
|
3 |
+
find_package(directxmesh CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE Microsoft::DirectXMesh)
|
5 |
+
|
6 |
+
The utilities headers FlexibleVertexFormat.h and WaveFrontReader.h have their own target:
|
7 |
+
|
8 |
+
target_link_libraries(main PRIVATE Microsoft::DirectXMesh::Utilities)
|
cc-multilingual-main/cc_net/vcpkg/ports/directxmesh/vcpkg.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "directxmesh",
|
3 |
+
"version-date": "2024-02-21",
|
4 |
+
"description": "DirectXMesh geometry processing library",
|
5 |
+
"homepage": "https://github.com/Microsoft/DirectXMesh",
|
6 |
+
"documentation": "https://github.com/microsoft/DirectXMesh/wiki",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "windows | linux",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "directx-headers",
|
12 |
+
"platform": "mingw | linux"
|
13 |
+
},
|
14 |
+
"directxmath",
|
15 |
+
{
|
16 |
+
"name": "ms-gdkx",
|
17 |
+
"platform": "xbox"
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake",
|
21 |
+
"host": true
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"name": "vcpkg-cmake-config",
|
25 |
+
"host": true
|
26 |
+
}
|
27 |
+
],
|
28 |
+
"features": {
|
29 |
+
"dx12": {
|
30 |
+
"description": "Build with DirectX12 support for Windows 10/Windows 11",
|
31 |
+
"dependencies": [
|
32 |
+
{
|
33 |
+
"name": "directx-headers",
|
34 |
+
"platform": "windows & !xbox"
|
35 |
+
}
|
36 |
+
]
|
37 |
+
},
|
38 |
+
"spectre": {
|
39 |
+
"description": "Build Spectre-mitigated library"
|
40 |
+
},
|
41 |
+
"tools": {
|
42 |
+
"description": "meshconvert command-line tool",
|
43 |
+
"supports": "windows & !uwp & !xbox"
|
44 |
+
}
|
45 |
+
}
|
46 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/dylib/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO martin-olivier/dylib
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 8e691c1bc73f381ce8ec50d85165c122ba55167b050e696c8b26ccf1ba14999ca8129fb6c5b6c3320166f606acb2c21867d0786347c341d1267815580beb5c0a
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_install()
|
14 |
+
|
15 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/dylib)
|
16 |
+
|
17 |
+
vcpkg_fixup_pkgconfig()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
20 |
+
|
21 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/dylib/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dylib",
|
3 |
+
"version-semver": "2.2.1",
|
4 |
+
"description": "C++ cross-platform wrapper around dynamic loading of shared libraries",
|
5 |
+
"homepage": "https://github.com/martin-olivier/dylib",
|
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/ed25519/CMakeLists.txt
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.19)
|
2 |
+
project(ed25519 LANGUAGES C)
|
3 |
+
set(PROJECT_VERSION "${VERSION}")
|
4 |
+
|
5 |
+
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
6 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/ed25519.h" "#elif defined(ED25519_DLL)" "#elif 1")
|
7 |
+
endif()
|
8 |
+
set(Header_Files "src/ed25519.h"
|
9 |
+
"src/fe.h"
|
10 |
+
"src/fixedint.h"
|
11 |
+
"src/ge.h"
|
12 |
+
"src/precomp_data.h"
|
13 |
+
"src/sc.h"
|
14 |
+
"src/sha512.h")
|
15 |
+
set(Source_Files "src/add_scalar.c"
|
16 |
+
"src/fe.c"
|
17 |
+
"src/ge.c"
|
18 |
+
"src/key_exchange.c"
|
19 |
+
"src/keypair.c"
|
20 |
+
"src/sc.c"
|
21 |
+
"src/seed.c"
|
22 |
+
"src/sha512.c"
|
23 |
+
"src/sign.c"
|
24 |
+
"src/verify.c")
|
25 |
+
|
26 |
+
add_library("${PROJECT_NAME}" "${Header_Files}" "${Source_Files}")
|
27 |
+
|
28 |
+
include(GNUInstallDirs)
|
29 |
+
target_include_directories(
|
30 |
+
"${PROJECT_NAME}"
|
31 |
+
PUBLIC
|
32 |
+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>"
|
33 |
+
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
|
34 |
+
)
|
35 |
+
target_compile_features("${PROJECT_NAME}" PRIVATE c_std_90)
|
36 |
+
set_target_properties("${PROJECT_NAME}" PROPERTIES C_VISIBILITY_PRESET hidden
|
37 |
+
PUBLIC_HEADER "src/ed25519.h")
|
38 |
+
|
39 |
+
install(
|
40 |
+
TARGETS "${PROJECT_NAME}"
|
41 |
+
EXPORT "unofficial-${PROJECT_NAME}Config"
|
42 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
43 |
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
44 |
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
45 |
+
PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
46 |
+
)
|
47 |
+
|
48 |
+
include(CMakePackageConfigHelpers)
|
49 |
+
set(VERSION_FILE_PATH "${CMAKE_CURRENT_BINARY_DIR}/unofficial-${PROJECT_NAME}ConfigVersion.cmake")
|
50 |
+
write_basic_package_version_file(
|
51 |
+
"${VERSION_FILE_PATH}"
|
52 |
+
VERSION "${PROJECT_VERSION}"
|
53 |
+
COMPATIBILITY SameMajorVersion
|
54 |
+
)
|
55 |
+
install(FILES "${VERSION_FILE_PATH}" DESTINATION "share/unofficial-${PROJECT_NAME}")
|
56 |
+
install(FILES "src/ed25519.h" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
57 |
+
|
58 |
+
install(
|
59 |
+
EXPORT "unofficial-${PROJECT_NAME}Config"
|
60 |
+
FILE "unofficial-${PROJECT_NAME}Config.cmake"
|
61 |
+
NAMESPACE "unofficial::${PROJECT_NAME}::"
|
62 |
+
DESTINATION "share/unofficial-${PROJECT_NAME}")
|
63 |
+
|
64 |
+
export(PACKAGE "${PROJECT_NAME}")
|
cc-multilingual-main/cc_net/vcpkg/ports/ed25519/usage
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
ed25519 provides CMake targets:
|
2 |
+
find_package(unofficial-ed25519 CONFIG REQUIRED)
|
3 |
+
target_link_libraries(main PRIVATE unofficial::ed25519::ed25519)
|
cc-multilingual-main/cc_net/vcpkg/ports/ed25519/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ed25519",
|
3 |
+
"version-date": "2017-02-10",
|
4 |
+
"description": "Portable C implementation of Ed25519, a high-speed high-security public-key signature system.",
|
5 |
+
"homepage": "https://github.com/orlp/ed25519",
|
6 |
+
"license": "Zlib",
|
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/folly/boost-1.70.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/folly/portability/PThread.cpp b/folly/portability/PThread.cpp
|
2 |
+
index 2126ec0..ef82ade 100644
|
3 |
+
--- a/folly/portability/PThread.cpp
|
4 |
+
+++ b/folly/portability/PThread.cpp
|
5 |
+
@@ -20,6 +20,8 @@
|
6 |
+
#include <boost/thread/exceptions.hpp>
|
7 |
+
#include <boost/thread/tss.hpp>
|
8 |
+
#include <boost/version.hpp>
|
9 |
+
+#include <boost/shared_ptr.hpp>
|
10 |
+
+#include <boost/thread/thread_only.hpp>
|
11 |
+
|
12 |
+
#include <errno.h>
|
13 |
+
|
14 |
+
@@ -691,7 +693,7 @@ int pthread_setspecific(pthread_key_t key, const void* value) {
|
15 |
+
boost::detail::thread::cleanup_caller_t(),
|
16 |
+
boost::detail::thread::cleanup_func_t(),
|
17 |
+
#else
|
18 |
+
- boost::shared_ptr<boost::detail::tss_cleanup_function>(),
|
19 |
+
+ 0,0,
|
20 |
+
#endif
|
21 |
+
const_cast<void*>(value),
|
22 |
+
false);
|
cc-multilingual-main/cc_net/vcpkg/ports/folly/disable-uninitialized-resize-on-new-stl.patch
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/folly/memory/UninitializedMemoryHacks.h b/folly/memory/UninitializedMemoryHacks.h
|
2 |
+
index bd31c88..9f640a8 100644
|
3 |
+
--- a/folly/memory/UninitializedMemoryHacks.h
|
4 |
+
+++ b/folly/memory/UninitializedMemoryHacks.h
|
5 |
+
@@ -101,6 +101,9 @@ template <
|
6 |
+
typename std::enable_if<std::is_trivially_destructible<T>::value>::type>
|
7 |
+
inline void resizeWithoutInitialization(
|
8 |
+
std::basic_string<T>& s, std::size_t n) {
|
9 |
+
+#if defined(_MSVC_STL_UPDATE) && _MSVC_STL_UPDATE >= 202206L
|
10 |
+
+ s.resize(n);
|
11 |
+
+#else
|
12 |
+
if (n <= s.size()) {
|
13 |
+
s.resize(n);
|
14 |
+
} else {
|
15 |
+
@@ -111,6 +114,7 @@ inline void resizeWithoutInitialization(
|
16 |
+
}
|
17 |
+
detail::unsafeStringSetLargerSize(s, n);
|
18 |
+
}
|
19 |
+
+#endif // STL workaround
|
20 |
+
}
|
21 |
+
|
22 |
+
/**
|
23 |
+
@@ -244,6 +248,8 @@ struct MakeUnsafeStringSetLargerSize {
|
24 |
+
#elif defined(_MSC_VER)
|
25 |
+
// MSVC
|
26 |
+
|
27 |
+
+#if defined(_MSVC_STL_UPDATE) && _MSVC_STL_UPDATE >= 202206L
|
28 |
+
+#else
|
29 |
+
template <typename Tag, typename T, typename A, A Ptr_Eos>
|
30 |
+
struct MakeUnsafeStringSetLargerSize {
|
31 |
+
friend void unsafeStringSetLargerSizeImpl(
|
32 |
+
@@ -262,7 +268,7 @@ struct MakeUnsafeStringSetLargerSize {
|
33 |
+
void (std::basic_string<TYPE>::*)(std::size_t), \
|
34 |
+
&std::basic_string<TYPE>::_Eos>; \
|
35 |
+
FOLLY_DECLARE_STRING_RESIZE_WITHOUT_INIT_IMPL(TYPE)
|
36 |
+
-
|
37 |
+
+#endif // workaround
|
38 |
+
#else
|
39 |
+
#warning \
|
40 |
+
"No implementation for resizeWithoutInitialization of std::basic_string"
|
cc-multilingual-main/cc_net/vcpkg/ports/folly/fix-unistd-include.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/folly/experimental/symbolizer/Elf.cpp b/folly/experimental/symbolizer/Elf.cpp
|
2 |
+
index 6a7f74f..6546fe0 100644
|
3 |
+
--- a/folly/experimental/symbolizer/Elf.cpp
|
4 |
+
+++ b/folly/experimental/symbolizer/Elf.cpp
|
5 |
+
@@ -49,6 +49,8 @@
|
6 |
+
#define FOLLY_ELF_NATIVE_CLASS __WORDSIZE
|
7 |
+
#endif // __ELF_NATIVE_CLASS
|
8 |
+
|
9 |
+
+#include <unistd.h>
|
10 |
+
+
|
11 |
+
namespace folly {
|
12 |
+
namespace symbolizer {
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/folly/fix-windows-minmax.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMake/FollyCompilerMSVC.cmake b/CMake/FollyCompilerMSVC.cmake
|
2 |
+
index ec2ce1a1d..16deda71c 100644
|
3 |
+
--- a/CMake/FollyCompilerMSVC.cmake
|
4 |
+
+++ b/CMake/FollyCompilerMSVC.cmake
|
5 |
+
@@ -289,6 +289,7 @@ function(apply_folly_compile_options_to_target THETARGET)
|
6 |
+
# And the extra defines:
|
7 |
+
target_compile_definitions(${THETARGET}
|
8 |
+
PUBLIC
|
9 |
+
+ NOMINMAX
|
10 |
+
_CRT_NONSTDC_NO_WARNINGS # Don't deprecate posix names of functions.
|
11 |
+
_CRT_SECURE_NO_WARNINGS # Don't deprecate the non _s versions of various standard library functions, because safety is for chumps.
|
12 |
+
_SCL_SECURE_NO_WARNINGS # Don't deprecate the non _s versions of various standard library functions, because safety is for chumps.
|
cc-multilingual-main/cc_net/vcpkg/ports/folly/openssl.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b5e8758..bb488d6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -24,9 +24,6 @@ ELSEIF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
6 |
+
MESSAGE(STATUS "current platform: FreeBSD")
|
7 |
+
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
8 |
+
MESSAGE(STATUS "current platform: MacOS")
|
9 |
+
- set(OPENSSL_ROOT_DIR "/usr/local/opt/openssl" )
|
10 |
+
- set(OPENSSL_LIBRARIES "/usr/local/opt/openssl/lib" )
|
11 |
+
- set(OPENSSL_INCLUDE_DIR "/usr/local/opt/openssl/include" )
|
12 |
+
ELSE ()
|
13 |
+
MESSAGE(STATUS "other platform: ${CMAKE_SYSTEM_NAME}")
|
14 |
+
ENDIF (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
cc-multilingual-main/cc_net/vcpkg/ports/folly/reorder-glog-gflags.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMake/folly-deps.cmake b/CMake/folly-deps.cmake
|
2 |
+
index 92b8ce7..04589ed 100644
|
3 |
+
--- a/CMake/folly-deps.cmake
|
4 |
+
+++ b/CMake/folly-deps.cmake
|
5 |
+
@@ -52,6 +52,11 @@ find_package(DoubleConversion MODULE REQUIRED)
|
6 |
+
list(APPEND FOLLY_LINK_LIBRARIES ${DOUBLE_CONVERSION_LIBRARY})
|
7 |
+
list(APPEND FOLLY_INCLUDE_DIRECTORIES ${DOUBLE_CONVERSION_INCLUDE_DIR})
|
8 |
+
|
9 |
+
+find_package(Glog CONFIG REQUIRED)
|
10 |
+
+set(FOLLY_HAVE_LIBGLOG ${GLOG_FOUND})
|
11 |
+
+list(APPEND FOLLY_LINK_LIBRARIES glog::glog)
|
12 |
+
+list(APPEND FOLLY_INCLUDE_DIRECTORIES ${GLOG_INCLUDE_DIR})
|
13 |
+
+
|
14 |
+
find_package(Gflags MODULE)
|
15 |
+
set(FOLLY_HAVE_LIBGFLAGS ${LIBGFLAGS_FOUND})
|
16 |
+
if(LIBGFLAGS_FOUND)
|
17 |
+
@@ -61,11 +66,6 @@ if(LIBGFLAGS_FOUND)
|
18 |
+
set(FOLLY_LIBGFLAGS_INCLUDE ${LIBGFLAGS_INCLUDE_DIR})
|
19 |
+
endif()
|
20 |
+
|
21 |
+
-find_package(Glog MODULE)
|
22 |
+
-set(FOLLY_HAVE_LIBGLOG ${GLOG_FOUND})
|
23 |
+
-list(APPEND FOLLY_LINK_LIBRARIES ${GLOG_LIBRARY})
|
24 |
+
-list(APPEND FOLLY_INCLUDE_DIRECTORIES ${GLOG_INCLUDE_DIR})
|
25 |
+
-
|
26 |
+
find_package(LibEvent MODULE REQUIRED)
|
27 |
+
list(APPEND FOLLY_LINK_LIBRARIES ${LIBEVENT_LIB})
|
28 |
+
list(APPEND FOLLY_INCLUDE_DIRECTORIES ${LIBEVENT_INCLUDE_DIR})
|
cc-multilingual-main/cc_net/vcpkg/ports/folly/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(FOLLY_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
2 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
3 |
+
|
4 |
+
_find_package(${ARGS})
|
5 |
+
|
6 |
+
set(CMAKE_MODULE_PATH ${FOLLY_PREV_MODULE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/klein/find_simde_first.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c5d6f3f..a3ba161 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -29,16 +29,7 @@ endif()
|
6 |
+
option(KLEIN_BUILD_SYM "Enable compilation of symbolic Klein utility" ON)
|
7 |
+
option(KLEIN_BUILD_C_BINDINGS "Enable compilation of the Klein C bindings" ON)
|
8 |
+
|
9 |
+
-include(FetchContent)
|
10 |
+
-FetchContent_Declare(
|
11 |
+
- simde
|
12 |
+
- GIT_REPOSITORY https://github.com/simd-everywhere/simde
|
13 |
+
- GIT_TAG v0.7.2
|
14 |
+
- GIT_SHALLOW ON
|
15 |
+
-)
|
16 |
+
-FetchContent_GetProperties(simde)
|
17 |
+
-if(NOT simde_POPULATED)
|
18 |
+
- FetchContent_Populate(simde)
|
19 |
+
-endif()
|
20 |
+
+find_path(SIMDE_INCLUDE_DIR "simde/x86/sse4.1.h" REQUIRED)
|
21 |
+
+set(simde_SOURCE_DIR ${SIMDE_INCLUDE_DIR}/simde)
|
22 |
+
|
23 |
+
# The default platform and instruction set is x86 SSE3
|
cc-multilingual-main/cc_net/vcpkg/ports/klein/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jeremyong/klein
|
4 |
+
REF 92023c6a946af84e716deb1488cad22048d3e08d
|
5 |
+
SHA512 5d12ae143f07173992a6f9aa90539c4cb6c895a7169e5c086a10f78a31f7b2c9d64faf5ce1db014bd3badd92d24ff612dd2d2dc2f7508baac59307e3dccb6ebe
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
"find_simde_first.patch"
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
OPTIONS
|
14 |
+
-DKLEIN_ENABLE_PERF=OFF
|
15 |
+
-DKLEIN_ENABLE_TESTS=OFF
|
16 |
+
-DKLEIN_VALIDATE=OFF
|
17 |
+
-DKLEIN_BUILD_SYM=OFF
|
18 |
+
-DKLEIN_BUILD_C_BINDINGS=OFF
|
19 |
+
-DKLEIN_INSTALL=ON
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
|
25 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
26 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
29 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/klein/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "klein",
|
3 |
+
"version-date": "2021-05-09",
|
4 |
+
"description": "Klein is an implementation of P(R*_{3, 0, 1}), aka 3D Projective Geometric Algebra. It is designed for applications that demand high-throughput (animation libraries, kinematic solvers, etc).",
|
5 |
+
"dependencies": [
|
6 |
+
"simde",
|
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/libsnoretoast/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KDE/snoretoast
|
4 |
+
REF v0.8.0
|
5 |
+
SHA512 233751b6cc3f8099c742e4412a3c9ba8707a2f3c69b57bab93dd83b028aa0c0656cade8de1ece563843ace576fd0d8e5f3a29c254a07ed939d0a69cd2d4f6c2a
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
include_fix.patch # https://invent.kde.org/libraries/snoretoast/-/merge_requests/1
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_EXAMPLES=OFF
|
15 |
+
-DBUILD_STATIC_RUNTIME=OFF
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME LibSnoreToast CONFIG_PATH "lib/cmake/libsnoretoast")
|
20 |
+
vcpkg_copy_tools(
|
21 |
+
TOOL_NAMES "snoretoast"
|
22 |
+
AUTO_CLEAN
|
23 |
+
)
|
24 |
+
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/etc")
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
28 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.LGPL-3" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/libsnoretoast/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsnoretoast",
|
3 |
+
"version": "0.8.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A tool to create Windows Toast notifications and parse them on Windows 8 or later.",
|
6 |
+
"homepage": "https://invent.kde.org/libraries/snoretoast",
|
7 |
+
"supports": "windows & !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/libtommath/portfile.cmake
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libtom/libtommath
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 8da4a935913e8a44a24ba7d8c2bc4926398bdc9aea0cd4975418771979c2b7667c2ee04e8a7e38f04cc87abe5bb369fcbf9167ab662ad747602fc840cb3788e6
|
6 |
+
HEAD_REF develop
|
7 |
+
)
|
8 |
+
|
9 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
10 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
11 |
+
|
12 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
13 |
+
set(CRTFLAG "/MD")
|
14 |
+
else()
|
15 |
+
set(CRTFLAG "/MT")
|
16 |
+
endif()
|
17 |
+
|
18 |
+
# Make sure we start from a clean slate
|
19 |
+
vcpkg_execute_build_process(
|
20 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc clean
|
21 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
22 |
+
LOGNAME clean-${TARGET_TRIPLET}-dbg
|
23 |
+
)
|
24 |
+
|
25 |
+
#Debug Build
|
26 |
+
vcpkg_execute_build_process(
|
27 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc CFLAGS="${CRTFLAG}d"
|
28 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
29 |
+
LOGNAME build-${TARGET_TRIPLET}-dbg
|
30 |
+
)
|
31 |
+
|
32 |
+
file(INSTALL
|
33 |
+
${SOURCE_PATH}/tommath.lib
|
34 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib
|
35 |
+
)
|
36 |
+
|
37 |
+
# Clean up necessary to rebuild without debug symbols
|
38 |
+
vcpkg_execute_build_process(
|
39 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc clean
|
40 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
41 |
+
LOGNAME clean-${TARGET_TRIPLET}-rel
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_execute_build_process(
|
45 |
+
COMMAND nmake -f ${SOURCE_PATH}/makefile.msvc CFLAGS="${CRTFLAG}"
|
46 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
47 |
+
LOGNAME build-${TARGET_TRIPLET}-rel
|
48 |
+
)
|
49 |
+
|
50 |
+
file(INSTALL
|
51 |
+
${SOURCE_PATH}/tommath.lib
|
52 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/lib
|
53 |
+
)
|
54 |
+
|
55 |
+
file(INSTALL
|
56 |
+
${SOURCE_PATH}/tommath.h
|
57 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/include
|
58 |
+
)
|
59 |
+
else()
|
60 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
61 |
+
set(MAKE_FILE "makefile.shared")
|
62 |
+
else()
|
63 |
+
set(MAKE_FILE "makefile")
|
64 |
+
endif()
|
65 |
+
|
66 |
+
vcpkg_execute_build_process(
|
67 |
+
COMMAND make -f ${MAKE_FILE} clean
|
68 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
69 |
+
)
|
70 |
+
|
71 |
+
vcpkg_execute_build_process(
|
72 |
+
COMMAND make -j${VCPKG_CONCURRENCY} -f ${MAKE_FILE} PREFIX=${CURRENT_PACKAGES_DIR}/debug COMPILE_DEBUG=1 install
|
73 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
74 |
+
)
|
75 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
76 |
+
|
77 |
+
vcpkg_execute_build_process(
|
78 |
+
COMMAND make -f ${MAKE_FILE} clean
|
79 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
80 |
+
)
|
81 |
+
|
82 |
+
vcpkg_execute_build_process(
|
83 |
+
COMMAND make -j${VCPKG_CONCURRENCY} -f ${MAKE_FILE} PREFIX=${CURRENT_PACKAGES_DIR} install
|
84 |
+
WORKING_DIRECTORY ${SOURCE_PATH}
|
85 |
+
)
|
86 |
+
endif()
|
87 |
+
|
88 |
+
file(INSTALL
|
89 |
+
${SOURCE_PATH}/LICENSE
|
90 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright
|
91 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/libtommath/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libtommath",
|
3 |
+
"version": "1.2.1",
|
4 |
+
"description": "LibTomMath is a free open source portable number theoretic multiple-precision integer library written entirely in C.",
|
5 |
+
"homepage": "https://www.libtom.net/LibTomMath/"
|
6 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libvpx/0002-Fix-nasm-debug-format-flag.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/build/make/configure.sh b/build/make/configure.sh
|
2 |
+
index 81d30a1..325017e 100644
|
3 |
+
--- a/build/make/configure.sh
|
4 |
+
+++ b/build/make/configure.sh
|
5 |
+
@@ -1370,12 +1370,14 @@ EOF
|
6 |
+
case ${tgt_os} in
|
7 |
+
win32)
|
8 |
+
add_asflags -f win32
|
9 |
+
- enabled debug && add_asflags -g cv8
|
10 |
+
+ enabled debug && [ "${AS}" = yasm ] && add_asflags -g cv8
|
11 |
+
+ enabled debug && [ "${AS}" = nasm ] && add_asflags -gcv8
|
12 |
+
EXE_SFX=.exe
|
13 |
+
;;
|
14 |
+
win64)
|
15 |
+
add_asflags -f win64
|
16 |
+
- enabled debug && add_asflags -g cv8
|
17 |
+
+ enabled debug && [ "${AS}" = yasm ] && add_asflags -g cv8
|
18 |
+
+ enabled debug && [ "${AS}" = nasm ] && add_asflags -gcv8
|
19 |
+
EXE_SFX=.exe
|
20 |
+
;;
|
21 |
+
linux*|solaris*|android*)
|
cc-multilingual-main/cc_net/vcpkg/ports/libvpx/0004-remove-library-suffixes.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/build/make/gen_msvs_vcxproj.sh b/build/make/gen_msvs_vcxproj.sh
|
2 |
+
index 916851662..e60405bc9 100755
|
3 |
+
--- a/build/make/gen_msvs_vcxproj.sh
|
4 |
+
+++ b/build/make/gen_msvs_vcxproj.sh
|
5 |
+
@@ -394,7 +394,7 @@ generate_vcxproj() {
|
6 |
+
else
|
7 |
+
config_suffix=""
|
8 |
+
fi
|
9 |
+
- tag_content TargetName "${name}${lib_sfx}${config_suffix}"
|
10 |
+
+ tag_content TargetName "${name}"
|
11 |
+
fi
|
12 |
+
close_tag PropertyGroup
|
13 |
+
done
|
cc-multilingual-main/cc_net/vcpkg/ports/libvpx/0005-fix-arm64-build.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/vp9/encoder/arm/neon/vp9_diamond_search_sad_neon.c b/vp9/encoder/arm/neon/vp9_diamond_search_sad_neon.c
|
2 |
+
index 33753f7..997775a 100644
|
3 |
+
--- a/vp9/encoder/arm/neon/vp9_diamond_search_sad_neon.c
|
4 |
+
+++ b/vp9/encoder/arm/neon/vp9_diamond_search_sad_neon.c
|
5 |
+
@@ -220,7 +220,7 @@ int vp9_diamond_search_sad_neon(const MACROBLOCK *x,
|
6 |
+
// Look up the component cost of the residual motion vector
|
7 |
+
{
|
8 |
+
uint32_t cost[4];
|
9 |
+
- int16_t __attribute__((aligned(16))) rowcol[8];
|
10 |
+
+ DECLARE_ALIGNED(16, int16_t, rowcol[8]);
|
11 |
+
vst1q_s16(rowcol, v_diff_mv_w);
|
12 |
+
|
13 |
+
// Note: This is a use case for gather instruction
|
cc-multilingual-main/cc_net/vcpkg/ports/libvpx/portfile.cmake
ADDED
@@ -0,0 +1,312 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO webmproject/libvpx
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 49706838563c92fab7334376848d0f374efcbc1729ef511e967c908fd2ecd40e8d197f1d85da6553b3a7026bdbc17e5a76595319858af26ce58cb9a4c3854897
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
0002-Fix-nasm-debug-format-flag.patch
|
11 |
+
0003-add-uwp-v142-and-v143-support.patch
|
12 |
+
0004-remove-library-suffixes.patch
|
13 |
+
0005-fix-arm64-build.patch # Upstream commit: https://github.com/webmproject/libvpx/commit/858a8c611f4c965078485860a6820e2135e6611b
|
14 |
+
)
|
15 |
+
|
16 |
+
if(CMAKE_HOST_WIN32)
|
17 |
+
vcpkg_acquire_msys(MSYS_ROOT PACKAGES make perl)
|
18 |
+
set(ENV{PATH} "${MSYS_ROOT}/usr/bin;$ENV{PATH}")
|
19 |
+
else()
|
20 |
+
vcpkg_find_acquire_program(PERL)
|
21 |
+
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
22 |
+
set(ENV{PATH} "${MSYS_ROOT}/usr/bin:$ENV{PATH}:${PERL_EXE_PATH}")
|
23 |
+
endif()
|
24 |
+
|
25 |
+
find_program(BASH NAME bash HINTS ${MSYS_ROOT}/usr/bin REQUIRED NO_CACHE)
|
26 |
+
|
27 |
+
vcpkg_find_acquire_program(NASM)
|
28 |
+
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
29 |
+
vcpkg_add_to_path(${NASM_EXE_PATH})
|
30 |
+
|
31 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp")
|
34 |
+
|
35 |
+
if(VCPKG_CRT_LINKAGE STREQUAL static)
|
36 |
+
set(LIBVPX_CRT_LINKAGE --enable-static-msvcrt)
|
37 |
+
set(LIBVPX_CRT_SUFFIX mt)
|
38 |
+
else()
|
39 |
+
set(LIBVPX_CRT_SUFFIX md)
|
40 |
+
endif()
|
41 |
+
|
42 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL WindowsStore AND (VCPKG_PLATFORM_TOOLSET STREQUAL v142 OR VCPKG_PLATFORM_TOOLSET STREQUAL v143))
|
43 |
+
set(LIBVPX_TARGET_OS "uwp")
|
44 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x86 OR VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
45 |
+
set(LIBVPX_TARGET_OS "win32")
|
46 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64 OR VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
47 |
+
set(LIBVPX_TARGET_OS "win64")
|
48 |
+
endif()
|
49 |
+
|
50 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
51 |
+
set(LIBVPX_TARGET_ARCH "x86-${LIBVPX_TARGET_OS}")
|
52 |
+
set(LIBVPX_ARCH_DIR "Win32")
|
53 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
54 |
+
set(LIBVPX_TARGET_ARCH "x86_64-${LIBVPX_TARGET_OS}")
|
55 |
+
set(LIBVPX_ARCH_DIR "x64")
|
56 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
57 |
+
set(LIBVPX_TARGET_ARCH "arm64-${LIBVPX_TARGET_OS}")
|
58 |
+
set(LIBVPX_ARCH_DIR "ARM64")
|
59 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
60 |
+
set(LIBVPX_TARGET_ARCH "armv7-${LIBVPX_TARGET_OS}")
|
61 |
+
set(LIBVPX_ARCH_DIR "ARM")
|
62 |
+
endif()
|
63 |
+
|
64 |
+
if(VCPKG_PLATFORM_TOOLSET STREQUAL v143)
|
65 |
+
set(LIBVPX_TARGET_VS "vs17")
|
66 |
+
elseif(VCPKG_PLATFORM_TOOLSET STREQUAL v142)
|
67 |
+
set(LIBVPX_TARGET_VS "vs16")
|
68 |
+
else()
|
69 |
+
set(LIBVPX_TARGET_VS "vs15")
|
70 |
+
endif()
|
71 |
+
|
72 |
+
set(OPTIONS "--disable-examples --disable-tools --disable-docs --enable-pic")
|
73 |
+
|
74 |
+
if("realtime" IN_LIST FEATURES)
|
75 |
+
set(OPTIONS "${OPTIONS} --enable-realtime-only")
|
76 |
+
endif()
|
77 |
+
|
78 |
+
if("highbitdepth" IN_LIST FEATURES)
|
79 |
+
set(OPTIONS "${OPTIONS} --enable-vp9-highbitdepth")
|
80 |
+
endif()
|
81 |
+
|
82 |
+
message(STATUS "Generating makefile")
|
83 |
+
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp")
|
84 |
+
vcpkg_execute_required_process(
|
85 |
+
COMMAND
|
86 |
+
${BASH} --noprofile --norc
|
87 |
+
"${SOURCE_PATH}/configure"
|
88 |
+
--target=${LIBVPX_TARGET_ARCH}-${LIBVPX_TARGET_VS}
|
89 |
+
${LIBVPX_CRT_LINKAGE}
|
90 |
+
${OPTIONS}
|
91 |
+
--as=nasm
|
92 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp"
|
93 |
+
LOGNAME configure-${TARGET_TRIPLET})
|
94 |
+
|
95 |
+
message(STATUS "Generating MSBuild projects")
|
96 |
+
vcpkg_execute_required_process(
|
97 |
+
COMMAND
|
98 |
+
${BASH} --noprofile --norc -c "make dist"
|
99 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp"
|
100 |
+
LOGNAME generate-${TARGET_TRIPLET})
|
101 |
+
|
102 |
+
vcpkg_msbuild_install(
|
103 |
+
SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-tmp"
|
104 |
+
PROJECT_SUBPATH vpx.vcxproj
|
105 |
+
)
|
106 |
+
|
107 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
108 |
+
set(LIBVPX_INCLUDE_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vpx-vp8-vp9-nopost-nodocs-${LIBVPX_TARGET_ARCH}${LIBVPX_CRT_SUFFIX}-${LIBVPX_TARGET_VS}-v${VERSION}/include/vpx")
|
109 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
110 |
+
set(LIBVPX_INCLUDE_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vpx-vp8-vp9-nopost-nomt-nodocs-${LIBVPX_TARGET_ARCH}${LIBVPX_CRT_SUFFIX}-${LIBVPX_TARGET_VS}-v${VERSION}/include/vpx")
|
111 |
+
else()
|
112 |
+
set(LIBVPX_INCLUDE_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/vpx-vp8-vp9-nodocs-${LIBVPX_TARGET_ARCH}${LIBVPX_CRT_SUFFIX}-${LIBVPX_TARGET_VS}-v${VERSION}/include/vpx")
|
113 |
+
endif()
|
114 |
+
file(
|
115 |
+
INSTALL
|
116 |
+
"${LIBVPX_INCLUDE_DIR}"
|
117 |
+
DESTINATION
|
118 |
+
"${CURRENT_PACKAGES_DIR}/include"
|
119 |
+
RENAME
|
120 |
+
"vpx")
|
121 |
+
if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
122 |
+
set(LIBVPX_PREFIX "${CURRENT_INSTALLED_DIR}")
|
123 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/vpx.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/vpx.pc" @ONLY)
|
124 |
+
endif()
|
125 |
+
|
126 |
+
if (NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
127 |
+
set(LIBVPX_PREFIX "${CURRENT_INSTALLED_DIR}/debug")
|
128 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/vpx.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/vpx.pc" @ONLY)
|
129 |
+
endif()
|
130 |
+
|
131 |
+
else()
|
132 |
+
|
133 |
+
set(OPTIONS "--disable-examples --disable-tools --disable-docs --disable-unit-tests --enable-pic")
|
134 |
+
|
135 |
+
set(OPTIONS_DEBUG "--enable-debug-libs --enable-debug --prefix=${CURRENT_PACKAGES_DIR}/debug")
|
136 |
+
set(OPTIONS_RELEASE "--prefix=${CURRENT_PACKAGES_DIR}")
|
137 |
+
set(AS_NASM "--as=nasm")
|
138 |
+
|
139 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
140 |
+
set(OPTIONS "${OPTIONS} --disable-static --enable-shared")
|
141 |
+
else()
|
142 |
+
set(OPTIONS "${OPTIONS} --enable-static --disable-shared")
|
143 |
+
endif()
|
144 |
+
|
145 |
+
if("realtime" IN_LIST FEATURES)
|
146 |
+
set(OPTIONS "${OPTIONS} --enable-realtime-only")
|
147 |
+
endif()
|
148 |
+
|
149 |
+
if("highbitdepth" IN_LIST FEATURES)
|
150 |
+
set(OPTIONS "${OPTIONS} --enable-vp9-highbitdepth")
|
151 |
+
endif()
|
152 |
+
|
153 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
154 |
+
set(LIBVPX_TARGET_ARCH "x86")
|
155 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
156 |
+
set(LIBVPX_TARGET_ARCH "x86_64")
|
157 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
158 |
+
set(LIBVPX_TARGET_ARCH "armv7")
|
159 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
160 |
+
set(LIBVPX_TARGET_ARCH "arm64")
|
161 |
+
else()
|
162 |
+
message(FATAL_ERROR "libvpx does not support architecture ${VCPKG_TARGET_ARCHITECTURE}")
|
163 |
+
endif()
|
164 |
+
|
165 |
+
vcpkg_cmake_get_vars(cmake_vars_file)
|
166 |
+
include("${cmake_vars_file}")
|
167 |
+
|
168 |
+
# Set environment variables for configure
|
169 |
+
if(VCPKG_DETECTED_CMAKE_C_COMPILER MATCHES "([^\/]*-)gcc$")
|
170 |
+
message(STATUS "Cross-building for ${TARGET_TRIPLET} with ${CMAKE_MATCH_1}")
|
171 |
+
set(ENV{CROSS} ${CMAKE_MATCH_1})
|
172 |
+
unset(AS_NASM)
|
173 |
+
else()
|
174 |
+
set(ENV{CC} ${VCPKG_DETECTED_CMAKE_C_COMPILER})
|
175 |
+
set(ENV{CXX} ${VCPKG_DETECTED_CMAKE_CXX_COMPILER})
|
176 |
+
set(ENV{AR} ${VCPKG_DETECTED_CMAKE_AR})
|
177 |
+
set(ENV{LD} ${VCPKG_DETECTED_CMAKE_LINKER})
|
178 |
+
set(ENV{RANLIB} ${VCPKG_DETECTED_CMAKE_RANLIB})
|
179 |
+
set(ENV{STRIP} ${VCPKG_DETECTED_CMAKE_STRIP})
|
180 |
+
endif()
|
181 |
+
|
182 |
+
if(VCPKG_TARGET_IS_MINGW)
|
183 |
+
if(LIBVPX_TARGET_ARCH STREQUAL "x86")
|
184 |
+
set(LIBVPX_TARGET "x86-win32-gcc")
|
185 |
+
else()
|
186 |
+
set(LIBVPX_TARGET "x86_64-win64-gcc")
|
187 |
+
endif()
|
188 |
+
elseif(VCPKG_TARGET_IS_LINUX)
|
189 |
+
set(LIBVPX_TARGET "${LIBVPX_TARGET_ARCH}-linux-gcc")
|
190 |
+
elseif(VCPKG_TARGET_IS_ANDROID)
|
191 |
+
set(LIBVPX_TARGET "generic-gnu")
|
192 |
+
# Settings
|
193 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
194 |
+
set(OPTIONS "${OPTIONS} --disable-sse4_1 --disable-avx --disable-avx2 --disable-avx512")
|
195 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
196 |
+
set(OPTIONS "${OPTIONS} --disable-avx --disable-avx2 --disable-avx512")
|
197 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
198 |
+
set(OPTIONS "${OPTIONS} --enable-thumb --disable-neon")
|
199 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
200 |
+
set(OPTIONS "${OPTIONS} --enable-thumb")
|
201 |
+
endif()
|
202 |
+
# Set environment variables for configure
|
203 |
+
set(ENV{AS} ${VCPKG_DETECTED_CMAKE_C_COMPILER})
|
204 |
+
set(ENV{LDFLAGS} "${LDFLAGS} --target=${VCPKG_DETECTED_CMAKE_C_COMPILER_TARGET}")
|
205 |
+
# Set clang target
|
206 |
+
set(OPTIONS "${OPTIONS} --extra-cflags=--target=${VCPKG_DETECTED_CMAKE_C_COMPILER_TARGET} --extra-cxxflags=--target=${VCPKG_DETECTED_CMAKE_CXX_COMPILER_TARGET}")
|
207 |
+
# Unset nasm and let AS do its job
|
208 |
+
unset(AS_NASM)
|
209 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
210 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
211 |
+
set(LIBVPX_TARGET "arm64-darwin20-gcc")
|
212 |
+
if(DEFINED VCPKG_OSX_DEPLOYMENT_TARGET)
|
213 |
+
set(MAC_OSX_MIN_VERSION_CFLAGS --extra-cflags=-mmacosx-version-min=${VCPKG_OSX_DEPLOYMENT_TARGET} --extra-cxxflags=-mmacosx-version-min=${VCPKG_OSX_DEPLOYMENT_TARGET})
|
214 |
+
endif()
|
215 |
+
else()
|
216 |
+
set(LIBVPX_TARGET "${LIBVPX_TARGET_ARCH}-darwin17-gcc") # enable latest CPU instructions for best performance and less CPU usage on MacOS
|
217 |
+
endif()
|
218 |
+
elseif(VCPKG_TARGET_IS_IOS)
|
219 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL arm)
|
220 |
+
set(LIBVPX_TARGET "armv7-darwin-gcc")
|
221 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
222 |
+
set(LIBVPX_TARGET "arm64-darwin-gcc")
|
223 |
+
else()
|
224 |
+
message(FATAL_ERROR "libvpx does not support architecture ${VCPKG_TARGET_ARCHITECTURE} on iOS")
|
225 |
+
endif()
|
226 |
+
else()
|
227 |
+
set(LIBVPX_TARGET "generic-gnu") # use default target
|
228 |
+
endif()
|
229 |
+
|
230 |
+
message(STATUS "Build info. Target: ${LIBVPX_TARGET}; Options: ${OPTIONS}")
|
231 |
+
|
232 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
233 |
+
message(STATUS "Configuring libvpx for Release")
|
234 |
+
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel")
|
235 |
+
vcpkg_execute_required_process(
|
236 |
+
COMMAND
|
237 |
+
${BASH} --noprofile --norc
|
238 |
+
"${SOURCE_PATH}/configure"
|
239 |
+
--target=${LIBVPX_TARGET}
|
240 |
+
${OPTIONS}
|
241 |
+
${OPTIONS_RELEASE}
|
242 |
+
${MAC_OSX_MIN_VERSION_CFLAGS}
|
243 |
+
${AS_NASM}
|
244 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
245 |
+
LOGNAME configure-${TARGET_TRIPLET}-rel)
|
246 |
+
|
247 |
+
message(STATUS "Building libvpx for Release")
|
248 |
+
vcpkg_execute_required_process(
|
249 |
+
COMMAND
|
250 |
+
${BASH} --noprofile --norc -c "make -j${VCPKG_CONCURRENCY}"
|
251 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
252 |
+
LOGNAME build-${TARGET_TRIPLET}-rel
|
253 |
+
)
|
254 |
+
|
255 |
+
message(STATUS "Installing libvpx for Release")
|
256 |
+
vcpkg_execute_required_process(
|
257 |
+
COMMAND
|
258 |
+
${BASH} --noprofile --norc -c "make install"
|
259 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
260 |
+
LOGNAME install-${TARGET_TRIPLET}-rel
|
261 |
+
)
|
262 |
+
endif()
|
263 |
+
|
264 |
+
# --- --- ---
|
265 |
+
|
266 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
267 |
+
message(STATUS "Configuring libvpx for Debug")
|
268 |
+
file(MAKE_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg")
|
269 |
+
vcpkg_execute_required_process(
|
270 |
+
COMMAND
|
271 |
+
${BASH} --noprofile --norc
|
272 |
+
"${SOURCE_PATH}/configure"
|
273 |
+
--target=${LIBVPX_TARGET}
|
274 |
+
${OPTIONS}
|
275 |
+
${OPTIONS_DEBUG}
|
276 |
+
${MAC_OSX_MIN_VERSION_CFLAGS}
|
277 |
+
${AS_NASM}
|
278 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
|
279 |
+
LOGNAME configure-${TARGET_TRIPLET}-dbg)
|
280 |
+
|
281 |
+
message(STATUS "Building libvpx for Debug")
|
282 |
+
vcpkg_execute_required_process(
|
283 |
+
COMMAND
|
284 |
+
${BASH} --noprofile --norc -c "make -j${VCPKG_CONCURRENCY}"
|
285 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
|
286 |
+
LOGNAME build-${TARGET_TRIPLET}-dbg
|
287 |
+
)
|
288 |
+
|
289 |
+
message(STATUS "Installing libvpx for Debug")
|
290 |
+
vcpkg_execute_required_process(
|
291 |
+
COMMAND
|
292 |
+
${BASH} --noprofile --norc -c "make install"
|
293 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg"
|
294 |
+
LOGNAME install-${TARGET_TRIPLET}-dbg
|
295 |
+
)
|
296 |
+
|
297 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
298 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/libvpx_g.a")
|
299 |
+
endif()
|
300 |
+
endif()
|
301 |
+
|
302 |
+
vcpkg_fixup_pkgconfig()
|
303 |
+
|
304 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
305 |
+
set(LIBVPX_CONFIG_DEBUG ON)
|
306 |
+
else()
|
307 |
+
set(LIBVPX_CONFIG_DEBUG OFF)
|
308 |
+
endif()
|
309 |
+
|
310 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-libvpx-config.cmake.in" "${CURRENT_PACKAGES_DIR}/share/unofficial-libvpx/unofficial-libvpx-config.cmake" @ONLY)
|
311 |
+
|
312 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/libvpx/unofficial-libvpx-config.cmake.in
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(NOT TARGET unofficial::libvpx::libvpx)
|
2 |
+
# Compute the installation prefix relative to this file.
|
3 |
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
4 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
5 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
6 |
+
|
7 |
+
# Add library target (note: vpx always has a static build in vcpkg).
|
8 |
+
add_library(unofficial::libvpx::libvpx STATIC IMPORTED)
|
9 |
+
|
10 |
+
# Add interface include directories and link interface languages (applies to all configurations).
|
11 |
+
set_target_properties(unofficial::libvpx::libvpx PROPERTIES
|
12 |
+
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
|
13 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
|
14 |
+
)
|
15 |
+
list(APPEND _IMPORT_CHECK_FILES "${_IMPORT_PREFIX}/include/vpx/vpx_codec.h")
|
16 |
+
|
17 |
+
# Add release configuration properties.
|
18 |
+
find_library(_LIBFILE_RELEASE NAMES vpx PATHS "${_IMPORT_PREFIX}/lib/" NO_DEFAULT_PATH)
|
19 |
+
set_property(TARGET unofficial::libvpx::libvpx
|
20 |
+
APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)
|
21 |
+
set_target_properties(unofficial::libvpx::libvpx PROPERTIES
|
22 |
+
IMPORTED_LOCATION_RELEASE ${_LIBFILE_RELEASE})
|
23 |
+
list(APPEND _IMPORT_CHECK_FILES ${_LIBFILE_RELEASE})
|
24 |
+
unset(_LIBFILE_RELEASE CACHE)
|
25 |
+
|
26 |
+
# Add debug configuration properties.
|
27 |
+
if(@LIBVPX_CONFIG_DEBUG@)
|
28 |
+
find_library(_LIBFILE_DEBUG NAMES vpx PATHS "${_IMPORT_PREFIX}/debug/lib/" NO_DEFAULT_PATH)
|
29 |
+
set_property(TARGET unofficial::libvpx::libvpx
|
30 |
+
APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
31 |
+
set_target_properties(unofficial::libvpx::libvpx PROPERTIES
|
32 |
+
IMPORTED_LOCATION_DEBUG ${_LIBFILE_DEBUG})
|
33 |
+
list(APPEND _IMPORT_CHECK_FILES ${_LIBFILE_DEBUG})
|
34 |
+
unset(_LIBFILE_DEBUG CACHE)
|
35 |
+
endif()
|
36 |
+
|
37 |
+
# Check header and library files are present.
|
38 |
+
foreach(file ${_IMPORT_CHECK_FILES} )
|
39 |
+
if(NOT EXISTS "${file}" )
|
40 |
+
message(FATAL_ERROR "unofficial::libvpx::libvpx references the file
|
41 |
+
\"${file}\"
|
42 |
+
but this file does not exist. Possible reasons include:
|
43 |
+
* The file was deleted, renamed, or moved to another location.
|
44 |
+
* An install or uninstall procedure did not complete successfully.
|
45 |
+
")
|
46 |
+
endif()
|
47 |
+
endforeach()
|
48 |
+
unset(_IMPORT_CHECK_FILES)
|
49 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libxext/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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/libxext
|
10 |
+
REF ebb167f34a3514783966775fb12573c4ed209625 # 1.3.4
|
11 |
+
SHA512 509cb67ad9dba37adbcc49dca6e9803b318f62e8e2b981ccf73ce328a8104e94615312c5914b480ba04e28d208cd93d8a71b3e6e2ef1a4e5615aa2a3f9ba19e7
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
|
16 |
+
|
17 |
+
vcpkg_configure_make(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
AUTOCONFIG
|
20 |
+
OPTIONS xorg_cv_malloc0_returns_null=yes
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_install_make()
|
24 |
+
vcpkg_fixup_pkgconfig()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
28 |
+
|
29 |
+
# Handle copyright
|
30 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
31 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libxext/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libxext",
|
3 |
+
"version": "1.3.4",
|
4 |
+
"description": "Xlib-based library for common extensions to the X11 protocol",
|
5 |
+
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxext",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
"libx11",
|
9 |
+
"xorg-macros",
|
10 |
+
"xproto"
|
11 |
+
]
|
12 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/linalg/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO sgorsten/linalg
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 736f6ff83fcc4a772ef5ab8e574b0e56aca9fcf2318d92f56f94684ffbd7283540b6496381d52834545b4902147bc67a3afa21ab877bc44bba84471c2eff6862
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(INSTALL "${SOURCE_PATH}/linalg.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
12 |
+
|
13 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/UNLICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/linalg/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "linalg",
|
3 |
+
"version": "2.2",
|
4 |
+
"description": "linalg.h is a single header public domain linear algebra library for C++11",
|
5 |
+
"homepage": "https://github.com/sgorsten/linalg",
|
6 |
+
"license": "Unlicense"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ogre/fix-dependencies.patch
ADDED
@@ -0,0 +1,220 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMake/Dependencies.cmake b/CMake/Dependencies.cmake
|
2 |
+
index 804602e0f..e7b665004 100644
|
3 |
+
--- a/CMake/Dependencies.cmake
|
4 |
+
+++ b/CMake/Dependencies.cmake
|
5 |
+
@@ -210,11 +210,14 @@ endif()
|
6 |
+
#######################################################################
|
7 |
+
|
8 |
+
# Find FreeImage
|
9 |
+
-find_package(FreeImage)
|
10 |
+
+find_package(FreeImage NAMES freeimage)
|
11 |
+
+set(FreeImage_LIBRARIES freeimage::FreeImage)
|
12 |
+
+set(FreeImage_LIBRARY_DBG "-lFreeImaged")
|
13 |
+
+set(FreeImage_LIBRARY_REL "-lFreeImage")
|
14 |
+
macro_log_feature(FreeImage_FOUND "freeimage" "Support for commonly used graphics image formats" "http://freeimage.sourceforge.net")
|
15 |
+
|
16 |
+
# Find FreeType
|
17 |
+
-find_package(Freetype)
|
18 |
+
+find_package(FREETYPE NAMES freetype)
|
19 |
+
macro_log_feature(FREETYPE_FOUND "freetype" "Portable font engine" "http://www.freetype.org")
|
20 |
+
|
21 |
+
# Find X11
|
22 |
+
@@ -270,13 +273,17 @@ endif ()
|
23 |
+
macro_log_feature(ENV{VULKAN_SDK} "Vulkan SDK" "Vulkan RenderSystem, glslang Plugin. Alternatively use system packages" "https://vulkan.lunarg.com/")
|
24 |
+
|
25 |
+
# OpenEXR
|
26 |
+
-find_package(OpenEXR)
|
27 |
+
+find_package(IMath CONFIG)
|
28 |
+
+find_package(OPENEXR NAMES OpenEXR)
|
29 |
+
+set(OPENEXR_LIBRARIES OpenEXR::OpenEXR Imath::Imath)
|
30 |
+
macro_log_feature(OPENEXR_FOUND "OpenEXR" "Load High dynamic range images" "http://www.openexr.com/")
|
31 |
+
|
32 |
+
# Python
|
33 |
+
set(Python_ADDITIONAL_VERSIONS 3.4) # allows using python3 on Ubuntu 14.04
|
34 |
+
-find_package(PythonInterp)
|
35 |
+
-find_package(PythonLibs)
|
36 |
+
+find_package(Python3 COMPONENTS Development Interpreter) # Interpreter is needed for Python3_FOUND
|
37 |
+
+set(PYTHONLIBS_FOUND "${Python3_FOUND}")
|
38 |
+
+set(PYTHON_INCLUDE_PATH "${Python3_INCLUDE_DIRS}")
|
39 |
+
+set(PYTHON_LIBRARIES "${Python3_LIBRARIES}")
|
40 |
+
macro_log_feature(PYTHONLIBS_FOUND "Python" "Language bindings to use OGRE from Python" "http://www.python.org/")
|
41 |
+
|
42 |
+
# SWIG
|
43 |
+
@@ -284,7 +291,7 @@ find_package(SWIG 3.0.8 QUIET)
|
44 |
+
macro_log_feature(SWIG_FOUND "SWIG" "Language bindings (Python, Java, C#) for OGRE" "http://www.swig.org/")
|
45 |
+
|
46 |
+
# pugixml
|
47 |
+
-find_package(pugixml QUIET)
|
48 |
+
+find_package(pugixml CONFIG REQUIRED)
|
49 |
+
macro_log_feature(pugixml_FOUND "pugixml" "Needed for XMLConverter and DotScene Plugin" "https://pugixml.org/")
|
50 |
+
|
51 |
+
# Find zlib
|
52 |
+
@@ -292,7 +299,7 @@ find_package(ZLIB)
|
53 |
+
macro_log_feature(ZLIB_FOUND "zlib" "Simple data compression library" "http://www.zlib.net")
|
54 |
+
|
55 |
+
# Assimp
|
56 |
+
-find_package(assimp QUIET)
|
57 |
+
+find_package(assimp CONFIG)
|
58 |
+
macro_log_feature(assimp_FOUND "Assimp" "Needed for the AssimpLoader Plugin" "https://www.assimp.org/")
|
59 |
+
|
60 |
+
# Bullet
|
61 |
+
@@ -300,6 +307,8 @@ find_package(Bullet QUIET)
|
62 |
+
macro_log_feature(BULLET_FOUND "Bullet" "Bullet physics" "https://pybullet.org")
|
63 |
+
|
64 |
+
if(assimp_FOUND)
|
65 |
+
+ add_library(fix::assimp ALIAS assimp::assimp)
|
66 |
+
+elseif(0)
|
67 |
+
# workaround horribly broken assimp cmake, fixed with assimp 5.1
|
68 |
+
add_library(fix::assimp INTERFACE IMPORTED)
|
69 |
+
set_target_properties(fix::assimp PROPERTIES
|
70 |
+
@@ -318,7 +327,7 @@ endif()
|
71 |
+
# Find sdl2
|
72 |
+
if(NOT ANDROID AND NOT EMSCRIPTEN)
|
73 |
+
# find script does not work in cross compilation environment
|
74 |
+
- find_package(SDL2 QUIET)
|
75 |
+
+ find_package(SDL2 CONFIG REQUIRED)
|
76 |
+
macro_log_feature(SDL2_FOUND "SDL2" "Simple DirectMedia Library needed for input handling in samples" "https://www.libsdl.org/")
|
77 |
+
if(SDL2_FOUND AND NOT TARGET SDL2::SDL2)
|
78 |
+
add_library(SDL2::SDL2 INTERFACE IMPORTED)
|
79 |
+
diff --git a/CMake/Templates/OGREConfig.cmake.in b/CMake/Templates/OGREConfig.cmake.in
|
80 |
+
index 2047f6648..a5c7cd006 100644
|
81 |
+
--- a/CMake/Templates/OGREConfig.cmake.in
|
82 |
+
+++ b/CMake/Templates/OGREConfig.cmake.in
|
83 |
+
@@ -35,6 +35,25 @@ set(OGRE_LIBRARIES)
|
84 |
+
cmake_policy(PUSH)
|
85 |
+
cmake_policy(SET CMP0012 NEW)
|
86 |
+
|
87 |
+
+include(CMakeFindDependencyMacro)
|
88 |
+
+find_dependency(pugixml CONFIG)
|
89 |
+
+find_dependency(SDL2 CONFIG)
|
90 |
+
+find_dependency(ZLIB)
|
91 |
+
+find_dependency(freetype CONFIG)
|
92 |
+
+if (@OGRE_BUILD_COMPONENT_OVERLAY_IMGUI@)
|
93 |
+
+ find_dependency(imgui CONFIG)
|
94 |
+
+endif()
|
95 |
+
+if(@OGRE_BUILD_PLUGIN_ASSIMP@)
|
96 |
+
+ find_dependency(assimp CONFIG)
|
97 |
+
+endif()
|
98 |
+
+if(@OGRE_BUILD_PLUGIN_FREEIMAGE@)
|
99 |
+
+ find_dependency(freeimage CONFIG)
|
100 |
+
+endif()
|
101 |
+
+if(@OGRE_BUILD_PLUGIN_EXRCODEC@)
|
102 |
+
+ find_dependency(Imath CONFIG)
|
103 |
+
+ find_dependency(OpenEXR CONFIG)
|
104 |
+
+endif()
|
105 |
+
+
|
106 |
+
if(@OGRE_THREAD_PROVIDER@ EQUAL 1)
|
107 |
+
list(APPEND OGRE_INCLUDE_DIRS @Boost_INCLUDE_DIRS@)
|
108 |
+
endif()
|
109 |
+
diff --git a/Components/Bites/CMakeLists.txt b/Components/Bites/CMakeLists.txt
|
110 |
+
index 59756c148..9d7cc07ca 100644
|
111 |
+
--- a/Components/Bites/CMakeLists.txt
|
112 |
+
+++ b/Components/Bites/CMakeLists.txt
|
113 |
+
@@ -177,6 +177,12 @@ if(SDL2_FOUND)
|
114 |
+
elseif(NOT EMSCRIPTEN)
|
115 |
+
message(WARNING "SDL2 not found - no input handling and reduced window creation capabilites")
|
116 |
+
endif()
|
117 |
+
+
|
118 |
+
+if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)
|
119 |
+
+ find_package(imgui CONFIG REQUIRED)
|
120 |
+
+ find_path(IMGUI_DIR NAMES imgui.h)
|
121 |
+
+ target_link_libraries(OgreBites PRIVATE imgui::imgui)
|
122 |
+
+endif()
|
123 |
+
|
124 |
+
generate_export_header(OgreBites
|
125 |
+
EXPORT_MACRO_NAME _OgreBitesExport
|
126 |
+
diff --git a/Components/Overlay/CMakeLists.txt b/Components/Overlay/CMakeLists.txt
|
127 |
+
index 257a30c0c..cdeb6e129 100644
|
128 |
+
--- a/Components/Overlay/CMakeLists.txt
|
129 |
+
+++ b/Components/Overlay/CMakeLists.txt
|
130 |
+
@@ -19,6 +19,8 @@ list(APPEND HEADER_FILES
|
131 |
+
file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
|
132 |
+
|
133 |
+
if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)
|
134 |
+
+ find_package(imgui CONFIG REQUIRED)
|
135 |
+
+elseif(0)
|
136 |
+
set(IMGUI_DIR "${PROJECT_BINARY_DIR}/imgui-1.90.4" CACHE PATH "")
|
137 |
+
if(NOT EXISTS ${IMGUI_DIR})
|
138 |
+
message(STATUS "Downloading imgui")
|
139 |
+
@@ -63,6 +65,8 @@ elseif(UNIX)
|
140 |
+
endif()
|
141 |
+
|
142 |
+
if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI)
|
143 |
+
+ target_link_libraries(OgreOverlay PUBLIC OgreMain PRIVATE imgui::imgui)
|
144 |
+
+elseif(0)
|
145 |
+
target_include_directories(OgreOverlay PUBLIC
|
146 |
+
PUBLIC "$<BUILD_INTERFACE:${IMGUI_DIR}>"
|
147 |
+
PRIVATE "$<BUILD_INTERFACE:${IMGUI_DIR}/misc/freetype>")
|
148 |
+
diff --git a/PlugIns/EXRCodec/src/OgreEXRCodec.cpp b/PlugIns/EXRCodec/src/OgreEXRCodec.cpp
|
149 |
+
index efd4b32de..1e3ea2316 100644
|
150 |
+
--- a/PlugIns/EXRCodec/src/OgreEXRCodec.cpp
|
151 |
+
+++ b/PlugIns/EXRCodec/src/OgreEXRCodec.cpp
|
152 |
+
@@ -36,6 +36,9 @@ THE SOFTWARE.
|
153 |
+
#include "O_IStream.h"
|
154 |
+
|
155 |
+
#include <cmath>
|
156 |
+
+#include <ImathBox.h>
|
157 |
+
+#include <ImfFrameBuffer.h>
|
158 |
+
+#include <ImfHeader.h>
|
159 |
+
#include <ImfOutputFile.h>
|
160 |
+
#include <ImfInputFile.h>
|
161 |
+
#include <ImfChannelList.h>
|
162 |
+
diff --git a/PlugIns/STBICodec/CMakeLists.txt b/PlugIns/STBICodec/CMakeLists.txt
|
163 |
+
index 10283f51e..e7edfd32e 100644
|
164 |
+
--- a/PlugIns/STBICodec/CMakeLists.txt
|
165 |
+
+++ b/PlugIns/STBICodec/CMakeLists.txt
|
166 |
+
@@ -19,8 +19,10 @@ endif()
|
167 |
+
add_library(Codec_STBI ${OGRE_LIB_TYPE} ${HEADER_FILES} ${SOURCES})
|
168 |
+
target_link_libraries(Codec_STBI PUBLIC OgreMain)
|
169 |
+
|
170 |
+
+find_path(STB_INCLUDE_DIRS "stb_image.h")
|
171 |
+
target_include_directories(Codec_STBI PUBLIC
|
172 |
+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
|
173 |
+
+ "$<BUILD_INTERFACE:${STB_INCLUDE_DIRS}>"
|
174 |
+
$<INSTALL_INTERFACE:include/OGRE/Plugins/STBICodec>)
|
175 |
+
|
176 |
+
if(CMAKE_COMPILER_IS_GNUCXX)
|
177 |
+
diff --git a/PlugIns/STBICodec/src/OgreSTBICodec.cpp b/PlugIns/STBICodec/src/OgreSTBICodec.cpp
|
178 |
+
index f89e9a16c..df648d700 100644
|
179 |
+
--- a/PlugIns/STBICodec/src/OgreSTBICodec.cpp
|
180 |
+
+++ b/PlugIns/STBICodec/src/OgreSTBICodec.cpp
|
181 |
+
@@ -40,7 +40,7 @@ THE SOFTWARE.
|
182 |
+
#define STBI_NO_STDIO
|
183 |
+
#define STB_IMAGE_IMPLEMENTATION
|
184 |
+
#define STB_IMAGE_STATIC
|
185 |
+
-#include "stbi/stb_image.h"
|
186 |
+
+#include "stb_image.h"
|
187 |
+
|
188 |
+
#ifdef HAVE_ZLIB
|
189 |
+
#include <zlib.h>
|
190 |
+
@@ -63,7 +63,7 @@ static Ogre::uchar* custom_zlib_compress(Ogre::uchar* data, int data_len, int* o
|
191 |
+
|
192 |
+
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
193 |
+
#define STBI_WRITE_NO_STDIO
|
194 |
+
-#include "stbi/stb_image_write.h"
|
195 |
+
+#include "stb_image_write.h"
|
196 |
+
|
197 |
+
namespace Ogre {
|
198 |
+
|
199 |
+
@@ -74,7 +74,7 @@ namespace Ogre {
|
200 |
+
stbi_convert_iphone_png_to_rgb(1);
|
201 |
+
stbi_set_unpremultiply_on_load(1);
|
202 |
+
|
203 |
+
- LogManager::getSingleton().logMessage("stb_image - v2.28 - public domain image loader");
|
204 |
+
+ LogManager::getSingleton().logMessage("stb_image - public domain image loader");
|
205 |
+
|
206 |
+
// Register codecs
|
207 |
+
String exts = "jpeg,jpg,png,bmp,psd,tga,gif,pic,ppm,pgm,hdr";
|
208 |
+
diff --git a/Components/Bites/src/OgreImGuiInputListener.cpp b/Components/Bites/src/OgreImGuiInputListener.cpp
|
209 |
+
index 3cb237946..5629bb5d7 100644
|
210 |
+
--- a/Components/Bites/src/OgreImGuiInputListener.cpp
|
211 |
+
+++ b/Components/Bites/src/OgreImGuiInputListener.cpp
|
212 |
+
@@ -116,7 +116,7 @@ static bool keyEvent(const KeyboardEvent& arg)
|
213 |
+
if (key == ImGuiKey_None)
|
214 |
+
return io.WantCaptureKeyboard;
|
215 |
+
|
216 |
+
- io.AddKeyEvent(ImGuiKey(key), arg.type == OgreBites::KEYDOWN);
|
217 |
+
+ io.AddKeyEvent(static_cast<ImGuiKey>(key), arg.type == OgreBites::KEYDOWN);
|
218 |
+
return io.WantCaptureKeyboard;
|
219 |
+
}
|
220 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/ogre/vcpkg.json
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ogre",
|
3 |
+
"version": "14.2.2",
|
4 |
+
"description": "3D Object-Oriented Graphics Rendering Engine",
|
5 |
+
"homepage": "https://github.com/OGRECave/ogre",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "freetype",
|
11 |
+
"default-features": false
|
12 |
+
},
|
13 |
+
"pugixml",
|
14 |
+
{
|
15 |
+
"name": "sdl2",
|
16 |
+
"platform": "!android"
|
17 |
+
},
|
18 |
+
"stb",
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake",
|
21 |
+
"host": true
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"name": "vcpkg-cmake-config",
|
25 |
+
"host": true
|
26 |
+
},
|
27 |
+
"zlib"
|
28 |
+
],
|
29 |
+
"default-features": [
|
30 |
+
"assimp",
|
31 |
+
"freeimage",
|
32 |
+
"overlay",
|
33 |
+
"zip"
|
34 |
+
],
|
35 |
+
"features": {
|
36 |
+
"assimp": {
|
37 |
+
"description": "Build with assimp support",
|
38 |
+
"dependencies": [
|
39 |
+
"assimp"
|
40 |
+
]
|
41 |
+
},
|
42 |
+
"bullet": {
|
43 |
+
"description": "Build with bullet physics support",
|
44 |
+
"dependencies": [
|
45 |
+
"bullet3"
|
46 |
+
]
|
47 |
+
},
|
48 |
+
"csharp": {
|
49 |
+
"description": "Build csharp bindings",
|
50 |
+
"supports": "!static & !android & !ios & !emscripten"
|
51 |
+
},
|
52 |
+
"d3d9": {
|
53 |
+
"description": "Build Direct3D9 RenderSystem",
|
54 |
+
"supports": "windows"
|
55 |
+
},
|
56 |
+
"freeimage": {
|
57 |
+
"description": "Build with FreeImage support (no effect for Emscripten)",
|
58 |
+
"dependencies": [
|
59 |
+
{
|
60 |
+
"name": "freeimage",
|
61 |
+
"platform": "!emscripten"
|
62 |
+
}
|
63 |
+
]
|
64 |
+
},
|
65 |
+
"java": {
|
66 |
+
"description": "Build Java (JNI) bindings",
|
67 |
+
"supports": "!static & !android & !ios & !emscripten"
|
68 |
+
},
|
69 |
+
"openexr": {
|
70 |
+
"description": "Build with OpenEXR support",
|
71 |
+
"dependencies": [
|
72 |
+
"openexr"
|
73 |
+
]
|
74 |
+
},
|
75 |
+
"overlay": {
|
76 |
+
"description": "Build overlay component",
|
77 |
+
"dependencies": [
|
78 |
+
{
|
79 |
+
"name": "imgui",
|
80 |
+
"features": [
|
81 |
+
"freetype"
|
82 |
+
]
|
83 |
+
}
|
84 |
+
]
|
85 |
+
},
|
86 |
+
"python": {
|
87 |
+
"description": "Build Python bindings",
|
88 |
+
"supports": "!static & !android & !ios & !emscripten",
|
89 |
+
"dependencies": [
|
90 |
+
"python3"
|
91 |
+
]
|
92 |
+
},
|
93 |
+
"strict": {
|
94 |
+
"description": "Force Ogre resource manager to be strict with group names and resource names"
|
95 |
+
},
|
96 |
+
"tools": {
|
97 |
+
"description": "Build tools",
|
98 |
+
"supports": "!android & !emscripten"
|
99 |
+
},
|
100 |
+
"zip": {
|
101 |
+
"description": "Build ZIP archive support"
|
102 |
+
},
|
103 |
+
"zziplib": {
|
104 |
+
"description": "Obsolete, use zip feature instead",
|
105 |
+
"dependencies": [
|
106 |
+
{
|
107 |
+
"name": "ogre",
|
108 |
+
"default-features": false,
|
109 |
+
"features": [
|
110 |
+
"zip"
|
111 |
+
]
|
112 |
+
}
|
113 |
+
]
|
114 |
+
}
|
115 |
+
}
|
116 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/pfultz2-linq/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO pfultz2/Linq
|
6 |
+
REF 7ff0a73fed52be5e11df3d79128ce7b11f430af2
|
7 |
+
SHA512 6768e28bf17568436b4c3fed18f6b1edbe048b871ebee25580419b805498beb0800e473ecdc5acc0f9f89bec47d16fd3806018ce6395bdf14a8e2975cde9381f
|
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/linq PACKAGE_NAME linq)
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
22 |
+
|
23 |
+
# Handle copyright
|
24 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|