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/blend2d/portfile.cmake +58 -0
- cc-multilingual-main/cc_net/vcpkg/ports/blend2d/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/blend2d/usage_static.txt +6 -0
- cc-multilingual-main/cc_net/vcpkg/ports/blend2d/vcpkg.json +59 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-build/0002-fix-get-version.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-build/0003-fix-emscripten.patch +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-build/0004-workaround-MSVC-codegen-bug-in-17.5-on-ARM64.patch +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-build/portfile.cmake +76 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-build/vcpkg.json +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-cobalt/b2-options.cmake +24 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-cobalt/portfile.cmake +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-cobalt/vcpkg.json +81 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-exception/portfile.cmake +14 -0
- cc-multilingual-main/cc_net/vcpkg/ports/boost-exception/vcpkg.json +56 -0
- cc-multilingual-main/cc_net/vcpkg/ports/caf/fix_cxx17.patch +47 -0
- cc-multilingual-main/cc_net/vcpkg/ports/caf/fix_dependency.patch +11 -0
- cc-multilingual-main/cc_net/vcpkg/ports/caf/portfile.cmake +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/caf/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ccfits/dll_exports.patch +469 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ccfits/fix-dependency.patch +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ccfits/portfile.cmake +43 -0
- cc-multilingual-main/cc_net/vcpkg/ports/ccfits/vcpkg.json +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cminpack/portfile.cmake +44 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cminpack/usage +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/cminpack/vcpkg.json +18 -0
- cc-multilingual-main/cc_net/vcpkg/ports/double-conversion/portfile.cmake +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/double-conversion/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/fix-debug-macro.patch +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/no_x64_enforcement.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/portfile.cmake +66 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/usage +9 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/vcpkg-cmake-wrapper.cmake +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/windows-output-name.patch +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/freeglut/x11-dependencies-export.patch +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/genann/CMakeLists.txt +25 -0
- cc-multilingual-main/cc_net/vcpkg/ports/genann/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/genann/vcpkg.json +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gts/CMakeLists.txt +47 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gts/fix-dllexport.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gts/portfile.cmake +29 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gts/predicates_init.h +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gts/usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gts/vcpkg.json +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-msgs9/portfile.cmake +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-msgs9/remove_ruby.patch +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/gz-msgs9/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hexl/portfile.cmake +30 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hexl/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5i18n/fix_static_builds.patch +30 -0
cc-multilingual-main/cc_net/vcpkg/ports/blend2d/portfile.cmake
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO blend2d/blend2d
|
4 |
+
REF 7f292c15bafd8a7d92791f421cecb2ce84a75da8 # commited on 2023-06-16
|
5 |
+
SHA512 dfd97a27b88bd94753b1404cbe63989186185bb6700b5c65a22b48e14fec7392038e328f30ea71a893c7bbee376f6017b4cdc2bf596259146be601d934c4fbdf
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BLEND2D_STATIC)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
INVERTED_FEATURES
|
13 |
+
jit BLEND2D_NO_JIT
|
14 |
+
logging BLEND2D_NO_JIT_LOGGING
|
15 |
+
tls BLEND2D_NO_TLS
|
16 |
+
)
|
17 |
+
|
18 |
+
if(NOT BLEND2D_NO_JIT)
|
19 |
+
vcpkg_from_github(
|
20 |
+
OUT_SOURCE_PATH ASMJIT_SOURCE_PATH
|
21 |
+
REPO asmjit/asmjit
|
22 |
+
REF 3577608cab0bc509f856ebf6e41b2f9d9f71acc4 # commited on 2023-04-28
|
23 |
+
SHA512 36557af5c82ccc8e5ef2d4effe22b75e22c2bf1f4504daae3ff813e907449be6e7b25678af071cb9dede7c6e02dc5c8ad2fc2a3da011aa660eb7f5c75ab23042
|
24 |
+
HEAD_REF master
|
25 |
+
)
|
26 |
+
|
27 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/3rdparty/asmjit")
|
28 |
+
|
29 |
+
get_filename_component(ASMJIT_SOURCE_DIR_NAME "${ASMJIT_SOURCE_PATH}" NAME)
|
30 |
+
file(COPY "${ASMJIT_SOURCE_PATH}" DESTINATION "${SOURCE_PATH}/3rdparty")
|
31 |
+
file(RENAME "${SOURCE_PATH}/3rdparty/${ASMJIT_SOURCE_DIR_NAME}" "${SOURCE_PATH}/3rdparty/asmjit")
|
32 |
+
endif()
|
33 |
+
|
34 |
+
vcpkg_cmake_configure(
|
35 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
36 |
+
OPTIONS
|
37 |
+
"-DBLEND2D_STATIC=${BLEND2D_STATIC}"
|
38 |
+
"-DBLEND2D_NO_FUTEX=OFF"
|
39 |
+
${FEATURE_OPTIONS}
|
40 |
+
)
|
41 |
+
|
42 |
+
vcpkg_cmake_install()
|
43 |
+
vcpkg_copy_pdbs()
|
44 |
+
|
45 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
46 |
+
|
47 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
48 |
+
if(BLEND2D_STATIC)
|
49 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
50 |
+
endif()
|
51 |
+
|
52 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|
53 |
+
|
54 |
+
if(BLEND2D_STATIC)
|
55 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage_static.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME usage)
|
56 |
+
else()
|
57 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
58 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/blend2d/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
blend2d provides CMake targets:
|
2 |
+
|
3 |
+
find_package(blend2d CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE blend2d::blend2d)
|
cc-multilingual-main/cc_net/vcpkg/ports/blend2d/usage_static.txt
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
blend2d provides CMake targets:
|
2 |
+
|
3 |
+
find_package(blend2d CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE blend2d::blend2d)
|
5 |
+
|
6 |
+
Also, define BL_STATIC before any blend2d includes.
|
cc-multilingual-main/cc_net/vcpkg/ports/blend2d/vcpkg.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "blend2d",
|
3 |
+
"version-date": "2023-06-16",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Beta 2D Vector Graphics Powered by a JIT Compiler",
|
6 |
+
"homepage": "https://github.com/blend2d/blend2d",
|
7 |
+
"documentation": "https://blend2d.com/doc/index.html",
|
8 |
+
"license": "Zlib",
|
9 |
+
"supports": "!uwp & !wasm32",
|
10 |
+
"dependencies": [
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake-config",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
],
|
20 |
+
"default-features": [
|
21 |
+
"jit",
|
22 |
+
"logging",
|
23 |
+
"tls"
|
24 |
+
],
|
25 |
+
"features": {
|
26 |
+
"jit": {
|
27 |
+
"description": "Default feature. Enables jit pipeline compilation.",
|
28 |
+
"dependencies": [
|
29 |
+
{
|
30 |
+
"name": "blend2d",
|
31 |
+
"default-features": false,
|
32 |
+
"platform": "windows"
|
33 |
+
}
|
34 |
+
]
|
35 |
+
},
|
36 |
+
"logging": {
|
37 |
+
"description": "Default feature. Enables logging.",
|
38 |
+
"dependencies": [
|
39 |
+
{
|
40 |
+
"name": "blend2d",
|
41 |
+
"default-features": false,
|
42 |
+
"features": [
|
43 |
+
"jit"
|
44 |
+
]
|
45 |
+
}
|
46 |
+
]
|
47 |
+
},
|
48 |
+
"tls": {
|
49 |
+
"description": "Default feature. Enables use of thread_local feature. Disable for platforms where thread local storage is expensive or not supported.",
|
50 |
+
"dependencies": [
|
51 |
+
{
|
52 |
+
"name": "blend2d",
|
53 |
+
"default-features": false,
|
54 |
+
"platform": "windows"
|
55 |
+
}
|
56 |
+
]
|
57 |
+
}
|
58 |
+
}
|
59 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-build/0002-fix-get-version.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/tools/clang-linux.jam b/src/tools/clang-linux.jam
|
2 |
+
index 949e277..8934787 100644
|
3 |
+
--- a/src/tools/clang-linux.jam
|
4 |
+
+++ b/src/tools/clang-linux.jam
|
5 |
+
@@ -97,7 +97,7 @@ rule init ( version ? : command * : options * ) {
|
6 |
+
|
7 |
+
rule get-full-version ( command-string )
|
8 |
+
{
|
9 |
+
- return [ common.match-command-output version : "version ([0-9.]+)"
|
10 |
+
+ return [ common.match-command-output version : "([0-9]+.[0-9]+.[0-9]+)"
|
11 |
+
: "$(command-string) --version" ] ;
|
12 |
+
}
|
13 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-build/0003-fix-emscripten.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/tools/emscripten.jam b/src/tools/emscripten.jam
|
2 |
+
index d6594c5e43..8b15d0af96 100644
|
3 |
+
--- a/src/tools/emscripten.jam
|
4 |
+
+++ b/src/tools/emscripten.jam
|
5 |
+
@@ -6,6 +6,7 @@
|
6 |
+
import feature ;
|
7 |
+
import os ;
|
8 |
+
import toolset ;
|
9 |
+
+import generators ;
|
10 |
+
import common ;
|
11 |
+
import gcc ;
|
12 |
+
import type ;
|
13 |
+
@@ -37,6 +38,9 @@ rule init ( version ? : command * : options * )
|
14 |
+
|
15 |
+
feature.extend toolset : emscripten ;
|
16 |
+
|
17 |
+
+generators.override builtin.lib-generator : emscripten.prebuilt ;
|
18 |
+
+generators.override emscripten.searched-lib-generator : searched-lib-generator ;
|
19 |
+
+
|
20 |
+
toolset.inherit-generators emscripten <toolset>emscripten
|
21 |
+
: gcc
|
22 |
+
: gcc.mingw.link gcc.mingw.link.dll gcc.compile.c.pch gcc.compile.c++.pch
|
23 |
+
@@ -53,7 +57,7 @@ toolset.inherit-flags emscripten : gcc
|
24 |
+
|
25 |
+
type.set-generated-target-suffix EXE : <toolset>emscripten : "js" ;
|
26 |
+
type.set-generated-target-suffix OBJ : <toolset>emscripten : "bc" ;
|
27 |
+
-type.set-generated-target-suffix STATIC_LIB : <toolset>emscripten : "bc" ;
|
28 |
+
+type.set-generated-target-suffix STATIC_LIB : <toolset>emscripten : "a" ;
|
29 |
+
|
30 |
+
toolset.flags emscripten.compile OPTIONS <flags> ;
|
31 |
+
toolset.flags emscripten.compile OPTIONS <cflags> ;
|
32 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-build/0004-workaround-MSVC-codegen-bug-in-17.5-on-ARM64.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 1004fb82914b8295fe4ec43afb510994babf2161 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Matt Gardner <[email protected]>
|
3 |
+
Date: Fri, 17 Mar 2023 15:09:17 -0700
|
4 |
+
Subject: [PATCH] workaround MSVC codegen bug in 17.5 on ARM64
|
5 |
+
|
6 |
+
---
|
7 |
+
src/engine/glob.cpp | 3 +++
|
8 |
+
1 file changed, 3 insertions(+)
|
9 |
+
|
10 |
+
diff --git a/src/engine/glob.cpp b/src/engine/glob.cpp
|
11 |
+
index bec00ee56..1ce66c7e6 100644
|
12 |
+
--- a/src/engine/glob.cpp
|
13 |
+
+++ b/src/engine/glob.cpp
|
14 |
+
@@ -111,6 +111,9 @@ int glob( const char * c, const char * s )
|
15 |
+
* globchars() - build a bitlist to check for character group match.
|
16 |
+
*/
|
17 |
+
|
18 |
+
+#if defined(_MSC_VER) && _MSC_VER == 1935 && defined(_M_ARM64)
|
19 |
+
+__declspec(noinline)
|
20 |
+
+#endif
|
21 |
+
static void globchars( const char * s, const char * e, char * b )
|
22 |
+
{
|
23 |
+
int neg = 0;
|
24 |
+
--
|
25 |
+
2.33.0.vfs.0.0
|
26 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-build/portfile.cmake
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
2 |
+
|
3 |
+
if(CMAKE_HOST_WIN32 AND VCPKG_CMAKE_SYSTEM_NAME AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" AND NOT VCPKG_CMAKE_SYSTEM_NAME STREQUAL "MinGW")
|
4 |
+
return()
|
5 |
+
endif()
|
6 |
+
|
7 |
+
set(BOOST_VERSION ${VERSION})
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
REPO boostorg/build
|
12 |
+
REF boost-${VERSION}
|
13 |
+
SHA512 61540a3b2b7b6167ed8286daed4b4fde515ae9e0de81d17ef688d7972a0a6325b15afbe4e9a73ec883a81d5b86998d612cadbdc79abaf1b087a74e4e6b7cc2b5
|
14 |
+
HEAD_REF master
|
15 |
+
PATCHES
|
16 |
+
0002-fix-get-version.patch
|
17 |
+
0003-fix-emscripten.patch
|
18 |
+
0004-workaround-MSVC-codegen-bug-in-17.5-on-ARM64.patch
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_download_distfile(ARCHIVE
|
22 |
+
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-${BOOST_VERSION}/LICENSE_1_0.txt"
|
23 |
+
FILENAME "boost_LICENSE_1_0.txt"
|
24 |
+
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_download_distfile(BOOSTCPP_ARCHIVE
|
28 |
+
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-${BOOST_VERSION}/boostcpp.jam"
|
29 |
+
FILENAME "boost-${BOOST_VERSION}-boostcpp.jam"
|
30 |
+
SHA512 32feae4e13418f68702b18964b17e706255429dd881a098355a0b644da11a97c42aa7eeffa5cc4e30aa8a370dde2097aecc62175fb37cd5cf9766e7fc6303da7
|
31 |
+
)
|
32 |
+
|
33 |
+
# https://github.com/boostorg/boost/pull/206
|
34 |
+
# do not add version suffix for android
|
35 |
+
file(READ "${BOOSTCPP_ARCHIVE}" _contents)
|
36 |
+
string(REPLACE "aix &&" "aix android &&" _contents "${_contents}")
|
37 |
+
file(WRITE "${SOURCE_PATH}/boostcpp.jam" "${_contents}")
|
38 |
+
|
39 |
+
file(INSTALL ${ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-build RENAME copyright)
|
40 |
+
|
41 |
+
# This fixes the lib path to use desktop libs instead of uwp -- TODO: improve this with better "host" compilation
|
42 |
+
string(REPLACE "\\store\\;" "\\;" LIB "$ENV{LIB}")
|
43 |
+
set(ENV{LIB} "${LIB}")
|
44 |
+
|
45 |
+
file(COPY
|
46 |
+
${SOURCE_PATH}/
|
47 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
48 |
+
)
|
49 |
+
|
50 |
+
file(READ "${CURRENT_PACKAGES_DIR}/tools/boost-build/src/tools/msvc.jam" _contents)
|
51 |
+
string(REPLACE " /ZW /EHsc " "" _contents "${_contents}")
|
52 |
+
string(REPLACE "-nologo" "" _contents "${_contents}")
|
53 |
+
string(REPLACE "/nologo" "" _contents "${_contents}")
|
54 |
+
string(REPLACE "/Zm800" "" _contents "${_contents}")
|
55 |
+
string(REPLACE "<define>_WIN32_WINNT=0x0602" "" _contents "${_contents}")
|
56 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/tools/boost-build/src/tools/msvc.jam" "${_contents}")
|
57 |
+
|
58 |
+
message(STATUS "Bootstrapping...")
|
59 |
+
if(CMAKE_HOST_WIN32)
|
60 |
+
if(VCPKG_TARGET_IS_MINGW)
|
61 |
+
set(TOOLSET mingw)
|
62 |
+
else()
|
63 |
+
set(TOOLSET msvc)
|
64 |
+
endif()
|
65 |
+
vcpkg_execute_required_process(
|
66 |
+
COMMAND "${CURRENT_PACKAGES_DIR}/tools/boost-build/bootstrap.bat" ${TOOLSET}
|
67 |
+
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
68 |
+
LOGNAME bootstrap-${TARGET_TRIPLET}
|
69 |
+
)
|
70 |
+
else()
|
71 |
+
vcpkg_execute_required_process(
|
72 |
+
COMMAND "${CURRENT_PACKAGES_DIR}/tools/boost-build/bootstrap.sh"
|
73 |
+
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
74 |
+
LOGNAME bootstrap-${TARGET_TRIPLET}
|
75 |
+
)
|
76 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-build/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-build",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost.Build",
|
6 |
+
"homepage": "https://github.com/boostorg/build",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-uninstall",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
}
|
13 |
+
]
|
14 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-cobalt/b2-options.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
list(APPEND B2_OPTIONS cxxstd=20)
|
2 |
+
|
3 |
+
set(unsupported_compiler FALSE)
|
4 |
+
|
5 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
|
6 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_VERSION VERSION_LESS "14")
|
7 |
+
set(unsupported_compiler TRUE)
|
8 |
+
endif()
|
9 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_VERSION VERSION_LESS "16")
|
10 |
+
list(APPEND B2_OPTIONS "boost.cobalt.pmr=boost-container")
|
11 |
+
endif()
|
12 |
+
elseif(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
13 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_VERSION VERSION_LESS "10")
|
14 |
+
set(unsupported_compiler TRUE)
|
15 |
+
endif()
|
16 |
+
elseif(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
17 |
+
if (VCPKG_DETECTED_MSVC_VERSION LESS "1930")
|
18 |
+
set(unsupported_compiler TRUE)
|
19 |
+
endif()
|
20 |
+
endif()
|
21 |
+
|
22 |
+
if(unsupported_compiler)
|
23 |
+
message(FATAL_ERROR "Boost.Cobalt is supported since Clang 14, GCC 10 and MSVC 19.30 (Visual Studio 2022). Detected compiler is ${VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID} ${VCPKG_DETECTED_MSVC_VERSION}.")
|
24 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-cobalt/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/cobalt
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 167e1d48eefe2517b9cd3796602798cb3d8d14655e30cb175b468f667fb8ae132aba508fc96987c4518d0a364aa9b70461d368c56b62d18fcd0f923cd6525e7f
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_replace_string("${SOURCE_PATH}/build/Jamfile"
|
12 |
+
"import ../../config/checks/config"
|
13 |
+
"import ../config/checks/config"
|
14 |
+
)
|
15 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
|
16 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
17 |
+
boost_modular_build(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
|
20 |
+
)
|
21 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
22 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-cobalt/vcpkg.json
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-cobalt",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost cobalt module",
|
6 |
+
"homepage": "https://github.com/boostorg/cobalt",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"supports": "!osx & !ios & !android",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "boost-asio",
|
12 |
+
"version>=": "1.84.0"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "boost-build",
|
16 |
+
"host": true,
|
17 |
+
"version>=": "1.84.0"
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "boost-circular-buffer",
|
21 |
+
"version>=": "1.84.0"
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"name": "boost-config",
|
25 |
+
"version>=": "1.84.0"
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"name": "boost-container",
|
29 |
+
"version>=": "1.84.0"
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"name": "boost-core",
|
33 |
+
"version>=": "1.84.0"
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"name": "boost-intrusive",
|
37 |
+
"version>=": "1.84.0"
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"name": "boost-leaf",
|
41 |
+
"version>=": "1.84.0"
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "boost-modular-build-helper",
|
45 |
+
"host": true,
|
46 |
+
"version>=": "1.84.0"
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"name": "boost-mp11",
|
50 |
+
"version>=": "1.84.0"
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"name": "boost-preprocessor",
|
54 |
+
"version>=": "1.84.0"
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"name": "boost-smart-ptr",
|
58 |
+
"version>=": "1.84.0"
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"name": "boost-system",
|
62 |
+
"version>=": "1.84.0"
|
63 |
+
},
|
64 |
+
{
|
65 |
+
"name": "boost-throw-exception",
|
66 |
+
"version>=": "1.84.0"
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"name": "boost-variant2",
|
70 |
+
"version>=": "1.84.0"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"name": "boost-vcpkg-helpers",
|
74 |
+
"version>=": "1.84.0"
|
75 |
+
},
|
76 |
+
{
|
77 |
+
"name": "vcpkg-cmake",
|
78 |
+
"host": true
|
79 |
+
}
|
80 |
+
]
|
81 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-exception/portfile.cmake
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/exception
|
6 |
+
REF boost-${VERSION}
|
7 |
+
SHA512 bd28f5c58b6e76e83ab5d0a4a86147d653a6d036a4e264ef38065e69480a438f5e2df265540c6a6e4b14b055ae5d947b6fcfb3cf9662e10ba77041ac3571f507
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
12 |
+
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
|
13 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
14 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
cc-multilingual-main/cc_net/vcpkg/ports/boost-exception/vcpkg.json
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
|
3 |
+
"name": "boost-exception",
|
4 |
+
"version": "1.84.0",
|
5 |
+
"description": "Boost exception module",
|
6 |
+
"homepage": "https://github.com/boostorg/exception",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "boost-assert",
|
11 |
+
"version>=": "1.84.0"
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "boost-build",
|
15 |
+
"host": true,
|
16 |
+
"version>=": "1.84.0"
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "boost-config",
|
20 |
+
"version>=": "1.84.0"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "boost-core",
|
24 |
+
"version>=": "1.84.0"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"name": "boost-modular-build-helper",
|
28 |
+
"host": true,
|
29 |
+
"version>=": "1.84.0"
|
30 |
+
},
|
31 |
+
{
|
32 |
+
"name": "boost-smart-ptr",
|
33 |
+
"version>=": "1.84.0"
|
34 |
+
},
|
35 |
+
{
|
36 |
+
"name": "boost-throw-exception",
|
37 |
+
"version>=": "1.84.0"
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"name": "boost-tuple",
|
41 |
+
"version>=": "1.84.0"
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"name": "boost-type-traits",
|
45 |
+
"version>=": "1.84.0"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"name": "boost-vcpkg-helpers",
|
49 |
+
"version>=": "1.84.0"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"name": "vcpkg-cmake",
|
53 |
+
"host": true
|
54 |
+
}
|
55 |
+
]
|
56 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/caf/fix_cxx17.patch
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index ed753b9..5dc80c2 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -131,7 +131,7 @@ endif()
|
6 |
+
|
7 |
+
if(NOT DEFINED CAF_USE_STD_FORMAT)
|
8 |
+
set(CAF_USE_STD_FORMAT OFF CACHE BOOL "Enable std::format support" FORCE)
|
9 |
+
- if(NOT CMAKE_CROSSCOMPILING)
|
10 |
+
+ if(0)
|
11 |
+
set(snippet "#include <format>
|
12 |
+
#include <iostream>
|
13 |
+
int main() { std::cout << std::format(\"{}\", \"ok\"); }")
|
14 |
+
@@ -177,7 +177,6 @@ endif()
|
15 |
+
|
16 |
+
# -- create the libcaf_test target ahead of time for caf_core ------------------
|
17 |
+
|
18 |
+
-add_library(libcaf_test)
|
19 |
+
|
20 |
+
# -- add uninstall target if it does not exist yet -----------------------------
|
21 |
+
|
22 |
+
@@ -289,8 +288,6 @@ function(caf_add_component name)
|
23 |
+
string(REPLACE "/" "-" test_name "${test_path}/${test_name}-test")
|
24 |
+
add_executable("${test_name}" ${source_file}
|
25 |
+
$<TARGET_OBJECTS:${obj_lib_target}>)
|
26 |
+
- target_link_libraries(${test_name} PRIVATE libcaf_test
|
27 |
+
- ${CAF_ADD_COMPONENT_DEPENDENCIES})
|
28 |
+
target_include_directories(${test_name} PRIVATE
|
29 |
+
"${CMAKE_CURRENT_SOURCE_DIR}"
|
30 |
+
"${CMAKE_CURRENT_BINARY_DIR}")
|
31 |
+
@@ -314,8 +311,6 @@ function(caf_add_component name)
|
32 |
+
add_executable(${tst_bin_target}
|
33 |
+
${CAF_ADD_COMPONENT_LEGACY_TEST_SOURCES}
|
34 |
+
$<TARGET_OBJECTS:${obj_lib_target}>)
|
35 |
+
- target_link_libraries(${tst_bin_target} PRIVATE libcaf_test
|
36 |
+
- ${CAF_ADD_COMPONENT_DEPENDENCIES})
|
37 |
+
target_include_directories(${tst_bin_target} PRIVATE
|
38 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/tests/legacy")
|
39 |
+
if(CAF_ADD_COMPONENT_LEGACY_TEST_SUITES)
|
40 |
+
@@ -373,7 +368,6 @@ endfunction()
|
41 |
+
|
42 |
+
add_subdirectory(libcaf_core)
|
43 |
+
|
44 |
+
-add_subdirectory(libcaf_test)
|
45 |
+
|
46 |
+
if(CAF_ENABLE_NET_MODULE)
|
47 |
+
add_subdirectory(libcaf_net)
|
cc-multilingual-main/cc_net/vcpkg/ports/caf/fix_dependency.patch
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/CAFConfig.cmake.in b/cmake/CAFConfig.cmake.in
|
2 |
+
index 1a2348c..6c0d0b2 100644
|
3 |
+
--- a/cmake/CAFConfig.cmake.in
|
4 |
+
+++ b/cmake/CAFConfig.cmake.in
|
5 |
+
@@ -5,5 +5,6 @@ include(CMakeFindDependencyMacro)
|
6 |
+
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
7 |
+
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
|
8 |
+
find_dependency(Threads)
|
9 |
+
+find_dependency(OpenSSL REQUIRED)
|
10 |
+
|
11 |
+
include("${CMAKE_CURRENT_LIST_DIR}/CAFTargets.cmake")
|
cc-multilingual-main/cc_net/vcpkg/ports/caf/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO actor-framework/actor-framework
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 97766b5b0a4db96b03be77c1ffd2198cc5536c09e2a06bb6fcff023ee78692f2c23ad213dc9698d6abfe950c61c4a2565bbfdfe871652cef816829e83d16ceab
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix_dependency.patch
|
9 |
+
fix_cxx17.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
14 |
+
OPTIONS
|
15 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
16 |
+
-DCAF_ENABLE_CURL_EXAMPLES=OFF
|
17 |
+
-DCAF_ENABLE_PROTOBUF_EXAMPLES=OFF
|
18 |
+
-DCAF_ENABLE_QT6_EXAMPLES=OFF
|
19 |
+
-DCAF_ENABLE_RUNTIME_CHECKS=OFF
|
20 |
+
-DCAF_ENABLE_ACTOR_PROFILER=OFF
|
21 |
+
-DCAF_ENABLE_EXAMPLES=OFF
|
22 |
+
-DCAF_ENABLE_TESTING=OFF
|
23 |
+
-DCAF_ENABLE_TOOLS=OFF
|
24 |
+
-DCAF_ENABLE_IO_MODULE=ON
|
25 |
+
-DCAF_ENABLE_EXCEPTIONS=ON
|
26 |
+
-DCAF_ENABLE_UTILITY_TARGETS=OFF
|
27 |
+
)
|
28 |
+
|
29 |
+
vcpkg_cmake_install()
|
30 |
+
|
31 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME CAF CONFIG_PATH lib/cmake/CAF)
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
36 |
+
|
37 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/caf/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "caf",
|
3 |
+
"version": "0.19.3",
|
4 |
+
"description": "an open source implementation of the actor model for C++ featuring lightweight & fast actor implementations, pattern matching for messages, network transparent messaging, and more.",
|
5 |
+
"homepage": "https://github.com/actor-framework/actor-framework",
|
6 |
+
"license": "BSD-3-Clause",
|
7 |
+
"dependencies": [
|
8 |
+
"openssl",
|
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/ccfits/dll_exports.patch
ADDED
@@ -0,0 +1,469 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/FITS.h b/FITS.h
|
2 |
+
index e21f3db..3e97c83 100644
|
3 |
+
--- a/FITS.h
|
4 |
+
+++ b/FITS.h
|
5 |
+
@@ -21,6 +21,8 @@
|
6 |
+
#include "HDUCreator.h"
|
7 |
+
// FitsError
|
8 |
+
#include "FitsError.h"
|
9 |
+
+//DLL Exporting
|
10 |
+
+#include "ccfits_export.h"
|
11 |
+
|
12 |
+
namespace CCfits {
|
13 |
+
class FITSBase;
|
14 |
+
@@ -665,7 +667,7 @@ do this either).
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
- class FITS
|
19 |
+
+ class CCFITS_EXPORT FITS
|
20 |
+
{
|
21 |
+
|
22 |
+
public:
|
23 |
+
diff --git a/HDU.h b/HDU.h
|
24 |
+
index 07f68e7..047e731 100644
|
25 |
+
--- a/HDU.h
|
26 |
+
+++ b/HDU.h
|
27 |
+
@@ -568,7 +568,7 @@ and return its value.
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
- class HDU
|
32 |
+
+ class CCFITS_EXPORT HDU
|
33 |
+
{
|
34 |
+
|
35 |
+
public:
|
36 |
+
diff --git a/Table.h b/Table.h
|
37 |
+
index a0c1afe..9a8a5db 100644
|
38 |
+
--- a/Table.h
|
39 |
+
+++ b/Table.h
|
40 |
+
@@ -268,7 +268,7 @@ namespace CCfits {
|
41 |
+
|
42 |
+
|
43 |
+
|
44 |
+
- class Table : public ExtHDU //## Inherits: <unnamed>%3804A126EB10
|
45 |
+
+ class CCFITS_EXPORT Table : public ExtHDU //## Inherits: <unnamed>%3804A126EB10
|
46 |
+
{
|
47 |
+
|
48 |
+
public:
|
49 |
+
diff --git a/Column.h b/Column.h
|
50 |
+
index e4496a7..b798947 100644
|
51 |
+
--- a/Column.h
|
52 |
+
+++ b/Column.h
|
53 |
+
@@ -838,14 +838,14 @@ namespace CCfits {
|
54 |
+
|
55 |
+
|
56 |
+
|
57 |
+
- class Column
|
58 |
+
+ class CCFITS_EXPORT Column
|
59 |
+
{
|
60 |
+
|
61 |
+
public:
|
62 |
+
|
63 |
+
|
64 |
+
|
65 |
+
- class RangeError : public FitsException //## Inherits: <unnamed>%3946526D031A
|
66 |
+
+ class CCFITS_EXPORT RangeError : public FitsException //## Inherits: <unnamed>%3946526D031A
|
67 |
+
{
|
68 |
+
public:
|
69 |
+
RangeError (const String& msg, bool silent = true);
|
70 |
+
@@ -857,7 +857,7 @@ namespace CCfits {
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
+
- class InvalidDataType : public FitsException //## Inherits: <unnamed>%3947CF30033E
|
75 |
+
+ class CCFITS_EXPORT InvalidDataType : public FitsException //## Inherits: <unnamed>%3947CF30033E
|
76 |
+
{
|
77 |
+
public:
|
78 |
+
InvalidDataType (const String& str = string(), bool silent = true);
|
79 |
+
@@ -869,7 +869,7 @@ namespace CCfits {
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
- class InvalidRowParameter : public FitsException //## Inherits: <unnamed>%39B5310F01A0
|
84 |
+
+ class CCFITS_EXPORT InvalidRowParameter : public FitsException //## Inherits: <unnamed>%39B5310F01A0
|
85 |
+
{
|
86 |
+
public:
|
87 |
+
InvalidRowParameter (const String& diag, bool silent = true);
|
88 |
+
@@ -881,7 +881,7 @@ namespace CCfits {
|
89 |
+
|
90 |
+
|
91 |
+
|
92 |
+
- class WrongColumnType : public FitsException //## Inherits: <unnamed>%39B545780082
|
93 |
+
+ class CCFITS_EXPORT WrongColumnType : public FitsException //## Inherits: <unnamed>%39B545780082
|
94 |
+
{
|
95 |
+
public:
|
96 |
+
WrongColumnType (const String& diag, bool silent = true);
|
97 |
+
@@ -893,7 +893,7 @@ namespace CCfits {
|
98 |
+
|
99 |
+
|
100 |
+
|
101 |
+
- class UnspecifiedLengths : public FitsException //## Inherits: <unnamed>%3A018C9D007D
|
102 |
+
+ class CCFITS_EXPORT UnspecifiedLengths : public FitsException //## Inherits: <unnamed>%3A018C9D007D
|
103 |
+
{
|
104 |
+
public:
|
105 |
+
UnspecifiedLengths (const String& diag, bool silent = true);
|
106 |
+
@@ -905,7 +905,7 @@ namespace CCfits {
|
107 |
+
|
108 |
+
|
109 |
+
|
110 |
+
- class InvalidRowNumber : public FitsException //## Inherits: <unnamed>%3B0A850F0307
|
111 |
+
+ class CCFITS_EXPORT InvalidRowNumber : public FitsException //## Inherits: <unnamed>%3B0A850F0307
|
112 |
+
{
|
113 |
+
public:
|
114 |
+
InvalidRowNumber (const String& diag, bool silent = true);
|
115 |
+
@@ -917,7 +917,7 @@ namespace CCfits {
|
116 |
+
|
117 |
+
|
118 |
+
|
119 |
+
- class InsufficientElements : public FitsException //## Inherits: <unnamed>%3B0BE611010A
|
120 |
+
+ class CCFITS_EXPORT InsufficientElements : public FitsException //## Inherits: <unnamed>%3B0BE611010A
|
121 |
+
{
|
122 |
+
public:
|
123 |
+
InsufficientElements (const String& msg, bool silent = true);
|
124 |
+
@@ -929,7 +929,7 @@ namespace CCfits {
|
125 |
+
|
126 |
+
|
127 |
+
|
128 |
+
- class NoNullValue : public FitsException //## Inherits: <unnamed>%3B0D589A0092
|
129 |
+
+ class CCFITS_EXPORT NoNullValue : public FitsException //## Inherits: <unnamed>%3B0D589A0092
|
130 |
+
{
|
131 |
+
public:
|
132 |
+
NoNullValue (const String& diag, bool silent = true);
|
133 |
+
@@ -941,7 +941,7 @@ namespace CCfits {
|
134 |
+
|
135 |
+
|
136 |
+
|
137 |
+
- class InvalidNumberOfRows : public FitsException //## Inherits: <unnamed>%3B20EB8B0205
|
138 |
+
+ class CCFITS_EXPORT InvalidNumberOfRows : public FitsException //## Inherits: <unnamed>%3B20EB8B0205
|
139 |
+
{
|
140 |
+
public:
|
141 |
+
InvalidNumberOfRows (int number, bool silent = true);
|
142 |
+
diff --git a/AsciiTable.h b/AsciiTable.h
|
143 |
+
index 620cf41..d03aa44 100644
|
144 |
+
--- a/AsciiTable.h
|
145 |
+
+++ b/AsciiTable.h
|
146 |
+
@@ -133,7 +133,7 @@ namespace CCfits {
|
147 |
+
|
148 |
+
|
149 |
+
|
150 |
+
- class AsciiTable : public Table //## Inherits: <unnamed>%3804A75CE420
|
151 |
+
+ class CCFITS_EXPORT AsciiTable : public Table //## Inherits: <unnamed>%3804A75CE420
|
152 |
+
{
|
153 |
+
|
154 |
+
public:
|
155 |
+
diff --git a/CCfits.h b/CCfits.h
|
156 |
+
index d09438a..a62b8a6 100644
|
157 |
+
--- a/CCfits.h
|
158 |
+
+++ b/CCfits.h
|
159 |
+
@@ -23,7 +23,7 @@ namespace CCfits {
|
160 |
+
#include <sys/types.h>
|
161 |
+
#include "longnam.h"
|
162 |
+
#include "float.h"
|
163 |
+
-
|
164 |
+
+#include "ccfits_export.h"
|
165 |
+
|
166 |
+
namespace CCfits {
|
167 |
+
/*! \namespace CCfits
|
168 |
+
@@ -32,8 +32,8 @@ namespace CCfits {
|
169 |
+
static const int BITPIX = -32;
|
170 |
+
static const int NAXIS = 2;
|
171 |
+
static const int MAXDIM = 99;
|
172 |
+
- extern const unsigned long USBASE;
|
173 |
+
- extern const unsigned long ULBASE;
|
174 |
+
+ extern const CCFITS_EXPORT unsigned long USBASE;
|
175 |
+
+ extern const CCFITS_EXPORT unsigned long ULBASE;
|
176 |
+
|
177 |
+
extern char BSCALE[7];
|
178 |
+
extern char BZERO[6];
|
179 |
+
diff --git a/FITSBase.h b/FITSBase.h
|
180 |
+
index 996fdae..0c985f9 100644
|
181 |
+
--- a/FITSBase.h
|
182 |
+
+++ b/FITSBase.h
|
183 |
+
@@ -30,7 +30,7 @@ namespace CCfits {
|
184 |
+
|
185 |
+
|
186 |
+
|
187 |
+
- class FITSBase
|
188 |
+
+ class CCFITS_EXPORT FITSBase
|
189 |
+
{
|
190 |
+
|
191 |
+
public:
|
192 |
+
diff --git a/Keyword.h b/Keyword.h
|
193 |
+
index 816c119..b6df1f1 100644
|
194 |
+
--- a/Keyword.h
|
195 |
+
+++ b/Keyword.h
|
196 |
+
@@ -195,7 +195,7 @@ namespace CCfits {
|
197 |
+
|
198 |
+
|
199 |
+
|
200 |
+
- class Keyword
|
201 |
+
+ class CCFITS_EXPORT Keyword
|
202 |
+
{
|
203 |
+
|
204 |
+
public:
|
205 |
+
diff --git a/ExtHDU.h b/ExtHDU.h
|
206 |
+
index d075fa1..e2d7dc6 100644
|
207 |
+
--- a/ExtHDU.h
|
208 |
+
+++ b/ExtHDU.h
|
209 |
+
@@ -435,7 +435,7 @@ namespace CCfits {
|
210 |
+
|
211 |
+
|
212 |
+
|
213 |
+
- class ExtHDU : public HDU //## Inherits: <unnamed>%38048213E7A8
|
214 |
+
+ class CCFITS_EXPORT ExtHDU : public HDU //## Inherits: <unnamed>%38048213E7A8
|
215 |
+
{
|
216 |
+
|
217 |
+
public:
|
218 |
+
diff --git a/PHDU.h b/PHDU.h
|
219 |
+
index fe5f799..d9669b4 100644
|
220 |
+
--- a/PHDU.h
|
221 |
+
+++ b/PHDU.h
|
222 |
+
@@ -264,7 +264,7 @@ namespace CCfits {
|
223 |
+
|
224 |
+
|
225 |
+
|
226 |
+
- class PHDU : public HDU //## Inherits: <unnamed>%394E6F9800C3
|
227 |
+
+ class CCFITS_EXPORT PHDU : public HDU //## Inherits: <unnamed>%394E6F9800C3
|
228 |
+
{
|
229 |
+
|
230 |
+
public:
|
231 |
+
diff --git a/BinTable.h b/BinTable.h
|
232 |
+
index 68851e3..906005a 100644
|
233 |
+
--- a/BinTable.h
|
234 |
+
+++ b/BinTable.h
|
235 |
+
@@ -127,7 +127,7 @@ namespace CCfits {
|
236 |
+
|
237 |
+
|
238 |
+
|
239 |
+
- class BinTable : public Table //## Inherits: <unnamed>%3804A7E75F10
|
240 |
+
+ class CCFITS_EXPORT BinTable : public Table //## Inherits: <unnamed>%3804A7E75F10
|
241 |
+
{
|
242 |
+
|
243 |
+
public:
|
244 |
+
diff --git a/ColumnCreator.h b/ColumnCreator.h
|
245 |
+
index 104bd4f..15cd0ea 100644
|
246 |
+
--- a/ColumnCreator.h
|
247 |
+
+++ b/ColumnCreator.h
|
248 |
+
@@ -28,7 +28,7 @@ namespace CCfits {
|
249 |
+
|
250 |
+
|
251 |
+
|
252 |
+
- class ColumnCreator
|
253 |
+
+ class CCFITS_EXPORT ColumnCreator
|
254 |
+
{
|
255 |
+
|
256 |
+
public:
|
257 |
+
diff --git a/FitsError.h b/FitsError.h
|
258 |
+
index 593723c..52941f6 100644
|
259 |
+
--- a/FitsError.h
|
260 |
+
+++ b/FitsError.h
|
261 |
+
@@ -13,6 +13,7 @@
|
262 |
+
//#include <exception>
|
263 |
+
//#include <iostream>
|
264 |
+
//#include <stl.h>
|
265 |
+
+#include "ccfits_export.h"
|
266 |
+
#include <string>
|
267 |
+
using std::string;
|
268 |
+
|
269 |
+
@@ -90,7 +91,7 @@ namespace CCfits {
|
270 |
+
|
271 |
+
|
272 |
+
|
273 |
+
- class FitsException
|
274 |
+
+ class CCFITS_EXPORT FitsException
|
275 |
+
{
|
276 |
+
public:
|
277 |
+
FitsException (const string& msg, bool& silent);
|
278 |
+
@@ -109,7 +110,7 @@ namespace CCfits {
|
279 |
+
|
280 |
+
|
281 |
+
|
282 |
+
- class FitsError : public FitsException //## Inherits: <unnamed>%399170BD017D
|
283 |
+
+ class CCFITS_EXPORT FitsError : public FitsException //## Inherits: <unnamed>%399170BD017D
|
284 |
+
{
|
285 |
+
public:
|
286 |
+
FitsError (int errornum, bool silent = true);
|
287 |
+
@@ -123,7 +124,7 @@ namespace CCfits {
|
288 |
+
|
289 |
+
|
290 |
+
|
291 |
+
- class FitsFatal
|
292 |
+
+ class CCFITS_EXPORT FitsFatal
|
293 |
+
{
|
294 |
+
public:
|
295 |
+
FitsFatal (const string& diag);
|
296 |
+
diff --git a/HDUCreator.h b/HDUCreator.h
|
297 |
+
index 65b82b7..2b5f717 100644
|
298 |
+
--- a/HDUCreator.h
|
299 |
+
+++ b/HDUCreator.h
|
300 |
+
@@ -35,7 +35,7 @@ namespace CCfits {
|
301 |
+
|
302 |
+
|
303 |
+
|
304 |
+
- class HDUCreator
|
305 |
+
+ class CCFITS_EXPORT HDUCreator
|
306 |
+
{
|
307 |
+
|
308 |
+
public:
|
309 |
+
diff --git a/ccfits_export.h b/ccfits_export.h
|
310 |
+
new file mode 100644
|
311 |
+
index 0000000..a2540a6 100644
|
312 |
+
--- /dev/null
|
313 |
+
+++ b/ccfits_export.h
|
314 |
+
@@ -0,0 +1,22 @@
|
315 |
+
+#ifndef CCFITS_EXPORT_H
|
316 |
+
+#define CCFITS_EXPORT_H
|
317 |
+
+
|
318 |
+
+#ifdef CCFITS_STATIC_DEFINE
|
319 |
+
+# define CCFITS_EXPORT
|
320 |
+
+#else
|
321 |
+
+# ifndef CCFITS_EXPORT
|
322 |
+
+# ifdef _MSC_VER
|
323 |
+
+# ifdef CCfits_EXPORTS
|
324 |
+
+ /* We are building this library */
|
325 |
+
+# define CCFITS_EXPORT __declspec(dllexport)
|
326 |
+
+# else
|
327 |
+
+ /* We are using this library */
|
328 |
+
+# define CCFITS_EXPORT __declspec(dllimport)
|
329 |
+
+# endif
|
330 |
+
+# else
|
331 |
+
+# define CCFITS_EXPORT __attribute__((visibility("default")))
|
332 |
+
+# endif
|
333 |
+
+# endif
|
334 |
+
+#endif
|
335 |
+
+
|
336 |
+
+#endif
|
337 |
+
|
338 |
+
diff --git a/FITSUtil.h b/FITSUtil.h
|
339 |
+
index 762d430..e2eee33 100644
|
340 |
+
--- a/FITSUtil.h
|
341 |
+
+++ b/FITSUtil.h
|
342 |
+
@@ -22,6 +22,7 @@
|
343 |
+
#include <string>
|
344 |
+
// FitsError
|
345 |
+
#include "FitsError.h"
|
346 |
+
+#include "ccfits_export.h"
|
347 |
+
#include <typeinfo>
|
348 |
+
|
349 |
+
|
350 |
+
@@ -287,21 +288,21 @@ object.
|
351 |
+
template <typename T>
|
352 |
+
void swap(std::vector<T>& left, std::vector<T>& right);
|
353 |
+
|
354 |
+
- string lowerCase(const string& inputString);
|
355 |
+
+ string CCFITS_EXPORT lowerCase(const string& inputString);
|
356 |
+
|
357 |
+
- string upperCase(const string& inputString);
|
358 |
+
+ string CCFITS_EXPORT upperCase(const string& inputString);
|
359 |
+
|
360 |
+
// Check if a file name includes an image compression specifier,
|
361 |
+
// and return its location if it exists.
|
362 |
+
- string::size_type checkForCompressString(const string& fileName);
|
363 |
+
+ string::size_type CCFITS_EXPORT checkForCompressString(const string& fileName);
|
364 |
+
|
365 |
+
- struct InvalidConversion : public FitsException
|
366 |
+
+ struct CCFITS_EXPORT InvalidConversion : public FitsException
|
367 |
+
{
|
368 |
+
InvalidConversion(const string& diag, bool silent=false);
|
369 |
+
|
370 |
+
};
|
371 |
+
|
372 |
+
- struct MatchStem : public std::binary_function<string,string,bool>
|
373 |
+
+ struct CCFITS_EXPORT MatchStem : public std::binary_function<string,string,bool>
|
374 |
+
{
|
375 |
+
bool operator()(const string& left, const string& right) const;
|
376 |
+
};
|
377 |
+
@@ -323,7 +324,7 @@ object.
|
378 |
+
|
379 |
+
char** CharArray(const std::vector<string>& inArray);
|
380 |
+
|
381 |
+
- string FITSType2String( int typeInt );
|
382 |
+
+ string CCFITS_EXPORT FITSType2String( int typeInt );
|
383 |
+
|
384 |
+
|
385 |
+
template <typename S, typename T>
|
386 |
+
@@ -633,7 +634,7 @@ object.
|
387 |
+
|
388 |
+
|
389 |
+
|
390 |
+
- class UnrecognizedType : public FitsException //## Inherits: <unnamed>%3CE143AB00C6
|
391 |
+
+ class CCFITS_EXPORT UnrecognizedType : public FitsException //## Inherits: <unnamed>%3CE143AB00C6
|
392 |
+
{
|
393 |
+
public:
|
394 |
+
UnrecognizedType (string diag, bool silent = true);
|
395 |
+
diff --git a/KeywordCreator.h b/KeywordCreator.h
|
396 |
+
index d878a26..b2c0c70 100644
|
397 |
+
--- a/KeywordCreator.h
|
398 |
+
+++ b/KeywordCreator.h
|
399 |
+
@@ -24,7 +24,7 @@ namespace CCfits {
|
400 |
+
|
401 |
+
|
402 |
+
|
403 |
+
- class KeywordCreator
|
404 |
+
+ class CCFITS_EXPORT KeywordCreator
|
405 |
+
{
|
406 |
+
|
407 |
+
public:
|
408 |
+
diff --git a/CCfits b/CCfits
|
409 |
+
index e9848c9..f30c9ad 100644
|
410 |
+
--- a/CCfits
|
411 |
+
+++ b/CCfits
|
412 |
+
@@ -2,20 +2,20 @@
|
413 |
+
#ifndef CCFITS
|
414 |
+
#define CCFITS 20031208
|
415 |
+
|
416 |
+
-#include <CCfits/CCfits.h>
|
417 |
+
+#include <CCfits.h>
|
418 |
+
|
419 |
+
-#include <CCfits/FITS.h>
|
420 |
+
-#include <CCfits/BinTable.h>
|
421 |
+
-#include <CCfits/AsciiTable.h>
|
422 |
+
-#include <CCfits/ColumnVectorData.h>
|
423 |
+
-#include <CCfits/ColumnData.h>
|
424 |
+
-#include <CCfits/ColumnT.h>
|
425 |
+
-#include <CCfits/ExtHDUT.h>
|
426 |
+
-#include <CCfits/KeywordT.h>
|
427 |
+
-#include <CCfits/KeyData.h>
|
428 |
+
-#include <CCfits/FitsError.h>
|
429 |
+
-#include <CCfits/FITSUtilT.h>
|
430 |
+
-#include <CCfits/PHDUT.h>
|
431 |
+
+#include <FITS.h>
|
432 |
+
+#include <BinTable.h>
|
433 |
+
+#include <AsciiTable.h>
|
434 |
+
+#include <ColumnVectorData.h>
|
435 |
+
+#include <ColumnData.h>
|
436 |
+
+#include <ColumnT.h>
|
437 |
+
+#include <ExtHDUT.h>
|
438 |
+
+#include <KeywordT.h>
|
439 |
+
+#include <KeyData.h>
|
440 |
+
+#include <FitsError.h>
|
441 |
+
+#include <FITSUtilT.h>
|
442 |
+
+#include <PHDUT.h>
|
443 |
+
|
444 |
+
|
445 |
+
#endif
|
446 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
447 |
+
index b958fc7..0b1fb4e 100644
|
448 |
+
--- a/CMakeLists.txt
|
449 |
+
+++ b/CMakeLists.txt
|
450 |
+
@@ -30,6 +30,11 @@ IF (BUILD_SHARED_LIBS)
|
451 |
+
SET (LIB_TYPE SHARED)
|
452 |
+
ENDIF (BUILD_SHARED_LIBS)
|
453 |
+
|
454 |
+
+
|
455 |
+
+IF (NOT BUILD_SHARED_LIBS)
|
456 |
+
+ ADD_DEFINITIONS(-DCCFITS_STATIC_DEFINE)
|
457 |
+
+ENDIF()
|
458 |
+
+
|
459 |
+
FILE(GLOB H_FILES "*.h")
|
460 |
+
SET(H_FILES ${H_FILES} CCfits)
|
461 |
+
|
462 |
+
@@ -55,6 +60,7 @@ SET(SRC_FILES
|
463 |
+
)
|
464 |
+
|
465 |
+
ADD_LIBRARY(${LIB_NAME} ${LIB_TYPE} ${H_FILES} ${SRC_FILES})
|
466 |
+
+
|
467 |
+
TARGET_LINK_LIBRARIES(${LIB_NAME} ${CFITSIO_LIBRARY}
|
468 |
+
)
|
469 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/ccfits/fix-dependency.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index d72ae85..405d96b 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -22,8 +22,8 @@ ENDIF()
|
6 |
+
|
7 |
+
#add_subdirectory (src)
|
8 |
+
|
9 |
+
-find_package(CFITSIO REQUIRED)
|
10 |
+
-INCLUDE_DIRECTORIES(${CFITSIO_INCLUDE_DIR})
|
11 |
+
+find_package(unofficial-cfitsio CONFIG REQUIRED)
|
12 |
+
+set(CFITSIO_LIBRARY cfitsio)
|
13 |
+
|
14 |
+
SET (LIB_TYPE STATIC)
|
15 |
+
IF (BUILD_SHARED_LIBS)
|
cc-multilingual-main/cc_net/vcpkg/ports/ccfits/portfile.cmake
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://heasarc.gsfc.nasa.gov/fitsio/CCfits-2.5/CCfits-2.5.tar.gz"
|
3 |
+
FILENAME "CCfits-2.5.tar.gz"
|
4 |
+
SHA512 63ab4d153063960510cf60651d5c832824cf85f937f84adc5390c7c2fb46eb8e9f5d8cda2554d79d24c7a4f1b6cf0b7a6e20958fb69920b65d7c362c0a5f26b5
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive(
|
8 |
+
SOURCE_PATH
|
9 |
+
ARCHIVE "${ARCHIVE}"
|
10 |
+
PATCHES
|
11 |
+
dll_exports.patch
|
12 |
+
fix-dependency.patch
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
22 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/bin")
|
23 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/CCfits.dll" "${CURRENT_PACKAGES_DIR}/bin/CCfits.dll")
|
24 |
+
if(NOT VCPKG_BUILD_TYPE)
|
25 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/bin")
|
26 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/CCfits.dll" "${CURRENT_PACKAGES_DIR}/debug/bin/CCfits.dll")
|
27 |
+
endif()
|
28 |
+
endif()
|
29 |
+
|
30 |
+
# Remove duplicate include files
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
32 |
+
|
33 |
+
# Patch installed headers to look in the correct subdirectory
|
34 |
+
file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/CCfits/*")
|
35 |
+
foreach(HEADER IN LISTS HEADERS)
|
36 |
+
vcpkg_replace_string("${HEADER}" "\"fitsio.h\"" "\"cfitsio/fitsio.h\"")
|
37 |
+
endforeach()
|
38 |
+
|
39 |
+
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/CCfits/CCfits.h
|
40 |
+
"#include \"longnam.h\"" "#include \"cfitsio/longnam.h\""
|
41 |
+
)
|
42 |
+
|
43 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/License.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/ccfits/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ccfits",
|
3 |
+
"version": "2.5",
|
4 |
+
"port-version": 11,
|
5 |
+
"description": "CCfits is an object oriented interface to the cfitsio library. It is designed to make the capabilities of cfitsio available to programmers working in C++.",
|
6 |
+
"homepage": "https://heasarc.gsfc.nasa.gov/fitsio/CCfits/",
|
7 |
+
"license": "NASA-1.3",
|
8 |
+
"dependencies": [
|
9 |
+
"cfitsio",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/cminpack/portfile.cmake
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Must be removed on next release
|
2 |
+
vcpkg_download_distfile(DLLEXPORT_PATCH
|
3 |
+
URLS https://github.com/devernay/cminpack/commit/0d40c5359674448aa6f78accaddca1d79befff1f.patch?full_index=1
|
4 |
+
FILENAME devernay-cminpack-pr-50-dllexport.patch
|
5 |
+
SHA512 558c21c4d43ff64a38945643810eafaee46c5f61c0e2a98931f9ba2283cf46e234a74f12ce6db4e64289de58f8da190af936f847f42636fd812fdf82ff733763
|
6 |
+
)
|
7 |
+
|
8 |
+
vcpkg_from_github(
|
9 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
10 |
+
REPO devernay/cminpack
|
11 |
+
REF v1.3.8
|
12 |
+
SHA512 0cab275074a31af69dbaf3ef6d41b20184c7cf9f33c78014a69ae7a022246fa79e7b4851341c6934ca1e749955b7e1096a40b4300a109ad64ebb1b2ea5d1d8ae
|
13 |
+
PATCHES
|
14 |
+
${DLLEXPORT_PATCH}
|
15 |
+
)
|
16 |
+
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" [[ STRING "CMinpack]] [[) # ("CMinpack]])
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS
|
21 |
+
-DBUILD_EXAMPLES=OFF
|
22 |
+
-DCMINPACK_LIB_INSTALL_DIR=lib
|
23 |
+
-DUSE_BLAS=OFF
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_cmake_install()
|
27 |
+
vcpkg_cmake_config_fixup()
|
28 |
+
vcpkg_fixup_pkgconfig()
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
31 |
+
|
32 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
33 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/cminpack-1/cminpack.h" [[!defined(CMINPACK_NO_DLL)]] 0)
|
34 |
+
endif()
|
35 |
+
if(NOT VCPKG_BUILD_TYPE)
|
36 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/cminpack.pc" "-lcminpack" "-lcminpack_d")
|
37 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/cminpacks.pc" "-lcminpacks" "-lcminpacks_d")
|
38 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/cminpackld.pc")
|
39 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/cminpackld.pc" "-lcminpackld" "-lcminpackld_d")
|
40 |
+
endif()
|
41 |
+
endif()
|
42 |
+
|
43 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
44 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/CopyrightMINPACK.txt")
|
cc-multilingual-main/cc_net/vcpkg/ports/cminpack/usage
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cminpack provides CMake targets:
|
2 |
+
|
3 |
+
find_package(CMinpack CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE cminpack::cminpack)
|
5 |
+
|
6 |
+
# alternative for single precision
|
7 |
+
target_link_libraries(main PRIVATE cminpack::cminpacks)
|
8 |
+
# alternative for long double precision
|
9 |
+
target_link_libraries(main PRIVATE cminpack::cminpackld)
|
cc-multilingual-main/cc_net/vcpkg/ports/cminpack/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cminpack",
|
3 |
+
"version": "1.3.8",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "A C/C++ rewrite of the MINPACK software (originally in FORTRAN) for solving nonlinear equations and nonlinear least squares problems",
|
6 |
+
"homepage": "http://devernay.free.fr/hacks/cminpack/",
|
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/double-conversion/portfile.cmake
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO google/double-conversion
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 51e84eb7a5c407f7bc8f8b8ca19932ece5c9d8ac18aedff7b7620fc67369d9b2aa8c5a6b133e7f8633d7cc5e3788bad6e60b0e48ac08d0a4bc5e4abe7cee1334
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_install()
|
14 |
+
|
15 |
+
# Rename exported target files into something vcpkg_cmake_config_fixup expects
|
16 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/cmake/${PORT}")
|
17 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
18 |
+
endif()
|
19 |
+
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
|
24 |
+
# Handle copyright
|
25 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
cc-multilingual-main/cc_net/vcpkg/ports/double-conversion/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "double-conversion",
|
3 |
+
"version": "3.3.0",
|
4 |
+
"description": "Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles.",
|
5 |
+
"homepage": "https://github.com/google/double-conversion",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
},
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake-config",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/freeglut/fix-debug-macro.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/GL/freeglut_std.h b/include/GL/freeglut_std.h
|
2 |
+
index a658c7c..a5efb3b 100644
|
3 |
+
--- a/include/GL/freeglut_std.h
|
4 |
+
+++ b/include/GL/freeglut_std.h
|
5 |
+
@@ -70,7 +70,7 @@
|
6 |
+
|
7 |
+
/* Link with Win32 static freeglut lib */
|
8 |
+
# if FREEGLUT_LIB_PRAGMAS
|
9 |
+
-# ifdef NDEBUG
|
10 |
+
+# if defined(NDEBUG) || !defined(_DEBUG)
|
11 |
+
# pragma comment (lib, "freeglut_static.lib")
|
12 |
+
# else
|
13 |
+
# pragma comment (lib, "freeglut_staticd.lib")
|
14 |
+
@@ -88,7 +88,7 @@
|
15 |
+
|
16 |
+
/* Link with Win32 shared freeglut lib */
|
17 |
+
# if FREEGLUT_LIB_PRAGMAS
|
18 |
+
-# ifdef NDEBUG
|
19 |
+
+# if defined(NDEBUG) || !defined(_DEBUG)
|
20 |
+
# pragma comment (lib, "freeglut.lib")
|
21 |
+
# else
|
22 |
+
# pragma comment (lib, "freeglutd.lib")
|
23 |
+
diff --git a/src/blackberry/fg_main_blackberry.c b/src/blackberry/fg_main_blackberry.c
|
24 |
+
index a1b9cbb..a20c53d 100644
|
25 |
+
--- a/src/blackberry/fg_main_blackberry.c
|
26 |
+
+++ b/src/blackberry/fg_main_blackberry.c
|
27 |
+
@@ -31,7 +31,7 @@
|
28 |
+
#include "fg_internal.h"
|
29 |
+
#include "egl/fg_window_egl.h"
|
30 |
+
|
31 |
+
-#ifdef NDEBUG
|
32 |
+
+#if defined(NDEBUG) || !defined(_DEBUG)
|
33 |
+
#define LOGI(...)
|
34 |
+
#endif
|
35 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/freeglut/no_x64_enforcement.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt.orig b/CMakeLists.txt
|
2 |
+
index 6f403af..d1ba4e7 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -418,12 +418,6 @@ IF(WIN32)
|
6 |
+
IF(FREEGLUT_REPLACE_GLUT)
|
7 |
+
SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME})
|
8 |
+
ENDIF()
|
9 |
+
- # need to set machine:x64 for linker, at least for VC10, and
|
10 |
+
- # doesn't hurt for older compilers:
|
11 |
+
- # http://public.kitware.com/Bug/view.php?id=11240#c22768
|
12 |
+
- IF (CMAKE_CL_64)
|
13 |
+
- SET_TARGET_PROPERTIES(freeglut_static PROPERTIES STATIC_LIBRARY_FLAGS "/machine:x64")
|
14 |
+
- ENDIF()
|
15 |
+
ENDIF()
|
16 |
+
ELSE()
|
17 |
+
# on UNIX we need to make sure:
|
cc-multilingual-main/cc_net/vcpkg/ports/freeglut/portfile.cmake
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO FreeGLUTProject/freeglut
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 4bb6d6c086bac7a9c0ec78062dce58987555785abe6375f462ee249f65210a964a28fb10ba7ee8a42d7fafb00eb8d196eb403d65d255f02f88467369c187228b
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
x11-dependencies-export.patch
|
9 |
+
fix-debug-macro.patch
|
10 |
+
no_x64_enforcement.patch
|
11 |
+
windows-output-name.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
if(VCPKG_TARGET_IS_OSX)
|
15 |
+
message("Freeglut currently requires Xquartz for macOS.")
|
16 |
+
elseif(NOT VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_ANDROID)
|
17 |
+
message("Freeglut currently requires the following libraries from the system package manager:\n opengl\n glu\n libx11\n xrandr\n xi\n xxf86vm\n\nThese can be installed on Ubuntu systems via apt-get install libxi-dev libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxrandr-dev libxxf86vm-dev")
|
18 |
+
endif()
|
19 |
+
|
20 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" FREEGLUT_STATIC)
|
21 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" FREEGLUT_DYNAMIC)
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS
|
26 |
+
-DFREEGLUT_BUILD_STATIC_LIBS=${FREEGLUT_STATIC}
|
27 |
+
-DFREEGLUT_BUILD_SHARED_LIBS=${FREEGLUT_DYNAMIC}
|
28 |
+
-DFREEGLUT_REPLACE_GLUT=ON
|
29 |
+
-DFREEGLUT_BUILD_DEMOS=OFF
|
30 |
+
-DINSTALL_PDB=OFF # Installing pdbs failed on debug static. So, disable it and let vcpkg_copy_pdbs() do it
|
31 |
+
)
|
32 |
+
vcpkg_cmake_install()
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/FreeGLUT)
|
35 |
+
vcpkg_fixup_pkgconfig()
|
36 |
+
|
37 |
+
file(GLOB pc_files "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/*.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/*.pc")
|
38 |
+
foreach(file IN LISTS pc_files)
|
39 |
+
vcpkg_replace_string("${file}" ";-D" " -D")
|
40 |
+
endforeach()
|
41 |
+
|
42 |
+
if(NOT VCPKG_TARGET_IS_ANDROID)
|
43 |
+
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/freeglut.pc")
|
44 |
+
if(NOT VCPKG_BUILD_TYPE)
|
45 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
46 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" " -lfreeglut" " -lfreeglutd")
|
47 |
+
endif()
|
48 |
+
file(COPY_FILE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/glut.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/freeglut.pc")
|
49 |
+
endif()
|
50 |
+
endif()
|
51 |
+
|
52 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
53 |
+
vcpkg_replace_string(
|
54 |
+
"${CURRENT_PACKAGES_DIR}/include/GL/freeglut_std.h"
|
55 |
+
"ifdef FREEGLUT_STATIC"
|
56 |
+
"if 1 //ifdef FREEGLUT_STATIC"
|
57 |
+
)
|
58 |
+
endif()
|
59 |
+
|
60 |
+
# Clean
|
61 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
62 |
+
|
63 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/glut")
|
64 |
+
|
65 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
66 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/freeglut/usage
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
freeglut provides CMake targets:
|
2 |
+
|
3 |
+
find_package(FreeGLUT CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE $<IF:$<TARGET_EXISTS:FreeGLUT::freeglut>,FreeGLUT::freeglut,FreeGLUT::freeglut_static>)
|
5 |
+
|
6 |
+
freeglut is compatible with built-in CMake targets:
|
7 |
+
|
8 |
+
find_package(GLUT REQUIRED)
|
9 |
+
target_link_libraries(main PRIVATE GLUT::GLUT)
|
cc-multilingual-main/cc_net/vcpkg/ports/freeglut/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
if(GLUT_FOUND AND UNIX AND NOT ANDROID)
|
3 |
+
cmake_policy(PUSH)
|
4 |
+
cmake_policy(SET CMP0012 NEW)
|
5 |
+
cmake_policy(SET CMP0054 NEW)
|
6 |
+
cmake_policy(SET CMP0057 NEW)
|
7 |
+
|
8 |
+
if(GLUT_LINK_LIBRARIES)
|
9 |
+
# Since CMake 3.22, FindGLUT.cmake loads the glut pkg-config module.
|
10 |
+
# We need `-lglut` resolved to an absolute path.
|
11 |
+
set(GLUT_LIBRARIES "${GLUT_LINK_LIBRARIES}")
|
12 |
+
else()
|
13 |
+
find_package(X11)
|
14 |
+
# Before CMake 3.14, FindX11.cmake doesn't create imported targets.
|
15 |
+
# For X11, we simply assume shared linkage of system libs,
|
16 |
+
# so order and transitive usage requirements don't matter.
|
17 |
+
if(X11_FOUND AND NOT "X11" IN_LIST GLUT_LIBRARIES)
|
18 |
+
list(APPEND GLUT_LIBRARIES "${X11_X11_LIB}")
|
19 |
+
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${X11_X11_LIB}")
|
20 |
+
endif()
|
21 |
+
if(X11_Xrandr_FOUND AND NOT "Xrandr" IN_LIST GLUT_LIBRARIES)
|
22 |
+
list(APPEND GLUT_LIBRARIES "${X11_Xrandr_LIB}")
|
23 |
+
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${X11_Xrandr_LIB}")
|
24 |
+
endif()
|
25 |
+
# X11_xf86vmode_FOUND for CMake < 3.14
|
26 |
+
if((X11_Xxf86vm_FOUND OR X11_xf86vmode_FOUND) AND NOT "Xxf86vm" IN_LIST GLUT_LIBRARIES)
|
27 |
+
list(APPEND GLUT_LIBRARIES "${X11_Xxf86vm_LIB}")
|
28 |
+
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${X11_Xxf86vm_LIB}")
|
29 |
+
endif()
|
30 |
+
if(X11_Xi_FOUND AND NOT GLUT_Xi_LIBRARY AND NOT "Xi" IN_LIST GLUT_LIBRARIES)
|
31 |
+
list(APPEND GLUT_LIBRARIES "${X11_Xi_LIB}")
|
32 |
+
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES "${X11_Xi_LIB}")
|
33 |
+
endif()
|
34 |
+
endif()
|
35 |
+
|
36 |
+
cmake_policy(POP)
|
37 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/freeglut/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "freeglut",
|
3 |
+
"version": "3.4.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A free OpenGL utility toolkit, the open-sourced alternative to the GLUT library.",
|
6 |
+
"homepage": "https://sourceforge.net/projects/freeglut/",
|
7 |
+
"license": null,
|
8 |
+
"supports": "!ios",
|
9 |
+
"dependencies": [
|
10 |
+
"opengl",
|
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/freeglut/windows-output-name.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 98d07c9..5b79f06 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -436,12 +436,12 @@ IF(WIN32)
|
6 |
+
LIST(APPEND LIBS winmm gdi32)
|
7 |
+
IF(FREEGLUT_BUILD_SHARED_LIBS)
|
8 |
+
TARGET_COMPILE_DEFINITIONS(freeglut PRIVATE FREEGLUT_EXPORTS)
|
9 |
+
- SET_TARGET_PROPERTIES(freeglut PROPERTIES OUTPUT_NAME ${LIBNAME})
|
10 |
+
+ SET_TARGET_PROPERTIES(freeglut PROPERTIES OUTPUT_NAME freeglut)
|
11 |
+
ENDIF()
|
12 |
+
IF(FREEGLUT_BUILD_STATIC_LIBS)
|
13 |
+
TARGET_COMPILE_DEFINITIONS(freeglut_static PUBLIC FREEGLUT_STATIC)
|
14 |
+
IF(FREEGLUT_REPLACE_GLUT)
|
15 |
+
- SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME ${LIBNAME})
|
16 |
+
+ SET_TARGET_PROPERTIES(freeglut_static PROPERTIES OUTPUT_NAME freeglut)
|
17 |
+
ENDIF()
|
18 |
+
ENDIF()
|
19 |
+
ELSE()
|
20 |
+
diff --git a/include/GL/freeglut_std.h b/include/GL/freeglut_std.h
|
21 |
+
index a5efb3b..6bdcdfb 100644
|
22 |
+
--- a/include/GL/freeglut_std.h
|
23 |
+
+++ b/include/GL/freeglut_std.h
|
24 |
+
@@ -71,9 +71,9 @@
|
25 |
+
/* Link with Win32 static freeglut lib */
|
26 |
+
# if FREEGLUT_LIB_PRAGMAS
|
27 |
+
# if defined(NDEBUG) || !defined(_DEBUG)
|
28 |
+
-# pragma comment (lib, "freeglut_static.lib")
|
29 |
+
+# pragma comment (lib, "freeglut.lib")
|
30 |
+
# else
|
31 |
+
-# pragma comment (lib, "freeglut_staticd.lib")
|
32 |
+
+# pragma comment (lib, "freeglutd.lib")
|
33 |
+
# endif
|
34 |
+
# endif
|
35 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/freeglut/x11-dependencies-export.patch
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 5568b63..bec3de5 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -620,6 +620,15 @@ ELSE()
|
6 |
+
SET(PC_LIBS_PRIVATE "-lX11 -lXxf86vm -lXrandr -lGL -lm")
|
7 |
+
ENDIF()
|
8 |
+
ENDIF()
|
9 |
+
+if(NOT X11_Xrandr_FOUND)
|
10 |
+
+ string(REPLACE " -lXrandr" "" PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
|
11 |
+
+endif()
|
12 |
+
+if(NOT X11_xf86vmode_FOUND)
|
13 |
+
+ string(REPLACE " -lXxf86vm" "" PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
|
14 |
+
+endif()
|
15 |
+
+if(X11_Xinput_FOUND)
|
16 |
+
+ string(REPLACE "-lX11 " "-lX11 -lXi " PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
|
17 |
+
+endif()
|
18 |
+
# Client applications need to define FreeGLUT GLES version to
|
19 |
+
# bootstrap headers inclusion in freeglut_std.h:
|
20 |
+
SET(PC_LIBNAME ${LIBNAME})
|
cc-multilingual-main/cc_net/vcpkg/ports/genann/CMakeLists.txt
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.11)
|
2 |
+
project(genann)
|
3 |
+
|
4 |
+
set(SRC_FILES
|
5 |
+
genann.c
|
6 |
+
)
|
7 |
+
|
8 |
+
add_library(genann ${SRC_FILES})
|
9 |
+
|
10 |
+
target_include_directories(genann PUBLIC
|
11 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
12 |
+
$<INSTALL_INTERFACE:include/genann>
|
13 |
+
)
|
14 |
+
|
15 |
+
# Install targets
|
16 |
+
install(TARGETS genann
|
17 |
+
RUNTIME DESTINATION bin
|
18 |
+
LIBRARY DESTINATION lib
|
19 |
+
ARCHIVE DESTINATION lib
|
20 |
+
)
|
21 |
+
|
22 |
+
# Install headers
|
23 |
+
if (INSTALL_HEADERS)
|
24 |
+
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/genann.h DESTINATION include/genann)
|
25 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/genann/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 codeplea/genann
|
6 |
+
REF 122243f9449b3e33a4e11450b70c10576d4559d7
|
7 |
+
SHA512 d70cb8bc678d80ed3e790866f6060850cf9309eefe90d3ca4d77e28538639a927333d49c4d1af3e81123b8e88224f2f51b74ec41ca22639a276359568652ed15
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS_RELEASE -DINSTALL_HEADERS=ON
|
16 |
+
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
|
21 |
+
# Handle copyright
|
22 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
23 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/genann/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "genann",
|
3 |
+
"version-date": "2019-07-10",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Genann is a minimal, well-tested library for training and using feedforward artificial neural networks (ANN) in C.",
|
6 |
+
"homepage": "https://github.com/codeplea/genann",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/gts/CMakeLists.txt
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.14)
|
2 |
+
|
3 |
+
project(gts VERSION "${VERSION}" LANGUAGES C)
|
4 |
+
|
5 |
+
find_package(PkgConfig REQUIRED)
|
6 |
+
pkg_check_modules(GLIB2 glib-2.0 IMPORTED_TARGET)
|
7 |
+
|
8 |
+
if(WIN32)
|
9 |
+
add_definitions(-DNATIVE_WIN32 -D_USE_MATH_DEFINES)
|
10 |
+
else()
|
11 |
+
include(CheckIncludeFile)
|
12 |
+
check_include_file("fpu_control.h" HAVE_FPU_CONTROL_H)
|
13 |
+
if(HAVE_FPU_CONTROL_H)
|
14 |
+
add_definitions(-DHAVE_FPU_CONTROL_H)
|
15 |
+
endif()
|
16 |
+
endif()
|
17 |
+
|
18 |
+
add_definitions(
|
19 |
+
-DGTS_COMPILATION
|
20 |
+
-DGTS_MAJOR_VERSION=${PROJECT_VERSION_MAJOR}
|
21 |
+
-DGTS_MINOR_VERSION=${PROJECT_VERSION_MINOR}
|
22 |
+
-DGTS_MICRO_VERSION=${PROJECT_VERSION_PATCH}
|
23 |
+
-DGTS_INTERFACE_AGE=1
|
24 |
+
-DGTS_BINARY_AGE=1
|
25 |
+
-DGTS_VERSION=${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}
|
26 |
+
)
|
27 |
+
|
28 |
+
file(GLOB src src/*.c src/gts.def)
|
29 |
+
list(FILTER src EXCLUDE REGEX ".*predicates_init\\.c$")
|
30 |
+
add_library(gts ${src})
|
31 |
+
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/config.h" "")
|
32 |
+
target_include_directories(gts PUBLIC
|
33 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
34 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
35 |
+
$<INSTALL_INTERFACE:include>
|
36 |
+
)
|
37 |
+
target_link_libraries(gts PUBLIC PkgConfig::GLIB2)
|
38 |
+
|
39 |
+
set(prefix ?)
|
40 |
+
set(exec_prefix \${prefix})
|
41 |
+
set(libdir \${prefix}/lib)
|
42 |
+
set(includedir \${prefix}/include)
|
43 |
+
configure_file(gts.pc.in gts.pc @ONLY)
|
44 |
+
|
45 |
+
install(FILES src/gts.h src/gtsconfig.h DESTINATION include)
|
46 |
+
install(TARGETS gts)
|
47 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/gts.pc" DESTINATION lib/pkgconfig)
|
cc-multilingual-main/cc_net/vcpkg/ports/gts/fix-dllexport.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/gts.h b/src/gts.h
|
2 |
+
index 1b76915..ae1d888 100644
|
3 |
+
--- a/src/gts.h
|
4 |
+
+++ b/src/gts.h
|
5 |
+
@@ -38,7 +38,7 @@ extern "C" {
|
6 |
+
* we prefix variable declarations so they can
|
7 |
+
* properly get exported in windows dlls.
|
8 |
+
*/
|
9 |
+
-#ifdef NATIVE_WIN32
|
10 |
+
+#if 0
|
11 |
+
# ifdef GTS_COMPILATION
|
12 |
+
# define GTS_C_VAR __declspec(dllexport)
|
13 |
+
# else /* not GTS_COMPILATION */
|
cc-multilingual-main/cc_net/vcpkg/ports/gts/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_sourceforge(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO gts/gts
|
4 |
+
REF 0.7.6
|
5 |
+
FILENAME gts-0.7.6.tar.gz
|
6 |
+
SHA512 645123b72dba3d04dad3c5d936d7e55947826be0fb25e84595368919b720deccddceb7c3b30865a5a40f2458254c2af793b7c014e6719cf07e7f8e6ff30890f8
|
7 |
+
PATCHES
|
8 |
+
fix-dllexport.patch
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/predicates_init.h" DESTINATION "${SOURCE_PATH}/src")
|
13 |
+
|
14 |
+
vcpkg_find_acquire_program(PKGCONFIG)
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
OPTIONS
|
18 |
+
"-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}"
|
19 |
+
"-DVERSION=${VERSION}"
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
27 |
+
|
28 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
29 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/gts/predicates_init.h
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* This file was generated automatically by predicates_init
|
2 |
+
*
|
3 |
+
* This file is free software; you can redistribute it and/or
|
4 |
+
* modify it under the terms of the GNU Library General Public
|
5 |
+
* License as published by the Free Software Foundation; either
|
6 |
+
* version 2 of the License, or (at your option) any later version.
|
7 |
+
*
|
8 |
+
* This file is distributed in the hope that it will be useful,
|
9 |
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
10 |
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
11 |
+
*/
|
12 |
+
|
13 |
+
static double splitter = 134217729.000000;
|
14 |
+
static double resulterrbound = 3.330669073875471e-16;
|
15 |
+
static double ccwerrboundA = 3.330669073875472e-16;
|
16 |
+
static double ccwerrboundB = 2.220446049250315e-16;
|
17 |
+
static double ccwerrboundC = 1.109335647967049e-31;
|
18 |
+
static double o3derrboundA = 7.771561172376103e-16;
|
19 |
+
static double o3derrboundB = 3.330669073875473e-16;
|
20 |
+
static double o3derrboundC = 3.204747427460364e-31;
|
21 |
+
static double iccerrboundA = 1.110223024625158e-15;
|
22 |
+
static double iccerrboundB = 4.440892098500632e-16;
|
23 |
+
static double iccerrboundC = 5.423418723394464e-31;
|
24 |
+
static double isperrboundA = 1.776356839400253e-15;
|
25 |
+
static double isperrboundB = 5.551115123125792e-16;
|
26 |
+
static double isperrboundC = 8.751425667295619e-31;
|
cc-multilingual-main/cc_net/vcpkg/ports/gts/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
gts can be imported via CMake FindPkgConfig module:
|
2 |
+
|
3 |
+
find_package(PkgConfig REQUIRED)
|
4 |
+
pkg_check_modules(GTS gts REQUIRED IMPORTED_TARGET)
|
5 |
+
target_link_libraries(main PRIVATE PkgConfig::GTS)
|
cc-multilingual-main/cc_net/vcpkg/ports/gts/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gts",
|
3 |
+
"version": "0.7.6",
|
4 |
+
"port-version": 9,
|
5 |
+
"description": "3D surfaces meshed with interconnected triangles",
|
6 |
+
"homepage": "https://gts.sourceforge.net/",
|
7 |
+
"license": "LGPL-2.0-or-later",
|
8 |
+
"dependencies": [
|
9 |
+
"glib",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-msgs9/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(PACKAGE_NAME msgs)
|
2 |
+
|
3 |
+
vcpkg_find_acquire_program(PYTHON3)
|
4 |
+
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
5 |
+
vcpkg_add_to_path("${PYTHON3_DIR}")
|
6 |
+
|
7 |
+
ignition_modular_library(
|
8 |
+
NAME ${PACKAGE_NAME}
|
9 |
+
REF ${PORT}_${VERSION}
|
10 |
+
VERSION ${VERSION}
|
11 |
+
SHA512 669e60fc35868e4d86695104a58aecaef9ad08861cba97ff91c7306caf66ec237da46c0a13f5f59907371fc7a4dd56d5506fabe4ba97c393889fc5a9c2a101ee
|
12 |
+
OPTIONS
|
13 |
+
PATCHES
|
14 |
+
remove_ruby.patch
|
15 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-msgs9/remove_ruby.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
--- a/src/CMakeLists.txt
|
3 |
+
+++ b/src/CMakeLists.txt
|
4 |
+
@@ -102,5 +102,5 @@
|
5 |
+
- if(gz_msgs_protoc_GENERATE_RUBY)
|
6 |
+
+ if(0)
|
7 |
+
file(MAKE_DIRECTORY ${gz_msgs_protoc_OUTPUT_RUBY_DIR})
|
8 |
+
set(output_ruby "${gz_msgs_protoc_OUTPUT_RUBY_DIR}${proto_package_dir}/${FIL_WE}_pb.rb")
|
9 |
+
list(APPEND ${gz_msgs_protoc_OUTPUT_RUBY_VAR} ${output_ruby})
|
10 |
+
list(APPEND output_files ${output_ruby})
|
11 |
+
@@ -126,5 +126,5 @@
|
12 |
+
- if(${gz_msgs_protoc_GENERATE_RUBY})
|
13 |
+
+ if(0)
|
14 |
+
list(APPEND GENERATE_ARGS
|
15 |
+
--generate-ruby
|
16 |
+
--output-ruby-path "${gz_msgs_protoc_OUTPUT_RUBY_DIR}")
|
17 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/gz-msgs9/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "gz-msgs9",
|
3 |
+
"version": "9.5.0",
|
4 |
+
"description": "Middleware protobuf messages for robotics",
|
5 |
+
"license": "Apache-2.0",
|
6 |
+
"supports": "!(android | arm | uwp)",
|
7 |
+
"dependencies": [
|
8 |
+
"gz-cmake3",
|
9 |
+
"gz-math7",
|
10 |
+
{
|
11 |
+
"name": "ignition-modularscripts",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
"protobuf",
|
15 |
+
"tinyxml2"
|
16 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/hexl/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO intel/hexl
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 1a5e42fdeac877f3b4ef87ab75ffa8280697e941d7a8f0f6dc8c5066f2dd405470530dfabdf12d846362bd3e7e6cd30fd1f11d8dd99bee5086d09371ba1da196
|
8 |
+
HEAD_REF development
|
9 |
+
)
|
10 |
+
|
11 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" HEXL_SHARED)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
DISABLE_PARALLEL_CONFIGURE
|
16 |
+
OPTIONS
|
17 |
+
-DHEXL_BENCHMARK=OFF
|
18 |
+
-DHEXL_COVERAGE=OFF
|
19 |
+
-DHEXL_TESTING=OFF
|
20 |
+
-DHEXL_SHARED_LIB=${HEXL_SHARED}
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_fixup_pkgconfig()
|
25 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME "HEXL" CONFIG_PATH "lib/cmake/hexl-${VERSION}")
|
26 |
+
vcpkg_copy_pdbs()
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
29 |
+
|
30 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME "copyright")
|
cc-multilingual-main/cc_net/vcpkg/ports/hexl/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "hexl",
|
3 |
+
"version": "1.2.5",
|
4 |
+
"description": "Intel® HEXL is an open-source library which provides efficient implementations of integer arithmetic on Galois fields.",
|
5 |
+
"homepage": "https://github.com/intel/hexl",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"supports": "x64",
|
8 |
+
"dependencies": [
|
9 |
+
"cpu-features",
|
10 |
+
"easyloggingpp",
|
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/kf5i18n/fix_static_builds.patch
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/KF5I18nConfig.cmake.in b/KF5I18nConfig.cmake.in
|
2 |
+
index 364cc43..af7cd3b 100644
|
3 |
+
--- a/KF5I18nConfig.cmake.in
|
4 |
+
+++ b/KF5I18nConfig.cmake.in
|
5 |
+
@@ -8,3 +8,4 @@ include("${CMAKE_CURRENT_LIST_DIR}/KF5I18nTargets.cmake")
|
6 |
+
@PACKAGE_INCLUDE_QCHTARGETS@
|
7 |
+
include("${CMAKE_CURRENT_LIST_DIR}/KF5I18nMacros.cmake")
|
8 |
+
|
9 |
+
+find_dependency(Iconv)
|
10 |
+
diff --git a/src/i18n/CMakeLists.txt b/src/i18n/CMakeLists.txt
|
11 |
+
index c6b510c..0a25eca 100644
|
12 |
+
--- a/src/i18n/CMakeLists.txt
|
13 |
+
+++ b/src/i18n/CMakeLists.txt
|
14 |
+
@@ -40,12 +40,16 @@ ecm_generate_export_header(KF5I18n
|
15 |
+
EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
|
16 |
+
)
|
17 |
+
|
18 |
+
+find_package(Iconv REQUIRED)
|
19 |
+
+
|
20 |
+
target_include_directories(KF5I18n INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KI18n>")
|
21 |
+
target_include_directories(KF5I18n PRIVATE ${LibIntl_INCLUDE_DIRS})
|
22 |
+
+target_include_directories(KF5I18n PRIVATE ${Iconv_INCLUDE_DIRS})
|
23 |
+
|
24 |
+
target_link_libraries(KF5I18n PUBLIC Qt${QT_MAJOR_VERSION}::Core)
|
25 |
+
# This is only required for platforms which don't use glibc (with glibc LibIntl_LIBRARIES will be empty)
|
26 |
+
target_link_libraries(KF5I18n PRIVATE ${LibIntl_LIBRARIES})
|
27 |
+
+target_link_libraries(KF5I18n PRIVATE ${Iconv_LIBRARIES})
|
28 |
+
if (ANDROID)
|
29 |
+
if (QT_MAJOR_VERSION EQUAL "5")
|
30 |
+
target_link_libraries(KF5I18n PRIVATE Qt5::AndroidExtras)
|