Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/portfile.cmake +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/remove_stdint_headers.patch +193 -0
- cc-multilingual-main/cc_net/vcpkg/ports/asio/CMakeLists.txt +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/asio/asio-config.cmake +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/asio/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/asio/vcpkg.json +38 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-system/portfile.cmake +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-system/vcpkg.json +48 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cctz/fix_vs177.patch +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cctz/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cctz/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cgns/cgnsconfig.h +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cgns/hdf5.patch +61 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cgns/linux_lfs.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cgns/portfile.cmake +90 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cgns/vcpkg.json +75 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cxxgraph/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cxxgraph/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/debug-assert/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/debug-assert/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ecsutil/portfile.cmake +41 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ecsutil/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gtkmm/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gtkmm/vcpkg.json +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-gui7/dependencies.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-gui7/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-gui7/vcpkg.json +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ignition-tools/portfile.cmake +45 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ixwebsocket/fix-C2065-of-errorMsg.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ixwebsocket/portfile.cmake +44 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ixwebsocket/vcpkg.json +74 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jwt-cpp/portfile.cmake +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jwt-cpp/vcpkg.json +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/FindLAPACK.cmake +559 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/lapacke.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/portfile.cmake +147 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/usage +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/vcpkg-cmake-wrapper.cmake +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/vcpkg.json +49 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libdivide/no-werror.patch +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libdivide/portfile.cmake +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libdivide/vcpkg.json +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxdmcp/configure.ac.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxdmcp/portfile.cmake +36 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxdmcp/vcpkg.json +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mman/mman-static.patch +33 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mman/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mman/vcpkg.json +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/muparser/portfile.cmake +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/muparser/vcpkg.json +18 -0
cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "https://distfiles.macports.org/alac_decoder/alac_decoder-0.2.0.tgz"
|
5 |
+
FILENAME "alac_decoder-0.2.0.tgz"
|
6 |
+
SHA512 4b37d4fe37681bfccaa4a27fbaf11eb2a1fba5f14e77d219a6d9814ff44d1168534d05eb19443dd2fd11e6fcdf4da3a22e3f3c79314cb7a6767c152351b13e29
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive(
|
10 |
+
SOURCE_PATH
|
11 |
+
ARCHIVE "${ARCHIVE}"
|
12 |
+
PATCHES
|
13 |
+
remove_stdint_headers.patch
|
14 |
+
no-pragma-warning.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
18 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/decomp.c" DESTINATION "${SOURCE_PATH}")
|
19 |
+
|
20 |
+
vcpkg_cmake_configure(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
22 |
+
OPTIONS_DEBUG
|
23 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
24 |
+
-DDISABLE_INSTALL_TOOLS=ON
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
30 |
+
|
31 |
+
file(INSTALL "${SOURCE_PATH}/README" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/alac-decoder/remove_stdint_headers.patch
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/alac.c b/alac.c
|
2 |
+
index 469000d..c6fe479 100644
|
3 |
+
--- a/alac.c
|
4 |
+
+++ b/alac.c
|
5 |
+
@@ -33,11 +33,7 @@
|
6 |
+
#include <stdio.h>
|
7 |
+
#include <stdlib.h>
|
8 |
+
#include <string.h>
|
9 |
+
-#ifdef _WIN32
|
10 |
+
- #include "stdint_win.h"
|
11 |
+
-#else
|
12 |
+
- #include <stdint.h>
|
13 |
+
-#endif
|
14 |
+
+#include <stdint.h>
|
15 |
+
|
16 |
+
#include "decomp.h"
|
17 |
+
|
18 |
+
@@ -54,7 +50,7 @@
|
19 |
+
struct {signed int x:24;} se_struct_24;
|
20 |
+
#define SignExtend24(val) (se_struct_24.x = val)
|
21 |
+
|
22 |
+
-extern int host_bigendian;
|
23 |
+
+#define host_bigendian set_endian()
|
24 |
+
|
25 |
+
struct alac_file
|
26 |
+
{
|
27 |
+
diff --git a/decomp.h b/decomp.h
|
28 |
+
index 23dbc52..679a320 100644
|
29 |
+
--- a/decomp.h
|
30 |
+
+++ b/decomp.h
|
31 |
+
@@ -8,6 +8,7 @@ void decode_frame(alac_file *alac,
|
32 |
+
unsigned char *inbuffer,
|
33 |
+
void *outbuffer, int *outputsize);
|
34 |
+
void alac_set_info(alac_file *alac, char *inputbuffer);
|
35 |
+
+int set_endian();
|
36 |
+
|
37 |
+
#endif /* __ALAC__DECOMP_H */
|
38 |
+
|
39 |
+
diff --git a/demux.c b/demux.c
|
40 |
+
index ae77a9d..9e858a9 100644
|
41 |
+
--- a/demux.c
|
42 |
+
+++ b/demux.c
|
43 |
+
@@ -33,11 +33,7 @@
|
44 |
+
#include <string.h>
|
45 |
+
#include <stdio.h>
|
46 |
+
#include <stdlib.h>
|
47 |
+
-#ifdef _WIN32
|
48 |
+
- #include "stdint_win.h"
|
49 |
+
-#else
|
50 |
+
- #include <stdint.h>
|
51 |
+
-#endif
|
52 |
+
+#include <stdint.h>
|
53 |
+
|
54 |
+
#include "stream.h"
|
55 |
+
#include "demux.h"
|
56 |
+
diff --git a/demux.h b/demux.h
|
57 |
+
index 8447bf8..8874ba4 100644
|
58 |
+
--- a/demux.h
|
59 |
+
+++ b/demux.h
|
60 |
+
@@ -1,11 +1,8 @@
|
61 |
+
#ifndef DEMUX_H
|
62 |
+
#define DEMUX_H
|
63 |
+
|
64 |
+
-#ifdef _WIN32
|
65 |
+
- #include "stdint_win.h"
|
66 |
+
-#else
|
67 |
+
- #include <stdint.h>
|
68 |
+
-#endif
|
69 |
+
+
|
70 |
+
+#include <stdint.h>
|
71 |
+
|
72 |
+
#include "stream.h"
|
73 |
+
|
74 |
+
diff --git a/main.c b/main.c
|
75 |
+
index 7449ca1..dd58699 100644
|
76 |
+
--- a/main.c
|
77 |
+
+++ b/main.c
|
78 |
+
@@ -37,11 +37,7 @@
|
79 |
+
#include <stdlib.h>
|
80 |
+
#include <errno.h>
|
81 |
+
#include <string.h>
|
82 |
+
-#ifdef _WIN32
|
83 |
+
- #include "stdint_win.h"
|
84 |
+
-#else
|
85 |
+
- #include <stdint.h>
|
86 |
+
-#endif
|
87 |
+
+#include <stdint.h>
|
88 |
+
|
89 |
+
#include "demux.h"
|
90 |
+
#include "decomp.h"
|
91 |
+
@@ -267,19 +263,7 @@ static void setup_environment(int argc, char **argv)
|
92 |
+
}
|
93 |
+
}
|
94 |
+
|
95 |
+
-/* this could quite easily be done at compile time,
|
96 |
+
- * however I don't want to have to bother with all the
|
97 |
+
- * various possible #define's for endianness, worrying about
|
98 |
+
- * different compilers etc. and I'm too lazy to use autoconf.
|
99 |
+
- */
|
100 |
+
-void set_endian()
|
101 |
+
-{
|
102 |
+
- uint32_t integer = 0x000000aa;
|
103 |
+
- unsigned char *p = (unsigned char*)&integer;
|
104 |
+
|
105 |
+
- if (p[0] == 0xaa) host_bigendian = 0;
|
106 |
+
- else host_bigendian = 1;
|
107 |
+
-}
|
108 |
+
|
109 |
+
int main(int argc, char **argv)
|
110 |
+
{
|
111 |
+
@@ -288,7 +272,7 @@ int main(int argc, char **argv)
|
112 |
+
|
113 |
+
memset(&demux_res, 0, sizeof(demux_res));
|
114 |
+
|
115 |
+
- set_endian();
|
116 |
+
+ host_bigendian = set_endian();
|
117 |
+
|
118 |
+
setup_environment(argc, argv);
|
119 |
+
|
120 |
+
diff --git a/stream.c b/stream.c
|
121 |
+
index 565db54..56727a0 100644
|
122 |
+
--- a/stream.c
|
123 |
+
+++ b/stream.c
|
124 |
+
@@ -33,13 +33,10 @@
|
125 |
+
#include <stdio.h>
|
126 |
+
#include <stdlib.h>
|
127 |
+
#include <errno.h>
|
128 |
+
-#ifdef _WIN32
|
129 |
+
- #include "stdint_win.h"
|
130 |
+
-#else
|
131 |
+
- #include <stdint.h>
|
132 |
+
-#endif
|
133 |
+
+#include <stdint.h>
|
134 |
+
|
135 |
+
#include "stream.h"
|
136 |
+
+#include "decomp.h"
|
137 |
+
|
138 |
+
#define _Swap32(v) do { \
|
139 |
+
v = (((v) & 0x000000FF) << 0x18) | \
|
140 |
+
@@ -51,7 +48,7 @@
|
141 |
+
v = (((v) & 0x00FF) << 0x08) | \
|
142 |
+
(((v) & 0xFF00) >> 0x08); } while (0)
|
143 |
+
|
144 |
+
-extern int host_bigendian;
|
145 |
+
+#define host_bigendian set_endian()
|
146 |
+
|
147 |
+
struct stream_tTAG {
|
148 |
+
FILE *f;
|
149 |
+
diff --git a/stream.h b/stream.h
|
150 |
+
index 18d6aa0..ff6325e 100644
|
151 |
+
--- a/stream.h
|
152 |
+
+++ b/stream.h
|
153 |
+
@@ -3,11 +3,8 @@
|
154 |
+
|
155 |
+
/* stream.h */
|
156 |
+
|
157 |
+
-#ifdef _WIN32
|
158 |
+
- #include "stdint_win.h"
|
159 |
+
-#else
|
160 |
+
- #include <stdint.h>
|
161 |
+
-#endif
|
162 |
+
+#include <stdint.h>
|
163 |
+
+
|
164 |
+
|
165 |
+
typedef struct stream_tTAG stream_t;
|
166 |
+
|
167 |
+
diff --git a/wavwriter.c b/wavwriter.c
|
168 |
+
index fd19502..ce941c7 100644
|
169 |
+
--- a/wavwriter.c
|
170 |
+
+++ b/wavwriter.c
|
171 |
+
@@ -32,11 +32,8 @@
|
172 |
+
|
173 |
+
#include <stdio.h>
|
174 |
+
#include <stdlib.h>
|
175 |
+
-#ifdef _WIN32
|
176 |
+
- #include "stdint_win.h"
|
177 |
+
-#else
|
178 |
+
- #include <stdint.h>
|
179 |
+
-#endif
|
180 |
+
+#include <stdint.h>
|
181 |
+
+
|
182 |
+
|
183 |
+
#ifndef MAKEFOURCC
|
184 |
+
#define MAKEFOURCC(ch0, ch1, ch2, ch3) ( \
|
185 |
+
@@ -56,7 +53,7 @@
|
186 |
+
v = (((v) & 0x00FF) << 0x08) | \
|
187 |
+
(((v) & 0xFF00) >> 0x08); } while (0)
|
188 |
+
|
189 |
+
-extern int host_bigendian;
|
190 |
+
+#define host_bigendian set_endian()
|
191 |
+
|
192 |
+
static void write_uint32(FILE *f, uint32_t v, int bigendian)
|
193 |
+
{
|
cc-multilingual-main/cc_net/vcpkg/ports/asio/CMakeLists.txt
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(asio)
|
3 |
+
|
4 |
+
add_library(asio INTERFACE)
|
5 |
+
|
6 |
+
# Export target
|
7 |
+
install(TARGETS asio
|
8 |
+
EXPORT asio
|
9 |
+
INCLUDES DESTINATION include/
|
10 |
+
)
|
11 |
+
|
12 |
+
install(EXPORT asio
|
13 |
+
DESTINATION "share/asio"
|
14 |
+
FILE asio-targets.cmake
|
15 |
+
)
|
16 |
+
|
17 |
+
install(DIRECTORY
|
18 |
+
asio/include/asio
|
19 |
+
DESTINATION include/
|
20 |
+
FILES_MATCHING
|
21 |
+
PATTERN "*.hpp"
|
22 |
+
PATTERN "*.ipp"
|
23 |
+
)
|
24 |
+
|
25 |
+
install(FILES
|
26 |
+
asio/include/asio.hpp
|
27 |
+
DESTINATION include/
|
28 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/asio/asio-config.cmake
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include ("${CMAKE_CURRENT_LIST_DIR}/asio-targets.cmake")
|
2 |
+
|
3 |
+
if(NOT TARGET asio::asio)
|
4 |
+
add_library(asio::asio INTERFACE IMPORTED)
|
5 |
+
target_link_libraries(asio::asio INTERFACE asio)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
get_target_property(_ASIO_INCLUDE_DIR asio INTERFACE_INCLUDE_DIRECTORIES)
|
9 |
+
set(ASIO_INCLUDE_DIR "${_ASIO_INCLUDE_DIR}")
|
cc-multilingual-main/cc_net/vcpkg/ports/asio/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO chriskohlhoff/asio
|
6 |
+
REF asio-1-29-0
|
7 |
+
SHA512 f8df39c5a5e89dcfe4bd37c7e757e44e3e94d9b79d7ab08d1804ad8980993a607070f7e12238ffe3286840cd08c0b3c8e3639d3a1177e5ff795994cbc42a8292
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
# Always use "ASIO_STANDALONE" to avoid boost dependency
|
12 |
+
vcpkg_replace_string("${SOURCE_PATH}/asio/include/asio/detail/config.hpp" "defined(ASIO_STANDALONE)" "!defined(VCPKG_DISABLE_ASIO_STANDALONE)")
|
13 |
+
|
14 |
+
# CMake install
|
15 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
)
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup()
|
22 |
+
file(INSTALL
|
23 |
+
"${CMAKE_CURRENT_LIST_DIR}/asio-config.cmake"
|
24 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
25 |
+
)
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
file(INSTALL "${SOURCE_PATH}/asio/LICENSE_1_0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/asio/vcpkg.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "asio",
|
3 |
+
"version": "1.29.0",
|
4 |
+
"description": "Asio is a cross-platform C++ library for network and low-level I/O programming that provides developers with a consistent asynchronous model using a modern C++ approach.",
|
5 |
+
"homepage": "https://github.com/chriskohlhoff/asio",
|
6 |
+
"documentation": "https://think-async.com/Asio/asio-1.28.0/doc/",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"coroutine": {
|
20 |
+
"description": "Boost.Coroutine (optional) if you use spawn() to launch coroutines",
|
21 |
+
"dependencies": [
|
22 |
+
"boost-coroutine"
|
23 |
+
]
|
24 |
+
},
|
25 |
+
"openssl": {
|
26 |
+
"description": "OpenSSL (optional) if you use Asio's SSL support.",
|
27 |
+
"dependencies": [
|
28 |
+
"openssl"
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"regex": {
|
32 |
+
"description": "Boost.Regex (optional) if you use any of the read_until() or async_read_until() overloads that take a boost::regex parameter.",
|
33 |
+
"dependencies": [
|
34 |
+
"boost-regex"
|
35 |
+
]
|
36 |
+
}
|
37 |
+
}
|
38 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-system/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_buildpath_length_warning(37)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO boostorg/system
|
8 |
+
REF boost-${VERSION}
|
9 |
+
SHA512 aa096fbef1f95bc97c82af87f0cb825b21b67d53ccec3fdeaef3e5a478b3f0865b0026ab7aadc3d7825a8bd345f980cb0bf4f9c698ac7403644cfce2a3fd1151
|
10 |
+
HEAD_REF master
|
11 |
+
)
|
12 |
+
|
13 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
14 |
+
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
|
15 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
16 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-system/vcpkg.json
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-system",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost system module",
|
6 |
+
"homepage": "https://github.com/boostorg/system",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-assert",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-build",
|
15 |
+
"host": true,
|
16 |
+
"version>=": "1.84.0"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "boost-config",
|
20 |
+
"version>=": "1.84.0"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "boost-modular-build-helper",
|
24 |
+
"host": true,
|
25 |
+
"version>=": "1.84.0"
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"name": "boost-throw-exception",
|
29 |
+
"version>=": "1.84.0"
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"name": "boost-variant2",
|
33 |
+
"version>=": "1.84.0"
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"name": "boost-vcpkg-helpers",
|
37 |
+
"version>=": "1.84.0"
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"name": "boost-winapi",
|
41 |
+
"version>=": "1.84.0"
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "vcpkg-cmake",
|
45 |
+
"host": true
|
46 |
+
}
|
47 |
+
]
|
48 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cctz/fix_vs177.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/cctz/civil_time_detail.h b/include/cctz/civil_time_detail.h
|
2 |
+
index decc5f2..26c5aef 100644
|
3 |
+
--- a/include/cctz/civil_time_detail.h
|
4 |
+
+++ b/include/cctz/civil_time_detail.h
|
5 |
+
@@ -353,11 +353,11 @@ class civil_time {
|
6 |
+
: civil_time(ct.f_) {}
|
7 |
+
|
8 |
+
// Factories for the maximum/minimum representable civil_time.
|
9 |
+
- static CONSTEXPR_F civil_time (max)() {
|
10 |
+
+ static CONSTEXPR_F auto (max)() -> civil_time {
|
11 |
+
const auto max_year = (std::numeric_limits<std::int_least64_t>::max)();
|
12 |
+
return civil_time(max_year, 12, 31, 23, 59, 59);
|
13 |
+
}
|
14 |
+
- static CONSTEXPR_F civil_time (min)() {
|
15 |
+
+ static CONSTEXPR_F auto (min)() -> civil_time {
|
16 |
+
const auto min_year = (std::numeric_limits<std::int_least64_t>::min)();
|
17 |
+
return civil_time(min_year, 1, 1, 0, 0, 0);
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cctz/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/cctz
|
6 |
+
REF v2.3
|
7 |
+
SHA512 e688ddac1bff108e8315bf94cb61483b72b0d16f601e4e1eeb0fd5c064aefe5a573eee66e8903401aa4c2be71ea9f10dd6c9a9cdf8379f5bb6073248a21a83ff
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix_vs177.patch #https://github.com/google/cctz/pull/273
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_TOOLS=OFF
|
17 |
+
-DBUILD_EXAMPLES=OFF
|
18 |
+
-DBUILD_TESTING=OFF
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
|
26 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/cctz/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cctz",
|
3 |
+
"version": "2.3",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "two libraries that cooperate with <chrono> to give C++ programmers all the necessary tools for computing with dates, times, and time zones in a simple and correct manner.",
|
6 |
+
"homepage": "https://github.com/google/cctz",
|
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/cgns/cgnsconfig.h
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef CGNSCONFIG_H
|
2 |
+
#define CGNSCONFIG_H
|
3 |
+
|
4 |
+
#include "cgnstypes.h"
|
5 |
+
|
6 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/cgns/hdf5.patch
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 60f9de4..e980ef7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -261,51 +261,12 @@ if (CGNS_ENABLE_HDF5)
|
6 |
+
cmake_policy(SET CMP0074 NEW)
|
7 |
+
endif()
|
8 |
+
|
9 |
+
- find_package (HDF5 NAMES ${SEARCH_PACKAGE_NAME} COMPONENTS ${FIND_HDF_COMPONENTS})
|
10 |
+
- message (STATUS "HDF5 C libs:${HDF5_FOUND} static:${HDF5_static_C_FOUND} and shared:${HDF5_shared_C_FOUND}")
|
11 |
+
- if (HDF5_FOUND)
|
12 |
+
- if (NOT HDF5_static_C_FOUND AND NOT HDF5_shared_C_FOUND)
|
13 |
+
- if (CG_HDF5_LINK_TYPE STREQUAL "shared")
|
14 |
+
- set(CG_HDF5_LINK_TYPE "static")
|
15 |
+
- set(CG_HDF5_LINK_TYPE_UPPER "STATIC")
|
16 |
+
- else()
|
17 |
+
- set(CG_HDF5_LINK_TYPE "shared")
|
18 |
+
- set(CG_HDF5_LINK_TYPE_UPPER "SHARED")
|
19 |
+
- endif()
|
20 |
+
-
|
21 |
+
- set (FIND_HDF_COMPONENTS C ${CG_HDF5_LINK_TYPE})
|
22 |
+
-
|
23 |
+
- find_package (HDF5 NAMES ${SEARCH_PACKAGE_NAME} COMPONENTS ${FIND_HDF_COMPONENTS} REQUIRED)
|
24 |
+
- message (STATUS "HDF5 libs:${HDF5_FOUND} C:${HDF5_C_${CG_HDF5_LINK_TYPE_UPPER}_LIBRARY}")
|
25 |
+
- endif()
|
26 |
+
-
|
27 |
+
- set(LINK_LIBS ${HDF5_C_${CG_HDF5_LINK_TYPE_UPPER}_LIBRARY})
|
28 |
+
- else ()
|
29 |
+
- find_package (HDF5) # Legacy find
|
30 |
+
-
|
31 |
+
- #Legacy find_package does not set HDF5_TOOLS_DIR, so we set it here
|
32 |
+
- set(HDF5_TOOLS_DIR ${HDF5_LIBRARY}/../bin)
|
33 |
+
-
|
34 |
+
- #Legacy find_package does not set HDF5_BUILD_SHARED_LIBS, so we set it here
|
35 |
+
- set(GUESS_SHARED "${HDF5_LIBRARY}/libhdf5${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
36 |
+
- foreach (ITEM ${HDF5_LIBRARIES})
|
37 |
+
- if (ITEM MATCHES "(.*)hdf5${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
38 |
+
- set(GUESS_SHARED "${ITEM}")
|
39 |
+
- break()
|
40 |
+
- endif()
|
41 |
+
- endforeach()
|
42 |
+
- if (CGNS_BUILD_SHARED AND EXISTS "${GUESS_SHARED}")
|
43 |
+
- set (HDF5_BUILD_SHARED_LIBS 1)
|
44 |
+
- set (CG_HDF5_LINK_TYPE "shared")
|
45 |
+
- set (CG_HDF5_LINK_TYPE_UPPER "SHARED")
|
46 |
+
- else ()
|
47 |
+
- set (HDF5_BUILD_SHARED_LIBS 0)
|
48 |
+
- set (CG_HDF5_LINK_TYPE "static")
|
49 |
+
- set (CG_HDF5_LINK_TYPE_UPPER "STATIC")
|
50 |
+
- endif ()
|
51 |
+
- set (LINK_LIBS ${HDF5_LIBRARIES})
|
52 |
+
+ find_package (HDF5 CONFIG REQUIRED)
|
53 |
+
+ if (TARGET hdf5::hdf5-shared)
|
54 |
+
+ set (LINK_LIBS ${LINK_LIBS} hdf5::hdf5-shared)
|
55 |
+
+ else ()
|
56 |
+
+ set (LINK_LIBS ${LINK_LIBS} hdf5::hdf5-static)
|
57 |
+
endif ()
|
58 |
+
- set (HDF5_PACKAGE_NAME ${SEARCH_PACKAGE_NAME})
|
59 |
+
|
60 |
+
if (HDF5_FOUND)
|
61 |
+
if (NOT DEFINED HDF5_INCLUDE_DIRS)
|
cc-multilingual-main/cc_net/vcpkg/ports/cgns/linux_lfs.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 46446da8a..a3d8cd98f 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -116,6 +116,7 @@ if (CGNS_ENABLE_LFS)
|
6 |
+
else ()
|
7 |
+
check_symbol_exists(open64 "sys/types.h;sys/stat.h;unistd.h" HAVE_OPEN64)
|
8 |
+
check_symbol_exists(lseek64 "sys/types.h;unistd.h" HAVE_LSEEK64)
|
9 |
+
+ add_definitions(-D_FILE_OFFSET_BITS=64 -D__LARGEFILE64_SOURCE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)
|
10 |
+
endif ()
|
11 |
+
if (HAVE_OPEN64)
|
12 |
+
add_compile_definitions(HAVE_OPEN64)
|
cc-multilingual-main/cc_net/vcpkg/ports/cgns/portfile.cmake
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO CGNS/CGNS
|
5 |
+
REF "v${VERSION}"
|
6 |
+
SHA512 86c16d40b524519362645c553c91bade9bb7e4bffde7bf4de96a7f471ae3779a15781efa91efa059b2af0b127f08a560d2e903df6b45e1c79eaec6061db226e9
|
7 |
+
HEAD_REF develop
|
8 |
+
PATCHES
|
9 |
+
hdf5.patch
|
10 |
+
linux_lfs.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
"fortran" CGNS_ENABLE_FORTRAN
|
16 |
+
"tests" CGNS_ENABLE_TESTS
|
17 |
+
"hdf5" CGNS_ENABLE_HDF5
|
18 |
+
"lfs" CGNS_ENABLE_LFS
|
19 |
+
"legacy" CGNS_ENABLE_LEGACY
|
20 |
+
)
|
21 |
+
|
22 |
+
set(CGNS_BUILD_OPTS "")
|
23 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "64")
|
24 |
+
list(APPEND CGNS_BUILD_OPTS "-DCGNS_ENABLE_64BIT=ON")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
28 |
+
list(APPEND CGNS_BUILD_OPTS "-DCGNS_BUILD_SHARED=ON;-DCGNS_USE_SHARED=ON")
|
29 |
+
else()
|
30 |
+
list(APPEND CGNS_BUILD_OPTS "-DCGNS_BUILD_SHARED=OFF;-DCGNS_USE_SHARED=OFF")
|
31 |
+
endif()
|
32 |
+
|
33 |
+
# By default, when possible, vcpkg_cmake_configure uses ninja-build as its build system
|
34 |
+
vcpkg_cmake_configure(
|
35 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
36 |
+
OPTIONS
|
37 |
+
${FEATURE_OPTIONS}
|
38 |
+
${CGNS_BUILD_OPTS}
|
39 |
+
-DCGNS_ENABLE_SCOPING:BOOL=ON
|
40 |
+
)
|
41 |
+
|
42 |
+
vcpkg_cmake_install()
|
43 |
+
vcpkg_copy_pdbs()
|
44 |
+
|
45 |
+
# Moves all *.cmake files from /debug/lib/cmake/cgns/ to /share/cgns/
|
46 |
+
# See /docs/maintainers/ports/vcpkg-cmake-config/vcpkg_cmake_config_fixup.md for more details
|
47 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/cgns")
|
48 |
+
|
49 |
+
vcpkg_copy_tools(
|
50 |
+
TOOL_NAMES
|
51 |
+
cgnscheck
|
52 |
+
cgnscompress
|
53 |
+
cgnsconvert
|
54 |
+
cgnsdiff
|
55 |
+
cgnslist
|
56 |
+
cgnsnames
|
57 |
+
AUTO_CLEAN
|
58 |
+
)
|
59 |
+
|
60 |
+
set(TOOLS "cgnsupdate")
|
61 |
+
if("hdf5" IN_LIST FEATURES)
|
62 |
+
list(APPEND TOOLS "adf2hdf" "hdf2adf")
|
63 |
+
endif()
|
64 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
65 |
+
list(TRANSFORM TOOLS APPEND ".bat")
|
66 |
+
endif()
|
67 |
+
|
68 |
+
foreach(TOOL ${TOOLS})
|
69 |
+
file(INSTALL "${CURRENT_PACKAGES_DIR}/bin/${TOOL}" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
70 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${TOOL}")
|
71 |
+
endforeach()
|
72 |
+
|
73 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
|
74 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/bin")
|
75 |
+
endif()
|
76 |
+
|
77 |
+
if (EXISTS "${CURRENT_PACKAGES_DIR}/debug")
|
78 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
79 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
80 |
+
endif()
|
81 |
+
|
82 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/include/cgnsBuild.defs" "${CURRENT_PACKAGES_DIR}/include/cgnsconfig.h")
|
83 |
+
file(INSTALL "${CURRENT_PORT_DIR}/cgnsconfig.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include") # the include is all that is needed
|
84 |
+
|
85 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
86 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/cgnslib.h" "defined(USE_DLL)" "1")
|
87 |
+
endif()
|
88 |
+
|
89 |
+
# Handle copyright
|
90 |
+
configure_file("${SOURCE_PATH}/license.txt" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/cgns/vcpkg.json
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cgns",
|
3 |
+
"version-semver": "4.4.0",
|
4 |
+
"description": "The CFD General Notation System (CGNS) provides a standard for recording and recovering computer data associated with the numerical solution of fluid dynamics equations.",
|
5 |
+
"homepage": "http://cgns.org/",
|
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 |
+
"default-features": [
|
18 |
+
"hdf5",
|
19 |
+
"lfsselector"
|
20 |
+
],
|
21 |
+
"features": {
|
22 |
+
"fortran": {
|
23 |
+
"description": "Enable fortran support (not yet implemented)"
|
24 |
+
},
|
25 |
+
"hdf5": {
|
26 |
+
"description": "Enable hdf5 support",
|
27 |
+
"dependencies": [
|
28 |
+
{
|
29 |
+
"name": "hdf5",
|
30 |
+
"default-features": false,
|
31 |
+
"features": [
|
32 |
+
"tools"
|
33 |
+
]
|
34 |
+
}
|
35 |
+
]
|
36 |
+
},
|
37 |
+
"legacy": {
|
38 |
+
"description": "Enable legacy support"
|
39 |
+
},
|
40 |
+
"lfs": {
|
41 |
+
"description": "Enable LFS support"
|
42 |
+
},
|
43 |
+
"lfsselector": {
|
44 |
+
"description": "Selector for LFS",
|
45 |
+
"dependencies": [
|
46 |
+
{
|
47 |
+
"name": "cgns",
|
48 |
+
"default-features": false,
|
49 |
+
"features": [
|
50 |
+
"lfs"
|
51 |
+
],
|
52 |
+
"platform": "!osx"
|
53 |
+
}
|
54 |
+
]
|
55 |
+
},
|
56 |
+
"mpi": {
|
57 |
+
"description": "Enable MPI support",
|
58 |
+
"dependencies": [
|
59 |
+
{
|
60 |
+
"name": "hdf5",
|
61 |
+
"default-features": false,
|
62 |
+
"features": [
|
63 |
+
"parallel"
|
64 |
+
]
|
65 |
+
}
|
66 |
+
]
|
67 |
+
},
|
68 |
+
"tests": {
|
69 |
+
"description": "Build tests"
|
70 |
+
},
|
71 |
+
"tools": {
|
72 |
+
"description": "No effects, preserved for upgrade compatibility"
|
73 |
+
}
|
74 |
+
}
|
75 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cxxgraph/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
To use CXXGraph header files:
|
2 |
+
|
3 |
+
find_path(CXXGRAPH_INCLUDE_DIR cxxgraph/CXXGraph.hpp)
|
4 |
+
target_include_directories(main PRIVATE ${CXXGRAPH_INCLUDE_DIR})
|
cc-multilingual-main/cc_net/vcpkg/ports/cxxgraph/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cxxgraph",
|
3 |
+
"version": "2.0.0",
|
4 |
+
"description": "CXXGraph is a header only comprehensive C++ graph library.",
|
5 |
+
"homepage": "https://github.com/ZigRazor/CXXGraph",
|
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/debug-assert/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO foonathan/debug_assert
|
4 |
+
REF 0144b6532ec80349780ffac3cf85a92d87eb7b1b
|
5 |
+
SHA512 16cf38406d5f71585b763ff8af59b09c7b8b05372b07714cdc82f6f27292597c0b6d9025f823515744f8235b326b95e1d630af34db4a0e15d4ded79364290630
|
6 |
+
HEAD_REF v1.3.3
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DDEBUG_ASSERT_INSTALL=ON
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/debug_assert PACKAGE_NAME debug_assert)
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
20 |
+
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/debug-assert/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "debug-assert",
|
3 |
+
"version": "1.3.3",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Provides flexible DEBUG_ASSERT() macro.",
|
6 |
+
"homepage": "https://github.com/foonathan/debug_assert",
|
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/ecsutil/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
2 |
+
set(ECSUtil_CONFIGURATION_RELEASE Release)
|
3 |
+
set(ECSUtil_CONFIGURATION_DEBUG Debug)
|
4 |
+
else()
|
5 |
+
if (VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
6 |
+
set(ECSUtil_CONFIGURATION_RELEASE "Release Lib")
|
7 |
+
set(ECSUtil_CONFIGURATION_DEBUG "Debug Lib")
|
8 |
+
else()
|
9 |
+
set(ECSUtil_CONFIGURATION_RELEASE "Release Lib Static")
|
10 |
+
set(ECSUtil_CONFIGURATION_DEBUG "Debug Lib Static")
|
11 |
+
endif()
|
12 |
+
endif()
|
13 |
+
|
14 |
+
vcpkg_from_github(
|
15 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
16 |
+
REPO EMCECS/ecs-object-client-windows-cpp
|
17 |
+
REF af9fd3cc0be5eacfeb431ca4607d3b73dd318353 # v1.0.7.15
|
18 |
+
SHA512 091f4b4870d5bdcbd46c35b2d75e927c9da69e2aba9a24b36504ab9fa3e33fba6eec2a8a5b649fc3ad793e3043c3f2702b753341f74d87de1a7f96c251839c69
|
19 |
+
HEAD_REF master
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_msbuild_install(
|
23 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
24 |
+
PROJECT_SUBPATH ECSUtil.sln
|
25 |
+
PLATFORM "${TRIPLET_SYSTEM_ARCH}" # This means x86 as platform config instead of Win32
|
26 |
+
TARGET ECSUtil
|
27 |
+
RELEASE_CONFIGURATION "${ECSUtil_CONFIGURATION_RELEASE}"
|
28 |
+
DEBUG_CONFIGURATION "${ECSUtil_CONFIGURATION_DEBUG}"
|
29 |
+
)
|
30 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt")
|
31 |
+
|
32 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
34 |
+
endif()
|
35 |
+
|
36 |
+
file(COPY "${SOURCE_PATH}/ECSUtil" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN *.h)
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/ECSUtil/res" "${CURRENT_PACKAGES_DIR}/tools")
|
38 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/NatvisAddIn.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/NatvisAddIn.dll")
|
39 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
41 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/ecsutil/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ecsutil",
|
3 |
+
"version": "1.0.7.15",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Native Windows SDK for accessing ECS via the S3 HTTP protocol.",
|
6 |
+
"homepage": "https://github.com/EMCECS/ecs-object-client-windows-cpp",
|
7 |
+
"supports": "windows & (x64 | x86) & !uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "atlmfc",
|
11 |
+
"platform": "windows"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-msbuild",
|
15 |
+
"host": true,
|
16 |
+
"platform": "windows"
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/gtkmm/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
string(REGEX MATCH "^([0-9]*[.][0-9]*)" GTKMM_MAJOR_MINOR "${VERSION}")
|
2 |
+
vcpkg_download_distfile(ARCHIVE
|
3 |
+
URLS "https://ftp.gnome.org/pub/GNOME/sources/gtkmm/${GTKMM_MAJOR_MINOR}/gtkmm-${VERSION}.tar.xz"
|
4 |
+
FILENAME "gtkmm-${VERSION}.tar.xz"
|
5 |
+
SHA512 ee40cce37c34814884ffc06e614013d23fa31cac51ea9d98ea5689a08acc2ff58bb2ca80ba822d6fe3c0f3bdcb9ce2596ede3c05c69a702b524c4e38afc3d9ab
|
6 |
+
)
|
7 |
+
|
8 |
+
vcpkg_extract_source_archive(
|
9 |
+
SOURCE_PATH
|
10 |
+
ARCHIVE ${ARCHIVE}
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_configure_meson(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
OPTIONS
|
16 |
+
-Dmsvc14x-parallel-installable=false # Use separate DLL and LIB filenames for Visual Studio 2017 and 2019
|
17 |
+
-Dbuild-tests=false
|
18 |
+
-Dbuild-demos=false
|
19 |
+
ADDITIONAL_BINARIES
|
20 |
+
glib-compile-resources='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-compile-resources${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_install_meson()
|
24 |
+
|
25 |
+
vcpkg_copy_pdbs()
|
26 |
+
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
|
29 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/gtkmm/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gtkmm",
|
3 |
+
"version": "4.10.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "gtkmm is the official C++ interface for the popular GUI library GTK+.",
|
6 |
+
"homepage": "https://www.gtkmm.org/",
|
7 |
+
"license": "LGPL-3.0-or-later",
|
8 |
+
"supports": "!uwp & !xbox",
|
9 |
+
"dependencies": [
|
10 |
+
"cairomm",
|
11 |
+
"gdk-pixbuf",
|
12 |
+
"glibmm",
|
13 |
+
"gtk",
|
14 |
+
"libepoxy",
|
15 |
+
"pangomm",
|
16 |
+
{
|
17 |
+
"name": "vcpkg-tool-meson",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
]
|
21 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-gui7/dependencies.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt
|
3 |
+
+++ b/CMakeLists.txt
|
4 |
+
@@ -80,13 +80,17 @@
|
5 |
+
set(GZ_TOOLS_VER 2)
|
6 |
+
|
7 |
+
#--------------------------------------
|
8 |
+
# Find QT
|
9 |
+
+set(qt_pkgconfig "Qt5Core Qt5Quick Qt5QuickControls2 Qt5Widgets")
|
10 |
+
+if (WIN32)
|
11 |
+
+set(qt_pkgconfig "")
|
12 |
+
+endif()
|
13 |
+
gz_find_package (Qt5
|
14 |
+
COMPONENTS
|
15 |
+
Core
|
16 |
+
Quick
|
17 |
+
QuickControls2
|
18 |
+
Widgets
|
19 |
+
REQUIRED
|
20 |
+
- PKGCONFIG "Qt5Core Qt5Quick Qt5QuickControls2 Qt5Widgets"
|
21 |
+
+ PKGCONFIG ${qt_pkgconfig}
|
22 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-gui7/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(PACKAGE_NAME gui)
|
2 |
+
|
3 |
+
ignition_modular_library(
|
4 |
+
NAME ${PACKAGE_NAME}
|
5 |
+
REF ${PORT}_${VERSION}
|
6 |
+
VERSION ${VERSION}
|
7 |
+
SHA512 29f37a31bbf90dd35f37e80053c1aff9fb404b7a09c8c10e640da505cc6261387e6ce77e3bf379a911e6131c684f866cf1ef8d83777112b3c7f148b1f95cc72f
|
8 |
+
OPTIONS
|
9 |
+
PATCHES
|
10 |
+
dependencies.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
14 |
+
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/lib/gz-gui-7/plugins/*.dll")
|
15 |
+
if (NOT plugins STREQUAL "")
|
16 |
+
file(COPY ${plugins} DESTINATION "${CURRENT_PACKAGES_DIR}/engine-plugins/")
|
17 |
+
file(REMOVE ${plugins})
|
18 |
+
endif()
|
19 |
+
|
20 |
+
file(GLOB plugins_debug "${CURRENT_PACKAGES_DIR}/debug/lib/gz-gui-7/plugins/*.dll")
|
21 |
+
if (NOT plugins_debug STREQUAL "")
|
22 |
+
file(COPY ${plugins_debug} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/engine-plugins/")
|
23 |
+
file(REMOVE ${plugins_debug})
|
24 |
+
endif()
|
25 |
+
|
26 |
+
# Lacking pc files for Qt
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
28 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-gui7/vcpkg.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gz-gui7",
|
3 |
+
"version": "7.2.1",
|
4 |
+
"description": "Gazebo GUI builds on top of Qt to provide widgets which are useful when developing robotics applications, such as a 3D view, plots, dashboard, etc, and can be used together in a convenient unified interface.",
|
5 |
+
"homepage": "https://gazebosim.org/libs/gui",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"dependencies": [
|
8 |
+
"gz-cmake3",
|
9 |
+
"gz-common5",
|
10 |
+
"gz-math7",
|
11 |
+
"gz-msgs9",
|
12 |
+
"gz-plugin2",
|
13 |
+
"gz-rendering7",
|
14 |
+
"gz-transport12",
|
15 |
+
"gz-utils2",
|
16 |
+
{
|
17 |
+
"name": "ignition-modularscripts",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
"protobuf",
|
21 |
+
{
|
22 |
+
"name": "qt5-base",
|
23 |
+
"default-features": false
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "qt5-quickcontrols2",
|
27 |
+
"default-features": false
|
28 |
+
},
|
29 |
+
"sdformat13",
|
30 |
+
"tinyxml2"
|
31 |
+
]
|
32 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ignition-tools/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO gazebosim/gz-tools
|
6 |
+
REF ignition-tools_1.5.0
|
7 |
+
SHA512 3e8267fc16295e269a1fb4867235bca858fea0f5f048831b0dc5f087907897042edb0f4757aef1bad824f3f109959286a441ca5315b6815c557e7deba9f8d151
|
8 |
+
HEAD_REF ign-tools1
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DBUILD_TESTING=OFF
|
15 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
16 |
+
-DUSE_SYSTEM_BACKWARDCPP=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
# Fix cmake targets and pkg-config file location
|
22 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/ignition-tools")
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
|
25 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
26 |
+
file(GLOB DEBUG_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*")
|
27 |
+
file(COPY ${DEBUG_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/tools/${PORT}")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
31 |
+
file(GLOB RELEASE_TOOLS "${CURRENT_PACKAGES_DIR}/debug/bin/*")
|
32 |
+
file(COPY ${RELEASE_TOOLS} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
33 |
+
endif()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake"
|
36 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
37 |
+
)
|
38 |
+
|
39 |
+
file(REMOVE_RECURSE
|
40 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
41 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
42 |
+
)
|
43 |
+
|
44 |
+
# Handle copyright
|
45 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/ixwebsocket/fix-C2065-of-errorMsg.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/ixwebsocket/IXSocketMbedTLS.cpp b/ixwebsocket/IXSocketMbedTLS.cpp
|
2 |
+
index f5c0cf6..0192dc7 100644
|
3 |
+
--- a/ixwebsocket/IXSocketMbedTLS.cpp
|
4 |
+
+++ b/ixwebsocket/IXSocketMbedTLS.cpp
|
5 |
+
@@ -49,7 +49,7 @@ namespace ix
|
6 |
+
mbedtls_pk_init(&_pkey);
|
7 |
+
}
|
8 |
+
|
9 |
+
- bool SocketMbedTLS::loadSystemCertificates(std::string& /* errorMsg */)
|
10 |
+
+ bool SocketMbedTLS::loadSystemCertificates(std::string& errorMsg)
|
11 |
+
{
|
12 |
+
#ifdef _WIN32
|
13 |
+
DWORD flags = CERT_STORE_READONLY_FLAG | CERT_STORE_OPEN_EXISTING_FLAG |
|
cc-multilingual-main/cc_net/vcpkg/ports/ixwebsocket/portfile.cmake
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO machinezone/IXWebSocket
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 698ad96f25f53bf48906201826008bad46c657f8043d3653988716ddd9fb5dfeb52cebc002b3af76b91d0561155607a5f38bbc2c808aa67f438432207da82a35
|
8 |
+
PATCHES
|
9 |
+
fix-C2065-of-errorMsg.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
openssl USE_OPEN_SSL
|
15 |
+
mbedtls USE_MBED_TLS
|
16 |
+
sectransp USE_SECURE_TRANSPORT
|
17 |
+
)
|
18 |
+
|
19 |
+
string(COMPARE NOTEQUAL "${FEATURES}" "core" USE_TLS)
|
20 |
+
|
21 |
+
list(REMOVE_ITEM FEATURES "ssl")
|
22 |
+
list(LENGTH FEATURES num_features)
|
23 |
+
if(num_features GREATER "2")
|
24 |
+
message(FATAL_ERROR "Can not select multiple ssl backends at the same time. Disable default features to disable the default ssl backend.")
|
25 |
+
endif()
|
26 |
+
|
27 |
+
vcpkg_cmake_configure(
|
28 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
29 |
+
OPTIONS
|
30 |
+
${FEATURE_OPTIONS}
|
31 |
+
-DUSE_TLS=${USE_TLS}
|
32 |
+
MAYBE_UNUSED_VARIABLES
|
33 |
+
USE_SECURE_TRANSPORT
|
34 |
+
USE_MBED_TLS
|
35 |
+
USE_OPEN_SSL
|
36 |
+
)
|
37 |
+
|
38 |
+
vcpkg_cmake_install()
|
39 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ixwebsocket)
|
40 |
+
vcpkg_fixup_pkgconfig()
|
41 |
+
|
42 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
43 |
+
|
44 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/ixwebsocket/vcpkg.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ixwebsocket",
|
3 |
+
"version-semver": "11.4.4",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Lightweight WebSocket Client and Server + HTTP Client and Server",
|
6 |
+
"homepage": "https://github.com/machinezone/IXWebSocket",
|
7 |
+
"license": "BSD-3-Clause",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
"zlib"
|
18 |
+
],
|
19 |
+
"default-features": [
|
20 |
+
"ssl"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"mbedtls": {
|
24 |
+
"description": "SSL support (mbedTLS)",
|
25 |
+
"dependencies": [
|
26 |
+
"mbedtls"
|
27 |
+
]
|
28 |
+
},
|
29 |
+
"openssl": {
|
30 |
+
"description": "SSL support (OpenSSL)",
|
31 |
+
"supports": "!uwp",
|
32 |
+
"dependencies": [
|
33 |
+
"openssl"
|
34 |
+
]
|
35 |
+
},
|
36 |
+
"sectransp": {
|
37 |
+
"description": "SSL support (sectransp)",
|
38 |
+
"supports": "osx | ios"
|
39 |
+
},
|
40 |
+
"ssl": {
|
41 |
+
"description": "Default SSL backend",
|
42 |
+
"dependencies": [
|
43 |
+
{
|
44 |
+
"name": "ixwebsocket",
|
45 |
+
"features": [
|
46 |
+
"mbedtls"
|
47 |
+
],
|
48 |
+
"platform": "windows"
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"name": "ixwebsocket",
|
52 |
+
"features": [
|
53 |
+
"sectransp"
|
54 |
+
],
|
55 |
+
"platform": "osx | ios"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"name": "ixwebsocket",
|
59 |
+
"features": [
|
60 |
+
"mbedtls"
|
61 |
+
],
|
62 |
+
"platform": "windows & uwp"
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"name": "ixwebsocket",
|
66 |
+
"features": [
|
67 |
+
"openssl"
|
68 |
+
],
|
69 |
+
"platform": "!uwp & !windows & !osx & !ios"
|
70 |
+
}
|
71 |
+
]
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/jwt-cpp/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Thalhammer/jwt-cpp
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 b6fdb93e3f2f065a2eb45fe16cb076a932b8d4bfad2251bd66d2be40d8afaf5c27a9cf17aaea61d8bfa3f5ff9ed3b45f90962dc14d72704ac5b9d717c12cc79f
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
# Copy the header files
|
10 |
+
file(GLOB HEADER_FILES ${SOURCE_PATH}/include/jwt-cpp/*)
|
11 |
+
file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/jwt-cpp)
|
12 |
+
|
13 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/jwt-cpp/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "jwt-cpp",
|
3 |
+
"version-semver": "0.7.0",
|
4 |
+
"description": "A header only library for creating and validating json web tokens in c++",
|
5 |
+
"homepage": "https://github.com/Thalhammer/jwt-cpp",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"picojson"
|
9 |
+
]
|
10 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/FindLAPACK.cmake
ADDED
@@ -0,0 +1,559 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
3 |
+
|
4 |
+
#[=======================================================================[.rst:
|
5 |
+
FindLAPACK
|
6 |
+
----------
|
7 |
+
|
8 |
+
Find Linear Algebra PACKage (LAPACK) library
|
9 |
+
|
10 |
+
This module finds an installed Fortran library that implements the
|
11 |
+
LAPACK linear-algebra interface (see http://www.netlib.org/lapack/).
|
12 |
+
|
13 |
+
The approach follows that taken for the ``autoconf`` macro file,
|
14 |
+
``acx_lapack.m4`` (distributed at
|
15 |
+
http://ac-archive.sourceforge.net/ac-archive/acx_lapack.html).
|
16 |
+
|
17 |
+
Input Variables
|
18 |
+
^^^^^^^^^^^^^^^
|
19 |
+
|
20 |
+
The following variables may be set to influence this module's behavior:
|
21 |
+
|
22 |
+
``BLA_STATIC``
|
23 |
+
if ``ON`` use static linkage
|
24 |
+
|
25 |
+
``BLA_VENDOR``
|
26 |
+
If set, checks only the specified vendor, if not set checks all the
|
27 |
+
possibilities. List of vendors valid in this module:
|
28 |
+
|
29 |
+
* ``OpenBLAS``
|
30 |
+
* ``FLAME``
|
31 |
+
* ``Intel10_32`` (intel mkl v10 32 bit)
|
32 |
+
* ``Intel10_64lp`` (intel mkl v10+ 64 bit, threaded code, lp64 model)
|
33 |
+
* ``Intel10_64lp_seq`` (intel mkl v10+ 64 bit, sequential code, lp64 model)
|
34 |
+
* ``Intel10_64ilp`` (intel mkl v10+ 64 bit, threaded code, ilp64 model)
|
35 |
+
* ``Intel10_64ilp_seq`` (intel mkl v10+ 64 bit, sequential code, ilp64 model)
|
36 |
+
* ``Intel10_64_dyn`` (intel mkl v10+ 64 bit, single dynamic library)
|
37 |
+
* ``Intel`` (obsolete versions of mkl 32 and 64 bit)
|
38 |
+
* ``ACML``
|
39 |
+
* ``Apple``
|
40 |
+
* ``NAS``
|
41 |
+
* ``Arm``
|
42 |
+
* ``Arm_mp``
|
43 |
+
* ``Arm_ilp64``
|
44 |
+
* ``Arm_ilp64_mp``
|
45 |
+
* ``Generic``
|
46 |
+
|
47 |
+
``BLA_F95``
|
48 |
+
if ``ON`` tries to find the BLAS95/LAPACK95 interfaces
|
49 |
+
|
50 |
+
Imported targets
|
51 |
+
^^^^^^^^^^^^^^^^
|
52 |
+
|
53 |
+
This module defines the following :prop_tgt:`IMPORTED` target:
|
54 |
+
|
55 |
+
``LAPACK::LAPACK``
|
56 |
+
The libraries to use for LAPACK, if found.
|
57 |
+
|
58 |
+
Result Variables
|
59 |
+
^^^^^^^^^^^^^^^^
|
60 |
+
|
61 |
+
This module defines the following variables:
|
62 |
+
|
63 |
+
``LAPACK_FOUND``
|
64 |
+
library implementing the LAPACK interface is found
|
65 |
+
``LAPACK_LINKER_FLAGS``
|
66 |
+
uncached list of required linker flags (excluding ``-l`` and ``-L``).
|
67 |
+
``LAPACK_LIBRARIES``
|
68 |
+
uncached list of libraries (using full path name) to link against
|
69 |
+
to use LAPACK
|
70 |
+
``LAPACK95_LIBRARIES``
|
71 |
+
uncached list of libraries (using full path name) to link against
|
72 |
+
to use LAPACK95
|
73 |
+
``LAPACK95_FOUND``
|
74 |
+
library implementing the LAPACK95 interface is found
|
75 |
+
|
76 |
+
.. note::
|
77 |
+
|
78 |
+
C, CXX or Fortran must be enabled to detect a BLAS/LAPACK library.
|
79 |
+
C or CXX must be enabled to use Intel Math Kernel Library (MKL).
|
80 |
+
|
81 |
+
For example, to use Intel MKL libraries and/or Intel compiler:
|
82 |
+
|
83 |
+
.. code-block:: cmake
|
84 |
+
|
85 |
+
set(BLA_VENDOR Intel10_64lp)
|
86 |
+
find_package(LAPACK)
|
87 |
+
#]=======================================================================]
|
88 |
+
|
89 |
+
enable_language(C)
|
90 |
+
# Check the language being used
|
91 |
+
if(NOT (CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED OR CMAKE_Fortran_COMPILER_LOADED))
|
92 |
+
if(LAPACK_FIND_REQUIRED)
|
93 |
+
message(FATAL_ERROR "FindLAPACK requires Fortran, C, or C++ to be enabled.")
|
94 |
+
else()
|
95 |
+
message(STATUS "Looking for LAPACK... - NOT found (Unsupported languages)")
|
96 |
+
return()
|
97 |
+
endif()
|
98 |
+
endif()
|
99 |
+
|
100 |
+
if(CMAKE_Fortran_COMPILER_LOADED)
|
101 |
+
include(${CMAKE_ROOT}/Modules/CheckFortranFunctionExists.cmake)
|
102 |
+
else()
|
103 |
+
include(${CMAKE_ROOT}/Modules/CheckFunctionExists.cmake)
|
104 |
+
endif()
|
105 |
+
include(${CMAKE_ROOT}/Modules/CMakePushCheckState.cmake)
|
106 |
+
|
107 |
+
cmake_push_check_state()
|
108 |
+
set(CMAKE_REQUIRED_QUIET ${LAPACK_FIND_QUIETLY})
|
109 |
+
|
110 |
+
set(LAPACK_FOUND FALSE)
|
111 |
+
set(LAPACK95_FOUND FALSE)
|
112 |
+
|
113 |
+
# store original values for CMAKE_FIND_LIBRARY_SUFFIXES
|
114 |
+
set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
115 |
+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
116 |
+
list(APPEND CMAKE_FIND_LIBRARY_SUFFIXES .so.3gfs .so.3 .so.4 .so.5)
|
117 |
+
endif()
|
118 |
+
|
119 |
+
# TODO: move this stuff to a separate module
|
120 |
+
|
121 |
+
macro(CHECK_LAPACK_LIBRARIES LIBRARIES _prefix _name _flags _list _threadlibs _addlibdir _subdirs _blas)
|
122 |
+
# This macro checks for the existence of the combination of fortran libraries
|
123 |
+
# given by _list. If the combination is found, this macro checks (using the
|
124 |
+
# Check_Fortran_Function_Exists macro) whether can link against that library
|
125 |
+
# combination using the name of a routine given by _name using the linker
|
126 |
+
# flags given by _flags. If the combination of libraries is found and passes
|
127 |
+
# the link test, LIBRARIES is set to the list of complete library paths that
|
128 |
+
# have been found. Otherwise, LIBRARIES is set to FALSE.
|
129 |
+
|
130 |
+
# N.B. _prefix is the prefix applied to the names of all cached variables that
|
131 |
+
# are generated internally and marked advanced by this macro.
|
132 |
+
# _addlibdir is a list of additional search paths. _subdirs is a list of path
|
133 |
+
# suffixes to be used by find_library().
|
134 |
+
|
135 |
+
set(_libraries_work TRUE)
|
136 |
+
set(${LIBRARIES})
|
137 |
+
set(_combined_name)
|
138 |
+
|
139 |
+
set(_extaddlibdir "${_addlibdir}")
|
140 |
+
if(WIN32)
|
141 |
+
list(APPEND _extaddlibdir ENV LIB)
|
142 |
+
elseif(APPLE)
|
143 |
+
list(APPEND _extaddlibdir ENV DYLD_LIBRARY_PATH)
|
144 |
+
else()
|
145 |
+
list(APPEND _extaddlibdir ENV LD_LIBRARY_PATH)
|
146 |
+
endif()
|
147 |
+
list(APPEND _extaddlibdir "${CMAKE_C_IMPLICIT_LINK_DIRECTORIES}")
|
148 |
+
|
149 |
+
foreach(_library ${_list})
|
150 |
+
if(_library MATCHES "^-Wl,--(start|end)-group$")
|
151 |
+
# Respect linker flags like --start/end-group (required by MKL)
|
152 |
+
set(${LIBRARIES} ${${LIBRARIES}} "${_library}")
|
153 |
+
else()
|
154 |
+
set(_combined_name ${_combined_name}_${_library})
|
155 |
+
if(_libraries_work)
|
156 |
+
find_library(${_prefix}_${_library}_LIBRARY
|
157 |
+
NAMES ${_library}
|
158 |
+
PATHS ${_extaddlibdir}
|
159 |
+
PATH_SUFFIXES ${_subdirs}
|
160 |
+
)
|
161 |
+
#message("DEBUG: find_library(${_library}) got ${${_prefix}_${_library}_LIBRARY}")
|
162 |
+
mark_as_advanced(${_prefix}_${_library}_LIBRARY)
|
163 |
+
set(${LIBRARIES} ${${LIBRARIES}} ${${_prefix}_${_library}_LIBRARY})
|
164 |
+
set(_libraries_work ${${_prefix}_${_library}_LIBRARY})
|
165 |
+
endif()
|
166 |
+
endif()
|
167 |
+
endforeach()
|
168 |
+
|
169 |
+
if(_libraries_work)
|
170 |
+
# Test this combination of libraries.
|
171 |
+
set(CMAKE_REQUIRED_LIBRARIES ${_flags} ${${LIBRARIES}} ${_blas} ${_threadlibs})
|
172 |
+
#message("DEBUG: CMAKE_REQUIRED_LIBRARIES = ${CMAKE_REQUIRED_LIBRARIES}")
|
173 |
+
if(CMAKE_Fortran_COMPILER_LOADED)
|
174 |
+
check_fortran_function_exists("${_name}" ${_prefix}${_combined_name}_WORKS)
|
175 |
+
else()
|
176 |
+
check_function_exists("${_name}_" ${_prefix}${_combined_name}_WORKS)
|
177 |
+
endif()
|
178 |
+
set(CMAKE_REQUIRED_LIBRARIES)
|
179 |
+
set(_libraries_work ${${_prefix}${_combined_name}_WORKS})
|
180 |
+
endif()
|
181 |
+
|
182 |
+
if(_libraries_work)
|
183 |
+
if("${_list}${_blas}" STREQUAL "")
|
184 |
+
set(${LIBRARIES} "${LIBRARIES}-PLACEHOLDER-FOR-EMPTY-LIBRARIES")
|
185 |
+
else()
|
186 |
+
set(${LIBRARIES} ${${LIBRARIES}} ${_blas} ${_threadlibs})
|
187 |
+
endif()
|
188 |
+
else()
|
189 |
+
set(${LIBRARIES} FALSE)
|
190 |
+
endif()
|
191 |
+
#message("DEBUG: ${LIBRARIES} = ${${LIBRARIES}}")
|
192 |
+
endmacro()
|
193 |
+
|
194 |
+
set(LAPACK_LINKER_FLAGS)
|
195 |
+
set(LAPACK_LIBRARIES)
|
196 |
+
set(LAPACK95_LIBRARIES)
|
197 |
+
|
198 |
+
include(CMakeFindDependencyMacro)
|
199 |
+
find_dependency(BLAS)
|
200 |
+
|
201 |
+
if(BLAS_FOUND)
|
202 |
+
set(LAPACK_LINKER_FLAGS ${BLAS_LINKER_FLAGS})
|
203 |
+
if(NOT $ENV{BLA_VENDOR} STREQUAL "")
|
204 |
+
set(BLA_VENDOR $ENV{BLA_VENDOR})
|
205 |
+
else()
|
206 |
+
if(NOT BLA_VENDOR)
|
207 |
+
set(BLA_VENDOR "All")
|
208 |
+
endif()
|
209 |
+
endif()
|
210 |
+
|
211 |
+
# LAPACK in the Intel MKL 10+ library?
|
212 |
+
if(BLA_VENDOR MATCHES "Intel" OR BLA_VENDOR STREQUAL "All")
|
213 |
+
if(NOT LAPACK_LIBRARIES)
|
214 |
+
if(CMAKE_C_COMPILER_LOADED OR CMAKE_CXX_COMPILER_LOADED)
|
215 |
+
# System-specific settings
|
216 |
+
if(NOT WIN32)
|
217 |
+
set(LAPACK_mkl_LM "-lm")
|
218 |
+
set(LAPACK_mkl_LDL "-ldl")
|
219 |
+
endif()
|
220 |
+
|
221 |
+
if(LAPACK_FIND_QUIETLY OR NOT LAPACK_FIND_REQUIRED)
|
222 |
+
find_package(Threads)
|
223 |
+
else()
|
224 |
+
find_package(Threads REQUIRED)
|
225 |
+
endif()
|
226 |
+
|
227 |
+
if(BLA_VENDOR MATCHES "_64ilp")
|
228 |
+
set(LAPACK_mkl_ILP_MODE "ilp64")
|
229 |
+
else()
|
230 |
+
set(LAPACK_mkl_ILP_MODE "lp64")
|
231 |
+
endif()
|
232 |
+
|
233 |
+
set(LAPACK_SEARCH_LIBS "")
|
234 |
+
|
235 |
+
if(BLA_F95)
|
236 |
+
set(LAPACK_mkl_SEARCH_SYMBOL "cheev_f95")
|
237 |
+
set(_LIBRARIES LAPACK95_LIBRARIES)
|
238 |
+
set(_BLAS_LIBRARIES ${BLAS95_LIBRARIES})
|
239 |
+
|
240 |
+
# old
|
241 |
+
list(APPEND LAPACK_SEARCH_LIBS
|
242 |
+
"mkl_lapack95")
|
243 |
+
# new >= 10.3
|
244 |
+
list(APPEND LAPACK_SEARCH_LIBS
|
245 |
+
"mkl_intel_c")
|
246 |
+
list(APPEND LAPACK_SEARCH_LIBS
|
247 |
+
"mkl_lapack95_${LAPACK_mkl_ILP_MODE}")
|
248 |
+
else()
|
249 |
+
set(LAPACK_mkl_SEARCH_SYMBOL "cheev")
|
250 |
+
set(_LIBRARIES LAPACK_LIBRARIES)
|
251 |
+
set(_BLAS_LIBRARIES ${BLAS_LIBRARIES})
|
252 |
+
|
253 |
+
# old and new >= 10.3
|
254 |
+
list(APPEND LAPACK_SEARCH_LIBS
|
255 |
+
"mkl_lapack")
|
256 |
+
endif()
|
257 |
+
|
258 |
+
# MKL uses a multitude of partially platform-specific subdirectories:
|
259 |
+
if(BLA_VENDOR STREQUAL "Intel10_32")
|
260 |
+
set(LAPACK_mkl_ARCH_NAME "ia32")
|
261 |
+
else()
|
262 |
+
set(LAPACK_mkl_ARCH_NAME "intel64")
|
263 |
+
endif()
|
264 |
+
if(WIN32)
|
265 |
+
set(LAPACK_mkl_OS_NAME "win")
|
266 |
+
elseif(APPLE)
|
267 |
+
set(LAPACK_mkl_OS_NAME "mac")
|
268 |
+
else()
|
269 |
+
set(LAPACK_mkl_OS_NAME "lin")
|
270 |
+
endif()
|
271 |
+
if(DEFINED ENV{MKLROOT})
|
272 |
+
file(TO_CMAKE_PATH "$ENV{MKLROOT}" LAPACK_mkl_MKLROOT)
|
273 |
+
# If MKLROOT points to the subdirectory 'mkl', use the parent directory instead
|
274 |
+
# so we can better detect other relevant libraries in 'compiler' or 'tbb':
|
275 |
+
get_filename_component(LAPACK_mkl_MKLROOT_LAST_DIR "${LAPACK_mkl_MKLROOT}" NAME)
|
276 |
+
if(LAPACK_mkl_MKLROOT_LAST_DIR STREQUAL "mkl")
|
277 |
+
get_filename_component(LAPACK_mkl_MKLROOT "${LAPACK_mkl_MKLROOT}" DIRECTORY)
|
278 |
+
endif()
|
279 |
+
endif()
|
280 |
+
set(LAPACK_mkl_LIB_PATH_SUFFIXES
|
281 |
+
"compiler/lib" "compiler/lib/${LAPACK_mkl_ARCH_NAME}_${LAPACK_mkl_OS_NAME}"
|
282 |
+
"mkl/lib" "mkl/lib/${LAPACK_mkl_ARCH_NAME}_${LAPACK_mkl_OS_NAME}"
|
283 |
+
"lib/${LAPACK_mkl_ARCH_NAME}_${LAPACK_mkl_OS_NAME}")
|
284 |
+
|
285 |
+
# First try empty lapack libs
|
286 |
+
if(NOT ${_LIBRARIES})
|
287 |
+
check_lapack_libraries(
|
288 |
+
${_LIBRARIES}
|
289 |
+
LAPACK
|
290 |
+
${LAPACK_mkl_SEARCH_SYMBOL}
|
291 |
+
""
|
292 |
+
""
|
293 |
+
"${CMAKE_THREAD_LIBS_INIT};${LAPACK_mkl_LM};${LAPACK_mkl_LDL}"
|
294 |
+
"${LAPACK_mkl_MKLROOT}"
|
295 |
+
"${LAPACK_mkl_LIB_PATH_SUFFIXES}"
|
296 |
+
"${_BLAS_LIBRARIES}"
|
297 |
+
)
|
298 |
+
endif()
|
299 |
+
|
300 |
+
# Then try the search libs
|
301 |
+
foreach(IT ${LAPACK_SEARCH_LIBS})
|
302 |
+
string(REPLACE " " ";" SEARCH_LIBS ${IT})
|
303 |
+
if(NOT ${_LIBRARIES})
|
304 |
+
check_lapack_libraries(
|
305 |
+
${_LIBRARIES}
|
306 |
+
LAPACK
|
307 |
+
${LAPACK_mkl_SEARCH_SYMBOL}
|
308 |
+
""
|
309 |
+
"${SEARCH_LIBS}"
|
310 |
+
"${CMAKE_THREAD_LIBS_INIT};${LAPACK_mkl_LM};${LAPACK_mkl_LDL}"
|
311 |
+
"${LAPACK_mkl_MKLROOT}"
|
312 |
+
"${LAPACK_mkl_LIB_PATH_SUFFIXES}"
|
313 |
+
"${_BLAS_LIBRARIES}"
|
314 |
+
)
|
315 |
+
endif()
|
316 |
+
endforeach()
|
317 |
+
|
318 |
+
unset(LAPACK_mkl_ILP_MODE)
|
319 |
+
unset(LAPACK_mkl_SEARCH_SYMBOL)
|
320 |
+
unset(LAPACK_mkl_LM)
|
321 |
+
unset(LAPACK_mkl_LDL)
|
322 |
+
unset(LAPACK_mkl_MKLROOT)
|
323 |
+
unset(LAPACK_mkl_ARCH_NAME)
|
324 |
+
unset(LAPACK_mkl_OS_NAME)
|
325 |
+
unset(LAPACK_mkl_LIB_PATH_SUFFIXES)
|
326 |
+
endif()
|
327 |
+
endif()
|
328 |
+
endif()
|
329 |
+
|
330 |
+
# gotoblas? (http://www.tacc.utexas.edu/tacc-projects/gotoblas2)
|
331 |
+
if(BLA_VENDOR STREQUAL "Goto" OR BLA_VENDOR STREQUAL "All")
|
332 |
+
if(NOT LAPACK_LIBRARIES)
|
333 |
+
check_lapack_libraries(
|
334 |
+
LAPACK_LIBRARIES
|
335 |
+
LAPACK
|
336 |
+
cheev
|
337 |
+
""
|
338 |
+
"goto2"
|
339 |
+
""
|
340 |
+
""
|
341 |
+
""
|
342 |
+
"${BLAS_LIBRARIES}"
|
343 |
+
)
|
344 |
+
endif()
|
345 |
+
endif()
|
346 |
+
|
347 |
+
# OpenBLAS? (http://www.openblas.net)
|
348 |
+
if(BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
|
349 |
+
if(NOT LAPACK_LIBRARIES)
|
350 |
+
check_lapack_libraries(
|
351 |
+
LAPACK_LIBRARIES
|
352 |
+
LAPACK
|
353 |
+
cheev
|
354 |
+
""
|
355 |
+
"openblas"
|
356 |
+
""
|
357 |
+
""
|
358 |
+
""
|
359 |
+
"${BLAS_LIBRARIES}"
|
360 |
+
)
|
361 |
+
endif()
|
362 |
+
endif()
|
363 |
+
|
364 |
+
# ArmPL? (https://developer.arm.com/tools-and-software/server-and-hpc/compile/arm-compiler-for-linux/arm-performance-libraries)
|
365 |
+
if(BLA_VENDOR MATCHES "Arm" OR BLA_VENDOR STREQUAL "All")
|
366 |
+
|
367 |
+
# Check for 64bit Integer support
|
368 |
+
if(BLA_VENDOR MATCHES "_ilp64")
|
369 |
+
set(LAPACK_armpl_LIB "armpl_ilp64")
|
370 |
+
else()
|
371 |
+
set(LAPACK_armpl_LIB "armpl_lp64")
|
372 |
+
endif()
|
373 |
+
|
374 |
+
# Check for OpenMP support, VIA BLA_VENDOR of Arm_mp or Arm_ipl64_mp
|
375 |
+
if(BLA_VENDOR MATCHES "_mp")
|
376 |
+
set(LAPACK_armpl_LIB "${LAPACK_armpl_LIB}_mp")
|
377 |
+
endif()
|
378 |
+
|
379 |
+
if(NOT LAPACK_LIBRARIES)
|
380 |
+
check_lapack_libraries(
|
381 |
+
LAPACK_LIBRARIES
|
382 |
+
LAPACK
|
383 |
+
cheev
|
384 |
+
""
|
385 |
+
"${LAPACK_armpl_LIB}"
|
386 |
+
""
|
387 |
+
""
|
388 |
+
""
|
389 |
+
"${BLAS_LIBRARIES}"
|
390 |
+
)
|
391 |
+
endif()
|
392 |
+
endif()
|
393 |
+
|
394 |
+
# FLAME's blis library? (https://github.com/flame/blis)
|
395 |
+
if(BLA_VENDOR STREQUAL "FLAME" OR BLA_VENDOR STREQUAL "All")
|
396 |
+
if(NOT LAPACK_LIBRARIES)
|
397 |
+
check_lapack_libraries(
|
398 |
+
LAPACK_LIBRARIES
|
399 |
+
LAPACK
|
400 |
+
cheev
|
401 |
+
""
|
402 |
+
"flame"
|
403 |
+
""
|
404 |
+
""
|
405 |
+
""
|
406 |
+
"${BLAS_LIBRARIES}"
|
407 |
+
)
|
408 |
+
endif()
|
409 |
+
endif()
|
410 |
+
|
411 |
+
# BLAS in acml library?
|
412 |
+
if(BLA_VENDOR MATCHES "ACML" OR BLA_VENDOR STREQUAL "All")
|
413 |
+
if(BLAS_LIBRARIES MATCHES ".+acml.+")
|
414 |
+
set(LAPACK_LIBRARIES ${BLAS_LIBRARIES})
|
415 |
+
endif()
|
416 |
+
endif()
|
417 |
+
|
418 |
+
# Apple LAPACK library?
|
419 |
+
if(BLA_VENDOR STREQUAL "Apple" OR BLA_VENDOR STREQUAL "All")
|
420 |
+
if(NOT LAPACK_LIBRARIES)
|
421 |
+
check_lapack_libraries(
|
422 |
+
LAPACK_LIBRARIES
|
423 |
+
LAPACK
|
424 |
+
cheev
|
425 |
+
""
|
426 |
+
"Accelerate"
|
427 |
+
""
|
428 |
+
""
|
429 |
+
""
|
430 |
+
"${BLAS_LIBRARIES}"
|
431 |
+
)
|
432 |
+
endif()
|
433 |
+
endif()
|
434 |
+
|
435 |
+
# Apple NAS (vecLib) library?
|
436 |
+
if(BLA_VENDOR STREQUAL "NAS" OR BLA_VENDOR STREQUAL "All")
|
437 |
+
if(NOT LAPACK_LIBRARIES)
|
438 |
+
check_lapack_libraries(
|
439 |
+
LAPACK_LIBRARIES
|
440 |
+
LAPACK
|
441 |
+
cheev
|
442 |
+
""
|
443 |
+
"vecLib"
|
444 |
+
""
|
445 |
+
""
|
446 |
+
""
|
447 |
+
"${BLAS_LIBRARIES}"
|
448 |
+
)
|
449 |
+
endif()
|
450 |
+
endif()
|
451 |
+
|
452 |
+
# Generic LAPACK library?
|
453 |
+
if(BLA_VENDOR STREQUAL "Generic" OR
|
454 |
+
BLA_VENDOR STREQUAL "ATLAS" OR
|
455 |
+
BLA_VENDOR STREQUAL "All")
|
456 |
+
if(NOT LAPACK_LIBRARIES)
|
457 |
+
check_lapack_libraries(
|
458 |
+
LAPACK_LIBRARIES
|
459 |
+
LAPACK
|
460 |
+
cheev
|
461 |
+
""
|
462 |
+
"lapack"
|
463 |
+
""
|
464 |
+
""
|
465 |
+
""
|
466 |
+
"${BLAS_LIBRARIES}"
|
467 |
+
)
|
468 |
+
endif()
|
469 |
+
if(NOT LAPACK_LIBRARIES AND NOT WIN32)
|
470 |
+
check_lapack_libraries(
|
471 |
+
LAPACK_LIBRARIES
|
472 |
+
LAPACK
|
473 |
+
cheev
|
474 |
+
""
|
475 |
+
"lapack;m;gfortran"
|
476 |
+
""
|
477 |
+
""
|
478 |
+
""
|
479 |
+
"${BLAS_LIBRARIES}"
|
480 |
+
)
|
481 |
+
endif()
|
482 |
+
endif()
|
483 |
+
else()
|
484 |
+
message(STATUS "LAPACK requires BLAS")
|
485 |
+
endif()
|
486 |
+
|
487 |
+
if(BLA_F95)
|
488 |
+
if(LAPACK95_LIBRARIES)
|
489 |
+
set(LAPACK95_FOUND TRUE)
|
490 |
+
else()
|
491 |
+
set(LAPACK95_FOUND FALSE)
|
492 |
+
endif()
|
493 |
+
if(NOT LAPACK_FIND_QUIETLY)
|
494 |
+
if(LAPACK95_FOUND)
|
495 |
+
message(STATUS "A library with LAPACK95 API found.")
|
496 |
+
else()
|
497 |
+
if(LAPACK_FIND_REQUIRED)
|
498 |
+
message(FATAL_ERROR
|
499 |
+
"A required library with LAPACK95 API not found. Please specify library location."
|
500 |
+
)
|
501 |
+
else()
|
502 |
+
message(STATUS
|
503 |
+
"A library with LAPACK95 API not found. Please specify library location."
|
504 |
+
)
|
505 |
+
endif()
|
506 |
+
endif()
|
507 |
+
endif()
|
508 |
+
set(LAPACK_FOUND "${LAPACK95_FOUND}")
|
509 |
+
set(LAPACK_LIBRARIES "${LAPACK95_LIBRARIES}")
|
510 |
+
else()
|
511 |
+
if(LAPACK_LIBRARIES)
|
512 |
+
set(LAPACK_FOUND TRUE)
|
513 |
+
else()
|
514 |
+
set(LAPACK_FOUND FALSE)
|
515 |
+
endif()
|
516 |
+
|
517 |
+
if(NOT LAPACK_FIND_QUIETLY)
|
518 |
+
if(LAPACK_FOUND)
|
519 |
+
message(STATUS "A library with LAPACK API found.")
|
520 |
+
else()
|
521 |
+
if(LAPACK_FIND_REQUIRED)
|
522 |
+
message(FATAL_ERROR
|
523 |
+
"A required library with LAPACK API not found. Please specify library location."
|
524 |
+
)
|
525 |
+
else()
|
526 |
+
message(STATUS
|
527 |
+
"A library with LAPACK API not found. Please specify library location."
|
528 |
+
)
|
529 |
+
endif()
|
530 |
+
endif()
|
531 |
+
endif()
|
532 |
+
endif()
|
533 |
+
|
534 |
+
# On compilers that implicitly link LAPACK (such as ftn, cc, and CC on Cray HPC machines)
|
535 |
+
# we used a placeholder for empty LAPACK_LIBRARIES to get through our logic above.
|
536 |
+
if(LAPACK_LIBRARIES STREQUAL "LAPACK_LIBRARIES-PLACEHOLDER-FOR-EMPTY-LIBRARIES")
|
537 |
+
set(LAPACK_LIBRARIES "")
|
538 |
+
endif()
|
539 |
+
|
540 |
+
if(NOT TARGET LAPACK::LAPACK)
|
541 |
+
add_library(LAPACK::LAPACK INTERFACE IMPORTED)
|
542 |
+
set(_lapack_libs "${LAPACK_LIBRARIES}")
|
543 |
+
if(_lapack_libs AND TARGET BLAS::BLAS)
|
544 |
+
# remove the ${BLAS_LIBRARIES} from the interface and replace it
|
545 |
+
# with the BLAS::BLAS target
|
546 |
+
list(REMOVE_ITEM _lapack_libs "${BLAS_LIBRARIES}")
|
547 |
+
endif()
|
548 |
+
|
549 |
+
if(_lapack_libs)
|
550 |
+
set_target_properties(LAPACK::LAPACK PROPERTIES
|
551 |
+
INTERFACE_LINK_LIBRARIES "${_lapack_libs}"
|
552 |
+
)
|
553 |
+
endif()
|
554 |
+
unset(_lapack_libs)
|
555 |
+
endif()
|
556 |
+
|
557 |
+
cmake_pop_check_state()
|
558 |
+
# restore original values for CMAKE_FIND_LIBRARY_SUFFIXES
|
559 |
+
set(CMAKE_FIND_LIBRARY_SUFFIXES ${_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
|
cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/lapacke.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 1ee66f1..7cec7ca 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -392,8 +392,9 @@ endif()
|
6 |
+
set(LAPACK_INSTALL_EXPORT_NAME ${LAPACK_INSTALL_EXPORT_NAME_CACHE})
|
7 |
+
unset(LAPACK_INSTALL_EXPORT_NAME_CACHE)
|
8 |
+
|
9 |
+
-add_subdirectory(LAPACKE)
|
10 |
+
-
|
11 |
+
+if(LAPACKE)
|
12 |
+
+ add_subdirectory(LAPACKE)
|
13 |
+
+endif()
|
14 |
+
|
15 |
+
#-------------------------------------
|
16 |
+
# BLAS++ / LAPACK++
|
cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/portfile.cmake
ADDED
@@ -0,0 +1,147 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#TODO: Features to add:
|
2 |
+
# USE_XBLAS??? extended precision blas. needs xblas
|
3 |
+
# LAPACKE should be its own PORT
|
4 |
+
# USE_OPTIMIZED_LAPACK (Probably not what we want. Does a find_package(LAPACK): probably for LAPACKE only builds _> own port?)
|
5 |
+
# LAPACKE Builds LAPACKE
|
6 |
+
# LAPACKE_WITH_TMG Build LAPACKE with tmglib routines
|
7 |
+
if(EXISTS "${CURRENT_INSTALLED_DIR}/share/clapack/copyright")
|
8 |
+
message(FATAL_ERROR "Can't build ${PORT} if clapack is installed. Please remove clapack:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
|
9 |
+
endif()
|
10 |
+
|
11 |
+
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
12 |
+
|
13 |
+
include(vcpkg_find_fortran)
|
14 |
+
SET(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
15 |
+
set(VCPKG_POLICY_ALLOW_OBSOLETE_MSVCRT enabled)
|
16 |
+
|
17 |
+
vcpkg_from_github(
|
18 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
19 |
+
REPO "Reference-LAPACK/lapack"
|
20 |
+
REF "v${VERSION}"
|
21 |
+
SHA512 fc3258b9d91a833149a68a89c5589b5113e90a8f9f41c3a73fbfccb1ecddd92d9462802c0f870f1c3dab392623452de4ef512727f5874ffdcba6a4845f78fc9a
|
22 |
+
HEAD_REF master
|
23 |
+
PATCHES
|
24 |
+
cmake-config.patch
|
25 |
+
lapacke.patch
|
26 |
+
)
|
27 |
+
|
28 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
29 |
+
set(ENV{FFLAGS} "$ENV{FFLAGS} -fPIC")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
set(CBLAS OFF)
|
33 |
+
if("cblas" IN_LIST FEATURES)
|
34 |
+
set(CBLAS ON)
|
35 |
+
if("noblas" IN_LIST FEATURES)
|
36 |
+
message(FATAL_ERROR "Cannot built feature 'cblas' together with feature 'noblas'. cblas requires blas!")
|
37 |
+
endif()
|
38 |
+
endif()
|
39 |
+
|
40 |
+
set(USE_OPTIMIZED_BLAS OFF)
|
41 |
+
if("noblas" IN_LIST FEATURES)
|
42 |
+
set(USE_OPTIMIZED_BLAS ON)
|
43 |
+
set(pcfile "${CURRENT_INSTALLED_DIR}/lib/pkgconfig/openblas.pc")
|
44 |
+
if(EXISTS "${pcfile}")
|
45 |
+
file(CREATE_LINK "${pcfile}" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/blas.pc" COPY_ON_ERROR)
|
46 |
+
endif()
|
47 |
+
set(pcfile "${CURRENT_INSTALLED_DIR}/debug/lib/pkgconfig/openblas.pc")
|
48 |
+
if(EXISTS "${pcfile}")
|
49 |
+
file(CREATE_LINK "${pcfile}" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/blas.pc" COPY_ON_ERROR)
|
50 |
+
endif()
|
51 |
+
endif()
|
52 |
+
|
53 |
+
set(VCPKG_CRT_LINKAGE_BACKUP ${VCPKG_CRT_LINKAGE})
|
54 |
+
vcpkg_find_fortran(FORTRAN_CMAKE)
|
55 |
+
if(VCPKG_USE_INTERNAL_Fortran)
|
56 |
+
if(VCPKG_CRT_LINKAGE_BACKUP STREQUAL "static")
|
57 |
+
# If openblas has been built with static crt linkage we cannot use it with gfortran!
|
58 |
+
set(USE_OPTIMIZED_BLAS OFF)
|
59 |
+
#Cannot use openblas from vcpkg if we are building with gfortran here.
|
60 |
+
if("noblas" IN_LIST FEATURES)
|
61 |
+
message(FATAL_ERROR "Feature 'noblas' cannot be used without supplying an external fortran compiler")
|
62 |
+
endif()
|
63 |
+
endif()
|
64 |
+
endif()
|
65 |
+
|
66 |
+
vcpkg_cmake_configure(
|
67 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
68 |
+
OPTIONS
|
69 |
+
"-DUSE_OPTIMIZED_BLAS=${USE_OPTIMIZED_BLAS}"
|
70 |
+
"-DCMAKE_REQUIRE_FIND_PACKAGE_BLAS=${USE_OPTIMIZED_BLAS}"
|
71 |
+
"-DCBLAS=${CBLAS}"
|
72 |
+
"-DTEST_FORTRAN_COMPILER=OFF"
|
73 |
+
${FORTRAN_CMAKE}
|
74 |
+
MAYBE_UNUSED_VARIABLES
|
75 |
+
CMAKE_REQUIRE_FIND_PACKAGE_BLAS
|
76 |
+
)
|
77 |
+
|
78 |
+
vcpkg_cmake_install()
|
79 |
+
|
80 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME lapack-${VERSION} CONFIG_PATH lib/cmake/lapack-${VERSION}) #Should the target path be lapack and not lapack-reference?
|
81 |
+
|
82 |
+
set(pcfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/lapack.pc")
|
83 |
+
if(EXISTS "${pcfile}")
|
84 |
+
file(READ "${pcfile}" _contents)
|
85 |
+
set(_contents "prefix=${CURRENT_INSTALLED_DIR}\n${_contents}")
|
86 |
+
file(WRITE "${pcfile}" "${_contents}")
|
87 |
+
endif()
|
88 |
+
set(pcfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/lapack.pc")
|
89 |
+
if(EXISTS "${pcfile}")
|
90 |
+
file(READ "${pcfile}" _contents)
|
91 |
+
set(_contents "prefix=${CURRENT_INSTALLED_DIR}/debug\n${_contents}")
|
92 |
+
file(WRITE "${pcfile}" "${_contents}")
|
93 |
+
endif()
|
94 |
+
if(NOT USE_OPTIMIZED_BLAS AND NOT (VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "static"))
|
95 |
+
set(pcfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/blas.pc")
|
96 |
+
if(EXISTS "${pcfile}")
|
97 |
+
file(READ "${pcfile}" _contents)
|
98 |
+
set(_contents "prefix=${CURRENT_INSTALLED_DIR}\n${_contents}")
|
99 |
+
file(WRITE "${pcfile}" "${_contents}")
|
100 |
+
endif()
|
101 |
+
set(pcfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/blas.pc")
|
102 |
+
if(EXISTS "${pcfile}")
|
103 |
+
file(READ "${pcfile}" _contents)
|
104 |
+
set(_contents "prefix=${CURRENT_INSTALLED_DIR}/debug\n${_contents}")
|
105 |
+
file(WRITE "${pcfile}" "${_contents}")
|
106 |
+
endif()
|
107 |
+
endif()
|
108 |
+
if("cblas" IN_LIST FEATURES)
|
109 |
+
set(pcfile "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/cblas.pc")
|
110 |
+
if(EXISTS "${pcfile}")
|
111 |
+
file(READ "${pcfile}" _contents)
|
112 |
+
set(_contents "prefix=${CURRENT_INSTALLED_DIR}\n${_contents}")
|
113 |
+
file(WRITE "${pcfile}" "${_contents}")
|
114 |
+
endif()
|
115 |
+
set(pcfile "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/cblas.pc")
|
116 |
+
if(EXISTS "${pcfile}")
|
117 |
+
file(READ "${pcfile}" _contents)
|
118 |
+
set(_contents "prefix=${CURRENT_INSTALLED_DIR}/debug\n${_contents}")
|
119 |
+
file(WRITE "${pcfile}" "${_contents}")
|
120 |
+
endif()
|
121 |
+
endif()
|
122 |
+
vcpkg_fixup_pkgconfig()
|
123 |
+
|
124 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
125 |
+
|
126 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
127 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/liblapack.lib")
|
128 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/liblapack.lib" "${CURRENT_PACKAGES_DIR}/lib/lapack.lib")
|
129 |
+
endif()
|
130 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/liblapack.lib")
|
131 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/liblapack.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/lapack.lib")
|
132 |
+
endif()
|
133 |
+
if(NOT USE_OPTIMIZED_BLAS)
|
134 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/libblas.lib")
|
135 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/libblas.lib" "${CURRENT_PACKAGES_DIR}/lib/blas.lib")
|
136 |
+
endif()
|
137 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/libblas.lib")
|
138 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/libblas.lib" "${CURRENT_PACKAGES_DIR}/debug/lib/blas.lib")
|
139 |
+
endif()
|
140 |
+
endif()
|
141 |
+
endif()
|
142 |
+
|
143 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/lapack")
|
144 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/FindLAPACK.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/lapack")
|
145 |
+
|
146 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
147 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/usage
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
lapack-reference provides CMake targets:
|
2 |
+
|
3 |
+
find_package(lapack CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE lapack)
|
5 |
+
|
6 |
+
lapack-reference is compatible with built-in CMake targets:
|
7 |
+
|
8 |
+
find_package(LAPACK REQUIRED)
|
9 |
+
target_link_libraries(main PRIVATE LAPACK::LAPACK)
|
cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
message(STATUS "Using VCPKG FindLAPACK from package 'lapack-reference'")
|
2 |
+
set(LAPACK_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
3 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
4 |
+
|
5 |
+
list(REMOVE_ITEM ARGS "NO_MODULE")
|
6 |
+
list(REMOVE_ITEM ARGS "CONFIG")
|
7 |
+
list(REMOVE_ITEM ARGS "MODULE")
|
8 |
+
|
9 |
+
_find_package(${ARGS})
|
10 |
+
|
11 |
+
set(CMAKE_MODULE_PATH ${LAPACK_PREV_MODULE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/lapack-reference/vcpkg.json
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lapack-reference",
|
3 |
+
"version": "3.11.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "LAPACK - Linear Algebra PACKage",
|
6 |
+
"homepage": "http://www.netlib.org/lapack/",
|
7 |
+
"license": "BSD-3-Clause-Open-MPI",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "vcpkg-gfortran",
|
19 |
+
"platform": "windows"
|
20 |
+
}
|
21 |
+
],
|
22 |
+
"default-features": [
|
23 |
+
"blas-select"
|
24 |
+
],
|
25 |
+
"features": {
|
26 |
+
"blas-select": {
|
27 |
+
"description": "Use external optimized BLAS",
|
28 |
+
"dependencies": [
|
29 |
+
{
|
30 |
+
"name": "lapack-reference",
|
31 |
+
"default-features": false,
|
32 |
+
"features": [
|
33 |
+
"noblas"
|
34 |
+
],
|
35 |
+
"platform": "!windows | !static"
|
36 |
+
}
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"cblas": {
|
40 |
+
"description": "Builds CBLAS"
|
41 |
+
},
|
42 |
+
"noblas": {
|
43 |
+
"description": "Use external optimized BLAS",
|
44 |
+
"dependencies": [
|
45 |
+
"blas"
|
46 |
+
]
|
47 |
+
}
|
48 |
+
}
|
49 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libdivide/no-werror.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 7800a13..f01a139 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -15,10 +15,10 @@ include(CMakeSanitize)
|
6 |
+
|
7 |
+
# Maximum warnings level & warnings as error
|
8 |
+
add_compile_options(
|
9 |
+
- "$<$<CXX_COMPILER_ID:MSVC>:/W4;/WX>"
|
10 |
+
- "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic;-Werror>"
|
11 |
+
- "$<$<CXX_COMPILER_ID:Clang>:-Wall;-Wextra;-pedantic;-Werror>"
|
12 |
+
- "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic;-Werror>"
|
13 |
+
+ "$<$<CXX_COMPILER_ID:MSVC>:/W4>"
|
14 |
+
+ "$<$<CXX_COMPILER_ID:GNU>:-Wall;-Wextra;-pedantic>"
|
15 |
+
+ "$<$<CXX_COMPILER_ID:Clang>:-Wall;-Wextra;-pedantic>"
|
16 |
+
+ "$<$<CXX_COMPILER_ID:AppleClang>:-Wall;-Wextra;-pedantic>"
|
17 |
+
)
|
18 |
+
|
19 |
+
# Build options ################################################
|
cc-multilingual-main/cc_net/vcpkg/ports/libdivide/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ridiculousfish/libdivide
|
4 |
+
REF 5.0
|
5 |
+
SHA512 89581efab63a0668405196d4d8188e03f3b87027e9014ef7238e1d79fe369d8abbca0e44b00cf02b00be29c272feb34c9b9290313596adbef9b46ae0715c29dd
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
no-werror.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
test BUILD_TESTS
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
${FEATURE_OPTIONS}
|
20 |
+
-DLIBDIVIDE_SSE2=OFF
|
21 |
+
-DLIBDIVIDE_AVX2=OFF
|
22 |
+
-DLIBDIVIDE_AVX512=OFF
|
23 |
+
-DLIBDIVIDE_NEON=OFF
|
24 |
+
-DENABLE_VECTOR_EXTENSIONS=OFF
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
|
29 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
33 |
+
|
34 |
+
# Handle copyright
|
35 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/libdivide/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libdivide",
|
3 |
+
"version": "5.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "libdivide.h is a header-only C/C++ library for optimizing integer division.",
|
6 |
+
"homepage": "https://github.com/ridiculousfish/libdivide",
|
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 test"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libxdmcp/configure.ac.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index 7aedf3424..43ab8dbaf 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -56,7 +56,7 @@ AC_PROG_LN_S
|
6 |
+
AC_SEARCH_LIBS([recvfrom],[socket])
|
7 |
+
|
8 |
+
case $host_os in
|
9 |
+
- *mingw*)
|
10 |
+
+ *mingw* | *msys* )
|
11 |
+
AC_CHECK_LIB([ws2_32],[main])
|
12 |
+
;;
|
13 |
+
*)
|
cc-multilingual-main/cc_net/vcpkg/ports/libxdmcp/portfile.cmake
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#SET(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled) # this is a lie but the lib has a different name than the dll
|
2 |
+
if(NOT X_VCPKG_FORCE_VCPKG_X_LIBRARIES AND NOT VCPKG_TARGET_IS_WINDOWS)
|
3 |
+
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")
|
4 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
5 |
+
else()
|
6 |
+
vcpkg_from_gitlab(
|
7 |
+
GITLAB_URL https://gitlab.freedesktop.org/xorg
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO lib/libxdmcp
|
10 |
+
REF 618b3ba5f826d930df2ca6a6a0ce212fa75cef42 # 1.1.3
|
11 |
+
SHA512 f8b035fa95f6948cc6bac69bfcc33498cd65db73c62aadee714bce371d61c50f283c45d1a3f43397a96b3c956b41dfe94355e94e33764760b29bf98ba8dfebe2
|
12 |
+
HEAD_REF master
|
13 |
+
PATCHES configure.ac.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
set(ENV{ACLOCAL} "aclocal -I \"${CURRENT_INSTALLED_DIR}/share/xorg/aclocal/\"")
|
17 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
18 |
+
set(OPTIONS --disable-dependency-tracking)
|
19 |
+
string(APPEND VCPKG_C_FLAGS "/showIncludes ")
|
20 |
+
string(APPEND VCPKG_CXX_FLAGS "/showIncludes ")
|
21 |
+
endif()
|
22 |
+
vcpkg_configure_make(
|
23 |
+
SOURCE_PATH ${SOURCE_PATH}
|
24 |
+
AUTOCONFIG
|
25 |
+
OPTIONS ${OPTIONS} --enable-unit-tests=no
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_make()
|
29 |
+
vcpkg_fixup_pkgconfig()
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
33 |
+
|
34 |
+
# Handle copyright
|
35 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
36 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libxdmcp/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libxdmcp",
|
3 |
+
"version": "1.1.3",
|
4 |
+
"description": "X Display Manager Control Protocol library",
|
5 |
+
"homepage": "https://gitlab.freedesktop.org/xorg/lib/libxdmcp",
|
6 |
+
"license": "MIT-open-group",
|
7 |
+
"dependencies": [
|
8 |
+
"bzip2",
|
9 |
+
"xorg-macros",
|
10 |
+
"xproto"
|
11 |
+
]
|
12 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mman/mman-static.patch
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 4696ad4..a72bbce 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -8,6 +8,10 @@ option (BUILD_TESTS "tests?" OFF)
|
6 |
+
set (headers mman.h)
|
7 |
+
set (sources mman.c)
|
8 |
+
|
9 |
+
+if(NOT BUILD_SHARED_LIBS)
|
10 |
+
+ add_definitions(-DMMANSHARED_EXPORT=)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
add_library (mman ${sources})
|
14 |
+
|
15 |
+
install (TARGETS mman RUNTIME DESTINATION bin
|
16 |
+
diff --git a/mman.h b/mman.h
|
17 |
+
index 4065bc6..435ea26 100644
|
18 |
+
--- a/mman.h
|
19 |
+
+++ b/mman.h
|
20 |
+
@@ -15,11 +15,13 @@
|
21 |
+
#include <_mingw.h>
|
22 |
+
#endif
|
23 |
+
|
24 |
+
+#if !defined(MMANSHARED_EXPORT)
|
25 |
+
#if defined(MMAN_LIBRARY)
|
26 |
+
#define MMANSHARED_EXPORT __declspec(dllexport)
|
27 |
+
#else
|
28 |
+
#define MMANSHARED_EXPORT __declspec(dllimport)
|
29 |
+
#endif
|
30 |
+
+#endif
|
31 |
+
|
32 |
+
/* Determine offset type */
|
33 |
+
#include <stdint.h>
|
cc-multilingual-main/cc_net/vcpkg/ports/mman/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The mman.h header deployed by mman is placed in mman/sys/mman.h to avoid accidental inclusion.
|
2 |
+
|
3 |
+
find_path(MMAN_DIR NAMES sys/mman.h PATH_SUFFIXES mman)
|
4 |
+
target_include_directories(main PRIVATE ${MMAN_DIR})
|
cc-multilingual-main/cc_net/vcpkg/ports/mman/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mman",
|
3 |
+
"version-string": "git-f5ff813",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A light implementation of the mmap functions for MinGW.",
|
6 |
+
"homepage": "https://github.com/witwall/mman-win32",
|
7 |
+
"supports": "windows",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/muparser/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO beltoforion/muparser
|
4 |
+
REF 59e0ce1e0d35d42713af67788f19797945d81364 # v2.3.4
|
5 |
+
SHA512 4d0261b9c155b2697ce7222d87ff19be781919e93154bf69455ce36432f66abe2a1ea80a59f7526990f7859f78259014ef56702aa5c7db2ac8c28c8e9491e1f5
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DENABLE_SAMPLES=OFF
|
13 |
+
-DENABLE_OPENMP=OFF
|
14 |
+
-DENABLE_WIDE_CHAR=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/muparser")
|
21 |
+
vcpkg_fixup_pkgconfig()
|
22 |
+
|
23 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDef.h" "#if defined(_UNICODE)" "#if 0")
|
24 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserDLL.h" "#ifndef _UNICODE" "#if 1")
|
25 |
+
|
26 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
27 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 0")
|
28 |
+
else()
|
29 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/muParserFixes.h" "#ifndef MUPARSER_STATIC" "#if 1")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
33 |
+
|
34 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/muparser/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "muparser",
|
3 |
+
"version": "2.3.4",
|
4 |
+
"description": "Fast math parser library",
|
5 |
+
"homepage": "https://github.com/beltoforion/muparser",
|
6 |
+
"license": "BSD-2-Clause",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|