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/asmjit/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/brpc/fix-boost-ptr.patch +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/brpc/fix-build.patch +193 -0
- cc-multilingual-main/cc_net/vcpkg/ports/brpc/fix-glog.patch +90 -0
- cc-multilingual-main/cc_net/vcpkg/ports/brpc/portfile.cmake +33 -0
- cc-multilingual-main/cc_net/vcpkg/ports/brpc/vcpkg.json +33 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cxxgraph/portfile.cmake +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ebml/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ebml/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fcl/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ftxui/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ftxui/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/guetzli/CMakeLists.txt +44 -0
- cc-multilingual-main/cc_net/vcpkg/ports/guetzli/butteraugli.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/guetzli/portfile.cmake +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/guetzli/vcpkg.json +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-fuel-tools8/portfile.cmake +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-fuel-tools8/remove_docs.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-fuel-tools8/vcpkg.json +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ignition-tools/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/CMakeLists.txt +250 -0
- cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/LICENSE.txt +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/fix-encoding.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/fix-osx-compilation.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/portfile.cmake +56 -0
- cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/vcpkg.json +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/Makefile +54 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/android/unversioned_so.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/build-msvc.cmake +80 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/libpq.props.in +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/portfile.cmake +160 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/fix-configure.patch +79 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/installdirs.patch +48 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/mingw-install.patch +36 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/no-server-tools.patch +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/python.patch +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/single-linkage.patch +56 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/vcpkg-cmake-wrapper.cmake +72 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/vcpkg-libs.props.in +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/vcpkg.json +195 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/macro-def.patch +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/msbuild.patch +398 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/spin_delay.patch +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/win_bison_flex.patch +42 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsamplerate/portfile.cmake +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libuvc/build_fix.patch +45 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libuvc/portfile.cmake +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libuvc/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/licensepp/0001-use-old-pem-pack.patch +29 -0
cc-multilingual-main/cc_net/vcpkg/ports/asmjit/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "asmjit",
|
3 |
+
"version-date": "2023-03-25",
|
4 |
+
"description": "Complete x86/x64 JIT and Remote Assembler for C++",
|
5 |
+
"homepage": "https://github.com/asmjit/asmjit",
|
6 |
+
"supports": "!arm",
|
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/brpc/fix-boost-ptr.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/brpc/policy/thrift_protocol.cpp b/src/brpc/policy/thrift_protocol.cpp
|
2 |
+
index 9871c01..269cfe1 100644
|
3 |
+
--- a/src/brpc/policy/thrift_protocol.cpp
|
4 |
+
+++ b/src/brpc/policy/thrift_protocol.cpp
|
5 |
+
@@ -45,8 +45,7 @@
|
6 |
+
#if defined(_THRIFT_STDCXX_H_)
|
7 |
+
# define THRIFT_STDCXX apache::thrift::stdcxx
|
8 |
+
#else
|
9 |
+
- # define THRIFT_STDCXX boost
|
10 |
+
- # include <boost/make_shared.hpp>
|
11 |
+
+ # define THRIFT_STDCXX std
|
12 |
+
#endif
|
13 |
+
#endif
|
14 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/brpc/fix-build.patch
ADDED
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f364cd13..f4add26d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -66,7 +66,8 @@ endif()
|
6 |
+
|
7 |
+
if(WITH_THRIFT)
|
8 |
+
set(THRIFT_CPP_FLAG "-DENABLE_THRIFT_FRAMED_PROTOCOL")
|
9 |
+
- set(THRIFT_LIB "thrift")
|
10 |
+
+ find_package(Thrift CONFIG REQUIRED)
|
11 |
+
+ set(THRIFT_LIB "thrift::thrift")
|
12 |
+
endif()
|
13 |
+
|
14 |
+
set(WITH_RDMA_VAL "0")
|
15 |
+
@@ -150,11 +151,15 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
16 |
+
endif()
|
17 |
+
endif()
|
18 |
+
|
19 |
+
-find_package(Protobuf REQUIRED)
|
20 |
+
+find_package(protobuf CONFIG REQUIRED)
|
21 |
+
+get_target_property(PROTOBUF_INCLUDE_DIR protobuf::libprotobuf INTERFACE_INCLUDE_DIRECTORIES)
|
22 |
+
+set(PROTOBUF_LIBRARIES protobuf::libprotobuf)
|
23 |
+
find_package(Threads REQUIRED)
|
24 |
+
+find_package(ZLIB REQUIRED)
|
25 |
+
|
26 |
+
+find_package(leveldb CONFIG REQUIRED)
|
27 |
+
find_path(LEVELDB_INCLUDE_PATH NAMES leveldb/db.h)
|
28 |
+
-find_library(LEVELDB_LIB NAMES leveldb)
|
29 |
+
+set(LEVELDB_LIB leveldb::leveldb)
|
30 |
+
if ((NOT LEVELDB_INCLUDE_PATH) OR (NOT LEVELDB_LIB))
|
31 |
+
message(FATAL_ERROR "Fail to find leveldb")
|
32 |
+
endif()
|
33 |
+
@@ -169,8 +174,9 @@ if(WITH_SNAPPY)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
if(WITH_GLOG)
|
37 |
+
- find_path(GLOG_INCLUDE_PATH NAMES glog/logging.h)
|
38 |
+
- find_library(GLOG_LIB NAMES glog)
|
39 |
+
+ find_package(glog CONFIG REQUIRED)
|
40 |
+
+ get_target_property(GLOG_INCLUDE_PATH glog::glog INTERFACE_INCLUDE_DIRECTORIES)
|
41 |
+
+ set(GLOG_LIB glog::glog)
|
42 |
+
if((NOT GLOG_INCLUDE_PATH) OR (NOT GLOG_LIB))
|
43 |
+
message(FATAL_ERROR "Fail to find glog")
|
44 |
+
endif()
|
45 |
+
@@ -197,7 +203,7 @@ if(WITH_RDMA)
|
46 |
+
endif()
|
47 |
+
endif()
|
48 |
+
|
49 |
+
-find_library(PROTOC_LIB NAMES protoc)
|
50 |
+
+set(PROTOC_LIB "protobuf::libprotoc")
|
51 |
+
if(NOT PROTOC_LIB)
|
52 |
+
message(FATAL_ERROR "Fail to find protoc lib")
|
53 |
+
endif()
|
54 |
+
@@ -208,7 +214,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
55 |
+
)
|
56 |
+
endif()
|
57 |
+
|
58 |
+
-find_package(OpenSSL)
|
59 |
+
+find_package(OpenSSL REQUIRED)
|
60 |
+
|
61 |
+
include_directories(
|
62 |
+
${GFLAGS_INCLUDE_PATH}
|
63 |
+
@@ -223,11 +229,11 @@ set(DYNAMIC_LIB
|
64 |
+
${LEVELDB_LIB}
|
65 |
+
${PROTOC_LIB}
|
66 |
+
${CMAKE_THREAD_LIBS_INIT}
|
67 |
+
- ${THRIFT_LIB}
|
68 |
+
- ${THRIFTNB_LIB}
|
69 |
+
${OPENSSL_CRYPTO_LIBRARY}
|
70 |
+
+ ${OPENSSL_SSL_LIBRARY}
|
71 |
+
+ ${THRIFT_LIB}
|
72 |
+
dl
|
73 |
+
- z)
|
74 |
+
+ ZLIB::ZLIB)
|
75 |
+
|
76 |
+
if(WITH_MESALINK)
|
77 |
+
list(APPEND DYNAMIC_LIB ${MESALINK_LIB})
|
78 |
+
diff --git a/cmake/FindGFLAGS.cmake b/cmake/FindGFLAGS.cmake
|
79 |
+
index dfad5fd8..8423d55a 100644
|
80 |
+
--- a/cmake/FindGFLAGS.cmake
|
81 |
+
+++ b/cmake/FindGFLAGS.cmake
|
82 |
+
@@ -24,7 +24,9 @@ if (GFLAGS_STATIC)
|
83 |
+
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
84 |
+
endif (WIN32)
|
85 |
+
endif (GFLAGS_STATIC)
|
86 |
+
-find_library(GFLAGS_LIBRARY NAMES gflags libgflags)
|
87 |
+
+find_package(gflags CONFIG REQUIRED)
|
88 |
+
+set(GFLAGS_LIBRARY gflags::gflags)
|
89 |
+
+get_target_property(GFLAGS_INCLUDE_PATH gflags::gflags INTERFACE_INCLUDE_DIRECTORIES)
|
90 |
+
if(GFLAGS_INCLUDE_PATH AND GFLAGS_LIBRARY)
|
91 |
+
set(GFLAGS_FOUND TRUE)
|
92 |
+
endif(GFLAGS_INCLUDE_PATH AND GFLAGS_LIBRARY)
|
93 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
94 |
+
index fbcc7cc5..868270ea 100644
|
95 |
+
--- a/src/CMakeLists.txt
|
96 |
+
+++ b/src/CMakeLists.txt
|
97 |
+
@@ -31,16 +31,24 @@ add_dependencies(SOURCES_LIB PROTO_LIB)
|
98 |
+
set_property(TARGET ${SOURCES_LIB} PROPERTY POSITION_INDEPENDENT_CODE 1)
|
99 |
+
set_property(TARGET ${BUTIL_LIB} PROPERTY POSITION_INDEPENDENT_CODE 1)
|
100 |
+
|
101 |
+
+if(NOT BUILD_SHARED_LIBS)
|
102 |
+
add_library(brpc-static STATIC $<TARGET_OBJECTS:BUTIL_LIB>
|
103 |
+
$<TARGET_OBJECTS:SOURCES_LIB>
|
104 |
+
$<TARGET_OBJECTS:PROTO_LIB>)
|
105 |
+
|
106 |
+
-if(BRPC_WITH_THRIFT)
|
107 |
+
- target_link_libraries(brpc-static thrift)
|
108 |
+
+if(WITH_THRIFT)
|
109 |
+
+ target_link_libraries(brpc-static ${THRIFT_LIB})
|
110 |
+
endif()
|
111 |
+
|
112 |
+
+target_link_libraries(brpc-static PUBLIC ${DYNAMIC_LIB})
|
113 |
+
+if(BRPC_WITH_GLOG)
|
114 |
+
+ target_link_libraries(brpc-static ${GLOG_LIB})
|
115 |
+
+endif()
|
116 |
+
+target_include_directories(brpc-static PUBLIC $<INSTALL_INTERFACE:include>)
|
117 |
+
SET_TARGET_PROPERTIES(brpc-static PROPERTIES OUTPUT_NAME brpc CLEAN_DIRECT_OUTPUT 1)
|
118 |
+
|
119 |
+
+endif()
|
120 |
+
+if(0)
|
121 |
+
# for protoc-gen-mcpack
|
122 |
+
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/output/bin)
|
123 |
+
|
124 |
+
@@ -49,35 +57,63 @@ set(protoc_gen_mcpack_SOURCES
|
125 |
+
)
|
126 |
+
|
127 |
+
add_executable(protoc-gen-mcpack ${protoc_gen_mcpack_SOURCES})
|
128 |
+
+endif()
|
129 |
+
|
130 |
+
if(BUILD_SHARED_LIBS)
|
131 |
+
add_library(brpc-shared SHARED $<TARGET_OBJECTS:BUTIL_LIB>
|
132 |
+
$<TARGET_OBJECTS:SOURCES_LIB>
|
133 |
+
$<TARGET_OBJECTS:PROTO_LIB>)
|
134 |
+
target_link_libraries(brpc-shared ${DYNAMIC_LIB})
|
135 |
+
+ target_include_directories(brpc-shared PUBLIC $<INSTALL_INTERFACE:include>)
|
136 |
+
if(BRPC_WITH_GLOG)
|
137 |
+
target_link_libraries(brpc-shared ${GLOG_LIB})
|
138 |
+
endif()
|
139 |
+
- if(BRPC_WITH_THRIFT)
|
140 |
+
- target_link_libraries(brpc-shared thrift)
|
141 |
+
+ if(WITH_THRIFT)
|
142 |
+
+ target_link_libraries(brpc-shared ${THRIFT_LIB})
|
143 |
+
endif()
|
144 |
+
SET_TARGET_PROPERTIES(brpc-shared PROPERTIES OUTPUT_NAME brpc CLEAN_DIRECT_OUTPUT 1)
|
145 |
+
-
|
146 |
+
+ if(0)
|
147 |
+
target_link_libraries(protoc-gen-mcpack brpc-shared ${DYNAMIC_LIB} pthread)
|
148 |
+
-
|
149 |
+
- install(TARGETS brpc-shared
|
150 |
+
+ endif()
|
151 |
+
+ install(TARGETS brpc-shared EXPORT unofficial-brpcTargets
|
152 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
153 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
154 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
155 |
+
)
|
156 |
+
else()
|
157 |
+
+if(0)
|
158 |
+
target_link_libraries(protoc-gen-mcpack brpc-static ${DYNAMIC_LIB} pthread)
|
159 |
+
endif()
|
160 |
+
+endif()
|
161 |
+
|
162 |
+
|
163 |
+
|
164 |
+
-install(TARGETS brpc-static
|
165 |
+
+if(NOT BUILD_SHARED_LIBS)
|
166 |
+
+install(TARGETS brpc-static EXPORT unofficial-brpcTargets
|
167 |
+
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
168 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
169 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
170 |
+
)
|
171 |
+
+endif()
|
172 |
+
+
|
173 |
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-brpc-config.cmake"
|
174 |
+
+[[include(CMakeFindDependencyMacro)
|
175 |
+
+find_dependency(OpenSSL)
|
176 |
+
+find_dependency(Threads)
|
177 |
+
+find_dependency(ZLIB)
|
178 |
+
+find_dependency(gflags CONFIG)
|
179 |
+
+find_dependency(protobuf CONFIG)
|
180 |
+
+find_dependency(leveldb CONFIG)
|
181 |
+
+find_dependency(Thrift CONFIG)
|
182 |
+
+find_dependency(glog CONFIG)
|
183 |
+
+file(GLOB TARGET_FILES "${CMAKE_CURRENT_LIST_DIR}/unofficial-brpcTargets.cmake")
|
184 |
+
+foreach (TARGET_FILE ${TARGET_FILES})
|
185 |
+
+ include("${TARGET_FILE}")
|
186 |
+
+endforeach()
|
187 |
+
+]])
|
188 |
+
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-brpc-config.cmake" DESTINATION share/unofficial-brpc)
|
189 |
+
+
|
190 |
+
+install(EXPORT unofficial-brpcTargets
|
191 |
+
+ NAMESPACE unofficial::brpc::
|
192 |
+
+ DESTINATION share/unofficial-brpc
|
193 |
+
+)
|
cc-multilingual-main/cc_net/vcpkg/ports/brpc/fix-glog.patch
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f4add26d..b87e8455 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -80,9 +80,10 @@ include(GNUInstallDirs)
|
6 |
+
configure_file(${PROJECT_SOURCE_DIR}/config.h.in ${PROJECT_SOURCE_DIR}/src/butil/config.h @ONLY)
|
7 |
+
|
8 |
+
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
|
9 |
+
-
|
10 |
+
-find_package(GFLAGS REQUIRED)
|
11 |
+
-
|
12 |
+
+set(GFLAGS_USE_TARGET_NAMESPACE ON)
|
13 |
+
+find_package(gflags CONFIG REQUIRED)
|
14 |
+
+set(GFLAGS_LIBRARY gflags::gflags)
|
15 |
+
+if(0)
|
16 |
+
execute_process(
|
17 |
+
COMMAND bash -c "grep \"namespace [_A-Za-z0-9]\\+ {\" ${GFLAGS_INCLUDE_PATH}/gflags/gflags_declare.h | head -1 | awk '{print $2}' | tr -d '\n'"
|
18 |
+
OUTPUT_VARIABLE GFLAGS_NS
|
19 |
+
@@ -93,6 +94,8 @@ if(${GFLAGS_NS} STREQUAL "GFLAGS_NAMESPACE")
|
20 |
+
OUTPUT_VARIABLE GFLAGS_NS
|
21 |
+
)
|
22 |
+
endif()
|
23 |
+
+endif()
|
24 |
+
+set(GFLAGS_NS "google")
|
25 |
+
|
26 |
+
include_directories(
|
27 |
+
${PROJECT_SOURCE_DIR}/src
|
28 |
+
@@ -122,21 +125,21 @@ set(CMAKE_CPP_FLAGS "${CMAKE_CPP_FLAGS} ${DEBUG_SYMBOL} ${THRIFT_CPP_FLAG}")
|
29 |
+
set(CMAKE_CXX_FLAGS "${CMAKE_CPP_FLAGS} -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-invalid-offsetof -Wno-unused-parameter -fno-omit-frame-pointer")
|
30 |
+
set(CMAKE_C_FLAGS "${CMAKE_CPP_FLAGS} -O2 -pipe -Wall -W -fPIC -fstrict-aliasing -Wno-unused-parameter -fno-omit-frame-pointer")
|
31 |
+
|
32 |
+
-macro(use_cxx11)
|
33 |
+
+macro(use_cxx14)
|
34 |
+
if(CMAKE_VERSION VERSION_LESS "3.1.3")
|
35 |
+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
36 |
+
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
37 |
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
38 |
+
endif()
|
39 |
+
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
40 |
+
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
41 |
+
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
42 |
+
endif()
|
43 |
+
else()
|
44 |
+
- set(CMAKE_CXX_STANDARD 11)
|
45 |
+
+ set(CMAKE_CXX_STANDARD 14)
|
46 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
47 |
+
endif()
|
48 |
+
-endmacro(use_cxx11)
|
49 |
+
+endmacro(use_cxx14)
|
50 |
+
|
51 |
+
-use_cxx11()
|
52 |
+
+use_cxx14()
|
53 |
+
|
54 |
+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
55 |
+
#required by butil/crc32.cc to boost performance for 10x
|
56 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
57 |
+
index 868270ea..a70ad23f 100644
|
58 |
+
--- a/src/CMakeLists.txt
|
59 |
+
+++ b/src/CMakeLists.txt
|
60 |
+
@@ -31,6 +31,10 @@ add_dependencies(SOURCES_LIB PROTO_LIB)
|
61 |
+
set_property(TARGET ${SOURCES_LIB} PROPERTY POSITION_INDEPENDENT_CODE 1)
|
62 |
+
set_property(TARGET ${BUTIL_LIB} PROPERTY POSITION_INDEPENDENT_CODE 1)
|
63 |
+
|
64 |
+
+if(BRPC_WITH_GLOG)
|
65 |
+
+ target_link_libraries(BUTIL_LIB PUBLIC ${GLOG_LIB})
|
66 |
+
+ target_link_libraries(SOURCES_LIB PUBLIC ${GLOG_LIB})
|
67 |
+
+endif()
|
68 |
+
if(NOT BUILD_SHARED_LIBS)
|
69 |
+
add_library(brpc-static STATIC $<TARGET_OBJECTS:BUTIL_LIB>
|
70 |
+
$<TARGET_OBJECTS:SOURCES_LIB>
|
71 |
+
@@ -41,9 +45,6 @@ if(WITH_THRIFT)
|
72 |
+
endif()
|
73 |
+
|
74 |
+
target_link_libraries(brpc-static PUBLIC ${DYNAMIC_LIB})
|
75 |
+
-if(BRPC_WITH_GLOG)
|
76 |
+
- target_link_libraries(brpc-static ${GLOG_LIB})
|
77 |
+
-endif()
|
78 |
+
target_include_directories(brpc-static PUBLIC $<INSTALL_INTERFACE:include>)
|
79 |
+
SET_TARGET_PROPERTIES(brpc-static PROPERTIES OUTPUT_NAME brpc CLEAN_DIRECT_OUTPUT 1)
|
80 |
+
|
81 |
+
@@ -65,9 +66,6 @@ if(BUILD_SHARED_LIBS)
|
82 |
+
$<TARGET_OBJECTS:PROTO_LIB>)
|
83 |
+
target_link_libraries(brpc-shared ${DYNAMIC_LIB})
|
84 |
+
target_include_directories(brpc-shared PUBLIC $<INSTALL_INTERFACE:include>)
|
85 |
+
- if(BRPC_WITH_GLOG)
|
86 |
+
- target_link_libraries(brpc-shared ${GLOG_LIB})
|
87 |
+
- endif()
|
88 |
+
if(WITH_THRIFT)
|
89 |
+
target_link_libraries(brpc-shared ${THRIFT_LIB})
|
90 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/brpc/portfile.cmake
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO apache/incubator-brpc
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 da0004b7b50cc48da018627c9361ae62b006bb7cd2af53a5cfa1601aab7ad31174d37778a42809bdf2e0f2021a860dcbb02e2c3c938eae6c02808267c3b85025
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-build.patch
|
9 |
+
fix-boost-ptr.patch
|
10 |
+
fix-glog.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
DISABLE_PARALLEL_CONFIGURE
|
16 |
+
OPTIONS
|
17 |
+
-DBUILD_BRPC_TOOLS=OFF
|
18 |
+
-DWITH_THRIFT=ON
|
19 |
+
-DWITH_GLOG=ON
|
20 |
+
-DDOWNLOAD_GTEST=OFF
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-brpc CONFIG_PATH share/unofficial-brpc)
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/butil/third_party/superfasthash")
|
28 |
+
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
32 |
+
|
33 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/brpc/vcpkg.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "brpc",
|
3 |
+
"version": "1.6.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Industrial-grade RPC framework used throughout Baidu, with 1,000,000+ instances and thousands kinds of services, called \"baidu-rpc\" inside Baidu.",
|
6 |
+
"homepage": "https://github.com/apache/incubator-brpc",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"supports": "!windows & !(arm & android)",
|
9 |
+
"dependencies": [
|
10 |
+
"gflags",
|
11 |
+
"glog",
|
12 |
+
{
|
13 |
+
"name": "leveldb",
|
14 |
+
"default-features": false
|
15 |
+
},
|
16 |
+
"openssl",
|
17 |
+
{
|
18 |
+
"name": "protobuf",
|
19 |
+
"features": [
|
20 |
+
"zlib"
|
21 |
+
]
|
22 |
+
},
|
23 |
+
"thrift",
|
24 |
+
{
|
25 |
+
"name": "vcpkg-cmake",
|
26 |
+
"host": true
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"name": "vcpkg-cmake-config",
|
30 |
+
"host": true
|
31 |
+
}
|
32 |
+
]
|
33 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cxxgraph/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VCPKG_BUILD_TYPE release) # Header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ZigRazor/CXXGraph
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 a4409c81132e6c7e34022c54d9a57b965970aa8e1fcd97b9f916334c1d480674a526e7d5ad727ab652e4842083249dea89de519b104c1f9f205423eabd3c2338
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
12 |
+
# cxxgraph provides no targets and is a header only lib designed to be copied to include dir
|
13 |
+
file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/cxxgraph")
|
14 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/cxxgraph" RENAME copyright)
|
15 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
16 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/ebml/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Matroska-Org/libebml
|
4 |
+
REF "release-${VERSION}"
|
5 |
+
SHA512 284da9b7a1415585bbcfffc87101c63f1dd242bb09d88a731597127732a2f8064fd35e0a718fdcde464714b71e3f7dcc8285f291889629aba6997c38e0575dfb
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS -DDISABLE_PKGCONFIG=1
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/EBML)
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
19 |
+
|
20 |
+
# Handle copyright
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.LGPL" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/ebml/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ebml",
|
3 |
+
"version": "1.4.5",
|
4 |
+
"description": "A C++ library to parse EBML files",
|
5 |
+
"homepage": "https://github.com/Matroska-Org/libebml",
|
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/fcl/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "fcl",
|
3 |
+
"version": "0.7.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "a library for performing three types of proximity queries on a pair of geometric models composed of triangles",
|
6 |
+
"homepage": "https://github.com/flexible-collision-library/fcl",
|
7 |
+
"dependencies": [
|
8 |
+
"ccd",
|
9 |
+
"eigen3",
|
10 |
+
"octomap",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ftxui/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ArthurSonzogni/FTXUI
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 be5ed7f2b3c90a7de874115a131c75c69ad9dd6db4c3bc0cfd7036cfe449b8d16af3df8f1aa1bcb057347bd726837e3f1c42e30a06cf3ad34b50e7bd26ba4883
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
OPTIONS
|
14 |
+
-DFTXUI_BUILD_EXAMPLES=OFF
|
15 |
+
-DFTXUI_ENABLE_INSTALL=ON
|
16 |
+
-DFTXUI_BUILD_TESTS=OFF
|
17 |
+
-DFTXUI_BUILD_DOCS=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
|
22 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
23 |
+
|
24 |
+
vcpkg_fixup_pkgconfig()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
27 |
+
|
28 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/ftxui/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ftxui",
|
3 |
+
"version-semver": "5.0.0",
|
4 |
+
"description": "C++ Functional Terminal User Interface",
|
5 |
+
"homepage": "https://github.com/ArthurSonzogni/FTXUI",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/guetzli/CMakeLists.txt
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
project(guetzli)
|
3 |
+
|
4 |
+
if(MSVC)
|
5 |
+
add_compile_options(/W3 /wd4005 /wd4996 /wd4018 -D_CRT_SECURE_NO_WARNINGS -DNOMINMAX)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
find_path(butteraugli_include butteraugli/butteraugli.h)
|
9 |
+
find_library(butteraugli_library NAMES butteraugli_lib)
|
10 |
+
find_package(PNG REQUIRED)
|
11 |
+
|
12 |
+
include_directories("." ${PNG_INCLUDE_DIRS} ${butteraugli_include})
|
13 |
+
|
14 |
+
file(GLOB guetzli_srcs "guetzli/*.cc")
|
15 |
+
file(GLOB guetzli_includes "guetzli/*.h")
|
16 |
+
list(REMOVE_ITEM guetzli_srcs "guetzli/guetzli.cc")
|
17 |
+
|
18 |
+
add_library(guetzli_lib ${guetzli_srcs})
|
19 |
+
|
20 |
+
target_compile_features(guetzli_lib PUBLIC cxx_std_11)
|
21 |
+
|
22 |
+
add_executable(guetzli guetzli/guetzli.cc)
|
23 |
+
|
24 |
+
target_link_libraries(guetzli_lib ${butteraugli_library} ${PNG_LIBRARIES})
|
25 |
+
target_link_libraries(guetzli guetzli_lib ${butteraugli_library} ${PNG_LIBRARIES})
|
26 |
+
|
27 |
+
|
28 |
+
install(
|
29 |
+
TARGETS guetzli_lib
|
30 |
+
RUNTIME DESTINATION bin
|
31 |
+
LIBRARY DESTINATION lib
|
32 |
+
ARCHIVE DESTINATION lib
|
33 |
+
)
|
34 |
+
|
35 |
+
if(NOT DISABLE_INSTALL_TOOLS)
|
36 |
+
install (
|
37 |
+
TARGETS guetzli
|
38 |
+
RUNTIME DESTINATION tools/guetzli
|
39 |
+
)
|
40 |
+
endif()
|
41 |
+
|
42 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
43 |
+
install(FILES ${guetzli_includes} DESTINATION include/guetzli)
|
44 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/guetzli/butteraugli.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/guetzli/butteraugli_comparator.cc b/guetzli/butteraugli_comparator.cc
|
2 |
+
index 142c203..f4e710d 100644
|
3 |
+
--- a/guetzli/butteraugli_comparator.cc
|
4 |
+
+++ b/guetzli/butteraugli_comparator.cc
|
5 |
+
@@ -56,7 +56,7 @@ ButteraugliComparator::ButteraugliComparator(const int width, const int height,
|
6 |
+
height_(height),
|
7 |
+
target_distance_(target_distance),
|
8 |
+
rgb_orig_(*rgb),
|
9 |
+
- comparator_(LinearRgb(width_, height_, *rgb)),
|
10 |
+
+ comparator_(LinearRgb(width_, height_, *rgb), 1.0f),
|
11 |
+
distance_(0.0),
|
12 |
+
stats_(stats) {}
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/guetzli/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/guetzli
|
6 |
+
REF 214f2bb42abf5a577c079d00add5d6cc470620d3 # accessed on 2020-09-14
|
7 |
+
SHA512 841cb14df4d27d3227e0ef8ecff6bd8a222d791abfc8fb593bf68996ed8861a9cc483f1a9b140023a247a5b1a350197601ca75a990507aaafa1b2dd03f8577d0
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES butteraugli.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON -DDISABLE_INSTALL_TOOLS=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/guetzli")
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/guetzli" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/guetzli/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "guetzli",
|
3 |
+
"version-date": "2020-09-14",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Perceptual JPEG encoder",
|
6 |
+
"homepage": "https://github.com/google/guetzli",
|
7 |
+
"dependencies": [
|
8 |
+
"butteraugli",
|
9 |
+
"libpng",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-fuel-tools8/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(PACKAGE_NAME fuel-tools)
|
2 |
+
|
3 |
+
ignition_modular_library(
|
4 |
+
NAME ${PACKAGE_NAME}
|
5 |
+
REF ${PORT}_${VERSION}
|
6 |
+
VERSION ${VERSION}
|
7 |
+
SHA512 6a31719441c7ea835007d82b6aea99b10fa124ebad71683b8c1c58c41b435d4801e016464dc30d760cc9464e642dab4ff910375f5244ebf7c565845174e65cbf
|
8 |
+
OPTIONS
|
9 |
+
PATCHES
|
10 |
+
remove_docs.patch
|
11 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-fuel-tools8/remove_docs.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt
|
3 |
+
+++ b/CMakeLists.txt
|
4 |
+
@@ -79,6 +79,8 @@
|
5 |
+
|
6 |
+
+if(0)
|
7 |
+
#============================================================================
|
8 |
+
# gz command line support
|
9 |
+
#============================================================================
|
10 |
+
add_subdirectory(conf)
|
11 |
+
+endif(0)
|
12 |
+
|
13 |
+
@@ -95,7 +95,9 @@
|
14 |
+
|
15 |
+
+if(0)
|
16 |
+
gz_create_docs(
|
17 |
+
API_MAINPAGE_MD "${CMAKE_BINARY_DIR}/api.md"
|
18 |
+
TUTORIALS_MAINPAGE_MD "${CMAKE_BINARY_DIR}/tutorials.md"
|
19 |
+
TAGFILES
|
20 |
+
"${GZ-COMMON_DOXYGEN_TAGFILE} = ${GZ-COMMON_API_URL}"
|
21 |
+
)
|
22 |
+
+endif(0)
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-fuel-tools8/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gz-fuel-tools8",
|
3 |
+
"version": "8.1.0",
|
4 |
+
"description": "Tools for using fuel API to download robot models",
|
5 |
+
"homepage": "https://gazebosim.org/libs/fuel_tools",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
"curl",
|
9 |
+
"gz-cmake3",
|
10 |
+
"gz-common5",
|
11 |
+
"gz-msgs9",
|
12 |
+
{
|
13 |
+
"name": "ignition-modularscripts",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"jsoncpp",
|
17 |
+
"libyaml",
|
18 |
+
"libzip",
|
19 |
+
"tinyxml2"
|
20 |
+
]
|
21 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ignition-tools/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ignition-tools",
|
3 |
+
"version": "1.5.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Gazebo tools provide the ign command line tool that accepts multiple subcommands.",
|
6 |
+
"homepage": "https://gazebosim.org",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"supports": "!(arm & windows) & !uwp",
|
9 |
+
"dependencies": [
|
10 |
+
"backward-cpp",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/CMakeLists.txt
ADDED
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#
|
2 |
+
# Irrlicht 3D engine
|
3 |
+
#
|
4 |
+
cmake_minimum_required(VERSION 3.16)
|
5 |
+
project(Irrlicht LANGUAGES C CXX)
|
6 |
+
|
7 |
+
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
8 |
+
|
9 |
+
# Irrlicht directories
|
10 |
+
# -------------------------------------------------------------------------------------------------
|
11 |
+
set(IRR_SRC_DIR "source/Irrlicht")
|
12 |
+
set(IRR_INC_DIR "include")
|
13 |
+
set(IRR_TOOL_DIR "tools")
|
14 |
+
|
15 |
+
# Options
|
16 |
+
# -------------------------------------------------------------------------------------------------
|
17 |
+
set(DXSDK "")
|
18 |
+
if(DEFINED ENV{DXSDK_DIR})
|
19 |
+
set(DXSDK "$ENV{DXSDK_DIR}")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
set(IRR_UNICODE_PATH 0 CACHE BOOL "Whether to enable unicode path support on windows")
|
23 |
+
set(IRR_FAST_MATH 0 CACHE BOOL "Whether to enable fast maths (at the expense of precision)")
|
24 |
+
set(IRR_SHARED_LIB 1 CACHE BOOL "Whether to generate shared libraries instead of static libraries")
|
25 |
+
set(IRR_DIRECTX_SDK ${DXSDK} CACHE PATH "Path to the DirectX SDK (for DirectX 9, this folder should contain /Include, /Lib)")
|
26 |
+
set(IRR_BUILD_TOOLS 0 CACHE BOOL "Whether to generate the tools")
|
27 |
+
|
28 |
+
# Some helper functions
|
29 |
+
# -------------------------------------------------------------------------------------------------
|
30 |
+
function(glob_c_cpp_sources result folder)
|
31 |
+
file(GLOB res
|
32 |
+
"${folder}/*.c"
|
33 |
+
"${folder}/*.cpp"
|
34 |
+
"${folder}/*.h"
|
35 |
+
"${folder}/*.hpp"
|
36 |
+
"${folder}/*.rc")
|
37 |
+
set(${result} ${res} PARENT_SCOPE)
|
38 |
+
endfunction()
|
39 |
+
|
40 |
+
# Source files
|
41 |
+
# -------------------------------------------------------------------------------------------------
|
42 |
+
glob_c_cpp_sources(IRR_SRC_FILES ${IRR_SRC_DIR})
|
43 |
+
glob_c_cpp_sources(IRR_SRC_FILES_INTERFACE ${IRR_INC_DIR})
|
44 |
+
glob_c_cpp_sources(IRR_SRC_FILES_AESGLADMAN ${IRR_SRC_DIR}/aesGladman)
|
45 |
+
glob_c_cpp_sources(IRR_SRC_FILES_LZMA ${IRR_SRC_DIR}/lzma)
|
46 |
+
|
47 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_FILE_TO_HEADER ${IRR_TOOL_DIR}/FileToHeader/)
|
48 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_GUI_EDITOR ${IRR_TOOL_DIR}/GUIEditor/)
|
49 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_FONT_TOOL ${IRR_TOOL_DIR}/IrrFontTool/newFontTool/)
|
50 |
+
glob_c_cpp_sources(IRR_TOOL_FILES_MESH_CONVERTER ${IRR_TOOL_DIR}/MeshConverter/)
|
51 |
+
|
52 |
+
if(APPLE)
|
53 |
+
file(GLOB IRR_SRC_FILES_OSX
|
54 |
+
"${IRR_SRC_DIR}/MacOSX/*.mm"
|
55 |
+
"${IRR_SRC_DIR}/MacOSX/*.h")
|
56 |
+
|
57 |
+
set(IRR_SRC_FILES ${IRR_SRC_FILES} ${IRR_SRC_FILES_OSX})
|
58 |
+
endif()
|
59 |
+
|
60 |
+
# Group files
|
61 |
+
# -------------------------------------------------------------------------------------------------
|
62 |
+
source_group(Irrlicht\\engine FILES ${IRR_SRC_FILES})
|
63 |
+
source_group(Irrlicht\\interface FILES ${IRR_SRC_FILES_INTERFACE})
|
64 |
+
source_group(Irrlicht\\libs\\aesGladman FILES ${IRR_SRC_FILES_AESGLADMAN})
|
65 |
+
source_group(Irrlicht\\libs\\lzma FILES ${IRR_SRC_FILES_LZMA})
|
66 |
+
|
67 |
+
# Library files
|
68 |
+
# -------------------------------------------------------------------------------------------------
|
69 |
+
find_package(ZLIB REQUIRED)
|
70 |
+
find_package(PNG REQUIRED)
|
71 |
+
find_package(JPEG REQUIRED)
|
72 |
+
find_package(BZip2 REQUIRED)
|
73 |
+
#find_package(LIBLZMA REQUIRED) # LIBLZMA does not export _LzmaDecode
|
74 |
+
|
75 |
+
# Irrlicht target
|
76 |
+
# -------------------------------------------------------------------------------------------------
|
77 |
+
set(IRR_ALL_SRC_FILES
|
78 |
+
${IRR_SRC_FILES}
|
79 |
+
${IRR_SRC_FILES_INTERFACE}
|
80 |
+
${IRR_SRC_FILES_AESGLADMAN}
|
81 |
+
${IRR_SRC_FILES_LZMA}
|
82 |
+
)
|
83 |
+
|
84 |
+
if(${IRR_SHARED_LIB})
|
85 |
+
add_library(Irrlicht SHARED ${IRR_ALL_SRC_FILES})
|
86 |
+
else()
|
87 |
+
add_library(Irrlicht STATIC ${IRR_ALL_SRC_FILES})
|
88 |
+
endif()
|
89 |
+
|
90 |
+
if(APPLE)
|
91 |
+
target_include_directories(Irrlicht PRIVATE ${IRR_SRC_DIR}/MacOSX)
|
92 |
+
|
93 |
+
target_compile_definitions(Irrlicht PRIVATE SYSTEM=MacOSX)
|
94 |
+
|
95 |
+
target_link_libraries(Irrlicht ${OSX_LIBRARIES})
|
96 |
+
|
97 |
+
target_compile_options(Irrlicht PRIVATE "-ObjC++")
|
98 |
+
|
99 |
+
set(ADDITIONAL_LIRARIES
|
100 |
+
"-framework OpenGL"
|
101 |
+
"-framework IOKit"
|
102 |
+
"-framework Carbon"
|
103 |
+
"-framework AppKit"
|
104 |
+
"-framework Cocoa")
|
105 |
+
endif()
|
106 |
+
|
107 |
+
target_link_libraries(Irrlicht PRIVATE
|
108 |
+
${PNG_LIBRARY}
|
109 |
+
${JPEG_LIBRARY}
|
110 |
+
${ZLIB_LIBRARY}
|
111 |
+
${BZIP2_LIBRARY}
|
112 |
+
${ADDITIONAL_LIRARIES}
|
113 |
+
)
|
114 |
+
|
115 |
+
if(IRR_BUILD_TOOLS)
|
116 |
+
add_executable(FileToHeader ${IRR_TOOL_FILES_FILE_TO_HEADER})
|
117 |
+
|
118 |
+
add_executable(GUIEditor ${IRR_TOOL_FILES_GUI_EDITOR})
|
119 |
+
target_link_libraries(GUIEditor Irrlicht)
|
120 |
+
|
121 |
+
add_executable(FontTool ${IRR_TOOL_FILES_FONT_TOOL})
|
122 |
+
target_link_libraries(FontTool Irrlicht)
|
123 |
+
|
124 |
+
add_executable(MeshConverter ${IRR_TOOL_FILES_MESH_CONVERTER})
|
125 |
+
target_link_libraries(MeshConverter Irrlicht)
|
126 |
+
endif()
|
127 |
+
|
128 |
+
# Target properties (for compilation & export)
|
129 |
+
# -------------------------------------------------------------------------------------------------
|
130 |
+
target_include_directories(Irrlicht
|
131 |
+
PRIVATE ${IRR_SRC_DIR}
|
132 |
+
PRIVATE ${IRR_SRC_DIR}/aesGladman
|
133 |
+
PRIVATE ${BZIP2_INCLUDE_DIR}
|
134 |
+
PRIVATE ${JPEG_INCLUDE_DIR}
|
135 |
+
PRIVATE ${LIBPNG_INCLUDE_DIR}
|
136 |
+
PRIVATE ${IRR_SRC_DIR}/lzma
|
137 |
+
PRIVATE ${ZLIB_INCLUDE_DIR}
|
138 |
+
)
|
139 |
+
|
140 |
+
# I dont realy understand why this is necesary or what it is doing,
|
141 |
+
# but it is necesarry to build and export a package.
|
142 |
+
# See: https://cmake.org/cmake/help/v3.8/command/target_include_directories.html
|
143 |
+
target_include_directories(Irrlicht PUBLIC
|
144 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
145 |
+
$<INSTALL_INTERFACE:include/irrlicht> # <prefix>/include/irrlicht
|
146 |
+
)
|
147 |
+
|
148 |
+
if(NOT ${IRR_DIRECTX_SDK} STREQUAL "")
|
149 |
+
target_include_directories(Irrlicht PRIVATE ${IRR_DIRECTX_SDK}/Include)
|
150 |
+
if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
151 |
+
set(DX_LIBS ${IRR_DIRECTX_SDK}/Lib/x86)
|
152 |
+
else()
|
153 |
+
set(DX_LIBS ${IRR_DIRECTX_SDK}/Lib/x64)
|
154 |
+
endif()
|
155 |
+
target_link_libraries(Irrlicht
|
156 |
+
PRIVATE ${DX_LIBS}/d3dx9.lib
|
157 |
+
PRIVATE ${DX_LIBS}/dinput8.lib
|
158 |
+
PRIVATE ${DX_LIBS}/dxguid.lib)
|
159 |
+
else()
|
160 |
+
target_compile_definitions(Irrlicht PRIVATE NO_IRR_COMPILE_WITH_DIRECT3D_9_)
|
161 |
+
endif()
|
162 |
+
|
163 |
+
if(NOT ${IRR_SHARED_LIB})
|
164 |
+
target_compile_definitions(Irrlicht PUBLIC _IRR_STATIC_LIB_)
|
165 |
+
endif()
|
166 |
+
|
167 |
+
# Disable Irrlicht building already provided dependencies
|
168 |
+
target_compile_definitions(Irrlicht
|
169 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_ZLIB_
|
170 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_LIB_PNG_
|
171 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_BZLIB_
|
172 |
+
PRIVATE NO_IRR_USE_NON_SYSTEM_JPEG_LIB_
|
173 |
+
)
|
174 |
+
|
175 |
+
# Per platform config
|
176 |
+
# -------------------------------------------------------------------------------------------------
|
177 |
+
|
178 |
+
# Export symbols
|
179 |
+
target_compile_definitions(Irrlicht PRIVATE IRRLICHT_EXPORTS)
|
180 |
+
|
181 |
+
if(WIN32)
|
182 |
+
# Import the symbols of bzip2
|
183 |
+
target_compile_definitions(Irrlicht PRIVATE BZ_IMPORT)
|
184 |
+
|
185 |
+
# Disable the ton of warnings from standard library
|
186 |
+
target_compile_definitions(Irrlicht PRIVATE _CRT_SECURE_NO_WARNINGS)
|
187 |
+
|
188 |
+
# Multi processor compilation
|
189 |
+
target_compile_options(Irrlicht PRIVATE /MP)
|
190 |
+
|
191 |
+
# Unicode
|
192 |
+
if(${IRR_UNICODE_PATH})
|
193 |
+
target_compile_definitions(Irrlicht PRIVATE UNICODE _UNICODE)
|
194 |
+
target_compile_definitions(Irrlicht PUBLIC _IRR_WCHAR_FILESYSTEM)
|
195 |
+
endif()
|
196 |
+
|
197 |
+
# Fast math options
|
198 |
+
if(${IRR_FAST_MATH})
|
199 |
+
target_compile_options(Irrlicht PRIVATE /fp:fast)
|
200 |
+
message("Fast Math Enabled")
|
201 |
+
# SSE2 is automatically activated on x64
|
202 |
+
if(${CMAKE_SIZEOF_VOID_P} EQUAL 4)
|
203 |
+
target_compile_options(Irrlicht PRIVATE /arch:SSE2)
|
204 |
+
endif()
|
205 |
+
endif()
|
206 |
+
elseif(UNIX)
|
207 |
+
# Standard mode
|
208 |
+
target_compile_options(Irrlicht
|
209 |
+
PRIVATE -Wall
|
210 |
+
PRIVATE -pipe
|
211 |
+
PRIVATE -fno-exceptions
|
212 |
+
PRIVATE -fno-strict-aliasing)
|
213 |
+
|
214 |
+
# Disable RTTI on C++ files only (no sense for C files)
|
215 |
+
set_source_files_properties(${IRR_SRC_FILES} ${IRR_SRC_FILES_AESGLADMAN}
|
216 |
+
PROPERTIES COMPILE_FLAGS -fno-rtti)
|
217 |
+
|
218 |
+
# Debug macro
|
219 |
+
target_compile_options(Irrlicht PRIVATE $<$<CONFIG:Debug>:-D_DEBUG>)
|
220 |
+
|
221 |
+
# X11 and OpenGL
|
222 |
+
if(NOT APPLE)
|
223 |
+
target_link_libraries(Irrlicht
|
224 |
+
PRIVATE X11
|
225 |
+
PRIVATE GL
|
226 |
+
PRIVATE Xxf86vm)
|
227 |
+
endif()
|
228 |
+
endif()
|
229 |
+
|
230 |
+
# Installation
|
231 |
+
# -------------------------------------------------------------------------------------------------
|
232 |
+
install(
|
233 |
+
TARGETS Irrlicht
|
234 |
+
EXPORT Irrlicht
|
235 |
+
RUNTIME DESTINATION bin
|
236 |
+
LIBRARY DESTINATION lib
|
237 |
+
ARCHIVE DESTINATION lib
|
238 |
+
)
|
239 |
+
|
240 |
+
install(FILES ${IRR_SRC_FILES_INTERFACE} DESTINATION "include/irrlicht" CONFIGURATIONS Release)
|
241 |
+
|
242 |
+
if(IRR_BUILD_TOOLS)
|
243 |
+
install(
|
244 |
+
TARGETS FileToHeader GUIEditor FontTool MeshConverter
|
245 |
+
RUNTIME DESTINATION tools/irrlicht/
|
246 |
+
CONFIGURATIONS Release
|
247 |
+
)
|
248 |
+
endif()
|
249 |
+
|
250 |
+
install(EXPORT Irrlicht FILE irrlicht-targets.cmake DESTINATION share/irrlicht)
|
cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The Irrlicht Engine License
|
2 |
+
===========================
|
3 |
+
|
4 |
+
Copyright (C) 2002-2015 Nikolaus Gebhardt
|
5 |
+
|
6 |
+
This software is provided 'as-is', without any express or implied
|
7 |
+
warranty. In no event will the authors be held liable for any damages
|
8 |
+
arising from the use of this software.
|
9 |
+
|
10 |
+
Permission is granted to anyone to use this software for any purpose,
|
11 |
+
including commercial applications, and to alter it and redistribute it
|
12 |
+
freely, subject to the following restrictions:
|
13 |
+
|
14 |
+
1. The origin of this software must not be misrepresented; you must not
|
15 |
+
claim that you wrote the original software. If you use this software
|
16 |
+
in a product, an acknowledgement in the product documentation would be
|
17 |
+
appreciated but is not required.
|
18 |
+
2. Altered source versions must be clearly marked as such, and must not be
|
19 |
+
misrepresented as being the original software.
|
20 |
+
3. This notice may not be removed or altered from any source distribution.
|
cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/fix-encoding.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/Keycodes.h b/include/Keycodes.h
|
2 |
+
index e56eca1..57ab312 100644
|
3 |
+
--- a/include/Keycodes.h
|
4 |
+
+++ b/include/Keycodes.h
|
5 |
+
@@ -89,7 +89,7 @@ namespace irr
|
6 |
+
KEY_KEY_X = 0x58, // X key
|
7 |
+
KEY_KEY_Y = 0x59, // Y key
|
8 |
+
KEY_KEY_Z = 0x5A, // Z key
|
9 |
+
- KEY_LWIN = 0x5B, // Left Windows key (Microsoft� Natural� keyboard)
|
10 |
+
+ KEY_LWIN = 0x5B, // Left Windows key (Microsoft® Natural® keyboard)
|
11 |
+
KEY_RWIN = 0x5C, // Right Windows key (Natural keyboard)
|
12 |
+
KEY_APPS = 0x5D, // Applications key (Natural keyboard)
|
13 |
+
KEY_SLEEP = 0x5F, // Computer Sleep key
|
cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/fix-osx-compilation.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/source/Irrlicht/CImageLoaderJPG.cpp b/source/Irrlicht/CImageLoaderJPG.cpp
|
2 |
+
index 404bd53..71684d8 100644
|
3 |
+
--- a/source/Irrlicht/CImageLoaderJPG.cpp
|
4 |
+
+++ b/source/Irrlicht/CImageLoaderJPG.cpp
|
5 |
+
@@ -68,7 +68,7 @@ void CImageLoaderJPG::init_source (j_decompress_ptr cinfo)
|
6 |
+
boolean CImageLoaderJPG::fill_input_buffer (j_decompress_ptr cinfo)
|
7 |
+
{
|
8 |
+
// DO NOTHING
|
9 |
+
- return 1;
|
10 |
+
+ return TRUE;
|
11 |
+
}
|
12 |
+
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/portfile.cmake
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_sourceforge(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO irrlicht/Irrlicht%20SDK
|
4 |
+
REF 1.8/${VERSION}
|
5 |
+
FILENAME "irrlicht-${VERSION}.zip"
|
6 |
+
SHA512 d11c7a056bfb8c9737ed583c5bc5794223bc59fb4620411b63bc4d1eedc41db2ed1cab5cb7a37fee42a7f38c0e0645f5fc53fd329fff0f2aa78e0df6804c47c9
|
7 |
+
PATCHES
|
8 |
+
fix-encoding.patch
|
9 |
+
fix-osx-compilation.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
if(VCPKG_TARGET_IS_LINUX)
|
13 |
+
message(
|
14 |
+
"Irrlicht currently requires the following libraries from the system package manager:
|
15 |
+
libgl1-mesa
|
16 |
+
xf86vmode
|
17 |
+
|
18 |
+
These can be installed on Ubuntu systems via sudo apt-get install libgl1-mesa-dev libxxf86vm-dev")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" "${SOURCE_PATH}/CMakeLists.txt" COPYONLY)
|
22 |
+
|
23 |
+
vcpkg_check_features(
|
24 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
25 |
+
FEATURES
|
26 |
+
unicode IRR_UNICODE_PATH
|
27 |
+
fast-fpu IRR_FAST_MATH
|
28 |
+
tools IRR_BUILD_TOOLS
|
29 |
+
)
|
30 |
+
|
31 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED_LIB)
|
32 |
+
|
33 |
+
vcpkg_cmake_configure(
|
34 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
35 |
+
OPTIONS
|
36 |
+
-DIRR_SHARED_LIB=${SHARED_LIB}
|
37 |
+
${FEATURE_OPTIONS}
|
38 |
+
)
|
39 |
+
|
40 |
+
vcpkg_cmake_install()
|
41 |
+
|
42 |
+
vcpkg_cmake_config_fixup()
|
43 |
+
|
44 |
+
if("tools" IN_LIST FEATURES)
|
45 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/irrlicht/")
|
46 |
+
endif()
|
47 |
+
|
48 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/irrlicht/irrlicht-config.cmake" "include(\${CMAKE_CURRENT_LIST_DIR}/irrlicht-targets.cmake)")
|
49 |
+
|
50 |
+
vcpkg_copy_pdbs()
|
51 |
+
|
52 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
53 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/irrlicht")
|
54 |
+
endif()
|
55 |
+
|
56 |
+
vcpkg_install_copyright(FILE_LIST "${CMAKE_CURRENT_LIST_DIR}/LICENSE.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/vcpkg.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "irrlicht",
|
3 |
+
"version": "1.8.5",
|
4 |
+
"description": "The Irrlicht Engine is an open source realtime 3D engine written in C++. It is cross-platform, using D3D, OpenGL and its own software renderers.",
|
5 |
+
"homepage": "http://irrlicht.sourceforge.net",
|
6 |
+
"supports": "!(arm | uwp)",
|
7 |
+
"dependencies": [
|
8 |
+
"bzip2",
|
9 |
+
"libjpeg-turbo",
|
10 |
+
"libpng",
|
11 |
+
"vcpkg-cmake",
|
12 |
+
"vcpkg-cmake-config",
|
13 |
+
"zlib"
|
14 |
+
],
|
15 |
+
"features": {
|
16 |
+
"fast-fpu": {
|
17 |
+
"description": "Enable fast maths (at the expense of precision)"
|
18 |
+
},
|
19 |
+
"tools": {
|
20 |
+
"description": "Build the Tools FileToHeader, FontTool, GUIEditor and MeshConverter"
|
21 |
+
},
|
22 |
+
"unicode": {
|
23 |
+
"description": "Support unicode path on windows"
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/Makefile
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
subdir = .
|
2 |
+
top_builddir = .
|
3 |
+
include src/Makefile.global
|
4 |
+
|
5 |
+
ifeq ($(LIBPQ_LIBRARY_TYPE), static)
|
6 |
+
LIBPQ_INSTALL_LIBS = install-stlib
|
7 |
+
endif
|
8 |
+
|
9 |
+
ifeq ($(LIBPQ_LIBRARY_TYPE), shared)
|
10 |
+
ifeq ($(LIBPQ_USING_MINGW), yes)
|
11 |
+
# The import library name is the same as the static library name
|
12 |
+
EXTRA_TARGET = install-lib-static
|
13 |
+
endif
|
14 |
+
endif
|
15 |
+
|
16 |
+
.PHONY: all
|
17 |
+
all:
|
18 |
+
$(MAKE) -C src/include
|
19 |
+
$(MAKE) -C src/common
|
20 |
+
$(MAKE) -C src/port
|
21 |
+
$(MAKE) -C src/interfaces/libpq all-$(LIBPQ_LIBRARY_TYPE)-lib
|
22 |
+
$(MAKE) -C src/interfaces/ecpg/include
|
23 |
+
$(MAKE) -C src/interfaces/ecpg/pgtypeslib
|
24 |
+
$(MAKE) -C src/interfaces/ecpg/ecpglib
|
25 |
+
$(MAKE) -C src/interfaces/ecpg/compatlib
|
26 |
+
ifeq ($(LIBPQ_ENABLE_TOOLS), yes)
|
27 |
+
$(MAKE) -C src/interfaces/ecpg/preproc
|
28 |
+
$(MAKE) -C src/fe_utils
|
29 |
+
$(MAKE) -C src/bin
|
30 |
+
else
|
31 |
+
$(MAKE) -C src/bin/pg_config
|
32 |
+
endif
|
33 |
+
|
34 |
+
.PHONY: install-stlib
|
35 |
+
install-stlib:
|
36 |
+
$(MAKE) -C src/common install -o all
|
37 |
+
rm -f '$(DESTDIR)$(libdir)/libpgcommon_shlib.a'
|
38 |
+
$(MAKE) -C src/port install -o all
|
39 |
+
rm -f '$(DESTDIR)$(libdir)/libpgport_shlib.a'
|
40 |
+
|
41 |
+
.PHONY: install
|
42 |
+
install: $(LIBPQ_INSTALL_LIBS)
|
43 |
+
$(MAKE) -C src/include install
|
44 |
+
$(MAKE) -C src/interfaces/libpq $(EXTRA_TARGET) install-lib-$(LIBPQ_LIBRARY_TYPE) install-lib-pc install -o all -o install-lib
|
45 |
+
$(MAKE) -C src/interfaces/ecpg/include install
|
46 |
+
$(MAKE) -C src/interfaces/ecpg/pgtypeslib install
|
47 |
+
$(MAKE) -C src/interfaces/ecpg/ecpglib install
|
48 |
+
$(MAKE) -C src/interfaces/ecpg/compatlib install
|
49 |
+
ifeq ($(LIBPQ_ENABLE_TOOLS), yes)
|
50 |
+
$(MAKE) -C src/interfaces/ecpg/preproc install
|
51 |
+
$(MAKE) -C src/bin install
|
52 |
+
else
|
53 |
+
$(MAKE) -C src/bin/pg_config install
|
54 |
+
endif
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/android/unversioned_so.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
|
2 |
+
index f94d59d1c597..8ca51ca03f75 100644
|
3 |
+
--- a/src/Makefile.shlib
|
4 |
+
+++ b/src/Makefile.shlib
|
5 |
+
@@ -183,6 +183,11 @@ endif
|
6 |
+
ifeq ($(PORTNAME), linux)
|
7 |
+
LINK.shared = $(COMPILER) -shared
|
8 |
+
ifdef soname
|
9 |
+
+ ifneq (,$(findstring linux-android,$(host_os)))
|
10 |
+
+ # Android uses unversioned shared libraries
|
11 |
+
+ shlib = $(shlib_bare)
|
12 |
+
+ soname = $(shlib_bare)
|
13 |
+
+ endif
|
14 |
+
LINK.shared += -Wl,-soname,$(soname)
|
15 |
+
endif
|
16 |
+
BUILD.exports = ( echo '{ global:'; $(AWK) '/^[^\#]/ {printf "%s;\n",$$1}' $<; echo ' local: *; };' ) >$@
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/build-msvc.cmake
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
function(build_msvc build_type source_path)
|
2 |
+
if(build_type STREQUAL "DEBUG")
|
3 |
+
set(vcpkg_configuration "Debug")
|
4 |
+
set(label "${TARGET_TRIPLET}-dbg")
|
5 |
+
set(packages_dir "${CURRENT_PACKAGES_DIR}/debug")
|
6 |
+
else()
|
7 |
+
set(vcpkg_configuration "Release")
|
8 |
+
set(label "${TARGET_TRIPLET}-rel")
|
9 |
+
set(packages_dir "${CURRENT_PACKAGES_DIR}")
|
10 |
+
endif()
|
11 |
+
|
12 |
+
set(build_path "${CURRENT_BUILDTREES_DIR}/${label}")
|
13 |
+
file(REMOVE_RECURSE "${build_path}")
|
14 |
+
file(COPY "${source_path}/" DESTINATION "${build_path}")
|
15 |
+
|
16 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
17 |
+
vcpkg_replace_string("${build_path}/src/include/port/win32.h" "__declspec (dllimport)" "")
|
18 |
+
endif()
|
19 |
+
vcpkg_replace_string("${build_path}/src/tools/msvc/MSBuildProject.pm" "perl " "\"${PERL}\" ")
|
20 |
+
configure_file("${CURRENT_PORT_DIR}/libpq.props.in" "${build_path}/libpq.props" @ONLY)
|
21 |
+
configure_file("${CURRENT_PORT_DIR}/vcpkg-libs.props.in" "${build_path}/vcpkg-libs.props" @ONLY)
|
22 |
+
set(config "# Generated by ${CMAKE_CURRENT_LIST_FILE}\n\n")
|
23 |
+
foreach(var IN ITEMS VCPKG_TARGET_ARCHITECTURE VCPKG_LIBRARY_LINKAGE VCPKG_CRT_LINKAGE)
|
24 |
+
string(APPEND config "\$config->{${var}} = \"${${var}}\";\n")
|
25 |
+
endforeach()
|
26 |
+
foreach(option IN ITEMS icu lz4 nls openssl python tcl xml xslt zlib zstd)
|
27 |
+
if(option IN_LIST FEATURES)
|
28 |
+
string(APPEND config "\$config->{${option}} = \"${CURRENT_INSTALLED_DIR}\";\n")
|
29 |
+
endif()
|
30 |
+
endforeach()
|
31 |
+
if("openssl" IN_LIST FEATURES)
|
32 |
+
file(STRINGS "${CURRENT_INSTALLED_DIR}/lib/pkgconfig/openssl.pc" OPENSSL_VERSION REGEX "Version:")
|
33 |
+
string(APPEND config "\$config->{openssl_version} = '${OPENSSL_VERSION}';\n")
|
34 |
+
endif()
|
35 |
+
string(APPEND config "\$config->{python_version} = '3.${PYTHON_VERSION_MINOR}';\n")
|
36 |
+
string(APPEND config "\$config->{tcl_version} = '90';\n")
|
37 |
+
file(WRITE "${build_path}/src/tools/msvc/config.pl" "${config}")
|
38 |
+
|
39 |
+
set(build_in_parallel "-m")
|
40 |
+
set(build_targets libpq libecpg_compat)
|
41 |
+
set(install_target core)
|
42 |
+
if(HAS_TOOLS AND NOT build_type STREQUAL "DEBUG")
|
43 |
+
set(build_in_parallel "") # mitigate winflex races
|
44 |
+
set(build_targets client)
|
45 |
+
set(install_target client)
|
46 |
+
endif()
|
47 |
+
|
48 |
+
string(REPLACE "x86" "Win32" platform "${VCPKG_TARGET_ARCHITECTURE}")
|
49 |
+
vcpkg_get_windows_sdk(VCPKG_TARGET_PLATFORM_VERSION)
|
50 |
+
set(ENV{MSBFLAGS} "\
|
51 |
+
/p:Platform=${platform} \
|
52 |
+
/p:PlatformToolset=${VCPKG_PLATFORM_TOOLSET} \
|
53 |
+
/p:VCPkgLocalAppDataDisabled=true \
|
54 |
+
/p:UseIntelMKL=No \
|
55 |
+
/p:WindowsTargetPlatformVersion=${VCPKG_TARGET_PLATFORM_VERSION} \
|
56 |
+
/p:VcpkgConfiguration=${vcpkg_configuration} \
|
57 |
+
${build_in_parallel} \
|
58 |
+
/p:ForceImportBeforeCppTargets=\"${SCRIPTS}/buildsystems/msbuild/vcpkg.targets;${build_path}/vcpkg-libs.props\" \
|
59 |
+
/p:VcpkgTriplet=${TARGET_TRIPLET} \
|
60 |
+
/p:VcpkgCurrentInstalledDir=\"${CURRENT_INSTALLED_DIR}\" \
|
61 |
+
/p:ForceImportAfterCppTargets=\"${build_path}/libpq.props\" \
|
62 |
+
")
|
63 |
+
|
64 |
+
message(STATUS "Building ${label}")
|
65 |
+
foreach(target IN LISTS build_targets)
|
66 |
+
string(REPLACE "client" "" target "${target}")
|
67 |
+
vcpkg_execute_required_process(
|
68 |
+
COMMAND "${PERL}" build.pl ${build_type} ${target}
|
69 |
+
WORKING_DIRECTORY "${build_path}/src/tools/msvc"
|
70 |
+
LOGNAME "build-${target}-${label}"
|
71 |
+
)
|
72 |
+
endforeach()
|
73 |
+
|
74 |
+
message(STATUS "Installing ${label}")
|
75 |
+
vcpkg_execute_required_process(
|
76 |
+
COMMAND "${PERL}" install.pl "${packages_dir}" ${install_target}
|
77 |
+
WORKING_DIRECTORY "${build_path}/src/tools/msvc"
|
78 |
+
LOGNAME "install-${label}"
|
79 |
+
)
|
80 |
+
endfunction()
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/libpq.props.in
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3 |
+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
|
4 |
+
<ClCompile>
|
5 |
+
<AdditionalOptions>%(AdditionalOptions) @VCPKG_COMBINED_C_FLAGS_DEBUG@</AdditionalOptions>
|
6 |
+
</ClCompile>
|
7 |
+
<Link>
|
8 |
+
<AdditionalOptions>%(AdditionalOptions) @VCPKG_COMBINED_SHARED_LINKER_FLAGS_DEBUG@</AdditionalOptions>
|
9 |
+
</Link>
|
10 |
+
<Lib>
|
11 |
+
<AdditionalOptions>%(AdditionalOptions) @VCPKG_COMBINED_STATIC_LINKER_FLAGS_DEBUG@</AdditionalOptions>
|
12 |
+
</Lib>
|
13 |
+
</ItemDefinitionGroup>
|
14 |
+
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
|
15 |
+
<ClCompile>
|
16 |
+
<AdditionalOptions>%(AdditionalOptions) @VCPKG_COMBINED_C_FLAGS_RELEASE@</AdditionalOptions>
|
17 |
+
</ClCompile>
|
18 |
+
<Link>
|
19 |
+
<AdditionalOptions>%(AdditionalOptions) @VCPKG_COMBINED_SHARED_LINKER_FLAGS_RELEASE@</AdditionalOptions>
|
20 |
+
</Link>
|
21 |
+
<Lib>
|
22 |
+
<AdditionalOptions>%(AdditionalOptions) @VCPKG_COMBINED_STATIC_LINKER_FLAGS_RELEASE@</AdditionalOptions>
|
23 |
+
</Lib>
|
24 |
+
</ItemDefinitionGroup>
|
25 |
+
</Project>
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/portfile.cmake
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://ftp.postgresql.org/pub/source/v${VERSION}/postgresql-${VERSION}.tar.bz2"
|
3 |
+
FILENAME "postgresql-${VERSION}.tar.bz2"
|
4 |
+
SHA512 3194941cc3f1ec86b6cf4f08c6422d268d99890441f8fc9ab87b6a7fd16c990fa230b544308644cbef54e6960c4984e3703752e40930bdc0537b7bfda3ab7ccf
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive(
|
8 |
+
SOURCE_PATH
|
9 |
+
ARCHIVE "${ARCHIVE}"
|
10 |
+
PATCHES
|
11 |
+
unix/installdirs.patch
|
12 |
+
unix/fix-configure.patch
|
13 |
+
unix/single-linkage.patch
|
14 |
+
unix/no-server-tools.patch
|
15 |
+
unix/mingw-install.patch
|
16 |
+
unix/python.patch
|
17 |
+
windows/macro-def.patch
|
18 |
+
windows/win_bison_flex.patch
|
19 |
+
windows/msbuild.patch
|
20 |
+
windows/spin_delay.patch
|
21 |
+
android/unversioned_so.patch
|
22 |
+
)
|
23 |
+
|
24 |
+
file(GLOB _py3_include_path "${CURRENT_HOST_INSTALLED_DIR}/include/python3*")
|
25 |
+
string(REGEX MATCH "python3\\.([0-9]+)" _python_version_tmp "${_py3_include_path}")
|
26 |
+
set(PYTHON_VERSION_MINOR "${CMAKE_MATCH_1}")
|
27 |
+
|
28 |
+
if("client" IN_LIST FEATURES)
|
29 |
+
set(HAS_TOOLS TRUE)
|
30 |
+
else()
|
31 |
+
set(HAS_TOOLS FALSE)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
set(required_programs PERL)
|
35 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
36 |
+
list(APPEND required_programs BISON FLEX)
|
37 |
+
endif()
|
38 |
+
foreach(program_name IN LISTS required_programs)
|
39 |
+
# Need to rename win_bison and win_flex to just bison and flex
|
40 |
+
vcpkg_find_acquire_program(${program_name})
|
41 |
+
get_filename_component(program_dir ${${program_name}} DIRECTORY)
|
42 |
+
vcpkg_add_to_path(PREPEND "${program_dir}")
|
43 |
+
endforeach()
|
44 |
+
|
45 |
+
vcpkg_cmake_get_vars(cmake_vars_file)
|
46 |
+
include("${cmake_vars_file}")
|
47 |
+
|
48 |
+
if(VCPKG_DETECTED_MSVC)
|
49 |
+
if("nls" IN_LIST FEATURES)
|
50 |
+
vcpkg_acquire_msys(MSYS_ROOT PACKAGES gettext)
|
51 |
+
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
|
52 |
+
endif()
|
53 |
+
if("xml" IN_LIST FEATURES)
|
54 |
+
x_vcpkg_pkgconfig_get_modules(
|
55 |
+
PREFIX PC_LIBXML2
|
56 |
+
MODULES --msvc-syntax libxml-2.0
|
57 |
+
LIBS
|
58 |
+
)
|
59 |
+
separate_arguments(LIBXML2_LIBS_DEBUG NATIVE_COMMAND "${PC_LIBXML2_LIBS_DEBUG}")
|
60 |
+
separate_arguments(LIBXML2_LIBS_RELEASE NATIVE_COMMAND "${PC_LIBXML2_LIBS_RELEASE}")
|
61 |
+
endif()
|
62 |
+
if("xslt" IN_LIST FEATURES)
|
63 |
+
x_vcpkg_pkgconfig_get_modules(
|
64 |
+
PREFIX PC_LIBXSLT
|
65 |
+
MODULES --msvc-syntax libxslt
|
66 |
+
LIBS
|
67 |
+
)
|
68 |
+
separate_arguments(LIBXSLT_LIBS_DEBUG NATIVE_COMMAND "${PC_LIBXSLT_LIBS_DEBUG}")
|
69 |
+
separate_arguments(LIBXSLT_LIBS_RELEASE NATIVE_COMMAND "${PC_LIBXSLT_LIBS_RELEASE}")
|
70 |
+
endif()
|
71 |
+
|
72 |
+
include("${CMAKE_CURRENT_LIST_DIR}/build-msvc.cmake")
|
73 |
+
if(NOT VCPKG_BUILD_TYPE)
|
74 |
+
build_msvc(DEBUG "${SOURCE_PATH}")
|
75 |
+
endif()
|
76 |
+
build_msvc(RELEASE "${SOURCE_PATH}")
|
77 |
+
|
78 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
79 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
80 |
+
endif()
|
81 |
+
|
82 |
+
if(HAS_TOOLS)
|
83 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
84 |
+
else()
|
85 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools")
|
86 |
+
endif()
|
87 |
+
else()
|
88 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/Makefile" DESTINATION "${SOURCE_PATH}")
|
89 |
+
|
90 |
+
vcpkg_list(SET BUILD_OPTS)
|
91 |
+
foreach(option IN ITEMS icu lz4 nls openssl readline xml xslt zlib zstd)
|
92 |
+
if(option IN_LIST FEATURES)
|
93 |
+
list(APPEND BUILD_OPTS --with-${option})
|
94 |
+
else()
|
95 |
+
list(APPEND BUILD_OPTS --without-${option})
|
96 |
+
endif()
|
97 |
+
endforeach()
|
98 |
+
if("nls" IN_LIST FEATURES)
|
99 |
+
set(ENV{MSGFMT} "${CURRENT_HOST_INSTALLED_DIR}/tools/gettext/bin/msgfmt${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
100 |
+
if(VCPKG_TARGET_IS_ANDROID)
|
101 |
+
list(APPEND BUILD_OPTS [[LIBS=$LIBS -liconv]])
|
102 |
+
endif()
|
103 |
+
endif()
|
104 |
+
if("python" IN_LIST FEATURES)
|
105 |
+
list(APPEND BUILD_OPTS --with-python=3.${PYTHON_VERSION_MINOR})
|
106 |
+
vcpkg_find_acquire_program(PYTHON3)
|
107 |
+
list(APPEND BUILD_OPTS "PYTHON=${PYTHON3}")
|
108 |
+
endif()
|
109 |
+
if(VCPKG_TARGET_IS_ANDROID) # AND CMAKE_SYSTEM_VERSION LESS 26)
|
110 |
+
list(APPEND BUILD_OPTS ac_cv_header_langinfo_h=no)
|
111 |
+
endif()
|
112 |
+
if(VCPKG_DETECTED_CMAKE_OSX_SYSROOT)
|
113 |
+
list(APPEND BUILD_OPTS "PG_SYSROOT=${VCPKG_DETECTED_CMAKE_OSX_SYSROOT}")
|
114 |
+
endif()
|
115 |
+
vcpkg_configure_make(
|
116 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
117 |
+
COPY_SOURCE
|
118 |
+
AUTOCONFIG
|
119 |
+
ADDITIONAL_MSYS_PACKAGES autoconf-archive
|
120 |
+
DIRECT_PACKAGES
|
121 |
+
"https://mirror.msys2.org/msys/x86_64/tzcode-2023c-1-x86_64.pkg.tar.zst"
|
122 |
+
7550b843964744607f736a7138f10c6cd92489406a1b84ac71d9a9d8aa16bc69048aa1b24e1f49291b010347047008194c334ca9c632e17fa8245e85549e3c7a
|
123 |
+
OPTIONS
|
124 |
+
${BUILD_OPTS}
|
125 |
+
OPTIONS_DEBUG
|
126 |
+
--enable-debug
|
127 |
+
)
|
128 |
+
|
129 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
130 |
+
set(ENV{LIBPQ_LIBRARY_TYPE} shared)
|
131 |
+
else()
|
132 |
+
set(ENV{LIBPQ_LIBRARY_TYPE} static)
|
133 |
+
endif()
|
134 |
+
if(VCPKG_TARGET_IS_MINGW)
|
135 |
+
set(ENV{LIBPQ_USING_MINGW} yes)
|
136 |
+
endif()
|
137 |
+
if(HAS_TOOLS)
|
138 |
+
set(ENV{LIBPQ_ENABLE_TOOLS} yes)
|
139 |
+
endif()
|
140 |
+
vcpkg_install_make()
|
141 |
+
|
142 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/postgresql/server/pg_config.h" "#define CONFIGURE_ARGS" "// #define CONFIGURE_ARGS")
|
143 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/pg_config.h" "#define CONFIGURE_ARGS" "// #define CONFIGURE_ARGS")
|
144 |
+
endif()
|
145 |
+
|
146 |
+
vcpkg_fixup_pkgconfig()
|
147 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/postgresql/vcpkg-cmake-wrapper.cmake" @ONLY)
|
148 |
+
|
149 |
+
file(REMOVE_RECURSE
|
150 |
+
"${CURRENT_PACKAGES_DIR}/debug/doc"
|
151 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
152 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
153 |
+
"${CURRENT_PACKAGES_DIR}/debug/symbols"
|
154 |
+
"${CURRENT_PACKAGES_DIR}/debug/tools"
|
155 |
+
"${CURRENT_PACKAGES_DIR}/symbols"
|
156 |
+
"${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug"
|
157 |
+
)
|
158 |
+
|
159 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
160 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYRIGHT")
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/fix-configure.patch
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index 7f97248..48ff1a1 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -19,7 +19,8 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
|
6 |
+
|
7 |
+
AC_INIT([PostgreSQL], [16.2], [[email protected]], [], [https://www.postgresql.org/])
|
8 |
+
|
9 |
+
-m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_fatal([Autoconf version 2.69 is required.
|
10 |
+
+cross_compiling=yes # Avoid conftest loading shared objects
|
11 |
+
+m4_if(m4_defn([m4_PACKAGE_VERSION]), [2.69], [], [m4_warn([unsupported],[Autoconf version 2.69 is required.
|
12 |
+
Untested combinations of 'autoconf' and PostgreSQL versions are not
|
13 |
+
recommended. You can remove the check from 'configure.ac' but it is then
|
14 |
+
your responsibility whether the result works or not.])])
|
15 |
+
@@ -1311,7 +1312,8 @@ if test "$enable_thread_safety" = yes; then
|
16 |
+
fi
|
17 |
+
|
18 |
+
if test "$with_readline" = yes; then
|
19 |
+
- PGAC_CHECK_READLINE
|
20 |
+
+ PKG_CHECK_MODULES([READLINE], [readline], [HAVE_LIBREADLINE=1], [pgac_cv_check_readline=no])
|
21 |
+
+ LIBS="$READLINE_LIBS $LIBS"
|
22 |
+
if test x"$pgac_cv_check_readline" = x"no"; then
|
23 |
+
AC_MSG_ERROR([readline library not found
|
24 |
+
If you have readline already installed, see config.log for details on the
|
25 |
+
@@ -1321,7 +1323,7 @@ Use --without-readline to disable readline support.])
|
26 |
+
fi
|
27 |
+
|
28 |
+
if test "$with_zlib" = yes; then
|
29 |
+
- AC_CHECK_LIB(z, inflate, [],
|
30 |
+
+ PKG_CHECK_MODULES([ZLIB], [zlib], [LIBS="$ZLIB_LIBS $LIBS"],
|
31 |
+
[AC_MSG_ERROR([zlib library not found
|
32 |
+
If you have zlib already installed, see config.log for details on the
|
33 |
+
failure. It is possible the compiler isn't looking in the proper directory.
|
34 |
+
@@ -1370,6 +1372,9 @@ if test "$with_ssl" = openssl ; then
|
35 |
+
# Minimum required OpenSSL version is 1.0.1
|
36 |
+
AC_DEFINE(OPENSSL_API_COMPAT, [0x10001000L],
|
37 |
+
[Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions.])
|
38 |
+
+ PKG_CHECK_MODULES([CRYPTO_new_ex_data], [libcrypto], [LIBS="$CRYPTO_new_ex_data_LIBS $LIBS"], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
|
39 |
+
+ PKG_CHECK_MODULES([SSL_new], [libssl], [LIBS="$SSL_new_LIBS $LIBS"], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])])
|
40 |
+
+ if false ; then
|
41 |
+
if test "$PORTNAME" != "win32"; then
|
42 |
+
AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])])
|
43 |
+
AC_CHECK_LIB(ssl, SSL_new, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])])
|
44 |
+
@@ -1377,6 +1382,7 @@ if test "$with_ssl" = openssl ; then
|
45 |
+
AC_SEARCH_LIBS(CRYPTO_new_ex_data, [eay32 crypto], [], [AC_MSG_ERROR([library 'eay32' or 'crypto' is required for OpenSSL])])
|
46 |
+
AC_SEARCH_LIBS(SSL_new, [ssleay32 ssl], [], [AC_MSG_ERROR([library 'ssleay32' or 'ssl' is required for OpenSSL])])
|
47 |
+
fi
|
48 |
+
+ fi
|
49 |
+
# Functions introduced in OpenSSL 1.0.2. LibreSSL does not have
|
50 |
+
# SSL_CTX_set_cert_cb().
|
51 |
+
AC_CHECK_FUNCS([X509_get_signature_nid SSL_CTX_set_cert_cb])
|
52 |
+
@@ -1403,19 +1409,23 @@ if test "$with_pam" = yes ; then
|
53 |
+
fi
|
54 |
+
|
55 |
+
if test "$with_libxml" = yes ; then
|
56 |
+
- AC_CHECK_LIB(xml2, xmlSaveToBuffer, [], [AC_MSG_ERROR([library 'xml2' (version >= 2.6.23) is required for XML support])])
|
57 |
+
+ PKG_CHECK_MODULES([LIBXML2], [libxml-2.0 >= 2.6.23], [AC_DEFINE(HAVE_LIBXML2,1,[Define to 1 if with xml2])], [AC_MSG_ERROR([library 'xml2' (version >= 2.6.23) is required for XML support])])
|
58 |
+
+ LIBS="$LIBXML2_LIBS $LIBS"
|
59 |
+
fi
|
60 |
+
|
61 |
+
if test "$with_libxslt" = yes ; then
|
62 |
+
- AC_CHECK_LIB(xslt, xsltCleanupGlobals, [], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])])
|
63 |
+
+ PKG_CHECK_MODULES([LIBXSLT], [libxslt], [AC_DEFINE(HAVE_LIBXSLT,1,[Define to 1 if with xslt])], [AC_MSG_ERROR([library 'xslt' is required for XSLT support])])
|
64 |
+
+ LIBS="$LIBXSLT_LIBS $LIBS"
|
65 |
+
fi
|
66 |
+
|
67 |
+
if test "$with_lz4" = yes ; then
|
68 |
+
- AC_CHECK_LIB(lz4, LZ4_compress_default, [], [AC_MSG_ERROR([library 'lz4' is required for LZ4 support])])
|
69 |
+
+ PKG_CHECK_MODULES([LZ4], [liblz4], [AC_DEFINE(HAVE_LIBLZ4,1,[Define to 1 if with lz4])], [AC_MSG_ERROR([library 'lz4' is required for LZ4 support])])
|
70 |
+
+ LIBS="$LZ4_LIBS $LIBS"
|
71 |
+
fi
|
72 |
+
|
73 |
+
if test "$with_zstd" = yes ; then
|
74 |
+
- AC_CHECK_LIB(zstd, ZSTD_compress, [], [AC_MSG_ERROR([library 'zstd' is required for ZSTD support])])
|
75 |
+
+ PKG_CHECK_MODULES([ZSTD], [libzstd], [AC_DEFINE(HAVE_LIBZSTD,1,[Define to 1 if with zstd])], [AC_MSG_ERROR([library 'zstd' is required for ZSTD support])])
|
76 |
+
+ LIBS="$ZSTD_LIBS $LIBS"
|
77 |
+
fi
|
78 |
+
|
79 |
+
# Note: We can test for libldap_r only after we know PTHREAD_LIBS;
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/installdirs.patch
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
|
2 |
+
index 5dacc4d..a9a797e 100644
|
3 |
+
--- a/src/Makefile.global.in
|
4 |
+
+++ b/src/Makefile.global.in
|
5 |
+
@@ -100,14 +100,14 @@ datarootdir := @datarootdir@
|
6 |
+
|
7 |
+
bindir := @bindir@
|
8 |
+
|
9 |
+
-datadir := @datadir@
|
10 |
+
+datadir := @datadir@/postgresql
|
11 |
+
ifeq "$(findstring pgsql, $(datadir))" ""
|
12 |
+
ifeq "$(findstring postgres, $(datadir))" ""
|
13 |
+
override datadir := $(datadir)/postgresql
|
14 |
+
endif
|
15 |
+
endif
|
16 |
+
|
17 |
+
-sysconfdir := @sysconfdir@
|
18 |
+
+sysconfdir := @sysconfdir@/postgresql
|
19 |
+
ifeq "$(findstring pgsql, $(sysconfdir))" ""
|
20 |
+
ifeq "$(findstring postgres, $(sysconfdir))" ""
|
21 |
+
override sysconfdir := $(sysconfdir)/postgresql
|
22 |
+
@@ -116,7 +116,7 @@ endif
|
23 |
+
|
24 |
+
libdir := @libdir@
|
25 |
+
|
26 |
+
-pkglibdir = $(libdir)
|
27 |
+
+pkglibdir = $(libdir)/postgresql
|
28 |
+
ifeq "$(findstring pgsql, $(pkglibdir))" ""
|
29 |
+
ifeq "$(findstring postgres, $(pkglibdir))" ""
|
30 |
+
override pkglibdir := $(pkglibdir)/postgresql
|
31 |
+
@@ -125,7 +125,7 @@ endif
|
32 |
+
|
33 |
+
includedir := @includedir@
|
34 |
+
|
35 |
+
-pkgincludedir = $(includedir)
|
36 |
+
+pkgincludedir = $(includedir)/postgresql
|
37 |
+
ifeq "$(findstring pgsql, $(pkgincludedir))" ""
|
38 |
+
ifeq "$(findstring postgres, $(pkgincludedir))" ""
|
39 |
+
override pkgincludedir := $(pkgincludedir)/postgresql
|
40 |
+
@@ -134,7 +134,7 @@ endif
|
41 |
+
|
42 |
+
mandir := @mandir@
|
43 |
+
|
44 |
+
-docdir := @docdir@
|
45 |
+
+docdir := @docdir@/postgresql
|
46 |
+
ifeq "$(findstring pgsql, $(docdir))" ""
|
47 |
+
ifeq "$(findstring postgres, $(docdir))" ""
|
48 |
+
override docdir := $(docdir)/postgresql
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/mingw-install.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
|
2 |
+
index 16255d7..51e9ed2 100644
|
3 |
+
--- a/src/Makefile.shlib
|
4 |
+
+++ b/src/Makefile.shlib
|
5 |
+
@@ -85,7 +85,11 @@ else
|
6 |
+
# Naming convention for dynamically loadable modules
|
7 |
+
shlib = $(NAME)$(DLSUFFIX)
|
8 |
+
endif
|
9 |
+
+ifeq ($(PORTNAME)-$(LIBPQ_LIBRARY_TYPE), win32-shared)
|
10 |
+
+stlib = lib$(NAME).dll.a
|
11 |
+
+else
|
12 |
+
stlib = lib$(NAME).a
|
13 |
+
+endif
|
14 |
+
|
15 |
+
ifndef soname
|
16 |
+
# additional flags for backend modules
|
17 |
+
@@ -468,6 +472,9 @@ endif
|
18 |
+
else # no soname
|
19 |
+
$(INSTALL_SHLIB) $< '$(DESTDIR)$(pkglibdir)/$(shlib)'
|
20 |
+
endif
|
21 |
+
+ifeq ($(PORTNAME)-$(LIBPQ_LIBRARY_TYPE), win32-shared)
|
22 |
+
+ mv '$(DESTDIR)$(libdir)/$(shlib)' '$(DESTDIR)$(libdir)/../bin/$(shlib)'
|
23 |
+
+endif
|
24 |
+
|
25 |
+
|
26 |
+
installdirs-lib:
|
27 |
+
@@ -476,6 +483,9 @@ ifdef soname
|
28 |
+
else
|
29 |
+
$(MKDIR_P) '$(DESTDIR)$(pkglibdir)'
|
30 |
+
endif
|
31 |
+
+ifeq ($(PORTNAME)-$(LIBPQ_LIBRARY_TYPE), win32-shared)
|
32 |
+
+ $(MKDIR_P) '$(DESTDIR)$(libdir)/../bin'
|
33 |
+
+endif
|
34 |
+
|
35 |
+
|
36 |
+
##
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/no-server-tools.patch
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/bin/Makefile b/src/bin/Makefile
|
2 |
+
index 7f9dde9..bc6d835 100644
|
3 |
+
--- a/src/bin/Makefile
|
4 |
+
+++ b/src/bin/Makefile
|
5 |
+
@@ -13,29 +13,20 @@ subdir = src/bin
|
6 |
+
top_builddir = ../..
|
7 |
+
include $(top_builddir)/src/Makefile.global
|
8 |
+
|
9 |
+
+.NOTPARALLEL:
|
10 |
+
+# incl. https://www.postgresql.org/docs/current/reference-client.html
|
11 |
+
+# excl. https://www.postgresql.org/docs/current/reference-server.html
|
12 |
+
SUBDIRS = \
|
13 |
+
- initdb \
|
14 |
+
pg_amcheck \
|
15 |
+
- pg_archivecleanup \
|
16 |
+
pg_basebackup \
|
17 |
+
- pg_checksums \
|
18 |
+
pg_config \
|
19 |
+
- pg_controldata \
|
20 |
+
- pg_ctl \
|
21 |
+
pg_dump \
|
22 |
+
- pg_resetwal \
|
23 |
+
- pg_rewind \
|
24 |
+
- pg_test_fsync \
|
25 |
+
- pg_test_timing \
|
26 |
+
- pg_upgrade \
|
27 |
+
pg_verifybackup \
|
28 |
+
- pg_waldump \
|
29 |
+
pgbench \
|
30 |
+
psql \
|
31 |
+
scripts
|
32 |
+
|
33 |
+
ifeq ($(PORTNAME), win32)
|
34 |
+
-SUBDIRS += pgevent
|
35 |
+
else
|
36 |
+
ALWAYS_SUBDIRS += pgevent
|
37 |
+
endif
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/python.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index 7f97248992..33b6c84fc4 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -891,7 +891,9 @@ AC_SUBST(with_perl)
|
6 |
+
# Optionally build Python modules (PL/Python)
|
7 |
+
#
|
8 |
+
AC_MSG_CHECKING([whether to build Python modules])
|
9 |
+
-PGAC_ARG_BOOL(with, python, no, [build Python modules (PL/Python)])
|
10 |
+
+PGAC_ARG_OPTARG(with, python, [PYTHON_VERSION], [build Python modules (PL/Python)],
|
11 |
+
+ [],
|
12 |
+
+ [python_version=$withval])
|
13 |
+
AC_MSG_RESULT([$with_python])
|
14 |
+
AC_SUBST(with_python)
|
15 |
+
|
16 |
+
@@ -1214,7 +1216,18 @@ fi
|
17 |
+
|
18 |
+
if test "$with_python" = yes; then
|
19 |
+
PGAC_PATH_PYTHON
|
20 |
+
- PGAC_CHECK_PYTHON_EMBED_SETUP
|
21 |
+
+ python_majorversion=3
|
22 |
+
+ PKG_CHECK_MODULES(PYTHON_EMBED, python-${python_version}-embed)
|
23 |
+
+ python_includespec="${PYTHON_EMBED_CFLAGS}"
|
24 |
+
+ python_libdir=[$(echo " ${PYTHON_EMBED_LIBS}" | sed -e 's/\( -L[^ ]*\).*/\1/' -e 's/^.* -L//')]
|
25 |
+
+ python_libspec="${PYTHON_EMBED_LIBS}"
|
26 |
+
+ python_additional_libs=""
|
27 |
+
+ AC_SUBST(python_majorversion)
|
28 |
+
+ AC_SUBST(python_version)
|
29 |
+
+ AC_SUBST(python_includespec)
|
30 |
+
+ AC_SUBST(python_libdir)
|
31 |
+
+ AC_SUBST(python_libspec)
|
32 |
+
+ AC_SUBST(python_additional_libs)
|
33 |
+
fi
|
34 |
+
|
35 |
+
if test x"$cross_compiling" = x"yes" && test -z "$with_system_tzdata"; then
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/unix/single-linkage.patch
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/Makefile.shlib b/src/Makefile.shlib
|
2 |
+
index 551023c..16255d7 100644
|
3 |
+
--- a/src/Makefile.shlib
|
4 |
+
+++ b/src/Makefile.shlib
|
5 |
+
@@ -260,10 +260,14 @@ endif
|
6 |
+
|
7 |
+
.PHONY: all-lib all-static-lib all-shared-lib
|
8 |
+
|
9 |
+
+ifndef LIBPQ_LIBRARY_TYPE
|
10 |
+
all-lib: all-shared-lib
|
11 |
+
ifdef soname
|
12 |
+
# no static library when building a dynamically loadable module
|
13 |
+
all-lib: all-static-lib
|
14 |
+
+endif
|
15 |
+
+else
|
16 |
+
+all-lib: all-$(LIBPQ_LIBRARY_TYPE)-lib
|
17 |
+
all-lib: lib$(NAME).pc
|
18 |
+
endif
|
19 |
+
|
20 |
+
@@ -417,9 +421,13 @@ endif # PORTNAME == cygwin || PORTNAME == win32
|
21 |
+
##
|
22 |
+
|
23 |
+
.PHONY: install-lib install-lib-static install-lib-shared installdirs-lib
|
24 |
+
+ifndef LIBPQ_LIBRARY_TYPE
|
25 |
+
install-lib: install-lib-shared
|
26 |
+
ifdef soname
|
27 |
+
install-lib: install-lib-static
|
28 |
+
+endif
|
29 |
+
+else
|
30 |
+
+install-lib: install-lib-$(LIBPQ_LIBRARY_TYPE)
|
31 |
+
install-lib: install-lib-pc
|
32 |
+
endif
|
33 |
+
|
34 |
+
diff --git a/src/interfaces/libpq/Makefile b/src/interfaces/libpq/Makefile
|
35 |
+
index 8abdb09..185461e 100644
|
36 |
+
--- a/src/interfaces/libpq/Makefile
|
37 |
+
+++ b/src/interfaces/libpq/Makefile
|
38 |
+
@@ -115,6 +115,7 @@ backend_src = $(top_srcdir)/src/backend
|
39 |
+
# Also skip the test on platforms where libpq infrastructure may be provided
|
40 |
+
# by statically-linked libraries, as we can't expect them to honor this
|
41 |
+
# coding rule.
|
42 |
+
+ifeq ($(LIBPQ_LIBRARY_TYPE), shared)
|
43 |
+
libpq-refs-stamp: $(shlib)
|
44 |
+
ifneq ($(enable_coverage), yes)
|
45 |
+
ifeq (,$(filter aix solaris,$(PORTNAME)))
|
46 |
+
@@ -124,6 +125,10 @@ ifeq (,$(filter aix solaris,$(PORTNAME)))
|
47 |
+
endif
|
48 |
+
endif
|
49 |
+
touch $@
|
50 |
+
+else
|
51 |
+
+.PHONY: libpq-refs-stamp
|
52 |
+
+libpq-refs-stamp:
|
53 |
+
+endif
|
54 |
+
|
55 |
+
# Make dependencies on pg_config_paths.h visible in all builds.
|
56 |
+
fe-connect.o: fe-connect.c $(top_builddir)/src/port/pg_config_paths.h
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libpq provides CMake integration:
|
2 |
+
|
3 |
+
find_package(PostgreSQL REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE PostgreSQL::PostgreSQL)
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Give the CMake module a little bit of help to find the debug libraries
|
2 |
+
find_library(PostgreSQL_LIBRARY_DEBUG
|
3 |
+
NAMES pq
|
4 |
+
PATHS
|
5 |
+
"${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib"
|
6 |
+
NO_DEFAULT_PATH
|
7 |
+
)
|
8 |
+
_find_package(${ARGS})
|
9 |
+
if(PostgreSQL_FOUND AND NOT "@VCPKG_TARGET_IS_WINDOWS@")
|
10 |
+
find_library(PostgreSQL_DL_LIBRARY NAMES dl)
|
11 |
+
if(PostgreSQL_DL_LIBRARY)
|
12 |
+
list(APPEND PostgreSQL_LIBRARIES "dl")
|
13 |
+
if(TARGET PostgreSQL::PostgreSQL)
|
14 |
+
set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "dl")
|
15 |
+
endif()
|
16 |
+
endif()
|
17 |
+
endif()
|
18 |
+
if(PostgreSQL_FOUND AND "@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
19 |
+
include(SelectLibraryConfigurations)
|
20 |
+
foreach(LIB_ITEM libpgport libpgcommon pgport pgcommon)
|
21 |
+
find_library(PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE
|
22 |
+
NAMES ${LIB_ITEM}
|
23 |
+
PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib" NO_DEFAULT_PATH
|
24 |
+
)
|
25 |
+
if(TARGET PostgreSQL::PostgreSQL AND PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE)
|
26 |
+
set_property(
|
27 |
+
TARGET PostgreSQL::PostgreSQL
|
28 |
+
APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<NOT:\$<CONFIG:DEBUG>>:${PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE}>"
|
29 |
+
)
|
30 |
+
endif()
|
31 |
+
|
32 |
+
find_library(PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG
|
33 |
+
NAMES ${LIB_ITEM}
|
34 |
+
PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH
|
35 |
+
)
|
36 |
+
if(TARGET PostgreSQL::PostgreSQL AND PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG)
|
37 |
+
set_property(
|
38 |
+
TARGET PostgreSQL::PostgreSQL
|
39 |
+
APPEND PROPERTY INTERFACE_LINK_LIBRARIES "\$<\$<CONFIG:DEBUG>:${PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG}>"
|
40 |
+
)
|
41 |
+
endif()
|
42 |
+
|
43 |
+
if (PostgreSQL_${LIB_ITEM}_LIBRARY_RELEASE OR PostgreSQL_${LIB_ITEM}_LIBRARY_DEBUG)
|
44 |
+
select_library_configurations(PostgreSQL_${LIB_ITEM})
|
45 |
+
list(APPEND PostgreSQL_LIBRARIES ${PostgreSQL_${LIB_ITEM}_LIBRARY})
|
46 |
+
endif()
|
47 |
+
endforeach()
|
48 |
+
if(WIN32)
|
49 |
+
if(TARGET PostgreSQL::PostgreSQL)
|
50 |
+
set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "Secur32.lib")
|
51 |
+
endif()
|
52 |
+
list(APPEND PostgreSQL_LIBRARIES Secur32.lib)
|
53 |
+
endif()
|
54 |
+
cmake_policy(PUSH)
|
55 |
+
cmake_policy(SET CMP0057 NEW)
|
56 |
+
set(Z_VCPKG_PORT_FEATURES "@FEATURES@")
|
57 |
+
if("openssl" IN_LIST Z_VCPKG_PORT_FEATURES)
|
58 |
+
find_package(OpenSSL REQUIRED)
|
59 |
+
if(TARGET PostgreSQL::PostgreSQL)
|
60 |
+
set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "OpenSSL::SSL")
|
61 |
+
endif()
|
62 |
+
list(APPEND PostgreSQL_LIBRARIES OpenSSL::SSL)
|
63 |
+
endif()
|
64 |
+
if(WIN32)
|
65 |
+
if(TARGET PostgreSQL::PostgreSQL)
|
66 |
+
set_property(TARGET PostgreSQL::PostgreSQL APPEND PROPERTY INTERFACE_LINK_LIBRARIES "Wldap32.lib")
|
67 |
+
endif()
|
68 |
+
list(APPEND PostgreSQL_LIBRARIES Wldap32.lib)
|
69 |
+
endif()
|
70 |
+
unset(Z_VCPKG_PORT_FEATURES)
|
71 |
+
cmake_policy(POP)
|
72 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/vcpkg-libs.props.in
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3 |
+
<PropertyGroup Condition="'$(Configuration)'=='Debug'">
|
4 |
+
<VcpkgIcuLibs>@CURRENT_INSTALLED_DIR@/debug/lib/icuind.lib;@CURRENT_INSTALLED_DIR@/debug/lib/icuucd.lib;@CURRENT_INSTALLED_DIR@/debug/lib/icudtd.lib;</VcpkgIcuLibs>
|
5 |
+
<VcpkgLz4Libs>@CURRENT_INSTALLED_DIR@/debug/lib/lz4d.lib</VcpkgLz4Libs>
|
6 |
+
<VcpkgNlsLibs>@CURRENT_INSTALLED_DIR@/debug/lib/intl.lib;@CURRENT_INSTALLED_DIR@/debug/lib/iconv.lib;@CURRENT_INSTALLED_DIR@/debug/lib/charset.lib</VcpkgNlsLibs>
|
7 |
+
<VcpkgOpensslLibs>@CURRENT_INSTALLED_DIR@/debug/lib/libssl.lib;@CURRENT_INSTALLED_DIR@/debug/lib/libcrypto.lib;crypt32.lib;ws2_32.lib;secur32.lib</VcpkgOpensslLibs>
|
8 |
+
<VcpkgPythonLibs>@CURRENT_INSTALLED_DIR@/debug/lib/python3@PYTHON_VERSION_MINOR@_d.lib</VcpkgPythonLibs>
|
9 |
+
<VcpkgTcl90Libs>@CURRENT_INSTALLED_DIR@/debug/lib/tcl90g.lib</VcpkgTcl90Libs>
|
10 |
+
<VcpkgTcl90sLibs>@CURRENT_INSTALLED_DIR@/debug/lib/tcl90sg.lib</VcpkgTcl90sLibs>
|
11 |
+
<VcpkgTcl90sxLibs>@CURRENT_INSTALLED_DIR@/debug/lib/tcl90sgx.lib</VcpkgTcl90sxLibs>
|
12 |
+
<VcpkgXmlLibs>@LIBXML2_LIBS_DEBUG@</VcpkgXmlLibs>
|
13 |
+
<VcpkgXsltLibs>@LIBXSLT_LIBS_DEBUG@</VcpkgXsltLibs>
|
14 |
+
<VcpkgZlibLibs>@CURRENT_INSTALLED_DIR@/debug/lib/zlibd.lib</VcpkgZlibLibs>
|
15 |
+
<VcpkgZstdLibs>@CURRENT_INSTALLED_DIR@/debug/lib/zstd.lib</VcpkgZstdLibs>
|
16 |
+
</PropertyGroup>
|
17 |
+
<PropertyGroup Condition="'$(Configuration)'=='Release'">
|
18 |
+
<VcpkgIcuLibs>@CURRENT_INSTALLED_DIR@/lib/icuin.lib;@CURRENT_INSTALLED_DIR@/lib/icuuc.lib;@CURRENT_INSTALLED_DIR@/lib/icudt.lib;</VcpkgIcuLibs>
|
19 |
+
<VcpkgLz4Libs>@CURRENT_INSTALLED_DIR@/lib/lz4.lib</VcpkgLz4Libs>
|
20 |
+
<VcpkgNlsLibs>@CURRENT_INSTALLED_DIR@/lib/intl.lib;@CURRENT_INSTALLED_DIR@/lib/iconv.lib;@CURRENT_INSTALLED_DIR@/lib/charset.lib</VcpkgNlsLibs>
|
21 |
+
<VcpkgOpensslLibs>@CURRENT_INSTALLED_DIR@/lib/libssl.lib;@CURRENT_INSTALLED_DIR@/lib/libcrypto.lib;crypt32.lib;ws2_32.lib;secur32.lib</VcpkgOpensslLibs>
|
22 |
+
<VcpkgPythonLibs>@CURRENT_INSTALLED_DIR@/lib/python3@[email protected]</VcpkgPythonLibs>
|
23 |
+
<VcpkgTcl90Libs>@CURRENT_INSTALLED_DIR@/lib/tcl90.lib</VcpkgTcl90Libs>
|
24 |
+
<VcpkgTcl90sLibs>@CURRENT_INSTALLED_DIR@/lib/tcl90s.lib</VcpkgTcl90sLibs>
|
25 |
+
<VcpkgTcl90sxLibs>@CURRENT_INSTALLED_DIR@/lib/tcl90sx.lib</VcpkgTcl90sxLibs>
|
26 |
+
<VcpkgXmlLibs>@LIBXML2_LIBS_RELEASE@</VcpkgXmlLibs>
|
27 |
+
<VcpkgXsltLibs>@LIBXSLT_LIBS_RELEASE@</VcpkgXsltLibs>
|
28 |
+
<VcpkgZlibLibs>@CURRENT_INSTALLED_DIR@/lib/zlib.lib</VcpkgZlibLibs>
|
29 |
+
<VcpkgZstdLibs>@CURRENT_INSTALLED_DIR@/lib/zstd.lib</VcpkgZstdLibs>
|
30 |
+
</PropertyGroup>
|
31 |
+
</Project>
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/vcpkg.json
ADDED
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libpq",
|
3 |
+
"version": "16.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "The official database access API of postgresql",
|
6 |
+
"homepage": "https://www.postgresql.org/",
|
7 |
+
"license": "PostgreSQL",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "libpq",
|
12 |
+
"default-features": false,
|
13 |
+
"features": [
|
14 |
+
"bonjour"
|
15 |
+
],
|
16 |
+
"platform": "osx"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake-get-vars",
|
20 |
+
"host": true
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "vcpkg-pkgconfig-get-modules",
|
24 |
+
"host": true,
|
25 |
+
"platform": "windows & !mingw"
|
26 |
+
}
|
27 |
+
],
|
28 |
+
"default-features": [
|
29 |
+
"lz4",
|
30 |
+
"openssl",
|
31 |
+
"zlib"
|
32 |
+
],
|
33 |
+
"features": {
|
34 |
+
"all": {
|
35 |
+
"description": "Build all supported features",
|
36 |
+
"dependencies": [
|
37 |
+
{
|
38 |
+
"name": "libpq",
|
39 |
+
"features": [
|
40 |
+
"client",
|
41 |
+
"icu",
|
42 |
+
"xml",
|
43 |
+
"xslt",
|
44 |
+
"zstd"
|
45 |
+
]
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "libpq",
|
49 |
+
"features": [
|
50 |
+
"bonjour"
|
51 |
+
],
|
52 |
+
"platform": "osx"
|
53 |
+
},
|
54 |
+
{
|
55 |
+
"name": "libpq",
|
56 |
+
"features": [
|
57 |
+
"nls"
|
58 |
+
],
|
59 |
+
"platform": "!osx"
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"name": "libpq",
|
63 |
+
"features": [
|
64 |
+
"readline"
|
65 |
+
],
|
66 |
+
"platform": "!windows"
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"name": "libpq",
|
70 |
+
"features": [
|
71 |
+
"python"
|
72 |
+
],
|
73 |
+
"platform": "!android & !mingw"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"name": "libpq",
|
77 |
+
"features": [
|
78 |
+
"tcl"
|
79 |
+
],
|
80 |
+
"platform": "windows & !mingw & !arm"
|
81 |
+
}
|
82 |
+
]
|
83 |
+
},
|
84 |
+
"bonjour": {
|
85 |
+
"description": "Build with Bonjour support",
|
86 |
+
"supports": "osx"
|
87 |
+
},
|
88 |
+
"client": {
|
89 |
+
"description": "Build all client tools and libraries"
|
90 |
+
},
|
91 |
+
"icu": {
|
92 |
+
"description": "Build with support for the ICU library",
|
93 |
+
"dependencies": [
|
94 |
+
"icu"
|
95 |
+
]
|
96 |
+
},
|
97 |
+
"lz4": {
|
98 |
+
"description": "Use lz4",
|
99 |
+
"dependencies": [
|
100 |
+
"lz4"
|
101 |
+
]
|
102 |
+
},
|
103 |
+
"nls": {
|
104 |
+
"description": "Native Language Support",
|
105 |
+
"supports": "!osx",
|
106 |
+
"dependencies": [
|
107 |
+
"gettext",
|
108 |
+
{
|
109 |
+
"name": "gettext",
|
110 |
+
"host": true,
|
111 |
+
"features": [
|
112 |
+
"tools"
|
113 |
+
],
|
114 |
+
"platform": "!windows, mingw"
|
115 |
+
}
|
116 |
+
]
|
117 |
+
},
|
118 |
+
"openssl": {
|
119 |
+
"description": "support for encrypted client connections and random number generation on platforms that do not have \"/dev/urandom\" (except windows)",
|
120 |
+
"dependencies": [
|
121 |
+
"openssl"
|
122 |
+
]
|
123 |
+
},
|
124 |
+
"python": {
|
125 |
+
"$supports": "!(windows & (static | mingw))",
|
126 |
+
"description": "build the PL/Python server programming language",
|
127 |
+
"dependencies": [
|
128 |
+
{
|
129 |
+
"name": "libpq",
|
130 |
+
"default-features": false,
|
131 |
+
"features": [
|
132 |
+
"client"
|
133 |
+
]
|
134 |
+
},
|
135 |
+
"python3"
|
136 |
+
]
|
137 |
+
},
|
138 |
+
"readline": {
|
139 |
+
"description": "Use readline",
|
140 |
+
"supports": "!windows, mingw",
|
141 |
+
"dependencies": [
|
142 |
+
"readline"
|
143 |
+
]
|
144 |
+
},
|
145 |
+
"tcl": {
|
146 |
+
"$supports": "!(windows & (static | mingw))",
|
147 |
+
"description": "build the PL/Tcl procedural language",
|
148 |
+
"supports": "windows & !mingw",
|
149 |
+
"dependencies": [
|
150 |
+
{
|
151 |
+
"name": "libpq",
|
152 |
+
"default-features": false,
|
153 |
+
"features": [
|
154 |
+
"client"
|
155 |
+
]
|
156 |
+
},
|
157 |
+
"tcl"
|
158 |
+
]
|
159 |
+
},
|
160 |
+
"xml": {
|
161 |
+
"description": "Build with libxml",
|
162 |
+
"dependencies": [
|
163 |
+
{
|
164 |
+
"name": "libxml2",
|
165 |
+
"default-features": false
|
166 |
+
}
|
167 |
+
]
|
168 |
+
},
|
169 |
+
"xslt": {
|
170 |
+
"description": "Build with libxslt",
|
171 |
+
"dependencies": [
|
172 |
+
{
|
173 |
+
"name": "libpq",
|
174 |
+
"default-features": false,
|
175 |
+
"features": [
|
176 |
+
"xml"
|
177 |
+
]
|
178 |
+
},
|
179 |
+
"libxslt"
|
180 |
+
]
|
181 |
+
},
|
182 |
+
"zlib": {
|
183 |
+
"description": "Use zlib",
|
184 |
+
"dependencies": [
|
185 |
+
"zlib"
|
186 |
+
]
|
187 |
+
},
|
188 |
+
"zstd": {
|
189 |
+
"description": "Use zstd",
|
190 |
+
"dependencies": [
|
191 |
+
"zstd"
|
192 |
+
]
|
193 |
+
}
|
194 |
+
}
|
195 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/macro-def.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/include/common/checksum_helper.h b/src/include/common/checksum_helper.h
|
2 |
+
index cac7570ea..d0ca1243c 100644
|
3 |
+
--- a/src/include/common/checksum_helper.h
|
4 |
+
+++ b/src/include/common/checksum_helper.h
|
5 |
+
@@ -33,7 +28,13 @@
|
6 |
+
*/
|
7 |
+
typedef enum pg_checksum_type
|
8 |
+
{
|
9 |
+
+#pragma push_macro("CHECKSUM_TYPE_NONE")
|
10 |
+
+#ifdef CHECKSUM_TYPE_NONE
|
11 |
+
+// winioctl.h defines CHECKSUM_TYPE_NONE to 0 as a macro.
|
12 |
+
+#undef CHECKSUM_TYPE_NONE
|
13 |
+
+#endif
|
14 |
+
CHECKSUM_TYPE_NONE,
|
15 |
+
+#pragma pop_macro("CHECKSUM_TYPE_NONE")
|
16 |
+
CHECKSUM_TYPE_CRC32C,
|
17 |
+
CHECKSUM_TYPE_SHA224,
|
18 |
+
CHECKSUM_TYPE_SHA256,
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/msbuild.patch
ADDED
@@ -0,0 +1,398 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/tools/msvc/Install.pm b/src/tools/msvc/Install.pm
|
2 |
+
index 05548d7..097db91 100644
|
3 |
+
--- a/src/tools/msvc/Install.pm
|
4 |
+
+++ b/src/tools/msvc/Install.pm
|
5 |
+
@@ -53,6 +53,11 @@ sub Install
|
6 |
+
my $target = shift;
|
7 |
+
$insttype = shift;
|
8 |
+
$insttype = "all" unless ($insttype);
|
9 |
+
+ if ($insttype eq 'core')
|
10 |
+
+ {
|
11 |
+
+ $insttype = 'client';
|
12 |
+
+ @client_program_files = ( 'libecpg','libecpg_compat', 'libpgtypes', 'libpq' );
|
13 |
+
+ }
|
14 |
+
|
15 |
+
# if called from vcregress, the config will be passed to us
|
16 |
+
# so no need to re-include these
|
17 |
+
@@ -89,7 +94,7 @@ sub Install
|
18 |
+
my $majorver = DetermineMajorVersion();
|
19 |
+
print "Installing version $majorver for $conf in $target\n";
|
20 |
+
|
21 |
+
- my @client_dirs = ('bin', 'lib', 'share', 'symbols');
|
22 |
+
+ my @client_dirs = ('bin', 'lib', 'share', 'tools', 'share/libpq', 'tools/libpq');
|
23 |
+
my @all_dirs = (
|
24 |
+
@client_dirs, 'doc', 'doc/contrib', 'doc/extension', 'share/contrib',
|
25 |
+
'share/extension', 'share/timezonesets', 'share/tsearch_data');
|
26 |
+
@@ -117,11 +122,11 @@ sub Install
|
27 |
+
}
|
28 |
+
},
|
29 |
+
@top_dir);
|
30 |
+
- CopySetOfFiles('config files', $sample_files, $target . '/share/');
|
31 |
+
+ CopySetOfFiles('config files', $sample_files, $target . '/share/libpq/');
|
32 |
+
CopyFiles(
|
33 |
+
'Import libraries',
|
34 |
+
$target . '/lib/',
|
35 |
+
- "$conf\\", "postgres\\postgres.lib", "libpgcommon\\libpgcommon.lib",
|
36 |
+
+ "$conf\\", "libpgcommon\\libpgcommon.lib",
|
37 |
+
"libpgport\\libpgport.lib");
|
38 |
+
CopyContribFiles($config, $target);
|
39 |
+
CopyIncludeFiles($target);
|
40 |
+
@@ -293,7 +298,16 @@ sub CopySolutionOutput
|
41 |
+
{
|
42 |
+
if ($1 == 1)
|
43 |
+
{
|
44 |
+
- push(@{ $install_list{'bin'} }, "exe");
|
45 |
+
+ push(@{ $install_list{'tools\\libpq'} }, "exe");
|
46 |
+
+ }
|
47 |
+
+ elsif ($1 == 2)
|
48 |
+
+ {
|
49 |
+
+ push(@{ $install_list{'bin'} }, "dll");
|
50 |
+
+ push(@{ $install_list{'lib'} }, "lib") if $is_sharedlib; # not for plugins
|
51 |
+
+ }
|
52 |
+
+ elsif ($is_sharedlib) # forced to static lib by vcpkg triplet
|
53 |
+
+ {
|
54 |
+
+ push(@{ $install_list{'lib'} }, "lib");
|
55 |
+
}
|
56 |
+
elsif ($1 == 2)
|
57 |
+
{
|
58 |
+
@@ -317,7 +331,16 @@ sub CopySolutionOutput
|
59 |
+
{
|
60 |
+
if ($1 eq 'Application')
|
61 |
+
{
|
62 |
+
- push(@{ $install_list{'bin'} }, "exe");
|
63 |
+
+ push(@{ $install_list{'tools\\libpq'} }, "exe");
|
64 |
+
+ }
|
65 |
+
+ elsif ($1 eq 'DynamicLibrary')
|
66 |
+
+ {
|
67 |
+
+ push(@{ $install_list{'bin'} }, "dll");
|
68 |
+
+ push(@{ $install_list{'lib'} }, "lib") if $is_sharedlib; # not for plugins
|
69 |
+
+ }
|
70 |
+
+ elsif ($is_sharedlib) # forced to static lib by vcpkg triplet
|
71 |
+
+ {
|
72 |
+
+ push(@{ $install_list{'lib'} }, "lib");
|
73 |
+
}
|
74 |
+
elsif ($1 eq 'DynamicLibrary')
|
75 |
+
{
|
76 |
+
@@ -350,7 +373,8 @@ sub CopySolutionOutput
|
77 |
+
|| croak "Could not copy $pf.$ext\n";
|
78 |
+
}
|
79 |
+
}
|
80 |
+
- lcopy("$conf\\$pf\\$pf.pdb", "$target\\symbols\\$pf.pdb")
|
81 |
+
+ $1 ne 'DynamicLibrary' ||
|
82 |
+
+ lcopy("$conf\\$pf\\$pf.pdb", "$target\\bin\\$pf.pdb")
|
83 |
+
|| croak "Could not copy $pf.pdb\n";
|
84 |
+
print ".";
|
85 |
+
}
|
86 |
+
@@ -453,7 +477,7 @@ sub CopySubdirFiles
|
87 |
+
foreach my $f (split /\s+/, $flist)
|
88 |
+
{
|
89 |
+
lcopy("$subdir/$module/$f.control",
|
90 |
+
- "$target/share/extension/$f.control")
|
91 |
+
+ "$target/share/libpq/extension/$f.control")
|
92 |
+
|| croak("Could not copy file $f.control in contrib $module");
|
93 |
+
print '.';
|
94 |
+
}
|
95 |
+
@@ -471,7 +495,7 @@ sub CopySubdirFiles
|
96 |
+
foreach my $f (split /\s+/, $flist)
|
97 |
+
{
|
98 |
+
lcopy("$subdir/$module/$f",
|
99 |
+
- "$target/share/$moduledir/" . basename($f))
|
100 |
+
+ "$target/share/libpq/$moduledir/" . basename($f))
|
101 |
+
|| croak("Could not copy file $f in contrib $module");
|
102 |
+
print '.';
|
103 |
+
}
|
104 |
+
@@ -486,7 +510,7 @@ sub CopySubdirFiles
|
105 |
+
foreach my $f (split /\s+/, $flist)
|
106 |
+
{
|
107 |
+
lcopy("$subdir/$module/$f",
|
108 |
+
- "$target/share/tsearch_data/" . basename($f))
|
109 |
+
+ "$target/share/libpq/tsearch_data/" . basename($f))
|
110 |
+
|| croak("Could not copy file $f in $subdir $module");
|
111 |
+
print '.';
|
112 |
+
}
|
113 |
+
@@ -549,7 +573,7 @@ sub CopySubdirFiles
|
114 |
+
if ($module eq 'spi');
|
115 |
+
foreach my $f (split /\s+/, $flist)
|
116 |
+
{
|
117 |
+
- lcopy("$subdir/$module/$f", "$target/doc/$moduledir/$f")
|
118 |
+
+ lcopy("$subdir/$module/$f", "$target/share/libpq/doc/$moduledir/$f")
|
119 |
+
|| croak("Could not copy file $f in contrib $module");
|
120 |
+
print '.';
|
121 |
+
}
|
122 |
+
@@ -675,7 +699,7 @@ sub GenerateNLSFiles
|
123 |
+
my $majorver = shift;
|
124 |
+
|
125 |
+
print "Installing NLS files...";
|
126 |
+
- EnsureDirectories($target, "share/locale");
|
127 |
+
+ EnsureDirectories($target, "share/libpq/locale");
|
128 |
+
my @flist;
|
129 |
+
File::Find::find(
|
130 |
+
{
|
131 |
+
@@ -697,12 +721,12 @@ sub GenerateNLSFiles
|
132 |
+
next unless /([^\/]+)\.po/;
|
133 |
+
$lang = $1;
|
134 |
+
|
135 |
+
- EnsureDirectories($target, "share/locale/$lang",
|
136 |
+
- "share/locale/$lang/LC_MESSAGES");
|
137 |
+
+ EnsureDirectories($target, "share/libpq/locale/$lang",
|
138 |
+
+ "share/libpq/locale/$lang/LC_MESSAGES");
|
139 |
+
my @args = (
|
140 |
+
- "$nlspath\\bin\\msgfmt",
|
141 |
+
+ "msgfmt",
|
142 |
+
'-o',
|
143 |
+
- "$target\\share\\locale\\$lang\\LC_MESSAGES\\$prgm-$majorver.mo",
|
144 |
+
+ "$target\\share\\libpq\\locale\\$lang\\LC_MESSAGES\\$prgm-$majorver.mo",
|
145 |
+
$_);
|
146 |
+
system(@args) && croak("Could not run msgfmt on $dir\\$_");
|
147 |
+
print ".";
|
148 |
+
diff --git a/src/tools/msvc/MSBuildProject.pm b/src/tools/msvc/MSBuildProject.pm
|
149 |
+
index 62fec1f..ecb1b86 100644
|
150 |
+
--- a/src/tools/msvc/MSBuildProject.pm
|
151 |
+
+++ b/src/tools/msvc/MSBuildProject.pm
|
152 |
+
@@ -80,14 +80,14 @@ EOF
|
153 |
+
print $f <<EOF;
|
154 |
+
</PropertyGroup>
|
155 |
+
EOF
|
156 |
+
-
|
157 |
+
+ my $maybe_dll = $self->{solution}->{options}->{VCPKG_CRT_LINKAGE} eq 'dynamic' ? "DLL" : '';
|
158 |
+
$self->WriteItemDefinitionGroup(
|
159 |
+
$f, 'Debug',
|
160 |
+
{
|
161 |
+
defs => "_DEBUG;DEBUG=1",
|
162 |
+
opt => 'Disabled',
|
163 |
+
strpool => 'false',
|
164 |
+
- runtime => 'MultiThreadedDebugDLL'
|
165 |
+
+ runtime => 'MultiThreadedDebug' . $maybe_dll
|
166 |
+
});
|
167 |
+
$self->WriteItemDefinitionGroup(
|
168 |
+
$f,
|
169 |
+
@@ -96,7 +96,7 @@ EOF
|
170 |
+
defs => "",
|
171 |
+
opt => 'Full',
|
172 |
+
strpool => 'true',
|
173 |
+
- runtime => 'MultiThreadedDLL'
|
174 |
+
+ runtime => 'MultiThreaded' . $maybe_dll
|
175 |
+
});
|
176 |
+
return;
|
177 |
+
}
|
178 |
+
@@ -266,6 +266,8 @@ sub WriteConfigurationPropertyGroup
|
179 |
+
($self->{type} eq "exe")
|
180 |
+
? 'Application'
|
181 |
+
: ($self->{type} eq "dll" ? 'DynamicLibrary' : 'StaticLibrary');
|
182 |
+
+ if ($self->{solution}->{options}->{VCPKG_LIBRARY_LINKAGE} eq 'static')
|
183 |
+
+ { $cfgtype =~ s/DynamicLibrary/StaticLibrary/; }
|
184 |
+
|
185 |
+
print $f <<EOF;
|
186 |
+
<PropertyGroup Condition="'\$(Configuration)|\$(Platform)'=='$cfgname|$self->{platform}'" Label="Configuration">
|
187 |
+
@@ -311,7 +313,9 @@ sub WriteItemDefinitionGroup
|
188 |
+
my $libs = $self->GetAdditionalLinkerDependencies($cfgname, ';');
|
189 |
+
|
190 |
+
my $targetmachine =
|
191 |
+
- $self->{platform} eq 'Win32' ? 'MachineX86' : 'MachineX64';
|
192 |
+
+ 'Machine' . uc($self->{platform});
|
193 |
+
+ $targetmachine =~ s/WIN32/X86/;
|
194 |
+
+ my $randomizebase = ($self->{platform} =~ /^ARM/) ? 'true' : 'false';
|
195 |
+
my $arch = $self->{platform} eq 'Win32' ? 'x86' : 'x86_64';
|
196 |
+
|
197 |
+
my $includes = join ';', @{ $self->{includes} }, "";
|
198 |
+
diff --git a/src/tools/msvc/Mkvcbuild.pm b/src/tools/msvc/Mkvcbuild.pm
|
199 |
+
index 9e05eb9..8ac0a5d 100644
|
200 |
+
--- a/src/tools/msvc/Mkvcbuild.pm
|
201 |
+
+++ b/src/tools/msvc/Mkvcbuild.pm
|
202 |
+
@@ -125,8 +125,10 @@ sub mkvcbuild
|
203 |
+
|
204 |
+
if ($vsVersion >= '9.00')
|
205 |
+
{
|
206 |
+
+ if ($solution->{platform} !~ /^ARM/) {
|
207 |
+
push(@pgportfiles, 'pg_crc32c_sse42_choose.c');
|
208 |
+
push(@pgportfiles, 'pg_crc32c_sse42.c');
|
209 |
+
+ }
|
210 |
+
push(@pgportfiles, 'pg_crc32c_sb8.c');
|
211 |
+
}
|
212 |
+
else
|
213 |
+
@@ -208,6 +210,7 @@ sub mkvcbuild
|
214 |
+
'syncrep_gram.y');
|
215 |
+
$postgres->AddFiles('src/backend/utils/adt', 'jsonpath_scan.l',
|
216 |
+
'jsonpath_gram.y');
|
217 |
+
+ ($config->{VCPKG_LIBRARY_LINKAGE} eq 'dynamic') &&
|
218 |
+
$postgres->AddDefine('BUILDING_DLL');
|
219 |
+
$postgres->AddLibrary('secur32.lib');
|
220 |
+
$postgres->AddLibrary('ws2_32.lib');
|
221 |
+
@@ -252,12 +255,13 @@ sub mkvcbuild
|
222 |
+
$pltcl->AddIncludeDir($solution->{options}->{tcl} . '/include');
|
223 |
+
$pltcl->AddReference($postgres);
|
224 |
+
|
225 |
+
- for my $tclver (qw(86t 86 85 84))
|
226 |
+
+ my $v = $solution->{options}->{tcl_version};
|
227 |
+
+ for my $tclver ( ("${v}","${v}s","${v}sx") )
|
228 |
+
{
|
229 |
+
my $tcllib = $solution->{options}->{tcl} . "/lib/tcl$tclver.lib";
|
230 |
+
if (-e $tcllib)
|
231 |
+
{
|
232 |
+
- $pltcl->AddLibrary($tcllib);
|
233 |
+
+ $pltcl->AddLibrary("\$(VcpkgTcl${tclver}Libs)");
|
234 |
+
$found = 1;
|
235 |
+
last;
|
236 |
+
}
|
237 |
+
@@ -512,8 +516,7 @@ sub mkvcbuild
|
238 |
+
. "print(str(sys.version_info[0])+str(sys.version_info[1]))";
|
239 |
+
my $prefixcmd =
|
240 |
+
qq("$solution->{options}->{python}\\python" -c "$pythonprog");
|
241 |
+
- my $pyout = `$prefixcmd`;
|
242 |
+
- die "Could not query for python version!\n" if $?;
|
243 |
+
+ my $pyout = "$solution->{options}->{python}\n$solution->{options}->{python_version}";
|
244 |
+
my ($pyprefix, $pyver) = split(/\r?\n/, $pyout);
|
245 |
+
|
246 |
+
# Sometimes (always?) if python is not present, the execution
|
247 |
+
@@ -529,8 +532,8 @@ sub mkvcbuild
|
248 |
+
|
249 |
+
my $plpython = $solution->AddProject('plpython' . $pymajorver,
|
250 |
+
'dll', 'PLs', 'src/pl/plpython');
|
251 |
+
- $plpython->AddIncludeDir($pyprefix . '/include');
|
252 |
+
- $plpython->AddLibrary($pyprefix . "/Libs/python$pyver.lib");
|
253 |
+
+ $plpython->AddIncludeDir($pyprefix . "/include/python$pyver");
|
254 |
+
+ $plpython->AddLibrary('$(VcpkgPythonLibs)');
|
255 |
+
$plpython->AddReference($postgres);
|
256 |
+
|
257 |
+
# Add transform modules dependent on plpython
|
258 |
+
diff --git a/src/tools/msvc/Project.pm b/src/tools/msvc/Project.pm
|
259 |
+
index 0507ad0..48caab9 100644
|
260 |
+
--- a/src/tools/msvc/Project.pm
|
261 |
+
+++ b/src/tools/msvc/Project.pm
|
262 |
+
@@ -167,6 +167,11 @@ sub AddReference
|
263 |
+
}
|
264 |
+
$self->AddLibrary(
|
265 |
+
"__CFGNAME__/" . $ref->{name} . "/" . $ref->{name} . ".lib");
|
266 |
+
+
|
267 |
+
+ if ($self->{solution}->{options}->{VCPKG_LIBRARY_LINKAGE} eq 'static')
|
268 |
+
+ {
|
269 |
+
+ map { $self->AddLibrary($_) } @{ $ref->{libraries} };
|
270 |
+
+ }
|
271 |
+
}
|
272 |
+
return;
|
273 |
+
}
|
274 |
+
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
|
275 |
+
index b6d31c3..27d89fc 100644
|
276 |
+
--- a/src/tools/msvc/Solution.pm
|
277 |
+
+++ b/src/tools/msvc/Solution.pm
|
278 |
+
@@ -63,6 +63,11 @@ sub DeterminePlatform
|
279 |
+
my $self = shift;
|
280 |
+
|
281 |
+
if ($^O eq "MSWin32")
|
282 |
+
+ {
|
283 |
+
+ $self->{platform} = uc($self->{options}->{VCPKG_TARGET_ARCHITECTURE});
|
284 |
+
+ $self->{platform} =~ s/^X86$/Win32/;
|
285 |
+
+ }
|
286 |
+
+ elsif (0)
|
287 |
+
{
|
288 |
+
# Examine CL help output to determine if we are in 32 or 64-bit mode.
|
289 |
+
my $output = `cl /help 2>&1`;
|
290 |
+
@@ -124,6 +129,9 @@ sub copyFile
|
291 |
+
sub GetOpenSSLVersion
|
292 |
+
{
|
293 |
+
my $self = shift;
|
294 |
+
+ if ($self->{options}->{openssl_version} =~ /(\d+)\.(\d+)\.(\d+)/m) {
|
295 |
+
+ return ($1, $2, $3);
|
296 |
+
+ }
|
297 |
+
|
298 |
+
# Attempt to get OpenSSL version and location. This assumes that
|
299 |
+
# openssl.exe is in the specified directory.
|
300 |
+
@@ -148,7 +156,7 @@ sub GetOpenSSLVersion
|
301 |
+
sub GenerateFiles
|
302 |
+
{
|
303 |
+
my $self = shift;
|
304 |
+
- my $bits = $self->{platform} eq 'Win32' ? 32 : 64;
|
305 |
+
+ my $bits = $self->{platform} =~ /64/ ? 64 : 32;
|
306 |
+
my $ac_init_found = 0;
|
307 |
+
my $package_name;
|
308 |
+
my $package_version;
|
309 |
+
@@ -440,7 +448,7 @@ sub GenerateFiles
|
310 |
+
USE_PAM => undef,
|
311 |
+
USE_SLICING_BY_8_CRC32C => undef,
|
312 |
+
USE_SSE42_CRC32C => undef,
|
313 |
+
- USE_SSE42_CRC32C_WITH_RUNTIME_CHECK => 1,
|
314 |
+
+ USE_SSE42_CRC32C_WITH_RUNTIME_CHECK => $self->{platform} =~ /^ARM/ ? undef : 1,
|
315 |
+
USE_SYSTEMD => undef,
|
316 |
+
USE_SYSV_SEMAPHORES => undef,
|
317 |
+
USE_SYSV_SHARED_MEMORY => undef,
|
318 |
+
@@ -725,14 +733,14 @@ sub GenerateFiles
|
319 |
+
|| confess "Could not open pg_config_paths.h";
|
320 |
+
print $o <<EOF;
|
321 |
+
#define PGBINDIR "/bin"
|
322 |
+
-#define PGSHAREDIR "/share"
|
323 |
+
+#define PGSHAREDIR "/share/libpq"
|
324 |
+
#define SYSCONFDIR "/etc"
|
325 |
+
#define INCLUDEDIR "/include"
|
326 |
+
#define PKGINCLUDEDIR "/include"
|
327 |
+
#define INCLUDEDIRSERVER "/include/server"
|
328 |
+
#define LIBDIR "/lib"
|
329 |
+
#define PKGLIBDIR "/lib"
|
330 |
+
-#define LOCALEDIR "/share/locale"
|
331 |
+
+#define LOCALEDIR "/share/libpq/locale"
|
332 |
+
#define DOCDIR "/doc"
|
333 |
+
#define HTMLDIR "/doc"
|
334 |
+
#define MANDIR "/man"
|
335 |
+
@@ -957,11 +965,15 @@ sub AddProject
|
336 |
+
if ($self->{options}->{zlib})
|
337 |
+
{
|
338 |
+
$proj->AddIncludeDir($self->{options}->{zlib} . '\include');
|
339 |
+
- $proj->AddLibrary($self->{options}->{zlib} . '\lib\zdll.lib');
|
340 |
+
+ $proj->AddLibrary('$(VcpkgZlibLibs)');
|
341 |
+
}
|
342 |
+
if ($self->{options}->{openssl})
|
343 |
+
{
|
344 |
+
$proj->AddIncludeDir($self->{options}->{openssl} . '\include');
|
345 |
+
+ $proj->AddLibrary('$(VcpkgOpensslLibs)');
|
346 |
+
+ }
|
347 |
+
+ elsif (0)
|
348 |
+
+ {
|
349 |
+
my ($digit1, $digit2, $digit3) = $self->GetOpenSSLVersion();
|
350 |
+
|
351 |
+
# Starting at version 1.1.0 the OpenSSL installers have
|
352 |
+
@@ -1032,7 +1044,7 @@ sub AddProject
|
353 |
+
if ($self->{options}->{nls})
|
354 |
+
{
|
355 |
+
$proj->AddIncludeDir($self->{options}->{nls} . '\include');
|
356 |
+
- $proj->AddLibrary($self->{options}->{nls} . '\lib\libintl.lib');
|
357 |
+
+ $proj->AddLibrary('$(VcpkgNlsLibs)');
|
358 |
+
}
|
359 |
+
if ($self->{options}->{gss})
|
360 |
+
{
|
361 |
+
@@ -1065,6 +1077,10 @@ sub AddProject
|
362 |
+
if ($self->{options}->{icu})
|
363 |
+
{
|
364 |
+
$proj->AddIncludeDir($self->{options}->{icu} . '\include');
|
365 |
+
+ $proj->AddLibrary('$(VcpkgIcuLibs)');
|
366 |
+
+ }
|
367 |
+
+ elsif (0)
|
368 |
+
+ {
|
369 |
+
if ($self->{platform} eq 'Win32')
|
370 |
+
{
|
371 |
+
$proj->AddLibrary($self->{options}->{icu} . '\lib\icuin.lib');
|
372 |
+
@@ -1082,22 +1098,22 @@ sub AddProject
|
373 |
+
{
|
374 |
+
$proj->AddIncludeDir($self->{options}->{xml} . '\include');
|
375 |
+
$proj->AddIncludeDir($self->{options}->{xml} . '\include\libxml2');
|
376 |
+
- $proj->AddLibrary($self->{options}->{xml} . '\lib\libxml2.lib');
|
377 |
+
+ $proj->AddLibrary('$(VcpkgXmlLibs)');
|
378 |
+
}
|
379 |
+
if ($self->{options}->{xslt})
|
380 |
+
{
|
381 |
+
$proj->AddIncludeDir($self->{options}->{xslt} . '\include');
|
382 |
+
- $proj->AddLibrary($self->{options}->{xslt} . '\lib\libxslt.lib');
|
383 |
+
+ $proj->AddLibrary('$(VcpkgXsltLibs)');
|
384 |
+
}
|
385 |
+
if ($self->{options}->{lz4})
|
386 |
+
{
|
387 |
+
$proj->AddIncludeDir($self->{options}->{lz4} . '\include');
|
388 |
+
- $proj->AddLibrary($self->{options}->{lz4} . '\lib\liblz4.lib');
|
389 |
+
+ $proj->AddLibrary('$(VcpkgLz4Libs)');
|
390 |
+
}
|
391 |
+
if ($self->{options}->{zstd})
|
392 |
+
{
|
393 |
+
$proj->AddIncludeDir($self->{options}->{zstd} . '\include');
|
394 |
+
- $proj->AddLibrary($self->{options}->{zstd} . '\lib\libzstd.lib');
|
395 |
+
+ $proj->AddLibrary('$(VcpkgZstdLibs)');
|
396 |
+
}
|
397 |
+
if ($self->{options}->{uuid})
|
398 |
+
{
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/spin_delay.patch
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h
|
2 |
+
index 4d3ffc7..658b1a1 100644
|
3 |
+
--- a/src/include/storage/s_lock.h
|
4 |
+
+++ b/src/include/storage/s_lock.h
|
5 |
+
@@ -953,12 +953,18 @@ typedef LONG slock_t;
|
6 |
+
/* If using Visual C++ on Win64, inline assembly is unavailable.
|
7 |
+
* Use a _mm_pause intrinsic instead of rep nop.
|
8 |
+
*/
|
9 |
+
-#if defined(_WIN64)
|
10 |
+
+#if defined(_M_X64) && !defined(_M_ARM64EC)
|
11 |
+
static __forceinline void
|
12 |
+
spin_delay(void)
|
13 |
+
{
|
14 |
+
_mm_pause();
|
15 |
+
}
|
16 |
+
+#elif defined(_M_ARM) || defined(_M_ARM64) || defined(_M_ARM64EC)
|
17 |
+
+static __forceinline void
|
18 |
+
+spin_delay(void)
|
19 |
+
+{
|
20 |
+
+ __yield();
|
21 |
+
+}
|
22 |
+
#else
|
23 |
+
static __forceinline void
|
24 |
+
spin_delay(void)
|
cc-multilingual-main/cc_net/vcpkg/ports/libpq/windows/win_bison_flex.patch
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/tools/msvc/pgbison.pl b/src/tools/msvc/pgbison.pl
|
2 |
+
index 25df669..373bedd 100644
|
3 |
+
--- a/src/tools/msvc/pgbison.pl
|
4 |
+
+++ b/src/tools/msvc/pgbison.pl
|
5 |
+
@@ -13,7 +13,7 @@ use File::Basename;
|
6 |
+
|
7 |
+
do './src/tools/msvc/buildenv.pl' if -e 'src/tools/msvc/buildenv.pl';
|
8 |
+
|
9 |
+
-my ($bisonver) = `bison -V`; # grab first line
|
10 |
+
+my ($bisonver) = `win_bison -V`; # grab first line
|
11 |
+
$bisonver = (split(/\s+/, $bisonver))[3]; # grab version number
|
12 |
+
|
13 |
+
unless ($bisonver ge '2.3')
|
14 |
+
@@ -51,5 +51,5 @@ my $headerflag = ($make =~ /^$basetarg:\s+BISONFLAGS\b.*-d/m ? '-d' : '');
|
15 |
+
|
16 |
+
my $nodep = $bisonver ge '3.0' ? "-Wno-deprecated" : "";
|
17 |
+
|
18 |
+
-system("bison $nodep $headerflag $input -o $output");
|
19 |
+
+system("win_bison $nodep $headerflag $input -o $output");
|
20 |
+
exit $? >> 8;
|
21 |
+
diff --git a/src/tools/msvc/pgflex.pl b/src/tools/msvc/pgflex.pl
|
22 |
+
index c308a08..0807ce7 100644
|
23 |
+
--- a/src/tools/msvc/pgflex.pl
|
24 |
+
+++ b/src/tools/msvc/pgflex.pl
|
25 |
+
@@ -16,7 +16,7 @@ $ENV{CYGWIN} = 'nodosfilewarning';
|
26 |
+
|
27 |
+
do './src/tools/msvc/buildenv.pl' if -e 'src/tools/msvc/buildenv.pl';
|
28 |
+
|
29 |
+
-my ($flexver) = `flex -V`; # grab first line
|
30 |
+
+my ($flexver) = `win_flex -V`; # grab first line
|
31 |
+
$flexver = (split(/\s+/, $flexver))[1];
|
32 |
+
$flexver =~ s/[^0-9.]//g;
|
33 |
+
my @verparts = split(/\./, $flexver);
|
34 |
+
@@ -52,7 +52,7 @@ close($mf);
|
35 |
+
my $basetarg = basename($output);
|
36 |
+
my $flexflags = ($make =~ /^$basetarg:\s*FLEXFLAGS\s*=\s*(\S.*)/m ? $1 : '');
|
37 |
+
|
38 |
+
-system("flex $flexflags -o$output $input");
|
39 |
+
+system("win_flex $flexflags -o$output $input");
|
40 |
+
if ($? == 0)
|
41 |
+
{
|
42 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/libsamplerate/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libsndfile/libsamplerate
|
4 |
+
REF 0.2.2
|
5 |
+
SHA512 37e0fd604907caf978659466289315befd66eec16c21a94e0b6106de18ffe803fbf2e7f3a8fb0430b33c0b784ecd6d4eaf3b9a862ed2670104647decbee913d6
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DBUILD_TESTING=OFF
|
13 |
+
-DLIBSAMPLERATE_EXAMPLES=OFF
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SampleRate PACKAGE_NAME SampleRate)
|
19 |
+
vcpkg_fixup_pkgconfig()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
24 |
+
|
25 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
26 |
+
|
27 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/libuvc/build_fix.patch
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index fbaffc9..451b689 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -39,10 +39,11 @@ set(SOURCES
|
6 |
+
src/misc.c
|
7 |
+
)
|
8 |
+
|
9 |
+
-find_package(LibUSB)
|
10 |
+
+FIND_PACKAGE(PkgConfig REQUIRED)
|
11 |
+
+pkg_check_modules(libusb REQUIRED IMPORTED_TARGET libusb-1.0)
|
12 |
+
|
13 |
+
# JpegPkg name to differ from shipped with CMake
|
14 |
+
-find_package(JpegPkg QUIET)
|
15 |
+
+find_package(JPEG REQUIRED)
|
16 |
+
if(JPEG_FOUND)
|
17 |
+
message(STATUS "Building libuvc with JPEG support.")
|
18 |
+
set(LIBUVC_HAS_JPEG TRUE)
|
19 |
+
@@ -116,7 +117,7 @@ foreach(target_name IN LISTS UVC_TARGETS)
|
20 |
+
)
|
21 |
+
target_link_libraries(${target_name}
|
22 |
+
# libusb-1.0 used internally so we link to it privately.
|
23 |
+
- PRIVATE LibUSB::LibUSB ${threads}
|
24 |
+
+ PRIVATE PkgConfig::libusb ${threads}
|
25 |
+
)
|
26 |
+
if(JPEG_FOUND)
|
27 |
+
target_link_libraries(${target_name}
|
28 |
+
diff --git a/libuvcConfig.cmake b/libuvcConfig.cmake
|
29 |
+
index b9887ea..c704ab5 100644
|
30 |
+
--- a/libuvcConfig.cmake
|
31 |
+
+++ b/libuvcConfig.cmake
|
32 |
+
@@ -10,8 +10,11 @@ if(${CMAKE_FIND_PACKAGE_NAME}_FIND_REQUIRED)
|
33 |
+
list(APPEND extraArgs REQUIRED)
|
34 |
+
endif()
|
35 |
+
|
36 |
+
-find_package(JpegPkg ${extraArgs})
|
37 |
+
-find_package(LibUSB ${extraArgs})
|
38 |
+
+include(CMakeFindDependencyMacro)
|
39 |
+
+find_dependency(JPEG ${extraArgs})
|
40 |
+
+find_dependency(Threads)
|
41 |
+
+find_package(PkgConfig REQUIRED)
|
42 |
+
+pkg_check_modules(libusb REQUIRED IMPORTED_TARGET libusb-1.0)
|
43 |
+
include("${CMAKE_CURRENT_LIST_DIR}/libuvcTargets.cmake")
|
44 |
+
|
45 |
+
set(libuvc_FOUND TRUE)
|
cc-multilingual-main/cc_net/vcpkg/ports/libuvc/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libuvc/libuvc
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 cf2c0a6cc04717f284f25bed17f178a4b2b2a2bb3e5937e50be144e88db2c481c5ea763c164fe0234834fea4837f96fcc13bdbdafd4610d2985943562dfcc72f
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES build_fix.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
11 |
+
set(BUILD_TARGET "Shared")
|
12 |
+
else()
|
13 |
+
set(BUILD_TARGET "Static")
|
14 |
+
endif()
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
OPTIONS
|
19 |
+
-DCMAKE_BUILD_TARGET=${BUILD_TARGET}
|
20 |
+
-DBUILD_EXAMPLE=OFF
|
21 |
+
)
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME libuvc CONFIG_PATH lib/cmake/libuvc)
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
29 |
+
|
30 |
+
vcpkg_fixup_pkgconfig()
|
31 |
+
# Handle copyright
|
32 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/libuvc/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libuvc",
|
3 |
+
"version": "0.0.7",
|
4 |
+
"description": "a cross-platform library for USB video devices",
|
5 |
+
"homepage": "https://github.com/libuvc/libuvc",
|
6 |
+
"supports": "linux",
|
7 |
+
"dependencies": [
|
8 |
+
"libjpeg-turbo",
|
9 |
+
"libusb",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/licensepp/0001-use-old-pem-pack.patch
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From d1b446c7a69344cb53be6692cd76186960a1428d Mon Sep 17 00:00:00 2001
|
2 |
+
From: Nicole Mazzuca <[email protected]>
|
3 |
+
Date: Wed, 23 Sep 2020 09:40:32 -0700
|
4 |
+
Subject: [PATCH 1/2] use old pem pack
|
5 |
+
|
6 |
+
In this commit: https://github.com/noloader/cryptopp-pem/commit/0cfa60820ec1d5e8ac4d77a0a8786ee43e9a2400
|
7 |
+
the parameter orders have been changed.
|
8 |
+
But we cannot update pem-pack to this version or newer because it
|
9 |
+
wont compile with the current version of cryptopp in vcpkg.
|
10 |
+
---
|
11 |
+
src/external/Ripe.cc | 2 +-
|
12 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
13 |
+
|
14 |
+
diff --git a/src/external/Ripe.cc b/src/external/Ripe.cc
|
15 |
+
index 6ff9561..a1d1eec 100644
|
16 |
+
--- a/src/external/Ripe.cc
|
17 |
+
+++ b/src/external/Ripe.cc
|
18 |
+
@@ -227,7 +227,7 @@ Ripe::KeyPair Ripe::generateRSAKeyPair(unsigned int length, const std::string& s
|
19 |
+
if (secret.empty()) {
|
20 |
+
PEM_Save(snk, privateKey);
|
21 |
+
} else {
|
22 |
+
- PEM_Save(snk, privateKey, rng, PRIVATE_RSA_ALGORITHM, secret.data(), secret.size());
|
23 |
+
+ PEM_Save(snk, rng, privateKey, PRIVATE_RSA_ALGORITHM, secret.data(), secret.size());
|
24 |
+
}
|
25 |
+
snk.MessageEnd();
|
26 |
+
}
|
27 |
+
--
|
28 |
+
2.24.3 (Apple Git-128)
|
29 |
+
|