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/aom/aom-install.diff +75 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aom/aom-rename-static.diff +33 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aom/aom-uninitialized-pointer.diff +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aom/portfile.cmake +60 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aom/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aricpp/portfile.cmake +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/aricpp/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/autobahn/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/autobahn/vcpkg.json +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/azure-data-tables-cpp/portfile.cmake +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/azure-data-tables-cpp/vcpkg.json +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/cmake-project-include.cmake +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/portfile.cmake +54 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/usage +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/vcpkg.json +46 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/0001-g-ir-tool-template.in.patch +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/0002-cross-build.patch +60 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/0003-fix-paths.patch +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/fix-pkgconfig.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/portfile.cmake +89 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/python.patch +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/vcpkg.json +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itpp/fix-linux.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itpp/fix-uwp.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itpp/msvc2013.patch +284 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itpp/portfile.cmake +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itpp/rename-version.patch +12 -0
- cc-multilingual-main/cc_net/vcpkg/ports/itpp/vcpkg.json +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsvg/CMakeLists.txt +173 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsvg/config.h.linux +89 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsvg/portfile.cmake +40 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsvg/unofficial-librsvg-config.cmake +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsvg/usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/librsvg/vcpkg.json +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/mimalloc/portfile.cmake +60 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nayuki-qr-code-generator/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/nayuki-qr-code-generator/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/openslide/fix-win-build.patch +126 -0
- cc-multilingual-main/cc_net/vcpkg/ports/openslide/portfile.cmake +57 -0
- cc-multilingual-main/cc_net/vcpkg/ports/openslide/remove-w-flags.patch +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/openslide/vcpkg.json +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pcre/pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pcre/pcre-8.45_fix_postfix_for_debug_Windows_builds.patch +161 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pcre/pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pcre/portfile.cmake +79 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pcre/unofficial-pcre-config.cmake +1 -0
- cc-multilingual-main/cc_net/vcpkg/ports/pcre/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/physfs/portfile.cmake +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/physfs/usage +10 -0
cc-multilingual-main/cc_net/vcpkg/ports/aom/aom-install.diff
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 18190f647..f4b1b359d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -23,6 +23,9 @@ endif()
|
6 |
+
|
7 |
+
project(AOM C CXX)
|
8 |
+
|
9 |
+
+include(GNUInstallDirs)
|
10 |
+
+include(CMakePackageConfigHelpers)
|
11 |
+
+
|
12 |
+
# GENERATED source property global visibility.
|
13 |
+
if(POLICY CMP0118)
|
14 |
+
cmake_policy(SET CMP0118 NEW)
|
15 |
+
@@ -302,6 +305,52 @@ if(BUILD_SHARED_LIBS)
|
16 |
+
set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_static)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
+set(PUBLIC_HEADERS
|
20 |
+
+ aom/aom.h
|
21 |
+
+ aom/aom_codec.h
|
22 |
+
+ aom/aom_decoder.h
|
23 |
+
+ aom/aom_encoder.h
|
24 |
+
+ aom/aom_frame_buffer.h
|
25 |
+
+ aom/aom_image.h
|
26 |
+
+ aom/aom_integer.h
|
27 |
+
+ aom/aomcx.h
|
28 |
+
+ aom/aomdx.h
|
29 |
+
+)
|
30 |
+
+
|
31 |
+
+set_target_properties(aom PROPERTIES
|
32 |
+
+ PUBLIC_HEADER "${PUBLIC_HEADERS}")
|
33 |
+
+
|
34 |
+
+
|
35 |
+
+target_include_directories(aom
|
36 |
+
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
37 |
+
+ $<INSTALL_INTERFACE:include>)
|
38 |
+
+
|
39 |
+
+install(TARGETS aom
|
40 |
+
+ EXPORT unofficial-aom-targets
|
41 |
+
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
42 |
+
+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
43 |
+
+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
44 |
+
+ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/aom")
|
45 |
+
+
|
46 |
+
+install(EXPORT unofficial-aom-targets
|
47 |
+
+ FILE unofficial-aom-targets.cmake
|
48 |
+
+ NAMESPACE unofficial::
|
49 |
+
+ DESTINATION lib/cmake/aom)
|
50 |
+
+
|
51 |
+
+configure_package_config_file(cmake/aom-config.cmake.in
|
52 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/aom-config.cmake
|
53 |
+
+ INSTALL_DESTINATION lib/cmake/aom
|
54 |
+
+ NO_SET_AND_CHECK_MACRO
|
55 |
+
+ NO_CHECK_REQUIRED_COMPONENTS_MACRO)
|
56 |
+
+
|
57 |
+
+write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/aom-config-version.cmake
|
58 |
+
+ VERSION ${SO_FILE_VERSION}
|
59 |
+
+ COMPATIBILITY SameMajorVersion)
|
60 |
+
+
|
61 |
+
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/aom-config.cmake
|
62 |
+
+ ${CMAKE_CURRENT_BINARY_DIR}/aom-config-version.cmake
|
63 |
+
+ DESTINATION lib/cmake/aom)
|
64 |
+
+
|
65 |
+
# Setup dependencies.
|
66 |
+
if(CONFIG_THREE_PASS)
|
67 |
+
setup_ivf_dec_targets()
|
68 |
+
diff --git a/cmake/aom-config.cmake.in b/cmake/aom-config.cmake.in
|
69 |
+
new file mode 100644
|
70 |
+
index 000000000..91cac3b5b
|
71 |
+
--- /dev/null
|
72 |
+
+++ b/cmake/aom-config.cmake.in
|
73 |
+
@@ -0,0 +1,2 @@
|
74 |
+
+@PACKAGE_INIT@
|
75 |
+
+include(${CMAKE_CURRENT_LIST_DIR}/unofficial-aom-targets.cmake)
|
cc-multilingual-main/cc_net/vcpkg/ports/aom/aom-rename-static.diff
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 2e5b623..bed61da 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -314,6 +314,15 @@ if(BUILD_SHARED_LIBS)
|
6 |
+
set_target_properties(aom PROPERTIES SOVERSION ${SO_VERSION})
|
7 |
+
set_target_properties(aom PROPERTIES VERSION ${SO_FILE_VERSION})
|
8 |
+
endif()
|
9 |
+
+
|
10 |
+
+ # override conditional changes
|
11 |
+
+ set_target_properties(aom PROPERTIES
|
12 |
+
+ ARCHIVE_OUTPUT_NAME aom
|
13 |
+
+ )
|
14 |
+
+ set_target_properties(aom_static PROPERTIES
|
15 |
+
+ ARCHIVE_OUTPUT_NAME aom_static
|
16 |
+
+ EXCLUDE_FROM_ALL 1
|
17 |
+
+ )
|
18 |
+
endif()
|
19 |
+
|
20 |
+
if(NOT WIN32 AND NOT APPLE)
|
21 |
+
diff --git a/build/cmake/aom_install.cmake b/build/cmake/aom_install.cmake
|
22 |
+
index b02c7b9..c219841 100644
|
23 |
+
--- a/build/cmake/aom_install.cmake
|
24 |
+
+++ b/build/cmake/aom_install.cmake
|
25 |
+
@@ -79,7 +79,7 @@ macro(setup_aom_install_targets)
|
26 |
+
endif()
|
27 |
+
|
28 |
+
if(BUILD_SHARED_LIBS)
|
29 |
+
- set(AOM_INSTALL_LIBS aom aom_static)
|
30 |
+
+ set(AOM_INSTALL_LIBS aom)
|
31 |
+
else()
|
32 |
+
set(AOM_INSTALL_LIBS aom)
|
33 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/aom/aom-uninitialized-pointer.diff
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/build/cmake/aom_configure.cmake b/build/cmake/aom_configure.cmake
|
2 |
+
index aaef2c310..5500ad4a3 100644
|
3 |
+
--- a/build/cmake/aom_configure.cmake
|
4 |
+
+++ b/build/cmake/aom_configure.cmake
|
5 |
+
@@ -309,6 +309,8 @@ if(MSVC)
|
6 |
+
|
7 |
+
# Disable MSVC warnings that suggest making code non-portable.
|
8 |
+
add_compiler_flag_if_supported("/wd4996")
|
9 |
+
+ # Disable MSVC warnings for potentially uninitialized local pointer variable.
|
10 |
+
+ add_compiler_flag_if_supported("/wd4703")
|
11 |
+
if(ENABLE_WERROR)
|
12 |
+
add_compiler_flag_if_supported("/WX")
|
13 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/aom/portfile.cmake
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NASM is required to build AOM
|
2 |
+
vcpkg_find_acquire_program(NASM)
|
3 |
+
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
4 |
+
vcpkg_add_to_path(${NASM_EXE_PATH})
|
5 |
+
|
6 |
+
# Perl is required to build AOM
|
7 |
+
vcpkg_find_acquire_program(PERL)
|
8 |
+
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
9 |
+
vcpkg_add_to_path(${PERL_PATH})
|
10 |
+
|
11 |
+
vcpkg_from_git(
|
12 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
13 |
+
URL "https://aomedia.googlesource.com/aom"
|
14 |
+
REF bb6430482199eaefbeaaa396600935082bc43f66
|
15 |
+
PATCHES
|
16 |
+
aom-rename-static.diff
|
17 |
+
aom-uninitialized-pointer.diff
|
18 |
+
# Can be dropped when https://bugs.chromium.org/p/aomedia/issues/detail?id=3029 is merged into the upstream
|
19 |
+
aom-install.diff
|
20 |
+
)
|
21 |
+
|
22 |
+
set(aom_target_cpu "")
|
23 |
+
if(VCPKG_TARGET_IS_UWP OR (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE MATCHES "^arm"))
|
24 |
+
# UWP + aom's assembler files result in weirdness and build failures
|
25 |
+
# Also, disable assembly on ARM and ARM64 Windows to fix compilation issues.
|
26 |
+
set(aom_target_cpu "-DAOM_TARGET_CPU=generic")
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" AND VCPKG_TARGET_IS_LINUX)
|
30 |
+
set(aom_target_cpu "-DENABLE_NEON=OFF")
|
31 |
+
endif()
|
32 |
+
|
33 |
+
vcpkg_cmake_configure(
|
34 |
+
SOURCE_PATH ${SOURCE_PATH}
|
35 |
+
OPTIONS
|
36 |
+
${aom_target_cpu}
|
37 |
+
-DENABLE_DOCS=OFF
|
38 |
+
-DENABLE_EXAMPLES=OFF
|
39 |
+
-DENABLE_TESTDATA=OFF
|
40 |
+
-DENABLE_TESTS=OFF
|
41 |
+
-DENABLE_TOOLS=OFF
|
42 |
+
)
|
43 |
+
|
44 |
+
vcpkg_cmake_install()
|
45 |
+
|
46 |
+
vcpkg_copy_pdbs()
|
47 |
+
|
48 |
+
vcpkg_fixup_pkgconfig()
|
49 |
+
|
50 |
+
# Move cmake configs
|
51 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
52 |
+
|
53 |
+
# Remove duplicate files
|
54 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
55 |
+
${CURRENT_PACKAGES_DIR}/debug/share)
|
56 |
+
|
57 |
+
# Handle copyright
|
58 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
59 |
+
|
60 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/aom/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "aom",
|
3 |
+
"version-semver": "3.8.1",
|
4 |
+
"description": "AV1 codec library",
|
5 |
+
"homepage": "https://aomedia.googlesource.com/aom",
|
6 |
+
"license": "BSD-2-Clause",
|
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/aricpp/portfile.cmake
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO daniele77/aricpp
|
5 |
+
REF v1.1.2
|
6 |
+
SHA512 bf325de240cdc9c567524cdc127c256d1ac783e785779117374f1d2a5fd4f352545e87f3d1556c2a24e47a203b55bc581a92fb20426295f5f9dcb4a8078cb215
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/aricpp)
|
17 |
+
vcpkg_fixup_pkgconfig()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
20 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/aricpp/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "aricpp",
|
3 |
+
"version-semver": "1.1.2",
|
4 |
+
"description": "Asterisk ARI interface bindings for modern C++",
|
5 |
+
"homepage": "https://github.com/daniele77/aricpp",
|
6 |
+
"license": "BSL-1.0",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-asio",
|
9 |
+
"boost-beast",
|
10 |
+
"boost-system",
|
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/autobahn/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
set(USE_UPSTREAM OFF)
|
3 |
+
if("upstream" IN_LIST FEATURES)
|
4 |
+
set(USE_UPSTREAM ON)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO crossbario/autobahn-cpp
|
10 |
+
REF 84972fc81181bde635329bf0474e3874cc5c9091 # v20.8.1
|
11 |
+
SHA512 fcd094907826e035188d19efc80f3caa6c90d7d7bd2c5b6796aea9de3a02052bd049329cbe5cb242bba535e70c127842c66d34956e715b4f6f37ffc54c39c483
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/autobahn)
|
16 |
+
|
17 |
+
# Copy the header files
|
18 |
+
file(COPY "${SOURCE_PATH}/autobahn" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.hpp")
|
19 |
+
file(COPY "${SOURCE_PATH}/autobahn" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.ipp")
|
20 |
+
|
21 |
+
set(PACKAGE_INSTALL_INCLUDE_DIR "\${CMAKE_CURRENT_LIST_DIR}/../../include")
|
22 |
+
set(PACKAGE_INIT "
|
23 |
+
macro(set_and_check)
|
24 |
+
set(\${ARGV})
|
25 |
+
endmacro()
|
26 |
+
")
|
27 |
+
|
28 |
+
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/autobahn/copyright COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/autobahn/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "autobahn",
|
3 |
+
"version": "20.8.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "WAMP for C++ in Boost/Asio",
|
6 |
+
"homepage": "https://crossbar.io/autobahn",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-asio",
|
9 |
+
"boost-thread",
|
10 |
+
"msgpack",
|
11 |
+
"websocketpp"
|
12 |
+
]
|
13 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/azure-data-tables-cpp/portfile.cmake
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# NOTE: All changes made to this file will get overwritten by the next port release.
|
2 |
+
# Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp.
|
3 |
+
|
4 |
+
vcpkg_from_github(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO Azure/azure-sdk-for-cpp
|
7 |
+
REF azure-data-tables_1.0.0-beta.1
|
8 |
+
SHA512 64c887337e593ffc95ab5d5afb25b283255dafbf8ddce2b3207c928dee9277737d3713e02feb3991305ecf89243bf82753843c4a7c127b991a332efcaee875b3
|
9 |
+
)
|
10 |
+
|
11 |
+
if(EXISTS "${SOURCE_PATH}/sdk/tables/azure-data-tables")
|
12 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/tables/_")
|
13 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/sdk/_")
|
14 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/_")
|
15 |
+
|
16 |
+
file(RENAME "${SOURCE_PATH}/sdk/tables/azure-data-tables" "${SOURCE_PATH}/sdk/tables/_")
|
17 |
+
file(RENAME "${SOURCE_PATH}/sdk/tables" "${SOURCE_PATH}/sdk/_")
|
18 |
+
file(RENAME "${SOURCE_PATH}/sdk" "${SOURCE_PATH}/_")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}/_/_/_"
|
23 |
+
OPTIONS
|
24 |
+
-DWARNINGS_AS_ERRORS=OFF
|
25 |
+
-DBUILD_TESTING=OFF
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_cmake_install()
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
vcpkg_cmake_config_fixup()
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
32 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/azure-data-tables-cpp/vcpkg.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": [
|
3 |
+
"NOTE: All changes made to this file will get overwritten by the next port release.",
|
4 |
+
"Please contribute your changes to https://github.com/Azure/azure-sdk-for-cpp."
|
5 |
+
],
|
6 |
+
"name": "azure-data-tables-cpp",
|
7 |
+
"version-semver": "1.0.0-beta.1",
|
8 |
+
"description": [
|
9 |
+
"Microsoft Azure Data Tables SDK for C++",
|
10 |
+
"This library provides Azure Data Tables SDK."
|
11 |
+
],
|
12 |
+
"homepage": "https://github.com/Azure/azure-sdk-for-cpp/tree/main/sdk/tables/azure-data-tables",
|
13 |
+
"license": "MIT",
|
14 |
+
"dependencies": [
|
15 |
+
{
|
16 |
+
"name": "azure-core-cpp",
|
17 |
+
"default-features": false,
|
18 |
+
"version>=": "1.11.0"
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"name": "libxml2",
|
22 |
+
"default-features": false,
|
23 |
+
"platform": "!windows"
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"name": "vcpkg-cmake",
|
27 |
+
"host": true
|
28 |
+
},
|
29 |
+
{
|
30 |
+
"name": "vcpkg-cmake-config",
|
31 |
+
"host": true
|
32 |
+
}
|
33 |
+
]
|
34 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/cmake-project-include.cmake
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(MSVC)
|
2 |
+
# This port's tools use C++20, but Qt6 (via OpenCV4) uses C++17.
|
3 |
+
# Assuming that no coroutines are passed between the two.
|
4 |
+
add_definitions(-D_ALLOW_COROUTINE_ABI_MISMATCH)
|
5 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/portfile.cmake
ADDED
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
GITLAB_URL https://gitlab.com/inivation
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO dv/dv-processing
|
5 |
+
REF 9cd21eede0c38e079e462cdce8434fcbe2a4d037
|
6 |
+
SHA512 fc5d0083166ff4708e6d540d437429784f9f62b7c3b7fb4631abc27ee0e6f46e60314f5fcf571c6141352571fef52a32c85a8160c951b5243910a02a281b0855
|
7 |
+
HEAD_REF rel_1.7
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_from_gitlab(
|
11 |
+
GITLAB_URL https://gitlab.com/inivation
|
12 |
+
OUT_SOURCE_PATH CMAKEMOD_SOURCE_PATH
|
13 |
+
REPO dv/cmakemod
|
14 |
+
REF d107c76b73a49a16c3ac733749152037406a515e
|
15 |
+
SHA512 fe87530ce5fecfe5d1ccdc6a06addc652167c67c4707d9039bf2f022ced2966dc8295b8ed69c3d4154b965f0dd22f43a8830eb4f03e99ff3edfe38de759bd0d5
|
16 |
+
HEAD_REF d107c76b73a49a16c3ac733749152037406a515e
|
17 |
+
)
|
18 |
+
file(GLOB CMAKEMOD_FILES "${CMAKEMOD_SOURCE_PATH}/*")
|
19 |
+
file(COPY ${CMAKEMOD_FILES} DESTINATION "${SOURCE_PATH}/cmake/modules")
|
20 |
+
|
21 |
+
vcpkg_check_features(
|
22 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
23 |
+
FEATURES
|
24 |
+
tools ENABLE_UTILITIES
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
28 |
+
|
29 |
+
set(VCPKG_BUILD_TYPE release) # no lib binaries
|
30 |
+
vcpkg_cmake_configure(
|
31 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
32 |
+
DISABLE_PARALLEL_CONFIGURE # writes to include/dv-processing/version.hpp
|
33 |
+
OPTIONS
|
34 |
+
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
35 |
+
${FEATURE_OPTIONS}
|
36 |
+
"-DCMAKE_PROJECT_INCLUDE=${CMAKE_CURRENT_LIST_DIR}/cmake-project-include.cmake"
|
37 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
38 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_lz4=ON
|
39 |
+
-DCMAKE_REQUIRE_FIND_PACKAGE_zstd=ON
|
40 |
+
-DENABLE_TESTS=OFF
|
41 |
+
-DENABLE_SAMPLES=OFF
|
42 |
+
-DENABLE_PYTHON=OFF
|
43 |
+
-DBUILD_CONFIG_VCPKG=ON
|
44 |
+
)
|
45 |
+
vcpkg_cmake_install()
|
46 |
+
|
47 |
+
if(ENABLE_UTILITIES)
|
48 |
+
vcpkg_copy_tools(TOOL_NAMES dv-filestat dv-imu-bias-estimation dv-list-devices dv-tcpstat AUTO_CLEAN)
|
49 |
+
endif()
|
50 |
+
|
51 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib") # pkgconfig only, but incomplete
|
52 |
+
|
53 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
54 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/usage
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
dv-processing provides CMake targets:
|
2 |
+
|
3 |
+
find_package(dv-processing CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE dv::processing)
|
5 |
+
|
6 |
+
Using dv-processing requires a C++20 compliant compiler.
|
cc-multilingual-main/cc_net/vcpkg/ports/dv-processing/vcpkg.json
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "dv-processing",
|
3 |
+
"version": "1.7.9",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Generic algorithms for event cameras. (C++20 required.)",
|
6 |
+
"homepage": "https://gitlab.com/inivation/dv/dv-processing",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"dependencies": [
|
9 |
+
"boost-algorithm",
|
10 |
+
{
|
11 |
+
"name": "boost-asio",
|
12 |
+
"features": [
|
13 |
+
"ssl"
|
14 |
+
]
|
15 |
+
},
|
16 |
+
"boost-callable-traits",
|
17 |
+
"boost-circular-buffer",
|
18 |
+
"boost-core",
|
19 |
+
"boost-endian",
|
20 |
+
"boost-geometry",
|
21 |
+
"boost-lockfree",
|
22 |
+
"boost-nowide",
|
23 |
+
"boost-property-tree",
|
24 |
+
"boost-stacktrace",
|
25 |
+
"cli11",
|
26 |
+
"eigen3",
|
27 |
+
"fmt",
|
28 |
+
"libcaer",
|
29 |
+
"lz4",
|
30 |
+
{
|
31 |
+
"name": "opencv4",
|
32 |
+
"default-features": false
|
33 |
+
},
|
34 |
+
"openssl",
|
35 |
+
{
|
36 |
+
"name": "vcpkg-cmake",
|
37 |
+
"host": true
|
38 |
+
},
|
39 |
+
"zstd"
|
40 |
+
],
|
41 |
+
"features": {
|
42 |
+
"tools": {
|
43 |
+
"description": "Build CLI utilities"
|
44 |
+
}
|
45 |
+
}
|
46 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/0001-g-ir-tool-template.in.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/tools/g-ir-tool-template.in 2021-09-17 23:02:42.601052000 +0700
|
2 |
+
+++ b/tools/g-ir-tool-template.in 2021-12-29 21:41:52.987141900 +0700
|
3 |
+
@@ -59,7 +59,7 @@
|
4 |
+
builtins.__dict__['GIRDIR'] = [girdir]
|
5 |
+
|
6 |
+
# Again, relative paths first so that the installation prefix is relocatable
|
7 |
+
-pylibdir = os.path.abspath(os.path.join(filedir, '..', 'lib', 'gobject-introspection'))
|
8 |
+
+pylibdir = os.path.abspath(os.path.join(filedir, '..', '..', 'lib', 'gobject-introspection'))
|
9 |
+
|
10 |
+
# EXT_SUFFIX for py3 SO for py2
|
11 |
+
py_mod_suffix = sysconfig.get_config_var('EXT_SUFFIX') or sysconfig.get_config_var('SO')
|
12 |
+
@@ -91,6 +91,11 @@
|
13 |
+
|
14 |
+
sys.path.insert(0, pylibdir)
|
15 |
+
|
16 |
+
+pkg_config_path = os.getenv('PKG_CONFIG_PATH', '')
|
17 |
+
+if pkg_config_path:
|
18 |
+
+ pkg_config_path = os.pathsep + pkg_config_path
|
19 |
+
+os.environ['PKG_CONFIG_PATH'] = os.path.normpath(os.path.join(pylibdir, '..', 'pkgconfig')) + pkg_config_path
|
20 |
+
+
|
21 |
+
from giscanner.utils import dll_dirs
|
22 |
+
dll_dirs = dll_dirs()
|
23 |
+
dll_dirs.add_dll_dirs(['gio-2.0'])
|
cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/0002-cross-build.patch
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/gir/meson.build 2021-09-17 23:02:42.502052000 +0700
|
2 |
+
+++ b/gir/meson.build 2022-01-05 02:31:25.960457800 +0700
|
3 |
+
@@ -42,7 +42,7 @@
|
4 |
+
install_data(gir_files, install_dir: girdir)
|
5 |
+
|
6 |
+
scanner_command = [
|
7 |
+
- find_program('g-ir-scanner', native: true),
|
8 |
+
+ find_program('g-ir-scanner'),
|
9 |
+
'--output=@OUTPUT@',
|
10 |
+
'--no-libtool',
|
11 |
+
'--quiet',
|
12 |
+
@@ -495,6 +495,7 @@
|
13 |
+
)
|
14 |
+
|
15 |
+
typelibs = []
|
16 |
+
+gircompiler = find_program('g-ir-compiler')
|
17 |
+
if get_option('gi_cross_binary_wrapper') != ''
|
18 |
+
gircompiler_command = [get_option('gi_cross_binary_wrapper'), gircompiler.full_path(), ]
|
19 |
+
else
|
20 |
+
@@ -510,7 +511,7 @@
|
21 |
+
typelibs += custom_target('generate-typelib-@0@'.format(gir).underscorify(),
|
22 |
+
input: gir,
|
23 |
+
output: '@[email protected]',
|
24 |
+
- depends: [gobject_gir, gircompiler, ],
|
25 |
+
+ depends: [gobject_gir, ],
|
26 |
+
command: gircompiler_command,
|
27 |
+
install: true,
|
28 |
+
install_dir: typelibdir,
|
29 |
+
--- a/tools/meson.build 2021-09-17 23:02:42.601052000 +0700
|
30 |
+
+++ b/tools/meson.build 2022-01-05 02:36:06.103763400 +0700
|
31 |
+
@@ -64,7 +64,9 @@
|
32 |
+
install: true,
|
33 |
+
c_args: custom_c_args,
|
34 |
+
)
|
35 |
+
-meson.override_find_program('g-ir-compiler', gircompiler)
|
36 |
+
+if not get_option('gi_cross_use_prebuilt_gi')
|
37 |
+
+ meson.override_find_program('g-ir-compiler', gircompiler)
|
38 |
+
+endif
|
39 |
+
|
40 |
+
girgenerate = executable('g-ir-generate', 'generate.c',
|
41 |
+
dependencies: [
|
42 |
+
@@ -74,11 +76,15 @@
|
43 |
+
install: true,
|
44 |
+
c_args: custom_c_args,
|
45 |
+
)
|
46 |
+
-meson.override_find_program('g-ir-generate', girgenerate)
|
47 |
+
+if not get_option('gi_cross_use_prebuilt_gi')
|
48 |
+
+ meson.override_find_program('g-ir-generate', girgenerate)
|
49 |
+
+endif
|
50 |
+
|
51 |
+
girinspect = executable('g-ir-inspect', 'g-ir-inspect.c',
|
52 |
+
dependencies: girepo_dep,
|
53 |
+
install: true,
|
54 |
+
c_args: custom_c_args,
|
55 |
+
)
|
56 |
+
-meson.override_find_program('g-ir-inspect', girinspect)
|
57 |
+
+if not get_option('gi_cross_use_prebuilt_gi')
|
58 |
+
+ meson.override_find_program('g-ir-inspect', girinspect)
|
59 |
+
+endif
|
60 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/0003-fix-paths.patch
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/tools/g-ir-tool-template.in b/tools/g-ir-tool-template.in
|
2 |
+
index 75c35a7..499ed01 100644
|
3 |
+
--- a/tools/g-ir-tool-template.in
|
4 |
+
+++ b/tools/g-ir-tool-template.in
|
5 |
+
@@ -46,7 +46,7 @@ if debug:
|
6 |
+
filedir = os.path.dirname(__file__)
|
7 |
+
|
8 |
+
# Try using relative paths first so that the installation prefix is relocatable
|
9 |
+
-datadir = os.path.abspath(os.path.join(filedir, '..', 'share'))
|
10 |
+
+datadir = os.path.abspath(os.path.join(filedir, '..', '..', 'share'))
|
11 |
+
# Fallback to hard-coded paths if the relocatable paths are wrong
|
12 |
+
if not os.path.isdir(os.path.join(datadir, 'gir-1.0')):
|
13 |
+
datadir = "@datarootdir@"
|
14 |
+
@@ -55,7 +55,7 @@ builtins.__dict__['DATADIR'] = datadir
|
15 |
+
|
16 |
+
# Respect gir_dir_prefix
|
17 |
+
girdir = ''
|
18 |
+
-girdir = os.path.abspath(os.path.join(filedir, '..', '@gir_dir_prefix@'))
|
19 |
+
+girdir = datadir
|
20 |
+
builtins.__dict__['GIRDIR'] = [girdir]
|
21 |
+
|
22 |
+
# Again, relative paths first so that the installation prefix is relocatable
|
cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/fix-pkgconfig.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/meson.build b/meson.build
|
2 |
+
index b253927..312fbdc 100644
|
3 |
+
--- a/meson.build
|
4 |
+
+++ b/meson.build
|
5 |
+
@@ -254,9 +254,9 @@ endif
|
6 |
+
pkgconfig_variables = [
|
7 |
+
'datadir=' + '${prefix}' / get_option('datadir'),
|
8 |
+
'bindir=' + '${prefix}' / get_option('bindir'),
|
9 |
+
- 'g_ir_scanner=${bindir}/g-ir-scanner',
|
10 |
+
- 'g_ir_compiler=${bindir}/g-ir-compiler@0@'.format(exe_ext),
|
11 |
+
- 'g_ir_generate=${bindir}/g-ir-generate@0@'.format(exe_ext),
|
12 |
+
+ 'g_ir_scanner=${prefix}/tools/gobject-introspection/g-ir-scanner',
|
13 |
+
+ 'g_ir_compiler=${prefix}/tools/gobject-introspection/g-ir-compiler@0@'.format(exe_ext),
|
14 |
+
+ 'g_ir_generate=${prefix}/tools/gobject-introspection/g-ir-generate@0@'.format(exe_ext),
|
15 |
+
'gidatadir=${datadir}/gobject-introspection-1.0',
|
16 |
+
'girdir=' + gir_dir_pc_prefix / 'gir-1.0',
|
17 |
+
'typelibdir=${libdir}/girepository-1.0',
|
cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/portfile.cmake
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
set(GI_MAJOR_MINOR 1.72)
|
3 |
+
set(GI_PATCH 0)
|
4 |
+
|
5 |
+
vcpkg_download_distfile(ARCHIVE
|
6 |
+
URLS "https://download.gnome.org/sources/gobject-introspection/${GI_MAJOR_MINOR}/gobject-introspection-${GI_MAJOR_MINOR}.${GI_PATCH}.tar.xz"
|
7 |
+
FILENAME "gobject-introspection-${GI_MAJOR_MINOR}.${GI_PATCH}.tar.xz"
|
8 |
+
SHA512 b8fba2bd12e93776c55228acf3487bef36ee40b1abdc7f681b827780ac94a8bfa1f59b0c30d60fa5a1fea2f610de78b9e52029f411128067808f17eb6374cdc5
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_extract_source_archive(
|
12 |
+
SOURCE_PATH
|
13 |
+
ARCHIVE "${ARCHIVE}"
|
14 |
+
PATCHES
|
15 |
+
0001-g-ir-tool-template.in.patch
|
16 |
+
0002-cross-build.patch
|
17 |
+
0003-fix-paths.patch
|
18 |
+
python.patch
|
19 |
+
fix-pkgconfig.patch
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_find_acquire_program(FLEX)
|
23 |
+
vcpkg_find_acquire_program(BISON)
|
24 |
+
|
25 |
+
set(OPTIONS_DEBUG -Dbuild_introspection_data=false)
|
26 |
+
if(VCPKG_CROSSCOMPILING)
|
27 |
+
list(APPEND OPTIONS_RELEASE -Dgi_cross_use_prebuilt_gi=true)
|
28 |
+
list(APPEND OPTIONS_RELEASE -Dbuild_introspection_data=false)
|
29 |
+
# g-ir-scanner is not correctly setup for the cross build and
|
30 |
+
# fails to correctly link against x86 libs (uses x64 instead)
|
31 |
+
else()
|
32 |
+
list(APPEND OPTIONS_RELEASE -Dbuild_introspection_data=true)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
vcpkg_configure_meson(
|
36 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
37 |
+
OPTIONS_DEBUG
|
38 |
+
${OPTIONS_DEBUG}
|
39 |
+
OPTIONS_RELEASE
|
40 |
+
${OPTIONS_RELEASE}
|
41 |
+
ADDITIONAL_BINARIES
|
42 |
+
flex='${FLEX}'
|
43 |
+
bison='${BISON}'
|
44 |
+
g-ir-annotation-tool='${CURRENT_HOST_INSTALLED_DIR}/tools/gobject-introspection/g-ir-annotation-tool'
|
45 |
+
g-ir-compiler='${CURRENT_HOST_INSTALLED_DIR}/tools/gobject-introspection/g-ir-compiler${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
46 |
+
g-ir-scanner='${CURRENT_HOST_INSTALLED_DIR}/tools/gobject-introspection/g-ir-scanner'
|
47 |
+
python='${CURRENT_HOST_INSTALLED_DIR}/tools/python3/python${VCPKG_HOST_EXECUTABLE_SUFFIX}'
|
48 |
+
)
|
49 |
+
|
50 |
+
vcpkg_host_path_list(APPEND ENV{PKG_CONFIG_PATH} "${CURRENT_INSTALLED_DIR}/lib/pkgconfig")
|
51 |
+
vcpkg_host_path_list(APPEND ENV{LIB} "${CURRENT_INSTALLED_DIR}/lib")
|
52 |
+
vcpkg_install_meson(ADD_BIN_TO_PATH)
|
53 |
+
|
54 |
+
vcpkg_copy_pdbs()
|
55 |
+
|
56 |
+
vcpkg_fixup_pkgconfig()
|
57 |
+
|
58 |
+
set(GI_TOOLS
|
59 |
+
g-ir-compiler
|
60 |
+
g-ir-generate
|
61 |
+
g-ir-inspect
|
62 |
+
)
|
63 |
+
set(GI_SCRIPTS
|
64 |
+
g-ir-annotation-tool
|
65 |
+
g-ir-scanner
|
66 |
+
)
|
67 |
+
|
68 |
+
vcpkg_copy_tools(TOOL_NAMES ${GI_TOOLS} AUTO_CLEAN)
|
69 |
+
foreach(script IN LISTS GI_SCRIPTS)
|
70 |
+
file(READ "${CURRENT_PACKAGES_DIR}/bin/${script}" _contents)
|
71 |
+
string(REPLACE "#!/usr/bin/env ${PYTHON3}" "#!/usr/bin/env python3" _contents "${_contents}")
|
72 |
+
string(REPLACE "datadir = \"${CURRENT_PACKAGES_DIR}/share\"" "raise Exception('could not find right path') " _contents "${_contents}")
|
73 |
+
string(REPLACE "pylibdir = os.path.join('${CURRENT_PACKAGES_DIR}/lib', 'gobject-introspection')" "raise Exception('could not find right path') " _contents "${_contents}")
|
74 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/tools/${PORT}/${script}" "${_contents}")
|
75 |
+
|
76 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/${script}")
|
77 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/bin/${script}")
|
78 |
+
endforeach()
|
79 |
+
|
80 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
81 |
+
file(GLOB _pyd_lib_files "${CURRENT_PACKAGES_DIR}/lib/gobject-introspection/giscanner/_giscanner.*.lib")
|
82 |
+
file(REMOVE ${_pyd_lib_files})
|
83 |
+
endif()
|
84 |
+
|
85 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}")
|
86 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
87 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")
|
88 |
+
|
89 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/python.patch
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/giscanner/meson.build b/giscanner/meson.build
|
2 |
+
index e63a5ab78..3d7dc678a 100644
|
3 |
+
--- a/giscanner/meson.build
|
4 |
+
+++ b/giscanner/meson.build
|
5 |
+
@@ -97,11 +97,11 @@ giscanner_lib = static_library('giscanner',
|
6 |
+
dependencies: [glib_dep, gobject_dep, gio_dep, gmodule_dep],
|
7 |
+
)
|
8 |
+
|
9 |
+
# https://github.com/mesonbuild/meson/issues/4117
|
10 |
+
if host_machine.system() == 'windows'
|
11 |
+
+ python_ext_dep = libpython_dep
|
12 |
+
- python_ext_dep = python.dependency()
|
13 |
+
else
|
14 |
+
+ python_ext_dep = libpython_dep
|
15 |
+
- python_ext_dep = python.dependency().partial_dependency(compile_args: true)
|
16 |
+
endif
|
17 |
+
|
18 |
+
if not python_ext_dep.found()
|
19 |
+
diff --git a/meson.build b/meson.build
|
20 |
+
index 2a9d68556..cffe9014c 100644
|
21 |
+
--- a/meson.build
|
22 |
+
+++ b/meson.build
|
23 |
+
@@ -156,4 +156,5 @@ libffi_dep = dependency('libffi',
|
24 |
+
|
25 |
+
# python headers
|
26 |
+
-cc.check_header('Python.h', dependencies: [python.dependency()], required: true)
|
27 |
+
+libpython_dep = dependency('python-@0@'.format(python_version), method : 'pkg-config')
|
28 |
+
+cc.check_header('Python.h', dependencies: [libpython_dep], required: true)
|
29 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/gobject-introspection/vcpkg.json
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gobject-introspection",
|
3 |
+
"version": "1.72.0",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "A middleware layer between C libraries (using GObject) and language bindings.",
|
6 |
+
"homepage": "https://gi.readthedocs.io/en/latest/",
|
7 |
+
"license": null,
|
8 |
+
"supports": "!static & native",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "cairo",
|
12 |
+
"default-features": false,
|
13 |
+
"features": [
|
14 |
+
"gobject"
|
15 |
+
]
|
16 |
+
},
|
17 |
+
"glib",
|
18 |
+
{
|
19 |
+
"name": "glib",
|
20 |
+
"host": true
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "gobject-introspection",
|
24 |
+
"host": true
|
25 |
+
},
|
26 |
+
"libffi",
|
27 |
+
"python3",
|
28 |
+
{
|
29 |
+
"name": "python3",
|
30 |
+
"host": true
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"name": "vcpkg-tool-meson",
|
34 |
+
"host": true
|
35 |
+
}
|
36 |
+
]
|
37 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/itpp/fix-linux.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/itpp/base/random_dsfmt.h b/itpp/base/random_dsfmt.h
|
2 |
+
index ccbf182..de819fb 100644
|
3 |
+
--- a/itpp/base/random_dsfmt.h
|
4 |
+
+++ b/itpp/base/random_dsfmt.h
|
5 |
+
@@ -299,7 +299,12 @@ private:
|
6 |
+
*/
|
7 |
+
static void do_recursion(typename Context::w128_t *r, typename Context::w128_t *a, typename Context::w128_t *b, typename Context::w128_t *lung) {
|
8 |
+
#if defined(__SSE2__)
|
9 |
+
+
|
10 |
+
+#ifdef __linux__
|
11 |
+
+#define SSE2_SHUFF 0x1bU
|
12 |
+
+#else
|
13 |
+
const unsigned int SSE2_SHUFF = 0x1bU;
|
14 |
+
+#endif
|
15 |
+
|
16 |
+
__m128i x = a->si;
|
17 |
+
__m128i z = _mm_slli_epi64(x, SL1);
|
cc-multilingual-main/cc_net/vcpkg/ports/itpp/fix-uwp.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/itpp/base/timing.cpp b/itpp/base/timing.cpp
|
2 |
+
index 58178e4..6b173d0 100644
|
3 |
+
--- a/itpp/base/timing.cpp
|
4 |
+
+++ b/itpp/base/timing.cpp
|
5 |
+
@@ -52,6 +52,10 @@
|
6 |
+
#if defined(_WIN32) && !defined(__CYGWIN__)
|
7 |
+
#include <windows.h>
|
8 |
+
|
9 |
+
+#if defined(WINAPI_FAMILY) && (WINAPI_FAMILY == WINAPI_FAMILY_APP)
|
10 |
+
+#include <Winsock2.h>
|
11 |
+
+#endif
|
12 |
+
+
|
13 |
+
int gettimeofday(struct timeval* p, void*)
|
14 |
+
{
|
15 |
+
union {
|
cc-multilingual-main/cc_net/vcpkg/ports/itpp/msvc2013.patch
ADDED
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
CMakeLists.txt | 2 ++
|
2 |
+
itpp/base/algebra/eigen.cpp | 1 +
|
3 |
+
itpp/base/algebra/ls_solve.cpp | 2 +-
|
4 |
+
itpp/base/algebra/qr.cpp | 1 +
|
5 |
+
itpp/base/algebra/svd.cpp | 2 +-
|
6 |
+
itpp/base/bessel/gamma.cpp | 5 +++++
|
7 |
+
itpp/base/itcompat.cpp | 11 ++++++++++-
|
8 |
+
itpp/base/itcompat.h | 14 ++++++++++++--
|
9 |
+
itpp/base/matfunc.h | 1 +
|
10 |
+
itpp/base/svec.h | 1 +
|
11 |
+
itpp/comm/siso_dem.cpp | 6 ++++++
|
12 |
+
itpp/comm/siso_eq.cpp | 6 ++++++
|
13 |
+
itpp/comm/siso_mud.cpp | 7 +++++++
|
14 |
+
itpp/comm/siso_nsc.cpp | 6 ++++++
|
15 |
+
itpp/comm/siso_rsc.cpp | 7 +++++++
|
16 |
+
15 files changed, 67 insertions(+), 5 deletions(-)
|
17 |
+
|
18 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
19 |
+
index 9f6a9a6..2360f86 100644
|
20 |
+
--- a/CMakeLists.txt
|
21 |
+
+++ b/CMakeLists.txt
|
22 |
+
@@ -122,7 +122,9 @@ CHECK_CXX_SYMBOL_EXISTS ( isnan "cmath" HAVE_DECL_ISNAN )
|
23 |
+
CHECK_CXX_SYMBOL_EXISTS ( signgam "cmath" HAVE_DECL_SIGNGAM )
|
24 |
+
|
25 |
+
#check for functions
|
26 |
+
+if( NOT MSVC )
|
27 |
+
set(CMAKE_REQUIRED_LIBRARIES m)
|
28 |
+
+endif()
|
29 |
+
include (CheckFunctionExists)
|
30 |
+
CHECK_FUNCTION_EXISTS ( acosh HAVE_ACOSH )
|
31 |
+
CHECK_FUNCTION_EXISTS ( asinh HAVE_ASINH )
|
32 |
+
diff --git a/itpp/base/algebra/eigen.cpp b/itpp/base/algebra/eigen.cpp
|
33 |
+
index 8c0c36b..54ae3e1 100644
|
34 |
+
--- a/itpp/base/algebra/eigen.cpp
|
35 |
+
+++ b/itpp/base/algebra/eigen.cpp
|
36 |
+
@@ -39,6 +39,7 @@
|
37 |
+
#include <itpp/base/algebra/eigen.h>
|
38 |
+
#include <itpp/base/converters.h>
|
39 |
+
|
40 |
+
+#include <algorithm>
|
41 |
+
|
42 |
+
namespace itpp
|
43 |
+
{
|
44 |
+
diff --git a/itpp/base/algebra/ls_solve.cpp b/itpp/base/algebra/ls_solve.cpp
|
45 |
+
index dae38fc..95abf0a 100644
|
46 |
+
--- a/itpp/base/algebra/ls_solve.cpp
|
47 |
+
+++ b/itpp/base/algebra/ls_solve.cpp
|
48 |
+
@@ -37,7 +37,7 @@
|
49 |
+
#endif
|
50 |
+
|
51 |
+
#include <itpp/base/algebra/ls_solve.h>
|
52 |
+
-
|
53 |
+
+#include <algorithm>
|
54 |
+
|
55 |
+
namespace itpp
|
56 |
+
{
|
57 |
+
diff --git a/itpp/base/algebra/qr.cpp b/itpp/base/algebra/qr.cpp
|
58 |
+
index 91dfb2b..0b47294 100644
|
59 |
+
--- a/itpp/base/algebra/qr.cpp
|
60 |
+
+++ b/itpp/base/algebra/qr.cpp
|
61 |
+
@@ -39,6 +39,7 @@
|
62 |
+
#include <itpp/base/algebra/qr.h>
|
63 |
+
#include <itpp/base/specmat.h>
|
64 |
+
|
65 |
+
+#include <algorithm>
|
66 |
+
|
67 |
+
namespace itpp
|
68 |
+
{
|
69 |
+
diff --git a/itpp/base/algebra/svd.cpp b/itpp/base/algebra/svd.cpp
|
70 |
+
index aa21e36..b2e499c 100644
|
71 |
+
--- a/itpp/base/algebra/svd.cpp
|
72 |
+
+++ b/itpp/base/algebra/svd.cpp
|
73 |
+
@@ -37,7 +37,7 @@
|
74 |
+
#endif
|
75 |
+
|
76 |
+
#include <itpp/base/algebra/svd.h>
|
77 |
+
-
|
78 |
+
+#include <algorithm>
|
79 |
+
|
80 |
+
namespace itpp
|
81 |
+
{
|
82 |
+
diff --git a/itpp/base/bessel/gamma.cpp b/itpp/base/bessel/gamma.cpp
|
83 |
+
index 162c4ae..9405507 100644
|
84 |
+
--- a/itpp/base/bessel/gamma.cpp
|
85 |
+
+++ b/itpp/base/bessel/gamma.cpp
|
86 |
+
@@ -34,6 +34,11 @@
|
87 |
+
#include <itpp/base/itcompat.h>
|
88 |
+
#include <itpp/base/math/misc.h>
|
89 |
+
|
90 |
+
+#if _MSC_VER
|
91 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
92 |
+
+#pragma warning(disable: 4056)
|
93 |
+
+#pragma warning(disable: 4756)
|
94 |
+
+#endif
|
95 |
+
|
96 |
+
/*
|
97 |
+
* Gamma function
|
98 |
+
diff --git a/itpp/base/itcompat.cpp b/itpp/base/itcompat.cpp
|
99 |
+
index f99ec81..aa34b28 100644
|
100 |
+
--- a/itpp/base/itcompat.cpp
|
101 |
+
+++ b/itpp/base/itcompat.cpp
|
102 |
+
@@ -47,12 +47,21 @@ double tgamma(double x)
|
103 |
+
}
|
104 |
+
#endif
|
105 |
+
|
106 |
+
-#if !defined(HAVE_LGAMMA) || (HAVE_DECL_SIGNGAM != 1)
|
107 |
+
+#if !defined(HAVE_LGAMMA) && (HAVE_DECL_SIGNGAM != 1)
|
108 |
+
// The sign of the Gamma function is returned in the external integer
|
109 |
+
// signgam declared in <math.h>. It is 1 when the Gamma function is positive
|
110 |
+
// or zero, -1 when it is negative. However, MinGW definition of lgamma()
|
111 |
+
// function does not use the global signgam variable.
|
112 |
+
+//May 3rd 2015 (Andy Panov):
|
113 |
+
+//Nonetheless, I guess it would be smarter not to break the ODR rule and not to provide our own definition of lgamma
|
114 |
+
+//function when HAVE_LGAMMA is defined. If we still provide the definition, two definitions
|
115 |
+
+//of the same function will exist in the program (this is undefined behaviour, as C++ standard says),
|
116 |
+
+//so we can not ensure linker will choose our definition and user's code will work as expected.
|
117 |
+
+//I guess, error message from linker regarding the unresolved symbol is much better option,
|
118 |
+
+//since it clearly points to the math library limitations. Otherwise user can get a malfunctioning program
|
119 |
+
+//with really subtle error.
|
120 |
+
int signgam;
|
121 |
+
+
|
122 |
+
// Logarithm of an absolute value of gamma function
|
123 |
+
double lgamma(double x)
|
124 |
+
{
|
125 |
+
diff --git a/itpp/base/itcompat.h b/itpp/base/itcompat.h
|
126 |
+
index e6be223..dcf2ed7 100644
|
127 |
+
--- a/itpp/base/itcompat.h
|
128 |
+
+++ b/itpp/base/itcompat.h
|
129 |
+
@@ -41,8 +41,12 @@
|
130 |
+
#if defined(_MSC_VER)
|
131 |
+
# include <cfloat>
|
132 |
+
# define finite(x) _finite(x)
|
133 |
+
+#ifndef HAVE_STD_ISFINITE
|
134 |
+
# define isfinite(x) _finite(x)
|
135 |
+
+#endif
|
136 |
+
+#ifndef HAVE_STD_ISNAN
|
137 |
+
# define isnan(x) _isnan(x)
|
138 |
+
+#endif
|
139 |
+
# define fpclass(x) _fpclass(x)
|
140 |
+
# define FP_NINF _FPCLASS_NINF
|
141 |
+
# define FP_PINF _FPCLASS_PINF
|
142 |
+
@@ -119,13 +123,19 @@ inline bool isfinite(double x)
|
143 |
+
double tgamma(double x);
|
144 |
+
#endif
|
145 |
+
|
146 |
+
-#if !defined(HAVE_LGAMMA) || (HAVE_DECL_SIGNGAM != 1)
|
147 |
+
+#if !defined(HAVE_LGAMMA) && (HAVE_DECL_SIGNGAM != 1)
|
148 |
+
+//Provide own definitions if both conditions are met:
|
149 |
+
+//-lgammma is not defined
|
150 |
+
+//-signgam was not found
|
151 |
+
+//See ODR desicussion in itcompat.cpp
|
152 |
+
+
|
153 |
+
//! Lograrithm of an absolute gamma function
|
154 |
+
double lgamma(double x);
|
155 |
+
//! Global variable needed by \c lgamma function
|
156 |
+
extern int signgam;
|
157 |
+
#endif
|
158 |
+
|
159 |
+
+
|
160 |
+
#ifndef HAVE_CBRT
|
161 |
+
//! Cubic root
|
162 |
+
double cbrt(double x);
|
163 |
+
@@ -141,7 +151,7 @@ inline double log1p(double x) { return std::log(1.0 + x); }
|
164 |
+
//! Base-2 logarithm
|
165 |
+
inline double log2(double x)
|
166 |
+
{
|
167 |
+
- static const double one_over_log2 = 1.0 / std::log(2.0);
|
168 |
+
+ const double one_over_log2 = 1.0 / std::log(2.0);
|
169 |
+
return std::log(x) * one_over_log2;
|
170 |
+
}
|
171 |
+
#endif
|
172 |
+
diff --git a/itpp/base/matfunc.h b/itpp/base/matfunc.h
|
173 |
+
index 8ae683e..60cf95f 100644
|
174 |
+
--- a/itpp/base/matfunc.h
|
175 |
+
+++ b/itpp/base/matfunc.h
|
176 |
+
@@ -36,6 +36,7 @@
|
177 |
+
#include <itpp/base/algebra/inv.h>
|
178 |
+
#include <itpp/base/algebra/svd.h>
|
179 |
+
#include <itpp/itexports.h>
|
180 |
+
+#include <algorithm>
|
181 |
+
|
182 |
+
namespace itpp
|
183 |
+
{
|
184 |
+
diff --git a/itpp/base/svec.h b/itpp/base/svec.h
|
185 |
+
index d105b2f..3a2c15b 100644
|
186 |
+
--- a/itpp/base/svec.h
|
187 |
+
+++ b/itpp/base/svec.h
|
188 |
+
@@ -33,6 +33,7 @@
|
189 |
+
#include <itpp/base/math/min_max.h>
|
190 |
+
#include <cstdlib>
|
191 |
+
#include <itpp/itexports.h>
|
192 |
+
+#include <algorithm>
|
193 |
+
|
194 |
+
namespace itpp
|
195 |
+
{
|
196 |
+
diff --git a/itpp/comm/siso_dem.cpp b/itpp/comm/siso_dem.cpp
|
197 |
+
index 666f38c..4fa03fd 100644
|
198 |
+
--- a/itpp/comm/siso_dem.cpp
|
199 |
+
+++ b/itpp/comm/siso_dem.cpp
|
200 |
+
@@ -32,6 +32,12 @@
|
201 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
202 |
+
#endif
|
203 |
+
|
204 |
+
+#if _MSC_VER
|
205 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
206 |
+
+#pragma warning(disable: 4056)
|
207 |
+
+#endif
|
208 |
+
+
|
209 |
+
+
|
210 |
+
namespace itpp
|
211 |
+
{
|
212 |
+
void SISO::find_half_const(int &select_half, itpp::vec &re_part, itpp::bmat &re_bin_part, itpp::vec &im_part, itpp::bmat &im_bin_part)
|
213 |
+
diff --git a/itpp/comm/siso_eq.cpp b/itpp/comm/siso_eq.cpp
|
214 |
+
index 856c01a..6553b33 100644
|
215 |
+
--- a/itpp/comm/siso_eq.cpp
|
216 |
+
+++ b/itpp/comm/siso_eq.cpp
|
217 |
+
@@ -32,6 +32,12 @@
|
218 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
219 |
+
#endif
|
220 |
+
|
221 |
+
+#if _MSC_VER
|
222 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
223 |
+
+#pragma warning(disable: 4056)
|
224 |
+
+#pragma warning(disable: 4756)
|
225 |
+
+#endif
|
226 |
+
+
|
227 |
+
namespace itpp
|
228 |
+
{
|
229 |
+
void SISO::gen_chtrellis(void)
|
230 |
+
diff --git a/itpp/comm/siso_mud.cpp b/itpp/comm/siso_mud.cpp
|
231 |
+
index 60aa6d3..a7ff735 100644
|
232 |
+
--- a/itpp/comm/siso_mud.cpp
|
233 |
+
+++ b/itpp/comm/siso_mud.cpp
|
234 |
+
@@ -32,6 +32,13 @@
|
235 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
236 |
+
#endif
|
237 |
+
|
238 |
+
+#if _MSC_VER
|
239 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
240 |
+
+#pragma warning(disable: 4056)
|
241 |
+
+#pragma warning(disable: 4756)
|
242 |
+
+#endif
|
243 |
+
+
|
244 |
+
+
|
245 |
+
namespace itpp
|
246 |
+
{
|
247 |
+
void SISO::descrambler(itpp::vec &extrinsic_coded, itpp::vec &extrinsic_data, const itpp::vec &intrinsic_coded, const itpp::vec &apriori_data)
|
248 |
+
diff --git a/itpp/comm/siso_nsc.cpp b/itpp/comm/siso_nsc.cpp
|
249 |
+
index ca7d19a..12ca62a 100644
|
250 |
+
--- a/itpp/comm/siso_nsc.cpp
|
251 |
+
+++ b/itpp/comm/siso_nsc.cpp
|
252 |
+
@@ -33,6 +33,12 @@
|
253 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
254 |
+
#endif
|
255 |
+
|
256 |
+
+#if _MSC_VER
|
257 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
258 |
+
+#pragma warning(disable: 4056)
|
259 |
+
+#pragma warning(disable: 4756)
|
260 |
+
+#endif
|
261 |
+
+
|
262 |
+
namespace itpp
|
263 |
+
{
|
264 |
+
void SISO::gen_nsctrellis(void)
|
265 |
+
diff --git a/itpp/comm/siso_rsc.cpp b/itpp/comm/siso_rsc.cpp
|
266 |
+
index e5003c7..9e3eea1 100644
|
267 |
+
--- a/itpp/comm/siso_rsc.cpp
|
268 |
+
+++ b/itpp/comm/siso_rsc.cpp
|
269 |
+
@@ -29,6 +29,13 @@
|
270 |
+
#include <itpp/comm/siso.h>
|
271 |
+
#include <itpp/base/itcompat.h>
|
272 |
+
#include <limits>
|
273 |
+
+
|
274 |
+
+#if _MSC_VER
|
275 |
+
+//suppress warnings regarding the use infinity in fp arithmetic
|
276 |
+
+#pragma warning(disable: 4056)
|
277 |
+
+#pragma warning(disable: 4756)
|
278 |
+
+#endif
|
279 |
+
+
|
280 |
+
#ifndef INFINITY
|
281 |
+
#define INFINITY std::numeric_limits<double>::infinity()
|
282 |
+
#endif
|
283 |
+
|
284 |
+
#Remove this patch if the source has fixed these issues.
|
cc-multilingual-main/cc_net/vcpkg/ports/itpp/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(ITPP_VERSION 4.3.1)
|
2 |
+
|
3 |
+
vcpkg_from_sourceforge(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO itpp/itpp
|
6 |
+
REF ${ITPP_VERSION}
|
7 |
+
FILENAME "itpp-${ITPP_VERSION}.tar.bz2"
|
8 |
+
SHA512 b46d048fa7f33e80d2291a5e38e205c159791ea200f92c70d69e8ad8447ac2f0c847fece566a99af739853a1643cb16e226b4200c8bf115417f324e6d38c66bd
|
9 |
+
PATCHES
|
10 |
+
msvc2013.patch
|
11 |
+
fix-uwp.patch
|
12 |
+
fix-linux.patch
|
13 |
+
rename-version.patch
|
14 |
+
)
|
15 |
+
file(RENAME "${SOURCE_PATH}/VERSION" "${SOURCE_PATH}/VERSION.txt")
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
OPTIONS
|
20 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_LAPACK=ON
|
21 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_FFT=ON
|
22 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_BLAS=ON
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
|
27 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
29 |
+
endif()
|
30 |
+
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
36 |
+
|
37 |
+
vcpkg_fixup_pkgconfig()
|
cc-multilingual-main/cc_net/vcpkg/ports/itpp/rename-version.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/autogen.sh
|
2 |
+
+++ b/autogen.sh
|
3 |
+
@@ -25,6 +25,6 @@
|
4 |
+
|
5 |
+
-PV=$(cat VERSION | cut -d' ' -f1)
|
6 |
+
-LV=$(cat VERSION | cut -d' ' -f2)
|
7 |
+
-if test "x$(cat VERSION | cut -d' ' -f3)" = "xsvn"; then
|
8 |
+
+PV=$(cat VERSION.txt | cut -d' ' -f1)
|
9 |
+
+LV=$(cat VERSION.txt | cut -d' ' -f2)
|
10 |
+
+if test "x$(cat VERSION.txt | cut -d' ' -f3)" = "xsvn"; then
|
11 |
+
if test -d ".git/svn"; then
|
12 |
+
REV=$(LC_ALL=C git svn find-rev HEAD)
|
cc-multilingual-main/cc_net/vcpkg/ports/itpp/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "itpp",
|
3 |
+
"version-semver": "4.3.1",
|
4 |
+
"port-version": 10,
|
5 |
+
"description": "IT++ is a C++ library of mathematical, signal processing and communication classes and functions. Its main use is in simulation of communication systems and for performing research in the area of communications.",
|
6 |
+
"homepage": "http://itpp.sourceforge.net",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/librsvg/CMakeLists.txt
ADDED
@@ -0,0 +1,173 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.11)
|
2 |
+
project(librsvg C)
|
3 |
+
|
4 |
+
set(RSVG_API_MAJOR_VERSION 2)
|
5 |
+
set(RSVG_API_VERSION "2.0")
|
6 |
+
Set(VERSION "2.40.20")
|
7 |
+
set(LIBRSVG_TARGET "rsvg-${RSVG_API_MAJOR_VERSION}")
|
8 |
+
|
9 |
+
Set(prefix "${CMAKE_INSTALL_PREFIX}")
|
10 |
+
Set(exec_prefix "\${prefix}")
|
11 |
+
Set(libdir "\${prefix}/lib")
|
12 |
+
Set(includedir "\${prefix}/include")
|
13 |
+
|
14 |
+
# Public required modules (cf. headers and librsvg.pc)
|
15 |
+
set(librsvg_pc_requires glib-2.0 gio-2.0 gdk-pixbuf-2.0 cairo)
|
16 |
+
# Other required modules from configure.ac
|
17 |
+
set(librsvg_pc_requires_private
|
18 |
+
libxml-2.0
|
19 |
+
pangocairo
|
20 |
+
pangoft2
|
21 |
+
cairo-png
|
22 |
+
libcroco-0.6
|
23 |
+
gthread-2.0
|
24 |
+
gmodule-2.0
|
25 |
+
gobject-2.0
|
26 |
+
gio-unix-2.0
|
27 |
+
fontconfig
|
28 |
+
)
|
29 |
+
if(WIN32)
|
30 |
+
string(REPLACE "gio-unix" "gio-windows" librsvg_pc_requires_private "${librsvg_pc_requires_private}")
|
31 |
+
endif()
|
32 |
+
|
33 |
+
find_package(PkgConfig REQUIRED)
|
34 |
+
pkg_check_modules(LIBRSVG_LINK_PUBLIC ${librsvg_pc_requires} IMPORTED_TARGET REQUIRED)
|
35 |
+
pkg_check_modules(LIBRSVG_LINK_PRIVATE ${librsvg_pc_requires_private} IMPORTED_TARGET REQUIRED)
|
36 |
+
|
37 |
+
set(LIBRSVG_SOURCES
|
38 |
+
librsvg-features.c
|
39 |
+
rsvg-css.c
|
40 |
+
rsvg-css.h
|
41 |
+
rsvg-compat.h
|
42 |
+
rsvg-defs.c
|
43 |
+
rsvg-defs.h
|
44 |
+
rsvg-image.c
|
45 |
+
rsvg-image.h
|
46 |
+
rsvg-io.c
|
47 |
+
rsvg-io.h
|
48 |
+
rsvg-paint-server.c
|
49 |
+
rsvg-paint-server.h
|
50 |
+
rsvg-path.c
|
51 |
+
rsvg-path.h
|
52 |
+
rsvg-private.h
|
53 |
+
rsvg-base-file-util.c
|
54 |
+
rsvg-filter.c
|
55 |
+
rsvg-filter.h
|
56 |
+
rsvg-marker.c
|
57 |
+
rsvg-marker.h
|
58 |
+
rsvg-mask.c
|
59 |
+
rsvg-mask.h
|
60 |
+
rsvg-shapes.c
|
61 |
+
rsvg-shapes.h
|
62 |
+
rsvg-structure.c
|
63 |
+
rsvg-structure.h
|
64 |
+
rsvg-styles.c
|
65 |
+
rsvg-styles.h
|
66 |
+
rsvg-text.c
|
67 |
+
rsvg-text.h
|
68 |
+
rsvg-cond.c
|
69 |
+
rsvg-base.c
|
70 |
+
librsvg-enum-types.c
|
71 |
+
rsvg-cairo-draw.c
|
72 |
+
rsvg-cairo-draw.h
|
73 |
+
rsvg-cairo-render.c
|
74 |
+
rsvg-cairo-render.h
|
75 |
+
rsvg-cairo-clip.h
|
76 |
+
rsvg-cairo-clip.c
|
77 |
+
rsvg.c
|
78 |
+
rsvg-gobject.c
|
79 |
+
rsvg-file-util.c
|
80 |
+
rsvg-size-callback.c
|
81 |
+
rsvg-size-callback.h
|
82 |
+
rsvg-xml.c
|
83 |
+
rsvg-xml.h
|
84 |
+
rsvg.h
|
85 |
+
rsvg-cairo.h
|
86 |
+
librsvg-features.h
|
87 |
+
librsvg-enum-types.h
|
88 |
+
)
|
89 |
+
|
90 |
+
if(WIN32)
|
91 |
+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.h.win32" "${CMAKE_CURRENT_BINARY_DIR}/config.h" COPYONLY)
|
92 |
+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/rsvg.symbols" rsvg_symbols)
|
93 |
+
string(REGEX REPLACE "/[*][^*]*[*]/" "" rsvg_symbols "${rsvg_symbols}")
|
94 |
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/rsvg.def" "EXPORTS\n${rsvg_symbols}")
|
95 |
+
list(APPEND LIBRSVG_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/rsvg.def")
|
96 |
+
else()
|
97 |
+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/config.h.linux" "${CMAKE_CURRENT_BINARY_DIR}/config.h" COPYONLY)
|
98 |
+
list(APPEND LIBRSVG_SOURCES rsvg.symbols)
|
99 |
+
endif()
|
100 |
+
|
101 |
+
add_library(${LIBRSVG_TARGET} ${LIBRSVG_SOURCES})
|
102 |
+
target_compile_definitions(${LIBRSVG_TARGET} PRIVATE
|
103 |
+
-DRSVG_COMPILATION
|
104 |
+
-D_CRT_SECURE_NO_WARNINGS
|
105 |
+
-DSRCDIR=""
|
106 |
+
$<$<BOOL:${MINGW}>:HAVE_STRTOK_R>
|
107 |
+
)
|
108 |
+
target_include_directories(${LIBRSVG_TARGET}
|
109 |
+
PRIVATE
|
110 |
+
"${CMAKE_CURRENT_BINARY_DIR}"
|
111 |
+
PUBLIC
|
112 |
+
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>"
|
113 |
+
"$<INSTALL_INTERFACE:include/librsvg-${RSVG_API_VERSION}>"
|
114 |
+
)
|
115 |
+
target_link_libraries(${LIBRSVG_TARGET}
|
116 |
+
PUBLIC
|
117 |
+
PkgConfig::LIBRSVG_LINK_PUBLIC
|
118 |
+
PRIVATE
|
119 |
+
PkgConfig::LIBRSVG_LINK_PRIVATE
|
120 |
+
)
|
121 |
+
install(TARGETS ${LIBRSVG_TARGET}
|
122 |
+
RUNTIME DESTINATION bin
|
123 |
+
LIBRARY DESTINATION lib
|
124 |
+
ARCHIVE DESTINATION lib
|
125 |
+
)
|
126 |
+
install(
|
127 |
+
FILES
|
128 |
+
rsvg.h
|
129 |
+
rsvg-cairo.h
|
130 |
+
librsvg-features.h
|
131 |
+
librsvg-enum-types.h
|
132 |
+
DESTINATION include/librsvg-${RSVG_API_VERSION}/librsvg
|
133 |
+
)
|
134 |
+
|
135 |
+
|
136 |
+
set(gdk_pixbuf_pc_requires_private gdk-pixbuf-2.0)
|
137 |
+
pkg_check_modules(GDK_PIXBUF ${gdk_pixbuf_pc_requires_private} IMPORTED_TARGET REQUIRED)
|
138 |
+
pkg_get_variable(GDK_PIXBUF_MODULEDIR ${gdk_pixbuf_pc_requires_private} gdk_pixbuf_moduledir)
|
139 |
+
|
140 |
+
set(PIXBUFLOADERSVG_SOURCES
|
141 |
+
gdk-pixbuf-loader/io-svg.c
|
142 |
+
)
|
143 |
+
|
144 |
+
add_library(pixbufloader-svg MODULE ${PIXBUFLOADERSVG_SOURCES})
|
145 |
+
target_include_directories(pixbufloader-svg
|
146 |
+
PRIVATE
|
147 |
+
"${CMAKE_CURRENT_BINARY_DIR}"
|
148 |
+
"${CMAKE_CURRENT_SOURCE_DIR}"
|
149 |
+
)
|
150 |
+
target_compile_definitions(pixbufloader-svg PRIVATE
|
151 |
+
-DRSVG_COMPILATION
|
152 |
+
-D_CRT_SECURE_NO_WARNINGS
|
153 |
+
-DSRCDIR=""
|
154 |
+
-DGDK_PIXBUF_ENABLE_BACKEND
|
155 |
+
-DG_LOG_DOMAIN="libpixbufloader-svg"
|
156 |
+
)
|
157 |
+
target_link_libraries(pixbufloader-svg
|
158 |
+
PRIVATE
|
159 |
+
${LIBRSVG_TARGET}
|
160 |
+
PkgConfig::GDK_PIXBUF
|
161 |
+
)
|
162 |
+
install(TARGETS pixbufloader-svg
|
163 |
+
RUNTIME DESTINATION "${GDK_PIXBUF_MODULEDIR}"
|
164 |
+
LIBRARY DESTINATION "${GDK_PIXBUF_MODULEDIR}"
|
165 |
+
)
|
166 |
+
|
167 |
+
|
168 |
+
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/librsvg.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/librsvg.pc" @ONLY)
|
169 |
+
file(READ "${CMAKE_CURRENT_BINARY_DIR}/librsvg.pc" librsvg_pc)
|
170 |
+
list(JOIN librsvg_pc_requires_private " " requires_private)
|
171 |
+
string(REPLACE "Requires.private:" "Requires.private: ${requires_private}" librsvg_pc "${librsvg_pc}")
|
172 |
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/librsvg.pc" "${librsvg_pc}")
|
173 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/librsvg.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig" RENAME "librsvg-${RSVG_API_VERSION}.pc")
|
cc-multilingual-main/cc_net/vcpkg/ports/librsvg/config.h.linux
ADDED
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* config.h. Generated from config.h.in by configure. */
|
2 |
+
/* config.h.in. Generated from configure.ac by autoheader. */
|
3 |
+
|
4 |
+
/* Define if building universal (internal helper macro) */
|
5 |
+
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
6 |
+
|
7 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
8 |
+
#define HAVE_DLFCN_H 1
|
9 |
+
|
10 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
11 |
+
#define HAVE_INTTYPES_H 1
|
12 |
+
|
13 |
+
/* Define if your <locale.h> file defines LC_MESSAGES. */
|
14 |
+
#define HAVE_LC_MESSAGES 1
|
15 |
+
|
16 |
+
/* Define to 1 if you have the <locale.h> header file. */
|
17 |
+
#define HAVE_LOCALE_H 1
|
18 |
+
|
19 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
20 |
+
#define HAVE_MEMORY_H 1
|
21 |
+
|
22 |
+
/* Have the pangoft2 library */
|
23 |
+
#define HAVE_PANGOFT2 1
|
24 |
+
|
25 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
26 |
+
#define HAVE_STDINT_H 1
|
27 |
+
|
28 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
29 |
+
#define HAVE_STDLIB_H 1
|
30 |
+
|
31 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
32 |
+
#define HAVE_STRINGS_H 1
|
33 |
+
|
34 |
+
/* Define to 1 if you have the <string.h> header file. */
|
35 |
+
#define HAVE_STRING_H 1
|
36 |
+
|
37 |
+
/* Define to 1 if you have the `strtok_r' function. */
|
38 |
+
#define HAVE_STRTOK_R 1
|
39 |
+
|
40 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
41 |
+
#define HAVE_SYS_STAT_H 1
|
42 |
+
|
43 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
44 |
+
#define HAVE_SYS_TYPES_H 1
|
45 |
+
|
46 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
47 |
+
#define HAVE_UNISTD_H 1
|
48 |
+
|
49 |
+
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
50 |
+
#define LT_OBJDIR ".libs/"
|
51 |
+
|
52 |
+
/* Name of package */
|
53 |
+
#define PACKAGE "librsvg"
|
54 |
+
|
55 |
+
/* Define to the address where bug reports for this package should be sent. */
|
56 |
+
#define PACKAGE_BUGREPORT "https://bugzilla.gnome.org/enter_bug.cgi?product=librsvg"
|
57 |
+
|
58 |
+
/* Define to the full name of this package. */
|
59 |
+
#define PACKAGE_NAME "RSVG"
|
60 |
+
|
61 |
+
/* Define to the full name and version of this package. */
|
62 |
+
#define PACKAGE_STRING "RSVG 2.40.20"
|
63 |
+
|
64 |
+
/* Define to the one symbol short name of this package. */
|
65 |
+
#define PACKAGE_TARNAME "librsvg"
|
66 |
+
|
67 |
+
/* Define to the home page for this package. */
|
68 |
+
#define PACKAGE_URL ""
|
69 |
+
|
70 |
+
/* Define to the version of this package. */
|
71 |
+
#define PACKAGE_VERSION "2.40.20"
|
72 |
+
|
73 |
+
/* Define to 1 if you have the ANSI C header files. */
|
74 |
+
#define STDC_HEADERS 1
|
75 |
+
|
76 |
+
/* Version number of package */
|
77 |
+
#define VERSION "2.40.20"
|
78 |
+
|
79 |
+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
80 |
+
significant byte first (like Motorola and SPARC, unlike Intel). */
|
81 |
+
#if defined AC_APPLE_UNIVERSAL_BUILD
|
82 |
+
# if defined __BIG_ENDIAN__
|
83 |
+
# define WORDS_BIGENDIAN 1
|
84 |
+
# endif
|
85 |
+
#else
|
86 |
+
# ifndef WORDS_BIGENDIAN
|
87 |
+
/* # undef WORDS_BIGENDIAN */
|
88 |
+
# endif
|
89 |
+
#endif
|
cc-multilingual-main/cc_net/vcpkg/ports/librsvg/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# port update requires rust/cargo
|
2 |
+
|
3 |
+
string(REGEX REPLACE "^([0-9]*[.][0-9]*)[.].*" "\\1" MAJOR_MINOR "${VERSION}")
|
4 |
+
vcpkg_download_distfile(ARCHIVE
|
5 |
+
URLS "https://download.gnome.org/sources/librsvg/${MAJOR_MINOR}/librsvg-${VERSION}.tar.xz"
|
6 |
+
"https://www.mirrorservice.org/sites/ftp.gnome.org/pub/GNOME/sources/librsvg/${MAJOR_MINOR}/librsvg-${VERSION}.tar.xz"
|
7 |
+
FILENAME "librsvg-${VERSION}.tar.xz"
|
8 |
+
SHA512 cdd8224deb4c3786e29f48ed02c32ed9dff5cb15aba574a5ef845801ad3669cfcc3eedb9d359c22213dc7a29de24c363248825adad5877c40abf73b3688ff12f
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_extract_source_archive(
|
12 |
+
SOURCE_PATH
|
13 |
+
ARCHIVE "${ARCHIVE}"
|
14 |
+
)
|
15 |
+
|
16 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" "${CMAKE_CURRENT_LIST_DIR}/config.h.linux" DESTINATION "${SOURCE_PATH}")
|
17 |
+
|
18 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
OPTIONS
|
22 |
+
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
23 |
+
)
|
24 |
+
|
25 |
+
vcpkg_cmake_install()
|
26 |
+
vcpkg_copy_pdbs()
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
30 |
+
file(GLOB_RECURSE pc_files "${CURRENT_PACKAGES_DIR}/*.pc")
|
31 |
+
foreach(pc_file IN LISTS pc_files)
|
32 |
+
vcpkg_replace_string("${pc_file}" " -lm" "")
|
33 |
+
endforeach()
|
34 |
+
endif()
|
35 |
+
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
37 |
+
|
38 |
+
file(COPY "${CURRENT_PORT_DIR}/unofficial-librsvg-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-librsvg")
|
39 |
+
file(COPY "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
40 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/librsvg/unofficial-librsvg-config.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
file(READ "${CMAKE_CURRENT_LIST_DIR}/../librsvg/usage" usage)
|
2 |
+
message(WARNING "find_package(unofficial-librsvg) is deprecated.\n${usage}")
|
3 |
+
|
4 |
+
include(CMakeFindDependencyMacro)
|
5 |
+
find_dependency(PkgConfig)
|
6 |
+
pkg_check_modules(VCPKG_LIBRSVG librsvg-2.0 IMPORTED_TARGET)
|
7 |
+
if(NOT VCPKG_LIBRSVG_FOUND)
|
8 |
+
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND 0)
|
9 |
+
elseif(NOT TARGET unofficial::librsvg::rsvg-2)
|
10 |
+
add_library(unofficial::librsvg::rsvg-2 INTERFACE IMPORTED)
|
11 |
+
set_target_properties(unofficial::librsvg::rsvg-2 PROPERTIES
|
12 |
+
INTERFACE_LINK_LIBRARIES PkgConfig::VCPKG_LIBRSVG
|
13 |
+
)
|
14 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/librsvg/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
librsvg can be imported via CMake FindPkgConfig module:
|
2 |
+
|
3 |
+
find_package(PkgConfig REQUIRED)
|
4 |
+
pkg_check_modules(LIBRSVG librsvg-2.0 IMPORTED_TARGET REQUIRED)
|
5 |
+
target_link_libraries(main PRIVATE PkgConfig::LIBRSVG)
|
cc-multilingual-main/cc_net/vcpkg/ports/librsvg/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "librsvg",
|
3 |
+
"version": "2.40.20",
|
4 |
+
"port-version": 10,
|
5 |
+
"description": "A small library to render Scalable Vector Graphics (SVG)",
|
6 |
+
"homepage": "https://gitlab.gnome.org/GNOME/librsvg",
|
7 |
+
"license": "LGPL-2.0-or-later",
|
8 |
+
"dependencies": [
|
9 |
+
"cairo",
|
10 |
+
"fontconfig",
|
11 |
+
"gdk-pixbuf",
|
12 |
+
"glib",
|
13 |
+
"libcroco",
|
14 |
+
{
|
15 |
+
"name": "libxml2",
|
16 |
+
"default-features": false
|
17 |
+
},
|
18 |
+
"pango",
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake",
|
21 |
+
"host": true
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/mimalloc/portfile.cmake
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO microsoft/mimalloc
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 927b046e67783b325a6e41e3a9a6d3d78306fa1c82255defd1f3a7a60a27fd809a601f65b1b27fa38f2064e124f29856d7c0e5ccc33c54c2e4b6ebb9816d74b1
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-cmake.patch
|
9 |
+
template-param-types.diff
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
13 |
+
FEATURES
|
14 |
+
asm MI_SEE_ASM
|
15 |
+
secure MI_SECURE
|
16 |
+
override MI_OVERRIDE
|
17 |
+
)
|
18 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" MI_BUILD_STATIC)
|
19 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" MI_BUILD_SHARED)
|
20 |
+
|
21 |
+
vcpkg_cmake_configure(
|
22 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
23 |
+
OPTIONS_DEBUG
|
24 |
+
-DMI_DEBUG_FULL=ON
|
25 |
+
OPTIONS_RELEASE
|
26 |
+
-DMI_DEBUG_FULL=OFF
|
27 |
+
OPTIONS
|
28 |
+
-DMI_USE_CXX=ON
|
29 |
+
-DMI_BUILD_TESTS=OFF
|
30 |
+
-DMI_BUILD_OBJECT=OFF
|
31 |
+
${FEATURE_OPTIONS}
|
32 |
+
-DMI_BUILD_STATIC=${MI_BUILD_STATIC}
|
33 |
+
-DMI_BUILD_SHARED=${MI_BUILD_SHARED}
|
34 |
+
-DMI_INSTALL_TOPLEVEL=ON
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_cmake_install()
|
38 |
+
|
39 |
+
vcpkg_copy_pdbs()
|
40 |
+
|
41 |
+
file(COPY
|
42 |
+
"${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake"
|
43 |
+
"${CMAKE_CURRENT_LIST_DIR}/usage"
|
44 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
45 |
+
)
|
46 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/mimalloc)
|
47 |
+
|
48 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
49 |
+
vcpkg_replace_string(
|
50 |
+
"${CURRENT_PACKAGES_DIR}/include/mimalloc.h"
|
51 |
+
"!defined(MI_SHARED_LIB)"
|
52 |
+
"0 // !defined(MI_SHARED_LIB)"
|
53 |
+
)
|
54 |
+
endif()
|
55 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
56 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
57 |
+
|
58 |
+
vcpkg_fixup_pkgconfig()
|
59 |
+
|
60 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
cc-multilingual-main/cc_net/vcpkg/ports/nayuki-qr-code-generator/CMakeLists.txt
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
project(nayuki-qr-code-generator LANGUAGES CXX)
|
4 |
+
|
5 |
+
include(GNUInstallDirs)
|
6 |
+
|
7 |
+
add_library(nayuki-qr-code-generator qrcodegen.cpp)
|
8 |
+
target_compile_features(nayuki-qr-code-generator PUBLIC cxx_std_11)
|
9 |
+
target_include_directories(
|
10 |
+
nayuki-qr-code-generator
|
11 |
+
PUBLIC
|
12 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
13 |
+
)
|
14 |
+
|
15 |
+
install(FILES qrcodegen.hpp DESTINATION include)
|
16 |
+
|
17 |
+
install(TARGETS nayuki-qr-code-generator EXPORT unofficial-nayuki-qr-code-generator-config)
|
18 |
+
|
19 |
+
install(
|
20 |
+
EXPORT unofficial-nayuki-qr-code-generator-config
|
21 |
+
NAMESPACE unofficial::nayuki-qr-code-generator::
|
22 |
+
DESTINATION share/unofficial-nayuki-qr-code-generator
|
23 |
+
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
24 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/nayuki-qr-code-generator/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO nayuki/QR-Code-generator
|
6 |
+
REF v1.8.0
|
7 |
+
SHA512 0cdf0873e71aed124fc7357da86fb26f23fd26432f94c9752fa5a044085b26e5aece2115134d0e50213ff24be7c55818e7dec31205a68751065bc82ab0c2c6ac
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}/cpp")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}/cpp"
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/unofficial-nayuki-qr-code-generator PACKAGE_NAME unofficial-nayuki-qr-code-generator)
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
21 |
+
|
22 |
+
# Handle copyright
|
23 |
+
configure_file("${SOURCE_PATH}/Readme.markdown" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/nayuki-qr-code-generator/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nayuki-qr-code-generator",
|
3 |
+
"version": "1.8.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "High-quality QR Code generator library in C++",
|
6 |
+
"homepage": "https://github.com/nayuki/QR-Code-generator",
|
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/openslide/fix-win-build.patch
ADDED
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/openslide-decode-tifflike.c b/src/openslide-decode-tifflike.c
|
2 |
+
index 63e0ad5..8de1abb 100644
|
3 |
+
--- a/src/openslide-decode-tifflike.c
|
4 |
+
+++ b/src/openslide-decode-tifflike.c
|
5 |
+
@@ -348,7 +348,7 @@ static bool populate_item(struct _openslide_tifflike *tl,
|
6 |
+
uint64_t count = item->count;
|
7 |
+
int32_t value_size = get_value_size(item->type, &count);
|
8 |
+
g_assert(value_size);
|
9 |
+
- ssize_t len = value_size * count;
|
10 |
+
+ size_t len = value_size * count;
|
11 |
+
|
12 |
+
buf = g_try_malloc(len);
|
13 |
+
if (buf == NULL) {
|
14 |
+
@@ -485,7 +485,7 @@ static struct tiff_directory *read_directory(FILE *f, int64_t *diroff,
|
15 |
+
}
|
16 |
+
|
17 |
+
// check for overflow
|
18 |
+
- if (count > SSIZE_MAX / value_size) {
|
19 |
+
+ if (count > PTRDIFF_MAX / value_size) {
|
20 |
+
g_set_error(err, OPENSLIDE_ERROR, OPENSLIDE_ERROR_FAILED,
|
21 |
+
"Value count too large");
|
22 |
+
goto FAIL;
|
23 |
+
diff --git a/src/openslide-features.h b/src/openslide-features.h
|
24 |
+
index a5328fb..db7593d 100644
|
25 |
+
--- a/src/openslide-features.h
|
26 |
+
+++ b/src/openslide-features.h
|
27 |
+
@@ -22,26 +22,7 @@
|
28 |
+
#ifndef OPENSLIDE_OPENSLIDE_FEATURES_H_
|
29 |
+
#define OPENSLIDE_OPENSLIDE_FEATURES_H_
|
30 |
+
|
31 |
+
-
|
32 |
+
-#ifndef __cplusplus
|
33 |
+
-# ifdef _MSC_VER
|
34 |
+
-# ifndef bool
|
35 |
+
-# define bool unsigned char
|
36 |
+
-# endif
|
37 |
+
-# ifndef true
|
38 |
+
-# define true 1
|
39 |
+
-# endif
|
40 |
+
-# ifndef false
|
41 |
+
-# define false 0
|
42 |
+
-# endif
|
43 |
+
-# ifndef __bool_true_false_are_defined
|
44 |
+
-# define __bool_true_false_are_defined 1
|
45 |
+
-# endif
|
46 |
+
-# else
|
47 |
+
-# include <stdbool.h>
|
48 |
+
-# endif
|
49 |
+
-#endif
|
50 |
+
-
|
51 |
+
+#include <stdbool.h>
|
52 |
+
|
53 |
+
// for exporting from shared libraries or DLLs
|
54 |
+
#if defined _WIN32
|
55 |
+
diff --git a/src/openslide-private.h b/src/openslide-private.h
|
56 |
+
index a70bcba..e39f288 100644
|
57 |
+
--- a/src/openslide-private.h
|
58 |
+
+++ b/src/openslide-private.h
|
59 |
+
@@ -34,6 +34,11 @@
|
60 |
+
|
61 |
+
#include <cairo.h>
|
62 |
+
|
63 |
+
+#ifdef _MSC_VER
|
64 |
+
+#define fseeko fseek
|
65 |
+
+#define ftello ftell
|
66 |
+
+#endif
|
67 |
+
+
|
68 |
+
/* the associated image structure */
|
69 |
+
struct _openslide_associated_image {
|
70 |
+
const struct _openslide_associated_image_ops *ops;
|
71 |
+
@@ -357,8 +362,8 @@ void openslide_cancel_prefetch_hint(openslide_t *osr, int prefetch_id);
|
72 |
+
Every @p replacement must be unique to avoid conflicting-type errors. */
|
73 |
+
#define _OPENSLIDE_POISON(replacement) error__use_ ## replacement ## _instead
|
74 |
+
#define fopen _OPENSLIDE_POISON(_openslide_fopen)
|
75 |
+
-#define fseek _OPENSLIDE_POISON(fseeko)
|
76 |
+
-#define ftell _OPENSLIDE_POISON(ftello)
|
77 |
+
+//#define fseek _OPENSLIDE_POISON(fseeko)
|
78 |
+
+//#define ftell _OPENSLIDE_POISON(ftello)
|
79 |
+
#define strtod _OPENSLIDE_POISON(_openslide_parse_double)
|
80 |
+
#define g_ascii_strtod _OPENSLIDE_POISON(_openslide_parse_double_)
|
81 |
+
#define sqlite3_open _OPENSLIDE_POISON(_openslide_sqlite_open)
|
82 |
+
diff --git a/test/test-common.c b/test/test-common.c
|
83 |
+
index 8003128..b7c4bd4 100644
|
84 |
+
--- a/test/test-common.c
|
85 |
+
+++ b/test/test-common.c
|
86 |
+
@@ -22,11 +22,13 @@
|
87 |
+
#ifdef WIN32
|
88 |
+
#define _WIN32_WINNT 0x0600
|
89 |
+
#include <windows.h>
|
90 |
+
+#include <io.h>
|
91 |
+
+#else
|
92 |
+
+#include <unistd.h>
|
93 |
+
#endif
|
94 |
+
|
95 |
+
#include <sys/types.h>
|
96 |
+
#include <sys/stat.h>
|
97 |
+
-#include <unistd.h>
|
98 |
+
#include <fcntl.h>
|
99 |
+
#include <glib.h>
|
100 |
+
|
101 |
+
diff --git a/test/test.c b/test/test.c
|
102 |
+
index 50f0651..7fb192a 100644
|
103 |
+
--- a/test/test.c
|
104 |
+
+++ b/test/test.c
|
105 |
+
@@ -32,7 +32,7 @@
|
106 |
+
#include <stdlib.h>
|
107 |
+
#include <stdbool.h>
|
108 |
+
#include <inttypes.h>
|
109 |
+
-#include <sys/time.h>
|
110 |
+
+//#include <sys/time.h>
|
111 |
+
|
112 |
+
#include <glib.h>
|
113 |
+
#include <cairo.h>
|
114 |
+
diff --git a/test/try_open.c b/test/try_open.c
|
115 |
+
index dd3a6a2..ad9233e 100644
|
116 |
+
--- a/test/try_open.c
|
117 |
+
+++ b/test/try_open.c
|
118 |
+
@@ -24,7 +24,7 @@
|
119 |
+
#include <stdio.h>
|
120 |
+
#include <stdarg.h>
|
121 |
+
#include <string.h>
|
122 |
+
-#include <unistd.h>
|
123 |
+
+//#include <unistd.h>
|
124 |
+
#include <glib.h>
|
125 |
+
#include "openslide.h"
|
126 |
+
#include "test-common.h"
|
cc-multilingual-main/cc_net/vcpkg/ports/openslide/portfile.cmake
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
3 |
+
set(PATCHES fix-win-build.patch)
|
4 |
+
endif()
|
5 |
+
|
6 |
+
vcpkg_from_github(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO openslide/openslide
|
9 |
+
REF "v${VERSION}"
|
10 |
+
SHA512 5b0315215f9cada56c85e0068c9493a66c70bae1230cc01dd00ce364414f53bf285728dc860d7de0ac30a10bdc3c1a76f728446b96ca337a62d588f5cc2a971c
|
11 |
+
HEAD_REF master
|
12 |
+
PATCHES remove-w-flags.patch
|
13 |
+
${PATCHES}
|
14 |
+
)
|
15 |
+
|
16 |
+
set(opts "")
|
17 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
18 |
+
list(APPEND opts "ac_cv_search_floor=none required")
|
19 |
+
endif()
|
20 |
+
|
21 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
22 |
+
#switching to clang-cl due to __attribute__((constructor)) in openslide.c
|
23 |
+
z_vcpkg_get_cmake_vars(cmake_vars_file)
|
24 |
+
include("${cmake_vars_file}")
|
25 |
+
if(VCPKG_DETECTED_CMAKE_C_COMPILER_ID STREQUAL "MSVC")
|
26 |
+
vcpkg_find_acquire_program(CLANG)
|
27 |
+
cmake_path(GET CLANG PARENT_PATH CLANG_PARENT_PATH)
|
28 |
+
set(CLANG_CL "${CLANG_PARENT_PATH}/clang-cl.exe")
|
29 |
+
file(READ "${cmake_vars_file}" contents)
|
30 |
+
string(APPEND contents "\nset(VCPKG_DETECTED_CMAKE_C_COMPILER \"${CLANG_CL}\")")
|
31 |
+
string(APPEND contents "\nset(VCPKG_DETECTED_CMAKE_CXX_COMPILER \"${CLANG_CL}\")")
|
32 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
33 |
+
string(APPEND contents "\nstring(APPEND VCPKG_DETECTED_CMAKE_C_FLAGS_DEBUG \" -m32\")")
|
34 |
+
string(APPEND contents "\nstring(APPEND VCPKG_DETECTED_CMAKE_C_FLAGS_RELEASE \" -m32\")")
|
35 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL arm64)
|
36 |
+
string(APPEND contents "\nstring(PREPEND VCPKG_DETECTED_CMAKE_C_FLAGS_DEBUG \"--target=arm64-pc-win32 \")")
|
37 |
+
string(APPEND contents "\nstring(PREPEND VCPKG_DETECTED_CMAKE_C_FLAGS_RELEASE \"--target=arm64-pc-win32 \")")
|
38 |
+
endif()
|
39 |
+
file(WRITE "${cmake_vars_file}" "${contents}")
|
40 |
+
endif()
|
41 |
+
set(cmake_vars_file "${cmake_vars_file}" CACHE INTERNAL "") # Don't run z_vcpkg_get_cmake_vars twice
|
42 |
+
endif()
|
43 |
+
|
44 |
+
vcpkg_configure_make(
|
45 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
46 |
+
AUTOCONFIG
|
47 |
+
OPTIONS ${opts}
|
48 |
+
)
|
49 |
+
|
50 |
+
vcpkg_install_make()
|
51 |
+
vcpkg_fixup_pkgconfig()
|
52 |
+
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
54 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
55 |
+
|
56 |
+
# Handle copyright
|
57 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/openslide/remove-w-flags.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Makefile.am b/Makefile.am
|
2 |
+
index d5fba9f80..5846768f5 100644
|
3 |
+
--- a/Makefile.am
|
4 |
+
+++ b/Makefile.am
|
5 |
+
@@ -60,7 +60,7 @@ endif
|
6 |
+
.rc.lo:
|
7 |
+
$(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --tag=RC --mode=compile $(RC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) -i "$<" -o "$@"
|
8 |
+
|
9 |
+
-src_libopenslide_la_CPPFLAGS = -pedantic -D_OPENSLIDE_BUILDING_DLL \
|
10 |
+
+src_libopenslide_la_CPPFLAGS = -D_OPENSLIDE_BUILDING_DLL \
|
11 |
+
$(GLIB2_CFLAGS) $(CAIRO_CFLAGS) $(SQLITE3_CFLAGS) $(LIBXML2_CFLAGS) \
|
12 |
+
$(OPENJPEG_CFLAGS) $(LIBTIFF_CFLAGS) $(LIBPNG_CFLAGS) \
|
13 |
+
$(GDKPIXBUF_CFLAGS) $(ZLIB_CFLAGS) -DG_LOG_DOMAIN=\"Openslide\" \
|
14 |
+
diff --git a/configure.ac b/configure.ac
|
15 |
+
index e401ae313..d4326ad96 100644
|
16 |
+
--- a/configure.ac
|
17 |
+
+++ b/configure.ac
|
18 |
+
@@ -195,7 +195,7 @@ AM_CONDITIONAL([CYGWIN_CROSS_TEST], [test -n "$CYGWIN_CROSS_TEST"])
|
19 |
+
# Only enable this on MinGW, since otherwise gcc will complain about an
|
20 |
+
# unknown option whenever it produces any *other* warnings
|
21 |
+
if test "$host_os" = "mingw32"; then
|
22 |
+
- CFLAG_MS_FORMAT=-Wno-pedantic-ms-format
|
23 |
+
+ CFLAG_MS_FORMAT=""
|
24 |
+
else
|
25 |
+
CFLAG_MS_FORMAT=""
|
26 |
+
fi
|
27 |
+
@@ -203,7 +203,7 @@ AC_SUBST([CFLAG_MS_FORMAT])
|
28 |
+
|
29 |
+
# The min/max glib version is actually 2.16, but glib doesn't have special
|
30 |
+
# handling for API changes that old
|
31 |
+
-AC_SUBST(AM_CFLAGS, ['-Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs $(CFLAG_MS_FORMAT) $(CFLAG_VISIBILITY) -DG_DISABLE_SINGLE_INCLUDES -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -fno-common'])
|
32 |
+
+AC_SUBST(AM_CFLAGS, ['$(CFLAG_MS_FORMAT) $(CFLAG_VISIBILITY) -DG_DISABLE_SINGLE_INCLUDES -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_MIN_REQUIRED -fno-common'])
|
33 |
+
|
34 |
+
AC_SUBST(FEATURE_FLAGS)
|
35 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/openslide/vcpkg.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "openslide",
|
3 |
+
"version": "3.4.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "OpenSlide is a C library for reading whole slide image files (also known as virtual slides). It provides a consistent and simple API for reading files from multiple vendors.",
|
6 |
+
"homepage": "https://openslide.org/",
|
7 |
+
"license": "LGPL-2.1-or-later",
|
8 |
+
"supports": "native & !(windows & static) & !xbox & !osx",
|
9 |
+
"dependencies": [
|
10 |
+
"cairo",
|
11 |
+
"gdk-pixbuf",
|
12 |
+
"glib",
|
13 |
+
"libjpeg-turbo",
|
14 |
+
"libpng",
|
15 |
+
"libxml2",
|
16 |
+
"openjpeg",
|
17 |
+
"sqlite3",
|
18 |
+
"tiff",
|
19 |
+
{
|
20 |
+
"name": "vcpkg-tool-meson",
|
21 |
+
"host": true
|
22 |
+
},
|
23 |
+
"zlib"
|
24 |
+
]
|
25 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/pcre/pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 2c3a309..cdd480f 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -94,7 +94,7 @@ FIND_PACKAGE( Editline )
|
6 |
+
|
7 |
+
INCLUDE(CheckIncludeFile)
|
8 |
+
INCLUDE(CheckIncludeFileCXX)
|
9 |
+
-INCLUDE(CheckFunctionExists)
|
10 |
+
+INCLUDE(CheckSymbolExists)
|
11 |
+
INCLUDE(CheckTypeSize)
|
12 |
+
INCLUDE(GNUInstallDirs) # for CMAKE_INSTALL_LIBDIR
|
13 |
+
|
14 |
+
@@ -109,12 +109,12 @@ CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_H)
|
15 |
+
CHECK_INCLUDE_FILE_CXX(type_traits.h HAVE_TYPE_TRAITS_H)
|
16 |
+
CHECK_INCLUDE_FILE_CXX(bits/type_traits.h HAVE_BITS_TYPE_TRAITS_H)
|
17 |
+
|
18 |
+
-CHECK_FUNCTION_EXISTS(bcopy HAVE_BCOPY)
|
19 |
+
-CHECK_FUNCTION_EXISTS(memmove HAVE_MEMMOVE)
|
20 |
+
-CHECK_FUNCTION_EXISTS(strerror HAVE_STRERROR)
|
21 |
+
-CHECK_FUNCTION_EXISTS(strtoll HAVE_STRTOLL)
|
22 |
+
-CHECK_FUNCTION_EXISTS(strtoq HAVE_STRTOQ)
|
23 |
+
-CHECK_FUNCTION_EXISTS(_strtoi64 HAVE__STRTOI64)
|
24 |
+
+CHECK_SYMBOL_EXISTS(bcopy strings.h HAVE_BCOPY)
|
25 |
+
+CHECK_SYMBOL_EXISTS(memmove strings.h HAVE_MEMMOVE)
|
26 |
+
+CHECK_SYMBOL_EXISTS(strerror strings.h HAVE_STRERROR)
|
27 |
+
+CHECK_SYMBOL_EXISTS(strtoll stdlib.h HAVE_STRTOLL)
|
28 |
+
+CHECK_SYMBOL_EXISTS(strtoq stdlib.h HAVE_STRTOQ)
|
29 |
+
+CHECK_SYMBOL_EXISTS(_strtoi64 stdlib.h HAVE__STRTOI64)
|
30 |
+
|
31 |
+
CHECK_TYPE_SIZE("long long" LONG_LONG)
|
32 |
+
CHECK_TYPE_SIZE("unsigned long long" UNSIGNED_LONG_LONG)
|
cc-multilingual-main/cc_net/vcpkg/ports/pcre/pcre-8.45_fix_postfix_for_debug_Windows_builds.patch
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Index: CMakeLists.txt
|
2 |
+
===================================================================
|
3 |
+
--- CMakeLists.txt (revision 1767)
|
4 |
+
+++ CMakeLists.txt (working copy)
|
5 |
+
@@ -436,6 +436,12 @@
|
6 |
+
@ONLY)
|
7 |
+
ENDIF(PCRE_BUILD_PCRECPP)
|
8 |
+
|
9 |
+
+# Make sure to not link debug libs
|
10 |
+
+# against release libs and vice versa
|
11 |
+
+IF(WIN32)
|
12 |
+
+ SET(CMAKE_DEBUG_POSTFIX "d")
|
13 |
+
+ENDIF(WIN32)
|
14 |
+
+
|
15 |
+
# Generate pkg-config files
|
16 |
+
SET(PACKAGE_VERSION "${PCRE_MAJOR}.${PCRE_MINOR}")
|
17 |
+
SET(prefix "${CMAKE_INSTALL_PREFIX}")
|
18 |
+
@@ -442,6 +448,9 @@
|
19 |
+
SET(exec_prefix "\${prefix}")
|
20 |
+
SET(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
|
21 |
+
SET(includedir "\${prefix}/include")
|
22 |
+
+IF(WIN32 AND (CMAKE_BUILD_TYPE MATCHES Debug))
|
23 |
+
+ SET(LIB_POSTFIX ${CMAKE_DEBUG_POSTFIX})
|
24 |
+
+ENDIF()
|
25 |
+
IF(NOT BUILD_SHARED_LIBS)
|
26 |
+
SET(PCRE_STATIC_CFLAG "-DPCRE_STATIC")
|
27 |
+
ENDIF(NOT BUILD_SHARED_LIBS)
|
28 |
+
@@ -659,11 +668,6 @@
|
29 |
+
ENDIF(MSVC)
|
30 |
+
|
31 |
+
SET(CMAKE_INCLUDE_CURRENT_DIR 1)
|
32 |
+
-# needed to make sure to not link debug libs
|
33 |
+
-# against release libs and vice versa
|
34 |
+
-IF(WIN32)
|
35 |
+
- SET(CMAKE_DEBUG_POSTFIX "d")
|
36 |
+
-ENDIF(WIN32)
|
37 |
+
|
38 |
+
SET(targets)
|
39 |
+
|
40 |
+
Index: configure.ac
|
41 |
+
===================================================================
|
42 |
+
--- configure.ac (revision 1767)
|
43 |
+
+++ configure.ac (working copy)
|
44 |
+
@@ -1044,6 +1044,9 @@
|
45 |
+
AM_CONDITIONAL([WITH_GCOV],[test "x$enable_coverage" = "xyes"])
|
46 |
+
|
47 |
+
# Produce these files, in addition to config.h.
|
48 |
+
+# LIB_POSTFIX is used by CMakeLists.txt for Windows debug builds.
|
49 |
+
+# Pass empty LIB_POSTFIX to *.pc files and pcre-config here.
|
50 |
+
+AC_SUBST(LIB_POSTFIX)
|
51 |
+
AC_CONFIG_FILES(
|
52 |
+
Makefile
|
53 |
+
libpcre.pc
|
54 |
+
Index: libpcre.pc.in
|
55 |
+
===================================================================
|
56 |
+
--- libpcre.pc.in (revision 1767)
|
57 |
+
+++ libpcre.pc.in (working copy)
|
58 |
+
@@ -8,6 +8,6 @@
|
59 |
+
Name: libpcre
|
60 |
+
Description: PCRE - Perl compatible regular expressions C library with 8 bit character support
|
61 |
+
Version: @PACKAGE_VERSION@
|
62 |
+
-Libs: -L${libdir} -lpcre
|
63 |
+
+Libs: -L${libdir} -lpcre@LIB_POSTFIX@
|
64 |
+
Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
65 |
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
66 |
+
Index: libpcre16.pc.in
|
67 |
+
===================================================================
|
68 |
+
--- libpcre16.pc.in (revision 1767)
|
69 |
+
+++ libpcre16.pc.in (working copy)
|
70 |
+
@@ -8,6 +8,6 @@
|
71 |
+
Name: libpcre16
|
72 |
+
Description: PCRE - Perl compatible regular expressions C library with 16 bit character support
|
73 |
+
Version: @PACKAGE_VERSION@
|
74 |
+
-Libs: -L${libdir} -lpcre16
|
75 |
+
+Libs: -L${libdir} -lpcre16@LIB_POSTFIX@
|
76 |
+
Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
77 |
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
78 |
+
Index: libpcre32.pc.in
|
79 |
+
===================================================================
|
80 |
+
--- libpcre32.pc.in (revision 1767)
|
81 |
+
+++ libpcre32.pc.in (working copy)
|
82 |
+
@@ -8,6 +8,6 @@
|
83 |
+
Name: libpcre32
|
84 |
+
Description: PCRE - Perl compatible regular expressions C library with 32 bit character support
|
85 |
+
Version: @PACKAGE_VERSION@
|
86 |
+
-Libs: -L${libdir} -lpcre32
|
87 |
+
+Libs: -L${libdir} -lpcre32@LIB_POSTFIX@
|
88 |
+
Libs.private: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
89 |
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
90 |
+
Index: libpcrecpp.pc.in
|
91 |
+
===================================================================
|
92 |
+
--- libpcrecpp.pc.in (revision 1767)
|
93 |
+
+++ libpcrecpp.pc.in (working copy)
|
94 |
+
@@ -8,5 +8,5 @@
|
95 |
+
Name: libpcrecpp
|
96 |
+
Description: PCRECPP - C++ wrapper for PCRE
|
97 |
+
Version: @PACKAGE_VERSION@
|
98 |
+
-Libs: -L${libdir} -lpcre -lpcrecpp
|
99 |
+
+Libs: -L${libdir} -lpcre@LIB_POSTFIX@ -lpcrecpp@LIB_POSTFIX@
|
100 |
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
101 |
+
Index: libpcreposix.pc.in
|
102 |
+
===================================================================
|
103 |
+
--- libpcreposix.pc.in (revision 1767)
|
104 |
+
+++ libpcreposix.pc.in (working copy)
|
105 |
+
@@ -8,6 +8,6 @@
|
106 |
+
Name: libpcreposix
|
107 |
+
Description: PCREPosix - Posix compatible interface to libpcre
|
108 |
+
Version: @PACKAGE_VERSION@
|
109 |
+
-Libs: -L${libdir} -lpcreposix
|
110 |
+
+Libs: -L${libdir} -lpcreposix@LIB_POSTFIX@
|
111 |
+
Cflags: -I${includedir} @PCRE_STATIC_CFLAG@
|
112 |
+
Requires.private: libpcre
|
113 |
+
Index: pcre-config.in
|
114 |
+
===================================================================
|
115 |
+
--- pcre-config.in (revision 1767)
|
116 |
+
+++ pcre-config.in (working copy)
|
117 |
+
@@ -91,7 +91,7 @@
|
118 |
+
;;
|
119 |
+
--libs-posix)
|
120 |
+
if test @enable_pcre8@ = yes ; then
|
121 |
+
- echo $libS$libR -lpcreposix -lpcre
|
122 |
+
+ echo $libS$libR -lpcreposix@LIB_POSTFIX@ -lpcre@LIB_POSTFIX@
|
123 |
+
else
|
124 |
+
echo "${usage}" 1>&2
|
125 |
+
fi
|
126 |
+
@@ -98,7 +98,7 @@
|
127 |
+
;;
|
128 |
+
--libs)
|
129 |
+
if test @enable_pcre8@ = yes ; then
|
130 |
+
- echo $libS$libR -lpcre
|
131 |
+
+ echo $libS$libR -lpcre@LIB_POSTFIX@
|
132 |
+
else
|
133 |
+
echo "${usage}" 1>&2
|
134 |
+
fi
|
135 |
+
@@ -105,7 +105,7 @@
|
136 |
+
;;
|
137 |
+
--libs16)
|
138 |
+
if test @enable_pcre16@ = yes ; then
|
139 |
+
- echo $libS$libR -lpcre16
|
140 |
+
+ echo $libS$libR -lpcre16@LIB_POSTFIX@
|
141 |
+
else
|
142 |
+
echo "${usage}" 1>&2
|
143 |
+
fi
|
144 |
+
@@ -112,7 +112,7 @@
|
145 |
+
;;
|
146 |
+
--libs32)
|
147 |
+
if test @enable_pcre32@ = yes ; then
|
148 |
+
- echo $libS$libR -lpcre32
|
149 |
+
+ echo $libS$libR -lpcre32@LIB_POSTFIX@
|
150 |
+
else
|
151 |
+
echo "${usage}" 1>&2
|
152 |
+
fi
|
153 |
+
@@ -119,7 +119,7 @@
|
154 |
+
;;
|
155 |
+
--libs-cpp)
|
156 |
+
if test @enable_cpp@ = yes ; then
|
157 |
+
- echo $libS$libR -lpcrecpp -lpcre
|
158 |
+
+ echo $libS$libR -lpcrecpp@LIB_POSTFIX@ -lpcre@LIB_POSTFIX@
|
159 |
+
else
|
160 |
+
echo "${usage}" 1>&2
|
161 |
+
fi
|
cc-multilingual-main/cc_net/vcpkg/ports/pcre/pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
--- a/CMakeLists.txt 2021-06-14 10:33:38.000000000 +0200
|
2 |
+
+++ b/CMakeLists.txt 2021-06-18 17:59:59.155148900 +0200
|
3 |
+
@@ -77,7 +77,6 @@
|
4 |
+
# CMP0026 to avoid warnings for the use of LOCATION in GET_TARGET_PROPERTY.
|
5 |
+
|
6 |
+
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.5)
|
7 |
+
-CMAKE_POLICY(SET CMP0026 OLD)
|
8 |
+
|
9 |
+
# For FindReadline.cmake. This was changed to allow setting CMAKE_MODULE_PATH
|
10 |
+
# on the command line.
|
11 |
+
@@ -199,6 +198,7 @@
|
12 |
+
ENDIF(MINGW)
|
13 |
+
|
14 |
+
IF(MSVC)
|
15 |
+
+ add_definitions(/wd4703 /wd4146 /wd4308)
|
16 |
+
OPTION(PCRE_STATIC_RUNTIME
|
17 |
+
"ON=Compile against the static runtime (/MT)."
|
18 |
+
OFF)
|
cc-multilingual-main/cc_net/vcpkg/ports/pcre/portfile.cmake
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(PCRE_VERSION 8.45)
|
2 |
+
set(EXPECTED_SHA 71f246c0abbf356222933ad1604cab87a1a2a3cd8054a0b9d6deb25e0735ce9f40f923d14cbd21f32fdac7283794270afcb0f221ad24662ac35934fcb73675cd)
|
3 |
+
set(PATCHES
|
4 |
+
# Fix CMake Deprecation Warning concerning OLD behavior for policy CMP0026
|
5 |
+
# Suppress MSVC compiler warnings C4703, C4146, C4308, which fixes errors
|
6 |
+
# under x64-uwp and arm-uwp
|
7 |
+
pcre-8.45_suppress_cmake_and_compiler_warnings-errors.patch
|
8 |
+
# Modified for 8.45 from https://bugs.exim.org/show_bug.cgi?id=2600
|
9 |
+
pcre-8.45_fix_postfix_for_debug_Windows_builds.patch
|
10 |
+
export-cmake-targets.patch
|
11 |
+
pcre-8.4.5_fix_check_function_exists_for_arm-androi_builds.patch)
|
12 |
+
|
13 |
+
vcpkg_from_sourceforge(
|
14 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
15 |
+
REPO pcre/pcre
|
16 |
+
REF ${PCRE_VERSION}
|
17 |
+
FILENAME "pcre-${PCRE_VERSION}.zip"
|
18 |
+
SHA512 ${EXPECTED_SHA}
|
19 |
+
PATCHES ${PATCHES}
|
20 |
+
)
|
21 |
+
|
22 |
+
set(IS_PCRE_SUPPORT_JIT YES)
|
23 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "loongarch")
|
24 |
+
set(IS_PCRE_SUPPORT_JIT NO)
|
25 |
+
endif()
|
26 |
+
|
27 |
+
vcpkg_cmake_configure(
|
28 |
+
SOURCE_PATH ${SOURCE_PATH}
|
29 |
+
OPTIONS
|
30 |
+
-DPCRE_BUILD_TESTS=NO
|
31 |
+
-DPCRE_BUILD_PCREGREP=NO
|
32 |
+
-DPCRE_BUILD_PCRE32=YES
|
33 |
+
-DPCRE_BUILD_PCRE16=YES
|
34 |
+
-DPCRE_BUILD_PCRE8=YES
|
35 |
+
-DPCRE_SUPPORT_JIT=${IS_PCRE_SUPPORT_JIT}
|
36 |
+
-DPCRE_SUPPORT_UTF=YES
|
37 |
+
-DPCRE_SUPPORT_UNICODE_PROPERTIES=YES
|
38 |
+
# optional dependencies for PCREGREP
|
39 |
+
-DPCRE_SUPPORT_LIBBZ2=OFF
|
40 |
+
-DPCRE_SUPPORT_LIBZ=OFF
|
41 |
+
-DPCRE_SUPPORT_LIBEDIT=OFF
|
42 |
+
-DPCRE_SUPPORT_LIBREADLINE=OFF
|
43 |
+
# OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
|
44 |
+
# OPTIONS_RELEASE -DOPTIMIZE=1
|
45 |
+
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
46 |
+
)
|
47 |
+
|
48 |
+
vcpkg_cmake_install()
|
49 |
+
|
50 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME "unofficial-${PORT}" CONFIG_PATH "share/unofficial-${PORT}")
|
51 |
+
|
52 |
+
foreach(FILE "${CURRENT_PACKAGES_DIR}/include/pcre.h" "${CURRENT_PACKAGES_DIR}/include/pcreposix.h")
|
53 |
+
file(READ ${FILE} PCRE_H)
|
54 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
55 |
+
string(REPLACE "defined(PCRE_STATIC)" "1" PCRE_H "${PCRE_H}")
|
56 |
+
else()
|
57 |
+
string(REPLACE "defined(PCRE_STATIC)" "0" PCRE_H "${PCRE_H}")
|
58 |
+
endif()
|
59 |
+
file(WRITE ${FILE} "${PCRE_H}")
|
60 |
+
endforeach()
|
61 |
+
|
62 |
+
vcpkg_fixup_pkgconfig()
|
63 |
+
|
64 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
65 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
66 |
+
|
67 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/man")
|
68 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/man")
|
69 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
70 |
+
|
71 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/bin/pcre-config" "${CURRENT_PACKAGES_DIR}/debug/bin/pcre-config")
|
72 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR NOT VCPKG_TARGET_IS_WINDOWS)
|
73 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
74 |
+
endif()
|
75 |
+
|
76 |
+
vcpkg_copy_pdbs()
|
77 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-pcre-config.cmake" "${CURRENT_PACKAGES_DIR}/share/unofficial-pcre/unofficial-pcre-config.cmake" @ONLY)
|
78 |
+
|
79 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/pcre/unofficial-pcre-config.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
include("${CMAKE_CURRENT_LIST_DIR}/unofficial-pcre-targets.cmake")
|
cc-multilingual-main/cc_net/vcpkg/ports/pcre/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "pcre",
|
3 |
+
"version": "8.45",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "Perl Compatible Regular Expressions",
|
6 |
+
"homepage": "https://www.pcre.org/",
|
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/physfs/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO icculus/physfs
|
5 |
+
REF "release-${VERSION}"
|
6 |
+
SHA512 e0d84d6ac6bd8f0973149a5add54ed5ed890b5fabb4592ba61b59a3b3e01c05e05f1754f18d7a1c8d72e68777a23cda0c50dc0512cf57a8310a950bf908f54b1
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PHYSFS_STATIC)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PHYSFS_SHARED)
|
11 |
+
|
12 |
+
set(generator_param "")
|
13 |
+
if(VCPKG_TARGET_IS_UWP)
|
14 |
+
set(generator_param WINDOWS_USE_MSBUILD)
|
15 |
+
endif()
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
${generator_param}
|
20 |
+
OPTIONS
|
21 |
+
-DPHYSFS_BUILD_STATIC=${PHYSFS_STATIC}
|
22 |
+
-DPHYSFS_BUILD_SHARED=${PHYSFS_SHARED}
|
23 |
+
-DPHYSFS_BUILD_TEST=OFF
|
24 |
+
-DPHYSFS_BUILD_DOCS=OFF
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
|
30 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/PhysFS)
|
31 |
+
vcpkg_fixup_pkgconfig()
|
32 |
+
|
33 |
+
if(PHYSFS_STATIC)
|
34 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/physfs.h" "defined(PHYSFS_STATIC)" "1")
|
35 |
+
else()
|
36 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/physfs.h" "dllexport" "dllimport")
|
37 |
+
endif()
|
38 |
+
|
39 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
40 |
+
|
41 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
42 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
43 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/physfs/usage
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
physfs provides CMake targets:
|
2 |
+
|
3 |
+
find_package(PhysFS CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:PhysFS::PhysFS>,PhysFS::PhysFS,PhysFS::PhysFS-static>)
|
5 |
+
|
6 |
+
physfs is compatible with built-in CMake targets:
|
7 |
+
|
8 |
+
find_package(PhysFS REQUIRED)
|
9 |
+
target_include_directories(main PRIVATE ${PHYSFS_INCLUDE_DIR})
|
10 |
+
target_link_libraries(main PRIVATE ${PHYSFS_LIBRARY})
|