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/argon2/CMakeLists.txt +75 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/portfile.cmake +48 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/thread-header.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/unofficial-argon2-config.cmake +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/unofficial-libargon2-config.cmake +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/vcpkg.json +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/visibility-for-tool.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/argon2/visibility.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/bitserializer/portfile.cmake +39 -0
- cc-multilingual-main/cc_net/vcpkg/ports/bitserializer/usage +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/bitserializer/vcpkg.json +46 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-optional/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-optional/vcpkg.json +54 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/FindJXR.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/guiddef.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/vcpkg.json +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57format/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57format/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57format/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/add_support_ios.patch +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/build-tools.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/fix_config_include.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/portfile.cmake +87 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/usage +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/vcpkg-cmake-wrapper.cmake +64 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/vcpkg.json +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/liblzma/win_output_name.patch +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxdiff/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxml2/disable-docs.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxml2/fix_cmakelist.patch +119 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxml2/portfile.cmake +89 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxml2/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxml2/vcpkg-cmake-wrapper.cmake +3 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libxml2/vcpkg.json +62 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mapbox-polylabel/portfile.cmake +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mapbox-polylabel/vcpkg.json +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nsync/export-targets.patch +36 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nsync/fix-install.patch +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nsync/portfile.cmake +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nsync/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/oof/portfile.cmake +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/oof/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/outcome/portfile.cmake +59 -0
- cc-multilingual-main/cc_net/vcpkg/ports/outcome/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/outcome/vcpkg.json +60 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pffft/CMakeLists.txt +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pffft/fix-invalid-command.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pffft/vcpkg.json +18 -0
cc-multilingual-main/cc_net/vcpkg/ports/argon2/CMakeLists.txt
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.25)
|
2 |
+
|
3 |
+
project(argon2 LANGUAGES C)
|
4 |
+
|
5 |
+
option(WITH_OPTIMIZATIONS "Enable SSE2/AVX2/AVX512 optimizations")
|
6 |
+
option(BUILD_TOOL "Build the tool" OFF)
|
7 |
+
|
8 |
+
if(BUILD_SHARED_LIBS)
|
9 |
+
if(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
10 |
+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden")
|
11 |
+
endif()
|
12 |
+
endif()
|
13 |
+
|
14 |
+
find_package(Threads REQUIRED)
|
15 |
+
|
16 |
+
set(ARGON2_HEADERS
|
17 |
+
include/argon2.h
|
18 |
+
)
|
19 |
+
|
20 |
+
set (ARGON2_SRC
|
21 |
+
src/argon2.c
|
22 |
+
src/core.c
|
23 |
+
src/blake2/blake2b.c
|
24 |
+
src/thread.c
|
25 |
+
src/encoding.c
|
26 |
+
)
|
27 |
+
if (WITH_OPTIMIZATIONS)
|
28 |
+
list(APPEND ARGON2_SRC src/opt.c)
|
29 |
+
else()
|
30 |
+
list(APPEND ARGON2_SRC src/ref.c)
|
31 |
+
endif()
|
32 |
+
|
33 |
+
add_library(libargon2 ${ARGON2_SRC})
|
34 |
+
set_target_properties(libargon2 PROPERTIES OUTPUT_NAME argon2)
|
35 |
+
target_include_directories(libargon2 PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<INSTALL_INTERFACE:include> PRIVATE src)
|
36 |
+
target_link_libraries(libargon2 PRIVATE Threads::Threads)
|
37 |
+
if(BUILD_SHARED_LIBS)
|
38 |
+
if(WIN32)
|
39 |
+
target_compile_definitions(libargon2 PRIVATE "BUILDING_ARGON2_DLL" INTERFACE "USING_ARGON2_DLL")
|
40 |
+
else()
|
41 |
+
target_compile_definitions(libargon2 PRIVATE "A2_VISCTL")
|
42 |
+
endif()
|
43 |
+
endif()
|
44 |
+
|
45 |
+
install(TARGETS libargon2
|
46 |
+
EXPORT unofficial-argon2-targets
|
47 |
+
RUNTIME DESTINATION bin
|
48 |
+
LIBRARY DESTINATION lib
|
49 |
+
ARCHIVE DESTINATION lib
|
50 |
+
)
|
51 |
+
|
52 |
+
if(BUILD_TOOL)
|
53 |
+
add_executable(argon2 src/run.c)
|
54 |
+
target_link_libraries(argon2 PRIVATE libargon2)
|
55 |
+
set_target_properties(argon2 PROPERTIES PDB_NAME "argon2${CMAKE_EXECUTABLE_SUFFIX}.pdb")
|
56 |
+
|
57 |
+
install(TARGETS argon2 RUNTIME DESTINATION bin)
|
58 |
+
endif()
|
59 |
+
|
60 |
+
install(FILES ${ARGON2_HEADERS} DESTINATION include)
|
61 |
+
|
62 |
+
install(EXPORT unofficial-argon2-targets
|
63 |
+
NAMESPACE unofficial::argon2::
|
64 |
+
DESTINATION "share/unofficial-argon2"
|
65 |
+
)
|
66 |
+
|
67 |
+
function(make_pc_file)
|
68 |
+
set(PREFIX "${CMAKE_INSTALL_PREFIX}")
|
69 |
+
set(INCLUDE "include")
|
70 |
+
set(HOST_MULTIARCH "lib")
|
71 |
+
set(EXTRA_LIBS "")
|
72 |
+
configure_file ("${CMAKE_SOURCE_DIR}/libargon2.pc.in" "${PROJECT_BINARY_DIR}/libargon2.pc" @ONLY)
|
73 |
+
endfunction()
|
74 |
+
make_pc_file()
|
75 |
+
install (FILES "${CMAKE_CURRENT_BINARY_DIR}/libargon2.pc" DESTINATION "lib/pkgconfig")
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/portfile.cmake
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO P-H-C/phc-winner-argon2
|
4 |
+
REF 20190702
|
5 |
+
SHA512 0a4cb89e8e63399f7df069e2862ccd05308b7652bf4ab74372842f66bcc60776399e0eaf979a7b7e31436b5e6913fe5b0a6949549d8c82ebd06e0629b106e85f
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
visibility.patch
|
9 |
+
visibility-for-tool.patch
|
10 |
+
thread-header.patch
|
11 |
+
)
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
hwopt WITH_OPTIMIZATIONS
|
17 |
+
tool BUILD_TOOL
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_configure(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
22 |
+
OPTIONS
|
23 |
+
${FEATURE_OPTIONS}
|
24 |
+
-DUPSTREAM_VER=${VERSION}
|
25 |
+
OPTIONS_DEBUG
|
26 |
+
-DBUILD_TOOL=OFF
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
vcpkg_copy_pdbs()
|
31 |
+
vcpkg_fixup_pkgconfig()
|
32 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-argon2-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-argon2")
|
33 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/unofficial-argon2 PACKAGE_NAME unofficial-argon2)
|
34 |
+
# Migration path
|
35 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/unofficial-libargon2-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-libargon2")
|
36 |
+
|
37 |
+
if(BUILD_TOOL)
|
38 |
+
vcpkg_copy_tools(TOOL_NAMES argon2 AUTO_CLEAN)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
42 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/argon2.h" "defined(USING_ARGON2_DLL)" "1")
|
43 |
+
endif()
|
44 |
+
|
45 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
46 |
+
|
47 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
48 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/thread-header.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/thread.h b/src/thread.h
|
2 |
+
index d4ca10c..43bd542 100644
|
3 |
+
--- a/src/thread.h
|
4 |
+
+++ b/src/thread.h
|
5 |
+
@@ -19,6 +19,7 @@
|
6 |
+
#define ARGON2_THREAD_H
|
7 |
+
|
8 |
+
#if !defined(ARGON2_NO_THREADS)
|
9 |
+
+#include <stdint.h>
|
10 |
+
|
11 |
+
/*
|
12 |
+
Here we implement an abstraction layer for the simpĺe requirements
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/unofficial-argon2-config.cmake
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include(CMakeFindDependencyMacro)
|
2 |
+
find_dependency(Threads)
|
3 |
+
|
4 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-argon2-targets.cmake")
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/unofficial-libargon2-config.cmake
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
file(READ "${CMAKE_CURRENT_LIST_DIR}/../argon2/usage" usage)
|
2 |
+
message(WARNING "find_package(unofficial-libargon2) is deprecated.\n${usage}")
|
3 |
+
include(CMakeFindDependencyMacro)
|
4 |
+
find_dependency(unofficial-argon2 CONFIG)
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
argon2 provides CMake targets:
|
2 |
+
|
3 |
+
find_package(unofficial-argon2 CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE unofficial::argon2::libargon2)
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "argon2",
|
3 |
+
"version": "20190702",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Password-hashing library.",
|
6 |
+
"homepage": "https://github.com/P-H-C/phc-winner-argon2",
|
7 |
+
"license": "Apache-2.0 OR CC0-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"hwopt": {
|
20 |
+
"description": "Enable SSE2/AVX2/AVX512 optimizations",
|
21 |
+
"supports": "x86 | x64"
|
22 |
+
},
|
23 |
+
"tool": {
|
24 |
+
"description": "Install the argon2 tool"
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/visibility-for-tool.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/core.h b/src/core.h
|
2 |
+
index 78000ba..91c7bcf 100644
|
3 |
+
--- a/src/core.h
|
4 |
+
+++ b/src/core.h
|
5 |
+
@@ -135,7 +135,7 @@ void secure_wipe_memory(void *v, size_t n);
|
6 |
+
* @param mem Pointer to the memory
|
7 |
+
* @param s Memory size in bytes
|
8 |
+
*/
|
9 |
+
-void clear_internal_memory(void *v, size_t n);
|
10 |
+
+ARGON2_PUBLIC void clear_internal_memory(void *v, size_t n);
|
11 |
+
|
12 |
+
/*
|
13 |
+
* Computes absolute position of reference block in the lane following a skewed
|
cc-multilingual-main/cc_net/vcpkg/ports/argon2/visibility.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/argon2.h b/include/argon2.h
|
2 |
+
index fc8682c..1401051 100644
|
3 |
+
--- a/include/argon2.h
|
4 |
+
+++ b/include/argon2.h
|
5 |
+
@@ -30,7 +30,10 @@ extern "C" {
|
6 |
+
#ifdef A2_VISCTL
|
7 |
+
#define ARGON2_PUBLIC __attribute__((visibility("default")))
|
8 |
+
#define ARGON2_LOCAL __attribute__ ((visibility ("hidden")))
|
9 |
+
-#elif _MSC_VER
|
10 |
+
+#elif defined(_WIN32) && defined(USING_ARGON2_DLL)
|
11 |
+
+#define ARGON2_PUBLIC __declspec(dllimport)
|
12 |
+
+#define ARGON2_LOCAL
|
13 |
+
+#elif defined(_WIN32) && defined(BUILDING_ARGON2_DLL)
|
14 |
+
#define ARGON2_PUBLIC __declspec(dllexport)
|
15 |
+
#define ARGON2_LOCAL
|
16 |
+
#else
|
cc-multilingual-main/cc_net/vcpkg/ports/bitserializer/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# All components of BitSerializer is "header only" except CSV archive
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO PavelKisliak/BitSerializer
|
7 |
+
REF v0.65
|
8 |
+
SHA512 fa49c6409b691c8e67fd2bf6ba740367334283bbfe3d984256420da3f9b439b56a04e718844466875b4cc01380d4d3a4ff3f3a6b347d3fd391895551eb8c8f91
|
9 |
+
HEAD_REF master
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
"cpprestjson-archive" BUILD_CPPRESTJSON_ARCHIVE
|
15 |
+
"rapidjson-archive" BUILD_RAPIDJSON_ARCHIVE
|
16 |
+
"pugixml-archive" BUILD_PUGIXML_ARCHIVE
|
17 |
+
"rapidyaml-archive" BUILD_RAPIDYAML_ARCHIVE
|
18 |
+
"csv-archive" BUILD_CSV_ARCHIVE
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS
|
24 |
+
${FEATURE_OPTIONS}
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
vcpkg_cmake_config_fixup()
|
30 |
+
vcpkg_fixup_pkgconfig()
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
33 |
+
if (NOT ${BUILD_CSV_ARCHIVE})
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
35 |
+
endif()
|
36 |
+
|
37 |
+
# Handle copyright
|
38 |
+
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
39 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/bitserializer/usage
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
BitSerializer provides CMake targets:
|
2 |
+
|
3 |
+
find_package(bitserializer CONFIG REQUIRED)
|
4 |
+
# Link only archives which you are specified in the features list when install
|
5 |
+
target_link_libraries(main PRIVATE
|
6 |
+
BitSerializer::cpprestjson-archive
|
7 |
+
BitSerializer::rapidjson-archive
|
8 |
+
BitSerializer::pugixml-archive
|
9 |
+
BitSerializer::rapidyaml-archive
|
10 |
+
BitSerializer::csv-archive
|
11 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/bitserializer/vcpkg.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bitserializer",
|
3 |
+
"version": "0.65",
|
4 |
+
"description": "C++ 17 library for serialization to JSON, XML, YAML, CSV",
|
5 |
+
"homepage": "https://github.com/PavelKisliak/BitSerializer",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"cpprestjson-archive": {
|
19 |
+
"description": "Module for support JSON (implementation based on the CppRestSDK library)",
|
20 |
+
"dependencies": [
|
21 |
+
"cpprestsdk"
|
22 |
+
]
|
23 |
+
},
|
24 |
+
"csv-archive": {
|
25 |
+
"description": "Module for support CSV"
|
26 |
+
},
|
27 |
+
"pugixml-archive": {
|
28 |
+
"description": "Module for support XML (implementation based on the PugiXml library)",
|
29 |
+
"dependencies": [
|
30 |
+
"pugixml"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"rapidjson-archive": {
|
34 |
+
"description": "Module for support JSON (implementation based on the RapidJson library)",
|
35 |
+
"dependencies": [
|
36 |
+
"rapidjson"
|
37 |
+
]
|
38 |
+
},
|
39 |
+
"rapidyaml-archive": {
|
40 |
+
"description": "Module for support YAML (implementation based on the RapidYaml library)",
|
41 |
+
"dependencies": [
|
42 |
+
"ryml"
|
43 |
+
]
|
44 |
+
}
|
45 |
+
}
|
46 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-optional/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/optional
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 5b676892661b4606c59217fe123591ce88f85cbfa5535aabd880d5c7173217dc5d1905f8aabd9beee1c38b80b43899b12c501fe121b59641f81a51b91508101b
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-optional/vcpkg.json
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-optional",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost optional module",
|
6 |
+
"homepage": "https://github.com/boostorg/optional",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-assert",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-config",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-core",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-detail",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "boost-move",
|
27 |
+
"version>=": "1.84.0"
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "boost-predef",
|
31 |
+
"version>=": "1.84.0"
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"name": "boost-static-assert",
|
35 |
+
"version>=": "1.84.0"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"name": "boost-throw-exception",
|
39 |
+
"version>=": "1.84.0"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"name": "boost-type-traits",
|
43 |
+
"version>=": "1.84.0"
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"name": "boost-utility",
|
47 |
+
"version>=": "1.84.0"
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"name": "boost-vcpkg-helpers",
|
51 |
+
"version>=": "1.84.0"
|
52 |
+
}
|
53 |
+
]
|
54 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/FindJXR.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# - Find JXR
|
2 |
+
# Find the JXR library
|
3 |
+
# This module defines
|
4 |
+
# JXR_INCLUDE_DIRS, where to find jxrlib/JXRGlue.h
|
5 |
+
# JXR_LIBRARIES, the libraries needed to use JXR
|
6 |
+
#
|
7 |
+
|
8 |
+
find_path(JXR_INCLUDE_DIRS
|
9 |
+
NAMES JXRGlue.h
|
10 |
+
PATH_SUFFIXES jxrlib
|
11 |
+
)
|
12 |
+
mark_as_advanced(JXR_INCLUDE_DIRS)
|
13 |
+
|
14 |
+
include(SelectLibraryConfigurations)
|
15 |
+
|
16 |
+
find_library(JPEGXR_LIBRARY_RELEASE NAMES jpegxr PATH_SUFFIXES lib)
|
17 |
+
find_library(JPEGXR_LIBRARY_DEBUG NAMES jpegxrd PATH_SUFFIXES lib)
|
18 |
+
select_library_configurations(JPEGXR)
|
19 |
+
|
20 |
+
find_library(JXRGLUE_LIBRARY_RELEASE NAMES jxrglue PATH_SUFFIXES lib)
|
21 |
+
find_library(JXRGLUE_LIBRARY_DEBUG NAMES jxrglued PATH_SUFFIXES lib)
|
22 |
+
select_library_configurations(JXRGLUE)
|
23 |
+
|
24 |
+
set(JXR_LIBRARIES ${JXRGLUE_LIBRARY} ${JPEGXR_LIBRARY})
|
25 |
+
mark_as_advanced(JXR_LIBRARIES)
|
26 |
+
|
27 |
+
include(FindPackageHandleStandardArgs)
|
28 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(JXR DEFAULT_MSG JXR_INCLUDE_DIRS JXR_LIBRARIES)
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/guiddef.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/common/include/guiddef.h b/common/include/jxrguiddef.h
|
2 |
+
similarity index 100%
|
3 |
+
rename from common/include/guiddef.h
|
4 |
+
rename to common/include/jxrguiddef.h
|
5 |
+
diff --git a/jxrgluelib/JXRGlue.h b/jxrgluelib/JXRGlue.h
|
6 |
+
index d0b219c..c3e5d2b 100644
|
7 |
+
--- a/jxrgluelib/JXRGlue.h
|
8 |
+
+++ b/jxrgluelib/JXRGlue.h
|
9 |
+
@@ -32,7 +32,11 @@ extern "C" {
|
10 |
+
#endif
|
11 |
+
|
12 |
+
#include <JXRMeta.h>
|
13 |
+
+#ifdef _WIN32
|
14 |
+
#include <guiddef.h>
|
15 |
+
+#else
|
16 |
+
+#include <jxrguiddef.h>
|
17 |
+
+#endif
|
18 |
+
|
19 |
+
//================================================================
|
20 |
+
#define WMP_SDK_VERSION 0x0101
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package jxrlib provides CMake integration:
|
2 |
+
|
3 |
+
find_package(JXR REQUIRED)
|
4 |
+
target_include_directories(main PRIVATE ${JXR_INCLUDE_DIRS})
|
5 |
+
target_link_libraries(main PRIVATE ${JXR_LIBRARIES})
|
cc-multilingual-main/cc_net/vcpkg/ports/jxrlib/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "jxrlib",
|
3 |
+
"version": "2019.10.9",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "Open source implementation of the jpegxr image format standard.",
|
6 |
+
"homepage": "https://github.com/4creators/jxrlib",
|
7 |
+
"license": "BSD-2-Clause",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57format/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO asmaloney/libE57Format
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 9be79a969b74008801e20531530cdf3dc1f0041d6fbd2be1aaa8d58b35b06309b1f324309ad1d989a345389ed168c96c325ebe65844efec9bbffd183bf2e4766
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" E57_BUILD_SHARED)
|
10 |
+
string(COMPARE NOTEQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" E57_USING_STATIC_XERCES)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DE57_BUILD_TEST=OFF
|
16 |
+
-DE57_BUILD_SHARED=${E57_BUILD_SHARED}
|
17 |
+
-DUSING_STATIC_XERCES=${E57_USING_STATIC_XERCES}
|
18 |
+
)
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME E57Format CONFIG_PATH "lib/cmake/E57Format")
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE
|
24 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
25 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
26 |
+
)
|
27 |
+
|
28 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
29 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/libe57format RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57format/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
libe57format provides CMake targets:
|
2 |
+
|
3 |
+
find_package(e57format CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE E57Format)
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57format/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libe57format",
|
3 |
+
"version": "3.1.1",
|
4 |
+
"description": "A library to provide read & write support for the E57 file format.",
|
5 |
+
"homepage": "https://github.com/asmaloney/libE57Format",
|
6 |
+
"license": "BSL-1.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
"xerces-c"
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/add_support_ios.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -1555,6 +1555,7 @@ if(HAVE_DECODERS AND (NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900))
|
4 |
+
|
5 |
+
install(TARGETS "${XZDEC}"
|
6 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
7 |
+
+ BUNDLE DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
8 |
+
COMPONENT "${XZDEC}_Runtime")
|
9 |
+
endforeach()
|
10 |
+
|
11 |
+
@@ -1618,6 +1619,7 @@ if(HAVE_DECODERS AND (NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900))
|
12 |
+
|
13 |
+
install(TARGETS lzmainfo
|
14 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
15 |
+
+ BUNDLE DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
16 |
+
COMPONENT lzmainfo_Runtime)
|
17 |
+
|
18 |
+
if(UNIX)
|
19 |
+
@@ -1827,6 +1829,7 @@ if(NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900)
|
20 |
+
# builds because the generated cmake_install.cmake executes serially.
|
21 |
+
install(TARGETS xz
|
22 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
23 |
+
+ BUNDLE DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
24 |
+
COMPONENT xz_Runtime)
|
25 |
+
|
26 |
+
if(UNIX)
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/build-tools.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -1438,7 +1443,7 @@ function(my_install_man COMPONENT SRC_FILE LINK_NAMES)
|
4 |
+
endif()
|
5 |
+
endfunction()
|
6 |
+
|
7 |
+
-
|
8 |
+
+if(BUILD_TOOLS)
|
9 |
+
#############################################################################
|
10 |
+
# libgnu (getopt_long)
|
11 |
+
#############################################################################
|
12 |
+
@@ -1853,7 +1858,7 @@ if(NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900)
|
13 |
+
my_install_man(xz_Documentation src/xz/xz.1 "${XZ_LINKS}")
|
14 |
+
endif()
|
15 |
+
endif()
|
16 |
+
-
|
17 |
+
+endif(BUILD_TOOLS)
|
18 |
+
|
19 |
+
#############################################################################
|
20 |
+
# Scripts
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/fix_config_include.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 34c6aca00..7b3708ab2 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -413,6 +413,7 @@ if(WIN32)
|
6 |
+
if(BUILD_SHARED_LIBS)
|
7 |
+
# Add the Windows resource file for liblzma.dll.
|
8 |
+
target_sources(liblzma PRIVATE src/liblzma/liblzma_w32res.rc)
|
9 |
+
+ target_include_directories(liblzma PRIVATE windows/vs2019)
|
10 |
+
|
11 |
+
set_target_properties(liblzma PROPERTIES
|
12 |
+
LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/common/common_w32res.rc"
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/portfile.cmake
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO tukaani-project/xz
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 0aa74e01c019c1d3893cf16f53b300ba4e74c6aa9febabf57ddb49b28615d76862eeb746c54c2085efd37c7e8cc0829014d9b7ad481a76294bc929b3cca91336
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix_config_include.patch
|
9 |
+
win_output_name.patch # Fix output name on Windows. Autotool build does not generate lib prefixed libraries on windows.
|
10 |
+
add_support_ios.patch # add install bundle info for support ios
|
11 |
+
build-tools.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
FEATURES
|
16 |
+
tools BUILD_TOOLS
|
17 |
+
)
|
18 |
+
|
19 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
|
20 |
+
set(WASM_OPTIONS -DCMAKE_C_BYTE_ORDER=LITTLE_ENDIAN -DCMAKE_CXX_BYTE_ORDER=LITTLE_ENDIAN)
|
21 |
+
endif()
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS
|
26 |
+
${FEATURE_OPTIONS}
|
27 |
+
${WASM_OPTIONS}
|
28 |
+
-DBUILD_TESTING=OFF
|
29 |
+
-DCREATE_XZ_SYMLINKS=OFF
|
30 |
+
-DCREATE_LZMA_SYMLINKS=OFF
|
31 |
+
-DCMAKE_MSVC_DEBUG_INFORMATION_FORMAT= # using flags from (vcpkg) toolchain
|
32 |
+
-DENABLE_NLS=OFF # nls is not supported by this port, yet
|
33 |
+
MAYBE_UNUSED_VARIABLES
|
34 |
+
CMAKE_MSVC_DEBUG_INFORMATION_FORMAT
|
35 |
+
CREATE_XZ_SYMLINKS
|
36 |
+
CREATE_LZMA_SYMLINKS
|
37 |
+
)
|
38 |
+
vcpkg_cmake_install()
|
39 |
+
vcpkg_copy_pdbs()
|
40 |
+
|
41 |
+
set(exec_prefix "\${prefix}")
|
42 |
+
set(libdir "\${prefix}/lib")
|
43 |
+
set(includedir "\${prefix}/include")
|
44 |
+
set(PACKAGE_URL https://tukaani.org/xz/)
|
45 |
+
set(PACKAGE_VERSION "${VERSION}")
|
46 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
47 |
+
set(PTHREAD_CFLAGS -pthread)
|
48 |
+
endif()
|
49 |
+
set(prefix "${CURRENT_INSTALLED_DIR}")
|
50 |
+
configure_file("${SOURCE_PATH}/src/liblzma/liblzma.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/liblzma.pc" @ONLY)
|
51 |
+
if (NOT VCPKG_BUILD_TYPE)
|
52 |
+
set(prefix "${CURRENT_INSTALLED_DIR}/debug")
|
53 |
+
configure_file("${SOURCE_PATH}/src/liblzma/liblzma.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/liblzma.pc" @ONLY)
|
54 |
+
endif()
|
55 |
+
vcpkg_fixup_pkgconfig()
|
56 |
+
|
57 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/liblzma)
|
58 |
+
|
59 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
60 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/lzma.h" "defined(LZMA_API_STATIC)" "1")
|
61 |
+
else()
|
62 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/lzma.h" "defined(LZMA_API_STATIC)" "0")
|
63 |
+
endif()
|
64 |
+
|
65 |
+
file(REMOVE_RECURSE
|
66 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
67 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
68 |
+
"${CURRENT_PACKAGES_DIR}/share/man"
|
69 |
+
)
|
70 |
+
|
71 |
+
set(TOOLS xz xzdec lzmadec lzmainfo)
|
72 |
+
foreach(_tool IN LISTS TOOLS)
|
73 |
+
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/bin/${_tool}${VCPKG_TARGET_EXECUTABLE_SUFFIX}")
|
74 |
+
list(REMOVE_ITEM TOOLS ${_tool})
|
75 |
+
endif()
|
76 |
+
endforeach()
|
77 |
+
if(TOOLS)
|
78 |
+
vcpkg_copy_tools(TOOL_NAMES ${TOOLS} AUTO_CLEAN)
|
79 |
+
endif()
|
80 |
+
|
81 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
82 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
83 |
+
endif()
|
84 |
+
|
85 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
86 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
87 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/usage
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
liblzma is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
find_package(LibLZMA REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE LibLZMA::LibLZMA)
|
5 |
+
|
6 |
+
liblzma provides CMake targets:
|
7 |
+
|
8 |
+
find_package(liblzma CONFIG REQUIRED)
|
9 |
+
target_link_libraries(main PRIVATE liblzma::liblzma)
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_policy(PUSH)
|
2 |
+
cmake_policy(SET CMP0012 NEW)
|
3 |
+
cmake_policy(SET CMP0057 NEW)
|
4 |
+
set(z_vcpkg_liblzma_fixup_needed 0)
|
5 |
+
if(NOT "CONFIG" IN_LIST ARGS AND NOT "NO_MODULE" IN_LIST ARGS AND NOT CMAKE_DISABLE_FIND_PACKAGE_LibLZMA)
|
6 |
+
get_filename_component(z_vcpkg_liblzma_prefix "${CMAKE_CURRENT_LIST_DIR}" DIRECTORY)
|
7 |
+
get_filename_component(z_vcpkg_liblzma_prefix "${z_vcpkg_liblzma_prefix}" DIRECTORY)
|
8 |
+
find_path(LIBLZMA_INCLUDE_DIR NAMES lzma.h PATHS "${z_vcpkg_liblzma_prefix}/include" NO_DEFAULT_PATH)
|
9 |
+
# liblzma doesn't use a debug postfix, but FindLibLZMA.cmake expects it
|
10 |
+
find_library(LIBLZMA_LIBRARY_RELEASE NAMES lzma PATHS "${z_vcpkg_liblzma_prefix}/lib" NO_DEFAULT_PATH)
|
11 |
+
find_library(LIBLZMA_LIBRARY_DEBUG NAMES lzma PATHS "${z_vcpkg_liblzma_prefix}/debug/lib" NO_DEFAULT_PATH)
|
12 |
+
unset(z_vcpkg_liblzma_prefix)
|
13 |
+
if(CMAKE_VERSION VERSION_LESS 3.16)
|
14 |
+
# Older versions of FindLibLZMA.cmake need a single lib in LIBLZMA_LIBRARY.
|
15 |
+
set(z_vcpkg_liblzma_fixup_needed 1)
|
16 |
+
set(LIBLZMA_LIBRARY "${LIBLZMA_LIBRARY_RELEASE}" CACHE INTERNAL "")
|
17 |
+
elseif(NOT TARGET LibLZMA::LibLZMA)
|
18 |
+
set(z_vcpkg_liblzma_fixup_needed 1)
|
19 |
+
endif()
|
20 |
+
# Known values, and required. Skip expensive tests.
|
21 |
+
set(LIBLZMA_HAS_AUTO_DECODER 1 CACHE INTERNAL "")
|
22 |
+
set(LIBLZMA_HAS_EASY_ENCODER 1 CACHE INTERNAL "")
|
23 |
+
set(LIBLZMA_HAS_LZMA_PRESET 1 CACHE INTERNAL "")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
_find_package(${ARGS})
|
27 |
+
|
28 |
+
if(z_vcpkg_liblzma_fixup_needed)
|
29 |
+
include(SelectLibraryConfigurations)
|
30 |
+
select_library_configurations(LIBLZMA)
|
31 |
+
if(NOT TARGET LibLZMA::LibLZMA)
|
32 |
+
# Backfill LibLZMA::LibLZMA to versions of cmake before 3.14
|
33 |
+
add_library(LibLZMA::LibLZMA UNKNOWN IMPORTED)
|
34 |
+
if(DEFINED LIBLZMA_INCLUDE_DIRS)
|
35 |
+
set_target_properties(LibLZMA::LibLZMA PROPERTIES
|
36 |
+
INTERFACE_INCLUDE_DIRECTORIES "${LIBLZMA_INCLUDE_DIRS}")
|
37 |
+
endif()
|
38 |
+
set_property(TARGET LibLZMA::LibLZMA APPEND PROPERTY
|
39 |
+
IMPORTED_CONFIGURATIONS RELEASE)
|
40 |
+
set_target_properties(LibLZMA::LibLZMA PROPERTIES
|
41 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES_RELEASE "C"
|
42 |
+
IMPORTED_LOCATION_RELEASE "${LIBLZMA_LIBRARY_RELEASE}")
|
43 |
+
if(EXISTS "${LIBLZMA_LIBRARY}")
|
44 |
+
set_target_properties(LibLZMA::LibLZMA PROPERTIES
|
45 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
|
46 |
+
IMPORTED_LOCATION "${LIBLZMA_LIBRARY}")
|
47 |
+
endif()
|
48 |
+
endif()
|
49 |
+
if(LIBLZMA_LIBRARY_DEBUG)
|
50 |
+
# Backfill debug variant to versions of cmake before 3.16
|
51 |
+
set_property(TARGET LibLZMA::LibLZMA APPEND PROPERTY IMPORTED_CONFIGURATIONS DEBUG)
|
52 |
+
set_target_properties(LibLZMA::LibLZMA PROPERTIES IMPORTED_LOCATION_DEBUG "${LIBLZMA_LIBRARY_DEBUG}")
|
53 |
+
endif()
|
54 |
+
endif()
|
55 |
+
if(LIBLZMA_LIBRARIES AND NOT "Threads::Threads" IN_LIST LIBLZMA_LIBRARIES)
|
56 |
+
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
57 |
+
find_package(Threads)
|
58 |
+
list(APPEND LIBLZMA_LIBRARIES ${CMAKE_THREAD_LIBS_INIT})
|
59 |
+
if(TARGET LibLZMA::LibLZMA)
|
60 |
+
set_property(TARGET LibLZMA::LibLZMA APPEND PROPERTY INTERFACE_LINK_LIBRARIES Threads::Threads)
|
61 |
+
endif()
|
62 |
+
endif()
|
63 |
+
unset(z_vcpkg_liblzma_fixup_needed)
|
64 |
+
cmake_policy(POP)
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "liblzma",
|
3 |
+
"version": "5.6.0",
|
4 |
+
"description": "Compression library with an API similar to that of zlib.",
|
5 |
+
"homepage": "https://tukaani.org/xz/",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"tools": {
|
19 |
+
"description": "Build tools",
|
20 |
+
"supports": "!windows, mingw"
|
21 |
+
}
|
22 |
+
}
|
23 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/liblzma/win_output_name.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt
|
2 |
+
+++ b/CMakeLists.txt
|
3 |
+
@@ -1273,10 +1273,15 @@ set_target_properties(liblzma PROPERTIES
|
4 |
+
|
5 |
+
# It's liblzma.so or liblzma.dll, not libliblzma.so or lzma.dll.
|
6 |
+
# Avoid the name lzma.dll because it would conflict with LZMA SDK.
|
7 |
+
- PREFIX ""
|
8 |
+
+ OUTPUT_NAME lzma
|
9 |
+
IMPORT_PREFIX ""
|
10 |
+
)
|
11 |
+
|
12 |
+
+if(WIN32 AND NOT MINGW)
|
13 |
+
+ set_target_properties(liblzma PROPERTIES RUNTIME_OUTPUT_NAME liblzma)
|
14 |
+
+endif()
|
15 |
+
+
|
16 |
+
+
|
17 |
+
# Create liblzma-config-version.cmake.
|
18 |
+
#
|
19 |
+
# FIXME: SameMajorVersion is correct for stable releases but it is wrong
|
cc-multilingual-main/cc_net/vcpkg/ports/libxdiff/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libxdiff",
|
3 |
+
"version": "0.23",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "The LibXDiff library implements basic and yet complete functionalities to create file differences/patches to both binary and text files. The library uses memory files as file abstraction to achieve both performance and portability.",
|
6 |
+
"homepage": "https://github.com/Drako/libxdiff",
|
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/libxml2/disable-docs.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f922d5ab..70466bc7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -599,15 +599,5 @@ if(LIBXML2_WITH_PYTHON)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
-install(FILES doc/xml2-config.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
|
9 |
+
-install(FILES doc/xmlcatalog.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
|
10 |
+
-install(FILES doc/xmllint.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1 COMPONENT documentation)
|
11 |
+
-install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT documentation
|
12 |
+
- PATTERN "Makefile.*" EXCLUDE
|
13 |
+
- PATTERN "*.1" EXCLUDE
|
14 |
+
- PATTERN "*.py" EXCLUDE
|
15 |
+
- PATTERN "*.res" EXCLUDE
|
16 |
+
- PATTERN "*.xml" EXCLUDE
|
17 |
+
- PATTERN "*.xsl" EXCLUDE)
|
18 |
+
|
19 |
+
configure_package_config_file(
|
20 |
+
libxml2-config.cmake.cmake.in libxml2-config.cmake
|
cc-multilingual-main/cc_net/vcpkg/ports/libxml2/fix_cmakelist.patch
ADDED
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 9701bdc..39e96ee 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -393,15 +393,15 @@ endif()
|
6 |
+
if(LIBXML2_WITH_ICU)
|
7 |
+
target_link_libraries(LibXml2 PRIVATE ICU::data ICU::i18n ICU::uc)
|
8 |
+
if(WIN32)
|
9 |
+
- set(ICU_LIBS "-licudt -licuin -licuuc")
|
10 |
+
+ set(ICU_LIBS "icu-i18n")
|
11 |
+
else()
|
12 |
+
- set(ICU_LIBS "-licudata -licui18n -licuuc")
|
13 |
+
+ set(ICU_LIBS "icu-i18n")
|
14 |
+
endif()
|
15 |
+
endif()
|
16 |
+
|
17 |
+
if(LIBXML2_WITH_LZMA)
|
18 |
+
target_link_libraries(LibXml2 PRIVATE LibLZMA::LibLZMA)
|
19 |
+
- set(LZMA_LIBS "-llzma")
|
20 |
+
+ set(LZMA_LIBS "liblzma")
|
21 |
+
endif()
|
22 |
+
|
23 |
+
if(LIBXML2_WITH_THREADS)
|
24 |
+
@@ -411,7 +411,7 @@ endif()
|
25 |
+
|
26 |
+
if(LIBXML2_WITH_ZLIB)
|
27 |
+
target_link_libraries(LibXml2 PRIVATE ZLIB::ZLIB)
|
28 |
+
- set(Z_LIBS "-lz")
|
29 |
+
+ set(Z_LIBS "zlib")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
set_target_properties(
|
33 |
+
@@ -425,23 +425,9 @@ set_target_properties(
|
34 |
+
SOVERSION ${LIBXML_MAJOR_VERSION}
|
35 |
+
)
|
36 |
+
|
37 |
+
+set(XML_LIB_NAME xml2)
|
38 |
+
if(MSVC)
|
39 |
+
- if(BUILD_SHARED_LIBS)
|
40 |
+
- set_target_properties(
|
41 |
+
- LibXml2
|
42 |
+
- PROPERTIES
|
43 |
+
- DEBUG_POSTFIX d
|
44 |
+
- )
|
45 |
+
- else()
|
46 |
+
- set_target_properties(
|
47 |
+
- LibXml2
|
48 |
+
- PROPERTIES
|
49 |
+
- DEBUG_POSTFIX sd
|
50 |
+
- MINSIZEREL_POSTFIX s
|
51 |
+
- RELEASE_POSTFIX s
|
52 |
+
- RELWITHDEBINFO_POSTFIX s
|
53 |
+
- )
|
54 |
+
- endif()
|
55 |
+
+ set(XML_LIB_NAME libxml2)
|
56 |
+
endif()
|
57 |
+
|
58 |
+
install(FILES ${LIBXML2_HDRS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/libxml2/libxml COMPONENT development)
|
59 |
+
@@ -574,30 +560,30 @@ endif()
|
60 |
+
|
61 |
+
configure_package_config_file(
|
62 |
+
libxml2-config.cmake.cmake.in libxml2-config.cmake
|
63 |
+
- INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2-${PROJECT_VERSION}
|
64 |
+
+ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2
|
65 |
+
)
|
66 |
+
|
67 |
+
install(
|
68 |
+
FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml2-config.cmake
|
69 |
+
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2-${PROJECT_VERSION}
|
70 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2
|
71 |
+
COMPONENT development
|
72 |
+
)
|
73 |
+
|
74 |
+
write_basic_package_version_file(
|
75 |
+
${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-version.cmake
|
76 |
+
VERSION ${PROJECT_VERSION}
|
77 |
+
- COMPATIBILITY ExactVersion
|
78 |
+
+ COMPATIBILITY SameMinorVersion
|
79 |
+
)
|
80 |
+
|
81 |
+
install(
|
82 |
+
FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml2-config-version.cmake
|
83 |
+
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2-${PROJECT_VERSION}
|
84 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2
|
85 |
+
COMPONENT development
|
86 |
+
)
|
87 |
+
|
88 |
+
install(
|
89 |
+
EXPORT LibXml2
|
90 |
+
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2-${PROJECT_VERSION}
|
91 |
+
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libxml2
|
92 |
+
NAMESPACE LibXml2::
|
93 |
+
FILE libxml2-export.cmake
|
94 |
+
COMPONENT development
|
95 |
+
@@ -635,9 +621,7 @@ set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
|
96 |
+
configure_file(libxml-2.0.pc.in libxml-2.0.pc @ONLY)
|
97 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libxml-2.0.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig COMPONENT development)
|
98 |
+
|
99 |
+
-if(WIN32)
|
100 |
+
- set(prefix "\$(cd \"\$(dirname \"\$0\")\"; pwd -P)/..")
|
101 |
+
-endif()
|
102 |
+
+set(prefix "\$(cd \"\$(dirname \"\$0\")\"; pwd -P)/..")
|
103 |
+
configure_file(xml2-config.in xml2-config @ONLY)
|
104 |
+
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/xml2-config DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT development)
|
105 |
+
|
106 |
+
diff --git a/libxml-2.0.pc.in b/libxml-2.0.pc.in
|
107 |
+
index 88e3963b..0d1706c9 100644
|
108 |
+
--- a/libxml-2.0.pc.in
|
109 |
+
+++ b/libxml-2.0.pc.in
|
110 |
+
@@ -8,6 +8,7 @@ Name: libXML
|
111 |
+
Version: @VERSION@
|
112 |
+
Description: libXML library version2.
|
113 |
+
Requires:
|
114 |
+
-Libs: -L${libdir} @XML_LIBS@
|
115 |
+
-Libs.private: @XML_PRIVATE_LIBS@ @LIBS@
|
116 |
+
+Requires.private: @ICU_LIBS@ @Z_LIBS@ @LZMA_LIBS@
|
117 |
+
+Libs: -L${libdir} -l@XML_LIB_NAME@
|
118 |
+
+Libs.private: @THREAD_LIBS@ @ICONV_LIBS@ @LIBM@ @WINSOCK_LIBS@ @LIBS@
|
119 |
+
Cflags: @XML_INCLUDEDIR@ @XML_CFLAGS@
|
cc-multilingual-main/cc_net/vcpkg/ports/libxml2/portfile.cmake
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.gnome.org/
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO GNOME/libxml2
|
5 |
+
REF "v${VERSION}"
|
6 |
+
SHA512 289d8e30a894a3efde78e06d1cedadc1491f4abdc2c0b653bb5410be48338aacec29e0ca23e1f1cac2725fd4e2114a8d20dcdaa80cf7f5b34302342d6f5efe10
|
7 |
+
HEAD_REF master
|
8 |
+
PATCHES
|
9 |
+
disable-docs.patch
|
10 |
+
fix_cmakelist.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
"ftp" LIBXML2_WITH_FTP
|
16 |
+
"http" LIBXML2_WITH_HTTP
|
17 |
+
"iconv" LIBXML2_WITH_ICONV
|
18 |
+
"legacy" LIBXML2_WITH_LEGACY
|
19 |
+
"lzma" LIBXML2_WITH_LZMA
|
20 |
+
"zlib" LIBXML2_WITH_ZLIB
|
21 |
+
"tools" LIBXML2_WITH_PROGRAMS
|
22 |
+
"icu" LIBXML2_WITH_ICU
|
23 |
+
)
|
24 |
+
vcpkg_cmake_configure(
|
25 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
26 |
+
OPTIONS
|
27 |
+
${FEATURE_OPTIONS}
|
28 |
+
-DLIBXML2_WITH_TESTS=OFF
|
29 |
+
-DLIBXML2_WITH_HTML=ON
|
30 |
+
-DLIBXML2_WITH_C14N=ON
|
31 |
+
-DLIBXML2_WITH_CATALOG=ON
|
32 |
+
-DLIBXML2_WITH_DEBUG=ON
|
33 |
+
-DLIBXML2_WITH_ISO8859X=ON
|
34 |
+
-DLIBXML2_WITH_MEM_DEBUG=OFF
|
35 |
+
-DLIBXML2_WITH_MODULES=ON
|
36 |
+
-DLIBXML2_WITH_OUTPUT=ON
|
37 |
+
-DLIBXML2_WITH_PATTERN=ON
|
38 |
+
-DLIBXML2_WITH_PUSH=ON
|
39 |
+
-DLIBXML2_WITH_PYTHON=OFF
|
40 |
+
-DLIBXML2_WITH_READER=ON
|
41 |
+
-DLIBXML2_WITH_REGEXPS=ON
|
42 |
+
-DLIBXML2_WITH_SAX1=ON
|
43 |
+
-DLIBXML2_WITH_SCHEMAS=ON
|
44 |
+
-DLIBXML2_WITH_SCHEMATRON=ON
|
45 |
+
-DLIBXML2_WITH_THREADS=ON
|
46 |
+
-DLIBXML2_WITH_THREAD_ALLOC=OFF
|
47 |
+
-DLIBXML2_WITH_TREE=ON
|
48 |
+
-DLIBXML2_WITH_VALID=ON
|
49 |
+
-DLIBXML2_WITH_WRITER=ON
|
50 |
+
-DLIBXML2_WITH_XINCLUDE=ON
|
51 |
+
-DLIBXML2_WITH_XPATH=ON
|
52 |
+
-DLIBXML2_WITH_XPTR=ON
|
53 |
+
)
|
54 |
+
|
55 |
+
vcpkg_cmake_install()
|
56 |
+
|
57 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/libxml2")
|
58 |
+
vcpkg_fixup_pkgconfig()
|
59 |
+
|
60 |
+
vcpkg_copy_pdbs()
|
61 |
+
|
62 |
+
if("tools" IN_LIST FEATURES)
|
63 |
+
vcpkg_copy_tools(TOOL_NAMES xmllint xmlcatalog AUTO_CLEAN)
|
64 |
+
endif()
|
65 |
+
|
66 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
67 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
68 |
+
endif()
|
69 |
+
|
70 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
71 |
+
set(_file "${CURRENT_PACKAGES_DIR}/include/libxml2/libxml/xmlexports.h")
|
72 |
+
file(READ "${_file}" _contents)
|
73 |
+
string(REPLACE "#ifdef LIBXML_STATIC" "#undef LIBXML_STATIC\n#define LIBXML_STATIC\n#ifdef LIBXML_STATIC" _contents "${_contents}")
|
74 |
+
file(WRITE "${_file}" "${_contents}")
|
75 |
+
endif()
|
76 |
+
|
77 |
+
file(COPY "${CURRENT_PACKAGES_DIR}/include/libxml2/" DESTINATION "${CURRENT_PACKAGES_DIR}/include") # TODO: Fix usage in all dependent ports hardcoding the wrong include path.
|
78 |
+
|
79 |
+
# Cleanup
|
80 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
81 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
82 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/xml2Conf.sh" "${CURRENT_PACKAGES_DIR}/debug/lib/xml2Conf.sh")
|
83 |
+
|
84 |
+
file(COPY
|
85 |
+
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
|
86 |
+
"${CMAKE_CURRENT_LIST_DIR}/usage"
|
87 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
88 |
+
)
|
89 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Copyright")
|
cc-multilingual-main/cc_net/vcpkg/ports/libxml2/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package libxml2 is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
find_package(LibXml2 REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE LibXml2::LibXml2)
|
cc-multilingual-main/cc_net/vcpkg/ports/libxml2/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
list(REMOVE_ITEM ARGS "NO_MODULE" "CONFIG" "MODULE")
|
2 |
+
_find_package(${ARGS} CONFIG)
|
3 |
+
set(LIBXML2_FOUND "${LibXml2_FOUND}") # fphsa compatibility
|
cc-multilingual-main/cc_net/vcpkg/ports/libxml2/vcpkg.json
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libxml2",
|
3 |
+
"version": "2.11.7",
|
4 |
+
"description": "Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform).",
|
5 |
+
"homepage": "https://gitlab.gnome.org/GNOME/libxml2/-/wikis/home",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"default-features": [
|
18 |
+
"iconv",
|
19 |
+
"lzma",
|
20 |
+
"zlib"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"ftp": {
|
24 |
+
"description": "Add the FTP support",
|
25 |
+
"supports": "!uwp"
|
26 |
+
},
|
27 |
+
"http": {
|
28 |
+
"description": "Add the HTTP support",
|
29 |
+
"supports": "!uwp"
|
30 |
+
},
|
31 |
+
"iconv": {
|
32 |
+
"description": "Add ICONV support",
|
33 |
+
"dependencies": [
|
34 |
+
"libiconv"
|
35 |
+
]
|
36 |
+
},
|
37 |
+
"icu": {
|
38 |
+
"description": "Add ICU support",
|
39 |
+
"dependencies": [
|
40 |
+
"icu"
|
41 |
+
]
|
42 |
+
},
|
43 |
+
"legacy": {
|
44 |
+
"description": "Add deprecated APIs for compatibility"
|
45 |
+
},
|
46 |
+
"lzma": {
|
47 |
+
"description": "Use LZMA",
|
48 |
+
"dependencies": [
|
49 |
+
"liblzma"
|
50 |
+
]
|
51 |
+
},
|
52 |
+
"tools": {
|
53 |
+
"description": "Build tools"
|
54 |
+
},
|
55 |
+
"zlib": {
|
56 |
+
"description": "Use ZLib",
|
57 |
+
"dependencies": [
|
58 |
+
"zlib"
|
59 |
+
]
|
60 |
+
}
|
61 |
+
}
|
62 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mapbox-polylabel/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO mapbox/polylabel
|
6 |
+
REF v1.1.0
|
7 |
+
SHA512 597920397969a1ae12fc2ad2bdd8143f32f6fa0b27b46a5fb6d7315b8456bbcb335e52c36277b50e3daa4658a0f3826863871df4f4a7868e923899af5832f783
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
# Copy header files
|
12 |
+
file(COPY "${SOURCE_PATH}/include/mapbox/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mapbox" FILES_MATCHING PATTERN "*.hpp")
|
13 |
+
|
14 |
+
# Handle copyright
|
15 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/mapbox-polylabel/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "mapbox-polylabel",
|
3 |
+
"version-semver": "1.1.0",
|
4 |
+
"description": "A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)",
|
5 |
+
"homepage": "https://github.com/mapbox/polylabel",
|
6 |
+
"license": "ISC",
|
7 |
+
"dependencies": [
|
8 |
+
"mapbox-geometry",
|
9 |
+
"mapbox-variant"
|
10 |
+
]
|
11 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/nsync/export-targets.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 328f9b6..6a71b5b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -41,6 +41,9 @@ function (set_cpp_target tgtname files)
|
6 |
+
"${PROJECT_SOURCE_DIR}/platform/c++11.futex"
|
7 |
+
)
|
8 |
+
endif ()
|
9 |
+
+
|
10 |
+
+ target_include_directories("${tgtname}" PUBLIC $<INSTALL_INTERFACE:include>)
|
11 |
+
+
|
12 |
+
|
13 |
+
target_compile_definitions ("${tgtname}" PRIVATE "${NSYNC_CPP_DEFINITIONS}")
|
14 |
+
|
15 |
+
@@ -399,14 +402,19 @@ endif ()
|
16 |
+
# By default, install nsync always
|
17 |
+
# set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON)
|
18 |
+
|
19 |
+
-install (TARGETS nsync
|
20 |
+
+install (TARGETS nsync EXPORT unofficial-nsyncConfig
|
21 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
|
22 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development)
|
23 |
+
|
24 |
+
-install (TARGETS nsync_cpp OPTIONAL
|
25 |
+
+install (TARGETS nsync_cpp OPTIONAL EXPORT unofficial-nsyncConfig
|
26 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
|
27 |
+
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT Development)
|
28 |
+
|
29 |
+
+install(EXPORT unofficial-nsyncConfig
|
30 |
+
+ NAMESPACE unofficial::nsync::
|
31 |
+
+ DESTINATION share/unofficial-nsync
|
32 |
+
+)
|
33 |
+
+
|
34 |
+
set (NSYNC_INCLUDES
|
35 |
+
"public/nsync.h"
|
36 |
+
"public/nsync_atomic.h"
|
cc-multilingual-main/cc_net/vcpkg/ports/nsync/fix-install.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 6b1f1dc..328f9b6 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -80,7 +80,7 @@ set (NSYNC_OS_CPP_SRC
|
6 |
+
# https://cmake.org/cmake/help/v3.1/policy/CMP0054.html
|
7 |
+
|
8 |
+
# Pick the include directory for the operating system.
|
9 |
+
-if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX")
|
10 |
+
+if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX" OR "${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsStoreX")
|
11 |
+
include_directories ("${PROJECT_SOURCE_DIR}/platform/win32")
|
12 |
+
set (NSYNC_CPP_FLAGS "/TP")
|
13 |
+
|
14 |
+
@@ -230,7 +230,7 @@ elseif (("${CMAKE_SYSTEM_PROCESSOR}X" STREQUAL "ppc64X"))
|
15 |
+
endif ()
|
16 |
+
|
17 |
+
# Windows uses some include files from the posix directory also.
|
18 |
+
-if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX")
|
19 |
+
+if ("${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsX" OR "${CMAKE_SYSTEM_NAME}X" STREQUAL "WindowsStoreX")
|
20 |
+
include_directories ("${PROJECT_SOURCE_DIR}/platform/posix")
|
21 |
+
endif ()
|
22 |
+
|
23 |
+
@@ -396,7 +396,8 @@ if (NSYNC_ENABLE_TESTS)
|
24 |
+
endforeach (t)
|
25 |
+
endif ()
|
26 |
+
|
27 |
+
-set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON)
|
28 |
+
+# By default, install nsync always
|
29 |
+
+# set (CMAKE_SKIP_INSTALL_ALL_DEPENDENCY ON)
|
30 |
+
|
31 |
+
install (TARGETS nsync
|
32 |
+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT RuntimeLibraries
|
cc-multilingual-main/cc_net/vcpkg/ports/nsync/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO google/nsync
|
8 |
+
REF "${VERSION}"
|
9 |
+
SHA512 8aa49997f100f161f0f32e99c9004ee845d7b16c1391e7eb62eea0897e2f91b7f9e5181055fdca637518751b6b26e16a1cd53e45adceda145285752c4b74f3bf
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-install.patch
|
13 |
+
export-targets.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS
|
19 |
+
-DNSYNC_ENABLE_TESTS=OFF
|
20 |
+
)
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-nsync CONFIG_PATH share/unofficial-nsync)
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/nsync/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nsync",
|
3 |
+
"version": "1.26.0",
|
4 |
+
"description": "nsync is a C library that exports various synchronization primitives, such as mutexes",
|
5 |
+
"homepage": "https://github.com/google/nsync",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/oof/portfile.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO s9w/oof
|
5 |
+
REF a0c3e8e0dceec391bd38861ab108b932a2513bcb
|
6 |
+
SHA512 4d5650c8fa1e21e7fe71dbe615a6e3bdbe3781be28811e895ac335261de24b3ed26c4842cdd133df897cdb7181c3ea11c051607fbda5a7a1b9a4d8580323181d
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
file(INSTALL "${SOURCE_PATH}/oof.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
11 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/oof/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "oof",
|
3 |
+
"version-date": "2021-11-23",
|
4 |
+
"description": "Convenient, high-performance RGB color and position control for console output.",
|
5 |
+
"homepage": "https://github.com/s9w/oof",
|
6 |
+
"license": "MIT"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/outcome/portfile.cmake
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Outcome is composed of other third party libraries:
|
2 |
+
# Outcome
|
3 |
+
# <= status-code
|
4 |
+
# <= quickcpplib
|
5 |
+
# <= byte-lite
|
6 |
+
# <= gsl-lite
|
7 |
+
# <= Optional
|
8 |
+
#
|
9 |
+
# byte-lite and gsl-lite are in vcpkg, but may not be versions
|
10 |
+
# known to be compatible with Outcome. It has occurred in the
|
11 |
+
# past that newer versions were severely broken with Outcome.
|
12 |
+
#
|
13 |
+
# One can fetch an 'all sources' tarball from
|
14 |
+
# https://github.com/ned14/outcome/releases which contains
|
15 |
+
# the exact copy of those third party libraries known to
|
16 |
+
# have passed Outcome's CI process.
|
17 |
+
|
18 |
+
if ("polyfill-cxx20" IN_LIST FEATURES)
|
19 |
+
message(WARNING [=[
|
20 |
+
Outcome depends on QuickCppLib which uses the vcpkg versions of gsl-lite and byte-lite, rather than the versions tested by QuickCppLib's and Outcome's CI. It is not guaranteed to work with other versions, with failures experienced in the past up-to-and-including runtime crashes. See the warning message from QuickCppLib for how you can pin the versions of those dependencies in your manifest file to those with which QuickCppLib was tested. Do not report issues to upstream without first pinning the versions as QuickCppLib was tested against.
|
21 |
+
]=])
|
22 |
+
endif()
|
23 |
+
|
24 |
+
vcpkg_from_github(
|
25 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
26 |
+
REPO ned14/outcome
|
27 |
+
REF v${VERSION}
|
28 |
+
SHA512 7afebb012e9e25cd2d4b323cc3fd18b95b86c9d95d2319c62b2255f192541196d443d1962ccc4b4febb3aa87d7b2e780e41e3d5239ab63a25520e147face42be
|
29 |
+
HEAD_REF develop
|
30 |
+
PATCHES
|
31 |
+
)
|
32 |
+
|
33 |
+
# Because outcome's deployed files are header-only, the debug build is not necessary
|
34 |
+
set(VCPKG_BUILD_TYPE release)
|
35 |
+
|
36 |
+
# Use Outcome's own build process, skipping examples and tests.
|
37 |
+
vcpkg_cmake_configure(
|
38 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
39 |
+
OPTIONS
|
40 |
+
-Doutcome_IS_DEPENDENCY=ON
|
41 |
+
"-DCMAKE_PREFIX_PATH=${CURRENT_INSTALLED_DIR}"
|
42 |
+
-DOUTCOME_BUNDLE_EMBEDDED_STATUS_CODE=OFF
|
43 |
+
-DOUTCOME_ENABLE_DEPENDENCY_SMOKE_TEST=ON # Leave this always on to test everything compiles
|
44 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
45 |
+
-DCXX_CONCEPTS_FLAGS=
|
46 |
+
)
|
47 |
+
|
48 |
+
if("run-tests" IN_LIST FEATURES)
|
49 |
+
vcpkg_cmake_build(TARGET test)
|
50 |
+
endif()
|
51 |
+
|
52 |
+
vcpkg_cmake_install()
|
53 |
+
|
54 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/outcome)
|
55 |
+
|
56 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
57 |
+
|
58 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
59 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/Licence.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/outcome/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package outcome provides CMake targets:
|
2 |
+
|
3 |
+
find_package(outcome CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PUBLIC outcome::hl)
|
cc-multilingual-main/cc_net/vcpkg/ports/outcome/vcpkg.json
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "outcome",
|
3 |
+
"version": "2.2.8",
|
4 |
+
"maintainers": [
|
5 |
+
"Niall Douglas <[email protected]>",
|
6 |
+
"Henrik Gaßmann <[email protected]>"
|
7 |
+
],
|
8 |
+
"description": "Provides very lightweight outcome<T> and result<T> (non-Boost edition)",
|
9 |
+
"homepage": "https://github.com/ned14/outcome",
|
10 |
+
"license": "Apache-2.0 OR BSL-1.0",
|
11 |
+
"supports": "!uwp",
|
12 |
+
"dependencies": [
|
13 |
+
"ned14-internal-quickcpplib",
|
14 |
+
"status-code",
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake",
|
17 |
+
"host": true
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake-config",
|
21 |
+
"host": true
|
22 |
+
}
|
23 |
+
],
|
24 |
+
"features": {
|
25 |
+
"polyfill-cxx17": {
|
26 |
+
"description": "Polyfill C++17 entities",
|
27 |
+
"dependencies": [
|
28 |
+
{
|
29 |
+
"name": "ned14-internal-quickcpplib",
|
30 |
+
"default-features": false,
|
31 |
+
"features": [
|
32 |
+
"polyfill-cxx17"
|
33 |
+
]
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"name": "outcome",
|
37 |
+
"default-features": false,
|
38 |
+
"features": [
|
39 |
+
"polyfill-cxx20"
|
40 |
+
]
|
41 |
+
}
|
42 |
+
]
|
43 |
+
},
|
44 |
+
"polyfill-cxx20": {
|
45 |
+
"description": "Polyfill C++20 entities",
|
46 |
+
"dependencies": [
|
47 |
+
{
|
48 |
+
"name": "ned14-internal-quickcpplib",
|
49 |
+
"default-features": false,
|
50 |
+
"features": [
|
51 |
+
"polyfill-cxx20"
|
52 |
+
]
|
53 |
+
}
|
54 |
+
]
|
55 |
+
},
|
56 |
+
"run-tests": {
|
57 |
+
"description": "Build and run the dependency validation tests"
|
58 |
+
}
|
59 |
+
}
|
60 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/pffft/CMakeLists.txt
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.12.4)
|
2 |
+
project(pffft C)
|
3 |
+
|
4 |
+
add_library(pffft pffft.c)
|
5 |
+
|
6 |
+
if(MSVC)
|
7 |
+
target_compile_definitions(pffft PRIVATE _USE_MATH_DEFINES)
|
8 |
+
endif()
|
9 |
+
|
10 |
+
target_include_directories(pffft PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>)
|
11 |
+
|
12 |
+
install(
|
13 |
+
TARGETS pffft
|
14 |
+
EXPORT pffft-config
|
15 |
+
)
|
16 |
+
|
17 |
+
install(
|
18 |
+
EXPORT pffft-config
|
19 |
+
NAMESPACE pffft::
|
20 |
+
DESTINATION share/pffft
|
21 |
+
)
|
22 |
+
|
23 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
24 |
+
install(FILES pffft.h DESTINATION include/pffft)
|
25 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/pffft/fix-invalid-command.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/pffft.c b/pffft.c
|
2 |
+
index d12f572..7cc0546 100644
|
3 |
+
--- a/pffft.c
|
4 |
+
+++ b/pffft.c
|
5 |
+
@@ -173,7 +173,11 @@ typedef float32x4_t v4sf;
|
6 |
+
# define VALIGNED(ptr) ((((long long)(ptr)) & 0x3) == 0)
|
7 |
+
#else
|
8 |
+
# if !defined(PFFFT_SIMD_DISABLE)
|
9 |
+
-# warning "building with simd disabled !\n";
|
10 |
+
+# ifdef COMPILER_MSVC
|
11 |
+
+# pragma message ("building with simd disabled !\n");
|
12 |
+
+# else
|
13 |
+
+# warning "building with simd disabled !\n";
|
14 |
+
+# endif
|
15 |
+
# define PFFFT_SIMD_DISABLE // fallback to scalar code
|
16 |
+
# endif
|
17 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/pffft/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "pffft",
|
3 |
+
"version-date": "2021-10-09",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "PFFFT, a pretty fast Fourier Transform.",
|
6 |
+
"homepage": "https://bitbucket.org/jpommier/pffft/",
|
7 |
+
"license": null,
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|