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/portfile.cmake +31 -0
- cc-multilingual-main/cc_net/vcpkg/ports/avcpp/0002-av_init_packet_deprecation.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/avcpp/fix-pkgconfig-location.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/avcpp/portfile.cmake +39 -0
- cc-multilingual-main/cc_net/vcpkg/ports/avcpp/vcpkg.json +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/fix-static-library-build.patch +86 -0
- cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/portfile.cmake +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-signals2/portfile.cmake +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-signals2/vcpkg.json +74 -0
- cc-multilingual-main/cc_net/vcpkg/ports/catch2/fix-install-path.patch +45 -0
- cc-multilingual-main/cc_net/vcpkg/ports/catch2/portfile.cmake +39 -0
- cc-multilingual-main/cc_net/vcpkg/ports/catch2/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chakracore/add-missing-reference.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chakracore/avoid_msvc_internal_STRINGIZE.patch +78 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chakracore/no-warning-as-error.props +8 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chakracore/portfile.cmake +126 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chakracore/unofficial-chakracore-config.cmake +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/chakracore/vcpkg.json +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/collada-dom/fix-emscripten.patch +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/collada-dom/use-vcpkg-minizip.patch +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ctbignum/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ctbignum/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cubeb/portfile.cmake +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cubeb/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/elements/asio-headers.patch +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/elements/portfile.cmake +60 -0
- cc-multilingual-main/cc_net/vcpkg/ports/elements/vcpkg.json +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/elements/win-find-libraries.patch +56 -0
- cc-multilingual-main/cc_net/vcpkg/ports/fcl/portfile.cmake +41 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gemmlowp/portfile.cmake +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gemmlowp/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/irrlicht/vcpkg-cmake-wrapper.cmake +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-LibeventConfig_cmake_in_path.patch +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-file_path.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-usage.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-uwp.patch +53 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libevent/portfile.cmake +75 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libevent/vcpkg.json +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libnice-gst/portfile.cmake +94 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libnice-gst/skip_libnice.patch +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libnice-gst/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsamplerate/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/metrohash/CMakeLists.txt +69 -0
- cc-multilingual-main/cc_net/vcpkg/ports/metrohash/Config.cmake.in +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/metrohash/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/metrohash/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mpir/enable-runtimelibrary-toggle.patch +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mpir/fix-static-include-files.patch +69 -0
cc-multilingual-main/cc_net/vcpkg/ports/asmjit/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO asmjit/asmjit
|
4 |
+
REF 51b10b19b6631434d3f9ad536a6fb140944a36d2 # commited on 2023-03-25
|
5 |
+
SHA512 1fba5159d2adad64e9a2b07a1f90de6988d1da47b9802ca8b57c61a89d8a90924525f6d0d6607279994bdbadcf693b2cc96cd7e4bf7f018ad64127b640dc38fb
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ASMJIT_STATIC)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DASMJIT_STATIC=${ASMJIT_STATIC}
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/asmjit)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
|
24 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
25 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/asmjit/core/api-config.h"
|
26 |
+
"#if !defined(ASMJIT_STATIC)"
|
27 |
+
"#if 0"
|
28 |
+
)
|
29 |
+
endif()
|
30 |
+
|
31 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
cc-multilingual-main/cc_net/vcpkg/ports/avcpp/0002-av_init_packet_deprecation.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a5fed05..7875b91 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -24,6 +24,11 @@ set (AVCPP_WARNING_OPTIONS
|
6 |
+
$<$<CXX_COMPILER_ID:MSVC>:
|
7 |
+
/W4>)
|
8 |
+
|
9 |
+
+# fixes vcpkg uwp failures due to /sdl
|
10 |
+
+if(MSVC)
|
11 |
+
+ add_compile_options(/wd4996)
|
12 |
+
+endif()
|
13 |
+
+
|
14 |
+
# -pthread sets also some useful compile-time flags
|
15 |
+
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
16 |
+
find_package(Threads)
|
cc-multilingual-main/cc_net/vcpkg/ports/avcpp/fix-pkgconfig-location.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index e0104f4..dae0942 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -128,7 +128,7 @@ if (AVCPP_NOT_SUBPROJECT)
|
6 |
+
)
|
7 |
+
|
8 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libavcpp.pc"
|
9 |
+
- DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig")
|
10 |
+
+ DESTINATION "lib/pkgconfig")
|
11 |
+
|
12 |
+
endif()
|
13 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/avcpp/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
# avcpp doesn't export any symbols
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
endif()
|
5 |
+
|
6 |
+
vcpkg_from_github(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO h4tr3d/avcpp
|
9 |
+
REF "v${VERSION}"
|
10 |
+
SHA512 10e3ab6bb52ceee2f7d6ea9364dbf5f09fdab5b10f34920f1a1df93ad853e0a4b3de9b554be8482d8444b62e10160c3e26f37907fee217bc9d5728329e06ad85
|
11 |
+
HEAD_REF master
|
12 |
+
PATCHES
|
13 |
+
0002-av_init_packet_deprecation.patch
|
14 |
+
fix-pkgconfig-location.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" AVCPP_ENABLE_STATIC)
|
18 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" AVCPP_ENABLE_SHARED)
|
19 |
+
|
20 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
21 |
+
|
22 |
+
vcpkg_cmake_configure(
|
23 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
24 |
+
OPTIONS
|
25 |
+
"-DAV_ENABLE_STATIC=${AVCPP_ENABLE_STATIC}"
|
26 |
+
"-DAV_ENABLE_SHARED=${AVCPP_ENABLE_SHARED}"
|
27 |
+
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
28 |
+
-DAV_BUILD_EXAMPLES=OFF
|
29 |
+
)
|
30 |
+
vcpkg_cmake_install()
|
31 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
32 |
+
|
33 |
+
vcpkg_fixup_pkgconfig()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
37 |
+
|
38 |
+
file(READ "${SOURCE_PATH}/LICENSE.md" LICENSE_MD)
|
39 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-bsd.txt" "${SOURCE_PATH}/LICENSE-lgpl2.txt" COMMENT "${LICENSE_MD}")
|
cc-multilingual-main/cc_net/vcpkg/ports/avcpp/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "avcpp",
|
3 |
+
"version": "2.3.0",
|
4 |
+
"description": "Wrapper for the FFmpeg that simplify usage it from C++ projects.",
|
5 |
+
"homepage": "https://github.com/h4tr3d/avcpp",
|
6 |
+
"license": "LGPL-2.1-only OR BSD-3-Clause",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "ffmpeg",
|
10 |
+
"default-features": false,
|
11 |
+
"features": [
|
12 |
+
"avcodec",
|
13 |
+
"avdevice",
|
14 |
+
"avfilter",
|
15 |
+
"avformat",
|
16 |
+
"postproc",
|
17 |
+
"swresample",
|
18 |
+
"swscale"
|
19 |
+
]
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "vcpkg-cmake",
|
23 |
+
"host": true
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "vcpkg-cmake-config",
|
27 |
+
"host": true
|
28 |
+
}
|
29 |
+
]
|
30 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/fix-static-library-build.patch
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 84a507f..d400e3b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -99,7 +99,7 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
6 |
+
endif()
|
7 |
+
|
8 |
+
set(re_DIR ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
9 |
+
-find_package(re CONFIG REQUIRED)
|
10 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/cmake/re-config.cmake")
|
11 |
+
|
12 |
+
list(APPEND RE_DEFINITIONS
|
13 |
+
-DRE_VERSION="${PROJECT_VERSION_FULL}"
|
14 |
+
@@ -648,7 +648,7 @@ endif()
|
15 |
+
if(LIBRE_BUILD_STATIC)
|
16 |
+
list(APPEND RE_INSTALL_TARGETS re)
|
17 |
+
add_library(re STATIC $<TARGET_OBJECTS:re-objs>)
|
18 |
+
- target_link_libraries(re PUBLIC ${RE_LIBS})
|
19 |
+
+ target_link_libraries(re PRIVATE ${RE_LIBS})
|
20 |
+
target_include_directories(re PUBLIC
|
21 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
22 |
+
)
|
23 |
+
@@ -704,6 +704,9 @@ configure_file(packaging/libre.pc.in libre.pc @ONLY)
|
24 |
+
|
25 |
+
install(TARGETS ${RE_INSTALL_TARGETS}
|
26 |
+
EXPORT libre
|
27 |
+
+ RUNTIME
|
28 |
+
+ DESTINATION ${CMAKE_INSTALL_BINDIR}
|
29 |
+
+ COMPONENT Libraries
|
30 |
+
LIBRARY
|
31 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
32 |
+
COMPONENT Libraries
|
33 |
+
@@ -722,7 +725,9 @@ install(FILES ${HEADERS}
|
34 |
+
|
35 |
+
install(EXPORT libre
|
36 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libre
|
37 |
+
+ FILE libre-targets.cmake
|
38 |
+
NAMESPACE libre::
|
39 |
+
+ COMPONENT Development
|
40 |
+
)
|
41 |
+
|
42 |
+
if(LIBRE_BUILD_SHARED)
|
43 |
+
@@ -734,12 +739,8 @@ if(LIBRE_BUILD_SHARED)
|
44 |
+
)
|
45 |
+
endif()
|
46 |
+
|
47 |
+
-install(FILES cmake/re-config.cmake
|
48 |
+
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/re
|
49 |
+
- COMPONENT Development
|
50 |
+
-)
|
51 |
+
-
|
52 |
+
-install(FILES cmake/libre-config.cmake
|
53 |
+
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/cmake/libre-config.cmake" "${CMAKE_CURRENT_BINARY_DIR}/cmake/libre-config.cmake" @ONLY)
|
54 |
+
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/cmake/libre-config.cmake"
|
55 |
+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/libre
|
56 |
+
COMPONENT Development
|
57 |
+
)
|
58 |
+
diff --git a/cmake/libre-config.cmake b/cmake/libre-config.cmake
|
59 |
+
index 0965b84..e8548a0 100644
|
60 |
+
--- a/cmake/libre-config.cmake
|
61 |
+
+++ b/cmake/libre-config.cmake
|
62 |
+
@@ -1 +1,23 @@
|
63 |
+
-include("${CMAKE_CURRENT_LIST_DIR}/libre.cmake")
|
64 |
+
+if("@LIBRE_BUILD_STATIC@")
|
65 |
+
+ include(CMakeFindDependencyMacro)
|
66 |
+
+ find_dependency(Threads)
|
67 |
+
+ if("@USE_OPENSSL@")
|
68 |
+
+ find_dependency(OpenSSL)
|
69 |
+
+ endif()
|
70 |
+
+ if("@ZLIB_FOUND@")
|
71 |
+
+ find_dependency(ZLIB)
|
72 |
+
+ endif()
|
73 |
+
+endif()
|
74 |
+
+
|
75 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/libre-targets.cmake")
|
76 |
+
+
|
77 |
+
+# convenience target libre::libre for uniform usage
|
78 |
+
+if(NOT TARGET libre::libre)
|
79 |
+
+ if(TARGET libre::re_shared AND (BUILD_SHARED_LIBS OR NOT TARGET libre::re))
|
80 |
+
+ add_library(libre::libre INTERFACE IMPORTED)
|
81 |
+
+ set_target_properties(libre::libre PROPERTIES INTERFACE_LINK_LIBRARIES libre::re_shared)
|
82 |
+
+ elseif(TARGET libre::re AND (NOT BUILD_SHARED_LIBS OR NOT TARGET libre::re_shared))
|
83 |
+
+ add_library(libre::libre INTERFACE IMPORTED)
|
84 |
+
+ set_target_properties(libre::libre PROPERTIES INTERFACE_LINK_LIBRARIES libre::re)
|
85 |
+
+ endif()
|
86 |
+
+endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 baresip/re
|
8 |
+
REF "v${VERSION}"
|
9 |
+
SHA512 d19fc5c48399ad4942c27d86c47350f579f8ebeaf8dc04b13a930b930c13a20e5e7dd5f0fe05d11b6b365667d8306f2499f5cb925850f4484049ba853d36b0b1
|
10 |
+
HEAD_REF main
|
11 |
+
PATCHES
|
12 |
+
fix-static-library-build.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" LIBRE_BUILD_SHARED)
|
16 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" LIBRE_BUILD_STATIC)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS
|
21 |
+
-DLIBRE_BUILD_SHARED=${LIBRE_BUILD_SHARED}
|
22 |
+
-DLIBRE_BUILD_STATIC=${LIBRE_BUILD_STATIC}
|
23 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Backtrace=ON
|
24 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_OpenSSL=ON
|
25 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_ZLIB=ON
|
26 |
+
)
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_fixup_pkgconfig()
|
29 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME libre CONFIG_PATH lib/cmake/libre)
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
|
33 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
34 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
baresip-libre provides CMake targets:
|
2 |
+
|
3 |
+
find_package(libre CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE libre::libre)
|
5 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/baresip-libre/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "baresip-libre",
|
3 |
+
"version": "3.9.0",
|
4 |
+
"description": "Generic library for real-time communications with async IO support",
|
5 |
+
"homepage": "https://github.com/baresip/re",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"openssl",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
"zlib"
|
19 |
+
]
|
20 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-signals2/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/signals2
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 1490e0f58cf3c5c0c1305e9e3c80709ed1e52a99749e36f07c217f7b11a5bd4b963cf5c67c692f1004296c5ebff31468679fd5fb3d34e0019f25d9cd7bd2fcd9
|
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-signals2/vcpkg.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-signals2",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost signals2 module",
|
6 |
+
"homepage": "https://github.com/boostorg/signals2",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-assert",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-bind",
|
15 |
+
"version>=": "1.84.0"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"name": "boost-config",
|
19 |
+
"version>=": "1.84.0"
|
20 |
+
},
|
21 |
+
{
|
22 |
+
"name": "boost-core",
|
23 |
+
"version>=": "1.84.0"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "boost-function",
|
27 |
+
"version>=": "1.84.0"
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "boost-iterator",
|
31 |
+
"version>=": "1.84.0"
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"name": "boost-mpl",
|
35 |
+
"version>=": "1.84.0"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"name": "boost-optional",
|
39 |
+
"version>=": "1.84.0"
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"name": "boost-parameter",
|
43 |
+
"version>=": "1.84.0"
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"name": "boost-preprocessor",
|
47 |
+
"version>=": "1.84.0"
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"name": "boost-smart-ptr",
|
51 |
+
"version>=": "1.84.0"
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"name": "boost-throw-exception",
|
55 |
+
"version>=": "1.84.0"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"name": "boost-tuple",
|
59 |
+
"version>=": "1.84.0"
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"name": "boost-type-traits",
|
63 |
+
"version>=": "1.84.0"
|
64 |
+
},
|
65 |
+
{
|
66 |
+
"name": "boost-variant",
|
67 |
+
"version>=": "1.84.0"
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"name": "boost-vcpkg-helpers",
|
71 |
+
"version>=": "1.84.0"
|
72 |
+
}
|
73 |
+
]
|
74 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/catch2/fix-install-path.patch
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt
|
3 |
+
+++ b/CMakeLists.txt
|
4 |
+
@@ -164,7 +164,7 @@
|
5 |
+
|
6 |
+
## Provide some pkg-config integration
|
7 |
+
set(PKGCONFIG_INSTALL_DIR
|
8 |
+
- "${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig"
|
9 |
+
+ "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
10 |
+
CACHE PATH "Path where catch2.pc is installed"
|
11 |
+
)
|
12 |
+
configure_file(
|
13 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
14 |
+
--- a/src/CMakeLists.txt
|
15 |
+
+++ b/src/CMakeLists.txt
|
16 |
+
@@ -401,16 +401,28 @@
|
17 |
+
install(
|
18 |
+
TARGETS
|
19 |
+
Catch2
|
20 |
+
- Catch2WithMain
|
21 |
+
EXPORT
|
22 |
+
Catch2Targets
|
23 |
+
LIBRARY DESTINATION
|
24 |
+
${CMAKE_INSTALL_LIBDIR}
|
25 |
+
ARCHIVE DESTINATION
|
26 |
+
${CMAKE_INSTALL_LIBDIR}
|
27 |
+
RUNTIME DESTINATION
|
28 |
+
${CMAKE_INSTALL_BINDIR}
|
29 |
+
)
|
30 |
+
+
|
31 |
+
+ install(
|
32 |
+
+ TARGETS
|
33 |
+
+ Catch2WithMain
|
34 |
+
+ EXPORT
|
35 |
+
+ Catch2Targets
|
36 |
+
+ LIBRARY DESTINATION
|
37 |
+
+ ${CMAKE_INSTALL_LIBDIR}/manual-link
|
38 |
+
+ ARCHIVE DESTINATION
|
39 |
+
+ ${CMAKE_INSTALL_LIBDIR}/manual-link
|
40 |
+
+ RUNTIME DESTINATION
|
41 |
+
+ ${CMAKE_INSTALL_BINDIR}
|
42 |
+
+ )
|
43 |
+
|
44 |
+
|
45 |
+
install(
|
cc-multilingual-main/cc_net/vcpkg/ports/catch2/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 catchorg/Catch2
|
8 |
+
REF v${VERSION}
|
9 |
+
SHA512 57c996f679cbad212cb0fde39e506bade37bd559c0e93e20f407f2a2f029e98b78661e10257f9c8e4cb5fd7d52d0ea1eae3d4a1f989c6d66fcb281e32e1688f6
|
10 |
+
HEAD_REF devel
|
11 |
+
PATCHES
|
12 |
+
fix-install-path.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS
|
18 |
+
-DCATCH_INSTALL_DOCS=OFF
|
19 |
+
-DCMAKE_CXX_STANDARD=17
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Catch2)
|
25 |
+
vcpkg_fixup_pkgconfig()
|
26 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/catch2-with-main.pc" [["-L${libdir}"]] [["-L${libdir}/manual-link"]])
|
27 |
+
if(NOT VCPKG_BUILD_TYPE)
|
28 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/catch2-with-main.pc" [["-L${libdir}"]] [["-L${libdir}/manual-link"]])
|
29 |
+
endif()
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
33 |
+
|
34 |
+
# We remove these folders because they are empty and cause warnings on the library installation
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/catch2/benchmark/internal")
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/catch2/generators/internal")
|
37 |
+
|
38 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/include/catch.hpp" "#include <catch2/catch_all.hpp>")
|
39 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/catch2/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "catch2",
|
3 |
+
"version-semver": "3.5.3",
|
4 |
+
"description": "A modern, C++-native, test framework for unit-tests, TDD and BDD.",
|
5 |
+
"homepage": "https://github.com/catchorg/Catch2",
|
6 |
+
"license": "BSL-1.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/chakracore/add-missing-reference.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/lib/SCACore/Chakra.SCACore.vcxproj b/lib/SCACore/Chakra.SCACore.vcxproj
|
2 |
+
index 1b13cea..57b066b 100644
|
3 |
+
--- a/lib/SCACore/Chakra.SCACore.vcxproj
|
4 |
+
+++ b/lib/SCACore/Chakra.SCACore.vcxproj
|
5 |
+
@@ -60,6 +60,9 @@
|
6 |
+
<ClInclude Include="StreamReader.h" />
|
7 |
+
<ClInclude Include="StreamWriter.h" />
|
8 |
+
</ItemGroup>
|
9 |
+
+ <ItemGroup>
|
10 |
+
+ <ProjectReference Include="$(MSBuildThisFileDirectory)../../manifests/CoreManifests.vcxproj" />
|
11 |
+
+ </ItemGroup>
|
12 |
+
<Import Project="$(BuildConfigPropsPath)Chakra.Build.targets" Condition="exists('$(BuildConfigPropsPath)Chakra.Build.targets')" />
|
13 |
+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
14 |
+
</Project>
|
15 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/chakracore/avoid_msvc_internal_STRINGIZE.patch
ADDED
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/bin/NativeTests/stdafx.h b/bin/NativeTests/stdafx.h
|
2 |
+
index c7a021c..77f8299 100644
|
3 |
+
--- a/bin/NativeTests/stdafx.h
|
4 |
+
+++ b/bin/NativeTests/stdafx.h
|
5 |
+
@@ -25,11 +25,16 @@
|
6 |
+
|
7 |
+
#define DebugOnly(x) x
|
8 |
+
|
9 |
+
+#if !defined(CHAKRACORE_STRINGIZE)
|
10 |
+
+#define CHAKRACORE_STRINGIZE_IMPL(x) #x
|
11 |
+
+#define CHAKRACORE_STRINGIZE(x) CHAKRACORE_STRINGIZE_IMPL(x)
|
12 |
+
+#endif
|
13 |
+
+
|
14 |
+
#define AssertMsg(exp, comment) \
|
15 |
+
do { \
|
16 |
+
if (!(exp)) \
|
17 |
+
{ \
|
18 |
+
- fprintf(stderr, "ASSERTION (%s, line %d) %s %s\n", __FILE__, __LINE__, _STRINGIZE(exp), comment); \
|
19 |
+
+ fprintf(stderr, "ASSERTION (%s, line %d) %s %s\n", __FILE__, __LINE__, CHAKRACORE_STRINGIZE(exp), comment); \
|
20 |
+
fflush(stderr); \
|
21 |
+
DebugBreak(); \
|
22 |
+
} \
|
23 |
+
diff --git a/bin/ch/stdafx.h b/bin/ch/stdafx.h
|
24 |
+
index 450a33d..7c5ecc2 100644
|
25 |
+
--- a/bin/ch/stdafx.h
|
26 |
+
+++ b/bin/ch/stdafx.h
|
27 |
+
@@ -57,16 +57,16 @@
|
28 |
+
|
29 |
+
#if defined(DBG)
|
30 |
+
|
31 |
+
-#define _STRINGIZE_(x) #x
|
32 |
+
-#if !defined(_STRINGIZE)
|
33 |
+
-#define _STRINGIZE(x) _STRINGIZE_(x)
|
34 |
+
+#if !defined(CHAKRACORE_STRINGIZE)
|
35 |
+
+#define CHAKRACORE_STRINGIZE_IMPL(x) #x
|
36 |
+
+#define CHAKRACORE_STRINGIZE(x) CHAKRACORE_STRINGIZE_IMPL(x)
|
37 |
+
#endif
|
38 |
+
|
39 |
+
#define AssertMsg(exp, comment) \
|
40 |
+
do { \
|
41 |
+
if (!(exp)) \
|
42 |
+
{ \
|
43 |
+
- fprintf(stderr, "ASSERTION (%s, line %d) %s %s\n", __FILE__, __LINE__, _STRINGIZE(exp), comment); \
|
44 |
+
+ fprintf(stderr, "ASSERTION (%s, line %d) %s %s\n", __FILE__, __LINE__, CHAKRACORE_STRINGIZE(exp), comment); \
|
45 |
+
fflush(stderr); \
|
46 |
+
DebugBreak(); \
|
47 |
+
} \
|
48 |
+
diff --git a/pal/inc/assert_only.h b/pal/inc/assert_only.h
|
49 |
+
index eef0e62..644460c 100644
|
50 |
+
--- a/pal/inc/assert_only.h
|
51 |
+
+++ b/pal/inc/assert_only.h
|
52 |
+
@@ -6,20 +6,22 @@
|
53 |
+
// PAL free Assert definitions
|
54 |
+
#ifdef DEBUG
|
55 |
+
|
56 |
+
-#define _QUOTE_(s) #s
|
57 |
+
-#define _STRINGIZE_(s) _QUOTE_(s)
|
58 |
+
+#if !defined(CHAKRACORE_STRINGIZE)
|
59 |
+
+#define CHAKRACORE_STRINGIZE_IMPL(x) #x
|
60 |
+
+#define CHAKRACORE_STRINGIZE(x) CHAKRACORE_STRINGIZE_IMPL(x)
|
61 |
+
+#endif
|
62 |
+
|
63 |
+
#ifndef __ANDROID__
|
64 |
+
#define _ERR_OUTPUT_(condition, comment) \
|
65 |
+
fprintf(stderr, "ASSERTION (%s, line %d) %s %s\n", __FILE__, __LINE__, \
|
66 |
+
- _STRINGIZE_(condition), comment); \
|
67 |
+
+ CHAKRACORE_STRINGIZE(condition), comment); \
|
68 |
+
fflush(stderr);
|
69 |
+
#else // ANDROID
|
70 |
+
#include <android/log.h>
|
71 |
+
#define _ERR_OUTPUT_(condition, comment) \
|
72 |
+
__android_log_print(ANDROID_LOG_ERROR, "chakracore-log", \
|
73 |
+
"ASSERTION (%s, line %d) %s %s\n", __FILE__, __LINE__, \
|
74 |
+
- _STRINGIZE_(condition), comment);
|
75 |
+
+ CHAKRACORE_STRINGIZE(condition), comment);
|
76 |
+
#endif
|
77 |
+
|
78 |
+
#define _Assert_(condition, comment) \
|
cc-multilingual-main/cc_net/vcpkg/ports/chakracore/no-warning-as-error.props
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="utf-8"?>
|
2 |
+
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3 |
+
<ItemDefinitionGroup>
|
4 |
+
<ClCompile>
|
5 |
+
<TreatWarningAsError>false</TreatWarningAsError>
|
6 |
+
</ClCompile>
|
7 |
+
</ItemDefinitionGroup>
|
8 |
+
</Project>
|
cc-multilingual-main/cc_net/vcpkg/ports/chakracore/portfile.cmake
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Microsoft/ChakraCore
|
6 |
+
REF fd6908097f758ef65bd83680cf413313ad36c98d
|
7 |
+
SHA512 c35a2e3680d3ff5c7d715752570b5f12cf9da716ef28377694e9aa079553b5c0276c51a66b342956d217e9842edd12c25af4a001fae34175a2114134ee4428ee
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
add-missing-reference.patch # https://github.com/chakra-core/ChakraCore/pull/6862
|
11 |
+
avoid_msvc_internal_STRINGIZE.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
set(BUILDTREE_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
|
15 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
16 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
17 |
+
set(additional_options NO_TOOLCHAIN_PROPS) # don't know how to fix the linker error about __guard_check_icall_thunk
|
18 |
+
endif()
|
19 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
20 |
+
set(PLATFORM_ARG PLATFORM x86) # it's x86, not Win32 in sln file
|
21 |
+
endif()
|
22 |
+
|
23 |
+
vcpkg_msbuild_install(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
PROJECT_SUBPATH Build/Chakra.Core.sln
|
26 |
+
OPTIONS
|
27 |
+
"/p:CustomBeforeMicrosoftCommonTargets=${CMAKE_CURRENT_LIST_DIR}/no-warning-as-error.props"
|
28 |
+
${PLATFORM_ARG}
|
29 |
+
${additional_options}
|
30 |
+
)
|
31 |
+
file(GLOB_RECURSE LIB_FILES "${CURRENT_PACKAGES_DIR}/lib/*.lib")
|
32 |
+
file(GLOB_RECURSE DEBUG_LIB_FILES "${CURRENT_PACKAGES_DIR}/debug/lib/*.lib")
|
33 |
+
foreach(file ${LIB_FILES} ${DEBUG_LIB_FILES})
|
34 |
+
if(NOT file MATCHES "ChakraCore.lib")
|
35 |
+
file(REMOVE ${file})
|
36 |
+
endif()
|
37 |
+
endforeach()
|
38 |
+
else()
|
39 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "x64")
|
40 |
+
set(CHAKRACORE_TARGET_ARCH amd64)
|
41 |
+
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "x86")
|
42 |
+
set(CHAKRACORE_TARGET_ARCH x86)
|
43 |
+
endif()
|
44 |
+
|
45 |
+
if (VCPKG_TARGET_IS_LINUX)
|
46 |
+
message(WARNING "${PORT} requires Clang from the system package manager, this can be installed on Ubuntu systems via sudo apt install clang")
|
47 |
+
endif()
|
48 |
+
|
49 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE)
|
50 |
+
list(APPEND configs "debug")
|
51 |
+
execute_process(
|
52 |
+
COMMAND bash "build.sh" "--arch=${CHAKRACORE_TARGET_ARCH}" "--debug" "-j=${VCPKG_CONCURRENCY}"
|
53 |
+
WORKING_DIRECTORY "${BUILDTREE_PATH}-dbg"
|
54 |
+
|
55 |
+
OUTPUT_VARIABLE CHAKRA_BUILD_SH_OUT
|
56 |
+
ERROR_VARIABLE CHAKRA_BUILD_SH_ERR
|
57 |
+
RESULT_VARIABLE CHAKRA_BUILD_SH_RES
|
58 |
+
ECHO_OUTPUT_VARIABLE
|
59 |
+
ECHO_ERROR_VARIABLE
|
60 |
+
)
|
61 |
+
endif()
|
62 |
+
|
63 |
+
list(APPEND configs "release")
|
64 |
+
execute_process(
|
65 |
+
COMMAND bash "build.sh" "--arch=${CHAKRACORE_TARGET_ARCH}" "-j=${VCPKG_CONCURRENCY}"
|
66 |
+
WORKING_DIRECTORY "${BUILDTREE_PATH}-rel"
|
67 |
+
OUTPUT_VARIABLE CHAKRA_BUILD_SH_OUT
|
68 |
+
ERROR_VARIABLE CHAKRA_BUILD_SH_ERR
|
69 |
+
RESULT_VARIABLE CHAKRA_BUILD_SH_RES
|
70 |
+
ECHO_OUTPUT_VARIABLE
|
71 |
+
ECHO_ERROR_VARIABLE
|
72 |
+
)
|
73 |
+
|
74 |
+
endif()
|
75 |
+
|
76 |
+
file(INSTALL
|
77 |
+
"${BUILDTREE_PATH}-rel/lib/Jsrt/ChakraCore.h"
|
78 |
+
"${BUILDTREE_PATH}-rel/lib/Jsrt/ChakraCommon.h"
|
79 |
+
"${BUILDTREE_PATH}-rel/lib/Jsrt/ChakraDebug.h"
|
80 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
81 |
+
)
|
82 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
83 |
+
file(INSTALL
|
84 |
+
"${BUILDTREE_PATH}-rel/lib/Jsrt/ChakraCommonWindows.h"
|
85 |
+
"${BUILDTREE_PATH}-rel/lib/Jsrt/ChakraCoreWindows.h"
|
86 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
87 |
+
)
|
88 |
+
else()
|
89 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
90 |
+
set(out_file libChakraCore.so)
|
91 |
+
else()
|
92 |
+
set(out_file lib/libChakraCoreStatic.a)
|
93 |
+
endif()
|
94 |
+
|
95 |
+
set(destination_dir_debug "${CURRENT_PACKAGES_DIR}/debug/bin")
|
96 |
+
set(destination_dir_release "${CURRENT_PACKAGES_DIR}/bin")
|
97 |
+
set(out_dir_debug "${BUILDTREE_PATH}-dbg/out/Debug")
|
98 |
+
set(out_dir_release "${BUILDTREE_PATH}-rel/out/Release")
|
99 |
+
foreach(config ${configs})
|
100 |
+
file(INSTALL
|
101 |
+
${out_dir_${config}}/${out_file}
|
102 |
+
DESTINATION ${destination_dir_${config}}
|
103 |
+
)
|
104 |
+
endforeach()
|
105 |
+
|
106 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
107 |
+
file(INSTALL
|
108 |
+
"${out_dir_release}/ch"
|
109 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/tools/chakracore"
|
110 |
+
)
|
111 |
+
vcpkg_copy_tools(TOOL_NAMES ch
|
112 |
+
SEARCH_DIR "${out_dir_release}"
|
113 |
+
)
|
114 |
+
endif()
|
115 |
+
|
116 |
+
|
117 |
+
endif()
|
118 |
+
|
119 |
+
file(INSTALL
|
120 |
+
"${CMAKE_CURRENT_LIST_DIR}/unofficial-chakracore-config.cmake"
|
121 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-${PORT}"
|
122 |
+
)
|
123 |
+
|
124 |
+
vcpkg_install_copyright(FILE_LIST
|
125 |
+
"${SOURCE_PATH}/LICENSE.txt"
|
126 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/chakracore/unofficial-chakracore-config.cmake
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(NOT TARGET unofficial::chakracore::chakracore)
|
2 |
+
add_library(unofficial::chakracore::chakracore UNKNOWN IMPORTED)
|
3 |
+
|
4 |
+
find_path(ChakraCore_INCLUDE_DIR NAMES ChakraCore.h)
|
5 |
+
|
6 |
+
set_target_properties(unofficial::chakracore::chakracore PROPERTIES
|
7 |
+
INTERFACE_INCLUDE_DIRECTORIES "${ChakraCore_INCLUDE_DIR}"
|
8 |
+
)
|
9 |
+
|
10 |
+
find_library(ChakraCore_LIBRARY_RELEASE NAMES ChakraCore PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH REQUIRED)
|
11 |
+
find_library(ChakraCore_LIBRARY_DEBUG NAMES ChakraCore PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH REQUIRED)
|
12 |
+
|
13 |
+
set_target_properties(unofficial::chakracore::chakracore PROPERTIES
|
14 |
+
IMPORTED_LOCATION_DEBUG "${ChakraCore_LIBRARY_DEBUG}"
|
15 |
+
IMPORTED_LOCATION_RELEASE "${ChakraCore_LIBRARY_RELEASE}"
|
16 |
+
IMPORTED_CONFIGURATIONS "Release;Debug"
|
17 |
+
)
|
18 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/chakracore/vcpkg.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chakracore",
|
3 |
+
"version-date": "2022-11-09",
|
4 |
+
"port-version": 6,
|
5 |
+
"description": "Core part of the Chakra Javascript engine",
|
6 |
+
"homepage": "https://github.com/Microsoft/ChakraCore",
|
7 |
+
"license": "MIT",
|
8 |
+
"supports": "!osx & !uwp & (linux | !static)",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "vcpkg-msbuild",
|
20 |
+
"host": true,
|
21 |
+
"features": [
|
22 |
+
"pkg-config"
|
23 |
+
],
|
24 |
+
"platform": "windows"
|
25 |
+
}
|
26 |
+
]
|
27 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/collada-dom/fix-emscripten.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/dom/src/dae/daeUtils.cpp b/dom/src/dae/daeUtils.cpp
|
2 |
+
index 7e3dc9a..dc94b5b 100644
|
3 |
+
--- a/dom/src/dae/daeUtils.cpp
|
4 |
+
+++ b/dom/src/dae/daeUtils.cpp
|
5 |
+
@@ -152,7 +152,7 @@ char cdom::getFileSeparator() {
|
6 |
+
const string& cdom::getSystemTmpDir() {
|
7 |
+
#ifdef WIN32
|
8 |
+
static string tmpDir = string(getenv("TMP")) + getFileSeparator();
|
9 |
+
-#elif defined(__linux__) || defined(__linux)
|
10 |
+
+#elif defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__)
|
11 |
+
static string tmpDir = "/tmp/";
|
12 |
+
#elif defined __APPLE_CC__
|
13 |
+
static string tmpDir = string(getenv("TMPDIR"));
|
14 |
+
@@ -171,7 +171,7 @@ string cdom::getRandomFileName() {
|
15 |
+
std::string tmp(tmpnam(&tmpbuffer[0]));
|
16 |
+
#ifdef WIN32
|
17 |
+
randomSegment = tmp.substr(tmp.find_last_of('\\')+1);
|
18 |
+
-#elif defined(__linux__) || defined(__linux)
|
19 |
+
+#elif defined(__linux__) || defined(__linux) || defined(__EMSCRIPTEN__)
|
20 |
+
randomSegment = tmp.substr(tmp.find_last_of('/')+1);
|
21 |
+
#elif defined __APPLE_CC__
|
22 |
+
randomSegment = tmp.substr(tmp.find_last_of('/')+1);
|
23 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/collada-dom/use-vcpkg-minizip.patch
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f6c2bb6..3351ab0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -222,7 +222,8 @@ else()
|
6 |
+
endif()
|
7 |
+
endif()
|
8 |
+
|
9 |
+
-pkg_check_modules(minizip minizip)
|
10 |
+
+find_package(minizip NAMES unofficial-minizip REQUIRED)
|
11 |
+
+add_library(minizip ALIAS unofficial::minizip::minizip)
|
12 |
+
if(minizip_FOUND)
|
13 |
+
set(MINIZIP_INCLUDE_DIR ${minizip_INCLUDE_DIRS})
|
14 |
+
else()
|
15 |
+
diff --git a/dom/include/dae/daeZAEUncompressHandler.h b/dom/include/dae/daeZAEUncompressHandler.h
|
16 |
+
index e9b0e9e..3d120da 100644
|
17 |
+
--- a/dom/include/dae/daeZAEUncompressHandler.h
|
18 |
+
+++ b/dom/include/dae/daeZAEUncompressHandler.h
|
19 |
+
@@ -9,7 +9,7 @@
|
20 |
+
#ifndef __DAE_ZAE_UNCOMPRESS_HANDLER_H__
|
21 |
+
#define __DAE_ZAE_UNCOMPRESS_HANDLER_H__
|
22 |
+
|
23 |
+
-#include <unzip.h>
|
24 |
+
+#include <../minizip/unzip.h>
|
25 |
+
#include <libxml/xmlreader.h>
|
26 |
+
#include <dae/daeURI.h>
|
27 |
+
|
28 |
+
diff --git a/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp b/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp
|
29 |
+
index 4536275..2666959 100644
|
30 |
+
--- a/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp
|
31 |
+
+++ b/dom/src/modules/LIBXMLPlugin/daeLIBXMLPlugin.cpp
|
32 |
+
@@ -32,9 +32,9 @@
|
33 |
+
#include <iomanip>
|
34 |
+
using namespace std;
|
35 |
+
|
36 |
+
-#include <zip.h> // for saving compressed files
|
37 |
+
+#include <../minizip/zip.h> // for saving compressed files
|
38 |
+
#ifdef _WIN32
|
39 |
+
-#include <iowin32.h>
|
40 |
+
+#include <../minizip/iowin32.h>
|
41 |
+
#else
|
42 |
+
#include <unistd.h>
|
43 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/ctbignum/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO niekbouman/ctbignum
|
4 |
+
REF cf3233d8b7dcff59f29a7389204959ee2228a4af
|
5 |
+
SHA512 8cd5e187836f48165a088a171c87ce438393e66f7362af1b67a253ae6ef0b17c41468e21e0dfe337094796f2b2a2fa5062cc9a9231afc377f187baf1ead1257e
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DCTBIGNUM_BuildTests=OFF
|
13 |
+
-DCTBIGNUM_BuildBenchmarks=OFF
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
# Move CMake files to the right place
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
20 |
+
# Remove empty files
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
23 |
+
|
24 |
+
# Handle copyright
|
25 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
26 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/ctbignum/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ctbignum",
|
3 |
+
"version-date": "2019-08-02",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "This is a header-only template library for fixed-width \"small big-integer\" computations, for use during run-time as well as compile-time.",
|
6 |
+
"homepage": "https://github.com/niekbouman/ctbignum",
|
7 |
+
"dependencies": [
|
8 |
+
"boost",
|
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/cubeb/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO mozilla/cubeb
|
4 |
+
REF f1bfefbbd412eaa0fe89f5afb3c11b427dc2446a
|
5 |
+
SHA512 541bdcdc17c02f51e6faae1c90e0ddf30f40b137bb47498f7845919107190a4acb97d88e26ccf4877dbce7aeddee0f6538fd34c71396bc6a81644438a1a3242e
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
OPTIONS
|
12 |
+
-DUSE_SANITIZERS=OFF
|
13 |
+
-DBUILD_TESTS=OFF
|
14 |
+
-DBUILD_TOOLS=OFF
|
15 |
+
-DDOXYGEN_EXECUTABLE= # Prevents the generation of documentation
|
16 |
+
)
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cubeb)
|
19 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
24 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/cubeb/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cubeb",
|
3 |
+
"version-date": "2023-09-26",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Cross platform audio library",
|
6 |
+
"homepage": "https://github.com/mozilla/cubeb",
|
7 |
+
"license": "ISC",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
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/elements/asio-headers.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
2 |
+
index e8179fbe..29b420c7 100644
|
3 |
+
--- a/lib/CMakeLists.txt
|
4 |
+
+++ b/lib/CMakeLists.txt
|
5 |
+
@@ -288,7 +288,8 @@ endif()
|
6 |
+
|
7 |
+
###############################################################################
|
8 |
+
# Asio headers
|
9 |
+
-target_include_directories(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/asio/asio/include)
|
10 |
+
+find_path(ASIO_INCLUDE_DIR asio.hpp)
|
11 |
+
+target_include_directories(elements PUBLIC ${ASIO_INCLUDE_DIR})
|
12 |
+
|
13 |
+
###############################################################################
|
14 |
+
# Global options
|
cc-multilingual-main/cc_net/vcpkg/ports/elements/portfile.cmake
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 cycfi/elements
|
8 |
+
REF e2c891bb37b506e3281b902fc0fcc75a5577e476
|
9 |
+
SHA512 3f54c3dcf3fab17eca6a6105f0e77a28a1b77d6354dac12c373c7da84d280abdc8d5bcbe9c42bbc3e38284acbfeb57392ef2538ef7118dd5c34cae29a4e88855
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
asio-headers.patch
|
13 |
+
win-find-libraries.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_from_github(
|
17 |
+
OUT_SOURCE_PATH INFRA_SOURCE_PATH
|
18 |
+
REPO cycfi/infra
|
19 |
+
REF 6bc1cc62e3d0a31f92506a577beca3b400b54544
|
20 |
+
SHA512 ceb5acb36210b4fcf4ef3931e718ae1cb09941cc61caab1d20d09003bae2b20fda092e4b1af1bb58444de75f73c04d0651eb5126a87dab7ce14a1b914bccec27
|
21 |
+
HEAD_REF master
|
22 |
+
)
|
23 |
+
if(NOT EXISTS "${SOURCE_PATH}/lib/infra/CMakeLists.txt")
|
24 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/lib/infra")
|
25 |
+
file(RENAME "${INFRA_SOURCE_PATH}" "${SOURCE_PATH}/lib/infra")
|
26 |
+
endif()
|
27 |
+
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
30 |
+
set(ELEMENTS_HOST_UI_LIBRARY "win32")
|
31 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
32 |
+
set(ELEMENTS_HOST_UI_LIBRARY "cocoa")
|
33 |
+
else()
|
34 |
+
set(ELEMENTS_HOST_UI_LIBRARY "gtk")
|
35 |
+
endif()
|
36 |
+
|
37 |
+
vcpkg_cmake_configure(
|
38 |
+
SOURCE_PATH ${SOURCE_PATH}
|
39 |
+
OPTIONS
|
40 |
+
-DELEMENTS_BUILD_EXAMPLES=OFF
|
41 |
+
-DELEMENTS_HOST_UI_LIBRARY=${ELEMENTS_HOST_UI_LIBRARY}
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_cmake_build()
|
45 |
+
|
46 |
+
file(INSTALL "${SOURCE_PATH}/lib/include/elements.hpp" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
47 |
+
file(INSTALL "${SOURCE_PATH}/lib/include/elements" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
48 |
+
file(INSTALL "${SOURCE_PATH}/lib/infra/include/infra" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
49 |
+
|
50 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
51 |
+
file(GLOB ELEMENTS_LIBS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/lib/*elements*")
|
52 |
+
file(INSTALL ${ELEMENTS_LIBS} DESTINATION "${CURRENT_PACKAGES_DIR}/lib")
|
53 |
+
endif()
|
54 |
+
|
55 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
56 |
+
file(GLOB ELEMENTS_LIBS "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/lib/*elements*")
|
57 |
+
file(INSTALL ${ELEMENTS_LIBS} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib")
|
58 |
+
endif()
|
59 |
+
|
60 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/README.md")
|
cc-multilingual-main/cc_net/vcpkg/ports/elements/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "elements",
|
3 |
+
"version-date": "2022-12-07",
|
4 |
+
"description": "Elements is a lightweight, fine-grained, resolution independent, modular GUI library.",
|
5 |
+
"homepage": "https://cycfi.github.io/elements",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"asio",
|
9 |
+
"cairo",
|
10 |
+
{
|
11 |
+
"name": "gtk3",
|
12 |
+
"platform": "linux"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/elements/win-find-libraries.patch
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
2 |
+
index e8179fbe..f3ac5ddf 100644
|
3 |
+
--- a/lib/CMakeLists.txt
|
4 |
+
+++ b/lib/CMakeLists.txt
|
5 |
+
@@ -215,13 +215,13 @@ endif()
|
6 |
+
# Cairo
|
7 |
+
|
8 |
+
if (MSVC)
|
9 |
+
- target_include_directories(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/cairo/include)
|
10 |
+
+ find_path(Cairo_INCLUDE_DIR cairo/cairo.h)
|
11 |
+
+ list(APPEND Cairo_INCLUDE_DIRS ${Cairo_INCLUDE_DIR})
|
12 |
+
+ list(APPEND Cairo_INCLUDE_DIRS ${Cairo_INCLUDE_DIR}/cairo)
|
13 |
+
+ target_include_directories(elements PUBLIC ${Cairo_INCLUDE_DIRS})
|
14 |
+
|
15 |
+
- if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
16 |
+
- target_link_libraries(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/cairo/lib/x64/cairo.lib)
|
17 |
+
- else()
|
18 |
+
- target_link_libraries(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/cairo/lib/x86/cairo.lib)
|
19 |
+
- endif()
|
20 |
+
+ find_library(Cairo_LIBRARY cairo)
|
21 |
+
+ target_link_libraries(elements PUBLIC ${Cairo_LIBRARY})
|
22 |
+
elseif (APPLE)
|
23 |
+
# TODO: add a min version specifiction
|
24 |
+
pkg_check_modules(cairo REQUIRED IMPORTED_TARGET cairo)
|
25 |
+
@@ -240,13 +240,8 @@ endif()
|
26 |
+
# Fontconfig
|
27 |
+
|
28 |
+
if (MSVC)
|
29 |
+
- target_include_directories(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/fontconfig/include)
|
30 |
+
-
|
31 |
+
- if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
32 |
+
- target_link_libraries(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/fontconfig/x64/fontconfig.lib)
|
33 |
+
- else()
|
34 |
+
- target_link_libraries(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/fontconfig/x86/fontconfig.lib)
|
35 |
+
- endif()
|
36 |
+
+ find_package(Fontconfig REQUIRED)
|
37 |
+
+ target_link_libraries(elements PUBLIC Fontconfig::Fontconfig)
|
38 |
+
elseif (APPLE)
|
39 |
+
pkg_check_modules(fontconfig REQUIRED IMPORTED_TARGET fontconfig)
|
40 |
+
target_include_directories(elements PUBLIC ${fontconfig_INCLUDE_DIRS})
|
41 |
+
@@ -261,13 +256,8 @@ endif()
|
42 |
+
# Freetype
|
43 |
+
|
44 |
+
if (MSVC)
|
45 |
+
- target_include_directories(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/freetype/include)
|
46 |
+
-
|
47 |
+
- if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
48 |
+
- target_link_libraries(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/freetype/win64/freetype.lib)
|
49 |
+
- else()
|
50 |
+
- target_link_libraries(elements PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/external/freetype/win32/freetype.lib)
|
51 |
+
- endif()
|
52 |
+
+ find_package(Freetype REQUIRED)
|
53 |
+
+ target_link_libraries(elements PUBLIC Freetype::Freetype)
|
54 |
+
elseif (APPLE)
|
55 |
+
pkg_check_modules(freetype2 REQUIRED IMPORTED_TARGET freetype2)
|
56 |
+
target_include_directories(elements PUBLIC ${freetype2_INCLUDE_DIRS})
|
cc-multilingual-main/cc_net/vcpkg/ports/fcl/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO flexible-collision-library/fcl
|
6 |
+
REF 0.7.0
|
7 |
+
SHA512 95612476f4706fcd60812204ec7495a956c4e318cc6ace9526ac93dc765605ddf73b2d0d9ff9f4c9c739e43c5f8e24670113c86e02868a2949ab234c3bf82374
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FCL_STATIC_LIBRARY)
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
14 |
+
set(FCL_USE_X64_SSE ON)
|
15 |
+
else()
|
16 |
+
set(FCL_USE_X64_SSE OFF)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
OPTIONS
|
22 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=1
|
23 |
+
-DFCL_STATIC_LIBRARY=${FCL_STATIC_LIBRARY}
|
24 |
+
-DFCL_BUILD_TESTS=OFF
|
25 |
+
-DFCL_USE_X64_SSE=${FCL_USE_X64_SSE}
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/CMake")
|
32 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH CMake)
|
33 |
+
else()
|
34 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fcl)
|
35 |
+
endif()
|
36 |
+
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
38 |
+
|
39 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
40 |
+
|
41 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/gemmlowp/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO google/gemmlowp
|
8 |
+
REF daf630d3d0c439dbe22229838a5ba1bc5f82908d
|
9 |
+
SHA512 8d1a422bbf2495dcec1c30147bc96d0a2ca494220a45050937f84567c3352cd8916f07d1bbab68c8d36ae7ce3e9b8bee8b518900e21967a3185bf7ff25812785
|
10 |
+
HEAD_REF master
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}/contrib"
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_TESTING=OFF
|
17 |
+
)
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
cc-multilingual-main/cc_net/vcpkg/ports/gemmlowp/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gemmlowp",
|
3 |
+
"version-date": "2021-09-28",
|
4 |
+
"description": "Low-precision matrix multiplication",
|
5 |
+
"homepage": "https://github.com/google/gemmlowp",
|
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/irrlicht/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
find_package(ZLIB REQUIRED)
|
3 |
+
find_package(PNG REQUIRED)
|
4 |
+
find_package(JPEG REQUIRED)
|
5 |
+
find_package(BZip2 REQUIRED)
|
6 |
+
if(TARGET Irrlicht::Irrlicht)
|
7 |
+
set_property(TARGET Irrlicht::Irrlicht APPEND PROPERTY INTERFACE_LINK_LIBRARIES ZLIB::ZLIB PNG::PNG JPEG::JPEG BZip2::BZip2)
|
8 |
+
endif()
|
9 |
+
if(IRRLICHT_LIBRARIES)
|
10 |
+
list(APPEND IRRLICHT_LIBRARIES ${ZLIB_LIBRARIES} ${PNG_LIBRARIES} ${JPEG_LIBRARIES} ${BZIP2_LIBRARIES})
|
11 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-LibeventConfig_cmake_in_path.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/LibeventConfig.cmake.in b/cmake/LibeventConfig.cmake.in
|
2 |
+
index a12fc23c..fe108b8d 100644
|
3 |
+
--- a/cmake/LibeventConfig.cmake.in
|
4 |
+
+++ b/cmake/LibeventConfig.cmake.in
|
5 |
+
@@ -58,7 +58,7 @@ endif()
|
6 |
+
|
7 |
+
# Get the path of the current file.
|
8 |
+
get_filename_component(LIBEVENT_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
9 |
+
-get_filename_component(_INSTALL_PREFIX "${LIBEVENT_CMAKE_DIR}/../../.." ABSOLUTE)
|
10 |
+
+get_filename_component(_INSTALL_PREFIX "${LIBEVENT_CMAKE_DIR}/../.." ABSOLUTE)
|
11 |
+
|
12 |
+
macro(message_if_needed _flag _msg)
|
13 |
+
if (NOT ${CMAKE_FIND_PACKAGE_NAME}_FIND_QUIETLY)
|
14 |
+
@@ -131,12 +131,10 @@ if(CONFIG_FOR_INSTALL_TREE)
|
15 |
+
unset(_event_lib_rel CACHE)
|
16 |
+
find_library(_event_lib_dbg
|
17 |
+
NAMES "event_${_comp}d"
|
18 |
+
- PATHS "${_INSTALL_PREFIX}/lib"
|
19 |
+
- NO_DEFAULT_PATH)
|
20 |
+
+ PATHS "${_INSTALL_PREFIX}/lib")
|
21 |
+
find_library(_event_lib_rel
|
22 |
+
NAMES "event_${_comp}"
|
23 |
+
- PATHS "${_INSTALL_PREFIX}/lib"
|
24 |
+
- NO_DEFAULT_PATH)
|
25 |
+
+ PATHS "${_INSTALL_PREFIX}/lib")
|
26 |
+
if(_event_lib_rel OR _event_lib_dbg)
|
27 |
+
list(APPEND LIBEVENT_LIBRARIES "libevent::${_comp}")
|
28 |
+
set_case_insensitive_found(${_comp})
|
cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-file_path.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/AddEventLibrary.cmake b/cmake/AddEventLibrary.cmake
|
2 |
+
index 04f5837..95d9808 100644
|
3 |
+
--- a/cmake/AddEventLibrary.cmake
|
4 |
+
+++ b/cmake/AddEventLibrary.cmake
|
5 |
+
@@ -42,7 +42,7 @@ macro(export_install_target TYPE LIB_NAME OUTER_INCLUDES)
|
6 |
+
install(TARGETS "${LIB_NAME}_${TYPE}"
|
7 |
+
LIBRARY DESTINATION "lib" COMPONENT lib
|
8 |
+
ARCHIVE DESTINATION "lib" COMPONENT lib
|
9 |
+
- RUNTIME DESTINATION "lib" COMPONENT lib
|
10 |
+
+ RUNTIME DESTINATION "bin" COMPONENT bin
|
11 |
+
COMPONENT dev
|
12 |
+
)
|
13 |
+
else()
|
14 |
+
@@ -69,7 +69,7 @@ macro(export_install_target TYPE LIB_NAME OUTER_INCLUDES)
|
15 |
+
EXPORT LibeventTargets-${TYPE}
|
16 |
+
LIBRARY DESTINATION "lib" COMPONENT lib
|
17 |
+
ARCHIVE DESTINATION "lib" COMPONENT lib
|
18 |
+
- RUNTIME DESTINATION "lib" COMPONENT lib
|
19 |
+
+ RUNTIME DESTINATION "bin" COMPONENT bin
|
20 |
+
COMPONENT dev
|
21 |
+
)
|
22 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-usage.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 676727f..c83afae 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1453,7 +1453,7 @@ endif()
|
6 |
+
#
|
7 |
+
|
8 |
+
set(EVENT_INSTALL_CMAKE_DIR
|
9 |
+
- "${CMAKE_INSTALL_PREFIX}/lib/cmake/libevent")
|
10 |
+
+ "lib/cmake/libevent")
|
11 |
+
|
12 |
+
export(PACKAGE libevent)
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/libevent/fix-uwp.patch
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 07520043..7eec4059 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1022,6 +1022,9 @@ if(WIN32)
|
6 |
+
add_definitions(
|
7 |
+
-D_CRT_SECURE_NO_WARNINGS
|
8 |
+
-D_CRT_NONSTDC_NO_DEPRECATE)
|
9 |
+
+ if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
10 |
+
+ add_definitions(-DWINRT)
|
11 |
+
+ endif()
|
12 |
+
|
13 |
+
include_directories(./WIN32-Code)
|
14 |
+
endif()
|
15 |
+
diff --git a/evdns.c b/evdns.c
|
16 |
+
index 05e515c0..912f1115 100644
|
17 |
+
--- a/evdns.c
|
18 |
+
+++ b/evdns.c
|
19 |
+
@@ -4501,8 +4501,12 @@ evdns_get_default_hosts_filename(void)
|
20 |
+
char *path_out;
|
21 |
+
size_t len_out;
|
22 |
+
|
23 |
+
+#ifndef WINRT
|
24 |
+
if (! SHGetSpecialFolderPathA(NULL, path, CSIDL_SYSTEM, 0))
|
25 |
+
return NULL;
|
26 |
+
+#else
|
27 |
+
+ return NULL;
|
28 |
+
+#endif
|
29 |
+
len_out = strlen(path)+strlen(hostfile)+1;
|
30 |
+
path_out = mm_malloc(len_out);
|
31 |
+
evutil_snprintf(path_out, len_out, "%s%s", path, hostfile);
|
32 |
+
diff --git a/evutil.c b/evutil.c
|
33 |
+
index d46c997b..bad21ede 100644
|
34 |
+
--- a/evutil.c
|
35 |
+
+++ b/evutil.c
|
36 |
+
@@ -2240,6 +2240,9 @@ evutil_inet_pton_scope(int af, const char *src, void *dst, unsigned *indexp)
|
37 |
+
if (cp == NULL)
|
38 |
+
return evutil_inet_pton(af, src, dst);
|
39 |
+
|
40 |
+
+#ifdef WINRT
|
41 |
+
+ return -1;
|
42 |
+
+#else
|
43 |
+
if_index = if_nametoindex(cp + 1);
|
44 |
+
if (if_index == 0) {
|
45 |
+
/* Could be numeric */
|
46 |
+
@@ -2256,6 +2259,7 @@ evutil_inet_pton_scope(int af, const char *src, void *dst, unsigned *indexp)
|
47 |
+
r = evutil_inet_pton(af, tmp_src, dst);
|
48 |
+
free(tmp_src);
|
49 |
+
return r;
|
50 |
+
+#endif
|
51 |
+
}
|
52 |
+
|
53 |
+
int
|
cc-multilingual-main/cc_net/vcpkg/ports/libevent/portfile.cmake
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libevent/libevent
|
4 |
+
REF 4d85d28acdbb83bb60e500e9345bab757b64d6d1
|
5 |
+
SHA512 d03daf8e2277e8b9d67e0028d05566c8972a706e53dcb6593f8f92942ff9ce814970418a10d4c37e68228ec153f8fbc7d764a7ff92e2872277a92039380cbbe9
|
6 |
+
PATCHES
|
7 |
+
fix-uwp.patch
|
8 |
+
fix-file_path.patch
|
9 |
+
fix-LibeventConfig_cmake_in_path.patch
|
10 |
+
fix-usage.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
INVERTED_FEATURES
|
15 |
+
openssl EVENT__DISABLE_OPENSSL
|
16 |
+
thread EVENT__DISABLE_THREAD_SUPPORT
|
17 |
+
)
|
18 |
+
|
19 |
+
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
20 |
+
set(LIBEVENT_LIB_TYPE SHARED)
|
21 |
+
else()
|
22 |
+
set(LIBEVENT_LIB_TYPE STATIC)
|
23 |
+
endif()
|
24 |
+
|
25 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "static")
|
26 |
+
set(LIBEVENT_STATIC_RUNTIME ON)
|
27 |
+
else()
|
28 |
+
set(LIBEVENT_STATIC_RUNTIME OFF)
|
29 |
+
endif()
|
30 |
+
|
31 |
+
if(VCPKG_TARGET_IS_UWP)
|
32 |
+
list(APPEND FEATURE_OPTIONS -DEVENT__HAVE_AFUNIX_H=0)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
vcpkg_cmake_configure(
|
36 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
37 |
+
OPTIONS ${FEATURE_OPTIONS}
|
38 |
+
-DEVENT__LIBRARY_TYPE=${LIBEVENT_LIB_TYPE}
|
39 |
+
-DEVENT__MSVC_STATIC_RUNTIME=${LIBEVENT_STATIC_RUNTIME}
|
40 |
+
-DEVENT__DISABLE_BENCHMARK=ON
|
41 |
+
-DEVENT__DISABLE_TESTS=ON
|
42 |
+
-DEVENT__DISABLE_REGRESS=ON
|
43 |
+
-DEVENT__DISABLE_SAMPLES=ON
|
44 |
+
-DEVENT__DISABLE_MBEDTLS=ON
|
45 |
+
)
|
46 |
+
|
47 |
+
vcpkg_cmake_install()
|
48 |
+
|
49 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
50 |
+
|
51 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/libevent/")
|
52 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/event_rpcgen.py" "${CURRENT_PACKAGES_DIR}/tools/libevent/event_rpcgen.py")
|
53 |
+
|
54 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
55 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
56 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
57 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
58 |
+
endif()
|
59 |
+
|
60 |
+
set(_target_suffix)
|
61 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
62 |
+
set(_target_suffix static)
|
63 |
+
else()
|
64 |
+
set(_target_suffix shared)
|
65 |
+
endif()
|
66 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/libevent/LibeventTargets-${_target_suffix}.cmake
|
67 |
+
"${CURRENT_PACKAGES_DIR}"
|
68 |
+
"${CURRENT_INSTALLED_DIR}"
|
69 |
+
)
|
70 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/share/libevent/LibeventConfig.cmake "${SOURCE_PATH}/include;${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/include" "")
|
71 |
+
vcpkg_fixup_pkgconfig()
|
72 |
+
vcpkg_copy_pdbs()
|
73 |
+
|
74 |
+
#Handle copyright
|
75 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/libevent/vcpkg.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libevent",
|
3 |
+
"version": "2.1.12+20230128",
|
4 |
+
"description": "An event notification library",
|
5 |
+
"homepage": "https://github.com/libevent/libevent",
|
6 |
+
"license": "BSD-3-Clause",
|
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 |
+
"thread"
|
19 |
+
],
|
20 |
+
"features": {
|
21 |
+
"openssl": {
|
22 |
+
"description": "Support for openssl",
|
23 |
+
"dependencies": [
|
24 |
+
{
|
25 |
+
"name": "libevent",
|
26 |
+
"features": [
|
27 |
+
"thread"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
"openssl"
|
31 |
+
]
|
32 |
+
},
|
33 |
+
"thread": {
|
34 |
+
"description": "Support for thread"
|
35 |
+
}
|
36 |
+
}
|
37 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libnice-gst/portfile.cmake
ADDED
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.freedesktop.org
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO libnice/libnice
|
5 |
+
REF 0.1.21
|
6 |
+
SHA512 8808523d663da5974e81ffeef10812b758792b1f762edc1f3713d09962598a8a30d17ac1985438361d2a284b9bc82b5ba1e8d73c6e1ca86c93901bc06b634e9a
|
7 |
+
HEAD_REF master
|
8 |
+
PATCHES
|
9 |
+
skip_libnice.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
13 |
+
|
14 |
+
vcpkg_configure_meson(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
OPTIONS
|
17 |
+
-Dgtk_doc=disabled #Enable generating the API reference (depends on GTK-Doc)
|
18 |
+
-Dintrospection=disabled #Enable GObject Introspection (depends on GObject)'
|
19 |
+
-Dtests=disabled
|
20 |
+
-Dexamples=disabled
|
21 |
+
-Dgstreamer=enabled
|
22 |
+
-Dcrypto-library=openssl
|
23 |
+
ADDITIONAL_BINARIES glib-genmarshal='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-genmarshal'
|
24 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
25 |
+
)
|
26 |
+
|
27 |
+
# Could be features:
|
28 |
+
# option('gupnp', type: 'feature', value: 'auto',
|
29 |
+
# description: 'Enable or disable GUPnP IGD support')
|
30 |
+
# option('ignored-network-interface-prefix', type: 'array', value: ['docker', 'veth', 'virbr', 'vnet'],
|
31 |
+
# description: 'Ignore network interfaces whose name starts with a string from this list in the ICE connection check algorithm. For example, "virbr" to ignore virtual bridge interfaces added by virtd, which do not help in finding connectivity.')
|
32 |
+
# option('crypto-library', type: 'combo', choices : ['auto', 'gnutls', 'openssl'], value : 'auto')
|
33 |
+
|
34 |
+
vcpkg_install_meson()
|
35 |
+
|
36 |
+
vcpkg_copy_pdbs()
|
37 |
+
|
38 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
39 |
+
# Move plugin pkg-config file
|
40 |
+
file(COPY "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/pkgconfig/gstnice.pc"
|
41 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
42 |
+
file(COPY "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/pkgconfig/gstnice.pc"
|
43 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
44 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/pkgconfig/"
|
45 |
+
"${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/pkgconfig/")
|
46 |
+
endif()
|
47 |
+
|
48 |
+
vcpkg_fixup_pkgconfig()
|
49 |
+
|
50 |
+
vcpkg_install_copyright(
|
51 |
+
FILE_LIST
|
52 |
+
"${SOURCE_PATH}/COPYING"
|
53 |
+
"${SOURCE_PATH}/COPYING.LGPL"
|
54 |
+
"${SOURCE_PATH}/COPYING.MPL"
|
55 |
+
)
|
56 |
+
|
57 |
+
set(USAGE_FILE "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage")
|
58 |
+
file(WRITE "${USAGE_FILE}" "${PORT} usage:\n\n")
|
59 |
+
|
60 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
61 |
+
file(APPEND "${USAGE_FILE}" "\tMake sure one of the following paths is added to the 'GST_PLUGIN_PATH' environment variable\n")
|
62 |
+
file(APPEND "${USAGE_FILE}" "\tFor more information on GStreamer environment variables see https://gstreamer.freedesktop.org/documentation/gstreamer/running.html?gi-language=c#environment-variables\n")
|
63 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
64 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/plugins/gstreamer")
|
65 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
66 |
+
"${CURRENT_PACKAGES_DIR}/debug/plugins/gstreamer/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
67 |
+
if(VCPKG_TARGET_IS_WINDOWS AND EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/gstnice.pdb")
|
68 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/gstreamer-1.0/gstnice.pdb"
|
69 |
+
"${CURRENT_PACKAGES_DIR}/debug/plugins/gstreamer/gstnice.pdb")
|
70 |
+
endif()
|
71 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
72 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib")
|
73 |
+
endif()
|
74 |
+
|
75 |
+
file(APPEND "${USAGE_FILE}" "\t\t* '<path-to-vcpkg_installed>/${TARGET_TRIPLET}/debug/plugins/gstreamer/'\n")
|
76 |
+
endif()
|
77 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
78 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/plugins/gstreamer")
|
79 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
80 |
+
"${CURRENT_PACKAGES_DIR}/plugins/gstreamer/${CMAKE_SHARED_LIBRARY_PREFIX}gstnice${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
81 |
+
if(VCPKG_TARGET_IS_WINDOWS AND EXISTS "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/gstnice.pdb")
|
82 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/gstreamer-1.0/gstnice.pdb"
|
83 |
+
"${CURRENT_PACKAGES_DIR}/plugins/gstreamer/gstnice.pdb")
|
84 |
+
endif()
|
85 |
+
if(NOT VCPKG_TARGET_IS_WINDOWS)
|
86 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
87 |
+
endif()
|
88 |
+
|
89 |
+
file(APPEND "${USAGE_FILE}" "\t\t* '<path-to-vcpkg_installed>/${TARGET_TRIPLET}/plugins/gstreamer/'\n")
|
90 |
+
endif()
|
91 |
+
else()
|
92 |
+
file(APPEND "${USAGE_FILE}" "\tRegister static plugin with gst_plugin_register_static()\n")
|
93 |
+
file(APPEND "${USAGE_FILE}" "\thttps://gstreamer.freedesktop.org/documentation/application-development/appendix/compiling.html#embedding-static-elements-in-your-application\n")
|
94 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libnice-gst/skip_libnice.patch
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/gst/meson.build b/gst/meson.build
|
2 |
+
index 572c6ab..325a3d5 100644
|
3 |
+
--- a/gst/meson.build
|
4 |
+
+++ b/gst/meson.build
|
5 |
+
@@ -13,12 +13,12 @@ libgstnice = library('gstnice',
|
6 |
+
c_args : gst_nice_args,
|
7 |
+
include_directories: nice_incs,
|
8 |
+
dependencies: [nice_deps, gst_dep],
|
9 |
+
- link_with: libnice,
|
10 |
+
install_dir: gst_plugins_install_dir,
|
11 |
+
install: true)
|
12 |
+
plugins = [libgstnice]
|
13 |
+
|
14 |
+
# Generate pc files for static plugins if we build static plugins
|
15 |
+
if get_option('default_library') != 'shared'
|
16 |
+
+ pkg = import('pkgconfig')
|
17 |
+
pkg.generate(libgstnice, install_dir: join_paths(gst_plugins_install_dir, 'pkgconfig'))
|
18 |
+
endif
|
19 |
+
diff --git a/meson.build b/meson.build
|
20 |
+
index 60ca250..05fc8c7 100644
|
21 |
+
--- a/meson.build
|
22 |
+
+++ b/meson.build
|
23 |
+
@@ -90,6 +90,7 @@ version_conf.set('NICE_VERSION_MINOR', version_minor)
|
24 |
+
version_conf.set('NICE_VERSION_MICRO', version_micro)
|
25 |
+
version_conf.set('NICE_VERSION_NANO', version_nano)
|
26 |
+
nice_version_h = configure_file(output: 'nice-version.h',
|
27 |
+
+ install: false,
|
28 |
+
install_dir: get_option('includedir') / 'nice',
|
29 |
+
configuration: version_conf)
|
30 |
+
|
31 |
+
@@ -298,11 +299,7 @@ endif
|
32 |
+
|
33 |
+
gir = find_program('g-ir-scanner', required : get_option('introspection'))
|
34 |
+
|
35 |
+
-subdir('agent')
|
36 |
+
-subdir('stun')
|
37 |
+
-subdir('socket')
|
38 |
+
-subdir('random')
|
39 |
+
-subdir('nice')
|
40 |
+
+nice_deps += [dependency('nice', version: '= @0@'.format(meson.project_version()), required: true)]
|
41 |
+
|
42 |
+
if gst_dep.found()
|
43 |
+
subdir('gst')
|
cc-multilingual-main/cc_net/vcpkg/ports/libnice-gst/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libnice-gst",
|
3 |
+
"version": "0.1.21",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "Gstreamer Libnice plugins.",
|
6 |
+
"homepage": "https://nice.freedesktop.org",
|
7 |
+
"license": "LGPL-2.1-only AND MPL-1.1",
|
8 |
+
"supports": "!xbox",
|
9 |
+
"dependencies": [
|
10 |
+
"gstreamer",
|
11 |
+
"libnice",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-tool-meson",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libsamplerate/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsamplerate",
|
3 |
+
"version": "0.2.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Sample Rate Converter for audio",
|
6 |
+
"homepage": "http://libsndfile.github.io/libsamplerate/",
|
7 |
+
"license": "BSD-2-Clause",
|
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/metrohash/CMakeLists.txt
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
project(metrohash LANGUAGES CXX)
|
3 |
+
set(CMAKE_CXX_STANDARD 11)
|
4 |
+
|
5 |
+
add_library(metrohash
|
6 |
+
src/metrohash64.cpp
|
7 |
+
src/metrohash128.cpp
|
8 |
+
)
|
9 |
+
list(APPEND metro_headers src/metrohash.h src/metrohash64.h src/metrohash128.h)
|
10 |
+
|
11 |
+
include(CheckCXXSourceCompiles)
|
12 |
+
include(CheckCXXCompilerFlag)
|
13 |
+
|
14 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
15 |
+
check_cxx_compiler_flag("-msse4.2" HAS_MSSE42)
|
16 |
+
if(HAS_MSSE42)
|
17 |
+
target_compile_options(metrohash PRIVATE -msse4.2)
|
18 |
+
string(APPEND CMAKE_REQUIRED_FLAGS " -msse4.2")
|
19 |
+
endif()
|
20 |
+
endif()
|
21 |
+
|
22 |
+
check_cxx_source_compiles(
|
23 |
+
"#include <nmmintrin.h>
|
24 |
+
int main() {
|
25 |
+
_mm_crc32_u64(0, 0);
|
26 |
+
return 0;
|
27 |
+
}"
|
28 |
+
HAS_mm_crc32_u64)
|
29 |
+
|
30 |
+
if(HAS_mm_crc32_u64)
|
31 |
+
list(APPEND metro_headers src/metrohash128crc.h)
|
32 |
+
target_sources(metrohash PRIVATE src/metrohash128crc.cpp)
|
33 |
+
endif()
|
34 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES GNU)
|
35 |
+
target_compile_options(metrohash PRIVATE -march=native)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
set_target_properties(metrohash PROPERTIES
|
39 |
+
PUBLIC_HEADER "${metro_headers}"
|
40 |
+
)
|
41 |
+
|
42 |
+
include(CMakePackageConfigHelpers)
|
43 |
+
|
44 |
+
set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")
|
45 |
+
set(project_config "${generated_dir}/${PROJECT_NAME}Config.cmake")
|
46 |
+
set(config_install_dir "lib/cmake/${PROJECT_NAME}")
|
47 |
+
set(TARGETS_EXPORT_NAME "${PROJECT_NAME}Targets")
|
48 |
+
set(namespace "${PROJECT_NAME}::")
|
49 |
+
|
50 |
+
configure_package_config_file(
|
51 |
+
"${CMAKE_SOURCE_DIR}/cmake/Config.cmake.in"
|
52 |
+
"${project_config}"
|
53 |
+
INSTALL_DESTINATION "${config_install_dir}"
|
54 |
+
)
|
55 |
+
#Installation
|
56 |
+
install(TARGETS metrohash
|
57 |
+
EXPORT "${TARGETS_EXPORT_NAME}"
|
58 |
+
LIBRARY DESTINATION "lib"
|
59 |
+
ARCHIVE DESTINATION "lib"
|
60 |
+
PUBLIC_HEADER DESTINATION "include")
|
61 |
+
|
62 |
+
install(
|
63 |
+
FILES "${project_config}"
|
64 |
+
DESTINATION "${config_install_dir}"
|
65 |
+
)
|
66 |
+
install(EXPORT "${TARGETS_EXPORT_NAME}"
|
67 |
+
NAMESPACE "${namespace}"
|
68 |
+
DESTINATION "${config_install_dir}"
|
69 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/metrohash/Config.cmake.in
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
|
4 |
+
check_required_components("@PROJECT_NAME@")
|
cc-multilingual-main/cc_net/vcpkg/ports/metrohash/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO jandrewrogers/MetroHash
|
6 |
+
REF v1.1.3
|
7 |
+
SHA512 02b6316e5ebf3d81465eea8a068565452be642394ddf5a53350affbbc9b9bfe1c3d182f7e8f7d49895351c48e11929e465777535e4354e01b6d0ba459e583ac5
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CURRENT_PORT_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
configure_file("${CURRENT_PORT_DIR}/Config.cmake.in" "${SOURCE_PATH}/cmake/Config.cmake.in" COPYONLY)
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/include/metrohash128crc.h")
|
23 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/metrohash.h"
|
24 |
+
"#include \"metrohash128crc.h\""
|
25 |
+
"//#include \"metrohash128crc.h\" // The target platform does not support _mm_crc32_u64")
|
26 |
+
endif()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
29 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/metrohash/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "metrohash",
|
3 |
+
"version": "1.1.3",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "MetroHash is a set of state-of-the-art hash functions for non-cryptographic use cases",
|
6 |
+
"homepage": "https://github.com/jandrewrogers/MetroHash",
|
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/mpir/enable-runtimelibrary-toggle.patch
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/build.vc/mpir_debug_lib.props b/build.vc/mpir_debug_lib.props
|
2 |
+
index b2fd57b..3937570 100644
|
3 |
+
--- a/build.vc/mpir_debug_lib.props
|
4 |
+
+++ b/build.vc/mpir_debug_lib.props
|
5 |
+
@@ -9,7 +9,8 @@
|
6 |
+
<ItemDefinitionGroup>
|
7 |
+
<ClCompile>
|
8 |
+
<ObjectFileName>$(IntDir)dum\my\%(RelativeDir)</ObjectFileName>
|
9 |
+
- <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
|
10 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
11 |
+
+ <DebugInformationFormat>OldStyle</DebugInformationFormat>
|
12 |
+
<ProgramDataBaseFileName>$(TargetDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
13 |
+
</ClCompile>
|
14 |
+
<Link>
|
15 |
+
diff --git a/build.vc/mpir_release_lib.props b/build.vc/mpir_release_lib.props
|
16 |
+
index 6cdff3e..3937570 100644
|
17 |
+
--- a/build.vc/mpir_release_lib.props
|
18 |
+
+++ b/build.vc/mpir_release_lib.props
|
19 |
+
@@ -9,7 +9,7 @@
|
20 |
+
<ItemDefinitionGroup>
|
21 |
+
<ClCompile>
|
22 |
+
<ObjectFileName>$(IntDir)dum\my\%(RelativeDir)</ObjectFileName>
|
23 |
+
- <RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
24 |
+
+ <RuntimeLibrary>$(RuntimeLibrary)</RuntimeLibrary>
|
25 |
+
<ProgramDataBaseFileName>$(TargetDir)$(TargetName).pdb</ProgramDataBaseFileName>
|
26 |
+
</ClCompile>
|
27 |
+
<Link>
|
cc-multilingual-main/cc_net/vcpkg/ports/mpir/fix-static-include-files.patch
ADDED
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/build.vc/postbuild.bat b/build.vc/postbuild.bat
|
2 |
+
index de1ed08..e4ecceb 100644
|
3 |
+
--- a/build.vc/postbuild.bat
|
4 |
+
+++ b/build.vc/postbuild.bat
|
5 |
+
@@ -37,12 +37,10 @@ set bin_dir="..\%extn%\%plat%\%conf%\"
|
6 |
+
set hdr_dir="..\%extn%\%plat%\%conf%\"
|
7 |
+
|
8 |
+
rem output parametrers for the MPIR tests
|
9 |
+
-if /i "%filename%" EQU "mpirxx" goto skip
|
10 |
+
echo (set ldir=%loc%) > output_params.bat
|
11 |
+
echo (set libr=%extn%) >> output_params.bat
|
12 |
+
echo (set plat=%plat%) >> output_params.bat
|
13 |
+
echo (set conf=%conf%) >> output_params.bat
|
14 |
+
-:skip
|
15 |
+
|
16 |
+
echo copying outputs from %tgt_dir% to %bin_dir%
|
17 |
+
if not exist %bin_dir% md %bin_dir%
|
18 |
+
diff --git a/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj b/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj
|
19 |
+
index 3a23f01..1f44b22 100644
|
20 |
+
--- a/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj
|
21 |
+
+++ b/build.vc15/lib_mpir_cxx/lib_mpir_cxx.vcxproj
|
22 |
+
@@ -70,6 +70,11 @@
|
23 |
+
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">mpirxx</TargetName>
|
24 |
+
</PropertyGroup>
|
25 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
26 |
+
+ <PreBuildEvent>
|
27 |
+
+ <Command>cd ..\..\build.vc
|
28 |
+
+prebuild gc Win32 15
|
29 |
+
+ </Command>
|
30 |
+
+ </PreBuildEvent>
|
31 |
+
<ClCompile>
|
32 |
+
<AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
|
33 |
+
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
34 |
+
@@ -82,6 +87,11 @@ postbuild "$(TargetPath)" 15
|
35 |
+
</PostBuildEvent>
|
36 |
+
</ItemDefinitionGroup>
|
37 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
38 |
+
+ <PreBuildEvent>
|
39 |
+
+ <Command>cd ..\..\build.vc
|
40 |
+
+prebuild gc Win32 15
|
41 |
+
+ </Command>
|
42 |
+
+ </PreBuildEvent>
|
43 |
+
<ClCompile>
|
44 |
+
<AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
|
45 |
+
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
46 |
+
@@ -94,6 +104,11 @@ postbuild "$(TargetPath)" 15
|
47 |
+
</PostBuildEvent>
|
48 |
+
</ItemDefinitionGroup>
|
49 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
50 |
+
+ <PreBuildEvent>
|
51 |
+
+ <Command>cd ..\..\build.vc
|
52 |
+
+prebuild gc Win32 15
|
53 |
+
+ </Command>
|
54 |
+
+ </PreBuildEvent>
|
55 |
+
<ClCompile>
|
56 |
+
<AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
|
57 |
+
<PreprocessorDefinitions>NDEBUG;WIN32;_LIB;HAVE_CONFIG_H;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
58 |
+
@@ -106,6 +121,11 @@ postbuild "$(TargetPath)" 15
|
59 |
+
</PostBuildEvent>
|
60 |
+
</ItemDefinitionGroup>
|
61 |
+
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
62 |
+
+ <PreBuildEvent>
|
63 |
+
+ <Command>cd ..\..\build.vc
|
64 |
+
+prebuild gc Win32 15
|
65 |
+
+ </Command>
|
66 |
+
+ </PreBuildEvent>
|
67 |
+
<ClCompile>
|
68 |
+
<AdditionalIncludeDirectories>..\..\</AdditionalIncludeDirectories>
|
69 |
+
<PreprocessorDefinitions>_DEBUG;WIN32;_LIB;HAVE_CONFIG_H;_WIN64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|