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/any-lite/portfile.cmake +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/any-lite/vcpkg.json +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/anyrpc/mingw.patch +216 -0
- cc-multilingual-main/cc_net/vcpkg/ports/anyrpc/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/anyrpc/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/attr/portfile.cmake +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/attr/vcpkg.json +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/avisynthplus/portfile.cmake +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/avisynthplus/vcpkg.json +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-parameter-python/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-parameter-python/vcpkg.json +36 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cryptopp/patch.patch +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cryptopp/portfile.cmake +93 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cryptopp/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/curlpp/fix-cmake.patch +52 -0
- cc-multilingual-main/cc_net/vcpkg/ports/curlpp/fix-findzliberror.patch +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/curlpp/portfile.cmake +45 -0
- cc-multilingual-main/cc_net/vcpkg/ports/curlpp/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fixed-string/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fixed-string/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freerdp/cmake-project-include.cmake +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freerdp/dependencies.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freerdp/portfile.cmake +138 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freerdp/vcpkg.json +76 -0
- cc-multilingual-main/cc_net/vcpkg/ports/keystone/portfile.cmake +44 -0
- cc-multilingual-main/cc_net/vcpkg/ports/keystone/vcpkg.json +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kvasir-mpl/portfile.cmake +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kvasir-mpl/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libcoro/portfile.cmake +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libcoro/vcpkg.json +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libgta/portfile.cmake +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libgta/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsercomm/dev-SER_END_DECL-fix.patch +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsercomm/portfile.cmake +42 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsercomm/vcpkg.json +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lpeg/CMakeLists.txt +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lpeg/lpeg.def +3 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lpeg/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lpeg/vcpkg.json +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/luasec/CMakeLists.txt +38 -0
- cc-multilingual-main/cc_net/vcpkg/ports/luasec/portfile.cmake +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/luasec/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mmloader/fix-platform-name.patch +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mmloader/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mmx/copyright +52 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mmx/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mmx/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nvtt/fix-intrinsic-function.patch +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/oatpp-websocket/portfile.cmake +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/oatpp-websocket/vcpkg.json +17 -0
cc-multilingual-main/cc_net/vcpkg/ports/any-lite/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO martinmoene/any-lite
|
4 |
+
REF d45a83b8e49d09ff5e5b66c10a56c997946436d9 #v0.4.0
|
5 |
+
SHA512 b73fe2d1e6de24e143337ef72f71949bf2ae4157a58a5c7e45dd0e9412dd798da6ef929fa09d104305483e769a603b37babd7ba65ab854a33483ab3ec8a921ec
|
6 |
+
)
|
7 |
+
|
8 |
+
vcpkg_cmake_configure(
|
9 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
10 |
+
OPTIONS
|
11 |
+
-DANY_LITE_OPT_BUILD_TESTS=OFF
|
12 |
+
-DANY_LITE_OPT_BUILD_EXAMPLES=OFF
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/any-lite/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "any-lite",
|
3 |
+
"version-semver": "0.4.0",
|
4 |
+
"description": "A C++17-like any, a type-safe container for single values of any type for C++98, C++11 and later in a single-file header-only library",
|
5 |
+
"dependencies": [
|
6 |
+
{
|
7 |
+
"name": "vcpkg-cmake",
|
8 |
+
"host": true
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake-config",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/anyrpc/mingw.patch
ADDED
@@ -0,0 +1,216 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --color -ur a/cmake/FindLog4cplus.cmake b/cmake/FindLog4cplus.cmake
|
2 |
+
--- a/cmake/FindLog4cplus.cmake 2020-01-13 18:31:55.000000000 +0100
|
3 |
+
+++ b/cmake/FindLog4cplus.cmake 2022-07-19 19:35:41.701935383 +0200
|
4 |
+
@@ -61,12 +61,12 @@
|
5 |
+
|
6 |
+
endif ()
|
7 |
+
|
8 |
+
+# needed to use find_package_handle_standard_args
|
9 |
+
+include(FindPackageHandleStandardArgs)
|
10 |
+
+
|
11 |
+
if (LOG4CPLUS_INCLUDE_DIR)
|
12 |
+
# set the correct variable name for the header directories
|
13 |
+
set(LOG4CPLUS_INCLUDE_DIRS ${LOG4CPLUS_INCLUDE_DIR})
|
14 |
+
-
|
15 |
+
- # needed to use find_package_handle_standard_args
|
16 |
+
- include(FindPackageHandleStandardArgs)
|
17 |
+
|
18 |
+
if (LOG4CPLUS_LIBRARY_RELEASE AND LOG4CPLUS_LIBRARY_DEBUG)
|
19 |
+
# set the libaries varible to use the release and debug versions
|
20 |
+
diff --color -ur a/cmake/FindMsgpack.cmake b/cmake/FindMsgpack.cmake
|
21 |
+
--- a/cmake/FindMsgpack.cmake 2020-01-13 18:31:55.000000000 +0100
|
22 |
+
+++ b/cmake/FindMsgpack.cmake 2022-07-19 19:35:41.702935385 +0200
|
23 |
+
@@ -61,13 +61,13 @@
|
24 |
+
|
25 |
+
endif ()
|
26 |
+
|
27 |
+
+# needed to use find_package_handle_standard_args
|
28 |
+
+include(FindPackageHandleStandardArgs)
|
29 |
+
+
|
30 |
+
if (MSGPACK_INCLUDE_DIR)
|
31 |
+
# set the correct variable name for the header directories
|
32 |
+
set(MSGPACK_INCLUDE_DIRS ${MSGPACK_INCLUDE_DIR})
|
33 |
+
|
34 |
+
- # needed to use find_package_handle_standard_args
|
35 |
+
- include(FindPackageHandleStandardArgs)
|
36 |
+
-
|
37 |
+
if (MSGPACK_LIBRARY_RELEASE AND MSGPACK_LIBRARY_DEBUG)
|
38 |
+
# set the libaries varible to use the release and debug versions
|
39 |
+
find_package_handle_standard_args(MSGPACK DEFAULT_MSG MSGPACK_INCLUDE_DIR MSGPACK_LIBRARY_RELEASE MSGPACK_LIBRARY_DEBUG)
|
40 |
+
diff --color -ur a/CMakeLists.txt b/CMakeLists.txt
|
41 |
+
--- a/CMakeLists.txt 2020-01-13 18:31:55.000000000 +0100
|
42 |
+
+++ b/CMakeLists.txt 2022-07-19 19:36:01.112980511 +0200
|
43 |
+
@@ -63,6 +63,7 @@
|
44 |
+
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc" )
|
45 |
+
elseif (MINGW)
|
46 |
+
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U__STRICT_ANSI__" )
|
47 |
+
+ add_definitions( -D _POSIX_THREAD_SAFE_FUNCTIONS )
|
48 |
+
elseif (BUILD_WITH_ADDRESS_SANITIZE)
|
49 |
+
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer" )
|
50 |
+
SET( ASAN_LIBRARY asan )
|
51 |
+
diff --color -ur a/example/CMakeLists.txt b/example/CMakeLists.txt
|
52 |
+
--- a/example/CMakeLists.txt 2020-01-13 18:31:55.000000000 +0100
|
53 |
+
+++ b/example/CMakeLists.txt 2022-07-19 19:35:41.696935371 +0200
|
54 |
+
@@ -48,5 +48,13 @@
|
55 |
+
|
56 |
+
# Add the necessary external library references
|
57 |
+
target_link_libraries( ${SOURCEFILE} anyrpc ${ASAN_LIBRARY} ${LOG4CPLUS_LIBRARIES} ${MSGPACK_LIBRARIES})
|
58 |
+
+
|
59 |
+
+ if (WIN32)
|
60 |
+
+ target_compile_definitions(${SOURCEFILE}
|
61 |
+
+ PRIVATE
|
62 |
+
+ WINVER=0x0A00
|
63 |
+
+ _WIN32_WINNT=0x0A00
|
64 |
+
+ )
|
65 |
+
+ endif ()
|
66 |
+
endforeach ()
|
67 |
+
|
68 |
+
diff --color -ur a/include/anyrpc/connection.h b/include/anyrpc/connection.h
|
69 |
+
--- a/include/anyrpc/connection.h 2020-01-13 18:31:55.000000000 +0100
|
70 |
+
+++ b/include/anyrpc/connection.h 2022-07-19 19:35:41.698935376 +0200
|
71 |
+
@@ -22,11 +22,7 @@
|
72 |
+
#define ANYRPC_CONNECTION_H_
|
73 |
+
|
74 |
+
#if defined(ANYRPC_THREADING)
|
75 |
+
-# if defined(__MINGW32__)
|
76 |
+
-# include "internal/mingw.thread.h"
|
77 |
+
-# else
|
78 |
+
-# include <thread>
|
79 |
+
-# endif // defined(__MINGW32__)
|
80 |
+
+# include <thread>
|
81 |
+
#endif // defined(ANYRPC_THREADING)
|
82 |
+
|
83 |
+
#if defined(ANYRPC_REGEX)
|
84 |
+
diff --color -ur a/include/anyrpc/internal/time.h b/include/anyrpc/internal/time.h
|
85 |
+
--- a/include/anyrpc/internal/time.h 2020-01-13 18:31:55.000000000 +0100
|
86 |
+
+++ b/include/anyrpc/internal/time.h 2022-07-19 19:35:41.698935376 +0200
|
87 |
+
@@ -32,10 +32,6 @@
|
88 |
+
int gettimeofday(struct timeval * tp, struct timezone * tzp);
|
89 |
+
#endif
|
90 |
+
|
91 |
+
-#if defined(__MINGW32__)
|
92 |
+
-struct tm* localtime_r(const time_t *timep, struct tm *result);
|
93 |
+
-#endif
|
94 |
+
-
|
95 |
+
//! Compute the difference between the two times in milliseconds
|
96 |
+
ANYRPC_API int MilliTimeDiff(struct timeval &time1, struct timeval &time2);
|
97 |
+
|
98 |
+
diff --color -ur a/include/anyrpc/server.h b/include/anyrpc/server.h
|
99 |
+
--- a/include/anyrpc/server.h 2020-01-13 18:31:55.000000000 +0100
|
100 |
+
+++ b/include/anyrpc/server.h 2022-07-19 19:35:41.699935378 +0200
|
101 |
+
@@ -22,24 +22,9 @@
|
102 |
+
#define ANYRPC_SERVER_H_
|
103 |
+
|
104 |
+
#if defined(ANYRPC_THREADING)
|
105 |
+
-# if defined(__MINGW32__)
|
106 |
+
-// These constants are not defined for mingw but are needed in the following libraries
|
107 |
+
-# ifndef EOWNERDEAD
|
108 |
+
-# define EOWNERDEAD 133 /* File too big */
|
109 |
+
-# endif
|
110 |
+
-# ifndef EPROTO
|
111 |
+
-# define EPROTO 134 /* Protocol error */
|
112 |
+
-# endif
|
113 |
+
-
|
114 |
+
-# include "internal/mingw.thread.h"
|
115 |
+
-# include <mutex>
|
116 |
+
-# include "internal/mingw.mutex.h"
|
117 |
+
-# include "internal/mingw.condition_variable.h"
|
118 |
+
-# else
|
119 |
+
-# include <thread>
|
120 |
+
-# include <condition_variable>
|
121 |
+
-# include <mutex>
|
122 |
+
-# endif //defined(__MINGW32__)
|
123 |
+
+# include <thread>
|
124 |
+
+# include <condition_variable>
|
125 |
+
+# include <mutex>
|
126 |
+
#endif //defined(ANYRPC_THREADING)
|
127 |
+
|
128 |
+
namespace anyrpc
|
129 |
+
diff --color -ur a/src/CMakeLists.txt b/src/CMakeLists.txt
|
130 |
+
--- a/src/CMakeLists.txt 2020-01-13 18:31:55.000000000 +0100
|
131 |
+
+++ b/src/CMakeLists.txt 2022-07-19 19:35:41.697935374 +0200
|
132 |
+
@@ -57,6 +57,12 @@
|
133 |
+
# Need the winsock library for Windows
|
134 |
+
if (WIN32)
|
135 |
+
target_link_libraries(anyrpc ws2_32)
|
136 |
+
+
|
137 |
+
+ target_compile_definitions(anyrpc
|
138 |
+
+ PRIVATE
|
139 |
+
+ WINVER=0x0A00
|
140 |
+
+ _WIN32_WINNT=0x0A00
|
141 |
+
+ )
|
142 |
+
endif ()
|
143 |
+
|
144 |
+
set_target_properties( anyrpc PROPERTIES VERSION ${ANYRPC_VERSION} SOVERSION ${ANYRPC_VERSION_MAJOR} )
|
145 |
+
diff --color -ur a/src/internal/time.cpp b/src/internal/time.cpp
|
146 |
+
--- a/src/internal/time.cpp 2020-01-13 18:31:55.000000000 +0100
|
147 |
+
+++ b/src/internal/time.cpp 2022-07-19 19:35:41.699935378 +0200
|
148 |
+
@@ -26,11 +26,8 @@
|
149 |
+
#include <chrono>
|
150 |
+
#endif
|
151 |
+
|
152 |
+
-#if defined(_MSC_VER)
|
153 |
+
-#elif defined(__MINGW32__)
|
154 |
+
-#include <unistd.h>
|
155 |
+
-#else
|
156 |
+
-#include <time.h>
|
157 |
+
+#if !defined(_MSC_VER)
|
158 |
+
+# include <time.h>
|
159 |
+
#endif
|
160 |
+
|
161 |
+
namespace anyrpc
|
162 |
+
@@ -57,16 +54,6 @@
|
163 |
+
}
|
164 |
+
#endif
|
165 |
+
|
166 |
+
-#if defined(__MINGW32__)
|
167 |
+
-struct tm* localtime_r(const time_t *timep, struct tm *result)
|
168 |
+
-{
|
169 |
+
- // with Windows localtime is threadsafe since the pointer is to thread local storage
|
170 |
+
- struct tm *t=localtime(timep);
|
171 |
+
- memcpy(result,t,sizeof(struct tm));
|
172 |
+
- return result;
|
173 |
+
-}
|
174 |
+
-#endif
|
175 |
+
-
|
176 |
+
int MilliTimeDiff( struct timeval &time1, struct timeval &time2 )
|
177 |
+
{
|
178 |
+
return (time1.tv_sec - time2.tv_sec) * 1000 + (time1.tv_usec - time2.tv_usec)/1000;
|
179 |
+
diff --color -ur a/src/socket.cpp b/src/socket.cpp
|
180 |
+
--- a/src/socket.cpp 2020-01-13 18:31:55.000000000 +0100
|
181 |
+
+++ b/src/socket.cpp 2022-07-19 19:35:41.701935383 +0200
|
182 |
+
@@ -98,7 +98,7 @@
|
183 |
+
int Socket::SetKeepAliveInterval(int startTime, int interval, int probeCount)
|
184 |
+
{
|
185 |
+
log_debug( "SetKeepAliveInterval: startTime=" << startTime << ", interval=" << interval << ", probeCount=" << probeCount);
|
186 |
+
-#if defined(_MSC_VER)
|
187 |
+
+#if defined(_MSC_VER) || defined(__MINGW32__)
|
188 |
+
DWORD outBytes;
|
189 |
+
tcp_keepalive tcp_ka;
|
190 |
+
tcp_ka.onoff = 1;
|
191 |
+
@@ -109,7 +109,7 @@
|
192 |
+
if (result < 0)
|
193 |
+
log_debug( "SetKeepAliveInterval: result = " << result );
|
194 |
+
return result;
|
195 |
+
-#elif defined(__MINGW32__) || defined(__CYGWIN__)
|
196 |
+
+#elif defined(__CYGWIN__)
|
197 |
+
// don't see how this can be performed right now
|
198 |
+
#elif (__APPLE__)
|
199 |
+
int result = setsockopt( fd_, IPPROTO_TCP, TCP_KEEPALIVE, (char*)&startTime, sizeof(startTime) );
|
200 |
+
@@ -554,15 +554,11 @@
|
201 |
+
|
202 |
+
port = ntohs(receiveAddr.sin_port);
|
203 |
+
|
204 |
+
-#if defined(__MINGW32__)
|
205 |
+
- // should be thread-safe since it would use the Windows call
|
206 |
+
- ipAddress = inet_ntoa(receiveAddr.sin_addr);
|
207 |
+
-#else
|
208 |
+
// Only need this buffer to perform the address conversion in a thread-safe call
|
209 |
+
const unsigned bufferLength = 100;
|
210 |
+
char addrBuffer[bufferLength];
|
211 |
+
ipAddress = inet_ntop(AF_INET,&receiveAddr.sin_addr, addrBuffer, bufferLength);
|
212 |
+
-#endif
|
213 |
+
+
|
214 |
+
log_debug("Udp Receive: address=" << ipAddress << ", port=" << port);
|
215 |
+
|
216 |
+
eof = (numBytes == 0);
|
cc-multilingual-main/cc_net/vcpkg/ports/anyrpc/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO sgieseking/anyrpc
|
4 |
+
REF b1949b3d40849229055ae75cf5334b9d08579502
|
5 |
+
SHA512 8c674d29e80ec2522d6c1ec959663958ab4e1bf1135727c3c2aaa19e62a81ddbbd1e6a46f3e4679ee02894ad2ab26e70ca7e1e6c8750f3289994311069221b53
|
6 |
+
HEAD_REF master
|
7 |
+
FILE_DISAMBIGUATOR 1
|
8 |
+
PATCHES
|
9 |
+
mingw.patch # Remove this when https://github.com/sgieseking/anyrpc/pull/46 is released
|
10 |
+
)
|
11 |
+
|
12 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ANYRPC_LIB_BUILD_SHARED)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
DISABLE_PARALLEL_CONFIGURE
|
17 |
+
OPTIONS
|
18 |
+
-DBUILD_EXAMPLES=OFF
|
19 |
+
-DBUILD_TESTS=OFF
|
20 |
+
-DBUILD_WITH_LOG4CPLUS=OFF
|
21 |
+
-DANYRPC_LIB_BUILD_SHARED=${ANYRPC_LIB_BUILD_SHARED}
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
|
26 |
+
file(INSTALL "${SOURCE_PATH}/license" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
28 |
+
|
29 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/anyrpc/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "anyrpc",
|
3 |
+
"version-date": "2021-08-24",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "A multiprotocol remote procedure call system for C++.",
|
6 |
+
"homepage": "https://github.com/sgieseking/anyrpc",
|
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/attr/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://download.savannah.nongnu.org/releases/attr/attr-${VERSION}.tar.xz"
|
3 |
+
"https://www.mirrorservice.org/sites/download.savannah.gnu.org/releases/attr/attr-${VERSION}.tar.xz"
|
4 |
+
FILENAME "attr-${VERSION}.tar.xz"
|
5 |
+
SHA512 f587ea544effb7cfed63b3027bf14baba2c2dbe3a9b6c0c45fc559f7e8cb477b3e9a4a826eae30f929409468c50d11f3e7dc6d2500f41e1af8662a7e96a30ef3
|
6 |
+
)
|
7 |
+
|
8 |
+
vcpkg_extract_source_archive(
|
9 |
+
SOURCE_PATH
|
10 |
+
ARCHIVE "${ARCHIVE}"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_list(SET options)
|
14 |
+
if("nls" IN_LIST FEATURES)
|
15 |
+
vcpkg_list(APPEND options "--enable-nls")
|
16 |
+
vcpkg_add_to_path(PREPEND "${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin")
|
17 |
+
else()
|
18 |
+
set(ENV{AUTOPOINT} true) # true, the program
|
19 |
+
vcpkg_list(APPEND options "--disable-nls")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
vcpkg_configure_make(
|
23 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
24 |
+
AUTOCONFIG
|
25 |
+
OPTIONS
|
26 |
+
${options}
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_install_make()
|
30 |
+
vcpkg_fixup_pkgconfig()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/etc")
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
34 |
+
|
35 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/COPYING.LGPL")
|
cc-multilingual-main/cc_net/vcpkg/ports/attr/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "attr",
|
3 |
+
"version-semver": "2.5.2",
|
4 |
+
"description": "Commands for Manipulating Filesystem Extended Attributes",
|
5 |
+
"homepage": "http://savannah.nongnu.org/projects/attr",
|
6 |
+
"license": "LGPL-2.1-or-later",
|
7 |
+
"supports": "linux",
|
8 |
+
"features": {
|
9 |
+
"nls": {
|
10 |
+
"description": "Enable native language support",
|
11 |
+
"dependencies": [
|
12 |
+
{
|
13 |
+
"name": "gettext",
|
14 |
+
"host": true,
|
15 |
+
"features": [
|
16 |
+
"tools"
|
17 |
+
]
|
18 |
+
},
|
19 |
+
"gettext-libintl"
|
20 |
+
]
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/avisynthplus/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO AviSynth/AviSynthPlus
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 0e0daa83e3ab729fdc35a52c60c23c9142f1229187af893d0dbbd36f88eced36f63a3e8c767a3dc825edaa5395a49a5aad726f6b61de8f6b291557eec20de426
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_download_distfile(GHC_ARCHIVE
|
10 |
+
URLS "https://github.com/gulrak/filesystem/archive/3f1c185ab414e764c694b8171d1c4d8c5c437517.zip"
|
11 |
+
FILENAME filesystem-3f1c185ab414e764c694b8171d1c4d8c5c437517.zip
|
12 |
+
SHA512 e3fe1e41b31f840ebc219fcd795e7be2973b80bb3843d6bb080786ad9e3e7f846a118673cb9e17d76bae66954e64e024a82622fb8cea7818d5d9357de661d3d1
|
13 |
+
)
|
14 |
+
|
15 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/filesystem")
|
16 |
+
vcpkg_extract_source_archive(extracted_archive ARCHIVE "${GHC_ARCHIVE}")
|
17 |
+
file(RENAME "${extracted_archive}" "${SOURCE_PATH}/filesystem")
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
OPTIONS
|
22 |
+
-DENABLE_PLUGINS=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
vcpkg_copy_pdbs()
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
file(INSTALL "${SOURCE_PATH}/distrib/gpl.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/avisynthplus/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "avisynthplus",
|
3 |
+
"version": "3.7.3",
|
4 |
+
"description": "An improved version of the AviSynth frameserver, with improved features and developer friendliness",
|
5 |
+
"homepage": "https://avs-plus.net/",
|
6 |
+
"license": "GPL-2.0",
|
7 |
+
"supports": "!arm & !uwp & !xbox",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-parameter-python/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/parameter_python
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 a6f6d9bd886063e3a65b52d02832069746a88dd20d6f37b50d439618696d53d57c71552910f92001f27000d331bad1993f78f1f268ecb87f679f0ffc89978607
|
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-parameter-python/vcpkg.json
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-parameter-python",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost parameter_python module",
|
6 |
+
"homepage": "https://github.com/boostorg/parameter_python",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"supports": "!emscripten",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "boost-config",
|
12 |
+
"version>=": "1.84.0"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "boost-mpl",
|
16 |
+
"version>=": "1.84.0"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "boost-parameter",
|
20 |
+
"version>=": "1.84.0"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "boost-preprocessor",
|
24 |
+
"version>=": "1.84.0"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"name": "boost-python",
|
28 |
+
"platform": "!uwp & !emscripten & !ios & !android",
|
29 |
+
"version>=": "1.84.0"
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"name": "boost-vcpkg-helpers",
|
33 |
+
"version>=": "1.84.0"
|
34 |
+
}
|
35 |
+
]
|
36 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cryptopp/patch.patch
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/config_cxx.h b/config_cxx.h
|
2 |
+
index ffd57ad..353d7ce 100644
|
3 |
+
--- a/config_cxx.h
|
4 |
+
+++ b/config_cxx.h
|
5 |
+
@@ -217,7 +217,7 @@
|
6 |
+
// Also see https://github.com/weidai11/cryptopp/issues/980. I'm not sure what
|
7 |
+
// to do when the compiler defines __cpp_lib_uncaught_exceptions but the platform
|
8 |
+
// does not support std::uncaught_exceptions. What was Apple thinking???
|
9 |
+
-#if defined(__clang__)
|
10 |
+
+#if defined(__clang__) && !defined(CRYPTOPP_MSC_VERSION)
|
11 |
+
# if __EXCEPTIONS && __has_feature(cxx_exceptions)
|
12 |
+
# if __cpp_lib_uncaught_exceptions >= 201411L
|
13 |
+
# define CRYPTOPP_CXX17_UNCAUGHT_EXCEPTIONS 1
|
14 |
+
diff --git a/config_os.h b/config_os.h
|
15 |
+
index 0994563..4546585 100644
|
16 |
+
--- a/config_os.h
|
17 |
+
+++ b/config_os.h
|
18 |
+
@@ -29,7 +29,7 @@
|
19 |
+
// https://www.cryptopp.com/wiki/Release_Process#Self_Tests
|
20 |
+
// The problems with Clang pretending to be other compilers is
|
21 |
+
// discussed at http://github.com/weidai11/cryptopp/issues/147.
|
22 |
+
-#if (defined(_MSC_VER) && defined(__clang__))
|
23 |
+
+#if (defined(_MSC_VER) && _MSC_VER < 1930 && defined(__clang__))
|
24 |
+
# error: "Unsupported configuration"
|
25 |
+
#endif
|
26 |
+
|
27 |
+
@@ -126,6 +126,7 @@
|
28 |
+
#endif
|
29 |
+
|
30 |
+
#ifdef CRYPTOPP_WIN32_AVAILABLE
|
31 |
+
+#include <winapifamily.h>
|
32 |
+
# if !defined(WINAPI_FAMILY)
|
33 |
+
# define THREAD_TIMER_AVAILABLE
|
34 |
+
# elif defined(WINAPI_FAMILY)
|
cc-multilingual-main/cc_net/vcpkg/ports/cryptopp/portfile.cmake
ADDED
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
string(REPLACE "." "_" CRYPTOPP_VERSION "${VERSION}")
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH CMAKE_SOURCE_PATH
|
6 |
+
REPO abdes/cryptopp-cmake
|
7 |
+
REF "CRYPTOPP_${CRYPTOPP_VERSION}"
|
8 |
+
SHA512 3ec33b107ab627a514e1ebbc4b6522ee8552525f36730d9b5feb85e61ba7fc24fd36eb6050e328c6789ff60d47796beaa8eebf7dead787a34395294fae9bb733
|
9 |
+
HEAD_REF master
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_from_github(
|
13 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
14 |
+
REPO weidai11/cryptopp
|
15 |
+
REF "CRYPTOPP_${CRYPTOPP_VERSION}"
|
16 |
+
SHA512 28a67141155c9c15e3e6a2173b3a8487cc38a2a2ade73bf4a09814ca541be6b06e9a501be26f7e2f42a2f80df21b076aa5d8ad4224dc0a1f8d7f3b24deae465e
|
17 |
+
HEAD_REF master
|
18 |
+
PATCHES patch.patch
|
19 |
+
)
|
20 |
+
|
21 |
+
file(COPY "${CMAKE_SOURCE_PATH}/cryptopp" DESTINATION "${SOURCE_PATH}")
|
22 |
+
file(COPY "${CMAKE_SOURCE_PATH}/cmake" DESTINATION "${SOURCE_PATH}")
|
23 |
+
file(COPY "${CMAKE_SOURCE_PATH}/test" DESTINATION "${SOURCE_PATH}")
|
24 |
+
file(COPY "${CMAKE_SOURCE_PATH}/cryptopp/cryptoppConfig.cmake" DESTINATION "${SOURCE_PATH}")
|
25 |
+
file(COPY "${CMAKE_SOURCE_PATH}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
26 |
+
|
27 |
+
if("pem-pack" IN_LIST FEATURES)
|
28 |
+
vcpkg_from_github(
|
29 |
+
OUT_SOURCE_PATH PEM_PACK_SOURCE_PATH
|
30 |
+
REPO noloader/cryptopp-pem
|
31 |
+
REF 095f08ff2ef9bca7b81036a59f2395e4f08ce2e8
|
32 |
+
SHA512 49912758a635faca1f49665ac9552b20576b46e0283aaabc19bb012bdc80586106452018e5088b9b46967717982ca6022ca968edc4cac96a7506d2b1a3e4bf13
|
33 |
+
HEAD_REF master
|
34 |
+
)
|
35 |
+
|
36 |
+
file(GLOB PEM_PACK_FILES
|
37 |
+
${PEM_PACK_SOURCE_PATH}/*.h
|
38 |
+
${PEM_PACK_SOURCE_PATH}/*.cpp
|
39 |
+
)
|
40 |
+
file(INSTALL ${PEM_PACK_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
41 |
+
endif()
|
42 |
+
|
43 |
+
# disable assembly on ARM Windows to fix broken build
|
44 |
+
if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "^arm")
|
45 |
+
set(CRYPTOPP_DISABLE_ASM "ON")
|
46 |
+
elseif(NOT DEFINED CRYPTOPP_DISABLE_ASM) # Allow disabling using a triplet file
|
47 |
+
set(CRYPTOPP_DISABLE_ASM "OFF")
|
48 |
+
endif()
|
49 |
+
|
50 |
+
# Dynamic linking should be avoided for Crypto++ to reduce the attack surface,
|
51 |
+
# so generate a static lib for both dynamic and static vcpkg targets.
|
52 |
+
# See also:
|
53 |
+
# https://www.cryptopp.com/wiki/Visual_Studio#Dynamic_Runtime_Linking
|
54 |
+
# https://www.cryptopp.com/wiki/Visual_Studio#The_DLL
|
55 |
+
|
56 |
+
vcpkg_cmake_configure(
|
57 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
58 |
+
OPTIONS
|
59 |
+
-DCRYPTOPP_SOURCES=${SOURCE_PATH}
|
60 |
+
-DCRYPTOPP_BUILD_SHARED=OFF
|
61 |
+
-DBUILD_STATIC=ON
|
62 |
+
-DCRYPTOPP_BUILD_TESTING=OFF
|
63 |
+
-DCRYPTOPP_BUILD_DOCUMENTATION=OFF
|
64 |
+
-DDISABLE_ASM=${CRYPTOPP_DISABLE_ASM}
|
65 |
+
-DUSE_INTERMEDIATE_OBJECTS_TARGET=OFF # Not required when we build static only
|
66 |
+
-DCMAKE_POLICY_DEFAULT_CMP0063=NEW # Honor "<LANG>_VISIBILITY_PRESET" properties
|
67 |
+
MAYBE_UNUSED_VARIABLES
|
68 |
+
BUILD_STATIC
|
69 |
+
USE_INTERMEDIATE_OBJECTS_TARGET
|
70 |
+
CMAKE_POLICY_DEFAULT_CMP0063
|
71 |
+
)
|
72 |
+
|
73 |
+
vcpkg_cmake_install()
|
74 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/cryptopp)
|
75 |
+
|
76 |
+
if(NOT VCPKG_BUILD_TYPE)
|
77 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
78 |
+
endif()
|
79 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
80 |
+
vcpkg_fixup_pkgconfig()
|
81 |
+
|
82 |
+
# There is no way to suppress installation of the headers and resource files in debug build.
|
83 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
84 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
85 |
+
|
86 |
+
|
87 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
88 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
89 |
+
endif()
|
90 |
+
|
91 |
+
# Handle copyright
|
92 |
+
file(COPY "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
93 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/License.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|
cc-multilingual-main/cc_net/vcpkg/ports/cryptopp/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cryptopp",
|
3 |
+
"version": "8.9.0",
|
4 |
+
"description": "Crypto++ is a free C++ class library of cryptographic schemes.",
|
5 |
+
"homepage": "https://github.com/weidai11/cryptopp",
|
6 |
+
"license": "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 |
+
"features": {
|
18 |
+
"pem-pack": {
|
19 |
+
"description": "Crypto++ with PEM pack"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/curlpp/fix-cmake.patch
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8b183a0..a801ae8 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -85,11 +85,12 @@ endif()
|
6 |
+
|
7 |
+
file(GLOB_RECURSE HeaderFileList "${CMAKE_CURRENT_SOURCE_DIR}/include/*")
|
8 |
+
file(GLOB_RECURSE SourceFileList "${CMAKE_CURRENT_SOURCE_DIR}/src/*")
|
9 |
+
+if(BUILD_SHARED_LIBS)
|
10 |
+
add_library(${PROJECT_NAME} SHARED ${HeaderFileList} ${SourceFileList})
|
11 |
+
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES} ${CONAN_LIBS})
|
12 |
+
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION 1 VERSION 1.0.0)
|
13 |
+
-
|
14 |
+
-add_library(${PROJECT_NAME}_static STATIC ${HeaderFileList} ${SourceFileList})
|
15 |
+
+else()
|
16 |
+
+add_library(${PROJECT_NAME} STATIC ${HeaderFileList} ${SourceFileList})
|
17 |
+
|
18 |
+
# Make sure that on unix-platforms shared and static libraries have
|
19 |
+
# the same root name, but different suffixes.
|
20 |
+
@@ -97,19 +98,28 @@ add_library(${PROJECT_NAME}_static STATIC ${HeaderFileList} ${SourceFileList})
|
21 |
+
# (solution taken from https://cmake.org/Wiki/CMake_FAQ#How_do_I_make_my_shared_and_static_libraries_have_the_same_root_name.2C_but_different_suffixes.3F)
|
22 |
+
#
|
23 |
+
# Making shared and static libraries have the same root name, but different suffixes
|
24 |
+
-SET_TARGET_PROPERTIES(${PROJECT_NAME}_static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
25 |
+
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
26 |
+
# Now the library target "curlpp_static" will be named "curlpp.lib" with MS tools.
|
27 |
+
# This conflicts with the "curlpp.lib" import library corresponding to "curlpp.dll",
|
28 |
+
# so we add a "lib" prefix (which is default on other platforms anyway):
|
29 |
+
-SET_TARGET_PROPERTIES(${PROJECT_NAME}_static PROPERTIES PREFIX "lib")
|
30 |
+
-target_link_libraries(${PROJECT_NAME}_static ${CURL_LIBRARIES} ${CONAN_LIBS})
|
31 |
+
+SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES PREFIX "lib")
|
32 |
+
+target_link_libraries(${PROJECT_NAME} CURL::libcurl)
|
33 |
+
+endif()
|
34 |
+
+
|
35 |
+
+target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:include>)
|
36 |
+
|
37 |
+
# install headers
|
38 |
+
install(DIRECTORY include/utilspp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/utilspp")
|
39 |
+
install(DIRECTORY include/curlpp/ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/curlpp")
|
40 |
+
|
41 |
+
-install(TARGETS ${PROJECT_NAME} ${PROJECT_NAME}_static
|
42 |
+
+install(TARGETS ${PROJECT_NAME}
|
43 |
+
+ EXPORT ${PROJECT_NAME}-config
|
44 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
45 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
46 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
47 |
+
|
48 |
+
+install(EXPORT ${PROJECT_NAME}-config
|
49 |
+
+ FILE unofficial-${PROJECT_NAME}-config.cmake
|
50 |
+
+ NAMESPACE unofficial::${PROJECT_NAME}::
|
51 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
|
52 |
+
+)
|
cc-multilingual-main/cc_net/vcpkg/ports/curlpp/fix-findzliberror.patch
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index c42943c..12d402c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,3 +1,4 @@
|
6 |
+
+cmake_minimum_required(VERSION 2.8)
|
7 |
+
project(curlpp)
|
8 |
+
|
9 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/curlpp/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jpbarrette/curlpp
|
4 |
+
REF 8810334c830faa3b38bcd94f5b1ab695a4f05eb9
|
5 |
+
SHA512 47eb0738d7cd2d4262c455f9472a21535343bcf08bda6de19771dab9204e068272b41782c87057d50e3781683a29e79d6387577be68d175a7fa890367f15d0d2
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-cmake.patch
|
9 |
+
fix-findzliberror.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT} PACKAGE_NAME unofficial-${PORT})
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
23 |
+
file(REMOVE_RECURSE
|
24 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
25 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
26 |
+
)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT (VCPKG_LIBRARY_LINKAGE STREQUAL static))
|
30 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/bin/curlpp-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/..")
|
31 |
+
if(NOT VCPKG_BUILD_TYPE)
|
32 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/bin/curlpp-config" "${CURRENT_PACKAGES_DIR}" "`dirname $0`/../..")
|
33 |
+
endif()
|
34 |
+
endif()
|
35 |
+
|
36 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/unofficial-curlpp/unofficial-curlpp-config.cmake"
|
37 |
+
"# Generated by CMake"
|
38 |
+
[[# Generated by CMake
|
39 |
+
include(CMakeFindDependencyMacro)
|
40 |
+
find_dependency(CURL)]])
|
41 |
+
|
42 |
+
vcpkg_copy_pdbs()
|
43 |
+
vcpkg_fixup_pkgconfig()
|
44 |
+
|
45 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/doc/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/curlpp/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "curlpp",
|
3 |
+
"version-date": "2018-06-15",
|
4 |
+
"port-version": 9,
|
5 |
+
"description": "C++ wrapper around libcURL",
|
6 |
+
"homepage": "https://github.com/jpbarrette/curlpp",
|
7 |
+
"license": "MIT",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "curl",
|
11 |
+
"default-features": false
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "vcpkg-cmake-config",
|
19 |
+
"host": true
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/fixed-string/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO unterumarmung/fixed_string
|
6 |
+
REF v0.1.1
|
7 |
+
SHA512 8367f7cf898dd88918913f6e788cc5841eab7cd56d61f3ea21636bf3253f450d5dd6207a259d4c5980d863c2ce55fba35e3e8944341f56dbfd56faa29c39746e
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DFIXED_STRING_OPT_BUILD_EXAMPLES=OFF
|
15 |
+
-DFIXED_STRING_OPT_BUILD_TESTS=OFF
|
16 |
+
-DFIXED_STRING_OPT_INSTALL=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME fixed_string CONFIG_PATH lib/cmake/fixed_string)
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/fixed-string/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "fixed-string",
|
3 |
+
"version": "0.1.1",
|
4 |
+
"description": "Header-only C++17 library provides a string class with std::array fixed-size semantic.",
|
5 |
+
"homepage": "https://github.com/unterumarmung/fixed_string",
|
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/freerdp/cmake-project-include.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
find_package(PkgConfig REQUIRED)
|
2 |
+
if(CHANNEL_URBDRC)
|
3 |
+
pkg_check_modules(vcpkg_libusb REQUIRED libusb-1.0)
|
4 |
+
set(LIBUSB_1_INCLUDE_DIR "${vcpkg_libusb_INCLUDE_DIRS}")
|
5 |
+
set(LIBUSB_1_LIBRARY "${vcpkg_libusb_LINK_LIBRARIES}")
|
6 |
+
string(REPLACE "-Wl,-framework," "-framework " libusb_frameworks "${vcpkg_libusb_LDFLAGS}")
|
7 |
+
list(FILTER libusb_frameworks INCLUDE REGEX "^-framework ")
|
8 |
+
list(APPEND LIBUSB_1_LIBRARY ${libusb_frameworks})
|
9 |
+
endif()
|
10 |
+
if(WITH_FFMPEG)
|
11 |
+
# Exact pkg_check_modules signature as in project
|
12 |
+
pkg_check_modules(AVCODEC libavcodec)
|
13 |
+
set(AVCODEC_LIBRARY "${AVCODEC_LINK_LIBRARIES}")
|
14 |
+
pkg_check_modules(AVUTIL libavutil)
|
15 |
+
set(AVUTIL_LIBRARY "${AVUTIL_LINK_LIBRARIES}")
|
16 |
+
string(REPLACE "-Wl,-framework," "-framework " avutil_frameworks "${AVUTIL_LDFLAGS}")
|
17 |
+
list(FILTER avutil_frameworks INCLUDE REGEX "^-framework ")
|
18 |
+
list(APPEND AVUTIL_LIBRARY ${avutil_frameworks})
|
19 |
+
pkg_check_modules(SWRESAMPLE libswresample)
|
20 |
+
set(SWRESAMPLE_LIBRARY "${SWRESAMPLE_LINK_LIBRARIES}")
|
21 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/freerdp/dependencies.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/FindFeature.cmake b/cmake/FindFeature.cmake
|
2 |
+
index bd25fd4..dd180a3 100644
|
3 |
+
--- a/cmake/FindFeature.cmake
|
4 |
+
+++ b/cmake/FindFeature.cmake
|
5 |
+
@@ -15,7 +15,7 @@ macro(find_feature _feature _type _purpose _description)
|
6 |
+
set(_feature_default "ON")
|
7 |
+
message(STATUS "Finding ${_type_lower} feature ${_feature} for ${_purpose} (${_description})")
|
8 |
+
find_package(${_feature} REQUIRED)
|
9 |
+
- elseif(${_type} STREQUAL "RECOMMENDED")
|
10 |
+
+ elseif(0)
|
11 |
+
if(NOT ${WITH_${_feature_upper}})
|
12 |
+
set(_feature_default "OFF")
|
13 |
+
message(STATUS "Skipping ${_type_lower} feature ${_feature} for ${_purpose} (${_description})")
|
14 |
+
@@ -29,7 +29,7 @@ macro(find_feature _feature _type _purpose _description)
|
15 |
+
message(STATUS "Not detected ${_type_lower} feature ${_feature} for ${_purpose} (${_description}), feature disabled")
|
16 |
+
endif()
|
17 |
+
endif()
|
18 |
+
- elseif(${_type} STREQUAL "OPTIONAL")
|
19 |
+
+ elseif(1)
|
20 |
+
if(${WITH_${_feature_upper}})
|
21 |
+
set(_feature_default "ON")
|
22 |
+
message(STATUS "Finding ${_type_lower} feature ${_feature} for ${_purpose} (${_description})")
|
cc-multilingual-main/cc_net/vcpkg/ports/freerdp/portfile.cmake
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO FreeRDP/FreeRDP
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 aa96ad2bf30dbe09849ecfb64ec6e60ba4fd3bc2d144c7d576b1e59476ef45d9d744da37806b1c00e3a0413390b35c6d3d4401b89c07c5663122280eca39e501
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
dependencies.patch
|
9 |
+
install-layout.patch
|
10 |
+
keep-dup-libs.patch
|
11 |
+
windows-linkage.patch
|
12 |
+
)
|
13 |
+
file(WRITE "${SOURCE_PATH}/.source_version" "${VERSION}-vcpkg")
|
14 |
+
file(WRITE "${SOURCE_PATH}/CMakeCPack.cmake" "")
|
15 |
+
|
16 |
+
if("x11" IN_LIST FEATURES)
|
17 |
+
message(STATUS "${PORT} currently requires the following libraries from the system package manager:\n libxfixes-dev\n")
|
18 |
+
endif()
|
19 |
+
|
20 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
21 |
+
FEATURES
|
22 |
+
ffmpeg WITH_FFMPEG
|
23 |
+
ffmpeg WITH_SWSCALE
|
24 |
+
server WITH_SERVER
|
25 |
+
urbdrc CHANNEL_URBDRC
|
26 |
+
wayland WITH_WAYLAND
|
27 |
+
winpr-tools WITH_WINPR_TOOLS
|
28 |
+
x11 WITH_X11
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_list(SET GENERATOR_OPTION)
|
32 |
+
if(VCPKG_TARGET_IS_OSX)
|
33 |
+
list(APPEND GENERATOR_OPTION GENERATOR "Unix Makefiles")
|
34 |
+
endif()
|
35 |
+
|
36 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
37 |
+
|
38 |
+
vcpkg_cmake_configure(
|
39 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
40 |
+
${GENERATOR_OPTION}
|
41 |
+
OPTIONS
|
42 |
+
${FEATURE_OPTIONS}
|
43 |
+
"-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
|
44 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_cJSON=ON
|
45 |
+
-DUSE_VERSION_FROM_GIT_TAG=OFF
|
46 |
+
-DWITH_AAD=ON
|
47 |
+
-DWITH_CCACHE=OFF
|
48 |
+
-DWITH_CLANG_FORMAT=OFF
|
49 |
+
-DWITH_MANPAGES=OFF
|
50 |
+
-DWITH_OPENSSL=ON
|
51 |
+
-DWITH_SAMPLE=OFF
|
52 |
+
-DWITH_UNICODE_BUILTIN=ON
|
53 |
+
-DWITH_CLIENT=OFF
|
54 |
+
"-DMSVC_RUNTIME=${VCPKG_CRT_LINKAGE}"
|
55 |
+
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
56 |
+
-DPKG_CONFIG_USE_CMAKE_PREFIX_PATH=ON
|
57 |
+
# Uncontrolled dependencies w.r.t. vcpkg ports, system libs, or tools
|
58 |
+
# Can be overriden in custom triplet file
|
59 |
+
-DUSE_UNWIND=OFF
|
60 |
+
-DWITH_ALSA=OFF
|
61 |
+
-DWITH_CAIRO=OFF
|
62 |
+
-DWITH_CLIENT_SDL=OFF
|
63 |
+
-DWITH_CUPS=OFF
|
64 |
+
-DWITH_FUSE=OFF
|
65 |
+
-DWITH_KRB5=OFF
|
66 |
+
-DWITH_LIBSYSTEMD=OFF
|
67 |
+
-DWITH_OPUS=OFF
|
68 |
+
-DWITH_OSS=OFF
|
69 |
+
-DWITH_PCSC=OFF
|
70 |
+
-DWITH_PKCS11=OFF
|
71 |
+
-DWITH_PROXY_MODULES=OFF
|
72 |
+
-DWITH_PULSE=OFF
|
73 |
+
-DWITH_URIPARSER=OFF
|
74 |
+
-DVCPKG_TRACE_FIND_PACKAGE=ON
|
75 |
+
MAYBE_UNUSED_VARIABLES
|
76 |
+
MSVC_RUNTIME
|
77 |
+
)
|
78 |
+
|
79 |
+
vcpkg_cmake_install()
|
80 |
+
vcpkg_copy_pdbs()
|
81 |
+
vcpkg_fixup_pkgconfig()
|
82 |
+
|
83 |
+
vcpkg_list(SET tools)
|
84 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
85 |
+
if("server" IN_LIST FEATURES)
|
86 |
+
list(APPEND tools wfreerdp-server)
|
87 |
+
endif()
|
88 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
89 |
+
if("server" IN_LIST FEATURES)
|
90 |
+
list(APPEND tools mfreerdp-server)
|
91 |
+
endif()
|
92 |
+
endif()
|
93 |
+
if("server" IN_LIST FEATURES)
|
94 |
+
list(APPEND tools freerdp-proxy freerdp-shadow-cli)
|
95 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeRDP-Proxy3 PACKAGE_NAME freerdp-Proxy3 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
96 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeRDP-Server3 PACKAGE_NAME freerdp-server3 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
97 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeRDP-Shadow3 PACKAGE_NAME freerdp-shadow3 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
98 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/rdtk0 PACKAGE_NAME rdtk0 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
99 |
+
endif()
|
100 |
+
if("wayland" IN_LIST FEATURES)
|
101 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/uwac0 PACKAGE_NAME uwac0 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
102 |
+
endif()
|
103 |
+
if("winpr-tools" IN_LIST FEATURES)
|
104 |
+
list(APPEND tools winpr-hash winpr-makecert)
|
105 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/WinPR-tools3 PACKAGE_NAME winpr-tools3 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
106 |
+
endif()
|
107 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeRDP-Client3 PACKAGE_NAME freerdp-client3 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
108 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/WinPR3 PACKAGE_NAME winpr3 DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
109 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeRDP3 PACKAGE_NAME freerdp)
|
110 |
+
|
111 |
+
if(tools)
|
112 |
+
vcpkg_copy_tools(TOOL_NAMES ${tools} AUTO_CLEAN)
|
113 |
+
endif()
|
114 |
+
|
115 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/freerdp/build-config.h" "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel" ".")
|
116 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/freerdp/build-config.h" "${CURRENT_PACKAGES_DIR}/" "")
|
117 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/freerdp/build-config.h" "${CURRENT_PACKAGES_DIR}" "")
|
118 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
119 |
+
# They build static with dllexport, so it must be used with dllexport. Proper fix needs invasive patching.
|
120 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/freerdp/api.h" "#ifdef FREERDP_EXPORTS" "#if 1")
|
121 |
+
if(WITH_SERVER)
|
122 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/rdtk0/rdtk/api.h" "#ifdef RDTK_EXPORTS" "#if 1")
|
123 |
+
endif()
|
124 |
+
endif()
|
125 |
+
|
126 |
+
file(REMOVE_RECURSE
|
127 |
+
"${CURRENT_PACKAGES_DIR}/include/config"
|
128 |
+
"${CURRENT_PACKAGES_DIR}/include/CMakeFiles"
|
129 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
130 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
131 |
+
)
|
132 |
+
|
133 |
+
file(GLOB cmakefiles "${CURRENT_PACKAGES_DIR}/include/*/CMakeFiles")
|
134 |
+
if(cmakefiles)
|
135 |
+
file(REMOVE_RECURSE ${cmakefiles})
|
136 |
+
endif()
|
137 |
+
|
138 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/freerdp/vcpkg.json
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "freerdp",
|
3 |
+
"version": "3.4.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A free implementation of the Remote Desktop Protocol (RDP)",
|
6 |
+
"homepage": "https://github.com/FreeRDP/FreeRDP",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
"cjson",
|
11 |
+
"openssl",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
"zlib"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"ffmpeg": {
|
24 |
+
"description": "Enable image scaling, video and audio with ffmpeg",
|
25 |
+
"supports": "!windows",
|
26 |
+
"dependencies": [
|
27 |
+
{
|
28 |
+
"name": "ffmpeg",
|
29 |
+
"default-features": false,
|
30 |
+
"features": [
|
31 |
+
"avcodec",
|
32 |
+
"swresample",
|
33 |
+
"swscale"
|
34 |
+
]
|
35 |
+
}
|
36 |
+
]
|
37 |
+
},
|
38 |
+
"server": {
|
39 |
+
"description": "Build server components",
|
40 |
+
"supports": "!android & !ios & !uwp",
|
41 |
+
"dependencies": [
|
42 |
+
{
|
43 |
+
"name": "freerdp",
|
44 |
+
"default-features": false,
|
45 |
+
"features": [
|
46 |
+
"winpr-tools"
|
47 |
+
]
|
48 |
+
}
|
49 |
+
]
|
50 |
+
},
|
51 |
+
"urbdrc": {
|
52 |
+
"description": "USB redirection channel support",
|
53 |
+
"dependencies": [
|
54 |
+
"libusb"
|
55 |
+
]
|
56 |
+
},
|
57 |
+
"wayland": {
|
58 |
+
"description": "Enable wayland support",
|
59 |
+
"supports": "!android & !ios & !openbsd & !osx & !windows",
|
60 |
+
"dependencies": [
|
61 |
+
"wayland"
|
62 |
+
]
|
63 |
+
},
|
64 |
+
"winpr-tools": {
|
65 |
+
"description": "Build winpr tools",
|
66 |
+
"supports": "!android & !ios & !uwp"
|
67 |
+
},
|
68 |
+
"x11": {
|
69 |
+
"description": "Enable X11 support",
|
70 |
+
"supports": "!android & !ios & !windows & !osx",
|
71 |
+
"dependencies": [
|
72 |
+
"xcb"
|
73 |
+
]
|
74 |
+
}
|
75 |
+
}
|
76 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/keystone/portfile.cmake
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO keystone-engine/keystone
|
4 |
+
REF dc7932ef2b2c4a793836caec6ecab485005139d6 # 0.9.2
|
5 |
+
SHA512 ebcdb1cca6dfdf76e0ad2a42a667044806e5c083c07357908298c6ef23d15960f887efa05c1cb3dee90ebdcd5af819bcf8af0fa1aa068aa9a0c6703dee29514e
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_find_acquire_program(PYTHON3)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" KEYSTONE_BUILD_STATIC_RUNTIME)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DKEYSTONE_BUILD_STATIC_RUNTIME=${KEYSTONE_BUILD_STATIC_RUNTIME}
|
17 |
+
-DPYTHON_EXECUTABLE=${PYTHON3}
|
18 |
+
|
19 |
+
# Add support for only a subset of architectures
|
20 |
+
#-DLLVM_TARGETS_TO_BUILD="AArch64;X86"
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
|
28 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
29 |
+
#For windows, do not build kstool if building DLL https://github.com/keystone-engine/keystone/blob/master/CMakeLists.txt#L74
|
30 |
+
vcpkg_copy_tools(TOOL_NAMES kstool AUTO_CLEAN)
|
31 |
+
else()
|
32 |
+
# Move DLLs
|
33 |
+
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/lib/*.dll")
|
34 |
+
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/bin")
|
35 |
+
file(REMOVE ${DLLS})
|
36 |
+
file(GLOB DLLS "${CURRENT_PACKAGES_DIR}/debug/lib/*.dll")
|
37 |
+
file(COPY ${DLLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin")
|
38 |
+
file(REMOVE ${DLLS})
|
39 |
+
endif()
|
40 |
+
|
41 |
+
vcpkg_fixup_pkgconfig()
|
42 |
+
|
43 |
+
# Handle copyright
|
44 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/keystone/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "keystone",
|
3 |
+
"version-semver": "0.9.2",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A Lightweight multi-platform, multi-architecture assembler framework.",
|
6 |
+
"homepage": "https://github.com/keystone-engine/keystone",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/kvasir-mpl/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO kvasir-io/mpl
|
4 |
+
REF a9060b46c37c769e5517e0116b060fec923b6fdb
|
5 |
+
SHA512 bbe7267d288eda9ded81ce82e428d237cb5a9d686cd1b68a334b1ae53db4bf25e37fb86d991e7cf61542ee91ccae8db7498efde91a07332fd68594a229ff35ca
|
6 |
+
HEAD_REF development
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES
|
10 |
+
test BUILD_WITH_TEST
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS -DBUILD_TESTING=${BUILD_WITH_TEST}
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
|
20 |
+
# Move CMake config files to the right place
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/kvasir_mpl)
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/kvasir-mpl/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kvasir-mpl",
|
3 |
+
"version-date": "2019-08-06",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "This library is part of the Kvasir project. Kvasir is a collection of zero cost statically checked libraries for resource constrained systems including microcontrollers.",
|
6 |
+
"homepage": "https://github.com/kvasir-io/mpl",
|
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 |
+
"test": {
|
19 |
+
"description": "Build with test"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libcoro/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO jbaldwin/libcoro
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 fd3eb22a055db9567da482182a90d44c79ee8ccb641490945cb45b07686a32a31b7b37aa35b1f3f676a6ede366db01c9cd7b5f7ded899cb1133cdd1aac510154
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
networking LIBCORO_FEATURE_NETWORKING
|
12 |
+
tls LIBCORO_FEATURE_TLS
|
13 |
+
)
|
14 |
+
|
15 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIBS)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
OPTIONS
|
20 |
+
${FEATURE_OPTIONS}
|
21 |
+
-DLIBCORO_EXTERNAL_DEPENDENCIES=ON
|
22 |
+
-DLIBCORO_BUILD_TESTS=OFF
|
23 |
+
-DLIBCORO_BUILD_EXAMPLES=OFF
|
24 |
+
-DLIBCORO_BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
|
31 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
32 |
+
|
33 |
+
vcpkg_fixup_pkgconfig()
|
34 |
+
|
35 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/libcoro/vcpkg.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcoro",
|
3 |
+
"version": "0.11.1",
|
4 |
+
"description": "C++20 coroutine library",
|
5 |
+
"homepage": "https://github.com/jbaldwin/libcoro",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
],
|
13 |
+
"features": {
|
14 |
+
"networking": {
|
15 |
+
"description": "Include networking features.",
|
16 |
+
"supports": "linux",
|
17 |
+
"dependencies": [
|
18 |
+
"c-ares"
|
19 |
+
]
|
20 |
+
},
|
21 |
+
"tls": {
|
22 |
+
"description": "Include SSL features.",
|
23 |
+
"dependencies": [
|
24 |
+
{
|
25 |
+
"name": "libcoro",
|
26 |
+
"default-features": false,
|
27 |
+
"features": [
|
28 |
+
"networking"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"openssl"
|
32 |
+
]
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libgta/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LIBGTA_VERSION 1.0.8)
|
2 |
+
set(LIBGTA_HASH 99ec3d6317c9a12cf440a60bb989cc7a3fe35e0a1da3e65206e5cd52b69fb860850e61ea0f819511ef48ddc87c468c0ded710409990627096738886e1b358423)
|
3 |
+
|
4 |
+
vcpkg_download_distfile(ARCHIVE
|
5 |
+
URLS "http://download.savannah.nongnu.org/releases/gta/libgta-1.0.8.tar.xz"
|
6 |
+
FILENAME "libgta-${LIBGTA_VERSION}.tar.xz"
|
7 |
+
SHA512 ${LIBGTA_HASH})
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive(
|
10 |
+
SOURCE_PATH
|
11 |
+
ARCHIVE "${ARCHIVE}"
|
12 |
+
SOURCE_BASE "${LIBGTA_VERSION}"
|
13 |
+
)
|
14 |
+
|
15 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED_LIBS)
|
16 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC_LIBS)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS -DGTA_BUILD_SHARED_LIB=${ENABLE_SHARED_LIBS}
|
21 |
+
-DGTA_BUILD_STATIC_LIB=${ENABLE_STATIC_LIBS}
|
22 |
+
-DGTA_BUILD_DOCUMENTATION=OFF
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
vcpkg_copy_pdbs()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
29 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
|
31 |
+
endif()
|
32 |
+
|
33 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
34 |
+
|
35 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/libgta/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libgta",
|
3 |
+
"version": "1.0.8",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Libgta is a portable library that implements the Generic Tagged Array (GTA) file format.",
|
6 |
+
"homepage": "https://download.savannah.nongnu.org/releases/gta",
|
7 |
+
"dependencies": [
|
8 |
+
"bzip2",
|
9 |
+
"liblzma",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
"zlib"
|
15 |
+
]
|
16 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libsercomm/dev-SER_END_DECL-fix.patch
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/include/public/sercomm/dev.h
|
2 |
+
+++ b/include/public/sercomm/dev.h
|
3 |
+
@@ -137,6 +137,6 @@ SER_EXPORT void ser_dev_monitor_stop(ser_dev_mon_t *mon);
|
4 |
+
|
5 |
+
/** @} */
|
6 |
+
|
7 |
+
-SER_BEGIN_DECL
|
8 |
+
+SER_END_DECL
|
9 |
+
|
10 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/libsercomm/portfile.cmake
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ingeniamc/sercomm
|
4 |
+
REF 1.3.2
|
5 |
+
SHA512 f1581f2dfa262ffb1b3aec5a1e6d32493c322c94541fbacc98efff23b3b42b14c9abdcfb063a78b7c54fb1f9d8dbf59d8064099601de2175af6c6d830708324c
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
dev-SER_END_DECL-fix.patch # https://github.com/ingeniamc/sercomm/pull/3
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(
|
12 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
errdesc WITH_ERRDESC
|
15 |
+
devmon WITH_DEVMON
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
DISABLE_PARALLEL_CONFIGURE
|
21 |
+
OPTIONS
|
22 |
+
${FEATURE_OPTIONS}
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
vcpkg_cmake_config_fixup(
|
28 |
+
PACKAGE_NAME sercomm
|
29 |
+
CONFIG_PATH lib/cmake/sercomm
|
30 |
+
)
|
31 |
+
|
32 |
+
# Remove includes in debug
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
35 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
37 |
+
endif()
|
38 |
+
# Handle copyright
|
39 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
40 |
+
|
41 |
+
# Copy pdb files
|
42 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/libsercomm/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsercomm",
|
3 |
+
"version": "1.3.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Multiplatform serial communications library",
|
6 |
+
"homepage": "https://github.com/ingeniamc/sercomm",
|
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 |
+
"default-features": [
|
19 |
+
"devmon",
|
20 |
+
"errdesc"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"devmon": {
|
24 |
+
"description": "When enabled, device listing and monitoring will be supported"
|
25 |
+
},
|
26 |
+
"errdesc": {
|
27 |
+
"description": "When enabled, error details description can be obtained"
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/lpeg/CMakeLists.txt
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.0)
|
2 |
+
project(lpeg)
|
3 |
+
|
4 |
+
find_path(LUA_INCLUDE_DIR lua.h PATH_SUFFIXES lua)
|
5 |
+
find_library(LUA_LIBRARY lua)
|
6 |
+
set(LPEG_INCLUDES ${LUA_INCLUDE_DIR})
|
7 |
+
set(LPEG_LIBRARIES ${LUA_LIBRARY})
|
8 |
+
|
9 |
+
add_library(lpeg
|
10 |
+
lpvm.c
|
11 |
+
lptree.c
|
12 |
+
lpprint.c
|
13 |
+
lpcap.c
|
14 |
+
lpcode.c
|
15 |
+
lpcset.c
|
16 |
+
lpeg.def)
|
17 |
+
|
18 |
+
target_include_directories(lpeg PRIVATE ${LPEG_INCLUDES})
|
19 |
+
target_link_libraries(lpeg PRIVATE ${LPEG_LIBRARIES})
|
20 |
+
|
21 |
+
install(TARGETS lpeg
|
22 |
+
RUNTIME DESTINATION bin
|
23 |
+
LIBRARY DESTINATION lib
|
24 |
+
ARCHIVE DESTINATION lib)
|
25 |
+
install(FILES re.lua DESTINATION share/lua)
|
cc-multilingual-main/cc_net/vcpkg/ports/lpeg/lpeg.def
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
LIBRARY lpeg
|
2 |
+
EXPORTS
|
3 |
+
luaopen_lpeg
|
cc-multilingual-main/cc_net/vcpkg/ports/lpeg/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://www.inf.puc-rio.br/~roberto/lpeg/lpeg-${VERSION}.tar.gz"
|
3 |
+
FILENAME "lpeg-${VERSION}.tar.gz"
|
4 |
+
SHA512 01b2a4ceb2d110e143603bc63c84a59736ea735dd0ed9866286ba115d41be48d09c9ff21c8e2327974d2296944f6508d50a5c3a18f26ac1d81b8b2fc41f61222
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive(
|
8 |
+
SOURCE_PATH
|
9 |
+
ARCHIVE "${ARCHIVE}"
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
13 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/lpeg.def" DESTINATION "${SOURCE_PATH}")
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
# Remove debug share
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
23 |
+
|
24 |
+
# Handle copyright
|
25 |
+
file(INSTALL "${SOURCE_PATH}/lpeg.html" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
26 |
+
|
27 |
+
# Allow empty include directory
|
28 |
+
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
cc-multilingual-main/cc_net/vcpkg/ports/lpeg/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lpeg",
|
3 |
+
"version": "1.1.0",
|
4 |
+
"description": "LPeg is a pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).",
|
5 |
+
"homepage": "https://www.inf.puc-rio.br/~roberto/lpeg",
|
6 |
+
"dependencies": [
|
7 |
+
"lua",
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/luasec/CMakeLists.txt
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.20.0)
|
2 |
+
project(luasec)
|
3 |
+
|
4 |
+
find_path(LUA_INCLUDE_DIR lua.h PATH_SUFFIXES lua)
|
5 |
+
find_library(LUA_LIBRARY lua)
|
6 |
+
find_package(OpenSSL)
|
7 |
+
|
8 |
+
set(LUASEC_INCLUDES ${LUA_INCLUDE_DIR} src)
|
9 |
+
set(LUASEC_LIBRARIES
|
10 |
+
${LUA_LIBRARY}
|
11 |
+
OpenSSL::SSL
|
12 |
+
OpenSSL::Crypto
|
13 |
+
OpenSSL::applink
|
14 |
+
ws2_32)
|
15 |
+
|
16 |
+
add_library(lua-ssl
|
17 |
+
src/config.c
|
18 |
+
src/ssl.c
|
19 |
+
src/context.c
|
20 |
+
src/x509.c
|
21 |
+
src/ec.c
|
22 |
+
src/options.c
|
23 |
+
src/luasocket/buffer.c
|
24 |
+
src/luasocket/io.c
|
25 |
+
src/luasocket/timeout.c
|
26 |
+
src/luasocket/wsocket.c)
|
27 |
+
|
28 |
+
target_include_directories(lua-ssl PRIVATE ${LUASEC_INCLUDES})
|
29 |
+
target_link_libraries(lua-ssl PRIVATE ${LUASEC_LIBRARIES})
|
30 |
+
set_target_properties(lua-ssl PROPERTIES PREFIX "")
|
31 |
+
|
32 |
+
install(TARGETS lua-ssl
|
33 |
+
RUNTIME DESTINATION bin
|
34 |
+
LIBRARY DESTINATION lib
|
35 |
+
ARCHIVE DESTINATION lib)
|
36 |
+
|
37 |
+
install(FILES src/ssl.lua DESTINATION share/lua)
|
38 |
+
install(FILES src/https.lua DESTINATION share/lua/ssl)
|
cc-multilingual-main/cc_net/vcpkg/ports/luasec/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
3 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
4 |
+
endif()
|
5 |
+
|
6 |
+
vcpkg_from_github(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO brunoos/luasec
|
9 |
+
REF "v${VERSION}"
|
10 |
+
SHA512 8f0c4b5ff87c024685b23770e1d342467554b8dc19a1704076e184d9e84b966f171091c31d1da135ab009e850275adc2bf2720fc9f32c83ac23f0a42f13d311f
|
11 |
+
HEAD_REF master
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
# Remove debug share
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
vcpkg_install_copyright(FILE_LIST ${SOURCE_PATH}/LICENSE)
|
28 |
+
|
29 |
+
# Allow empty include directory
|
30 |
+
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
cc-multilingual-main/cc_net/vcpkg/ports/luasec/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "luasec",
|
3 |
+
"version": "1.3.2",
|
4 |
+
"maintainers": "Stephen Baker <[email protected]>",
|
5 |
+
"description": "LuaSec depends on OpenSSL, and integrates with LuaSocket to make it easy to add secure connections to any Lua applications or scripts.",
|
6 |
+
"homepage": "https://github.com/brunoos/luasec",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!(windows & static)",
|
9 |
+
"dependencies": [
|
10 |
+
"lua",
|
11 |
+
"luasocket",
|
12 |
+
"openssl",
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "vcpkg-cmake-config",
|
19 |
+
"host": true
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mmloader/fix-platform-name.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b672037..f9a6a15 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -14,6 +14,13 @@ if ((NOT DEFINED CMAKE_VS_PLATFORM_NAME) OR (CMAKE_VS_PLATFORM_NAME STREQUAL "")
|
6 |
+
message(STATUS "CMAKE_VS_PLATFORM_NAME is empty, use default: Win32")
|
7 |
+
set(CMAKE_VS_PLATFORM_NAME Win32)
|
8 |
+
endif()
|
9 |
+
+
|
10 |
+
+if(VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
11 |
+
+ set(CMAKE_VS_PLATFORM_NAME "Win32")
|
12 |
+
+else()
|
13 |
+
+ set(CMAKE_VS_PLATFORM_NAME "${VCPKG_TARGET_ARCHITECTURE}")
|
14 |
+
+endif()
|
15 |
+
+
|
16 |
+
message(STATUS "CMAKE_VS_PLATFORM_NAME=" ${CMAKE_VS_PLATFORM_NAME})
|
17 |
+
string(COMPARE EQUAL "${CMAKE_VS_PLATFORM_NAME}" Win32 BUILD_ARC_X8632)
|
18 |
+
string(COMPARE EQUAL "${CMAKE_VS_PLATFORM_NAME}" x64 BUILD_ARC_X8664)
|
cc-multilingual-main/cc_net/vcpkg/ports/mmloader/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mmloader",
|
3 |
+
"version": "1.0.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "A library for loading dll module bypassing windows PE loader from memory (x86/x64)",
|
6 |
+
"homepage": "http://tishion.github.io/mmLoader/",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "(x86 | x64) & windows & !uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
],
|
15 |
+
"features": {
|
16 |
+
"shellcode": {
|
17 |
+
"description": "Generate mmLoader shell code headers"
|
18 |
+
}
|
19 |
+
}
|
20 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mmx/copyright
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Licenses are stated in each header file
|
2 |
+
|
3 |
+
json.h - public domain - Micha Mettke
|
4 |
+
|
5 |
+
lexer.h - zlib LICENSE
|
6 |
+
LICENSE: (zlib)
|
7 |
+
Copyright (c) 2016 Micha Mettke
|
8 |
+
|
9 |
+
sched.h - zlib LICENSE
|
10 |
+
LICENSE: (zlib)
|
11 |
+
Copyright (c) 2016 Doug Binks
|
12 |
+
|
13 |
+
vec.h - zlib LICENSE
|
14 |
+
LICENSE: (zlib)
|
15 |
+
Copyright (c) 2015 Micha Mettke
|
16 |
+
|
17 |
+
This software is provided 'as-is', without any express or implied
|
18 |
+
warranty. In no event will the authors be held liable for any damages
|
19 |
+
arising from the use of this software.
|
20 |
+
Permission is granted to anyone to use this software for any purpose,
|
21 |
+
including commercial applications, and to alter it and redistribute it
|
22 |
+
freely, subject to the following restrictions:
|
23 |
+
1. The origin of this software must not be misrepresented; you must not
|
24 |
+
claim that you wrote the original software. If you use this software
|
25 |
+
in a product, an acknowledgment in the product documentation would be
|
26 |
+
appreciated but is not required.
|
27 |
+
2. Altered source versions must be plainly marked as such, and must not be
|
28 |
+
misrepresented as being the original software.
|
29 |
+
3. This notice may not be removed or altered from any source distribution.
|
30 |
+
|
31 |
+
|
32 |
+
web.h - BSD LICENSE - Andreas Fredriksson
|
33 |
+
LICENSE: (BSD)
|
34 |
+
Copyright (c) 2016, Andreas Fredriksson, Micha Mettke
|
35 |
+
All rights reserved.
|
36 |
+
Redistribution and use in source and binary forms, with or without
|
37 |
+
modification, are permitted provided that the following conditions are met:
|
38 |
+
1. Redistributions of source code must retain the above copyright notice, this
|
39 |
+
list of conditions and the following disclaimer.
|
40 |
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
41 |
+
this list of conditions and the following disclaimer in the documentation
|
42 |
+
and/or other materials provided with the distribution.
|
43 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
44 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
45 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
46 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
47 |
+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
48 |
+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
49 |
+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
50 |
+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
51 |
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
52 |
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
cc-multilingual-main/cc_net/vcpkg/ports/mmx/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO vurtun/mmx
|
4 |
+
REF 71382a1d14dad58219e7f6634d2381fa30dab175
|
5 |
+
SHA512 d29b6a7e276612f0cbea84a90a4af7b3947a6f434e171a180b24eb0b5b74d714011fcda9e2ebe3f39d01bdb64f648d31c68a4cf7ef5f104320fe8155212fe1e0
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(GLOB_RECURSE MMX_HEADERS "${SOURCE_PATH}/*.h")
|
10 |
+
file(INSTALL ${MMX_HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include/mmx")
|
11 |
+
|
12 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/mmx/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mmx",
|
3 |
+
"version-date": "2022-03-27",
|
4 |
+
"description": "Single header libraries for C/C++",
|
5 |
+
"homepage": "https://github.com/vurtun/mmx",
|
6 |
+
"license": null
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/nvtt/fix-intrinsic-function.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/nvmath/nvmath.h b/src/nvmath/nvmath.h
|
2 |
+
index 38532eb..e68d8f8 100644
|
3 |
+
--- a/src/nvmath/nvmath.h
|
4 |
+
+++ b/src/nvmath/nvmath.h
|
5 |
+
@@ -118,12 +118,12 @@ inline float asinf_assert(const float f)
|
6 |
+
#endif
|
7 |
+
|
8 |
+
#if NV_CC_MSVC
|
9 |
+
-NV_FORCEINLINE float log2f(float x)
|
10 |
+
+NV_FORCEINLINE float nv_log2f(float x)
|
11 |
+
{
|
12 |
+
nvCheck(x >= 0);
|
13 |
+
return logf(x) / logf(2.0f);
|
14 |
+
}
|
15 |
+
-NV_FORCEINLINE float exp2f(float x)
|
16 |
+
+NV_FORCEINLINE float nv_exp2f(float x)
|
17 |
+
{
|
18 |
+
return powf(2.0f, x);
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/oatpp-websocket/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(OATPP_VERSION "1.3.0")
|
2 |
+
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO oatpp/oatpp-websocket
|
8 |
+
REF ${OATPP_VERSION}
|
9 |
+
SHA512 e5d5f974da4fd95599352d04d18422c74b274be50a803cdb0b65674ebde8dfe8587c44ddb8b376ad866de06841935687be4294ac5954f33f0a087b009da23177
|
10 |
+
HEAD_REF master
|
11 |
+
)
|
12 |
+
|
13 |
+
if (VCPKG_CRT_LINKAGE STREQUAL "static")
|
14 |
+
set(OATPP_MSVC_LINK_STATIC_RUNTIME TRUE)
|
15 |
+
else()
|
16 |
+
set(OATPP_MSVC_LINK_STATIC_RUNTIME FALSE)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
OPTIONS
|
22 |
+
"-DOATPP_BUILD_TESTS:BOOL=OFF"
|
23 |
+
"-DOATPP_MSVC_LINK_STATIC_RUNTIME=${OATPP_MSVC_LINK_STATIC_RUNTIME}"
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_cmake_install()
|
27 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME oatpp-websocket CONFIG_PATH lib/cmake/oatpp-websocket-${OATPP_VERSION})
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
31 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/oatpp-websocket/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "oatpp-websocket",
|
3 |
+
"version": "1.3.0",
|
4 |
+
"description": "Oat++ websocket module.",
|
5 |
+
"homepage": "https://github.com/oatpp/oatpp-websocket",
|
6 |
+
"dependencies": [
|
7 |
+
"oatpp",
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|