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/ade/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ade/vcpkg.json +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/Fix-constexpr-error-with-vs2019-with-half.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aubio/CMakeLists.txt +130 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aubio/portfile.cmake +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aubio/vcpkg.json +47 -0
- cc-multilingual-main/cc_net/vcpkg/ports/b64/b64_dynamic_config.h +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/b64/b64_static_config.h +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/b64/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/b64/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/blaze/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/blaze/vcpkg.json +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-python/portfile.cmake +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-python/vcpkg.json +131 -0
- cc-multilingual-main/cc_net/vcpkg/ports/camport3/portfile.cmake +73 -0
- cc-multilingual-main/cc_net/vcpkg/ports/camport3/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cppgraphqlgen/portfile.cmake +41 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cppgraphqlgen/vcpkg.json +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/exprtk/copyright +8 -0
- cc-multilingual-main/cc_net/vcpkg/ports/exprtk/portfile.cmake +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/exprtk/vcpkg.json +8 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ftgl/01_disable_doxygen.patch +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ftgl/02_enable-cpp11-std.patch +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ftgl/portfile.cmake +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ftgl/vcpkg.json +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gdcm2/portfile.cmake +1 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gdcm2/vcpkg.json +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/grantlee/portfile.cmake +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/grantlee/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/cmake-project-include.cmake +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/disable-pragma-lib.patch +36 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/fix-dependencies.patch +151 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/no-absolute-paths.patch +10 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/portfile.cmake +155 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/select-plugins.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/static-linkage.patch +39 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/vcpkg.json +42 -0
- cc-multilingual-main/cc_net/vcpkg/ports/graphviz/webp-install.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hps/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lemon/portfile.cmake +3 -0
- cc-multilingual-main/cc_net/vcpkg/ports/lemon/vcpkg.json +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libcopp/fix-x86-windows.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libcopp/portfile.cmake +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libcopp/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/magic-enum/portfile.cmake +27 -0
- cc-multilingual-main/cc_net/vcpkg/ports/magic-enum/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/magic-enum/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/makeid/portfile.cmake +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/makeid/vcpkg.json +7 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mlpack/portfile.cmake +17 -0
cc-multilingual-main/cc_net/vcpkg/ports/ade/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO opencv/ade
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 46f2feee28d732a6940a5a95944f3283bde1b8c8e05466a8ca1c576623c54d1bed875ce2b24a941111d8976cb0c6ba5a4ac8408f042f5765debf1badf7d43348
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS_DEBUG
|
12 |
+
-DCMAKE_DEBUG_POSTFIX=d
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
vcpkg_cmake_config_fixup()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
21 |
+
|
22 |
+
# Handle copyright
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/ade/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ade",
|
3 |
+
"version-string": "0.1.2d",
|
4 |
+
"description": "ADE Framework is a graph construction, manipulation, and processing framework. ADE Framework is suitable for organizing data flow processing and execution.",
|
5 |
+
"dependencies": [
|
6 |
+
{
|
7 |
+
"name": "vcpkg-cmake",
|
8 |
+
"host": true
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake-config",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/arrayfire/Fix-constexpr-error-with-vs2019-with-half.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/backend/common/half.hpp b/src/backend/common/half.hpp
|
2 |
+
index ce06eed..fb25d03 100644
|
3 |
+
--- a/src/backend/common/half.hpp
|
4 |
+
+++ b/src/backend/common/half.hpp
|
5 |
+
@@ -879,15 +879,9 @@ class alignas(2) half {
|
6 |
+
return *this;
|
7 |
+
}
|
8 |
+
|
9 |
+
-#if defined(NVCC) || defined(__CUDACC_RTC__)
|
10 |
+
- AF_CONSTEXPR __DH__ explicit half(__half value) noexcept
|
11 |
+
#ifdef __CUDA_ARCH__
|
12 |
+
- : data_(value) {
|
13 |
+
- }
|
14 |
+
-#else
|
15 |
+
- : data_(*reinterpret_cast<native_half_t*>(&value)) {
|
16 |
+
- }
|
17 |
+
-#endif
|
18 |
+
+ AF_CONSTEXPR __DH__ explicit half(__half value) noexcept : data_(value) {}
|
19 |
+
+
|
20 |
+
AF_CONSTEXPR __DH__ half& operator=(__half value) noexcept {
|
21 |
+
// NOTE Assignment to ushort from __half only works with device code.
|
22 |
+
// using memcpy instead
|
cc-multilingual-main/cc_net/vcpkg/ports/aubio/CMakeLists.txt
ADDED
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(aubio C)
|
3 |
+
|
4 |
+
option(WITH_DEPENDENCIES "Adds extra dependencies" ON)
|
5 |
+
option(BUILD_TOOLS "Build and install tools" ON)
|
6 |
+
|
7 |
+
add_definitions(
|
8 |
+
-DHAVE_STDLIB_H=1
|
9 |
+
-DHAVE_STDIO_H=1
|
10 |
+
-DHAVE_MATH_H=1
|
11 |
+
-DHAVE_STRING_H=1
|
12 |
+
-DHAVE_LIMITS_H=1
|
13 |
+
-DHAVE_STDARG_H=1
|
14 |
+
-DHAVE_ERRNO_H=1
|
15 |
+
-DHAVE_C99_VARARGS_MACROS=1
|
16 |
+
-D_CRT_SECURE_NO_WARNINGS=1
|
17 |
+
)
|
18 |
+
|
19 |
+
if(WITH_DEPENDENCIES)
|
20 |
+
add_definitions(
|
21 |
+
-DHAVE_SNDFILE=1
|
22 |
+
-DHAVE_WAVWRITE=1
|
23 |
+
-DHAVE_WAVREAD=1
|
24 |
+
-DHAVE_LIBAV=1
|
25 |
+
-DHAVE_SWRESAMPLE=1
|
26 |
+
)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
set(TOOLS_INSTALLDIR "bin" CACHE STRING "Target directory for installed tools")
|
30 |
+
|
31 |
+
if(WITH_DEPENDENCIES)
|
32 |
+
find_package(FFMPEG COMPONENTS avcodec avutil avformat swresample REQUIRED)
|
33 |
+
find_package(BZip2 REQUIRED)
|
34 |
+
find_package(LibLZMA REQUIRED)
|
35 |
+
find_package(SndFile REQUIRED)
|
36 |
+
|
37 |
+
include_directories(${LIBLZMA_INCLUDE_DIRS})
|
38 |
+
endif()
|
39 |
+
|
40 |
+
include_directories(src)
|
41 |
+
|
42 |
+
file(GLOB_RECURSE SOURCES src/*.c)
|
43 |
+
|
44 |
+
if(WIN32 AND NOT MINGW)
|
45 |
+
set_source_files_properties(src/io/sink_wavwrite.c PROPERTIES COMPILE_FLAGS /FIWinsock2.h)
|
46 |
+
endif()
|
47 |
+
|
48 |
+
add_library(aubio ${SOURCES})
|
49 |
+
if(WITH_DEPENDENCIES)
|
50 |
+
target_link_libraries(aubio PUBLIC
|
51 |
+
SndFile::sndfile
|
52 |
+
${FFMPEG_LIBRARIES}
|
53 |
+
BZip2::BZip2
|
54 |
+
${LIBLZMA_LIBRARIES}
|
55 |
+
)
|
56 |
+
endif()
|
57 |
+
|
58 |
+
if(WIN32)
|
59 |
+
target_compile_definitions(aubio PRIVATE -DHAVE_WIN_HACKS=1)
|
60 |
+
target_link_libraries(aubio PUBLIC ws2_32)
|
61 |
+
endif()
|
62 |
+
|
63 |
+
if(BUILD_TOOLS AND WITH_DEPENDENCIES)
|
64 |
+
set(EXAMPLE_EXECS aubiomfcc aubionotes aubioonset aubiopitch aubioquiet aubiotrack)
|
65 |
+
foreach(EXAMPLE_EXEC ${EXAMPLE_EXECS})
|
66 |
+
add_executable(${EXAMPLE_EXEC} examples/${EXAMPLE_EXEC}.c examples/utils.c examples/jackio.c)
|
67 |
+
target_link_libraries(${EXAMPLE_EXEC} PRIVATE aubio)
|
68 |
+
if(WIN32)
|
69 |
+
target_compile_definitions(${EXAMPLE_EXEC} PRIVATE -DHAVE_WIN_HACKS=1)
|
70 |
+
target_link_libraries(${EXAMPLE_EXEC} PUBLIC ws2_32)
|
71 |
+
else()
|
72 |
+
target_compile_definitions(${EXAMPLE_EXEC} PRIVATE -DHAVE_UNISTD_H=1)
|
73 |
+
endif()
|
74 |
+
endforeach()
|
75 |
+
# Create and add fake config.h to avoid build errors (file is generated for
|
76 |
+
# cross-platform requirements in waf build-system)
|
77 |
+
file(WRITE "${CMAKE_BINARY_DIR}/config.h" "")
|
78 |
+
include_directories(${CMAKE_BINARY_DIR})
|
79 |
+
|
80 |
+
install(
|
81 |
+
TARGETS ${EXAMPLE_EXECS}
|
82 |
+
RUNTIME DESTINATION ${TOOLS_INSTALLDIR}
|
83 |
+
)
|
84 |
+
endif()
|
85 |
+
|
86 |
+
install(
|
87 |
+
TARGETS aubio EXPORT AubioTargets
|
88 |
+
INCLUDES DESTINATION include
|
89 |
+
RUNTIME DESTINATION bin
|
90 |
+
LIBRARY DESTINATION lib
|
91 |
+
ARCHIVE DESTINATION lib
|
92 |
+
)
|
93 |
+
|
94 |
+
install(EXPORT AubioTargets NAMESPACE Aubio:: DESTINATION share/aubio)
|
95 |
+
|
96 |
+
install(
|
97 |
+
DIRECTORY src/
|
98 |
+
DESTINATION include/aubio
|
99 |
+
FILES_MATCHING
|
100 |
+
PATTERN "*.h"
|
101 |
+
PATTERN "*_priv.h" EXCLUDE
|
102 |
+
PATTERN "config.h" EXCLUDE
|
103 |
+
)
|
104 |
+
|
105 |
+
# Create CMake configuration export file.
|
106 |
+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in "@PACKAGE_INIT@\n")
|
107 |
+
if(WITH_DEPENDENCIES)
|
108 |
+
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in "
|
109 |
+
include(CMakeFindDependencyMacro)
|
110 |
+
find_dependency(FFMPEG COMPONENTS avcodec avutil avformat swresample REQUIRED)
|
111 |
+
find_dependency(BZip2 REQUIRED)
|
112 |
+
find_dependency(LibLZMA REQUIRED)
|
113 |
+
find_dependency(SndFile REQUIRED)
|
114 |
+
")
|
115 |
+
endif()
|
116 |
+
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in "include(\${CMAKE_CURRENT_LIST_DIR}/AubioTargets.cmake)")
|
117 |
+
|
118 |
+
# Install CMake configuration export file.
|
119 |
+
include(CMakePackageConfigHelpers)
|
120 |
+
configure_package_config_file(
|
121 |
+
${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake.in
|
122 |
+
${CMAKE_CURRENT_BINARY_DIR}/AubioConfig.cmake
|
123 |
+
INSTALL_DESTINATION share/aubio
|
124 |
+
)
|
125 |
+
install(
|
126 |
+
FILES
|
127 |
+
${CMAKE_BINARY_DIR}/AubioConfig.cmake
|
128 |
+
DESTINATION
|
129 |
+
share/aubio
|
130 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/aubio/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO aubio/aubio
|
6 |
+
REF 8a05420e5dd8c7b8b2447f82dc919765876511b3
|
7 |
+
SHA512 080775d7b972d31d88671b4a2917e926bc933b7bdc50fc56a4a8e3174b4544fd6fd416c06b064488cea777cbdd4eea63d0b35eca0025f53ab71da0ba8b64824f
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
14 |
+
FEATURES
|
15 |
+
tools WITH_DEPENDENCIES
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS ${FEATURE_OPTIONS}
|
21 |
+
OPTIONS_RELEASE
|
22 |
+
-DTOOLS_INSTALLDIR=tools/aubio
|
23 |
+
-DBUILD_TOOLS=ON
|
24 |
+
OPTIONS_DEBUG
|
25 |
+
-DBUILD_TOOLS=OFF
|
26 |
+
)
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
|
29 |
+
vcpkg_cmake_config_fixup()
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
if("tools" IN_LIST FEATURES)
|
35 |
+
vcpkg_copy_tools(TOOL_NAMES aubiomfcc aubionotes aubioonset aubiopitch aubioquiet aubiotrack
|
36 |
+
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/aubio
|
37 |
+
AUTO_CLEAN)
|
38 |
+
endif()
|
39 |
+
|
40 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/aubio/vcpkg.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "aubio",
|
3 |
+
"version-date": "2022-01-26",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.",
|
6 |
+
"homepage": "https://github.com/aubio/aubio",
|
7 |
+
"license": "GPL-3.0-or-later",
|
8 |
+
"supports": "!xbox",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"default-features": [
|
20 |
+
"tools"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"tools": {
|
24 |
+
"description": "Build tools and add extra dependencies",
|
25 |
+
"dependencies": [
|
26 |
+
"bzip2",
|
27 |
+
{
|
28 |
+
"name": "ffmpeg",
|
29 |
+
"default-features": false,
|
30 |
+
"features": [
|
31 |
+
"avcodec",
|
32 |
+
"avformat",
|
33 |
+
"swresample"
|
34 |
+
]
|
35 |
+
},
|
36 |
+
"libflac",
|
37 |
+
"liblzma",
|
38 |
+
"libogg",
|
39 |
+
{
|
40 |
+
"name": "libsndfile",
|
41 |
+
"default-features": false
|
42 |
+
},
|
43 |
+
"libvorbis"
|
44 |
+
]
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/b64/b64_dynamic_config.h
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef B64_CONFIG_H
|
2 |
+
#define B64_CONFIG_H
|
3 |
+
|
4 |
+
#ifdef _WIN32
|
5 |
+
#ifdef LIBB64_EXPORTS
|
6 |
+
#define LIBB64 __declspec(dllexport)
|
7 |
+
#else
|
8 |
+
#define LIBB64 __declspec(dllimport)
|
9 |
+
#endif
|
10 |
+
#else
|
11 |
+
#define LIBB64
|
12 |
+
#endif
|
13 |
+
|
14 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/b64/b64_static_config.h
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#ifndef B64_CONFIG_H
|
2 |
+
#define B64_CONFIG_H
|
3 |
+
|
4 |
+
#define LIBB64
|
5 |
+
|
6 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/b64/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO libb64/libb64
|
4 |
+
REF v2.0.0.1
|
5 |
+
SHA512 72c2fd4c81575b505f4851cd3820b6a2d8e78cd031a1ed138ffe5667ca711558f43b515428971966f7a73ace7c9951f1f0b39c362a59fe4691958875775cce23
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES "windows-fix.patch"
|
8 |
+
)
|
9 |
+
|
10 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/b64_dynamic_config.h" DESTINATION "${SOURCE_PATH}")
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/b64_static_config.h" DESTINATION "${SOURCE_PATH}")
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
13 |
+
|
14 |
+
vcpkg_cmake_configure(
|
15 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
21 |
+
|
22 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-b64)
|
23 |
+
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
|
27 |
+
# handle copyright
|
28 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/b64/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
|
3 |
+
"name": "b64",
|
4 |
+
"version": "2.0.0.1",
|
5 |
+
"port-version": 2,
|
6 |
+
"description": "libb64 is a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format",
|
7 |
+
"license": null,
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/blaze/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_bitbucket(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO blaze-lib/blaze
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 9786628159991f547902ceb44a159f0ba84d08be16ccc45bfb9aad3cfbf16eaede4ea43d2d4981d420a8a387a07721b113754f6038a6db2d9c7ed2ea967b5361
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
FEATURES
|
11 |
+
lapack USE_LAPACK
|
12 |
+
openmp BLAZE_SHARED_MEMORY_PARALLELIZATION
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS
|
18 |
+
${FEATURE_OPTIONS}
|
19 |
+
-DBLAZE_SMP_THREADS=OpenMP
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/blaze/cmake)
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
27 |
+
|
28 |
+
# Handle copyright
|
29 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/blaze/vcpkg.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "blaze",
|
3 |
+
"version": "3.8.2",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Blaze is an open-source, high-performance C++ math library for dense and sparse arithmetic.",
|
6 |
+
"homepage": "https://bitbucket.org/blaze-lib/blaze",
|
7 |
+
"license": "BSD-3-Clause",
|
8 |
+
"dependencies": [
|
9 |
+
"boost-exception",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"default-features": [
|
20 |
+
"lapack",
|
21 |
+
"openmp"
|
22 |
+
],
|
23 |
+
"features": {
|
24 |
+
"lapack": {
|
25 |
+
"description": "LAPACK support",
|
26 |
+
"dependencies": [
|
27 |
+
"lapack"
|
28 |
+
]
|
29 |
+
},
|
30 |
+
"openmp": {
|
31 |
+
"description": "OpenMP support"
|
32 |
+
}
|
33 |
+
}
|
34 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-python/portfile.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/python
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 c91f53a9d5a3aee649bb2882bdf1603e345a19f2ee45e9809aabe37cd3e760b30f26f397ede2c36bc7f33c3d10e347eed7e5d08e714ac93a6afcabccf993d507
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
12 |
+
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
|
13 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
14 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-python/vcpkg.json
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-python",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost python module",
|
6 |
+
"homepage": "https://github.com/boostorg/python",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"supports": "!uwp & !emscripten & !ios & !android",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "boost-align",
|
12 |
+
"version>=": "1.84.0"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "boost-bind",
|
16 |
+
"version>=": "1.84.0"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "boost-build",
|
20 |
+
"host": true,
|
21 |
+
"version>=": "1.84.0"
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"name": "boost-config",
|
25 |
+
"version>=": "1.84.0"
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"name": "boost-conversion",
|
29 |
+
"version>=": "1.84.0"
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"name": "boost-core",
|
33 |
+
"version>=": "1.84.0"
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"name": "boost-detail",
|
37 |
+
"version>=": "1.84.0"
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"name": "boost-foreach",
|
41 |
+
"version>=": "1.84.0"
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "boost-function",
|
45 |
+
"version>=": "1.84.0"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "boost-graph",
|
49 |
+
"version>=": "1.84.0"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"name": "boost-integer",
|
53 |
+
"version>=": "1.84.0"
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"name": "boost-iterator",
|
57 |
+
"version>=": "1.84.0"
|
58 |
+
},
|
59 |
+
{
|
60 |
+
"name": "boost-lexical-cast",
|
61 |
+
"version>=": "1.84.0"
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"name": "boost-modular-build-helper",
|
65 |
+
"host": true,
|
66 |
+
"version>=": "1.84.0"
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"name": "boost-mpl",
|
70 |
+
"version>=": "1.84.0"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"name": "boost-numeric-conversion",
|
74 |
+
"version>=": "1.84.0"
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"name": "boost-preprocessor",
|
78 |
+
"version>=": "1.84.0"
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"name": "boost-property-map",
|
82 |
+
"version>=": "1.84.0"
|
83 |
+
},
|
84 |
+
{
|
85 |
+
"name": "boost-smart-ptr",
|
86 |
+
"version>=": "1.84.0"
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"name": "boost-static-assert",
|
90 |
+
"version>=": "1.84.0"
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"name": "boost-tuple",
|
94 |
+
"version>=": "1.84.0"
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"name": "boost-type-traits",
|
98 |
+
"version>=": "1.84.0"
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"name": "boost-utility",
|
102 |
+
"version>=": "1.84.0"
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"name": "boost-vcpkg-helpers",
|
106 |
+
"version>=": "1.84.0"
|
107 |
+
},
|
108 |
+
{
|
109 |
+
"name": "vcpkg-cmake",
|
110 |
+
"host": true
|
111 |
+
}
|
112 |
+
],
|
113 |
+
"default-features": [
|
114 |
+
"python3"
|
115 |
+
],
|
116 |
+
"features": {
|
117 |
+
"python2": {
|
118 |
+
"description": "Build with Python2 support",
|
119 |
+
"supports": "!(arm & windows)",
|
120 |
+
"dependencies": [
|
121 |
+
"python2"
|
122 |
+
]
|
123 |
+
},
|
124 |
+
"python3": {
|
125 |
+
"description": "Build with Python3 support",
|
126 |
+
"dependencies": [
|
127 |
+
"python3"
|
128 |
+
]
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/camport3/portfile.cmake
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO percipioxyz/camport3
|
4 |
+
REF v1.6.2
|
5 |
+
SHA512 e3b1fadb13b826e86aa174215430f5e4175aafd9a967f2401beb3768dcc489a8ce5a74c151d615bd3e34b837c81e201db55b290ef258612381141b0b94212fd1
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include")
|
10 |
+
file(COPY
|
11 |
+
"${SOURCE_PATH}/include/TYApi.h"
|
12 |
+
"${SOURCE_PATH}/include/TYCoordinateMapper.h"
|
13 |
+
"${SOURCE_PATH}/include/TYImageProc.h"
|
14 |
+
"${SOURCE_PATH}/include/TyIsp.h"
|
15 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
16 |
+
|
17 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
18 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
19 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib")
|
20 |
+
file(COPY
|
21 |
+
"${SOURCE_PATH}/lib/win/hostapp/${VCPKG_TARGET_ARCHITECTURE}/tycam.lib"
|
22 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/lib"
|
23 |
+
)
|
24 |
+
file(COPY
|
25 |
+
"${SOURCE_PATH}/lib/win/hostapp/${VCPKG_TARGET_ARCHITECTURE}/tycam.dll"
|
26 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/bin"
|
27 |
+
)
|
28 |
+
endif()
|
29 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
30 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib")
|
31 |
+
file(COPY
|
32 |
+
"${SOURCE_PATH}/lib/win/hostapp/${VCPKG_TARGET_ARCHITECTURE}/tycam.lib"
|
33 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib"
|
34 |
+
)
|
35 |
+
file(COPY
|
36 |
+
"${SOURCE_PATH}/lib/win/hostapp/${VCPKG_TARGET_ARCHITECTURE}/tycam.dll"
|
37 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin"
|
38 |
+
)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
elseif(VCPKG_TARGET_IS_LINUX)
|
42 |
+
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
43 |
+
set (CAMPORT3_ARCH "Aarch64")
|
44 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
45 |
+
set (CAMPORT3_ARCH "armv7hf")
|
46 |
+
elseif (VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
47 |
+
set (CAMPORT3_ARCH "i686")
|
48 |
+
else()
|
49 |
+
set (CAMPORT3_ARCH ${VCPKG_TARGET_ARCHITECTURE})
|
50 |
+
endif()
|
51 |
+
|
52 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
53 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib")
|
54 |
+
file(COPY
|
55 |
+
"${SOURCE_PATH}/lib/linux/lib_${CAMPORT3_ARCH}/libtycam.so"
|
56 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/lib"
|
57 |
+
)
|
58 |
+
endif()
|
59 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
60 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib")
|
61 |
+
file(COPY
|
62 |
+
"${SOURCE_PATH}/lib/linux/lib_${CAMPORT3_ARCH}/libtycam.so"
|
63 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib"
|
64 |
+
)
|
65 |
+
endif()
|
66 |
+
|
67 |
+
endif()
|
68 |
+
|
69 |
+
file(INSTALL
|
70 |
+
"${SOURCE_PATH}/LICENSE"
|
71 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
72 |
+
RENAME copyright
|
73 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/camport3/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "camport3",
|
3 |
+
"version": "1.6.2",
|
4 |
+
"description": "percipio.xyz cameras SDK",
|
5 |
+
"homepage": "https://github.com/percipioxyz/camport3",
|
6 |
+
"supports": "((windows & !uwp & !arm & !arm64 & !static) | linux) & !wasm32"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cppgraphqlgen/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO microsoft/cppgraphqlgen
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 8079b2690ef4fba491e96ef2ed3da61d0c0b7bee3f61fa6d1fb95c771f1a8220a7b15b489b21bf9b1627e8616f95c65b43b8f63ee93cb0193edac4cb54307b3a
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(
|
10 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
11 |
+
FEATURES
|
12 |
+
rapidjson GRAPHQL_USE_RAPIDJSON
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
OPTIONS
|
18 |
+
-DGRAPHQL_BUILD_TESTS=OFF
|
19 |
+
-DGRAPHQL_UPDATE_VERSION=OFF
|
20 |
+
-DGRAPHQL_UPDATE_SAMPLES=OFF
|
21 |
+
-DGRAPHQL_INSTALL_CONFIGURATIONS=Release
|
22 |
+
${FEATURE_OPTIONS}
|
23 |
+
OPTIONS_RELEASE
|
24 |
+
-DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/share
|
25 |
+
-DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/tools
|
26 |
+
OPTIONS_DEBUG
|
27 |
+
-DGRAPHQL_INSTALL_CMAKE_DIR=${CURRENT_PACKAGES_DIR}/debug/share
|
28 |
+
-DGRAPHQL_INSTALL_TOOLS_DIR=${CURRENT_PACKAGES_DIR}/debug/tools
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_cmake_install()
|
32 |
+
|
33 |
+
vcpkg_cmake_config_fixup()
|
34 |
+
|
35 |
+
vcpkg_copy_tools(
|
36 |
+
TOOL_NAMES schemagen clientgen
|
37 |
+
SEARCH_DIR ${CURRENT_PACKAGES_DIR}/tools/cppgraphqlgen)
|
38 |
+
|
39 |
+
vcpkg_copy_pdbs()
|
40 |
+
|
41 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/cppgraphqlgen/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cppgraphqlgen",
|
3 |
+
"version": "4.5.5",
|
4 |
+
"description": "C++ GraphQL schema service generator",
|
5 |
+
"homepage": "https://github.com/microsoft/cppgraphqlgen",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-program-options",
|
9 |
+
"pegtl",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"default-features": [
|
20 |
+
"rapidjson"
|
21 |
+
],
|
22 |
+
"features": {
|
23 |
+
"rapidjson": {
|
24 |
+
"description": "Build the graphqljson library with RapidJSON.",
|
25 |
+
"dependencies": [
|
26 |
+
"rapidjson"
|
27 |
+
]
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/exprtk/copyright
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright 1999-2022 Arash Partow
|
2 |
+
https://www.partow.net/programming/exprtk/index.html
|
3 |
+
|
4 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5 |
+
|
6 |
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
7 |
+
|
8 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
cc-multilingual-main/cc_net/vcpkg/ports/exprtk/portfile.cmake
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO ArashPartow/exprtk
|
4 |
+
REF 806C519C91FD08BA4FA19380DBF3F6E42DE9E2D1
|
5 |
+
SHA512 A323CCAF161FD0087FD8208D1B24C2A3FD422F8875E29B22AE70E6DD2F10F396F6BF1AD36D3FFDC10D32314AE8F83749974301A349BE0F27733292BCF5193640
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY ${SOURCE_PATH}/exprtk.hpp DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
10 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/copyright DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
cc-multilingual-main/cc_net/vcpkg/ports/exprtk/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "exprtk",
|
3 |
+
"version-date": "2022-01-01",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Simple to use, easy to integrate and extremely efficient run-time C++ mathematical expression parser and evaluation engine.",
|
6 |
+
"homepage": "https://www.partow.net/programming/exprtk/index.html",
|
7 |
+
"license": "MIT"
|
8 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/ftgl/01_disable_doxygen.patch
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 303fcae..718ae88 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -35,15 +35,16 @@ ENDIF(BUILD_SHARED_LIBS)
|
6 |
+
|
7 |
+
ADD_CUSTOM_TARGET(doc)
|
8 |
+
|
9 |
+
-FIND_PACKAGE(Doxygen)
|
10 |
+
-IF(DOXYGEN_FOUND)
|
11 |
+
- ADD_CUSTOM_TARGET(doxygen
|
12 |
+
- ${DOXYGEN_EXECUTABLE}
|
13 |
+
- WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
14 |
+
- COMMENT "Doxygen ...")
|
15 |
+
- ADD_DEPENDENCIES(doc doxygen)
|
16 |
+
-
|
17 |
+
-ENDIF(DOXYGEN_FOUND)
|
18 |
+
+IF (WIN32) # doxygen only have windows package in vcpkg now.
|
19 |
+
+ FIND_PACKAGE(Doxygen)
|
20 |
+
+ IF(DOXYGEN_FOUND)
|
21 |
+
+ ADD_CUSTOM_TARGET(doxygen
|
22 |
+
+ ${DOXYGEN_EXECUTABLE}
|
23 |
+
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
24 |
+
+ COMMENT "Doxygen ...")
|
25 |
+
+ ADD_DEPENDENCIES(doc doxygen)
|
26 |
+
+ ENDIF(DOXYGEN_FOUND)
|
27 |
+
+ENDIF()
|
28 |
+
|
29 |
+
SUBDIRS(src)
|
30 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/ftgl/02_enable-cpp11-std.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 718ae88..e53e0da 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,6 +1,9 @@
|
6 |
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
7 |
+
|
8 |
+
PROJECT(FTGL)
|
9 |
+
+set(CMAKE_CXX_STANDARD 11)
|
10 |
+
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
11 |
+
+
|
12 |
+
SET(CMAKE_MODULE_PATH ${FTGL_SOURCE_DIR})
|
13 |
+
|
14 |
+
SET(VERSION_SERIES 2)
|
cc-multilingual-main/cc_net/vcpkg/ports/ftgl/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
# doxygen only have windows package in vcpkg now.
|
3 |
+
vcpkg_find_acquire_program(DOXYGEN)
|
4 |
+
endif()
|
5 |
+
|
6 |
+
vcpkg_from_github(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO frankheckenbach/ftgl
|
9 |
+
REF 36e8cd683492456def3b6a54c6dcb56cd6ee4bb4 #commmit-data 2022-05-18
|
10 |
+
SHA512 b357cf18890664d437f41d7bf18f39c894743e76e2e0b2296254b27e5675866956473e7b78139d0e6cdd7e8310bf8d2943ba0ddeea494ee67857d6083c490dc2
|
11 |
+
HEAD_REF master
|
12 |
+
PATCHES
|
13 |
+
01_disable_doxygen.patch
|
14 |
+
02_enable-cpp11-std.patch
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
23 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
24 |
+
else ()
|
25 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake)
|
26 |
+
endif()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
29 |
+
|
30 |
+
vcpkg_fixup_pkgconfig()
|
31 |
+
|
32 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/ftgl/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ftgl",
|
3 |
+
"version-date": "2022-05-18",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": [
|
6 |
+
"FTGL is a free open source library to enable developers to use arbitrary fonts in their OpenGL (www.opengl.org) applications.",
|
7 |
+
"Unlike other OpenGL font libraries FTGL uses standard font file formats so doesn't need a preprocessing step to convert the high quality font data into a lesser quality, proprietary format.",
|
8 |
+
"FTGL uses the Freetype (www.freetype.org) font library to open and 'decode' the fonts. It then takes that output and stores it in a format most efficient for OpenGL rendering."
|
9 |
+
],
|
10 |
+
"homepage": "https://github.com/frankheckenbach/ftgl",
|
11 |
+
"license": "MIT",
|
12 |
+
"dependencies": [
|
13 |
+
"freetype",
|
14 |
+
"opengl",
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake",
|
17 |
+
"host": true
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake-config",
|
21 |
+
"host": true
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/gdcm2/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
cc-multilingual-main/cc_net/vcpkg/ports/gdcm2/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gdcm2",
|
3 |
+
"version-string": "deprecated",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "This port was renamed to gdcm. The gdcm2 name is deprecated.",
|
6 |
+
"homepage": "https://github.com/malaterre/GDCM",
|
7 |
+
"dependencies": [
|
8 |
+
"gdcm"
|
9 |
+
]
|
10 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/grantlee/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO steveire/grantlee
|
6 |
+
REF v5.3.1
|
7 |
+
SHA512 dc7192fe0553954fffc3e2c584e4fdd80fc1f22d25846cacc5f2dcd1db2673ca62464c8492a4ed3bfc9dfc3e62ef13322809dd29bd56fa4a3a153a8d373ddde5
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure (
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DGRANTLEE_BUILD_WITH_QT6=ON
|
15 |
+
-DBUILD_TESTS=OFF
|
16 |
+
)
|
17 |
+
|
18 |
+
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" [[set( PLUGIN_INSTALL_DIR ${LIB_INSTALL_DIR}/grantlee/${Grantlee5_MAJOR_MINOR_VERSION_STRING} )]] [[set( PLUGIN_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/bin)]])
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Grantlee5)
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
26 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/grantlee/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "grantlee",
|
3 |
+
"version": "5.3.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Libraries for text templating with Qt",
|
6 |
+
"homepage": "https://github.com/steveire/grantlee",
|
7 |
+
"license": "LGPL-2.1-or-later",
|
8 |
+
"supports": "!staticcrt & !xbox",
|
9 |
+
"dependencies": [
|
10 |
+
"qtdeclarative",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/cmake-project-include.cmake
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(MSVC)
|
2 |
+
find_package(unofficial-getopt-win32 CONFIG REQUIRED)
|
3 |
+
set(GETOPT_LIBRARY "unofficial::getopt-win32::getopt" CACHE INTERNAL "vcpkg")
|
4 |
+
set(GETOPT_RUNTIME_LIBRARY "unused" CACHE INTERNAL "vcpkg")
|
5 |
+
endif()
|
6 |
+
|
7 |
+
if(MINGW AND BUILD_SHARED_LIBS AND NOT CMAKE_CROSSCOMPILING)
|
8 |
+
# Prevent running `configure_plugins.cmake`.
|
9 |
+
set(CMAKE_CROSSCOMPILING 1)
|
10 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/disable-pragma-lib.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmd/gvedit/main.cpp b/cmd/gvedit/main.cpp
|
2 |
+
index 98a2a4a..e810c36 100644
|
3 |
+
--- a/cmd/gvedit/main.cpp
|
4 |
+
+++ b/cmd/gvedit/main.cpp
|
5 |
+
@@ -30,6 +30,7 @@
|
6 |
+
|
7 |
+
|
8 |
+
#ifdef _MSC_VER
|
9 |
+
+#elif 0
|
10 |
+
#pragma comment( lib, "cgraph.lib" )
|
11 |
+
#pragma comment( lib, "gvc.lib" )
|
12 |
+
#endif
|
13 |
+
diff --git a/plugin/gdk/gvloadimage_gdk.c b/plugin/gdk/gvloadimage_gdk.c
|
14 |
+
index 84c6a6a..0d3ec64 100644
|
15 |
+
--- a/plugin/gdk/gvloadimage_gdk.c
|
16 |
+
+++ b/plugin/gdk/gvloadimage_gdk.c
|
17 |
+
@@ -22,6 +22,7 @@
|
18 |
+
#include <gdk/gdkcairo.h>
|
19 |
+
|
20 |
+
#ifdef _MSC_VER //*dependencies
|
21 |
+
+#elif 0
|
22 |
+
#pragma comment( lib, "gvc.lib" )
|
23 |
+
#pragma comment( lib, "glib-2.0.lib" )
|
24 |
+
#pragma comment( lib, "cairo.lib" )
|
25 |
+
diff --git a/plugin/webp/gvloadimage_webp.c b/plugin/webp/gvloadimage_webp.c
|
26 |
+
index c983556..446d43f 100644
|
27 |
+
--- a/plugin/webp/gvloadimage_webp.c
|
28 |
+
+++ b/plugin/webp/gvloadimage_webp.c
|
29 |
+
@@ -24,6 +24,7 @@
|
30 |
+
#include <webp/decode.h>
|
31 |
+
|
32 |
+
#ifdef _MSC_VER //*dependencies
|
33 |
+
+#elif 0
|
34 |
+
#pragma comment( lib, "gvc.lib" )
|
35 |
+
#pragma comment( lib, "glib-2.0.lib" )
|
36 |
+
#pragma comment( lib, "pango-1.0.lib" )
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/fix-dependencies.patch
ADDED
@@ -0,0 +1,151 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 12fd424..11371df 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -185,12 +185,14 @@ find_package(PkgConfig)
|
6 |
+
if(PkgConfig_FOUND)
|
7 |
+
pkg_check_modules(GDK gdk-2.0)
|
8 |
+
pkg_check_modules(GDK_PIXBUF gdk-pixbuf-2.0)
|
9 |
+
- pkg_check_modules(LASI lasi)
|
10 |
+
- pkg_check_modules(POPPLER poppler-glib)
|
11 |
+
+ set(LASI_FOUND 0)
|
12 |
+
+ set(POPPLER_FOUND 0)
|
13 |
+
pkg_check_modules(RSVG librsvg-2.0)
|
14 |
+
pkg_check_modules(WEBP libwebp)
|
15 |
+
+ if(UNIX)
|
16 |
+
pkg_check_modules(X11 x11)
|
17 |
+
pkg_check_modules(XRENDER xrender)
|
18 |
+
+ endif()
|
19 |
+
else()
|
20 |
+
set(GDK_FOUND 0)
|
21 |
+
set(GDK_PIXBUF_FOUND 0)
|
22 |
+
diff --git a/cmake/FindCAIRO.cmake b/cmake/FindCAIRO.cmake
|
23 |
+
index 65bb42f..47949f6 100644
|
24 |
+
--- a/cmake/FindCAIRO.cmake
|
25 |
+
+++ b/cmake/FindCAIRO.cmake
|
26 |
+
@@ -1,6 +1,6 @@
|
27 |
+
include(FindPackageHandleStandardArgs)
|
28 |
+
|
29 |
+
-if(WIN32)
|
30 |
+
+if(0)
|
31 |
+
find_path(
|
32 |
+
CAIRO_INCLUDE_DIR cairo.h
|
33 |
+
PATH_SUFFIXES cairo
|
34 |
+
@@ -39,7 +39,9 @@ if(WIN32)
|
35 |
+
)
|
36 |
+
else()
|
37 |
+
find_package(PkgConfig)
|
38 |
+
- pkg_check_modules(CAIRO cairo)
|
39 |
+
+ pkg_check_modules(CAIRO cairo IMPORTED_TARGET)
|
40 |
+
+ set(CAIRO_LIBRARIES PkgConfig::CAIRO)
|
41 |
+
+ set(CAIRO_LINK_LIBRARIES PkgConfig::CAIRO)
|
42 |
+
|
43 |
+
find_package_handle_standard_args(CAIRO DEFAULT_MSG
|
44 |
+
CAIRO_INCLUDE_DIRS
|
45 |
+
diff --git a/cmake/FindGD.cmake b/cmake/FindGD.cmake
|
46 |
+
index 0deb5e6..ef42889 100644
|
47 |
+
--- a/cmake/FindGD.cmake
|
48 |
+
+++ b/cmake/FindGD.cmake
|
49 |
+
@@ -1,3 +1,11 @@
|
50 |
+
+find_package(PkgConfig)
|
51 |
+
+pkg_check_modules(GD gdlib IMPORTED_TARGET)
|
52 |
+
+set(GD_LIBRARIES PkgConfig::GD)
|
53 |
+
+foreach(item IN ITEMS FONTCONFIG FREETYPE GIF JPEG PNG)
|
54 |
+
+ set(HAVE_GD_${item} 1)
|
55 |
+
+endforeach()
|
56 |
+
+return()
|
57 |
+
+
|
58 |
+
find_path(GD_INCLUDE_DIR gd.h)
|
59 |
+
find_library(GD_LIBRARY NAMES gd libgd)
|
60 |
+
find_program(GD_RUNTIME_LIBRARY libgd.dll)
|
61 |
+
diff --git a/cmake/FindGTS.cmake b/cmake/FindGTS.cmake
|
62 |
+
index 8e544e9..88dd849 100644
|
63 |
+
--- a/cmake/FindGTS.cmake
|
64 |
+
+++ b/cmake/FindGTS.cmake
|
65 |
+
@@ -1,5 +1,5 @@
|
66 |
+
include(FindPackageHandleStandardArgs)
|
67 |
+
-if(WIN32)
|
68 |
+
+if(0)
|
69 |
+
find_path(GTS_INCLUDE_DIR gts.h)
|
70 |
+
find_path(GLIB_INCLUDE_DIR glib.h PATH_SUFFIXES glib-2.0)
|
71 |
+
find_path(GLIBCONFIG_INCLUDE_DIR glibconfig.h
|
72 |
+
@@ -40,7 +40,8 @@ if(WIN32)
|
73 |
+
)
|
74 |
+
else()
|
75 |
+
find_package(PkgConfig)
|
76 |
+
- pkg_check_modules(GTS gts)
|
77 |
+
+ pkg_check_modules(GTS gts IMPORTED_TARGET)
|
78 |
+
+ set(GTS_LINK_LIBRARIES PkgConfig::GTS)
|
79 |
+
|
80 |
+
find_package_handle_standard_args(GTS DEFAULT_MSG
|
81 |
+
GTS_INCLUDE_DIRS
|
82 |
+
diff --git a/cmake/FindLTDL.cmake b/cmake/FindLTDL.cmake
|
83 |
+
index e955b74..046e9e8 100644
|
84 |
+
--- a/cmake/FindLTDL.cmake
|
85 |
+
+++ b/cmake/FindLTDL.cmake
|
86 |
+
@@ -17,4 +17,7 @@ mark_as_advanced(LTDL_INCLUDE_DIR LTDL_LIBRARY)
|
87 |
+
set(LTDL_INCLUDE_DIRS ${LTDL_INCLUDE_DIR})
|
88 |
+
if(NOT WIN32 OR MINGW)
|
89 |
+
set(LTDL_LIBRARIES ${LTDL_LIBRARY})
|
90 |
+
+ if(CMAKE_DL_LIBS AND NOT BUILD_SHARED_LIBS)
|
91 |
+
+ set(LTDL_LIBRARIES "${LTDL_LIBRARIES};${CMAKE_DL_LIBS}")
|
92 |
+
+ endif()
|
93 |
+
endif()
|
94 |
+
diff --git a/cmake/FindPANGOCAIRO.cmake b/cmake/FindPANGOCAIRO.cmake
|
95 |
+
index b92e5be..01c4cc7 100644
|
96 |
+
--- a/cmake/FindPANGOCAIRO.cmake
|
97 |
+
+++ b/cmake/FindPANGOCAIRO.cmake
|
98 |
+
@@ -1,6 +1,6 @@
|
99 |
+
include(FindPackageHandleStandardArgs)
|
100 |
+
|
101 |
+
-if(WIN32)
|
102 |
+
+if(0)
|
103 |
+
find_path(PANGOCAIRO_INCLUDE_DIR pango/pangocairo.h PATH_SUFFIXES pango-1.0)
|
104 |
+
find_path(GLIB_INCLUDE_DIR glib.h PATH_SUFFIXES glib-2.0)
|
105 |
+
find_path(GLIBCONFIG_INCLUDE_DIR glibconfig.h
|
106 |
+
@@ -78,7 +78,9 @@ if(WIN32)
|
107 |
+
)
|
108 |
+
else()
|
109 |
+
find_package(PkgConfig)
|
110 |
+
- pkg_check_modules(PANGOCAIRO pangocairo)
|
111 |
+
+ pkg_check_modules(PANGOCAIRO pangocairo IMPORTED_TARGET)
|
112 |
+
+ set(PANGOCAIRO_LIBRARIES PkgConfig::PANGOCAIRO)
|
113 |
+
+ set(PANGOCAIRO_LINK_LIBRARIES PkgConfig::PANGOCAIRO) # https://gitlab.kitware.com/cmake/cmake/-/issues/16154
|
114 |
+
|
115 |
+
find_package_handle_standard_args(PANGOCAIRO DEFAULT_MSG
|
116 |
+
PANGOCAIRO_INCLUDE_DIRS
|
117 |
+
diff --git a/cmd/dot/CMakeLists.txt b/cmd/dot/CMakeLists.txt
|
118 |
+
index d2ea435..3b068b0 100644
|
119 |
+
--- a/cmd/dot/CMakeLists.txt
|
120 |
+
+++ b/cmd/dot/CMakeLists.txt
|
121 |
+
@@ -146,7 +146,6 @@ endif()
|
122 |
+
|
123 |
+
find_package(PkgConfig)
|
124 |
+
if(PkgConfig_FOUND)
|
125 |
+
- pkg_check_modules(GTS gts)
|
126 |
+
if(GTS_FOUND)
|
127 |
+
target_include_directories(dot SYSTEM PRIVATE ${GTS_INCLUDE_DIRS})
|
128 |
+
target_link_libraries(dot PRIVATE ${GTS_LINK_LIBRARIES})
|
129 |
+
@@ -223,7 +222,7 @@ if(WEBP_FOUND)
|
130 |
+
endif()
|
131 |
+
|
132 |
+
find_library(SOCKET socket)
|
133 |
+
-if(SOCKET)
|
134 |
+
+if(0)
|
135 |
+
target_link_libraries(dot PRIVATE ${SOCKET})
|
136 |
+
endif()
|
137 |
+
|
138 |
+
diff --git a/lib/cdt/CMakeLists.txt b/lib/cdt/CMakeLists.txt
|
139 |
+
index 4057b57..bf1a913 100644
|
140 |
+
--- a/lib/cdt/CMakeLists.txt
|
141 |
+
+++ b/lib/cdt/CMakeLists.txt
|
142 |
+
@@ -68,3 +68,9 @@ set_target_properties(cdt PROPERTIES
|
143 |
+
VERSION 5.0.0
|
144 |
+
SOVERSION 5
|
145 |
+
)
|
146 |
+
+
|
147 |
+
+set(THREADS_PREFER_PTHREAD_FLAG ON)
|
148 |
+
+find_package(Threads)
|
149 |
+
+if(TARGET Threads::Threads)
|
150 |
+
+ target_link_libraries(cdt Threads::Threads)
|
151 |
+
+endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/no-absolute-paths.patch
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/lib/gvc/CMakeLists.txt b/lib/gvc/CMakeLists.txt
|
2 |
+
index b437bde..04fe8e8 100644
|
3 |
+
--- a/lib/gvc/CMakeLists.txt
|
4 |
+
+++ b/lib/gvc/CMakeLists.txt
|
5 |
+
@@ -1,4 +1,4 @@
|
6 |
+
-add_definitions(-DGVC_EXPORTS -DGVLIBDIR="${LIBRARY_INSTALL_DIR}/graphviz")
|
7 |
+
+add_definitions(-DGVC_EXPORTS -DGVLIBDIR="")
|
8 |
+
|
9 |
+
add_library(gvc
|
10 |
+
# Header files
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/portfile.cmake
ADDED
@@ -0,0 +1,155 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled) # for plugins
|
2 |
+
set(VCPKG_POLICY_DLLS_WITHOUT_EXPORTS enabled) # kitty and vt plugin not ready yet?
|
3 |
+
|
4 |
+
vcpkg_from_gitlab(
|
5 |
+
GITLAB_URL https://gitlab.com
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO graphviz/graphviz
|
8 |
+
REF "${VERSION}"
|
9 |
+
SHA512 6b0cffaf4bde7df260894b1b9d74e8a1d5aec11736511a86d99bc369e3f8db99f7050ae917cf1a066cc7d87695a57ef5b9c19521d211fee48c8a0c41ad0f4aac
|
10 |
+
HEAD_REF main
|
11 |
+
PATCHES
|
12 |
+
disable-pragma-lib.patch
|
13 |
+
fix-dependencies.patch
|
14 |
+
no-absolute-paths.patch
|
15 |
+
select-plugins.patch
|
16 |
+
static-linkage.patch
|
17 |
+
webp-install.patch
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_list(SET OPTIONS)
|
21 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
22 |
+
vcpkg_download_distfile(
|
23 |
+
LTDL_H_PATH
|
24 |
+
URLS "https://gitlab.com/graphviz/graphviz-windows-dependencies/-/raw/141d3a21be904fa8dc2ae3ed01d36684db07a35d/x64/include/ltdl.h"
|
25 |
+
FILENAME graphviz-ltdl-141d3a21.h
|
26 |
+
SHA512 f2d20e849e35060536265f47014c40eb70e57dacd600a9db112fc465fbfa6a66217b44a8c3dc33039c260a27f09d9034b329b03cc28c32a22ec503fcd17b78cd
|
27 |
+
)
|
28 |
+
file(INSTALL "${LTDL_H_PATH}" DESTINATION "${SOURCE_PATH}/libltdl" RENAME ltdl.h)
|
29 |
+
vcpkg_list(APPEND OPTIONS "-DLTDL_INCLUDE_DIR=${SOURCE_PATH}/libltdl")
|
30 |
+
endif()
|
31 |
+
|
32 |
+
if(VCPKG_HOST_IS_WINDOWS)
|
33 |
+
vcpkg_acquire_msys(MSYS_ROOT PACKAGES gawk)
|
34 |
+
vcpkg_add_to_path("${MSYS_ROOT}/usr/bin")
|
35 |
+
unset(ENV{MSYSTEM_PREFIX})
|
36 |
+
endif()
|
37 |
+
|
38 |
+
vcpkg_find_acquire_program(BISON)
|
39 |
+
vcpkg_find_acquire_program(FLEX)
|
40 |
+
vcpkg_find_acquire_program(GIT)
|
41 |
+
vcpkg_find_acquire_program(PYTHON3)
|
42 |
+
|
43 |
+
vcpkg_cmake_configure(
|
44 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
45 |
+
OPTIONS
|
46 |
+
"-DVERSION=${VERSION}"
|
47 |
+
"-DBISON_EXECUTABLE=${BISON}"
|
48 |
+
"-DFLEX_EXECUTABLE=${FLEX}"
|
49 |
+
"-DGIT=${GIT}"
|
50 |
+
"-DPython3_EXECUTABLE=${PYTHON3}"
|
51 |
+
"-DPKG_CONFIG_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf"
|
52 |
+
"-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
|
53 |
+
-Dinstall_win_dependency_dlls=OFF
|
54 |
+
-Duse_win_pre_inst_libs=OFF
|
55 |
+
-Dwith_gvedit=OFF
|
56 |
+
-Dwith_smyrna=OFF
|
57 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_ANN=ON
|
58 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_DevIL=ON
|
59 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_CAIRO=ON
|
60 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_EXPAT=ON
|
61 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_GD=ON
|
62 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_LTDL=ON
|
63 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_PANGOCAIRO=ON
|
64 |
+
${OPTIONS}
|
65 |
+
MAYBE_UNUSED_VARIABLES
|
66 |
+
install_win_dependency_dlls
|
67 |
+
)
|
68 |
+
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
69 |
+
vcpkg_fixup_pkgconfig()
|
70 |
+
|
71 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
72 |
+
file(GLOB headers "${CURRENT_PACKAGES_DIR}/include/graphviz/*.h")
|
73 |
+
foreach(file IN LISTS headers)
|
74 |
+
vcpkg_replace_string("${file}" "#ifdef GVDLL" "#if 1")
|
75 |
+
endforeach()
|
76 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
77 |
+
# static libs built with dllexport must be used with dllexport
|
78 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/cdt.h" "#ifdef EXPORT_CDT" "#if 1")
|
79 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/cgraph.h" "#ifdef EXPORT_CGRAPH" "#if 1")
|
80 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/gvc.h" "#ifdef GVC_EXPORTS" "#if 1")
|
81 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/gvplugin_loadimage.h" "#ifdef GVC_EXPORTS" "#if 1")
|
82 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/pack.h" "#ifdef GVC_EXPORTS" "#if 1")
|
83 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/pathgeom.h" "#ifdef PATHPLAN_EXPORTS" "#if 1")
|
84 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/pathplan.h" "#ifdef PATHPLAN_EXPORTS" "#if 1")
|
85 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/graphviz/xdot.h" "#ifdef EXPORT_XDOT" "#if 1")
|
86 |
+
endif()
|
87 |
+
endif()
|
88 |
+
|
89 |
+
file(REMOVE_RECURSE
|
90 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
91 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
92 |
+
"${CURRENT_PACKAGES_DIR}/share/man"
|
93 |
+
)
|
94 |
+
|
95 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
96 |
+
foreach(script_or_link IN ITEMS "dot2gxl${VCPKG_TARGET_EXECUTABLE_SUFFIX}" gvmap.sh)
|
97 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/${script_or_link}")
|
98 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/${script_or_link}" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/${script_or_link}")
|
99 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${script_or_link}")
|
100 |
+
endif()
|
101 |
+
endforeach()
|
102 |
+
vcpkg_copy_tools(
|
103 |
+
TOOL_NAMES
|
104 |
+
acyclic
|
105 |
+
bcomps
|
106 |
+
ccomps
|
107 |
+
circo
|
108 |
+
cluster
|
109 |
+
diffimg
|
110 |
+
dijkstra
|
111 |
+
dot
|
112 |
+
edgepaint
|
113 |
+
fdp
|
114 |
+
gc
|
115 |
+
gml2gv
|
116 |
+
graphml2gv
|
117 |
+
gv2gml
|
118 |
+
gv2gxl
|
119 |
+
gvcolor
|
120 |
+
gvgen
|
121 |
+
gvmap
|
122 |
+
gvpack
|
123 |
+
gvpr
|
124 |
+
gxl2dot
|
125 |
+
gxl2gv
|
126 |
+
mm2gv
|
127 |
+
neato
|
128 |
+
nop
|
129 |
+
osage
|
130 |
+
patchwork
|
131 |
+
prune
|
132 |
+
sccmap
|
133 |
+
sfdp
|
134 |
+
tred
|
135 |
+
twopi
|
136 |
+
unflatten
|
137 |
+
AUTO_CLEAN
|
138 |
+
)
|
139 |
+
|
140 |
+
file(GLOB plugin_config "${CURRENT_PACKAGES_DIR}/lib/graphviz/config*" "${CURRENT_PACKAGES_DIR}/bin/config*")
|
141 |
+
if(NOT plugin_config)
|
142 |
+
message(WARNING
|
143 |
+
"In order to create the plugin configuration file, "
|
144 |
+
"you must run `dot -c` on the target system."
|
145 |
+
)
|
146 |
+
endif()
|
147 |
+
|
148 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
149 |
+
file(GLOB plugins "${CURRENT_PACKAGES_DIR}/bin/gvplugin_*")
|
150 |
+
file(COPY ${plugins} ${plugin_config} DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
151 |
+
else()
|
152 |
+
file(COPY "${CURRENT_PACKAGES_DIR}/lib/graphviz" DESTINATION "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
153 |
+
endif()
|
154 |
+
|
155 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/select-plugins.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/plugin/CMakeLists.txt b/plugin/CMakeLists.txt
|
2 |
+
index c8cac8e..d14bf9c 100644
|
3 |
+
--- a/plugin/CMakeLists.txt
|
4 |
+
+++ b/plugin/CMakeLists.txt
|
5 |
+
@@ -1,15 +1,11 @@
|
6 |
+
add_subdirectory(core)
|
7 |
+
-add_subdirectory(devil)
|
8 |
+
add_subdirectory(dot_layout)
|
9 |
+
add_subdirectory(gd)
|
10 |
+
add_subdirectory(gdiplus)
|
11 |
+
add_subdirectory(gdk)
|
12 |
+
-add_subdirectory(gs)
|
13 |
+
add_subdirectory(kitty)
|
14 |
+
-add_subdirectory(lasi)
|
15 |
+
add_subdirectory(neato_layout)
|
16 |
+
add_subdirectory(pango)
|
17 |
+
-add_subdirectory(poppler)
|
18 |
+
add_subdirectory(quartz)
|
19 |
+
add_subdirectory(rsvg)
|
20 |
+
add_subdirectory(vt)
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/static-linkage.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 14f2847..e56a970 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -30,6 +30,9 @@ if(WIN32)
|
6 |
+
# libraries, so the GVDLL symbol can be unconditionally set until
|
7 |
+
# such support is introduced.
|
8 |
+
add_definitions(-DGVDLL)
|
9 |
+
+ if(NOT BUILD_SHARED_LIBS)
|
10 |
+
+ add_definitions(-DEXPORT_CDT -DEXPORT_CGHDR -DEXPORT_CGRAPH -DGVC_EXPORTS -DPATHPLAN_EXPORTS -DEXPORT_XDOT)
|
11 |
+
+ endif()
|
12 |
+
|
13 |
+
option(install_win_dependency_dlls "Install 3rd party dependencies" ON)
|
14 |
+
endif()
|
15 |
+
diff --git a/plugin/gd/gvrender_gd.c b/plugin/gd/gvrender_gd.c
|
16 |
+
index 76bbbf2..f877fa7 100644
|
17 |
+
--- a/plugin/gd/gvrender_gd.c
|
18 |
+
+++ b/plugin/gd/gvrender_gd.c
|
19 |
+
@@ -242,7 +242,7 @@ static void gdgen_end_page(GVJ_t * job)
|
20 |
+
#else
|
21 |
+
#define GD_IMPORT
|
22 |
+
#endif
|
23 |
+
-GD_IMPORT extern gdFontPtr gdFontTiny, gdFontSmall, gdFontMediumBold, gdFontLarge, gdFontGiant;
|
24 |
+
+BGD_EXPORT_DATA_PROT extern gdFontPtr gdFontTiny, gdFontSmall, gdFontMediumBold, gdFontLarge, gdFontGiant;
|
25 |
+
|
26 |
+
void gdgen_text(gdImagePtr im, pointf spf, pointf epf, int fontcolor, double fontsize, int fontdpi, double fontangle, char *fontname, char *str)
|
27 |
+
{
|
28 |
+
diff --git a/plugin/pango/CMakeLists.txt b/plugin/pango/CMakeLists.txt
|
29 |
+
index aca7eec..901f118 100644
|
30 |
+
--- a/plugin/pango/CMakeLists.txt
|
31 |
+
+++ b/plugin/pango/CMakeLists.txt
|
32 |
+
@@ -58,6 +58,7 @@ if(CAIRO_FOUND AND PANGOCAIRO_FOUND)
|
33 |
+
set_target_properties(gvplugin_pango PROPERTIES
|
34 |
+
VERSION ${GRAPHVIZ_PLUGIN_VERSION}.0.0
|
35 |
+
SOVERSION ${GRAPHVIZ_PLUGIN_VERSION}
|
36 |
+
+ LINKER_LANGUAGE CXX # for cairo
|
37 |
+
)
|
38 |
+
|
39 |
+
if(MINGW)
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/vcpkg.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "graphviz",
|
3 |
+
"version-semver": "10.0.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Graph Visualization Tools",
|
6 |
+
"homepage": "https://graphviz.org/",
|
7 |
+
"license": "EPL-1.0",
|
8 |
+
"supports": "!staticcrt",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "cairo",
|
12 |
+
"default-features": false
|
13 |
+
},
|
14 |
+
"expat",
|
15 |
+
"gdk-pixbuf",
|
16 |
+
"getopt",
|
17 |
+
"gts",
|
18 |
+
{
|
19 |
+
"name": "libgd",
|
20 |
+
"default-features": false,
|
21 |
+
"features": [
|
22 |
+
"fontconfig",
|
23 |
+
"freetype",
|
24 |
+
"jpeg",
|
25 |
+
"png",
|
26 |
+
"tiff"
|
27 |
+
]
|
28 |
+
},
|
29 |
+
"librsvg",
|
30 |
+
"libwebp",
|
31 |
+
"pango",
|
32 |
+
{
|
33 |
+
"name": "pkgconf",
|
34 |
+
"host": true
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"name": "vcpkg-cmake",
|
38 |
+
"host": true
|
39 |
+
},
|
40 |
+
"zlib"
|
41 |
+
]
|
42 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/graphviz/webp-install.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/plugin/webp/CMakeLists.txt b/plugin/webp/CMakeLists.txt
|
2 |
+
index 21913a8..4811930 100644
|
3 |
+
--- a/plugin/webp/CMakeLists.txt
|
4 |
+
+++ b/plugin/webp/CMakeLists.txt
|
5 |
+
@@ -45,7 +45,7 @@ if(WEBP_FOUND)
|
6 |
+
install(
|
7 |
+
TARGETS gvplugin_webp
|
8 |
+
RUNTIME DESTINATION ${BINARY_INSTALL_DIR}
|
9 |
+
- LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR}
|
10 |
+
+ LIBRARY DESTINATION ${PLUGIN_INSTALL_DIR}
|
11 |
+
ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR}
|
12 |
+
)
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/hps/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "hps",
|
3 |
+
"version-date": "2022-01-18",
|
4 |
+
"description": "A C++11 High Performance Serialization Library.",
|
5 |
+
"homepage": "https://github.com/jl2922/hps",
|
6 |
+
"license": "MIT"
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/lemon/portfile.cmake
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
2 |
+
|
3 |
+
message(WARNING "The lemon port is deprecated, use liblemon instead")
|
cc-multilingual-main/cc_net/vcpkg/ports/lemon/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lemon",
|
3 |
+
"version": "0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Deprecated port, use liblemon instead",
|
6 |
+
"dependencies": [
|
7 |
+
"liblemon"
|
8 |
+
]
|
9 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libcopp/fix-x86-windows.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 95ebe36..658c5e1 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -25,6 +25,11 @@ project(
|
6 |
+
HOMEPAGE_URL "https://libcopp.atframe.work"
|
7 |
+
LANGUAGES C CXX ASM)
|
8 |
+
|
9 |
+
+# libcopp requires x86 to be called i386
|
10 |
+
+if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
|
11 |
+
+ set(CMAKE_SYSTEM_PROCESSOR i386)
|
12 |
+
+endif()
|
13 |
+
+
|
14 |
+
# ######################################################################################################################
|
15 |
+
include("${PROJECT_SOURCE_DIR}/project/cmake/ProjectBuildOption.cmake")
|
16 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/libcopp/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO owent/libcopp
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 aa594e1cab9e8489feb864539834a66f700be51000e551840456cbb27971894b3481b300be88a8273f7efc189e3003ecc680eabb3ae8131a90daa2ba90447973
|
6 |
+
HEAD_REF v2
|
7 |
+
PATCHES fix-x86-windows.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
# atframework/cmake-toolset needed as a submodule for configure cmake
|
11 |
+
vcpkg_from_github(
|
12 |
+
OUT_SOURCE_PATH ATFRAMEWORK_CMAKE_TOOLSET
|
13 |
+
REPO atframework/cmake-toolset
|
14 |
+
REF v1.10.1
|
15 |
+
SHA512 7ea18e41fabd35af5fd72fb954a1c60480ba85a9ff820104785d263e719751ba699eeca801ce5155041d8bf51fb2c37ea53f6ed404e4a4e7e810f1eb9bacead4
|
16 |
+
HEAD_REF main
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
DISABLE_PARALLEL_CONFIGURE
|
22 |
+
OPTIONS "-DATFRAMEWORK_CMAKE_TOOLSET_DIR=${ATFRAMEWORK_CMAKE_TOOLSET}"
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/BOOST_LICENSE_1_0.txt" "${SOURCE_PATH}/LICENSE")
|
28 |
+
|
29 |
+
vcpkg_copy_pdbs()
|
30 |
+
|
31 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/libcopp)
|
32 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/libcopp/libcopp-config.cmake" "set(\${CMAKE_FIND_PACKAGE_NAME}_SOURCE_DIR \"${SOURCE_PATH}\")" "")
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
cc-multilingual-main/cc_net/vcpkg/ports/libcopp/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libcopp",
|
3 |
+
"version": "2.2.0",
|
4 |
+
"maintainers": "owent <[email protected]>",
|
5 |
+
"description": "A cross-platfrom coroutine library for C++",
|
6 |
+
"homepage": "https://github.com/owent/libcopp",
|
7 |
+
"documentation": "https://libcopp.atframe.work/",
|
8 |
+
"license": "MIT",
|
9 |
+
"supports": "!(windows & arm)",
|
10 |
+
"dependencies": [
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/magic-enum/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO Neargye/magic_enum
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 f1b412d15e0ef624b4588adba00a18ed12eeb1f0dabc021d53a7c047b8976ecb07701b76040f47c77c75e00151619dbce1f9a75f471db04340156a39044768f3
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
set(VCPKG_BUILD_TYPE release) # header-only port
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
OPTIONS
|
14 |
+
-DMAGIC_ENUM_OPT_BUILD_EXAMPLES=OFF
|
15 |
+
-DMAGIC_ENUM_OPT_BUILD_TESTS=OFF
|
16 |
+
-DMAGIC_ENUM_OPT_INSTALL=ON
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/magic_enum PACKAGE_NAME magic_enum)
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
24 |
+
|
25 |
+
# Handle copyright
|
26 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
27 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/magic-enum/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
magic-enum provides CMake targets:
|
2 |
+
|
3 |
+
find_package(magic_enum CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE magic_enum::magic_enum)
|
cc-multilingual-main/cc_net/vcpkg/ports/magic-enum/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "magic-enum",
|
3 |
+
"version": "0.9.5",
|
4 |
+
"description": "Header-only C++17 library provides static reflection for enums, work with any enum type without any macro or boilerplate code.",
|
5 |
+
"homepage": "https://github.com/Neargye/magic_enum",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/makeid/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://www.humus.name/3D/MakeID.h"
|
3 |
+
FILENAME "MakeID.h-${VERSION}"
|
4 |
+
SHA512 fd4222d2cc0b0e16b0cfbac048cb64ac59d53ede10ab7f88f710e4b866cb67ffb0ec139821c181f1804a813cc9ab20cf33282c8b73e9ef0fdba414be474c2b64
|
5 |
+
)
|
6 |
+
|
7 |
+
file(INSTALL "${ARCHIVE}" DESTINATION "${CURRENT_PACKAGES_DIR}/include" RENAME "MakeID.h")
|
8 |
+
|
9 |
+
set(license_text
|
10 |
+
"Public Domain
|
11 |
+
|
12 |
+
This file is released in the hopes that it will be useful. Use in whatever way you like, but no guarantees that it
|
13 |
+
actually works or fits any particular purpose. It has been unit-tested and benchmarked though, and seems to do
|
14 |
+
what it was designed to do, and seems pretty quick at it too."
|
15 |
+
)
|
16 |
+
|
17 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/makeid/copyright" "${license_text}")
|
cc-multilingual-main/cc_net/vcpkg/ports/makeid/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "makeid",
|
3 |
+
"version": "1.0.3",
|
4 |
+
"description": "MakeID is a cross platform C++ library for IDs allocation/deallocation",
|
5 |
+
"homepage": "http://www.humus.name/index.php?page=3D",
|
6 |
+
"license": null
|
7 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mlpack/portfile.cmake
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO mlpack/mlpack
|
5 |
+
REF "${VERSION}"
|
6 |
+
SHA512 6b7c16190fa5106dde76cbedddc42ed0a4a97fcc606dc0b962744fdc812ac81f59a21b6cf071e3a8661c58cb9de2654a4eabd03c4f44d6091f99175887735c41
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
# Copy the header files
|
11 |
+
file(GLOB HEADERS "${SOURCE_PATH}/src/*.hpp" "${SOURCE_PATH}/src/mlpack/*.hpp")
|
12 |
+
file(COPY ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include/mlpack")
|
13 |
+
file(COPY "${SOURCE_PATH}/src/mlpack/methods/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mlpack/methods")
|
14 |
+
file(COPY "${SOURCE_PATH}/src/mlpack/core/" DESTINATION "${CURRENT_PACKAGES_DIR}/include/mlpack/core")
|
15 |
+
|
16 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYRIGHT.txt")
|
17 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" @ONLY)
|