applied-ai-018 commited on
Commit
7fed71f
·
verified ·
1 Parent(s): a30e757

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. cc-multilingual-main/cc_net/vcpkg/ports/apr/fix-configcmake.patch +62 -0
  2. cc-multilingual-main/cc_net/vcpkg/ports/apr/portfile.cmake +96 -0
  3. cc-multilingual-main/cc_net/vcpkg/ports/apr/unglue.patch +17 -0
  4. cc-multilingual-main/cc_net/vcpkg/ports/apr/vcpkg.json +25 -0
  5. cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix-sodium-dep.patch +59 -0
  6. cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix_install_path.patch +28 -0
  7. cc-multilingual-main/cc_net/vcpkg/ports/cnats/portfile.cmake +79 -0
  8. cc-multilingual-main/cc_net/vcpkg/ports/cnats/vcpkg.json +27 -0
  9. cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/fix-compatibility-with-boost-1.83.patch +24 -0
  10. cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/portfile.cmake +34 -0
  11. cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/stream-handler-executor.patch +27 -0
  12. cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/vcpkg.json +25 -0
  13. cc-multilingual-main/cc_net/vcpkg/ports/dukglue/portfile.cmake +11 -0
  14. cc-multilingual-main/cc_net/vcpkg/ports/dukglue/vcpkg.json +10 -0
  15. cc-multilingual-main/cc_net/vcpkg/ports/eabase/EABaseConfig.cmake.in +6 -0
  16. cc-multilingual-main/cc_net/vcpkg/ports/eabase/fix_cmake_install.patch +75 -0
  17. cc-multilingual-main/cc_net/vcpkg/ports/eabase/portfile.cmake +29 -0
  18. cc-multilingual-main/cc_net/vcpkg/ports/eabase/vcpkg.json +17 -0
  19. cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/gentables.patch +51 -0
  20. cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/portfile.cmake +97 -0
  21. cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/vcpkg.json +52 -0
  22. cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix-dependency-hwloc.patch +15 -0
  23. cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix_output_name_clash.patch +13 -0
  24. cc-multilingual-main/cc_net/vcpkg/ports/hpx/portfile.cmake +111 -0
  25. cc-multilingual-main/cc_net/vcpkg/ports/hpx/usage +4 -0
  26. cc-multilingual-main/cc_net/vcpkg/ports/implot/CMakeLists.txt +52 -0
  27. cc-multilingual-main/cc_net/vcpkg/ports/implot/portfile.cmake +24 -0
  28. cc-multilingual-main/cc_net/vcpkg/ports/implot/vcpkg.json +18 -0
  29. cc-multilingual-main/cc_net/vcpkg/ports/iniparser/CMakeLists.txt +54 -0
  30. cc-multilingual-main/cc_net/vcpkg/ports/iniparser/portfile.cmake +27 -0
  31. cc-multilingual-main/cc_net/vcpkg/ports/iniparser/vcpkg.json +18 -0
  32. cc-multilingual-main/cc_net/vcpkg/ports/iniparser/win32_ssize_t.patch +29 -0
  33. cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix-for-vcpkg.patch +30 -0
  34. cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_dependency.patch +40 -0
  35. cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_srtp.patch +13 -0
  36. cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/portfile.cmake +61 -0
  37. cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/uwp-warnings.patch +14 -0
  38. cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/vcpkg.json +41 -0
  39. cc-multilingual-main/cc_net/vcpkg/ports/magma/clang-cuda.patch +50 -0
  40. cc-multilingual-main/cc_net/vcpkg/ports/magma/disable-openmp-msvc.patch +15 -0
  41. cc-multilingual-main/cc_net/vcpkg/ports/magma/no-tests.patch +35 -0
  42. cc-multilingual-main/cc_net/vcpkg/ports/magma/portfile.cmake +54 -0
  43. cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/portfile.cmake +12 -0
  44. cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/vcpkg.json +6 -0
  45. cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/FindCLIPPER.cmake +45 -0
  46. cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/fix_targets.patch +17 -0
  47. cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/portfile.cmake +36 -0
  48. cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg-cmake-wrapper.cmake +10 -0
  49. cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg.json +17 -0
  50. cc-multilingual-main/cc_net/vcpkg/ports/portsmf/portfile.cmake +20 -0
cc-multilingual-main/cc_net/vcpkg/ports/apr/fix-configcmake.patch ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index b4632c3..0b86d12 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -259,27 +259,35 @@ SET(install_targets)
6
+ SET(install_bin_pdb)
7
+
8
+ # libapr-1 is shared, apr-1 is static
9
+ +IF(BUILD_SHARED_LIBS)
10
+ ADD_LIBRARY(libapr-1 SHARED ${APR_SOURCES} ${APR_PUBLIC_HEADERS_GENERATED} libapr.rc)
11
+ SET(install_targets ${install_targets} libapr-1)
12
+ SET(install_bin_pdb ${install_bin_pdb} ${PROJECT_BINARY_DIR}/libapr-1.pdb)
13
+ TARGET_LINK_LIBRARIES(libapr-1 ${APR_SYSTEM_LIBS})
14
+ SET_TARGET_PROPERTIES(libapr-1 PROPERTIES COMPILE_DEFINITIONS "APR_DECLARE_EXPORT;WINNT")
15
+ ADD_DEPENDENCIES(libapr-1 test_char_header)
16
+ -
17
+ +TARGET_INCLUDE_DIRECTORIES(libapr-1 INTERFACE $<INSTALL_INTERFACE:include>)
18
+ +ELSE()
19
+ ADD_LIBRARY(apr-1 STATIC ${APR_SOURCES} ${APR_PUBLIC_HEADERS_GENERATED})
20
+ SET(install_targets ${install_targets} apr-1)
21
+ TARGET_LINK_LIBRARIES(apr-1 ${APR_SYSTEM_LIBS})
22
+ SET_TARGET_PROPERTIES(apr-1 PROPERTIES COMPILE_DEFINITIONS "APR_DECLARE_STATIC;WINNT")
23
+ ADD_DEPENDENCIES(apr-1 test_char_header)
24
+ +TARGET_INCLUDE_DIRECTORIES(apr-1 INTERFACE $<INSTALL_INTERFACE:include>)
25
+ +ENDIF()
26
+
27
+ # libaprapp-1 and aprapp-1 are static
28
+ +IF(BUILD_SHARED_LIBS)
29
+ ADD_LIBRARY(libaprapp-1 STATIC misc/win32/apr_app.c misc/win32/internal.c ${APR_PUBLIC_HEADERS_GENERATED})
30
+ SET(install_targets ${install_targets} libaprapp-1)
31
+ SET_TARGET_PROPERTIES(libaprapp-1 PROPERTIES COMPILE_DEFINITIONS "APR_APP;WINNT")
32
+ -
33
+ +TARGET_INCLUDE_DIRECTORIES(libaprapp-1 INTERFACE $<INSTALL_INTERFACE:include>)
34
+ +ELSE()
35
+ ADD_LIBRARY(aprapp-1 STATIC misc/win32/apr_app.c misc/win32/internal.c ${APR_PUBLIC_HEADERS_GENERATED})
36
+ SET(install_targets ${install_targets} aprapp-1)
37
+ SET_TARGET_PROPERTIES(aprapp-1 PROPERTIES COMPILE_DEFINITIONS "APR_DECLARE_STATIC;APR_APP;WINNT")
38
+ +TARGET_INCLUDE_DIRECTORIES(aprapp-1 INTERFACE $<INSTALL_INTERFACE:include>)
39
+ +ENDIF()
40
+
41
+ IF(APR_BUILD_TESTAPR)
42
+ ENABLE_TESTING()
43
+ @@ -385,12 +393,18 @@ ENDIF (APR_BUILD_TESTAPR)
44
+
45
+ # Installation
46
+
47
+ -INSTALL(TARGETS ${install_targets}
48
+ +INSTALL(TARGETS ${install_targets} EXPORT unofficial-apr-config
49
+ RUNTIME DESTINATION bin
50
+ LIBRARY DESTINATION lib
51
+ ARCHIVE DESTINATION lib
52
+ )
53
+
54
+ +INSTALL(EXPORT unofficial-apr-config
55
+ + NAMESPACE unofficial::apr::
56
+ + DESTINATION share/unofficial-apr
57
+ + FILE unofficial-apr-config.cmake
58
+ +)
59
+ +
60
+ IF(INSTALL_PDB)
61
+ INSTALL(FILES ${install_bin_pdb}
62
+ DESTINATION bin
cc-multilingual-main/cc_net/vcpkg/ports/apr/portfile.cmake ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ set(VERSION 1.7.4)
3
+
4
+ vcpkg_download_distfile(ARCHIVE
5
+ URLS "https://archive.apache.org/dist/apr/apr-${VERSION}.tar.bz2"
6
+ FILENAME "apr-${VERSION}.tar.bz2"
7
+ SHA512 2342c997765ea2ca96eac158e5fd260232dba68fc41b90a79a7ba9b25c539fc217981867362090e0ebebe632289257c342275e3c5baedb698c474ef8f49a9dcd
8
+ )
9
+
10
+ vcpkg_extract_source_archive(SOURCE_PATH
11
+ ARCHIVE "${ARCHIVE}"
12
+ PATCHES
13
+ fix-configcmake.patch
14
+ unglue.patch
15
+ )
16
+
17
+ if (VCPKG_TARGET_IS_WINDOWS)
18
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
19
+ FEATURES
20
+ private-headers APR_INSTALL_PRIVATE_H
21
+ )
22
+
23
+ vcpkg_cmake_configure(
24
+ SOURCE_PATH "${SOURCE_PATH}"
25
+ OPTIONS
26
+ -DINSTALL_PDB=OFF
27
+ -DMIN_WINDOWS_VER=Windows7
28
+ -DAPR_HAVE_IPV6=ON
29
+ ${FEATURE_OPTIONS}
30
+ )
31
+
32
+ vcpkg_cmake_install()
33
+ vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-apr CONFIG_PATH share/unofficial-apr)
34
+ # There is no way to suppress installation of the headers in debug builds.
35
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
36
+
37
+ vcpkg_copy_pdbs()
38
+ else()
39
+ # To cross-compile you will need a triplet file that locates the tool chain and sets --host and --cache parameters of "./configure".
40
+ # The ${VCPKG_PLATFORM_TOOLSET}.cache file must have been generated on the targeted host using "./configure -C".
41
+ # For example, to target aarch64-linux-gnu, triplets/aarch64-linux-gnu.cmake should contain (beyond the standard content):
42
+ # set(VCPKG_PLATFORM_TOOLSET aarch64-linux-gnu)
43
+ # set(VCPKG_CHAINLOAD_TOOLCHAIN_FILE ${MY_CROSS_DIR}/cmake/Toolchain-${VCPKG_PLATFORM_TOOLSET}.cmake)
44
+ # set(CONFIGURE_PARAMETER_1 --host=${VCPKG_PLATFORM_TOOLSET})
45
+ # set(CONFIGURE_PARAMETER_2 --cache-file=${MY_CROSS_DIR}/autoconf/${VCPKG_PLATFORM_TOOLSET}.cache)
46
+ if(CONFIGURE_PARAMETER_1)
47
+ message(STATUS "Configuring apr with ${CONFIGURE_PARAMETER_1} ${CONFIGURE_PARAMETER_2} ${CONFIGURE_PARAMETER_3}")
48
+ else()
49
+ message(STATUS "Configuring apr")
50
+ endif()
51
+ set(ENV{CFLAGS} "$ENV{CFLAGS} -Wno-error=implicit-function-declaration")
52
+ vcpkg_configure_make(
53
+ SOURCE_PATH "${SOURCE_PATH}"
54
+ OPTIONS
55
+ "--prefix=${CURRENT_INSTALLED_DIR}"
56
+ "${CONFIGURE_PARAMETER_1}"
57
+ "${CONFIGURE_PARAMETER_2}"
58
+ "${CONFIGURE_PARAMETER_3}"
59
+ )
60
+
61
+ vcpkg_install_make()
62
+
63
+ if(NOT VCPKG_BUILD_TYPE)
64
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/apr-1.pc"
65
+ "-lapr-\${APR_MAJOR_VERSION}" "-lapr-1"
66
+ )
67
+ endif()
68
+
69
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/apr-1.pc"
70
+ "-lapr-\${APR_MAJOR_VERSION}" "-lapr-1"
71
+ )
72
+ vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES pthread rt dl uuid crypt)
73
+
74
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/apr-1-config" "\"${CURRENT_INSTALLED_DIR}\"" "$(realpath \"`dirname $0`/../../..\")")
75
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/apr-1-config" "APR_SOURCE_DIR=\"${SOURCE_PATH}\"" "")
76
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/apr-1-config" "APR_BUILD_DIR=\"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel\"" "")
77
+
78
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/build-1/libtool" "${CURRENT_INSTALLED_DIR}/lib" "")
79
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/build-1/libtool" "${CURRENT_INSTALLED_DIR}/debug/lib" "")
80
+
81
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/build-1/apr_rules.mk" "${CURRENT_INSTALLED_DIR}" "$(INCLUDE)/..")
82
+ if(NOT VCPKG_BUILD_TYPE)
83
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/apr-1-config" "\"${CURRENT_INSTALLED_DIR}/debug\"" "$(realpath \"`dirname $0`/../../../..\")")
84
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/apr-1-config" "APR_SOURCE_DIR=\"${SOURCE_PATH}\"" "")
85
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/apr-1-config" "APR_BUILD_DIR=\"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg\"" "")
86
+
87
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/build-1/libtool" "${CURRENT_INSTALLED_DIR}/lib" "")
88
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/build-1/libtool" "${CURRENT_INSTALLED_DIR}/debug/lib" "")
89
+
90
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/build-1/apr_rules.mk" "${CURRENT_INSTALLED_DIR}/debug" "$(INCLUDE)/..")
91
+ endif()
92
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
93
+ endif()
94
+
95
+ # Handle copyright
96
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/apr/unglue.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/include/apr_version.h b/include/apr_version.h
2
+ index e96de3835..de3437d71 100644
3
+ --- a/include/apr_version.h
4
+ +++ b/include/apr_version.h
5
+ @@ -114,9 +114,9 @@
6
+
7
+ /** An alternative formatted string of APR's version */
8
+ /* macro for Win32 .rc files using numeric csv representation */
9
+ -#define APR_VERSION_STRING_CSV APR_MAJOR_VERSION ##, \
10
+ - ##APR_MINOR_VERSION ##, \
11
+ - ##APR_PATCH_VERSION
12
+ +#define APR_VERSION_STRING_CSV APR_MAJOR_VERSION , \
13
+ + APR_MINOR_VERSION , \
14
+ + APR_PATCH_VERSION
15
+
16
+
17
+ #ifndef APR_VERSION_ONLY
cc-multilingual-main/cc_net/vcpkg/ports/apr/vcpkg.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "apr",
3
+ "version": "1.7.4",
4
+ "description": "The Apache Portable Runtime (APR) is a C library that forms a system portability layer that covers many operating systems.",
5
+ "homepage": "https://apr.apache.org/",
6
+ "license": "Apache-2.0",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true,
12
+ "platform": "windows"
13
+ },
14
+ {
15
+ "name": "vcpkg-cmake-config",
16
+ "host": true,
17
+ "platform": "windows"
18
+ }
19
+ ],
20
+ "features": {
21
+ "private-headers": {
22
+ "description": "Install non-standard files required for building Apache httpd"
23
+ }
24
+ }
25
+ }
cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix-sodium-dep.patch ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 02adc2e..ccd5492 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -110,6 +110,11 @@ if(NATS_BUILD_STREAMING)
6
+ endif(NATS_BUILD_STREAMING)
7
+
8
+ if(NATS_BUILD_USE_SODIUM)
9
+ + find_package(libsodium NAMES unofficial-sodium CONFIG REQUIRED)
10
+ + set(NATS_SODIUM_INCLUDE_DIRS "")
11
+ + set(NATS_SODIUM_LIBRARIES unofficial-sodium::sodium)
12
+ + add_definitions(-DNATS_USE_LIBSODIUM)
13
+ +elseif(0)
14
+ IF(DEFINED ENV{NATS_SODIUM_DIR})
15
+ SET(NATS_SODIUM_DIR "$ENV{NATS_SODIUM_DIR}")
16
+ ENDIF()
17
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
18
+ index ea536de..6198776 100644
19
+ --- a/src/CMakeLists.txt
20
+ +++ b/src/CMakeLists.txt
21
+ @@ -63,7 +63,7 @@ if(NATS_BUILD_LIB_SHARED)
22
+ install(TARGETS nats EXPORT cnats-targets DESTINATION ${NATS_LIBDIR})
23
+ install(EXPORT cnats-targets
24
+ NAMESPACE cnats::
25
+ - FILE cnats-config.cmake
26
+ + FILE cnats-targets.cmake
27
+ DESTINATION ${NATS_LIBDIR}/cmake/cnats)
28
+ endif(NATS_BUILD_LIB_SHARED)
29
+
30
+ @@ -75,10 +75,14 @@ if(NATS_BUILD_LIB_STATIC)
31
+ install(TARGETS nats_static EXPORT cnats-targets ARCHIVE DESTINATION ${NATS_LIBDIR})
32
+ install(EXPORT cnats-targets
33
+ NAMESPACE cnats::
34
+ - FILE cnats-config.cmake
35
+ + FILE cnats-targets.cmake
36
+ DESTINATION ${NATS_LIBDIR}/cmake/cnats)
37
+ endif(NATS_BUILD_LIB_STATIC)
38
+
39
+ +include(CMakePackageConfigHelpers)
40
+ +configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/Config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/cnats-config.cmake" INSTALL_DESTINATION ${NATS_LIBDIR}/cmake/cnats)
41
+ +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cnats-config.cmake DESTINATION ${NATS_LIBDIR}/cmake/cnats)
42
+ +
43
+ install(FILES deprnats.h DESTINATION ${NATS_INCLUDE_DIR} RENAME nats.h)
44
+ install(FILES nats.h status.h version.h DESTINATION ${NATS_INCLUDE_DIR}/nats)
45
+ install(FILES adapters/libevent.h adapters/libuv.h DESTINATION ${NATS_INCLUDE_DIR}/nats/adapters)
46
+ diff --git a/src/Config.cmake.in b/src/Config.cmake.in
47
+ new file mode 100644
48
+ index 0000000..aa1d6bf
49
+ --- /dev/null
50
+ +++ b/src/Config.cmake.in
51
+ @@ -0,0 +1,8 @@
52
+ +@PACKAGE_INIT@
53
+ +
54
+ +include(CMakeFindDependencyMacro)
55
+ +if("@NATS_BUILD_USE_SODIUM@")
56
+ + find_dependency(unofficial-sodium)
57
+ +endif()
58
+ +
59
+ +include ( "${CMAKE_CURRENT_LIST_DIR}/cnats-targets.cmake" )
cc-multilingual-main/cc_net/vcpkg/ports/cnats/fix_install_path.patch ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index b3f376c..8e6d06a 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -60,7 +60,10 @@ if(NATS_BUILD_LIB_SHARED)
6
+ target_include_directories(nats PUBLIC
7
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
8
+ $<INSTALL_INTERFACE:include>)
9
+ - install(TARGETS nats EXPORT cnats-targets DESTINATION ${NATS_LIBDIR})
10
+ + install(TARGETS nats EXPORT cnats-targets
11
+ + ARCHIVE DESTINATION lib
12
+ + LIBRARY DESTINATION lib
13
+ + RUNTIME DESTINATION bin)
14
+ install(EXPORT cnats-targets
15
+ NAMESPACE cnats::
16
+ FILE cnats-targets.cmake
17
+ @@ -72,7 +75,10 @@ if(NATS_BUILD_LIB_STATIC)
18
+ target_include_directories(nats_static PUBLIC
19
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
20
+ $<INSTALL_INTERFACE:include>)
21
+ - install(TARGETS nats_static EXPORT cnats-targets ARCHIVE DESTINATION ${NATS_LIBDIR})
22
+ + install(TARGETS nats_static EXPORT cnats-targets
23
+ + ARCHIVE DESTINATION lib
24
+ + LIBRARY DESTINATION lib
25
+ + RUNTIME DESTINATION bin)
26
+ install(EXPORT cnats-targets
27
+ NAMESPACE cnats::
28
+ FILE cnats-targets.cmake
cc-multilingual-main/cc_net/vcpkg/ports/cnats/portfile.cmake ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO nats-io/nats.c
4
+ REF "v${VERSION}"
5
+ SHA512 0670a2b7fb70a49e2b1f5cbccf2406a3ecaf04b48b4147dc2ead9cb106f1673efa79b5e40d3bb557986ade35da2158b58b324603f98a58258a497dc57cb5d700
6
+ HEAD_REF main
7
+ PATCHES
8
+ fix-sodium-dep.patch
9
+ fix_install_path.patch
10
+ )
11
+
12
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
13
+ FEATURES
14
+ "streaming" NATS_BUILD_STREAMING
15
+ )
16
+
17
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
18
+ list(APPEND OPTIONS -DNATS_BUILD_LIB_SHARED=ON)
19
+ list(APPEND OPTIONS -DNATS_BUILD_LIB_STATIC=OFF)
20
+ list(APPEND OPTIONS -DBUILD_TESTING=OFF)
21
+ list(APPEND OPTIONS -DNATS_BUILD_USE_SODIUM=ON)
22
+ else()
23
+ list(APPEND OPTIONS -DNATS_BUILD_LIB_SHARED=OFF)
24
+ list(APPEND OPTIONS -DNATS_BUILD_LIB_STATIC=ON)
25
+ list(APPEND OPTIONS -DBUILD_TESTING=ON)
26
+ if(VCPKG_TARGET_IS_WINDOWS)
27
+ list(APPEND OPTIONS -DNATS_BUILD_USE_SODIUM=OFF)
28
+ else()
29
+ list(APPEND OPTIONS -DNATS_BUILD_USE_SODIUM=ON)
30
+ endif()
31
+ endif()
32
+
33
+ vcpkg_cmake_configure(
34
+ SOURCE_PATH ${SOURCE_PATH}
35
+ OPTIONS
36
+ ${FEATURE_OPTIONS}
37
+ ${OPTIONS}
38
+ -DNATS_BUILD_TLS_USE_OPENSSL_1_1_API=ON
39
+ -DNATS_BUILD_EXAMPLES=OFF
40
+ )
41
+
42
+ vcpkg_cmake_install(ADD_BIN_TO_PATH)
43
+
44
+ if(VCPKG_TARGET_IS_WINDOWS)
45
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
46
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/nats.dll")
47
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
48
+ file(RENAME "${CURRENT_PACKAGES_DIR}/lib/nats.dll" "${CURRENT_PACKAGES_DIR}/bin/nats.dll")
49
+ endif()
50
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/natsd.dll")
51
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
52
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/natsd.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/natsd.dll")
53
+ endif()
54
+ endif()
55
+ endif()
56
+
57
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
58
+
59
+ if(VCPKG_TARGET_IS_WINDOWS)
60
+ if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
61
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-debug.cmake")
62
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-debug.cmake"
63
+ "\${_IMPORT_PREFIX}/debug/lib/natsd.dll" "\${_IMPORT_PREFIX}/debug/bin/natsd.dll")
64
+ endif()
65
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-release.cmake")
66
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/cnats/cnats-config-release.cmake"
67
+ "\${_IMPORT_PREFIX}/lib/nats.dll" "\${_IMPORT_PREFIX}/bin/nats.dll")
68
+ endif()
69
+ endif()
70
+ endif()
71
+
72
+ vcpkg_fixup_pkgconfig()
73
+
74
+ vcpkg_copy_pdbs()
75
+
76
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
77
+
78
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
79
+
cc-multilingual-main/cc_net/vcpkg/ports/cnats/vcpkg.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cnats",
3
+ "version": "3.7.0",
4
+ "port-version": 1,
5
+ "description": "A C client for the NATS messaging system",
6
+ "homepage": "https://github.com/nats-io/nats.c",
7
+ "license": "Apache-2.0",
8
+ "dependencies": [
9
+ "libsodium",
10
+ "openssl",
11
+ "protobuf-c",
12
+ {
13
+ "name": "vcpkg-cmake",
14
+ "host": true
15
+ },
16
+ {
17
+ "name": "vcpkg-cmake-config",
18
+ "host": true
19
+ }
20
+ ],
21
+ "features": {
22
+ "streaming": {
23
+ "description": "Include NATS Streaming APIs in the NATS library",
24
+ "supports": "!windows"
25
+ }
26
+ }
27
+ }
cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/fix-compatibility-with-boost-1.83.patch ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ boost/network/protocol/http/server/impl/parsers.ipp | 3 ++-
2
+ 1 file changed, 2 insertions(+), 1 deletion(-)
3
+
4
+ diff --git a/boost/network/protocol/http/server/impl/parsers.ipp b/boost/network/protocol/http/server/impl/parsers.ipp
5
+ index c31e60ea..3272c2fa 100644
6
+ --- a/boost/network/protocol/http/server/impl/parsers.ipp
7
+ +++ b/boost/network/protocol/http/server/impl/parsers.ipp
8
+ @@ -13,6 +13,7 @@
9
+ #include <tuple>
10
+ #include <boost/fusion/include/std_tuple.hpp>
11
+ #include <boost/network/protocol/http/message/header.hpp>
12
+ +#include <boost/regex/pending/unicode_iterator.hpp>
13
+
14
+ #ifdef BOOST_NETWORK_NO_LIB
15
+ #ifndef BOOST_NETWORK_INLINE
16
+ @@ -32,7 +33,7 @@ typedef std::basic_string<uint32_t> u32_string;
17
+ template <> // <typename Attrib, typename T, typename Enable>
18
+ struct assign_to_container_from_value<std::string, u32_string, void> {
19
+ static void call(u32_string const& val, std::string& attr) {
20
+ - u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
21
+ + boost::u32_to_u8_iterator<u32_string::const_iterator> begin = val.begin(),
22
+ end = val.end();
23
+ for (; begin != end; ++begin) attr += *begin;
24
+ }
cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/portfile.cmake ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO cpp-netlib/cpp-netlib
6
+ REF 31d304cdf52b485f465ada433d8905171b61cbff
7
+ SHA512 6d157e6d950dd76a6d16b9c13d4d29f188d9f540eb0b44ab169016e1d7a360995e51d9923b532503a17dd2c8e0e2a38b2f9b531db03b33239e7fb9ca4d047b0c
8
+ HEAD_REF master
9
+ # Updator's note: cpp-netlib has many templates that are not fully instantiated when not building examples.
10
+ # This patch specifically fixes one of those issues
11
+ # To test updates, enable building examples below (may also require patching out uses of cxxopts)
12
+ PATCHES
13
+ fix-compatibility-with-boost-1.83.patch
14
+ stream-handler-executor.patch
15
+ )
16
+
17
+ vcpkg_cmake_configure(
18
+ SOURCE_PATH "${SOURCE_PATH}"
19
+ OPTIONS
20
+ -DCPP-NETLIB_BUILD_TESTS=OFF
21
+ -DCPP-NETLIB_BUILD_EXAMPLES=OFF
22
+ )
23
+
24
+ vcpkg_cmake_install()
25
+
26
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
27
+
28
+ if (VCPKG_TARGET_IS_WINDOWS)
29
+ vcpkg_cmake_config_fixup(CONFIG_PATH cmake PACKAGE_NAME cppnetlib)
30
+ else()
31
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cppnetlib PACKAGE_NAME cppnetlib)
32
+ endif()
33
+
34
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE_1_0.txt")
cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/stream-handler-executor.patch ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/boost/network/protocol/stream_handler.hpp b/boost/network/protocol/stream_handler.hpp
2
+ index ffb09b8..f3b3e99 100644
3
+ --- a/boost/network/protocol/stream_handler.hpp
4
+ +++ b/boost/network/protocol/stream_handler.hpp
5
+ @@ -41,6 +40,7 @@ typedef boost::asio::ssl::context ssl_context;
6
+
7
+ struct stream_handler {
8
+ public:
9
+ + typedef tcp_socket::executor_type executor_type;
10
+ stream_handler(std::shared_ptr<tcp_socket> socket)
11
+ : tcp_sock_(std::move(socket)), ssl_enabled(false) {}
12
+
13
+ @@ -52,12 +52,12 @@ struct stream_handler {
14
+ stream_handler(boost::asio::io_service& io,
15
+ std::shared_ptr<ssl_context> ctx =
16
+ std::shared_ptr<ssl_context>()) {
17
+ - tcp_sock_ = std::make_shared<tcp_socket>(boost::ref(io));
18
+ + tcp_sock_ = std::make_shared<tcp_socket>(io.get_executor());
19
+ ssl_enabled = false;
20
+ if (ctx) {
21
+ /// SSL is enabled
22
+ ssl_sock_ =
23
+ - std::make_shared<ssl_socket>(boost::ref(io), boost::ref(*ctx));
24
+ + std::make_shared<ssl_socket>(io.get_executor(), boost::ref(*ctx));
25
+ ssl_enabled = true;
26
+ }
27
+ }
cc-multilingual-main/cc_net/vcpkg/ports/cpp-netlib/vcpkg.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "cpp-netlib",
3
+ "version": "0.13.0",
4
+ "port-version": 9,
5
+ "description": "A collection of network-related routines/implementations geared towards providing a robust cross-platform networking library",
6
+ "homepage": "https://cpp-netlib.org/",
7
+ "supports": "!uwp",
8
+ "dependencies": [
9
+ "boost-asio",
10
+ "boost-assign",
11
+ "boost-logic",
12
+ "boost-program-options",
13
+ "boost-scope-exit",
14
+ "boost-smart-ptr",
15
+ "boost-spirit",
16
+ {
17
+ "name": "vcpkg-cmake",
18
+ "host": true
19
+ },
20
+ {
21
+ "name": "vcpkg-cmake-config",
22
+ "host": true
23
+ }
24
+ ]
25
+ }
cc-multilingual-main/cc_net/vcpkg/ports/dukglue/portfile.cmake ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_from_github(
2
+ OUT_SOURCE_PATH SOURCE_PATH
3
+ REPO Aloshi/dukglue
4
+ REF c3ec2a463a03a4fa34715aa75273537d39900edb #2022-11-08
5
+ HEAD_REF master
6
+ SHA512 60bf0274113fa7d547ed2890268782176c507ab0b7ea601362640bb2d4d637ce013a4dabeffbd8a82ed672b2de7778355b6e79642d70cfc2c1f1cf2c2fd9f6c1
7
+ )
8
+
9
+ file(COPY "${SOURCE_PATH}/include/dukglue" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
10
+
11
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
cc-multilingual-main/cc_net/vcpkg/ports/dukglue/vcpkg.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "dukglue",
3
+ "version-date": "2022-11-08",
4
+ "description": "A C++ binding/wrapper library for the Duktape JavaScript interpreter.",
5
+ "homepage": "https://github.com/Aloshi/dukglue",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ "duktape"
9
+ ]
10
+ }
cc-multilingual-main/cc_net/vcpkg/ports/eabase/EABaseConfig.cmake.in ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ @PACKAGE_INIT@
2
+
3
+ # Provide path for scripts
4
+ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
5
+
6
+ include(${CMAKE_CURRENT_LIST_DIR}/EABaseTargets.cmake)
cc-multilingual-main/cc_net/vcpkg/ports/eabase/fix_cmake_install.patch ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 89c6703..ab8e553 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -4,6 +4,9 @@
6
+ cmake_minimum_required(VERSION 3.1)
7
+ project(EABase CXX)
8
+
9
+ +include(GNUInstallDirs)
10
+ +include(CMakePackageConfigHelpers)
11
+ +
12
+ #-------------------------------------------------------------------------------------------
13
+ # Options
14
+ #-------------------------------------------------------------------------------------------
15
+ @@ -22,13 +25,51 @@ endif()
16
+ add_definitions(-D_CHAR16T)
17
+
18
+ if (NOT EABASE_BUILD_TESTS)
19
+ - #-------------------------------------------------------------------------------------------
20
+ - # Header only library
21
+ - #-------------------------------------------------------------------------------------------
22
+ - add_library(EABase INTERFACE)
23
+ -
24
+ - #-------------------------------------------------------------------------------------------
25
+ - # Include dirs
26
+ - #-------------------------------------------------------------------------------------------
27
+ - target_include_directories(EABase INTERFACE include/Common)
28
+ + #-------------------------------------------------------------------------------------------
29
+ + # Header only library
30
+ + #-------------------------------------------------------------------------------------------
31
+ + add_library(EABase INTERFACE)
32
+ + add_library(EABase::EABase ALIAS EABase)
33
+ +
34
+ + #-------------------------------------------------------------------------------------------
35
+ + # Include dirs
36
+ + #-------------------------------------------------------------------------------------------
37
+ + target_include_directories(EABase INTERFACE
38
+ + $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include/Common>
39
+ + $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
40
+ + )
41
+ +
42
+ + # create and install an export set for eabase target as EABase::EABase
43
+ + set(EABase_CMAKE_CONFIG_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/EABase")
44
+ +
45
+ + configure_package_config_file(
46
+ + EABaseConfig.cmake.in
47
+ + ${CMAKE_CURRENT_BINARY_DIR}/EABaseConfig.cmake
48
+ + INSTALL_DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION}
49
+ + )
50
+ +
51
+ + # create and install an export set for Terra target as Terra
52
+ + install(
53
+ + TARGETS EABase EXPORT EABaseTargets
54
+ + DESTINATION ${CMAKE_INSTALL_LIBDIR}
55
+ + )
56
+ +
57
+ +
58
+ + install(EXPORT EABaseTargets DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION})
59
+ +
60
+ + write_basic_package_version_file(
61
+ + "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfigVersion.cmake"
62
+ + VERSION 2.09.12
63
+ + COMPATIBILITY SameMajorVersion
64
+ + )
65
+ +
66
+ + install(TARGETS EABase LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
67
+ + install(DIRECTORY "include/Common/" DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
68
+ +
69
+ + install(
70
+ + FILES
71
+ + "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfig.cmake"
72
+ + "${CMAKE_CURRENT_BINARY_DIR}/EABaseConfigVersion.cmake"
73
+ + DESTINATION ${EABase_CMAKE_CONFIG_DESTINATION}
74
+ + )
75
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/eabase/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 electronicarts/EABase
6
+ REF d1be0a1d0fc01a9bf8f3f2cea75018df0d2410ee
7
+ SHA512 84a11bea06aecbf9a659d92b1ac904b99b2b82023650f4f376b5e68a744f631c5dbdd53d25f746ffb01b428415ac86e4fb8ba758db844acf80560fabe4d77733
8
+ HEAD_REF master
9
+ PATCHES
10
+ fix_cmake_install.patch
11
+ )
12
+
13
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/EABaseConfig.cmake.in" DESTINATION "${SOURCE_PATH}")
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ OPTIONS
18
+ -DEABASE_BUILD_TESTS:BOOL=OFF
19
+ )
20
+ vcpkg_cmake_install()
21
+
22
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/EABase)
23
+
24
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
25
+
26
+ vcpkg_copy_pdbs()
27
+
28
+ # Handle copyright
29
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
cc-multilingual-main/cc_net/vcpkg/ports/eabase/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "eabase",
3
+ "version-string": "2.09.12",
4
+ "port-version": 3,
5
+ "description": "Electronic Arts Base. EABase is a small set of header files that define platform-independent data types and macros.",
6
+ "homepage": "https://github.com/electronicarts/EABase",
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/fluidsynth/gentables.patch ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2
+ index e86a6429..9240e091 100644
3
+ --- a/src/CMakeLists.txt
4
+ +++ b/src/CMakeLists.txt
5
+ @@ -538,6 +538,9 @@ install(EXPORT FluidSynthTargets
6
+
7
+ # ******* Auto Generated Lookup Tables ******
8
+
9
+ +if(VCPKG_BUILD_MAKE_TABLES)
10
+ + add_subdirectory(gentables)
11
+ +elseif(0)
12
+ include(ExternalProject)
13
+
14
+ set (GENTAB_SDIR ${CMAKE_CURRENT_SOURCE_DIR}/gentables)
15
+ @@ -557,4 +560,11 @@ ExternalProject_Add(gentables
16
+ "${CMAKE_COMMAND}" --build "${GENTAB_BDIR}"
17
+ INSTALL_COMMAND ${GENTAB_BDIR}/make_tables.exe "${FluidSynth_BINARY_DIR}/"
18
+ )
19
+ +endif()
20
+ +if(TARGET make_tables AND NOT CMAKE_CROSSCOMPILING)
21
+ + set(GENTABLES make_tables)
22
+ +else()
23
+ + find_program(GENTABLES make_tables REQUIRED)
24
+ +endif()
25
+ +add_custom_target(gentables COMMAND "${GENTABLES}" "${CMAKE_BINARY_DIR}/")
26
+ add_dependencies(libfluidsynth-OBJ gentables)
27
+ diff --git a/src/gentables/CMakeLists.txt b/src/gentables/CMakeLists.txt
28
+ index 9cb69f2b..c393a670 100644
29
+ --- a/src/gentables/CMakeLists.txt
30
+ +++ b/src/gentables/CMakeLists.txt
31
+ @@ -12,6 +12,7 @@ unset(ENV{LDFLAGS})
32
+
33
+ project (gentables C)
34
+
35
+ +if (0)
36
+ set ( CMAKE_BUILD_TYPE Debug )
37
+
38
+ # hardcode ".exe" as suffix to the binary, else in case of cross-platform cross-compiling the calling cmake will not know the suffix used here and fail to find the binary
39
+ @@ -20,6 +21,7 @@ set ( CMAKE_EXECUTABLE_SUFFIX ".exe" )
40
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
41
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR})
42
+ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR})
43
+ +endif()
44
+
45
+ # Add the executable that generates the table
46
+ add_executable( make_tables
47
+ @@ -34,3 +36,4 @@ if ( WIN32 )
48
+ else ( WIN32 )
49
+ target_link_libraries (make_tables "m")
50
+ endif ()
51
+ +install(TARGETS make_tables DESTINATION bin)
cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/portfile.cmake ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if("pulseaudio" IN_LIST FEATURES)
2
+ message(
3
+ "${PORT} with pulseaudio feature currently requires the following from the system package manager:
4
+ libpulse-dev pulseaudio
5
+ These can be installed on Ubuntu systems via sudo apt install libpulse-dev pulseaudio"
6
+ )
7
+ endif()
8
+
9
+ vcpkg_from_github(
10
+ OUT_SOURCE_PATH SOURCE_PATH
11
+ REPO FluidSynth/fluidsynth
12
+ REF "v${VERSION}"
13
+ SHA512 79891116d78b9be1c38bce9e5759b9bb732c3d8ee31c6e57d1a3e2b5548879b91d19582e73ee7fb0fd243beba3bf1bbc341a26aab0b6440eef36fc55dce3e8b0
14
+ HEAD_REF master
15
+ PATCHES
16
+ gentables.patch
17
+ )
18
+
19
+ vcpkg_check_features(
20
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
21
+ FEATURES
22
+ buildtools VCPKG_BUILD_MAKE_TABLES
23
+ sndfile enable-libsndfile
24
+ pulseaudio enable-pulseaudio
25
+ )
26
+
27
+ # enable platform-specific features, force the build to fail if the required libraries are not found,
28
+ # and disable all other features to avoid system libraries to be picked up
29
+ set(WINDOWS_OPTIONS enable-dsound enable-wasapi enable-waveout enable-winmidi HAVE_MMSYSTEM_H HAVE_DSOUND_H HAVE_OBJBASE_H)
30
+ set(MACOS_OPTIONS enable-coreaudio enable-coremidi COREAUDIO_FOUND COREMIDI_FOUND)
31
+ set(LINUX_OPTIONS enable-alsa ALSA_FOUND)
32
+ set(ANDROID_OPTIONS enable-opensles OpenSLES_FOUND)
33
+ set(IGNORED_OPTIONS enable-coverage enable-dbus enable-floats enable-fpe-check enable-framework enable-jack enable-lash
34
+ enable-libinstpatch enable-midishare enable-oboe enable-openmp enable-oss enable-pipewire enable-portaudio
35
+ enable-profiling enable-readline enable-sdl2 enable-systemd enable-trap-on-fpe enable-ubsan)
36
+
37
+ if(VCPKG_TARGET_IS_WINDOWS)
38
+ set(OPTIONS_TO_ENABLE ${WINDOWS_OPTIONS})
39
+ set(OPTIONS_TO_DISABLE ${MACOS_OPTIONS} ${LINUX_OPTIONS} ${ANDROID_OPTIONS})
40
+ elseif(VCPKG_TARGET_IS_OSX)
41
+ set(OPTIONS_TO_ENABLE ${MACOS_OPTIONS})
42
+ set(OPTIONS_TO_DISABLE ${WINDOWS_OPTIONS} ${LINUX_OPTIONS} ${ANDROID_OPTIONS})
43
+ elseif(VCPKG_TARGET_IS_LINUX)
44
+ set(OPTIONS_TO_ENABLE ${LINUX_OPTIONS})
45
+ set(OPTIONS_TO_DISABLE ${WINDOWS_OPTIONS} ${MACOS_OPTIONS} ${ANDROID_OPTIONS})
46
+ elseif(VCPKG_TARGET_IS_ANDROID)
47
+ set(OPTIONS_TO_ENABLE ${ANDROID_OPTIONS})
48
+ set(OPTIONS_TO_DISABLE ${WINDOWS_OPTIONS} ${MACOS_OPTIONS} ${LINUX_OPTIONS})
49
+ endif()
50
+
51
+ foreach(_option IN LISTS OPTIONS_TO_ENABLE)
52
+ list(APPEND ENABLED_OPTIONS "-D{_option}:BOOL=ON")
53
+ endforeach()
54
+
55
+ foreach(_option IN LISTS OPTIONS_TO_DISABLE IGNORED_OPTIONS)
56
+ list(APPEND DISABLED_OPTIONS "-D${_option}:BOOL=OFF")
57
+ endforeach()
58
+
59
+ vcpkg_find_acquire_program(PKGCONFIG)
60
+ vcpkg_cmake_configure(
61
+ SOURCE_PATH "${SOURCE_PATH}"
62
+ OPTIONS
63
+ "-DVCPKG_HOST_TRIPLET=${HOST_TRIPLET}"
64
+ ${FEATURE_OPTIONS}
65
+ ${ENABLED_OPTIONS}
66
+ ${DISABLED_OPTIONS}
67
+ "-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
68
+ MAYBE_UNUSED_VARIABLES
69
+ ${OPTIONS_TO_DISABLE}
70
+ VCPKG_BUILD_MAKE_TABLES
71
+ enable-coverage
72
+ enable-framework
73
+ enable-ubsan
74
+ )
75
+
76
+ vcpkg_cmake_install()
77
+
78
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fluidsynth)
79
+
80
+ vcpkg_fixup_pkgconfig()
81
+
82
+ set(tools fluidsynth)
83
+ if("buildtools" IN_LIST FEATURES)
84
+ list(APPEND tools make_tables)
85
+ endif()
86
+ vcpkg_copy_tools(TOOL_NAMES ${tools} AUTO_CLEAN)
87
+
88
+ vcpkg_copy_pdbs()
89
+
90
+ file(REMOVE_RECURSE
91
+ "${CURRENT_PACKAGES_DIR}/debug/include"
92
+ "${CURRENT_PACKAGES_DIR}/debug/share"
93
+ "${CURRENT_PACKAGES_DIR}/share/man")
94
+
95
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
96
+
97
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
cc-multilingual-main/cc_net/vcpkg/ports/fluidsynth/vcpkg.json ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "fluidsynth",
3
+ "version": "2.3.4",
4
+ "description": "FluidSynth reads and handles MIDI events from the MIDI input device. It is the software analogue of a MIDI synthesizer. FluidSynth can also play midifiles using a Soundfont.",
5
+ "homepage": "https://github.com/FluidSynth/fluidsynth",
6
+ "license": "LGPL-2.1-or-later",
7
+ "supports": "!xbox",
8
+ "dependencies": [
9
+ {
10
+ "name": "alsa",
11
+ "platform": "linux"
12
+ },
13
+ {
14
+ "name": "fluidsynth",
15
+ "host": true,
16
+ "default-features": false,
17
+ "features": [
18
+ "buildtools"
19
+ ]
20
+ },
21
+ "glib",
22
+ {
23
+ "name": "vcpkg-cmake",
24
+ "host": true
25
+ },
26
+ {
27
+ "name": "vcpkg-cmake-config",
28
+ "host": true
29
+ }
30
+ ],
31
+ "features": {
32
+ "buildtools": {
33
+ "description": "Build tools gentables"
34
+ },
35
+ "pulseaudio": {
36
+ "description": "Build with PulseAudio support",
37
+ "supports": "linux"
38
+ },
39
+ "sndfile": {
40
+ "description": "Enable rendering to file and SF3 support",
41
+ "dependencies": [
42
+ {
43
+ "name": "libsndfile",
44
+ "default-features": false,
45
+ "features": [
46
+ "external-libs"
47
+ ]
48
+ }
49
+ ]
50
+ }
51
+ }
52
+ }
cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix-dependency-hwloc.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/FindHwloc.cmake b/cmake/FindHwloc.cmake
2
+ index cdede78..6967abf 100644
3
+ --- a/cmake/FindHwloc.cmake
4
+ +++ b/cmake/FindHwloc.cmake
5
+ @@ -71,6 +71,9 @@ if(NOT TARGET Hwloc::hwloc)
6
+ add_library(Hwloc::hwloc INTERFACE IMPORTED)
7
+ target_include_directories(Hwloc::hwloc SYSTEM INTERFACE ${HWLOC_INCLUDE_DIR})
8
+ target_link_libraries(Hwloc::hwloc INTERFACE ${HWLOC_LIBRARIES})
9
+ -
10
+ + if(APPLE)
11
+ + target_link_libraries(Hwloc::hwloc INTERFACE "-framework CoreFoundation" "-framework IOKit")
12
+ + endif()
13
+ +
14
+ mark_as_advanced(HWLOC_ROOT HWLOC_LIBRARY HWLOC_INCLUDE_DIR)
15
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix_output_name_clash.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cmake/HPX_AddComponent.cmake b/cmake/HPX_AddComponent.cmake
2
+ index 129a87ced..b45feb3f5 100644
3
+ --- a/cmake/HPX_AddComponent.cmake
4
+ +++ b/cmake/HPX_AddComponent.cmake
5
+ @@ -306,7 +306,7 @@ function(add_hpx_component name)
6
+ hpx_setup_target(
7
+ ${name}_component
8
+ TYPE COMPONENT
9
+ - NAME ${name}
10
+ + NAME ${name}_component
11
+ FOLDER ${${name}_FOLDER}
12
+ COMPILE_FLAGS ${${name}_COMPILE_FLAGS}
13
+ LINK_FLAGS ${${name}_LINK_FLAGS}
cc-multilingual-main/cc_net/vcpkg/ports/hpx/portfile.cmake ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ if(VCPKG_TARGET_IS_WINDOWS)
2
+ vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
3
+ endif()
4
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" HPX_WITH_STATIC_LINKING)
5
+
6
+ vcpkg_download_distfile(
7
+ MSVC_STATIC_VARIABLES_PATCH
8
+ URLS https://github.com/STEllAR-GROUP/hpx/commit/6c378813a7e2304a3a0c8900156f147a3a44b0cb.patch?full_index=1
9
+ SHA512 6ed2ec4eab9593d8d1a76da183dd4ceb5ac332f50b0b5cd3a81c74248c61eeb869d301a33e266d06c5f8ddf041da6cd29d1b89b38e51527716a6e557b4a7e66e
10
+ FILENAME hpx-6c378813a7e2304a3a0c8900156f147a3a44b0cb.patch
11
+ )
12
+
13
+ vcpkg_from_github(
14
+ OUT_SOURCE_PATH SOURCE_PATH
15
+ REPO STEllAR-GROUP/hpx
16
+ REF "v${VERSION}"
17
+ SHA512 a7972beada950cf6ef3b61f20496a08b220e4f48c28c11d57c20683906ca5124a9f36ac2552318883a5ab1db6efdbf63d1141b6e0c484c560a8c1311ae2d7090
18
+ HEAD_REF master
19
+ PATCHES
20
+ fix-dependency-hwloc.patch
21
+ fix-debug.patch
22
+ fix_output_name_clash.patch
23
+ "${MSVC_STATIC_VARIABLES_PATCH}"
24
+ )
25
+
26
+ vcpkg_check_features(
27
+ OUT_FEATURE_OPTIONS FEATURE_OPTIONS
28
+ FEATURES
29
+ "zlib" HPX_WITH_COMPRESSION_ZLIB
30
+ "snappy" HPX_WITH_COMPRESSION_SNAPPY
31
+ "bzip2" HPX_WITH_COMPRESSION_BZIP2
32
+ "cuda" HPX_WITH_CUDA
33
+ "mpi" HPX_WITH_PARCELPORT_MPI
34
+ "mpi" HPX_WITH_PARCELPORT_MPI_MULTITHREADED
35
+ )
36
+
37
+ if(NOT VCPKG_TARGET_ARCHITECTURE MATCHES "(x64|x86)")
38
+ list(APPEND FEATURE_OPTIONS "-DHPX_WITH_GENERIC_CONTEXT_COROUTINES=ON")
39
+ endif()
40
+
41
+ file(REMOVE "${SOURCE_PATH}/cmake/FindBZip2.cmake") # Outdated
42
+
43
+ vcpkg_cmake_configure(
44
+ SOURCE_PATH "${SOURCE_PATH}"
45
+ OPTIONS
46
+ -DHPX_WITH_VCPKG=ON
47
+ -DHPX_WITH_TESTS=OFF
48
+ -DHPX_WITH_EXAMPLES=OFF
49
+ -DHPX_WITH_TOOLS=OFF
50
+ -DHPX_WITH_RUNTIME=OFF
51
+ -DHPX_USE_CMAKE_CXX_STANDARD=ON
52
+ ${FEATURE_OPTIONS}
53
+ -DHPX_WITH_PKGCONFIG=OFF
54
+ -DHPX_WITH_STATIC_LINKING=${HPX_WITH_STATIC_LINKING}
55
+ -DHPX_WITH_PARCELPORT_TCP=ON
56
+ -DHPX_WITH_THREAD_TARGET_ADDRESS=ON
57
+ -DHPX_WITH_CHECK_MODULE_DEPENDENCIES=ON
58
+ -DHPX_WITH_THREAD_IDLE_RATES=ON
59
+ -DVCPKG_HOST_TRIPLET=${_HOST_TRIPLET}
60
+ )
61
+ vcpkg_cmake_install()
62
+
63
+ # post build cleanup
64
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/HPX)
65
+
66
+ file(GLOB_RECURSE CMAKE_FILES "${CURRENT_PACKAGES_DIR}/share/hpx/*.cmake")
67
+ foreach(CMAKE_FILE IN LISTS CMAKE_FILES)
68
+ file(READ ${CMAKE_FILE} _contents)
69
+ string(REGEX REPLACE
70
+ "lib/([A-Za-z0-9_.-]+\\.dll)"
71
+ "bin/\\1"
72
+ _contents "${_contents}")
73
+ string(REGEX REPLACE
74
+ "lib/hpx/([A-Za-z0-9_.-]+\\.dll)"
75
+ "bin/hpx/\\1"
76
+ _contents "${_contents}")
77
+ file(WRITE ${CMAKE_FILE} "${_contents}")
78
+ endforeach()
79
+
80
+ vcpkg_replace_string(
81
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXConfig.cmake"
82
+ "set(HPX_BUILD_TYPE \"Release\")"
83
+ "set(HPX_BUILD_TYPE \"\${CMAKE_BUILD_TYPE}\")")
84
+
85
+ vcpkg_replace_string(
86
+ "${CURRENT_PACKAGES_DIR}/share/${PORT}/HPXMacros.cmake"
87
+ "set(CMAKE_MODULE_PATH \${CMAKE_MODULE_PATH}"
88
+ "list(APPEND CMAKE_MODULE_PATH")
89
+
90
+ file(INSTALL
91
+ "${SOURCE_PATH}/LICENSE_1_0.txt"
92
+ DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
93
+
94
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
95
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
96
+
97
+ vcpkg_fixup_pkgconfig()
98
+
99
+ file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/hpxcxx" "${CURRENT_PACKAGES_DIR}/debug/bin/hpxcxx")
100
+
101
+ if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/hpxrun.py")
102
+ file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
103
+ file(RENAME "${CURRENT_PACKAGES_DIR}/bin/hpxrun.py" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/hpxrun.py")
104
+ vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/hpxrun.py" "'${CURRENT_INSTALLED_DIR}/tools/openmpi/bin/mpiexec'" "'mpiexec'")
105
+ endif()
106
+
107
+ if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
108
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
109
+ endif()
110
+
111
+ configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
cc-multilingual-main/cc_net/vcpkg/ports/hpx/usage ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ The port hpx provides CMake targets:
2
+
3
+ find_package(HPX REQUIRED)
4
+ target_link_libraries(main PRIVATE HPX::hpx)
cc-multilingual-main/cc_net/vcpkg/ports/implot/CMakeLists.txt ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.8)
2
+ project(implot CXX)
3
+
4
+ find_package(imgui CONFIG REQUIRED)
5
+ get_target_property(IMGUI_INCLUDE_DIRS imgui::imgui
6
+ INTERFACE_INCLUDE_DIRECTORIES
7
+ )
8
+
9
+ set(CMAKE_DEBUG_POSTFIX d)
10
+
11
+ add_library(${PROJECT_NAME} "")
12
+ add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
13
+ target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
14
+ target_include_directories(
15
+ ${PROJECT_NAME}
16
+ PUBLIC
17
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
18
+ $<INSTALL_INTERFACE:include>
19
+ PRIVATE
20
+ ${IMGUI_INCLUDE_DIRS}
21
+ )
22
+
23
+ target_sources(
24
+ ${PROJECT_NAME}
25
+ PRIVATE
26
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot.cpp
27
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot_items.cpp
28
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot_demo.cpp
29
+ )
30
+
31
+ install(
32
+ TARGETS ${PROJECT_NAME}
33
+ EXPORT ${PROJECT_NAME}_target
34
+ ARCHIVE DESTINATION lib
35
+ LIBRARY DESTINATION lib
36
+ RUNTIME DESTINATION bin
37
+ )
38
+
39
+ if(NOT IMPLOT_SKIP_HEADERS)
40
+ install(FILES
41
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot.h
42
+ ${CMAKE_CURRENT_SOURCE_DIR}/implot_internal.h
43
+ DESTINATION include
44
+ )
45
+ endif()
46
+
47
+ install(
48
+ EXPORT ${PROJECT_NAME}_target
49
+ NAMESPACE ${PROJECT_NAME}::
50
+ FILE ${PROJECT_NAME}-config.cmake
51
+ DESTINATION share/${PROJECT_NAME}
52
+ )
cc-multilingual-main/cc_net/vcpkg/ports/implot/portfile.cmake ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO epezent/implot
6
+ REF v${VERSION}
7
+ SHA512 117cb08122d900e7db857897bfec4c9ac3300a1d429c8f0303415bc693840baa9bbbb91ca3f13853d8efd3a6ebf538b7114401d4fbfe0d067256e58cbdbd4919
8
+ HEAD_REF master
9
+ )
10
+
11
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}"
15
+ OPTIONS_DEBUG
16
+ -DIMPLOT_SKIP_HEADERS=ON
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+
21
+ vcpkg_copy_pdbs()
22
+ vcpkg_cmake_config_fixup()
23
+
24
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/implot/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "implot",
3
+ "version": "0.16",
4
+ "description": "Advanced 2D Plotting for Dear ImGui",
5
+ "homepage": "https://github.com/epezent/implot",
6
+ "license": "MIT",
7
+ "dependencies": [
8
+ "imgui",
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/iniparser/CMakeLists.txt ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ cmake_minimum_required(VERSION 3.14)
2
+
3
+ project(iniparser LANGUAGES C)
4
+
5
+ include(GNUInstallDirs)
6
+
7
+ set(CMAKE_DISABLE_SOURCE_CHANGES ON)
8
+ set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
9
+
10
+ # iniparser.pc
11
+ set(prefix ${CMAKE_INSTALL_PREFIX})
12
+ set(libdir ${prefix}/${CMAKE_INSTALL_LIBDIR})
13
+ set(includedir ${prefix}/${CMAKE_INSTALL_INCLUDEDIR})
14
+ set(datarootdir ${prefix}/${CMAKE_INSTALL_DATAROOTDIR})
15
+ set(datadir ${prefix}/${CMAKE_INSTALL_DATADIR})
16
+
17
+ configure_file(iniparser.pc ${CMAKE_CURRENT_BINARY_DIR}/iniparser.pc)
18
+
19
+ set(iniparser_sources
20
+ src/dictionary.c
21
+ src/iniparser.c
22
+ )
23
+
24
+ add_library(iniparser ${iniparser_sources})
25
+
26
+ target_include_directories(iniparser
27
+ PUBLIC
28
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src>
29
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
30
+ )
31
+
32
+ target_compile_definitions(iniparser
33
+ PRIVATE
34
+ $<$<C_COMPILER_ID:MSVC>:_CRT_SECURE_NO_WARNINGS>
35
+ )
36
+
37
+ install(TARGETS iniparser EXPORT unofficial-iniparser-config)
38
+
39
+ install(
40
+ EXPORT unofficial-iniparser-config
41
+ NAMESPACE unofficial::iniparser::
42
+ DESTINATION share/unofficial-iniparser
43
+ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
44
+ )
45
+
46
+ install(
47
+ FILES src/dictionary.h src/iniparser.h
48
+ DESTINATION include
49
+ )
50
+
51
+ install(
52
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/iniparser.pc
53
+ DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig
54
+ )
cc-multilingual-main/cc_net/vcpkg/ports/iniparser/portfile.cmake ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_github(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO ndevilla/iniparser
6
+ REF f858275f7f307eecba84c2f5429483f9f28007f8
7
+ SHA512 48c80b2163f86d8ca0f3253128d8528214e2f0680b4bceb686180c01b29cd2a0c3b9d6e7156a8e28649b14bc1d8a51b34c2d3d258013b35f69aaf6c3ded9ecdc
8
+ HEAD_REF master
9
+ PATCHES
10
+ win32_ssize_t.patch
11
+ )
12
+
13
+ file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
14
+
15
+ vcpkg_cmake_configure(
16
+ SOURCE_PATH "${SOURCE_PATH}"
17
+ )
18
+
19
+ vcpkg_cmake_install()
20
+
21
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
22
+
23
+ vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-${PORT})
24
+
25
+ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
26
+
27
+ vcpkg_fixup_pkgconfig()
cc-multilingual-main/cc_net/vcpkg/ports/iniparser/vcpkg.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "iniparser",
3
+ "version-date": "2020-04-06",
4
+ "port-version": 5,
5
+ "description": "C library for parsing INI-style files",
6
+ "homepage": "https://github.com/ndevilla/iniparser",
7
+ "license": "MIT",
8
+ "dependencies": [
9
+ {
10
+ "name": "vcpkg-cmake",
11
+ "host": true
12
+ },
13
+ {
14
+ "name": "vcpkg-cmake-config",
15
+ "host": true
16
+ }
17
+ ]
18
+ }
cc-multilingual-main/cc_net/vcpkg/ports/iniparser/win32_ssize_t.patch ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/src/dictionary.c b/src/dictionary.c
2
+ index cb7ccd4..7985ab3 100644
3
+ --- a/src/dictionary.c
4
+ +++ b/src/dictionary.c
5
+ @@ -18,7 +18,6 @@
6
+ #include <stdio.h>
7
+ #include <stdlib.h>
8
+ #include <string.h>
9
+ -#include <unistd.h>
10
+
11
+ /** Maximum value size for integers and doubles. */
12
+ #define MAXVALSZ 1024
13
+ diff --git a/src/dictionary.h b/src/dictionary.h
14
+ index d04b6ce..929ae17 100644
15
+ --- a/src/dictionary.h
16
+ +++ b/src/dictionary.h
17
+ @@ -21,7 +21,12 @@
18
+ #include <stdio.h>
19
+ #include <stdlib.h>
20
+ #include <string.h>
21
+ +#ifdef _MSC_VER
22
+ +#include <BaseTsd.h>
23
+ +typedef SSIZE_T ssize_t;
24
+ +#else
25
+ #include <unistd.h>
26
+ +#endif
27
+
28
+ #ifdef __cplusplus
29
+ extern "C" {
cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix-for-vcpkg.patch ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index a3837943..2c34d7fb 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -446,11 +446,25 @@ if(WARNINGS_AS_ERRORS)
6
+ endif()
7
+ endif()
8
+
9
+ +if(DATACHANNEL_STATIC_LINKAGE)
10
+ +set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 1)
11
+ +set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 0)
12
+ +
13
+ +install(TARGETS datachannel-static EXPORT LibDataChannelTargets
14
+ + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
15
+ + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
16
+ + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
17
+ +)
18
+ +else()
19
+ +set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 0)
20
+ +set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 1)
21
+ +
22
+ install(TARGETS datachannel EXPORT LibDataChannelTargets
23
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
24
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
25
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
26
+ )
27
+ +endif()
28
+
29
+ install(FILES ${LIBDATACHANNEL_HEADERS}
30
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rtc
cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_dependency.patch ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index f604628..1610166 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -239,7 +239,7 @@ set(THREADS_PREFER_PTHREAD_FLAG TRUE)
6
+ find_package(Threads REQUIRED)
7
+
8
+ if(USE_SYSTEM_PLOG)
9
+ - find_package(plog REQUIRED)
10
+ + find_package(plog CONFIG REQUIRED)
11
+ else()
12
+ set(CMAKE_POLICY_DEFAULT_CMP0048 NEW)
13
+ add_subdirectory(deps/plog EXCLUDE_FROM_ALL)
14
+ @@ -250,7 +250,7 @@ if(SCTP_DEBUG)
15
+ endif()
16
+
17
+ if(USE_SYSTEM_USRSCTP)
18
+ - find_package(Usrsctp REQUIRED)
19
+ + find_package(unofficial-usrsctp CONFIG REQUIRED)
20
+ else()
21
+ option(sctp_build_shared_lib OFF)
22
+ option(sctp_build_programs OFF)
23
+ @@ -294,7 +294,7 @@ target_include_directories(datachannel PUBLIC
24
+ target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc)
25
+ target_include_directories(datachannel PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
26
+ target_link_libraries(datachannel PRIVATE Threads::Threads)
27
+ -target_link_libraries(datachannel PRIVATE Usrsctp::Usrsctp plog::plog)
28
+ +target_link_libraries(datachannel PRIVATE unofficial::usrsctp::usrsctp plog::plog)
29
+
30
+ target_include_directories(datachannel-static PUBLIC
31
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
32
+ @@ -302,7 +302,7 @@ target_include_directories(datachannel-static PUBLIC
33
+ target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/rtc)
34
+ target_include_directories(datachannel-static PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)
35
+ target_link_libraries(datachannel-static PRIVATE Threads::Threads)
36
+ -target_link_libraries(datachannel-static PRIVATE Usrsctp::Usrsctp plog::plog)
37
+ +target_link_libraries(datachannel-static PRIVATE unofficial::usrsctp::usrsctp plog::plog)
38
+
39
+ if(WIN32)
40
+ target_link_libraries(datachannel PUBLIC ws2_32) # winsock2
cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/fix_srtp.patch ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index ca0f12e5..8e0e665f 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -326,7 +326,7 @@ else()
6
+ target_compile_definitions(datachannel PUBLIC RTC_ENABLE_MEDIA=1)
7
+ target_compile_definitions(datachannel-static PUBLIC RTC_ENABLE_MEDIA=1)
8
+ if(USE_SYSTEM_SRTP)
9
+ - find_package(libSRTP REQUIRED)
10
+ + find_package(libSRTP CONFIG REQUIRED)
11
+ if(NOT TARGET libSRTP::srtp2)
12
+ add_library(libSRTP::srtp2 UNKNOWN IMPORTED)
13
+ set_target_properties(libSRTP::srtp2 PROPERTIES
cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/portfile.cmake ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ set(PATCHES fix-for-vcpkg.patch)
2
+
3
+ if(VCPKG_TARGET_IS_UWP)
4
+ list(APPEND PATCHES uwp-warnings.patch)
5
+ endif()
6
+
7
+ vcpkg_from_github(
8
+ OUT_SOURCE_PATH SOURCE_PATH
9
+ REPO paullouisageneau/libdatachannel
10
+ REF "v${VERSION}"
11
+ SHA512 28ef96773b5c0b470ad9c52dafc1c7b8c88e54414a59bf0363ce3ca3f099f81a3e8005f57d4e4d93c8be9bdd72855d8af5438266e75fdabb23882df6d6f0b550
12
+ HEAD_REF master
13
+ PATCHES
14
+ ${PATCHES}
15
+ fix_dependency.patch
16
+ )
17
+ file(REMOVE "${SOURCE_PATH}/cmake/Modules/FindLibJuice.cmake")
18
+ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" DATACHANNEL_STATIC_LINKAGE)
19
+
20
+ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
21
+ FEATURES
22
+ stdcall CAPI_STDCALL
23
+ INVERTED_FEATURES
24
+ ws NO_WEBSOCKET
25
+ srtp NO_MEDIA
26
+ )
27
+
28
+ vcpkg_cmake_configure(
29
+ SOURCE_PATH "${SOURCE_PATH}"
30
+ OPTIONS
31
+ ${FEATURE_OPTIONS}
32
+ -DPREFER_SYSTEM_LIB=ON
33
+ -DNO_EXAMPLES=ON
34
+ -DNO_TESTS=ON
35
+ -DDATACHANNEL_STATIC_LINKAGE=${DATACHANNEL_STATIC_LINKAGE}
36
+ )
37
+
38
+ vcpkg_cmake_install()
39
+
40
+ vcpkg_cmake_config_fixup(PACKAGE_NAME LibDataChannel CONFIG_PATH lib/cmake/LibDataChannel)
41
+ vcpkg_fixup_pkgconfig()
42
+
43
+ if(srtp IN_LIST FEATURES)
44
+ set(FIND_DEP_SRTP "find_dependency(libSRTP CONFIG)")
45
+ endif()
46
+
47
+ file(READ "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" DATACHANNEL_CONFIG)
48
+ file(WRITE "${CURRENT_PACKAGES_DIR}/share/LibDataChannel/LibDataChannelConfig.cmake" "
49
+ include(CMakeFindDependencyMacro)
50
+ find_dependency(Threads)
51
+ find_dependency(OpenSSL)
52
+ find_dependency(LibJuice)
53
+ find_dependency(plog CONFIG)
54
+ find_dependency(unofficial-usrsctp CONFIG)
55
+ ${FIND_DEP_SRTP}
56
+ ${DATACHANNEL_CONFIG}")
57
+
58
+
59
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
60
+
61
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/uwp-warnings.patch ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 2c34d7fb..1bedd212 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -446,6 +446,9 @@ if(WARNINGS_AS_ERRORS)
6
+ endif()
7
+ endif()
8
+
9
+ +target_compile_options(datachannel PRIVATE /wd4996)
10
+ +target_compile_options(datachannel-static PRIVATE /wd4996)
11
+ +
12
+ if(DATACHANNEL_STATIC_LINKAGE)
13
+ set_target_properties(datachannel PROPERTIES EXCLUDE_FROM_ALL 1)
14
+ set_target_properties(datachannel-static PROPERTIES EXCLUDE_FROM_ALL 0)
cc-multilingual-main/cc_net/vcpkg/ports/libdatachannel/vcpkg.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "libdatachannel",
3
+ "version-semver": "0.20.1",
4
+ "port-version": 1,
5
+ "description": "libdatachannel is a standalone implementation of WebRTC Data Channels, WebRTC Media Transport, and WebSockets in C++17 with C bindings for POSIX platforms (including GNU/Linux, Android, and Apple macOS) and Microsoft Windows.",
6
+ "homepage": "https://github.com/paullouisageneau/libdatachannel",
7
+ "license": "MPL-2.0",
8
+ "supports": "!xbox",
9
+ "dependencies": [
10
+ "libjuice",
11
+ "nlohmann-json",
12
+ "openssl",
13
+ "plog",
14
+ "usrsctp",
15
+ {
16
+ "name": "vcpkg-cmake",
17
+ "host": true
18
+ },
19
+ {
20
+ "name": "vcpkg-cmake-config",
21
+ "host": true
22
+ }
23
+ ],
24
+ "default-features": [
25
+ "ws"
26
+ ],
27
+ "features": {
28
+ "srtp": {
29
+ "description": "Use Cisco's libSRTP for media transport.",
30
+ "dependencies": [
31
+ "libsrtp"
32
+ ]
33
+ },
34
+ "stdcall": {
35
+ "description": "Use stdcall convention in callbacks"
36
+ },
37
+ "ws": {
38
+ "description": "Web Socket support"
39
+ }
40
+ }
41
+ }
cc-multilingual-main/cc_net/vcpkg/ports/magma/clang-cuda.patch ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index eeb0bb0b8f..6a5e0a747a 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -310,10 +309,17 @@ if (MAGMA_ENABLE_CUDA)
6
+ )
7
+ else()
8
+ # No Position Independent Code on Windows. Compiler will complain if you add that flag.
9
+ - target_compile_options(magma_nvcc_flags
10
+ - INTERFACE
11
+ - $<$<COMPILE_LANGUAGE:CUDA>:--compiler-options;${FORTRAN_CONVENTION}>
12
+ - )
13
+ + if(NOT CMAKE_CUDA_COMPILER_ID STREQUAL "Clang")
14
+ + target_compile_options(magma_nvcc_flags
15
+ + INTERFACE
16
+ + $<$<COMPILE_LANGUAGE:CUDA>:--compiler-options;${FORTRAN_CONVENTION}>
17
+ + )
18
+ + else()
19
+ + target_compile_options(magma_nvcc_flags
20
+ + INTERFACE
21
+ + $<$<COMPILE_LANGUAGE:CUDA>:${FORTRAN_CONVENTION}>
22
+ + )
23
+ + endif()
24
+ endif(COMPILER_SUPPORTS_FPIC)
25
+
26
+ set(MAGMA_HAVE_CUDA "1")
27
+ diff --git a/control/magma_internal.h b/control/magma_internal.h
28
+ index 2310659235..c4d0eb8f6b 100644
29
+ --- a/control/magma_internal.h
30
+ +++ b/control/magma_internal.h
31
+ @@ -33,7 +33,7 @@
32
+ // functions where Microsoft fails to provide C99 standard
33
+ // (only with Microsoft, not with nvcc on Windows)
34
+ // in both magma_internal.h and testings.h
35
+ - #ifndef __NVCC__
36
+ + #if !defined(__NVCC__) && !defined(__clang__)
37
+
38
+ #include <float.h>
39
+ #define copysign(x,y) _copysign(x,y)
40
+ @@ -42,7 +42,9 @@
41
+ #define isfinite(x) _finite(x)
42
+ // note _snprintf has slightly different semantics than snprintf
43
+ #define snprintf _snprintf
44
+ -
45
+ + #elif !defined(__NVCC__)
46
+ + // make sure this actually uses the C version and not the C++ overloads
47
+ + #define copysign(x,y) copysign((double)x,(double)y)
48
+ #endif
49
+
50
+ #else
cc-multilingual-main/cc_net/vcpkg/ports/magma/disable-openmp-msvc.patch ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index 828911d05f..a4f5b35ef3 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -103,6 +103,10 @@ endif()
6
+
7
+ # ----------------------------------------
8
+ # locate OpenMP
9
+ +if(MSVC AND CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
10
+ + set(CMAKE_DISBLE_FIND_PACKAGE_OpenMP ON)
11
+ + # MSVC OpenMP is not enough to compile
12
+ +endif()
13
+ find_package( OpenMP )
14
+ if (OPENMP_FOUND)
15
+ message( STATUS "Found OpenMP" )
cc-multilingual-main/cc_net/vcpkg/ports/magma/no-tests.patch ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/CMakeLists.txt b/CMakeLists.txt
2
+ index a4f5b35ef3..eeb0bb0b8f 100644
3
+ --- a/CMakeLists.txt
4
+ +++ b/CMakeLists.txt
5
+ @@ -663,7 +670,7 @@ target_link_libraries( lapacktest
6
+
7
+ # ----------------------------------------
8
+ # compile tester library
9
+ -add_library( tester ${libtest_all} )
10
+ +add_library( tester EXCLUDE_FROM_ALL ${libtest_all} )
11
+ target_link_libraries( tester
12
+ magma
13
+ lapacktest
14
+ @@ -726,11 +726,12 @@ foreach( filename ${testing_all} )
15
+ list( APPEND testing_all_cpp ${filename} )
16
+ endif()
17
+ endforeach()
18
+ +set(testing_all_cpp "")
19
+ foreach( TEST ${testing_all_cpp} )
20
+ string( REGEX REPLACE "\\.(cpp|f90|F90)" "" EXE ${TEST} )
21
+ string( REGEX REPLACE "testing/" "" EXE ${EXE} )
22
+ #message( "${TEST} --> ${EXE}" )
23
+ - add_executable( ${EXE} ${TEST} )
24
+ + add_executable( ${EXE} EXCLUDE_FROM_ALL ${TEST} )
25
+ target_link_libraries( ${EXE} tester lapacktest magma )
26
+ list( APPEND testing ${EXE} )
27
+ endforeach()
28
+ @@ -749,6 +750,7 @@ endif()
29
+
30
+ set( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${SPARSE_TEST_DIR}" )
31
+ cmake_policy( SET CMP0037 OLD)
32
+ +set(sparse_testing_all "")
33
+ foreach( TEST ${sparse_testing_all} )
34
+ string( REGEX REPLACE "\\.(cpp|f90|F90)" "" EXE ${TEST} )
35
+ string( REGEX REPLACE "${SPARSE_TEST_DIR}/" "" EXE ${EXE} )
cc-multilingual-main/cc_net/vcpkg/ports/magma/portfile.cmake ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ set(opts "")
3
+ if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
4
+ set(opts
5
+ -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS:BOOL=ON
6
+ -DCMAKE_CUDA_SEPARABLE_COMPILATION:BOOL=OFF
7
+ )
8
+ endif()
9
+
10
+ vcpkg_download_distfile(
11
+ dist_file
12
+ URLS https://icl.utk.edu/projectsfiles/magma/downloads/magma-${VERSION}.tar.gz
13
+ FILENAME magma-${VERSION}.tar.gz
14
+ SHA512 7ab52ad09f452f7b997da573f74465d5bc8c83392f724747b131a7015b1445c457defdb59ae7a2fd4930e2cdc5bce3c7b99a069f04db1752a5df36ddc6e84987
15
+ )
16
+
17
+ vcpkg_extract_source_archive(
18
+ src_path
19
+ ARCHIVE "${dist_file}"
20
+ PATCHES
21
+ disable-openmp-msvc.patch
22
+ no-tests.patch
23
+ clang-cuda.patch
24
+ )
25
+
26
+ vcpkg_cmake_configure(
27
+ SOURCE_PATH "${src_path}"
28
+ OPTIONS
29
+ -DMAGMA_ENABLE_CUDA=ON
30
+ -DMAGMA_ENABLE_HIP=OFF # HIP is backend and seems additive?!
31
+ -DUSE_FORTRAN=OFF
32
+ ${opts}
33
+ )
34
+
35
+ vcpkg_cmake_install()
36
+
37
+ vcpkg_fixup_pkgconfig()
38
+
39
+ file(READ "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/magma.pc" contents)
40
+ string(REGEX REPLACE "Cflags: [^\n]+" "Cflags: -I\${includedir}" contents "${contents}")
41
+ file(WRITE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/magma.pc" "${contents}")
42
+
43
+ if(NOT VCPKG_BUILD_TYPE)
44
+ file(READ "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/magma.pc" contents)
45
+ string(REGEX REPLACE "Cflags: [^\n]+" "Cflags: -I\${includedir}" contents "${contents}")
46
+ file(WRITE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/magma.pc" "${contents}")
47
+ endif()
48
+
49
+ file(REMOVE_RECURSE
50
+ "${CURRENT_PACKAGES_DIR}/debug/include"
51
+ "${CURRENT_PACKAGES_DIR}/debug/share"
52
+ )
53
+
54
+ vcpkg_install_copyright(FILE_LIST "${src_path}/COPYRIGHT")
cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/portfile.cmake ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # header-only library
2
+ vcpkg_from_github(
3
+ OUT_SOURCE_PATH SOURCE_PATH
4
+ REPO charlesnicholson/nanoprintf
5
+ REF "v${VERSION}"
6
+ SHA512 a82da24fcd176c385c8c2d1666416bcbafc3bf3e1b9e1365c8ffd7a0158485c7af6b0dbf7cd0821a7af55238784cd682a0f22fe37527b91ea3f3eaa702c61c46
7
+ HEAD_REF master
8
+ )
9
+
10
+ file(COPY "${SOURCE_PATH}/nanoprintf.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
11
+
12
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
cc-multilingual-main/cc_net/vcpkg/ports/nanoprintf/vcpkg.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "name": "nanoprintf",
3
+ "version": "0.3.4",
4
+ "description": "A tiny embeddable printf replacement written in C99",
5
+ "homepage": "https://github.com/charlesnicholson/nanoprintf"
6
+ }
cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/FindCLIPPER.cmake ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Distributed under the OSI-approved BSD 3-Clause License.
2
+
3
+ #.rst:
4
+ # FindCLIPPER
5
+ # --------
6
+ #
7
+ # Result Variables
8
+ # ^^^^^^^^^^^^^^^^
9
+ #
10
+ # This module will set the following variables in your project::
11
+ #
12
+ # ``CLIPPER_FOUND``
13
+ # True if CLIPPER found on the local system
14
+ #
15
+ # ``CLIPPER_INCLUDE_DIRS``
16
+ # Location of CLIPPER header files.
17
+ #
18
+ # ``CLIPPER_LIBRARIES``
19
+ # The clipper libraries.
20
+ #
21
+
22
+ include(FindPackageHandleStandardArgs)
23
+ include(SelectLibraryConfigurations)
24
+
25
+ if(NOT CLIPPER_INCLUDE_DIR)
26
+ find_path(CLIPPER_INCLUDE_DIR clipper.hpp
27
+ PATH_SUFFIXES polyclipping)
28
+ endif()
29
+
30
+ if(NOT CLIPPER_LIBRARY)
31
+ find_library(CLIPPER_LIBRARY_RELEASE NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH)
32
+ find_library(CLIPPER_LIBRARY_DEBUG NAMES polyclipping PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH)
33
+ select_library_configurations(CLIPPER)
34
+ endif()
35
+
36
+ mark_as_advanced(CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR)
37
+
38
+ find_package_handle_standard_args(CLIPPER
39
+ REQUIRED_VARS CLIPPER_LIBRARY CLIPPER_INCLUDE_DIR
40
+ )
41
+
42
+ if(CLIPPER_FOUND)
43
+ set(CLIPPER_LIBRARIES ${CLIPPER_LIBRARY})
44
+ set(CLIPPER_INCLUDE_DIRS ${CLIPPER_INCLUDE_DIR})
45
+ endif()
cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/fix_targets.patch ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt
2
+ index f0ed7e8..a5ed444 100644
3
+ --- a/cpp/CMakeLists.txt
4
+ +++ b/cpp/CMakeLists.txt
5
+ @@ -19,3 +19,12 @@ INSTALL (TARGETS polyclipping LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
6
+ INSTALL (FILES "${PCFILE}" DESTINATION "${CMAKE_INSTALL_PKGCONFIGDIR}")
7
+
8
+ SET_TARGET_PROPERTIES(polyclipping PROPERTIES VERSION 22.0.0 SOVERSION 22 )
9
+ +
10
+ +install(TARGETS polyclipping EXPORT polyclippingConfig)
11
+ +
12
+ +install(
13
+ + EXPORT polyclippingConfig
14
+ + NAMESPACE polyclipping::
15
+ + DESTINATION share/polyclipping
16
+ +)
17
+ +target_include_directories(polyclipping PUBLIC $<INSTALL_INTERFACE:include>)
cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/portfile.cmake ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2
+
3
+ vcpkg_from_sourceforge(
4
+ OUT_SOURCE_PATH SOURCE_PATH
5
+ REPO polyclipping
6
+ FILENAME "clipper_ver6.4.2.zip"
7
+ NO_REMOVE_ONE_LEVEL
8
+ SHA512 ffc88818c44a38aa278d5010db6cfd505796f39664919f1e48c7fa9267563f62135868993e88f7246dcd688241d1172878e4a008a390648acb99738452e3e5dd
9
+ PATCHES
10
+ fix_targets.patch
11
+ )
12
+
13
+ vcpkg_cmake_configure(
14
+ SOURCE_PATH "${SOURCE_PATH}/cpp"
15
+ )
16
+
17
+
18
+ vcpkg_cmake_install()
19
+ vcpkg_cmake_config_fixup()
20
+
21
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
22
+ file(RENAME "${CURRENT_PACKAGES_DIR}/debug/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
23
+ endif()
24
+ if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
25
+ file(RENAME "${CURRENT_PACKAGES_DIR}/share/pkgconfig" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
26
+ endif()
27
+ vcpkg_fixup_pkgconfig()
28
+
29
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
30
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
31
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/FindCLIPPER.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clipper")
32
+ file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/clipper")
33
+
34
+ file(INSTALL "${SOURCE_PATH}/License.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
35
+
36
+ vcpkg_fixup_pkgconfig()
cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg-cmake-wrapper.cmake ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ list(REMOVE_ITEM ARGS "NO_MODULE")
2
+ list(REMOVE_ITEM ARGS "CONFIG")
3
+ list(REMOVE_ITEM ARGS "MODULE")
4
+
5
+ set(clipper_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
6
+ list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
7
+
8
+ _find_package(${ARGS})
9
+
10
+ set(CMAKE_MODULE_PATH ${clipper_PREV_MODULE_PATH})
cc-multilingual-main/cc_net/vcpkg/ports/polyclipping/vcpkg.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "polyclipping",
3
+ "version": "6.4.2",
4
+ "port-version": 12,
5
+ "description": "The Clipper library performs clipping and offsetting for both lines and polygons. All four boolean clipping operations are supported - intersection, union, difference and exclusive-or. Polygons can be of any shape including self-intersecting polygons.",
6
+ "homepage": "https://sourceforge.net/projects/polyclipping/",
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/portsmf/portfile.cmake ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ vcpkg_download_distfile(ARCHIVE
2
+ URLS "https://codeberg.org/tenacityteam/portsmf/archive/${VERSION}.tar.gz"
3
+ FILENAME "${VERSION}.tar.gz"
4
+ SHA512 522ef6e92de6497c66d6b9adf2b6b4e419024d26fac421096718b024ea0e183d322d3f0cd9fc357e0ba983371cf313d7a0b93b8b24aff5c9cb1ab61c915725ff
5
+ )
6
+ vcpkg_extract_source_archive(
7
+ SOURCE_PATH
8
+ ARCHIVE "${ARCHIVE}"
9
+
10
+ )
11
+
12
+ vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
13
+ vcpkg_cmake_install()
14
+
15
+ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PortSMF)
16
+ vcpkg_fixup_pkgconfig()
17
+ vcpkg_copy_pdbs()
18
+
19
+ vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license.txt")
20
+ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")