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/anari/portfile.cmake +44 -0
- cc-multilingual-main/cc_net/vcpkg/ports/anari/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/docopt/portfile.cmake +38 -0
- cc-multilingual-main/cc_net/vcpkg/ports/docopt/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/eventpp/portfile.cmake +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/eventpp/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix-debug.patch +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/hpx/vcpkg.json +84 -0
- cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/0001-fix_find_package.patch +37 -0
- cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/portfile.cmake +34 -0
- cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5declarative/portfile.cmake +45 -0
- cc-multilingual-main/cc_net/vcpkg/ports/kf5declarative/vcpkg.json +47 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57/0001_cmake.patch +107 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57/0002_replace_tr1_with_cpp11.patch +95 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57/0003_fix_osx_support.patch +145 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57/portfile.cmake +35 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libe57/vcpkg.json +33 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libredwg/fix_dependency.patch +26 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libredwg/portfile.cmake +56 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libredwg/usage +4 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsecret/portfile.cmake +28 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libsecret/vcpkg.json +20 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/CMakeLists.txt +22 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/LICENSE +19 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/portfile.cmake +23 -0
- cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/vcpkg.json +17 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0001-fix-install-package-dir.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0002-fix-tools-install-dir.patch +213 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0003-fix-llvm-config.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0004-disable-libomp-aliases.patch +32 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0005-remove-numpy.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0006-create-destination-mlir-directory.patch +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0007-fix-compiler-rt-warnings.patch +45 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/0008-add-missing-case.patch +71 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/clang_usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/flang_usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/lld_usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/llvm_usage +15 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/mlir_usage +5 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/portfile.cmake +399 -0
- cc-multilingual-main/cc_net/vcpkg/ports/llvm/vcpkg.json +459 -0
- cc-multilingual-main/cc_net/vcpkg/ports/log4cxx/fix-find-package.patch +13 -0
- cc-multilingual-main/cc_net/vcpkg/ports/log4cxx/portfile.cmake +39 -0
- cc-multilingual-main/cc_net/vcpkg/ports/log4cxx/vcpkg.json +21 -0
- cc-multilingual-main/cc_net/vcpkg/ports/magma/vcpkg.json +16 -0
- cc-multilingual-main/cc_net/vcpkg/ports/marisa-trie/portfile.cmake +65 -0
- cc-multilingual-main/cc_net/vcpkg/ports/marisa-trie/remove-windows-tests.patch +68 -0
- cc-multilingual-main/cc_net/vcpkg/ports/marisa-trie/usage +5 -0
cc-multilingual-main/cc_net/vcpkg/ports/anari/portfile.cmake
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KhronosGroup/ANARI-SDK
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 51937d160a9508c56cf123eda13002c705acff501366710f83da1c62d875f8427cec27f10ea2d05f4637be141fb9a87935f4b0b9f0fabb6bd6a7cca6a4f48ee1
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_find_acquire_program(PYTHON3)
|
10 |
+
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
11 |
+
vcpkg_add_to_path("${PYTHON3_DIR}")
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_CTS=OFF
|
17 |
+
-DBUILD_EXAMPLES=OFF
|
18 |
+
-DBUILD_HELIDE_DEVICE=OFF
|
19 |
+
-DBUILD_TESTING=OFF
|
20 |
+
-DBUILD_VIEWER=OFF
|
21 |
+
)
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_cmake_config_fixup(
|
25 |
+
CONFIG_PATH "lib/cmake/${PORT}-${VERSION}"
|
26 |
+
)
|
27 |
+
vcpkg_fixup_pkgconfig()
|
28 |
+
vcpkg_copy_pdbs()
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE
|
31 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
32 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
33 |
+
)
|
34 |
+
|
35 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
36 |
+
file(REMOVE_RECURSE
|
37 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
38 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
39 |
+
)
|
40 |
+
endif()
|
41 |
+
|
42 |
+
vcpkg_install_copyright(
|
43 |
+
FILE_LIST "${SOURCE_PATH}/LICENSE"
|
44 |
+
)
|
cc-multilingual-main/cc_net/vcpkg/ports/anari/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "anari",
|
3 |
+
"version": "0.7.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Cross-Platform 3D Rendering Engine API.",
|
6 |
+
"homepage": "https://www.khronos.org/anari",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"dependencies": [
|
9 |
+
"glm",
|
10 |
+
"python3",
|
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/docopt/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO docopt/docopt.cpp
|
4 |
+
REF 400e6dd8e59196c914dcc2c56caf7dae7efa5eb3
|
5 |
+
SHA512 a9ef466ba40127f636bc20beb7508c4da2dc32c0c37acb5729644f31d4910d9c0253f311457f39ed57605775e72f3370aff4e5ef88e60a49d190bc4760c40ea3
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DWITH_EXAMPLE=OFF
|
13 |
+
-DWITH_TESTS=OFF
|
14 |
+
-DUSE_BOOST_REGEX=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/docopt)
|
20 |
+
vcpkg_fixup_pkgconfig()
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
23 |
+
|
24 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
25 |
+
file(READ "${CURRENT_PACKAGES_DIR}/include/docopt/docopt.h" _contents)
|
26 |
+
string(REPLACE "#ifdef DOCOPT_DLL" "#if 1" _contents "${_contents}")
|
27 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/include/docopt/docopt.h" "${_contents}")
|
28 |
+
endif()
|
29 |
+
|
30 |
+
# Header-only style when DOCOPT_HEADER_ONLY is defined
|
31 |
+
file(COPY
|
32 |
+
"${SOURCE_PATH}/docopt.cpp"
|
33 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include/docopt")
|
34 |
+
|
35 |
+
# Handle copyright
|
36 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-MIT" "${SOURCE_PATH}/LICENSE-Boost-1.0")
|
37 |
+
|
38 |
+
vcpkg_copy_pdbs()
|
cc-multilingual-main/cc_net/vcpkg/ports/docopt/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "docopt",
|
3 |
+
"version-date": "2022-03-15",
|
4 |
+
"description": "Command line arguments parser that will make you smile (C++11 port).",
|
5 |
+
"license": "MIT OR BSL-1.0",
|
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/eventpp/portfile.cmake
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO wqking/eventpp
|
4 |
+
REF "v${VERSION}"
|
5 |
+
SHA512 b39994e9bd581d6bb61b634c434c46075e41ec2217e1174578fefd206a927bd725744ae0724d319cde8f2b2a43d2e030a04c271197500d94c6b1afd849f779fd
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
OPTIONS
|
12 |
+
-DBUILD_TESTING=OFF
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/eventpp")
|
17 |
+
vcpkg_fixup_pkgconfig()
|
18 |
+
vcpkg_copy_pdbs()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
21 |
+
|
22 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/license")
|
cc-multilingual-main/cc_net/vcpkg/ports/eventpp/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "eventpp",
|
3 |
+
"version-semver": "0.1.3",
|
4 |
+
"description": "C++ library for event dispatcher and callback list",
|
5 |
+
"homepage": "https://github.com/wqking/eventpp",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/hpx/fix-debug.patch
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/HPX_CompilerFlagsTargets.cmake b/cmake/HPX_CompilerFlagsTargets.cmake
|
2 |
+
index 5bf4649..0912503 100644
|
3 |
+
--- a/cmake/HPX_CompilerFlagsTargets.cmake
|
4 |
+
+++ b/cmake/HPX_CompilerFlagsTargets.cmake
|
5 |
+
@@ -15,14 +15,8 @@ target_compile_features(hpx_public_flags INTERFACE cxx_std_${HPX_CXX_STANDARD})
|
6 |
+
|
7 |
+
# Set other flags that should always be set
|
8 |
+
|
9 |
+
-# HPX_DEBUG must be set without a generator expression as it determines ABI
|
10 |
+
-# compatibility. Projects in Release mode using HPX in Debug mode must have
|
11 |
+
-# HPX_DEBUG set, and projects in Debug mode using HPX in Release mode must not
|
12 |
+
-# have HPX_DEBUG set. HPX_DEBUG must also not be set by projects using HPX.
|
13 |
+
-if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
14 |
+
- target_compile_definitions(hpx_private_flags INTERFACE HPX_DEBUG)
|
15 |
+
- target_compile_definitions(hpx_public_flags INTERFACE HPX_DEBUG)
|
16 |
+
-endif()
|
17 |
+
+target_compile_definitions(hpx_private_flags INTERFACE $<$<CONFIG:DEBUG>:HPX_DEBUG>)
|
18 |
+
+target_compile_definitions(hpx_public_flags INTERFACE $<$<CONFIG:DEBUG>:HPX_DEBUG>)
|
19 |
+
|
20 |
+
target_compile_definitions(
|
21 |
+
hpx_private_flags
|
cc-multilingual-main/cc_net/vcpkg/ports/hpx/vcpkg.json
ADDED
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "hpx",
|
3 |
+
"version": "1.9.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": [
|
6 |
+
"The C++ Standards Library for Concurrency and Parallelism",
|
7 |
+
"HPX is a C++ Standards Library for Concurrency and Parallelism. It implements all of the corresponding facilities as defined by the C++ Standard. Additionally, in HPX we implement functionalities proposed as part of the ongoing C++ standardization process. We also extend the C++ Standard APIs to the distributed case."
|
8 |
+
],
|
9 |
+
"homepage": "https://github.com/STEllAR-GROUP/hpx",
|
10 |
+
"license": "BSL-1.0",
|
11 |
+
"supports": "!(windows & x86)",
|
12 |
+
"dependencies": [
|
13 |
+
"asio",
|
14 |
+
"boost-accumulators",
|
15 |
+
"boost-config",
|
16 |
+
"boost-context",
|
17 |
+
"boost-dynamic-bitset",
|
18 |
+
"boost-exception",
|
19 |
+
"boost-filesystem",
|
20 |
+
"boost-iostreams",
|
21 |
+
"boost-lockfree",
|
22 |
+
"boost-range",
|
23 |
+
"boost-spirit",
|
24 |
+
"boost-system",
|
25 |
+
"boost-throw-exception",
|
26 |
+
"boost-variant",
|
27 |
+
"boost-winapi",
|
28 |
+
{
|
29 |
+
"name": "gperftools",
|
30 |
+
"platform": "linux"
|
31 |
+
},
|
32 |
+
"hwloc",
|
33 |
+
{
|
34 |
+
"name": "pkgconf",
|
35 |
+
"host": true
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"name": "vcpkg-cmake",
|
39 |
+
"host": true
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"name": "vcpkg-cmake-config",
|
43 |
+
"host": true
|
44 |
+
}
|
45 |
+
],
|
46 |
+
"default-features": [
|
47 |
+
"bzip2",
|
48 |
+
"mpi",
|
49 |
+
"snappy",
|
50 |
+
"zlib"
|
51 |
+
],
|
52 |
+
"features": {
|
53 |
+
"bzip2": {
|
54 |
+
"description": "Build with bzip2 compression",
|
55 |
+
"dependencies": [
|
56 |
+
"bzip2"
|
57 |
+
]
|
58 |
+
},
|
59 |
+
"cuda": {
|
60 |
+
"description": "Build with CUDA support",
|
61 |
+
"dependencies": [
|
62 |
+
"cuda"
|
63 |
+
]
|
64 |
+
},
|
65 |
+
"mpi": {
|
66 |
+
"description": "Build with MPI parcelport",
|
67 |
+
"dependencies": [
|
68 |
+
"mpi"
|
69 |
+
]
|
70 |
+
},
|
71 |
+
"snappy": {
|
72 |
+
"description": "Build with snappy compression",
|
73 |
+
"dependencies": [
|
74 |
+
"snappy"
|
75 |
+
]
|
76 |
+
},
|
77 |
+
"zlib": {
|
78 |
+
"description": "Build with zlib compression",
|
79 |
+
"dependencies": [
|
80 |
+
"zlib"
|
81 |
+
]
|
82 |
+
}
|
83 |
+
}
|
84 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/0001-fix_find_package.patch
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 075d793..9bc635a 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -41,13 +41,14 @@ if (IMGUI_SFML_FIND_SFML)
|
6 |
+
if (NOT BUILD_SHARED_LIBS)
|
7 |
+
set(SFML_STATIC_LIBRARIES ON)
|
8 |
+
endif()
|
9 |
+
- find_package(SFML 2.5 COMPONENTS graphics system window)
|
10 |
+
+ find_package(SFML COMPONENTS graphics system window)
|
11 |
+
|
12 |
+
if(NOT SFML_FOUND)
|
13 |
+
message(FATAL_ERROR "SFML 2 directory not found. Set SFML_DIR to directory where SFML was built (or one which contains SFMLConfig.cmake)")
|
14 |
+
endif()
|
15 |
+
endif()
|
16 |
+
|
17 |
+
+if(0)
|
18 |
+
# ImGui does not provide native support for CMakeLists, workaround for now to have
|
19 |
+
# users specify IMGUI_DIR. Waiting for this PR to get merged...
|
20 |
+
# https://github.com/ocornut/imgui/pull/1713
|
21 |
+
@@ -69,6 +70,8 @@ set(IMGUI_PUBLIC_HEADERS
|
22 |
+
${IMGUI_INCLUDE_DIR}/imstb_truetype.h
|
23 |
+
${IMGUI_INCLUDE_DIR}/misc/cpp/imgui_stdlib.h
|
24 |
+
)
|
25 |
+
+endif()
|
26 |
+
+find_package(imgui CONFIG REQUIRED)
|
27 |
+
|
28 |
+
if (IMGUI_SFML_IMGUI_DEMO)
|
29 |
+
list(APPEND IMGUI_SOURCES ${IMGUI_DEMO_SOURCES})
|
30 |
+
@@ -93,6 +96,7 @@ add_library(ImGui-SFML::ImGui-SFML ALIAS ImGui-SFML)
|
31 |
+
|
32 |
+
target_link_libraries(ImGui-SFML
|
33 |
+
PUBLIC
|
34 |
+
+ imgui::imgui
|
35 |
+
sfml-graphics
|
36 |
+
sfml-system
|
37 |
+
sfml-window
|
cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO eliasdaler/imgui-sfml
|
6 |
+
REF "v${VERSION}"
|
7 |
+
SHA512 c8f2ed21ad5dfac417474f0caed1c59105b7dd8bf2dcb1db3b1f46a4fb07cec3c199d6fda0ff05ec5040a18000a0168f1a8caa978dee356c2b6874b5b2e10ec4
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
0001-fix_find_package.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DCMAKE_CXX_STANDARD=11
|
17 |
+
)
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ImGui-SFML)
|
22 |
+
file(READ "${CURRENT_PACKAGES_DIR}/share/imgui-sfml/ImGui-SFMLConfig.cmake" cmake_config)
|
23 |
+
string(PREPEND cmake_config [[
|
24 |
+
include(CMakeFindDependencyMacro)
|
25 |
+
find_dependency(imgui CONFIG)
|
26 |
+
find_dependency(SFML COMPONENTS graphics system window)
|
27 |
+
]])
|
28 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/imgui-sfml/ImGui-SFMLConfig.cmake" "${cmake_config}")
|
29 |
+
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
31 |
+
|
32 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
33 |
+
|
34 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
imgui-sfml provides CMake targets:
|
2 |
+
|
3 |
+
find_package(ImGui-SFML CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE ImGui-SFML::ImGui-SFML)
|
cc-multilingual-main/cc_net/vcpkg/ports/imgui-sfml/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "imgui-sfml",
|
3 |
+
"version": "2.6",
|
4 |
+
"description": "ImGui binding for use with SFML",
|
5 |
+
"homepage": "https://github.com/eliasdaler/imgui-sfml",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"imgui",
|
9 |
+
"opengl",
|
10 |
+
"sfml",
|
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/kf5declarative/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO KDE/kdeclarative
|
4 |
+
REF v5.98.0
|
5 |
+
SHA512 327eb517fc5fa47dcd5e1b70fff0a704528789e3cb6652db5269a8c41ba3ffeedc38b71f1e00403a5e0132029497a6dae90f4230d13ffdfeb0469b5ff91e2a71
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
10 |
+
INVERTED_FEATURES
|
11 |
+
"opengl" CMAKE_DISABLE_FIND_PACKAGE_EPOXY
|
12 |
+
)
|
13 |
+
|
14 |
+
# Prevent KDEClangFormat from writing to source effectively blocking parallel configure
|
15 |
+
file(WRITE "${SOURCE_PATH}/.clang-format" "DisableFormat: true\nSortIncludes: false\n")
|
16 |
+
|
17 |
+
vcpkg_cmake_configure(
|
18 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
19 |
+
OPTIONS
|
20 |
+
-DBUILD_TESTING=OFF
|
21 |
+
-DKDE_INSTALL_QTPLUGINDIR=plugins
|
22 |
+
-DBUNDLE_INSTALL_DIR=bin
|
23 |
+
-DKDE_INSTALL_QMLDIR=qml
|
24 |
+
${FEATURE_OPTIONS}
|
25 |
+
MAYBE_UNUSED_VARIABLES
|
26 |
+
CMAKE_DISABLE_FIND_PACKAGE_EPOXY
|
27 |
+
BUNDLE_INSTALL_DIR
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_cmake_install()
|
31 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME KF5Declarative CONFIG_PATH lib/cmake/KF5Declarative)
|
32 |
+
vcpkg_copy_pdbs()
|
33 |
+
|
34 |
+
vcpkg_copy_tools(TOOL_NAMES kpackagelauncherqml AUTO_CLEAN)
|
35 |
+
|
36 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
38 |
+
endif()
|
39 |
+
|
40 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
41 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
42 |
+
|
43 |
+
file(GLOB LICENSE_FILES "${SOURCE_PATH}/LICENSES/*")
|
44 |
+
vcpkg_install_copyright(FILE_LIST ${LICENSE_FILES})
|
45 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/kf5declarative/vcpkg.json
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "kf5declarative",
|
3 |
+
"version": "5.98.0",
|
4 |
+
"description": "Integration of QML and KDE work spaces",
|
5 |
+
"homepage": "https://api.kde.org/frameworks/kdeclarative/html/index.html",
|
6 |
+
"dependencies": [
|
7 |
+
"ecm",
|
8 |
+
{
|
9 |
+
"name": "gettext",
|
10 |
+
"host": true,
|
11 |
+
"features": [
|
12 |
+
"tools"
|
13 |
+
]
|
14 |
+
},
|
15 |
+
"kf5config",
|
16 |
+
{
|
17 |
+
"name": "kf5globalaccel",
|
18 |
+
"platform": "!windows"
|
19 |
+
},
|
20 |
+
"kf5guiaddons",
|
21 |
+
"kf5i18n",
|
22 |
+
"kf5iconthemes",
|
23 |
+
"kf5kio",
|
24 |
+
"kf5notifications",
|
25 |
+
"kf5package",
|
26 |
+
"kf5widgetsaddons",
|
27 |
+
"kf5windowsystem",
|
28 |
+
"qt5-base",
|
29 |
+
"qt5-tools",
|
30 |
+
{
|
31 |
+
"name": "vcpkg-cmake",
|
32 |
+
"host": true
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"name": "vcpkg-cmake-config",
|
36 |
+
"host": true
|
37 |
+
}
|
38 |
+
],
|
39 |
+
"features": {
|
40 |
+
"opengl": {
|
41 |
+
"description": "Enables OpenGl support",
|
42 |
+
"dependencies": [
|
43 |
+
"libepoxy"
|
44 |
+
]
|
45 |
+
}
|
46 |
+
}
|
47 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57/0001_cmake.patch
ADDED
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -Naur a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt 2012-04-04 13:09:12.000000000 +0800
|
3 |
+
+++ b/CMakeLists.txt 2021-06-16 01:14:35.669163100 +0800
|
4 |
+
@@ -31,6 +31,8 @@
|
5 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake)
|
6 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE_CXX ${CMAKE_CURRENT_SOURCE_DIR}/cmake/cxx_flag_overrides.cmake)
|
7 |
+
|
8 |
+
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
9 |
+
+
|
10 |
+
# Set a private module find path
|
11 |
+
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
|
12 |
+
|
13 |
+
@@ -81,17 +83,17 @@
|
14 |
+
endif(NOT Boost_FOUND)
|
15 |
+
|
16 |
+
set(Xerces_USE_STATIC_LIBS On)
|
17 |
+
-find_package(Xerces QUIET)
|
18 |
+
-if (NOT Xerces_FOUND)
|
19 |
+
+find_package(XercesC QUIET)
|
20 |
+
+if (NOT XercesC_FOUND)
|
21 |
+
set(XERCES_ROOT CACHE PATH "Location of the xerces library")
|
22 |
+
message(FATAL_ERROR
|
23 |
+
"Unable to find xerces library.
|
24 |
+
Please set the the XERCES_ROOT to point to the root of the xerces directory."
|
25 |
+
)
|
26 |
+
-endif (NOT Xerces_FOUND)
|
27 |
+
+endif (NOT XercesC_FOUND)
|
28 |
+
|
29 |
+
-set(XML_LIBRARIES ${Xerces_LIBRARY})
|
30 |
+
-set(XML_INCLUDE_DIRS ${Xerces_INCLUDE_DIR})
|
31 |
+
+set(XML_LIBRARIES ${XercesC_LIBRARY})
|
32 |
+
+set(XML_INCLUDE_DIRS ${XercesC_INCLUDE_DIR})
|
33 |
+
|
34 |
+
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
35 |
+
add_definitions(-DLINUX)
|
36 |
+
@@ -187,12 +189,18 @@
|
37 |
+
add_executable( las2e57
|
38 |
+
src/tools/las2e57.cpp
|
39 |
+
)
|
40 |
+
+
|
41 |
+
+if (MSVC)
|
42 |
+
+ set(LAS2E57_EXTRA_LINK bcrypt)
|
43 |
+
+endif(MSVC)
|
44 |
+
+
|
45 |
+
target_link_libraries( las2e57
|
46 |
+
E57RefImpl
|
47 |
+
LASReader
|
48 |
+
time_conversion
|
49 |
+
${XML_LIBRARIES}
|
50 |
+
${CMAKE_THREAD_LIBS_INIT}
|
51 |
+
+ ${LAS2E57_EXTRA_LINK}
|
52 |
+
)
|
53 |
+
add_executable( e57fields
|
54 |
+
src/tools/e57fields.cpp
|
55 |
+
@@ -270,15 +270,32 @@
|
56 |
+
install(
|
57 |
+
FILES
|
58 |
+
include/E57Foundation.h
|
59 |
+
+ include/E57Simple.h
|
60 |
+
+ include/LASReader.h
|
61 |
+
DESTINATION include/e57
|
62 |
+
)
|
63 |
+
+install(
|
64 |
+
+ FILES
|
65 |
+
+ include/time_conversion/time_conversion.h
|
66 |
+
+ include/time_conversion/basictypes.h
|
67 |
+
+ include/time_conversion/constants.h
|
68 |
+
+ include/time_conversion/gnss_error.h
|
69 |
+
+ DESTINATION include/e57/time_conversion
|
70 |
+
+)
|
71 |
+
|
72 |
+
install(
|
73 |
+
FILES
|
74 |
+
CHANGES.TXT
|
75 |
+
README.TXT
|
76 |
+
src/refimpl/E57RefImplConfig.cmake
|
77 |
+
- DESTINATION .
|
78 |
+
+ DESTINATION share/e57refimpl
|
79 |
+
+)
|
80 |
+
+
|
81 |
+
+install(
|
82 |
+
+ FILES
|
83 |
+
+ README.TXT
|
84 |
+
+ RENAME copyright
|
85 |
+
+ DESTINATION share/libe57
|
86 |
+
)
|
87 |
+
|
88 |
+
#include (InstallRequiredSystemLibraries)
|
89 |
+
--- a/src/refimpl/E57RefImplConfig.cmake 2011-10-06 16:01:00.000000000 +0800
|
90 |
+
+++ b/src/refimpl/E57RefImplConfig.cmake 2022-03-01 16:48:29.117485600 +0800
|
91 |
+
@@ -49,6 +49,8 @@
|
92 |
+
# NOTE: You will also need to include the boost and xerces libraries to your
|
93 |
+
# project.
|
94 |
+
|
95 |
+
+get_filename_component(E57RefImpl_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
|
96 |
+
+
|
97 |
+
IF (NOT "${E57RefImpl_DIR}/include" EQUAL "${E57RefImpl_INCLUDE_DIR}")
|
98 |
+
SET(E57RefImpl_LIBRARY_DEBUG E57RefImpl_LIBRARY_DEBUG-NOTFOUND)
|
99 |
+
SET(E57RefImpl_LIBRARY_RELEASE E57RefImpl_LIBRARY_RELEASE-NOTFOUND)
|
100 |
+
@@ -78,6 +80,6 @@
|
101 |
+
NAMES libE57RefImpl-d
|
102 |
+
E57RefImpl-d
|
103 |
+
- HINTS ${E57RefImpl_DIR}/lib
|
104 |
+
+ HINTS ${E57RefImpl_DIR}/debug/lib
|
105 |
+
DOC "E57 debug library"
|
106 |
+
)
|
107 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57/0002_replace_tr1_with_cpp11.patch
ADDED
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --color -Naur a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt 2013-04-03 22:24:08.000000000 +0800
|
3 |
+
+++ b/CMakeLists.txt 2022-03-01 17:23:01.210728200 +0800
|
4 |
+
@@ -36,8 +36,9 @@
|
5 |
+
# If you find any errors or have suggestion to improve the build script:
|
6 |
+
# patches are most welcome! Please send them to the development mailing list.
|
7 |
+
|
8 |
+
+cmake_minimum_required(VERSION 3.1)
|
9 |
+
|
10 |
+
-cmake_minimum_required(VERSION 2.8.2)
|
11 |
+
+set(CMAKE_CXX_STANDARD 11)
|
12 |
+
|
13 |
+
# Override flags to enable prepare for linking to static runtime
|
14 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake)
|
15 |
+
diff --color -Naur a/src/tools/e57fields.cpp b/src/tools/e57fields.cpp
|
16 |
+
--- a/src/tools/e57fields.cpp 2012-04-04 17:19:01.000000000 +0800
|
17 |
+
+++ b/src/tools/e57fields.cpp 2022-03-01 17:24:17.904911600 +0800
|
18 |
+
@@ -30,11 +30,7 @@
|
19 |
+
#include <iomanip>
|
20 |
+
#include <float.h>
|
21 |
+
#include <map>
|
22 |
+
-#if defined(_MSC_VER)
|
23 |
+
-# include <memory>
|
24 |
+
-#else
|
25 |
+
-# include <tr1/memory>
|
26 |
+
-#endif
|
27 |
+
+#include <memory>
|
28 |
+
#include "E57Foundation.h"
|
29 |
+
#include "E57FoundationImpl.h" //??? for exceptions, should be in separate file
|
30 |
+
|
31 |
+
@@ -43,7 +39,6 @@
|
32 |
+
|
33 |
+
using namespace e57;
|
34 |
+
using namespace std;
|
35 |
+
-using namespace std::tr1;
|
36 |
+
|
37 |
+
//!!! prologue, file name, date, version#, total # elements
|
38 |
+
//!!! doc
|
39 |
+
@@ -446,9 +441,9 @@
|
40 |
+
/// Only one is used, depending on the type of the E57 element.
|
41 |
+
/// One of these three should be resized to BUFFER_ELEMENT_COUNT.
|
42 |
+
/// These are smart pointers to avoid the copying (and the moving) when put on the cvElements list.
|
43 |
+
- shared_ptr<vector<int64_t> > iBuffer;
|
44 |
+
- shared_ptr<vector<double> > dBuffer;
|
45 |
+
- shared_ptr<vector<string> > sBuffer;
|
46 |
+
+ std::shared_ptr<vector<int64_t> > iBuffer;
|
47 |
+
+ std::shared_ptr<vector<double> > dBuffer;
|
48 |
+
+ std::shared_ptr<vector<string> > sBuffer;
|
49 |
+
|
50 |
+
/// The precalculated parts of the element path name.
|
51 |
+
/// The only part that is missing is the record number which goes in between.
|
52 |
+
diff --color -Naur a/src/tools/e57unpack.cpp b/src/tools/e57unpack.cpp
|
53 |
+
--- a/src/tools/e57unpack.cpp 2013-04-03 22:24:08.000000000 +0800
|
54 |
+
+++ b/src/tools/e57unpack.cpp 2022-03-01 17:25:15.206260200 +0800
|
55 |
+
@@ -45,12 +45,8 @@
|
56 |
+
#include <stdexcept>
|
57 |
+
using std::runtime_error;
|
58 |
+
|
59 |
+
-#if defined(_MSC_VER)
|
60 |
+
-# include <memory>
|
61 |
+
-#else
|
62 |
+
-# include <tr1/memory>
|
63 |
+
-#endif
|
64 |
+
-using std::tr1::shared_ptr;
|
65 |
+
+#include <memory>
|
66 |
+
+using std::shared_ptr;
|
67 |
+
|
68 |
+
#include <string>
|
69 |
+
using std::string;
|
70 |
+
diff --color -Naur a/src/tools/e57validate.cpp b/src/tools/e57validate.cpp
|
71 |
+
--- a/src/tools/e57validate.cpp 2011-10-06 16:01:00.000000000 +0800
|
72 |
+
+++ b/src/tools/e57validate.cpp 2022-03-01 17:25:46.220771800 +0800
|
73 |
+
@@ -66,11 +66,7 @@
|
74 |
+
|
75 |
+
|
76 |
+
================================================================*/
|
77 |
+
-#if defined(_MSC_VER)
|
78 |
+
-# include <unordered_map>
|
79 |
+
-#else
|
80 |
+
-# include <tr1/unordered_map>
|
81 |
+
-using std::tr1::unordered_map;
|
82 |
+
-#endif
|
83 |
+
+#include <unordered_map>
|
84 |
+
+using std::unordered_map;
|
85 |
+
#include <cstring>
|
86 |
+
using std::strlen;
|
87 |
+
@@ -694,7 +691,7 @@
|
88 |
+
void dump(int indent = 0, std::ostream& os = std::cout);
|
89 |
+
//================
|
90 |
+
private:
|
91 |
+
- typedef std::tr1::unordered_map<int64_t, LineGroup> GroupsMap;
|
92 |
+
+ typedef std::unordered_map<int64_t, LineGroup> GroupsMap;
|
93 |
+
|
94 |
+
bool isDefined_;
|
95 |
+
bool isByRow_;
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57/0003_fix_osx_support.patch
ADDED
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff -x '.*' -Naur a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
--- a/CMakeLists.txt 2021-06-24 16:56:37.000000000 +0800
|
3 |
+
+++ b/CMakeLists.txt 2021-06-24 17:30:28.000000000 +0800
|
4 |
+
@@ -163,6 +163,13 @@
|
5 |
+
include/time_conversion/gnss_error.h
|
6 |
+
)
|
7 |
+
|
8 |
+
+# fix dependency introduced by xerces
|
9 |
+
+if(APPLE)
|
10 |
+
+ find_library(CORE_FOUNDATION CoreFoundation REQUIRED)
|
11 |
+
+ find_library(CORE_SERVICES CoreServices REQUIRED)
|
12 |
+
+ set(EXTRA_LINK_FLAGS_OSX ${CORE_FOUNDATION} ${CORE_SERVICES})
|
13 |
+
+endif()
|
14 |
+
+
|
15 |
+
#
|
16 |
+
# Example programs
|
17 |
+
#
|
18 |
+
@@ -174,6 +181,7 @@
|
19 |
+
E57RefImpl
|
20 |
+
${XML_LIBRARIES}
|
21 |
+
${CMAKE_THREAD_LIBS_INIT}
|
22 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
23 |
+
)
|
24 |
+
add_executable( DemoRead01
|
25 |
+
src/examples/DemoRead01.cpp
|
26 |
+
@@ -182,6 +190,7 @@
|
27 |
+
E57RefImpl
|
28 |
+
${XML_LIBRARIES}
|
29 |
+
${CMAKE_THREAD_LIBS_INIT}
|
30 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
31 |
+
)
|
32 |
+
|
33 |
+
#
|
34 |
+
@@ -203,6 +212,7 @@
|
35 |
+
${XML_LIBRARIES}
|
36 |
+
${CMAKE_THREAD_LIBS_INIT}
|
37 |
+
${LAS2E57_EXTRA_LINK}
|
38 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
39 |
+
)
|
40 |
+
add_executable( e57fields
|
41 |
+
src/tools/e57fields.cpp
|
42 |
+
@@ -211,6 +221,7 @@
|
43 |
+
E57RefImpl
|
44 |
+
${XML_LIBRARIES}
|
45 |
+
${CMAKE_THREAD_LIBS_INIT}
|
46 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
47 |
+
)
|
48 |
+
add_executable( e57xmldump
|
49 |
+
src/tools/e57xmldump.cpp
|
50 |
+
@@ -219,6 +230,7 @@
|
51 |
+
E57RefImpl
|
52 |
+
${XML_LIBRARIES}
|
53 |
+
${CMAKE_THREAD_LIBS_INIT}
|
54 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
55 |
+
)
|
56 |
+
add_executable( e57validate
|
57 |
+
src/tools/e57validate.cpp
|
58 |
+
@@ -227,6 +239,7 @@
|
59 |
+
E57RefImpl
|
60 |
+
${XML_LIBRARIES}
|
61 |
+
${CMAKE_THREAD_LIBS_INIT}
|
62 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
63 |
+
)
|
64 |
+
add_executable( e57unpack
|
65 |
+
src/tools/e57unpack.cpp
|
66 |
+
@@ -236,6 +249,7 @@
|
67 |
+
${XML_LIBRARIES}
|
68 |
+
${Boost_LIBRARIES}
|
69 |
+
${CMAKE_THREAD_LIBS_INIT}
|
70 |
+
+ ${EXTRA_LINK_FLAGS_OSX}
|
71 |
+
)
|
72 |
+
|
73 |
+
#
|
74 |
+
diff -x '.*' -Naur a/src/refimpl/E57FoundationImpl.cpp b/src/refimpl/E57FoundationImpl.cpp
|
75 |
+
--- a/src/refimpl/E57FoundationImpl.cpp 2012-04-12 21:44:42.000000000 +0800
|
76 |
+
+++ b/src/refimpl/E57FoundationImpl.cpp 2021-06-24 17:04:57.000000000 +0800
|
77 |
+
@@ -57,6 +57,12 @@
|
78 |
+
# include <fcntl.h>
|
79 |
+
# define O_BINARY (0)
|
80 |
+
# define _unlink unlink
|
81 |
+
+#elif defined( __APPLE__ )
|
82 |
+
+# include <sys/types.h>
|
83 |
+
+# include <unistd.h>
|
84 |
+
+# include <fcntl.h>
|
85 |
+
+# define O_BINARY (0)
|
86 |
+
+# define _unlink unlink
|
87 |
+
#else
|
88 |
+
# error "no supported OS platform defined"
|
89 |
+
#endif
|
90 |
+
@@ -4764,6 +4770,8 @@
|
91 |
+
# endif
|
92 |
+
#elif defined(LINUX)
|
93 |
+
int64_t result = ::lseek64(fd_, offset, whence);
|
94 |
+
+#elif defined( __APPLE__ )
|
95 |
+
+ int64_t result = ::lseek(fd_, offset, whence);
|
96 |
+
#else
|
97 |
+
# error "no supported OS platform defined"
|
98 |
+
#endif
|
99 |
+
diff -x '.*' -Naur a/src/refimpl/E57Simple.cpp b/src/refimpl/E57Simple.cpp
|
100 |
+
--- a/src/refimpl/E57Simple.cpp 2011-05-14 05:40:11.000000000 +0800
|
101 |
+
+++ b/src/refimpl/E57Simple.cpp 2021-06-24 16:58:24.000000000 +0800
|
102 |
+
@@ -799,6 +799,9 @@
|
103 |
+
# define __LARGE64_FILES
|
104 |
+
# include <sys/types.h>
|
105 |
+
# include <unistd.h>
|
106 |
+
+#elif defined( __APPLE__ )
|
107 |
+
+# include <sys/types.h>
|
108 |
+
+# include <unistd.h>
|
109 |
+
#else
|
110 |
+
# error "no supported OS platform defined"
|
111 |
+
#endif
|
112 |
+
diff -x '.*' -Naur a/src/refimpl/E57SimpleImpl.cpp b/src/refimpl/E57SimpleImpl.cpp
|
113 |
+
--- a/src/refimpl/E57SimpleImpl.cpp 2012-04-12 23:15:46.000000000 +0800
|
114 |
+
+++ b/src/refimpl/E57SimpleImpl.cpp 2021-06-24 16:58:24.000000000 +0800
|
115 |
+
@@ -74,6 +74,12 @@
|
116 |
+
# include <boost/uuid/uuid.hpp>
|
117 |
+
# include <boost/uuid/uuid_generators.hpp>
|
118 |
+
# include <boost/uuid/uuid_io.hpp>
|
119 |
+
+#elif defined(__APPLE__)
|
120 |
+
+# include <sys/types.h>
|
121 |
+
+# include <unistd.h>
|
122 |
+
+# include <boost/uuid/uuid.hpp>
|
123 |
+
+# include <boost/uuid/uuid_generators.hpp>
|
124 |
+
+# include <boost/uuid/uuid_io.hpp>
|
125 |
+
#else
|
126 |
+
# error "no supported OS platform defined"
|
127 |
+
#endif
|
128 |
+
diff -x '.*' -Naur a/src/tools/las2e57.cpp b/src/tools/las2e57.cpp
|
129 |
+
--- a/src/tools/las2e57.cpp 2012-04-04 19:09:11.000000000 +0800
|
130 |
+
+++ b/src/tools/las2e57.cpp 2021-06-24 17:11:11.000000000 +0800
|
131 |
+
@@ -404,12 +404,12 @@
|
132 |
+
int64_t startIndex;
|
133 |
+
BoundingBox bbox;
|
134 |
+
|
135 |
+
- GroupRecord(int64_t id);
|
136 |
+
+ GroupRecord(int64_t id = 0);
|
137 |
+
void addMember(double coords[3], int64_t recordIndex);
|
138 |
+
void dump(int indent = 0, std::ostream& os = std::cout);
|
139 |
+
};
|
140 |
+
|
141 |
+
-GroupRecord::GroupRecord(int64_t id_arg = 0)
|
142 |
+
+GroupRecord::GroupRecord(int64_t id_arg)
|
143 |
+
: id(id_arg),
|
144 |
+
count(0),
|
145 |
+
startIndex(0),
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57/portfile.cmake
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VERSION 1.1.332)
|
2 |
+
set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/E57RefImpl_src-${VERSION}")
|
3 |
+
|
4 |
+
vcpkg_from_sourceforge(
|
5 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
6 |
+
REPO e57-3d-imgfmt
|
7 |
+
FILENAME "E57RefImpl_src-${VERSION}.zip"
|
8 |
+
SHA512 86adb88cff32d72905e923b1205d609a2bce2eabd78995c59a7957395b233766a5ce31481db08977117abc1a70bbed90d2ce0cdb9897704a8c63d992e91a3907
|
9 |
+
PATCHES
|
10 |
+
"0001_cmake.patch"
|
11 |
+
"0002_replace_tr1_with_cpp11.patch"
|
12 |
+
"0003_fix_osx_support.patch"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_configure(
|
16 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
17 |
+
)
|
18 |
+
|
19 |
+
if(NOT VCPKG_BUILD_TYPE)
|
20 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/share/libe57")
|
21 |
+
endif()
|
22 |
+
|
23 |
+
vcpkg_cmake_install()
|
24 |
+
vcpkg_cmake_config_fixup()
|
25 |
+
vcpkg_copy_pdbs()
|
26 |
+
|
27 |
+
vcpkg_copy_tools(
|
28 |
+
TOOL_NAMES e57fields e57unpack e57validate e57xmldump las2e57
|
29 |
+
AUTO_CLEAN
|
30 |
+
)
|
31 |
+
|
32 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
34 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/e57refimpl/CHANGES.TXT")
|
35 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/share/e57refimpl/README.TXT")
|
cc-multilingual-main/cc_net/vcpkg/ports/libe57/vcpkg.json
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libe57",
|
3 |
+
"version-semver": "1.1.332",
|
4 |
+
"port-version": 4,
|
5 |
+
"description": "An open source implementation of the ASTM E2807 Standard Specification for 3D Imaging Data Exchange in the C++ language.",
|
6 |
+
"homepage": "http://www.libe57.org/",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"supports": "!android",
|
9 |
+
"dependencies": [
|
10 |
+
"boost-crc",
|
11 |
+
"boost-filesystem",
|
12 |
+
"boost-format",
|
13 |
+
"boost-math",
|
14 |
+
"boost-program-options",
|
15 |
+
"boost-system",
|
16 |
+
"boost-thread",
|
17 |
+
"boost-uuid",
|
18 |
+
"boost-variant",
|
19 |
+
{
|
20 |
+
"name": "icu",
|
21 |
+
"platform": "linux"
|
22 |
+
},
|
23 |
+
{
|
24 |
+
"name": "vcpkg-cmake",
|
25 |
+
"host": true
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"name": "vcpkg-cmake-config",
|
29 |
+
"host": true
|
30 |
+
},
|
31 |
+
"xerces-c"
|
32 |
+
]
|
33 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libredwg/fix_dependency.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 2e854f2..ec2ec1d 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -282,6 +282,8 @@ target_include_directories(${redwg} PUBLIC
|
6 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
7 |
+
$<INSTALL_INTERFACE:include>)
|
8 |
+
|
9 |
+
+find_path(JSMN_INCLUDE_DIRS "jsmn.h")
|
10 |
+
+target_include_directories(${redwg} PRIVATE ${JSMN_INCLUDE_DIRS})
|
11 |
+
link_libraries(${redwg} ${LIBS} ${CMAKE_THREAD_LIBS_INIT})
|
12 |
+
|
13 |
+
if(NOT LIBREDWG_LIBONLY)
|
14 |
+
diff --git a/src/in_json.c b/src/in_json.c
|
15 |
+
index d66f1ab..724505b 100644
|
16 |
+
--- a/src/in_json.c
|
17 |
+
+++ b/src/in_json.c
|
18 |
+
@@ -51,7 +51,7 @@ static unsigned int loglevel;
|
19 |
+
// In strict mode an object or array can't become a key
|
20 |
+
// In strict mode primitives are: numbers and booleans
|
21 |
+
#undef JSMN_STRICT
|
22 |
+
-#include "../jsmn/jsmn.h"
|
23 |
+
+#include "jsmn.h"
|
24 |
+
|
25 |
+
typedef struct jsmntokens
|
26 |
+
{
|
cc-multilingual-main/cc_net/vcpkg/ports/libredwg/portfile.cmake
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO LibreDWG/libredwg
|
4 |
+
REF "${VERSION}"
|
5 |
+
SHA512 cf0baf477d053eb6ab2feaeda187f2d92211c7d28aa50318c1c8d7acf1b9c463258fa3a388dddce266bf44e0d4e4cf1bd3aa591c918f8a253515919e5c1b3f57
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix_install.patch
|
9 |
+
fix_dependency.patch
|
10 |
+
fix_arm64_build.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
# If generate dwg manipulation tools
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
INVERTED_FEATURES
|
16 |
+
tools LIBREDWG_LIBONLY
|
17 |
+
)
|
18 |
+
|
19 |
+
# libredwg will read the version
|
20 |
+
file(WRITE "${SOURCE_PATH}/.version" ${VERSION})
|
21 |
+
|
22 |
+
# Fix https://github.com/LibreDWG/libredwg/issues/652#issuecomment-1454035167
|
23 |
+
if(APPLE)
|
24 |
+
vcpkg_replace_string("${SOURCE_PATH}/src/common.h"
|
25 |
+
[[defined(COMMON_TEST_C)]]
|
26 |
+
[[1]]
|
27 |
+
)
|
28 |
+
vcpkg_replace_string("${SOURCE_PATH}/src/common.c"
|
29 |
+
[[defined(COMMON_TEST_C)]]
|
30 |
+
[[1]]
|
31 |
+
)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
vcpkg_cmake_configure(
|
35 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
36 |
+
OPTIONS
|
37 |
+
${FEATURE_OPTIONS}
|
38 |
+
-DBUILD_TESTING=OFF
|
39 |
+
-DDISABLE_WERROR=ON
|
40 |
+
)
|
41 |
+
|
42 |
+
vcpkg_cmake_install()
|
43 |
+
vcpkg_copy_pdbs()
|
44 |
+
vcpkg_fixup_pkgconfig()
|
45 |
+
|
46 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-libredwg CONFIG_PATH share/unofficial-libredwg)
|
47 |
+
|
48 |
+
if("tools" IN_LIST FEATURES)
|
49 |
+
vcpkg_copy_tools(TOOL_NAMES dwg2dxf dwg2SVG dwgbmp dwggrep dwglayers dwgread dwgrewrite dwgwrite dxf2dwg AUTO_CLEAN)
|
50 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/libredwg")
|
51 |
+
endif()
|
52 |
+
|
53 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
54 |
+
|
55 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
56 |
+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
cc-multilingual-main/cc_net/vcpkg/ports/libredwg/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
libredwg provides CMake targets:
|
2 |
+
|
3 |
+
find_package(unofficial-libredwg CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main unofficial::libredwg::libredwg)
|
cc-multilingual-main/cc_net/vcpkg/ports/libsecret/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_gitlab(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
GITLAB_URL https://gitlab.gnome.org
|
4 |
+
REPO GNOME/libsecret
|
5 |
+
REF "${VERSION}"
|
6 |
+
SHA512 25faf5e72b6f0486cc1cb20535f685edbf264c97bb35434328587743dba0c5b52c2875e02479556e249b84320f755693744a2f37c710ec59135bd2f26d329228
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_configure_meson(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
OPTIONS
|
13 |
+
-Dintrospection=false
|
14 |
+
-Dgtk_doc=false
|
15 |
+
-Dmanpage=false
|
16 |
+
-Dvapi=false
|
17 |
+
ADDITIONAL_BINARIES
|
18 |
+
gdbus-codegen='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/gdbus-codegen'
|
19 |
+
glib-mkenums='${CURRENT_HOST_INSTALLED_DIR}/tools/glib/glib-mkenums'
|
20 |
+
)
|
21 |
+
vcpkg_install_meson()
|
22 |
+
vcpkg_fixup_pkgconfig()
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
25 |
+
# There is no option to disable building secret-tool, so remove the executable.
|
26 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
27 |
+
|
28 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/libsecret/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libsecret",
|
3 |
+
"version": "0.21.4",
|
4 |
+
"description": "libsecret is a GObject-based library for accessing the Secret Service API of the freedesktop.org project, a cross-desktop effort to access passwords, tokens and other types of secrets. libsecret provides a convenient wrapper for these methods so consumers do not have to call the low-level DBus methods.",
|
5 |
+
"homepage": "https://gitlab.gnome.org/GNOME/libsecret/",
|
6 |
+
"license": "LGPL-2.1-or-later",
|
7 |
+
"supports": "!(windows | uwp | osx)",
|
8 |
+
"dependencies": [
|
9 |
+
"glib",
|
10 |
+
{
|
11 |
+
"name": "glib",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
"libgcrypt",
|
15 |
+
{
|
16 |
+
"name": "vcpkg-tool-meson",
|
17 |
+
"host": true
|
18 |
+
}
|
19 |
+
]
|
20 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/CMakeLists.txt
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
|
3 |
+
project(libstemmer)
|
4 |
+
|
5 |
+
file(GLOB SNOWBALL_SOURCES
|
6 |
+
src_c/*.c
|
7 |
+
runtime/api.c
|
8 |
+
runtime/utilities.c
|
9 |
+
libstemmer/libstemmer.c
|
10 |
+
)
|
11 |
+
|
12 |
+
add_library(stemmer ${SNOWBALL_SOURCES})
|
13 |
+
|
14 |
+
install(
|
15 |
+
TARGETS stemmer
|
16 |
+
RUNTIME DESTINATION bin
|
17 |
+
LIBRARY DESTINATION lib
|
18 |
+
ARCHIVE DESTINATION lib
|
19 |
+
)
|
20 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
21 |
+
install(FILES include/libstemmer.h DESTINATION include)
|
22 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Snowball - License
|
2 |
+
Except where explicitly noted, all the software given out on this Snowball site is covered by the 3-clause BSD License:
|
3 |
+
|
4 |
+
Copyright (c) 2001, Dr Martin Porter,
|
5 |
+
Copyright (c) 2002, Richard Boulton.
|
6 |
+
All rights reserved.
|
7 |
+
|
8 |
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
9 |
+
|
10 |
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
11 |
+
|
12 |
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
13 |
+
|
14 |
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
15 |
+
|
16 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
17 |
+
Essentially, all this means is that you can do what you like with the code, except claim another Copyright for it, or claim that it is issued under a different license. The software is also issued without warranties, which means that if anyone suffers through its use, they cannot come back and sue you. You also have to alert anyone to whom you give the Snowball software to the fact that it is covered by the BSD license.
|
18 |
+
|
19 |
+
We have not bothered to insert the licensing arrangement into the text of the Snowball software.
|
cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "http://snowball.tartarus.org/dist/libstemmer_c.tgz"
|
5 |
+
FILENAME "libstemmer_c.tgz"
|
6 |
+
SHA512 9ab5b8bfd5b4071dbbd63d769e09fae3971b49ee441ad970aa95d90b3297f5ffc9deed1613d99974d1485bf3b69292663591957f52bbeddcadbf9d9a4af432f2
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive(
|
10 |
+
SOURCE_PATH
|
11 |
+
ARCHIVE "${ARCHIVE}"
|
12 |
+
)
|
13 |
+
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
15 |
+
|
16 |
+
vcpkg_cmake_configure(
|
17 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
18 |
+
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
|
23 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/libstemmer/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "libstemmer",
|
3 |
+
"version": "2017-9",
|
4 |
+
"port-version": 8,
|
5 |
+
"description": "Snowball is a small string processing language designed for creating stemming algorithms for use in Information Retrieval",
|
6 |
+
"homepage": "https://snowball.tartarus.org/",
|
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/llvm/0001-fix-install-package-dir.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
openmp/tools/Modules/CMakeLists.txt | 2 +-
|
2 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
3 |
+
|
4 |
+
diff --git a/openmp/tools/Modules/CMakeLists.txt b/openmp/tools/Modules/CMakeLists.txt
|
5 |
+
index 22d818eea72d..75aacc4468d4 100644
|
6 |
+
--- a/openmp/tools/Modules/CMakeLists.txt
|
7 |
+
+++ b/openmp/tools/Modules/CMakeLists.txt
|
8 |
+
@@ -12,4 +12,4 @@
|
9 |
+
|
10 |
+
|
11 |
+
install(FILES "FindOpenMPTarget.cmake"
|
12 |
+
- DESTINATION "${OPENMP_INSTALL_LIBDIR}/cmake/openmp")
|
13 |
+
+ DESTINATION "share/openmp")
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/0002-fix-tools-install-dir.patch
ADDED
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
bolt/cmake/modules/AddBOLT.cmake | 2 +-
|
2 |
+
clang-tools-extra/clang-tidy/tool/CMakeLists.txt | 2 +-
|
3 |
+
clang-tools-extra/modularize/CMakeLists.txt | 2 +-
|
4 |
+
clang/cmake/modules/AddClang.cmake | 2 +-
|
5 |
+
clang/tools/c-index-test/CMakeLists.txt | 2 +-
|
6 |
+
clang/tools/clang-format/CMakeLists.txt | 2 +-
|
7 |
+
clang/tools/scan-build-py/CMakeLists.txt | 4 ++--
|
8 |
+
clang/tools/scan-build/CMakeLists.txt | 2 +-
|
9 |
+
clang/tools/scan-view/CMakeLists.txt | 2 +-
|
10 |
+
flang/cmake/modules/AddFlang.cmake | 2 +-
|
11 |
+
flang/tools/f18/CMakeLists.txt | 2 +-
|
12 |
+
flang/tools/flang-driver/CMakeLists.txt | 2 +-
|
13 |
+
lld/cmake/modules/AddLLD.cmake | 2 +-
|
14 |
+
lld/tools/lld/CMakeLists.txt | 2 +-
|
15 |
+
lldb/cmake/modules/AddLLDB.cmake | 2 +-
|
16 |
+
15 files changed, 16 insertions(+), 16 deletions(-)
|
17 |
+
|
18 |
+
diff --git a/bolt/cmake/modules/AddBOLT.cmake b/bolt/cmake/modules/AddBOLT.cmake
|
19 |
+
index 1f69b9046320..b0de5186dde4 100644
|
20 |
+
--- a/bolt/cmake/modules/AddBOLT.cmake
|
21 |
+
+++ b/bolt/cmake/modules/AddBOLT.cmake
|
22 |
+
@@ -17,7 +17,7 @@ macro(add_bolt_tool name)
|
23 |
+
get_target_export_arg(${name} BOLT export_to_bolttargets)
|
24 |
+
install(TARGETS ${name}
|
25 |
+
${export_to_bolttargets}
|
26 |
+
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
27 |
+
+ RUNTIME DESTINATION "${BOLT_TOOLS_INSTALL_DIR}"
|
28 |
+
COMPONENT bolt)
|
29 |
+
|
30 |
+
if(NOT LLVM_ENABLE_IDE)
|
31 |
+
diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
|
32 |
+
index 3ce552872015..ce5a899ebe6d 100644
|
33 |
+
--- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
|
34 |
+
+++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
|
35 |
+
@@ -64,6 +64,6 @@ install(PROGRAMS clang-tidy-diff.py
|
36 |
+
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
|
37 |
+
COMPONENT clang-tidy)
|
38 |
+
install(PROGRAMS run-clang-tidy.py
|
39 |
+
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
40 |
+
+ DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
41 |
+
COMPONENT clang-tidy
|
42 |
+
RENAME run-clang-tidy)
|
43 |
+
diff --git a/clang-tools-extra/modularize/CMakeLists.txt b/clang-tools-extra/modularize/CMakeLists.txt
|
44 |
+
index 28635ca1089d..4516c8fb7ad0 100644
|
45 |
+
--- a/clang-tools-extra/modularize/CMakeLists.txt
|
46 |
+
+++ b/clang-tools-extra/modularize/CMakeLists.txt
|
47 |
+
@@ -24,5 +24,5 @@ clang_target_link_libraries(modularize
|
48 |
+
)
|
49 |
+
|
50 |
+
install(TARGETS modularize
|
51 |
+
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
52 |
+
+ RUNTIME DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
53 |
+
COMPONENT clang-extras)
|
54 |
+
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
|
55 |
+
index 75b0080f6715..46e32ddbe0cd 100644
|
56 |
+
--- a/clang/cmake/modules/AddClang.cmake
|
57 |
+
+++ b/clang/cmake/modules/AddClang.cmake
|
58 |
+
@@ -169,7 +169,7 @@ macro(add_clang_tool name)
|
59 |
+
get_target_export_arg(${name} Clang export_to_clangtargets)
|
60 |
+
install(TARGETS ${name}
|
61 |
+
${export_to_clangtargets}
|
62 |
+
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
63 |
+
+ RUNTIME DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
64 |
+
COMPONENT ${name})
|
65 |
+
|
66 |
+
if(NOT LLVM_ENABLE_IDE)
|
67 |
+
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt
|
68 |
+
index 0ae1b4e55244..7774cd27afcd 100644
|
69 |
+
--- a/clang/tools/c-index-test/CMakeLists.txt
|
70 |
+
+++ b/clang/tools/c-index-test/CMakeLists.txt
|
71 |
+
@@ -49,7 +49,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
72 |
+
set_property(TARGET c-index-test APPEND PROPERTY INSTALL_RPATH
|
73 |
+
"@executable_path/../../lib")
|
74 |
+
else()
|
75 |
+
- set(INSTALL_DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
76 |
+
+ set(INSTALL_DESTINATION "${CLANG_TOOLS_INSTALL_DIR}")
|
77 |
+
endif()
|
78 |
+
|
79 |
+
install(TARGETS c-index-test
|
80 |
+
diff --git a/clang/tools/clang-format/CMakeLists.txt b/clang/tools/clang-format/CMakeLists.txt
|
81 |
+
index 30c93f8667c8..5c6f87f62e8e 100644
|
82 |
+
--- a/clang/tools/clang-format/CMakeLists.txt
|
83 |
+
+++ b/clang/tools/clang-format/CMakeLists.txt
|
84 |
+
@@ -36,5 +36,5 @@ install(FILES clang-format.py
|
85 |
+
DESTINATION "${CMAKE_INSTALL_DATADIR}/clang"
|
86 |
+
COMPONENT clang-format)
|
87 |
+
install(PROGRAMS git-clang-format
|
88 |
+
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
89 |
+
+ DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
90 |
+
COMPONENT clang-format)
|
91 |
+
diff --git a/clang/tools/scan-build-py/CMakeLists.txt b/clang/tools/scan-build-py/CMakeLists.txt
|
92 |
+
index 3aca22c0b0a8..a8283219c99f 100644
|
93 |
+
--- a/clang/tools/scan-build-py/CMakeLists.txt
|
94 |
+
+++ b/clang/tools/scan-build-py/CMakeLists.txt
|
95 |
+
@@ -43,7 +43,7 @@ foreach(BinFile ${BinFiles})
|
96 |
+
${CMAKE_BINARY_DIR}/bin/scan-build-py
|
97 |
+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/scan-build)
|
98 |
+
install (PROGRAMS "bin/scan-build"
|
99 |
+
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
100 |
+
+ DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
101 |
+
RENAME scan-build-py
|
102 |
+
COMPONENT scan-build-py)
|
103 |
+
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/scan-build-py)
|
104 |
+
@@ -56,7 +56,7 @@ foreach(BinFile ${BinFiles})
|
105 |
+
${CMAKE_BINARY_DIR}/bin/
|
106 |
+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
107 |
+
install(PROGRAMS bin/${BinFile}
|
108 |
+
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
109 |
+
+ DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
110 |
+
COMPONENT scan-build-py)
|
111 |
+
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
112 |
+
endif()
|
113 |
+
diff --git a/clang/tools/scan-build/CMakeLists.txt b/clang/tools/scan-build/CMakeLists.txt
|
114 |
+
index ef687b0e90a1..47f31efc9174 100644
|
115 |
+
--- a/clang/tools/scan-build/CMakeLists.txt
|
116 |
+
+++ b/clang/tools/scan-build/CMakeLists.txt
|
117 |
+
@@ -47,7 +47,7 @@ if(CLANG_INSTALL_SCANBUILD)
|
118 |
+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
119 |
+
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
120 |
+
install(PROGRAMS bin/${BinFile}
|
121 |
+
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
122 |
+
+ DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
123 |
+
COMPONENT scan-build)
|
124 |
+
endforeach()
|
125 |
+
|
126 |
+
diff --git a/clang/tools/scan-view/CMakeLists.txt b/clang/tools/scan-view/CMakeLists.txt
|
127 |
+
index 07aec76ee66f..55a945bb278d 100644
|
128 |
+
--- a/clang/tools/scan-view/CMakeLists.txt
|
129 |
+
+++ b/clang/tools/scan-view/CMakeLists.txt
|
130 |
+
@@ -20,7 +20,7 @@ if(CLANG_INSTALL_SCANVIEW)
|
131 |
+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
132 |
+
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
133 |
+
install(PROGRAMS bin/${BinFile}
|
134 |
+
- DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
135 |
+
+ DESTINATION "${CLANG_TOOLS_INSTALL_DIR}"
|
136 |
+
COMPONENT scan-view)
|
137 |
+
endforeach()
|
138 |
+
|
139 |
+
diff --git a/flang/cmake/modules/AddFlang.cmake b/flang/cmake/modules/AddFlang.cmake
|
140 |
+
index 41ce8738e7bf..d9659c4cf53a 100644
|
141 |
+
--- a/flang/cmake/modules/AddFlang.cmake
|
142 |
+
+++ b/flang/cmake/modules/AddFlang.cmake
|
143 |
+
@@ -115,7 +115,7 @@ macro(add_flang_tool name)
|
144 |
+
get_target_export_arg(${name} Flang export_to_flangtargets)
|
145 |
+
install(TARGETS ${name}
|
146 |
+
${export_to_flangtargets}
|
147 |
+
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
148 |
+
+ RUNTIME DESTINATION "${FLANG_TOOLS_INSTALL_DIR}"
|
149 |
+
COMPONENT ${name})
|
150 |
+
|
151 |
+
if(NOT LLVM_ENABLE_IDE)
|
152 |
+
diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
|
153 |
+
index d7538feef121..ec8b7737ee22 100644
|
154 |
+
--- a/flang/tools/f18/CMakeLists.txt
|
155 |
+
+++ b/flang/tools/f18/CMakeLists.txt
|
156 |
+
@@ -75,7 +75,7 @@ if (NOT WIN32)
|
157 |
+
@ONLY
|
158 |
+
)
|
159 |
+
add_custom_target(flang-to-external-fc ALL DEPENDS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc)
|
160 |
+
- install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
161 |
+
+ install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang-to-external-fc DESTINATION "${FLANG_TOOLS_INSTALL_DIR}")
|
162 |
+
endif()
|
163 |
+
|
164 |
+
# TODO Move this to a more suitable location
|
165 |
+
diff --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt
|
166 |
+
index 3ce8b407450d..6b2e2b0dc33a 100644
|
167 |
+
--- a/flang/tools/flang-driver/CMakeLists.txt
|
168 |
+
+++ b/flang/tools/flang-driver/CMakeLists.txt
|
169 |
+
@@ -43,4 +43,4 @@ if(FLANG_PLUGIN_SUPPORT)
|
170 |
+
export_executable_symbols_for_plugins(flang-new)
|
171 |
+
endif()
|
172 |
+
|
173 |
+
-install(TARGETS flang-new DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
174 |
+
+install(TARGETS flang-new DESTINATION "${FLANG_TOOLS_INSTALL_DIR}")
|
175 |
+
diff --git a/lld/cmake/modules/AddLLD.cmake b/lld/cmake/modules/AddLLD.cmake
|
176 |
+
index d3924f7243d4..318b41b73705 100644
|
177 |
+
--- a/lld/cmake/modules/AddLLD.cmake
|
178 |
+
+++ b/lld/cmake/modules/AddLLD.cmake
|
179 |
+
@@ -47,7 +47,7 @@ macro(add_lld_tool name)
|
180 |
+
get_target_export_arg(${name} LLD export_to_lldtargets)
|
181 |
+
install(TARGETS ${name}
|
182 |
+
${export_to_lldtargets}
|
183 |
+
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
184 |
+
+ RUNTIME DESTINATION "${LLD_TOOLS_INSTALL_DIR}"
|
185 |
+
COMPONENT ${name})
|
186 |
+
|
187 |
+
if(NOT CMAKE_CONFIGURATION_TYPES)
|
188 |
+
diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt
|
189 |
+
index 12628395680b..ee58ed439a3a 100644
|
190 |
+
--- a/lld/tools/lld/CMakeLists.txt
|
191 |
+
+++ b/lld/tools/lld/CMakeLists.txt
|
192 |
+
@@ -29,7 +29,7 @@ lld_target_link_libraries(lld
|
193 |
+
)
|
194 |
+
|
195 |
+
install(TARGETS lld
|
196 |
+
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
197 |
+
+ RUNTIME DESTINATION "${LLD_TOOLS_INSTALL_DIR}")
|
198 |
+
|
199 |
+
if(NOT LLD_SYMLINKS_TO_CREATE)
|
200 |
+
set(LLD_SYMLINKS_TO_CREATE
|
201 |
+
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
|
202 |
+
index d47a30f5e109..f0bbc0e50627 100644
|
203 |
+
--- a/lldb/cmake/modules/AddLLDB.cmake
|
204 |
+
+++ b/lldb/cmake/modules/AddLLDB.cmake
|
205 |
+
@@ -216,7 +216,7 @@ function(add_lldb_executable name)
|
206 |
+
endif()
|
207 |
+
|
208 |
+
if(ARG_GENERATE_INSTALL)
|
209 |
+
- set(install_dest bin)
|
210 |
+
+ set(install_dest "${LLVM_TOOLS_INSTALL_DIR}")
|
211 |
+
if(ARG_INSTALL_PREFIX)
|
212 |
+
set(install_dest ${ARG_INSTALL_PREFIX})
|
213 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/0003-fix-llvm-config.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
llvm/tools/llvm-config/llvm-config.cpp | 2 +-
|
2 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
3 |
+
|
4 |
+
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp
|
5 |
+
index e86eb2b44b10..04e00944f891 100644
|
6 |
+
--- a/llvm/tools/llvm-config/llvm-config.cpp
|
7 |
+
+++ b/llvm/tools/llvm-config/llvm-config.cpp
|
8 |
+
@@ -304,7 +304,7 @@ int main(int argc, char **argv) {
|
9 |
+
// bin dir).
|
10 |
+
sys::fs::make_absolute(CurrentPath);
|
11 |
+
CurrentExecPrefix =
|
12 |
+
- sys::path::parent_path(sys::path::parent_path(CurrentPath)).str();
|
13 |
+
+ sys::path::parent_path(sys::path::parent_path(sys::path::parent_path(CurrentPath))).str();
|
14 |
+
|
15 |
+
// Check to see if we are inside a development tree by comparing to possible
|
16 |
+
// locations (prefix style or CMake style).
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/0004-disable-libomp-aliases.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
openmp/runtime/src/CMakeLists.txt | 4 +++-
|
2 |
+
1 file changed, 3 insertions(+), 1 deletion(-)
|
3 |
+
|
4 |
+
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
|
5 |
+
index bb5822264514..340cef14df89 100644
|
6 |
+
--- a/openmp/runtime/src/CMakeLists.txt
|
7 |
+
+++ b/openmp/runtime/src/CMakeLists.txt
|
8 |
+
@@ -215,7 +215,7 @@ endif()
|
9 |
+
set(LIBOMP_INCLUDE_DIR ${CMAKE_CURRENT_BINARY_DIR} PARENT_SCOPE)
|
10 |
+
|
11 |
+
# Add symbolic links to libomp
|
12 |
+
-if(NOT WIN32)
|
13 |
+
+if(0)
|
14 |
+
add_custom_command(TARGET omp POST_BUILD
|
15 |
+
COMMAND ${CMAKE_COMMAND} -E create_symlink ${LIBOMP_LIB_FILE}
|
16 |
+
libgomp${LIBOMP_LIBRARY_SUFFIX}
|
17 |
+
@@ -367,6 +367,7 @@ if(WIN32)
|
18 |
+
install(TARGETS omp ${export_to_llvmexports} RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}")
|
19 |
+
install(TARGETS ${LIBOMP_IMP_LIB_TARGET} ARCHIVE DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
20 |
+
# Create aliases (regular copies) of the library for backwards compatibility
|
21 |
+
+ if(0)
|
22 |
+
set(LIBOMP_ALIASES "libiomp5md")
|
23 |
+
foreach(alias IN LISTS LIBOMP_ALIASES)
|
24 |
+
install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy \"${LIBOMP_LIB_FILE}\"
|
25 |
+
@@ -375,6 +376,7 @@ if(WIN32)
|
26 |
+
install(CODE "execute_process(COMMAND \"\${CMAKE_COMMAND}\" -E copy \"${LIBOMP_IMP_LIB_FILE}\"
|
27 |
+
\"${alias}${CMAKE_STATIC_LIBRARY_SUFFIX}\" WORKING_DIRECTORY \"${outdir}\")")
|
28 |
+
endforeach()
|
29 |
+
+ endif()
|
30 |
+
else()
|
31 |
+
|
32 |
+
install(TARGETS omp ${export_to_llvmexports} ${LIBOMP_INSTALL_KIND} DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/0005-remove-numpy.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
mlir/cmake/modules/MLIRDetectPythonEnv.cmake | 2 +-
|
2 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
3 |
+
|
4 |
+
diff --git a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
|
5 |
+
index 0a486c1bbb54..c07c55b1e17a 100644
|
6 |
+
--- a/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
|
7 |
+
+++ b/mlir/cmake/modules/MLIRDetectPythonEnv.cmake
|
8 |
+
@@ -19,7 +19,7 @@ macro(mlir_configure_python_dev_packages)
|
9 |
+
set(_python_development_component Development.Module)
|
10 |
+
|
11 |
+
find_package(Python3 ${LLVM_MINIMUM_PYTHON_VERSION}
|
12 |
+
- COMPONENTS Interpreter ${_python_development_component} NumPy REQUIRED)
|
13 |
+
+ COMPONENTS Interpreter ${_python_development_component} REQUIRED)
|
14 |
+
unset(_python_development_component)
|
15 |
+
message(STATUS "Found python include dirs: ${Python3_INCLUDE_DIRS}")
|
16 |
+
message(STATUS "Found python libraries: ${Python3_LIBRARIES}")
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/0006-create-destination-mlir-directory.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
mlir/python/CMakeLists.txt | 2 ++
|
2 |
+
1 file changed, 2 insertions(+)
|
3 |
+
|
4 |
+
diff --git a/mlir/python/CMakeLists.txt b/mlir/python/CMakeLists.txt
|
5 |
+
index 50fbca38a08f..957a6722c21c 100644
|
6 |
+
--- a/mlir/python/CMakeLists.txt
|
7 |
+
+++ b/mlir/python/CMakeLists.txt
|
8 |
+
@@ -527,6 +527,8 @@ add_mlir_python_common_capi_library(MLIRPythonCAPI
|
9 |
+
${_ADDL_TEST_SOURCES}
|
10 |
+
)
|
11 |
+
|
12 |
+
+file(MAKE_DIRECTORY "${MLIR_BINARY_DIR}/python_packages/mlir_core/mlir/_mlir_libs")
|
13 |
+
+
|
14 |
+
################################################################################
|
15 |
+
# Custom targets.
|
16 |
+
################################################################################
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/0007-fix-compiler-rt-warnings.patch
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
compiler-rt/lib/asan/CMakeLists.txt | 2 +-
|
2 |
+
compiler-rt/lib/interception/CMakeLists.txt | 2 +-
|
3 |
+
compiler-rt/lib/ubsan/CMakeLists.txt | 2 +-
|
4 |
+
3 files changed, 3 insertions(+), 3 deletions(-)
|
5 |
+
|
6 |
+
diff --git a/compiler-rt/lib/asan/CMakeLists.txt b/compiler-rt/lib/asan/CMakeLists.txt
|
7 |
+
index 1bfc6f0c5e37..f35c385c379a 100644
|
8 |
+
--- a/compiler-rt/lib/asan/CMakeLists.txt
|
9 |
+
+++ b/compiler-rt/lib/asan/CMakeLists.txt
|
10 |
+
@@ -92,7 +92,7 @@ append_rtti_flag(OFF ASAN_CFLAGS)
|
11 |
+
|
12 |
+
# Silence warnings in system headers with MSVC.
|
13 |
+
if(NOT CLANG_CL)
|
14 |
+
- append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" ASAN_CFLAGS)
|
15 |
+
+ append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external;/external:W0;/external:anglebrackets" ASAN_CFLAGS)
|
16 |
+
endif()
|
17 |
+
|
18 |
+
# Too many existing bugs, needs cleanup.
|
19 |
+
diff --git a/compiler-rt/lib/interception/CMakeLists.txt b/compiler-rt/lib/interception/CMakeLists.txt
|
20 |
+
index 3242cf50e35f..abe9229340be 100644
|
21 |
+
--- a/compiler-rt/lib/interception/CMakeLists.txt
|
22 |
+
+++ b/compiler-rt/lib/interception/CMakeLists.txt
|
23 |
+
@@ -21,7 +21,7 @@ append_rtti_flag(OFF INTERCEPTION_CFLAGS)
|
24 |
+
|
25 |
+
# Silence warnings in system headers with MSVC.
|
26 |
+
if(NOT CLANG_CL)
|
27 |
+
- append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" INTERCEPTION_CFLAGS)
|
28 |
+
+ append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external;/external:W0;/external:anglebrackets" INTERCEPTION_CFLAGS)
|
29 |
+
endif()
|
30 |
+
|
31 |
+
add_compiler_rt_object_libraries(RTInterception
|
32 |
+
diff --git a/compiler-rt/lib/ubsan/CMakeLists.txt b/compiler-rt/lib/ubsan/CMakeLists.txt
|
33 |
+
index 520a024fbede..75b0b12b9da2 100644
|
34 |
+
--- a/compiler-rt/lib/ubsan/CMakeLists.txt
|
35 |
+
+++ b/compiler-rt/lib/ubsan/CMakeLists.txt
|
36 |
+
@@ -57,7 +57,7 @@ append_list_if(SANITIZER_CAN_USE_CXXABI -DUBSAN_CAN_USE_CXXABI UBSAN_CXXFLAGS)
|
37 |
+
|
38 |
+
# Silence warnings in system headers with MSVC.
|
39 |
+
if(NOT CLANG_CL)
|
40 |
+
- append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external /external:W0 /external:anglebrackets" UBSAN_CXXFLAGS)
|
41 |
+
+ append_list_if(COMPILER_RT_HAS_EXTERNAL_FLAG "/experimental:external;/external:W0;/external:anglebrackets" UBSAN_CXXFLAGS)
|
42 |
+
endif()
|
43 |
+
|
44 |
+
set(UBSAN_LINK_FLAGS ${SANITIZER_COMMON_LINK_FLAGS})
|
45 |
+
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/0008-add-missing-case.patch
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/clang/lib/Sema/SemaCodeComplete.cpp b/clang/lib/Sema/SemaCodeComplete.cpp
|
2 |
+
index b5d29b2e9..b4fc088a1 100644
|
3 |
+
--- a/clang/lib/Sema/SemaCodeComplete.cpp
|
4 |
+
+++ b/clang/lib/Sema/SemaCodeComplete.cpp
|
5 |
+
@@ -4088,6 +4088,9 @@ CXCursorKind clang::getCursorKindForDecl(const Decl *D) {
|
6 |
+
case Decl::Concept:
|
7 |
+
return CXCursor_ConceptDecl;
|
8 |
+
|
9 |
+
+ case Decl::LinkageSpec:
|
10 |
+
+ return CXCursor_LinkageSpec;
|
11 |
+
+
|
12 |
+
default:
|
13 |
+
if (const auto *TD = dyn_cast<TagDecl>(D)) {
|
14 |
+
switch (TD->getTagKind()) {
|
15 |
+
diff --git a/clang/test/Index/recursive-cxx-member-calls.cpp b/clang/test/Index/recursive-cxx-member-calls.cpp
|
16 |
+
index 09f3f4141..be908c506 100644
|
17 |
+
--- a/clang/test/Index/recursive-cxx-member-calls.cpp
|
18 |
+
+++ b/clang/test/Index/recursive-cxx-member-calls.cpp
|
19 |
+
@@ -216,9 +216,9 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) {
|
20 |
+
// CHECK-tokens: Punctuation: "}" [4:63 - 4:64] ClassTemplate=pair:4:44 (Definition)
|
21 |
+
// CHECK-tokens: Punctuation: ";" [4:64 - 4:65] Namespace=std:3:11 (Definition)
|
22 |
+
// CHECK-tokens: Punctuation: "}" [5:1 - 5:2] Namespace=std:3:11 (Definition)
|
23 |
+
-// CHECK-tokens: Keyword: "extern" [6:1 - 6:7]
|
24 |
+
-// CHECK-tokens: Literal: ""C"" [6:8 - 6:11] UnexposedDecl=:6:8 (Definition)
|
25 |
+
-// CHECK-tokens: Punctuation: "{" [6:12 - 6:13] UnexposedDecl=:6:8 (Definition)
|
26 |
+
+// CHECK-tokens: Keyword: "extern" [6:1 - 6:7] LinkageSpec=:6:8 (Definition)
|
27 |
+
+// CHECK-tokens: Literal: ""C"" [6:8 - 6:11] LinkageSpec=:6:8 (Definition)
|
28 |
+
+// CHECK-tokens: Punctuation: "{" [6:12 - 6:13] LinkageSpec=:6:8 (Definition)
|
29 |
+
// CHECK-tokens: Keyword: "int" [7:3 - 7:6] FunctionDecl=memcmp:7:7
|
30 |
+
// CHECK-tokens: Identifier: "memcmp" [7:7 - 7:13] FunctionDecl=memcmp:7:7
|
31 |
+
// CHECK-tokens: Punctuation: "(" [7:13 - 7:14] FunctionDecl=memcmp:7:7
|
32 |
+
@@ -232,7 +232,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) {
|
33 |
+
// CHECK-tokens: Punctuation: "," [7:40 - 7:41] FunctionDecl=memcmp:7:7
|
34 |
+
// CHECK-tokens: Identifier: "size_t" [7:42 - 7:48] TypeRef=size_t:2:25
|
35 |
+
// CHECK-tokens: Punctuation: ")" [7:48 - 7:49] FunctionDecl=memcmp:7:7
|
36 |
+
-// CHECK-tokens: Punctuation: ";" [7:49 - 7:50] UnexposedDecl=:6:8 (Definition)
|
37 |
+
+// CHECK-tokens: Punctuation: ";" [7:49 - 7:50] LinkageSpec=:6:8 (Definition)
|
38 |
+
// CHECK-tokens: Identifier: "size_t" [8:3 - 8:9] TypeRef=size_t:2:25
|
39 |
+
// CHECK-tokens: Identifier: "strlen" [8:10 - 8:16] FunctionDecl=strlen:8:10
|
40 |
+
// CHECK-tokens: Punctuation: "(" [8:16 - 8:17] FunctionDecl=strlen:8:10
|
41 |
+
@@ -1532,7 +1532,7 @@ AttributeList::Kind AttributeList::getKind(const IdentifierInfo * Name) {
|
42 |
+
// CHECK: 4:20: TemplateTypeParameter=_T1:4:20 (Definition) Extent=[4:14 - 4:23]
|
43 |
+
// CHECK: 4:31: TemplateTypeParameter=_T2:4:31 (Definition) Extent=[4:25 - 4:34]
|
44 |
+
// CHECK: 4:55: FieldDecl=second:4:55 (Definition) Extent=[4:51 - 4:61]
|
45 |
+
-// CHECK: 6:8: UnexposedDecl=:6:8 (Definition) Extent=[6:1 - 9:2]
|
46 |
+
+// CHECK: 6:8: LinkageSpec=:6:8 (Definition) Extent=[6:1 - 9:2]
|
47 |
+
// CHECK: 7:7: FunctionDecl=memcmp:7:7 Extent=[7:3 - 7:49]
|
48 |
+
// CHECK: 7:26: ParmDecl=:7:26 (Definition) Extent=[7:14 - 7:26]
|
49 |
+
// CHECK: 7:40: ParmDecl=:7:40 (Definition) Extent=[7:28 - 7:40]
|
50 |
+
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
|
51 |
+
index 9d66a22f3..2c0c9cb8e 100644
|
52 |
+
--- a/clang/tools/c-index-test/c-index-test.c
|
53 |
+
+++ b/clang/tools/c-index-test/c-index-test.c
|
54 |
+
@@ -1838,6 +1838,8 @@ static enum CXChildVisitResult PrintMangledName(CXCursor cursor, CXCursor p,
|
55 |
+
CXString MangledName;
|
56 |
+
if (clang_isUnexposed(clang_getCursorKind(cursor)))
|
57 |
+
return CXChildVisit_Recurse;
|
58 |
+
+ if (clang_getCursorKind(cursor) == CXCursor_LinkageSpec)
|
59 |
+
+ return CXChildVisit_Recurse;
|
60 |
+
PrintCursor(cursor, NULL);
|
61 |
+
MangledName = clang_Cursor_getMangling(cursor);
|
62 |
+
printf(" [mangled=%s]\n", clang_getCString(MangledName));
|
63 |
+
@@ -1853,6 +1855,8 @@ static enum CXChildVisitResult PrintManglings(CXCursor cursor, CXCursor p,
|
64 |
+
return CXChildVisit_Recurse;
|
65 |
+
if (!clang_isDeclaration(clang_getCursorKind(cursor)))
|
66 |
+
return CXChildVisit_Recurse;
|
67 |
+
+ if (clang_getCursorKind(cursor) == CXCursor_LinkageSpec)
|
68 |
+
+ return CXChildVisit_Recurse;
|
69 |
+
if (clang_getCursorKind(cursor) == CXCursor_ParmDecl)
|
70 |
+
return CXChildVisit_Continue;
|
71 |
+
PrintCursor(cursor, NULL);
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/clang_usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package clang provides CMake targets:
|
2 |
+
|
3 |
+
find_package(Clang CONFIG REQUIRED)
|
4 |
+
target_include_directories(main PRIVATE ${CLANG_INCLUDE_DIRS})
|
5 |
+
target_link_libraries(main PRIVATE clangBasic clangLex clangParse clangAST ...)
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/flang_usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package flang provides CMake targets:
|
2 |
+
|
3 |
+
find_package(Flang CONFIG REQUIRED)
|
4 |
+
target_include_directories(main PRIVATE ${FLANG_INCLUDE_DIRS})
|
5 |
+
target_link_libraries(main PRIVATE flangFrontend flangFrontendTool ...)
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/lld_usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package lld provides CMake targets:
|
2 |
+
|
3 |
+
find_package(LLD CONFIG REQUIRED)
|
4 |
+
target_include_directories(main PRIVATE ${LLD_INCLUDE_DIRS})
|
5 |
+
target_link_libraries(main PRIVATE lldCommon lldCore lldDriver ...)
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/llvm_usage
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package llvm provides CMake targets:
|
2 |
+
|
3 |
+
find_package(LLVM CONFIG REQUIRED)
|
4 |
+
|
5 |
+
list(APPEND CMAKE_MODULE_PATH "${LLVM_CMAKE_DIR}")
|
6 |
+
include(HandleLLVMOptions)
|
7 |
+
add_definitions(${LLVM_DEFINITIONS})
|
8 |
+
|
9 |
+
target_include_directories(main PRIVATE ${LLVM_INCLUDE_DIRS})
|
10 |
+
|
11 |
+
# Find the libraries that correspond to the LLVM components that we wish to use
|
12 |
+
llvm_map_components_to_libnames(llvm_libs Support Core IRReader ...)
|
13 |
+
|
14 |
+
# Link against LLVM libraries
|
15 |
+
target_link_libraries(main PRIVATE ${llvm_libs})
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/mlir_usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package lld provides CMake targets:
|
2 |
+
|
3 |
+
find_package(MLIR CONFIG REQUIRED)
|
4 |
+
target_include_directories(main PRIVATE ${MLIR_INCLUDE_DIRS})
|
5 |
+
target_link_libraries(main PRIVATE MLIRIR MLIRParser MLIRPass MLIRSupport ...)
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/portfile.cmake
ADDED
@@ -0,0 +1,399 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO llvm/llvm-project
|
6 |
+
REF "llvmorg-${VERSION}"
|
7 |
+
SHA512 362ddb94fdd22d05bd11c950f1711eafbd47424f6da0b1b061da012ef1b39dd8f7efeb91b53c036ea0708aa3845893fe39d1fb529ac3b928df738b88717d1aee
|
8 |
+
HEAD_REF main
|
9 |
+
PATCHES
|
10 |
+
0001-fix-install-package-dir.patch
|
11 |
+
0002-fix-tools-install-dir.patch
|
12 |
+
0003-fix-llvm-config.patch
|
13 |
+
0004-disable-libomp-aliases.patch
|
14 |
+
0005-remove-numpy.patch
|
15 |
+
0006-create-destination-mlir-directory.patch
|
16 |
+
0007-fix-compiler-rt-warnings.patch # fixed in upstream
|
17 |
+
0008-add-missing-case.patch # From upstream https://github.com/llvm/llvm-project/pull/72401
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_check_features(
|
21 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
22 |
+
FEATURES
|
23 |
+
tools LLVM_BUILD_TOOLS
|
24 |
+
tools LLVM_INCLUDE_TOOLS
|
25 |
+
utils LLVM_BUILD_UTILS
|
26 |
+
utils LLVM_INCLUDE_UTILS
|
27 |
+
utils LLVM_INSTALL_UTILS
|
28 |
+
enable-assertions LLVM_ENABLE_ASSERTIONS
|
29 |
+
enable-rtti LLVM_ENABLE_RTTI
|
30 |
+
enable-ffi LLVM_ENABLE_FFI
|
31 |
+
enable-terminfo LLVM_ENABLE_TERMINFO
|
32 |
+
enable-ios COMPILER_RT_ENABLE_IOS
|
33 |
+
enable-eh LLVM_ENABLE_EH
|
34 |
+
enable-bindings LLVM_ENABLE_BINDINGS
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_cmake_get_vars(cmake_vars_file)
|
38 |
+
include("${cmake_vars_file}")
|
39 |
+
|
40 |
+
# LLVM generates CMake error due to Visual Studio version 16.4 is known to miscompile part of LLVM.
|
41 |
+
# LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON disables this error.
|
42 |
+
# See https://developercommunity.visualstudio.com/content/problem/845933/miscompile-boolean-condition-deduced-to-be-always.html
|
43 |
+
# and thread "[llvm-dev] Longstanding failing tests - clang-tidy, MachO, Polly" on llvm-dev Jan 21-23 2020.
|
44 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND VCPKG_DETECTED_MSVC_VERSION LESS "1925")
|
45 |
+
list(APPEND FEATURE_OPTIONS
|
46 |
+
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
|
47 |
+
)
|
48 |
+
endif()
|
49 |
+
|
50 |
+
# Force enable or disable external libraries
|
51 |
+
set(llvm_external_libraries
|
52 |
+
zlib
|
53 |
+
libxml2
|
54 |
+
zstd
|
55 |
+
)
|
56 |
+
foreach(external_library IN LISTS llvm_external_libraries)
|
57 |
+
string(TOLOWER "enable-${external_library}" feature_name)
|
58 |
+
string(TOUPPER "LLVM_ENABLE_${external_library}" define_name)
|
59 |
+
if(feature_name IN_LIST FEATURES)
|
60 |
+
list(APPEND FEATURE_OPTIONS
|
61 |
+
-D${define_name}=FORCE_ON
|
62 |
+
)
|
63 |
+
else()
|
64 |
+
list(APPEND FEATURE_OPTIONS
|
65 |
+
-D${define_name}=OFF
|
66 |
+
)
|
67 |
+
endif()
|
68 |
+
endforeach()
|
69 |
+
|
70 |
+
# LLVM_ABI_BREAKING_CHECKS can be WITH_ASSERTS (default), FORCE_ON or FORCE_OFF.
|
71 |
+
# By default in LLVM, abi-breaking checks are enabled if assertions are enabled.
|
72 |
+
# however, this breaks linking with the debug versions, since the option is
|
73 |
+
# baked into the header files; thus, we always turn off LLVM_ABI_BREAKING_CHECKS
|
74 |
+
# unless the user asks for it
|
75 |
+
if("enable-abi-breaking-checks" IN_LIST FEATURES)
|
76 |
+
# Force enable abi-breaking checks.
|
77 |
+
list(APPEND FEATURE_OPTIONS
|
78 |
+
-DLLVM_ABI_BREAKING_CHECKS=FORCE_ON
|
79 |
+
)
|
80 |
+
else()
|
81 |
+
# Force disable abi-breaking checks.
|
82 |
+
list(APPEND FEATURE_OPTIONS
|
83 |
+
-DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
|
84 |
+
)
|
85 |
+
endif()
|
86 |
+
|
87 |
+
set(LLVM_ENABLE_PROJECTS)
|
88 |
+
if("bolt" IN_LIST FEATURES)
|
89 |
+
list(APPEND LLVM_ENABLE_PROJECTS "bolt")
|
90 |
+
list(APPEND FEATURE_OPTIONS
|
91 |
+
-DBOLT_TOOLS_INSTALL_DIR:PATH=tools/llvm
|
92 |
+
)
|
93 |
+
endif()
|
94 |
+
if("clang" IN_LIST FEATURES OR "clang-tools-extra" IN_LIST FEATURES)
|
95 |
+
list(APPEND LLVM_ENABLE_PROJECTS "clang")
|
96 |
+
list(APPEND FEATURE_OPTIONS
|
97 |
+
-DCLANG_INSTALL_PACKAGE_DIR:PATH=share/clang
|
98 |
+
-DCLANG_TOOLS_INSTALL_DIR:PATH=tools/llvm
|
99 |
+
# Disable ARCMT
|
100 |
+
-DCLANG_ENABLE_ARCMT=OFF
|
101 |
+
# Disable static analyzer
|
102 |
+
-DCLANG_ENABLE_STATIC_ANALYZER=OFF
|
103 |
+
)
|
104 |
+
# 1) LLVM/Clang tools are relocated from ./bin/ to ./tools/llvm/ (CLANG_TOOLS_INSTALL_DIR=tools/llvm)
|
105 |
+
# 2) Clang resource files should be relocated from lib/clang/<major_version> to ../tools/llvm/lib/clang/<major_version>
|
106 |
+
string(REGEX MATCH "^[0-9]+" CLANG_VERSION_MAJOR ${VERSION})
|
107 |
+
list(APPEND FEATURE_OPTIONS -DCLANG_RESOURCE_DIR=lib/clang/${CLANG_VERSION_MAJOR})
|
108 |
+
endif()
|
109 |
+
if("clang-tools-extra" IN_LIST FEATURES)
|
110 |
+
list(APPEND LLVM_ENABLE_PROJECTS "clang-tools-extra")
|
111 |
+
endif()
|
112 |
+
if("compiler-rt" IN_LIST FEATURES)
|
113 |
+
list(APPEND LLVM_ENABLE_PROJECTS "compiler-rt")
|
114 |
+
endif()
|
115 |
+
if("flang" IN_LIST FEATURES)
|
116 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
117 |
+
message(FATAL_ERROR "Building Flang with MSVC is not supported on x86. Disable it until issues are fixed.")
|
118 |
+
endif()
|
119 |
+
list(APPEND LLVM_ENABLE_PROJECTS "flang")
|
120 |
+
list(APPEND FEATURE_OPTIONS
|
121 |
+
-DFLANG_INSTALL_PACKAGE_DIR:PATH=share/flang
|
122 |
+
-DFLANG_TOOLS_INSTALL_DIR:PATH=tools/llvm
|
123 |
+
)
|
124 |
+
list(APPEND FEATURE_OPTIONS
|
125 |
+
# Flang requires C++17
|
126 |
+
-DCMAKE_CXX_STANDARD=17
|
127 |
+
)
|
128 |
+
endif()
|
129 |
+
if("libclc" IN_LIST FEATURES)
|
130 |
+
list(APPEND LLVM_ENABLE_PROJECTS "libclc")
|
131 |
+
endif()
|
132 |
+
if("lld" IN_LIST FEATURES)
|
133 |
+
list(APPEND LLVM_ENABLE_PROJECTS "lld")
|
134 |
+
list(APPEND FEATURE_OPTIONS
|
135 |
+
-DLLD_INSTALL_PACKAGE_DIR:PATH=share/lld
|
136 |
+
-DLLD_TOOLS_INSTALL_DIR:PATH=tools/llvm
|
137 |
+
)
|
138 |
+
endif()
|
139 |
+
if("lldb" IN_LIST FEATURES)
|
140 |
+
list(APPEND LLVM_ENABLE_PROJECTS "lldb")
|
141 |
+
list(APPEND FEATURE_OPTIONS
|
142 |
+
-DLLDB_ENABLE_CURSES=OFF
|
143 |
+
)
|
144 |
+
endif()
|
145 |
+
if("mlir" IN_LIST FEATURES)
|
146 |
+
list(APPEND LLVM_ENABLE_PROJECTS "mlir")
|
147 |
+
list(APPEND FEATURE_OPTIONS
|
148 |
+
-DMLIR_INSTALL_PACKAGE_DIR:PATH=share/mlir
|
149 |
+
-DMLIR_TOOLS_INSTALL_DIR:PATH=tools/llvm
|
150 |
+
-DMLIR_INSTALL_AGGREGATE_OBJECTS=OFF # Disables installation of object files in lib/objects-{CMAKE_BUILD_TYPE}.
|
151 |
+
)
|
152 |
+
if("enable-mlir-python-bindings" IN_LIST FEATURES)
|
153 |
+
list(APPEND FEATURE_OPTIONS
|
154 |
+
-DMLIR_ENABLE_BINDINGS_PYTHON=ON
|
155 |
+
"-Dpybind11_DIR=${CURRENT_INSTALLED_DIR}/share/pybind11"
|
156 |
+
)
|
157 |
+
endif()
|
158 |
+
endif()
|
159 |
+
if("openmp" IN_LIST FEATURES)
|
160 |
+
list(APPEND LLVM_ENABLE_PROJECTS "openmp")
|
161 |
+
list(APPEND FEATURE_OPTIONS
|
162 |
+
-DLIBOMP_INSTALL_ALIASES=OFF
|
163 |
+
-DOPENMP_ENABLE_LIBOMPTARGET=OFF # Currently libomptarget cannot be compiled on Windows or MacOS X.
|
164 |
+
-DOPENMP_ENABLE_OMPT_TOOLS=OFF # Currently tools are not tested well on Windows or MacOS X.
|
165 |
+
)
|
166 |
+
# Perl is required for the OpenMP run-time
|
167 |
+
vcpkg_find_acquire_program(PERL)
|
168 |
+
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
169 |
+
vcpkg_add_to_path(${PERL_PATH})
|
170 |
+
# Skip post-build check
|
171 |
+
set(VCPKG_POLICY_SKIP_DUMPBIN_CHECKS enabled)
|
172 |
+
endif()
|
173 |
+
if("polly" IN_LIST FEATURES)
|
174 |
+
list(APPEND LLVM_ENABLE_PROJECTS "polly")
|
175 |
+
list(APPEND FEATURE_OPTIONS
|
176 |
+
-DPOLLY_INSTALL_PACKAGE_DIR:PATH=share/polly
|
177 |
+
)
|
178 |
+
endif()
|
179 |
+
|
180 |
+
set(LLVM_ENABLE_RUNTIMES)
|
181 |
+
if("libc" IN_LIST FEATURES)
|
182 |
+
list(APPEND LLVM_ENABLE_RUNTIMES "libc")
|
183 |
+
endif()
|
184 |
+
if("libcxx" IN_LIST FEATURES)
|
185 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" AND VCPKG_DETECTED_MSVC_VERSION LESS "1914")
|
186 |
+
# libcxx supports being built with clang-cl, but not with MSVC’s cl.exe, as cl doesn’t support the #include_next extension.
|
187 |
+
# Furthermore, VS 2017 or newer (19.14) is required.
|
188 |
+
# More info: https://releases.llvm.org/17.0.1/projects/libcxx/docs/BuildingLibcxx.html#support-for-windows
|
189 |
+
message(FATAL_ERROR "libcxx requiries MSVC 19.14 or newer.")
|
190 |
+
endif()
|
191 |
+
list(APPEND LLVM_ENABLE_RUNTIMES "libcxx")
|
192 |
+
endif()
|
193 |
+
if("libcxxabi" IN_LIST FEATURES)
|
194 |
+
list(APPEND LLVM_ENABLE_RUNTIMES "libcxxabi")
|
195 |
+
endif()
|
196 |
+
if("libunwind" IN_LIST FEATURES)
|
197 |
+
list(APPEND LLVM_ENABLE_RUNTIMES "libunwind")
|
198 |
+
endif()
|
199 |
+
if("pstl" IN_LIST FEATURES)
|
200 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
201 |
+
message(FATAL_ERROR "Building pstl with MSVC is not supported.")
|
202 |
+
endif()
|
203 |
+
list(APPEND LLVM_ENABLE_RUNTIMES "pstl")
|
204 |
+
endif()
|
205 |
+
|
206 |
+
# this is for normal targets
|
207 |
+
set(known_llvm_targets
|
208 |
+
AArch64
|
209 |
+
AMDGPU
|
210 |
+
ARM
|
211 |
+
AVR
|
212 |
+
BPF
|
213 |
+
Hexagon
|
214 |
+
Lanai
|
215 |
+
LoongArch
|
216 |
+
Mips
|
217 |
+
MSP430
|
218 |
+
NVPTX
|
219 |
+
PowerPC
|
220 |
+
RISCV
|
221 |
+
Sparc
|
222 |
+
SystemZ
|
223 |
+
VE
|
224 |
+
WebAssembly
|
225 |
+
X86
|
226 |
+
XCore
|
227 |
+
)
|
228 |
+
|
229 |
+
set(LLVM_TARGETS_TO_BUILD)
|
230 |
+
foreach(llvm_target IN LISTS known_llvm_targets)
|
231 |
+
string(TOLOWER "target-${llvm_target}" feature_name)
|
232 |
+
if(feature_name IN_LIST FEATURES)
|
233 |
+
list(APPEND LLVM_TARGETS_TO_BUILD "${llvm_target}")
|
234 |
+
endif()
|
235 |
+
endforeach()
|
236 |
+
|
237 |
+
# this is for experimental targets
|
238 |
+
set(known_llvm_experimental_targets
|
239 |
+
ARC
|
240 |
+
CSKY
|
241 |
+
DirectX
|
242 |
+
M68k
|
243 |
+
SPIRV
|
244 |
+
Xtensa
|
245 |
+
)
|
246 |
+
|
247 |
+
set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD)
|
248 |
+
foreach(llvm_target IN LISTS known_llvm_experimental_targets)
|
249 |
+
string(TOLOWER "target-${llvm_target}" feature_name)
|
250 |
+
if(feature_name IN_LIST FEATURES)
|
251 |
+
list(APPEND LLVM_EXPERIMENTAL_TARGETS_TO_BUILD "${llvm_target}")
|
252 |
+
endif()
|
253 |
+
endforeach()
|
254 |
+
|
255 |
+
vcpkg_find_acquire_program(PYTHON3)
|
256 |
+
get_filename_component(PYTHON3_DIR ${PYTHON3} DIRECTORY)
|
257 |
+
vcpkg_add_to_path("${PYTHON3_DIR}")
|
258 |
+
|
259 |
+
file(REMOVE "${SOURCE_PATH}/llvm/cmake/modules/Findzstd.cmake")
|
260 |
+
|
261 |
+
if("${LLVM_ENABLE_RUNTIMES}" STREQUAL "")
|
262 |
+
list(APPEND FEATURE_OPTIONS
|
263 |
+
-DLLVM_INCLUDE_RUNTIMES=OFF
|
264 |
+
-DLLVM_BUILD_RUNTIMES=OFF
|
265 |
+
-DLLVM_BUILD_RUNTIME=OFF
|
266 |
+
)
|
267 |
+
endif()
|
268 |
+
|
269 |
+
# At least one target must be specified, otherwise default to "all".
|
270 |
+
if("${LLVM_TARGETS_TO_BUILD}" STREQUAL "")
|
271 |
+
set(LLVM_TARGETS_TO_BUILD "all")
|
272 |
+
endif()
|
273 |
+
|
274 |
+
vcpkg_cmake_configure(
|
275 |
+
SOURCE_PATH "${SOURCE_PATH}/llvm"
|
276 |
+
OPTIONS
|
277 |
+
-DLLVM_INCLUDE_EXAMPLES=OFF
|
278 |
+
-DLLVM_BUILD_EXAMPLES=OFF
|
279 |
+
-DLLVM_INCLUDE_TESTS=OFF
|
280 |
+
-DLLVM_BUILD_TESTS=OFF
|
281 |
+
-DLLVM_INCLUDE_BENCHMARKS=OFF
|
282 |
+
-DLLVM_BUILD_BENCHMARKS=OFF
|
283 |
+
# Force TableGen to be built with optimization. This will significantly improve build time.
|
284 |
+
-DLLVM_OPTIMIZED_TABLEGEN=ON
|
285 |
+
-DPACKAGE_VERSION=${VERSION}
|
286 |
+
# Limit the maximum number of concurrent link jobs to 1. This should fix low amount of memory issue for link.
|
287 |
+
-DLLVM_PARALLEL_LINK_JOBS=1
|
288 |
+
-DLLVM_INSTALL_PACKAGE_DIR:PATH=share/llvm
|
289 |
+
-DLLVM_TOOLS_INSTALL_DIR:PATH=tools/llvm
|
290 |
+
"-DLLVM_ENABLE_PROJECTS=${LLVM_ENABLE_PROJECTS}"
|
291 |
+
"-DLLVM_ENABLE_RUNTIMES=${LLVM_ENABLE_RUNTIMES}"
|
292 |
+
"-DLLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD}"
|
293 |
+
"-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}"
|
294 |
+
${FEATURE_OPTIONS}
|
295 |
+
MAYBE_UNUSED_VARIABLES
|
296 |
+
COMPILER_RT_ENABLE_IOS
|
297 |
+
)
|
298 |
+
|
299 |
+
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
300 |
+
|
301 |
+
function(llvm_cmake_package_config_fixup package_name)
|
302 |
+
cmake_parse_arguments("arg" "DO_NOT_DELETE_PARENT_CONFIG_PATH" "FEATURE_NAME;CONFIG_PATH" "" ${ARGN})
|
303 |
+
if(NOT DEFINED arg_FEATURE_NAME)
|
304 |
+
set(arg_FEATURE_NAME ${package_name})
|
305 |
+
endif()
|
306 |
+
if("${arg_FEATURE_NAME}" STREQUAL "${PORT}" OR "${arg_FEATURE_NAME}" IN_LIST FEATURES)
|
307 |
+
set(args)
|
308 |
+
list(APPEND args PACKAGE_NAME "${package_name}")
|
309 |
+
if(arg_DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
310 |
+
list(APPEND args "DO_NOT_DELETE_PARENT_CONFIG_PATH")
|
311 |
+
endif()
|
312 |
+
if(arg_CONFIG_PATH)
|
313 |
+
list(APPEND args "CONFIG_PATH" "${arg_CONFIG_PATH}")
|
314 |
+
endif()
|
315 |
+
vcpkg_cmake_config_fixup(${args})
|
316 |
+
file(INSTALL "${SOURCE_PATH}/${arg_FEATURE_NAME}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${package_name}" RENAME copyright)
|
317 |
+
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${package_name}_usage")
|
318 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/${package_name}_usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${package_name}" RENAME usage)
|
319 |
+
endif()
|
320 |
+
endif()
|
321 |
+
endfunction()
|
322 |
+
|
323 |
+
llvm_cmake_package_config_fixup("clang" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
324 |
+
llvm_cmake_package_config_fixup("flang" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
325 |
+
llvm_cmake_package_config_fixup("lld" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
326 |
+
llvm_cmake_package_config_fixup("mlir" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
327 |
+
llvm_cmake_package_config_fixup("polly" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
328 |
+
llvm_cmake_package_config_fixup("ParallelSTL" FEATURE_NAME "pstl" DO_NOT_DELETE_PARENT_CONFIG_PATH CONFIG_PATH "lib/cmake/ParallelSTL")
|
329 |
+
llvm_cmake_package_config_fixup("llvm")
|
330 |
+
|
331 |
+
set(empty_dirs)
|
332 |
+
|
333 |
+
if("clang-tools-extra" IN_LIST FEATURES)
|
334 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/clang-tidy/plugin")
|
335 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/clang-tidy/misc/ConfusableTable")
|
336 |
+
endif()
|
337 |
+
|
338 |
+
if("pstl" IN_LIST FEATURES)
|
339 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/lib/cmake")
|
340 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
341 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
|
342 |
+
endif()
|
343 |
+
endif()
|
344 |
+
|
345 |
+
if("flang" IN_LIST FEATURES)
|
346 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/CMakeFiles")
|
347 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Config")
|
348 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/CMakeFiles")
|
349 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/CodeGen/CMakeFiles")
|
350 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/Dialect/CMakeFiles")
|
351 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/HLFIR/CMakeFiles")
|
352 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/Transforms/CMakeFiles")
|
353 |
+
endif()
|
354 |
+
|
355 |
+
if(empty_dirs)
|
356 |
+
foreach(empty_dir IN LISTS empty_dirs)
|
357 |
+
if(NOT EXISTS "${empty_dir}")
|
358 |
+
message(WARNING "Directory '${empty_dir}' does not exist. Please remove it from the list of empty directories.")
|
359 |
+
else()
|
360 |
+
file(GLOB_RECURSE files_in_dir "${empty_dir}/*")
|
361 |
+
if(files_in_dir)
|
362 |
+
message(WARNING "Directory '${empty_dir}' is not empty. Please remove it from the list of empty directories.")
|
363 |
+
else()
|
364 |
+
file(REMOVE_RECURSE "${empty_dir}")
|
365 |
+
endif()
|
366 |
+
endif()
|
367 |
+
endforeach()
|
368 |
+
endif()
|
369 |
+
|
370 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
371 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/bin/lib")
|
372 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
373 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/bin/lib" "${CURRENT_PACKAGES_DIR}/tools/${PORT}/lib")
|
374 |
+
endif()
|
375 |
+
|
376 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
377 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
378 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
379 |
+
"${CURRENT_PACKAGES_DIR}/debug/tools"
|
380 |
+
)
|
381 |
+
endif()
|
382 |
+
|
383 |
+
if("mlir" IN_LIST FEATURES)
|
384 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/mlir/MLIRConfig.cmake" "set(MLIR_MAIN_SRC_DIR \"${SOURCE_PATH}/mlir\")" "")
|
385 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/mlir/MLIRConfig.cmake" "${CURRENT_BUILDTREES_DIR}" "\${MLIR_INCLUDE_DIRS}")
|
386 |
+
endif()
|
387 |
+
|
388 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
389 |
+
# LLVM still generates a few DLLs in the static build:
|
390 |
+
# * LLVM-C.dll
|
391 |
+
# * libclang.dll
|
392 |
+
# * LTO.dll
|
393 |
+
# * Remarks.dll
|
394 |
+
set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled)
|
395 |
+
else()
|
396 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin"
|
397 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
398 |
+
)
|
399 |
+
endif()
|
cc-multilingual-main/cc_net/vcpkg/ports/llvm/vcpkg.json
ADDED
@@ -0,0 +1,459 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "llvm",
|
3 |
+
"version": "17.0.2",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "The LLVM Compiler Infrastructure.",
|
6 |
+
"homepage": "https://llvm.org",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"supports": "!uwp & !(arm & windows)",
|
9 |
+
"dependencies": [
|
10 |
+
{
|
11 |
+
"name": "atl",
|
12 |
+
"platform": "windows & !mingw"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"name": "vcpkg-cmake-config",
|
20 |
+
"host": true
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"name": "vcpkg-cmake-get-vars",
|
24 |
+
"host": true
|
25 |
+
}
|
26 |
+
],
|
27 |
+
"default-features": [
|
28 |
+
"clang",
|
29 |
+
"default-targets",
|
30 |
+
"enable-bindings",
|
31 |
+
"enable-terminfo",
|
32 |
+
"enable-zlib",
|
33 |
+
"enable-zstd",
|
34 |
+
"lld",
|
35 |
+
"tools"
|
36 |
+
],
|
37 |
+
"features": {
|
38 |
+
"bolt": {
|
39 |
+
"description": "BOLT is a post-link optimizer developed to speed up large applications.",
|
40 |
+
"dependencies": [
|
41 |
+
{
|
42 |
+
"name": "llvm",
|
43 |
+
"default-features": false,
|
44 |
+
"features": [
|
45 |
+
"tools"
|
46 |
+
]
|
47 |
+
}
|
48 |
+
]
|
49 |
+
},
|
50 |
+
"clang": {
|
51 |
+
"description": "Include C Language Family Front-end.",
|
52 |
+
"dependencies": [
|
53 |
+
{
|
54 |
+
"name": "llvm",
|
55 |
+
"default-features": false,
|
56 |
+
"features": [
|
57 |
+
"tools"
|
58 |
+
]
|
59 |
+
}
|
60 |
+
]
|
61 |
+
},
|
62 |
+
"clang-tools-extra": {
|
63 |
+
"description": "Include Clang tools.",
|
64 |
+
"dependencies": [
|
65 |
+
{
|
66 |
+
"name": "llvm",
|
67 |
+
"default-features": false,
|
68 |
+
"features": [
|
69 |
+
"clang"
|
70 |
+
]
|
71 |
+
}
|
72 |
+
]
|
73 |
+
},
|
74 |
+
"compiler-rt": {
|
75 |
+
"description": "Include compiler's runtime libraries.",
|
76 |
+
"dependencies": [
|
77 |
+
{
|
78 |
+
"name": "llvm",
|
79 |
+
"default-features": false,
|
80 |
+
"features": [
|
81 |
+
"clang"
|
82 |
+
]
|
83 |
+
}
|
84 |
+
]
|
85 |
+
},
|
86 |
+
"default-targets": {
|
87 |
+
"description": "Build with platform-specific default targets.",
|
88 |
+
"dependencies": [
|
89 |
+
{
|
90 |
+
"name": "llvm",
|
91 |
+
"default-features": false,
|
92 |
+
"features": [
|
93 |
+
"target-aarch64"
|
94 |
+
],
|
95 |
+
"platform": "arm64"
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"name": "llvm",
|
99 |
+
"default-features": false,
|
100 |
+
"features": [
|
101 |
+
"target-x86"
|
102 |
+
],
|
103 |
+
"platform": "x86 | x64"
|
104 |
+
},
|
105 |
+
{
|
106 |
+
"name": "llvm",
|
107 |
+
"default-features": false,
|
108 |
+
"features": [
|
109 |
+
"target-arm"
|
110 |
+
],
|
111 |
+
"platform": "arm & !arm64"
|
112 |
+
}
|
113 |
+
]
|
114 |
+
},
|
115 |
+
"enable-abi-breaking-checks": {
|
116 |
+
"description": "Build LLVM with LLVM_ABI_BREAKING_CHECKS=FORCE_ON."
|
117 |
+
},
|
118 |
+
"enable-assertions": {
|
119 |
+
"description": "Build LLVM with assertions."
|
120 |
+
},
|
121 |
+
"enable-bindings": {
|
122 |
+
"description": "Build bindings."
|
123 |
+
},
|
124 |
+
"enable-eh": {
|
125 |
+
"description": "Build LLVM with exception handler.",
|
126 |
+
"dependencies": [
|
127 |
+
{
|
128 |
+
"name": "llvm",
|
129 |
+
"default-features": false,
|
130 |
+
"features": [
|
131 |
+
"enable-rtti"
|
132 |
+
]
|
133 |
+
}
|
134 |
+
]
|
135 |
+
},
|
136 |
+
"enable-ffi": {
|
137 |
+
"description": "Build LLVM with FFI.",
|
138 |
+
"dependencies": [
|
139 |
+
"libffi"
|
140 |
+
]
|
141 |
+
},
|
142 |
+
"enable-ios": {
|
143 |
+
"description": "Build compiler-rt for iOS SDK.",
|
144 |
+
"dependencies": [
|
145 |
+
{
|
146 |
+
"name": "llvm",
|
147 |
+
"default-features": false,
|
148 |
+
"features": [
|
149 |
+
"target-arm"
|
150 |
+
]
|
151 |
+
}
|
152 |
+
]
|
153 |
+
},
|
154 |
+
"enable-libxml2": {
|
155 |
+
"description": "Build with LibXml2.",
|
156 |
+
"dependencies": [
|
157 |
+
"libxml2"
|
158 |
+
]
|
159 |
+
},
|
160 |
+
"enable-mlir-python-bindings": {
|
161 |
+
"description": "Build MLIR Python bindings.",
|
162 |
+
"supports": "!(windows & static)",
|
163 |
+
"dependencies": [
|
164 |
+
{
|
165 |
+
"name": "llvm",
|
166 |
+
"default-features": false,
|
167 |
+
"features": [
|
168 |
+
"mlir"
|
169 |
+
]
|
170 |
+
},
|
171 |
+
"pybind11",
|
172 |
+
"python3"
|
173 |
+
]
|
174 |
+
},
|
175 |
+
"enable-rtti": {
|
176 |
+
"description": "Build LLVM with run-time type information."
|
177 |
+
},
|
178 |
+
"enable-terminfo": {
|
179 |
+
"description": "Use terminfo database if available."
|
180 |
+
},
|
181 |
+
"enable-zlib": {
|
182 |
+
"description": "Build with ZLib.",
|
183 |
+
"dependencies": [
|
184 |
+
"zlib"
|
185 |
+
]
|
186 |
+
},
|
187 |
+
"enable-zstd": {
|
188 |
+
"description": "Build with zstd.",
|
189 |
+
"dependencies": [
|
190 |
+
"zstd"
|
191 |
+
]
|
192 |
+
},
|
193 |
+
"flang": {
|
194 |
+
"description": "Include Fortran front end.",
|
195 |
+
"dependencies": [
|
196 |
+
{
|
197 |
+
"name": "llvm",
|
198 |
+
"default-features": false,
|
199 |
+
"features": [
|
200 |
+
"clang",
|
201 |
+
"mlir",
|
202 |
+
"tools"
|
203 |
+
]
|
204 |
+
}
|
205 |
+
]
|
206 |
+
},
|
207 |
+
"libc": {
|
208 |
+
"description": "Include libc library.",
|
209 |
+
"supports": "linux",
|
210 |
+
"dependencies": [
|
211 |
+
{
|
212 |
+
"name": "llvm",
|
213 |
+
"default-features": false,
|
214 |
+
"features": [
|
215 |
+
"clang",
|
216 |
+
"tools"
|
217 |
+
]
|
218 |
+
}
|
219 |
+
]
|
220 |
+
},
|
221 |
+
"libclc": {
|
222 |
+
"description": "Include OpenCL library."
|
223 |
+
},
|
224 |
+
"libcxx": {
|
225 |
+
"description": "Include libcxx library.",
|
226 |
+
"dependencies": [
|
227 |
+
{
|
228 |
+
"name": "llvm",
|
229 |
+
"default-features": false,
|
230 |
+
"features": [
|
231 |
+
"clang",
|
232 |
+
"libcxxabi",
|
233 |
+
"tools"
|
234 |
+
]
|
235 |
+
}
|
236 |
+
]
|
237 |
+
},
|
238 |
+
"libcxxabi": {
|
239 |
+
"description": "Include libcxxabi library.",
|
240 |
+
"dependencies": [
|
241 |
+
{
|
242 |
+
"name": "llvm",
|
243 |
+
"default-features": false,
|
244 |
+
"features": [
|
245 |
+
"clang",
|
246 |
+
"libcxx",
|
247 |
+
"tools"
|
248 |
+
]
|
249 |
+
}
|
250 |
+
]
|
251 |
+
},
|
252 |
+
"libunwind": {
|
253 |
+
"description": "Include libunwind library.",
|
254 |
+
"dependencies": [
|
255 |
+
{
|
256 |
+
"name": "llvm",
|
257 |
+
"default-features": false,
|
258 |
+
"features": [
|
259 |
+
"tools"
|
260 |
+
]
|
261 |
+
}
|
262 |
+
]
|
263 |
+
},
|
264 |
+
"lld": {
|
265 |
+
"description": "Include LLVM linker.",
|
266 |
+
"dependencies": [
|
267 |
+
{
|
268 |
+
"name": "llvm",
|
269 |
+
"default-features": false,
|
270 |
+
"features": [
|
271 |
+
"tools"
|
272 |
+
]
|
273 |
+
}
|
274 |
+
]
|
275 |
+
},
|
276 |
+
"lldb": {
|
277 |
+
"description": "Include LLVM debugger.",
|
278 |
+
"dependencies": [
|
279 |
+
{
|
280 |
+
"name": "llvm",
|
281 |
+
"default-features": false,
|
282 |
+
"features": [
|
283 |
+
"clang",
|
284 |
+
"enable-terminfo",
|
285 |
+
"tools"
|
286 |
+
]
|
287 |
+
}
|
288 |
+
]
|
289 |
+
},
|
290 |
+
"mlir": {
|
291 |
+
"description": "Include MLIR (Multi-Level IR Compiler Framework) project.",
|
292 |
+
"dependencies": [
|
293 |
+
{
|
294 |
+
"name": "llvm",
|
295 |
+
"default-features": false,
|
296 |
+
"features": [
|
297 |
+
"tools",
|
298 |
+
"utils"
|
299 |
+
]
|
300 |
+
}
|
301 |
+
]
|
302 |
+
},
|
303 |
+
"openmp": {
|
304 |
+
"description": "Include LLVM OpenMP libraries.",
|
305 |
+
"dependencies": [
|
306 |
+
{
|
307 |
+
"name": "llvm",
|
308 |
+
"default-features": false,
|
309 |
+
"features": [
|
310 |
+
"clang",
|
311 |
+
"utils"
|
312 |
+
]
|
313 |
+
}
|
314 |
+
]
|
315 |
+
},
|
316 |
+
"polly": {
|
317 |
+
"description": "Include Polly (Polyhedral optimizations for LLVM) project.",
|
318 |
+
"dependencies": [
|
319 |
+
{
|
320 |
+
"name": "llvm",
|
321 |
+
"default-features": false,
|
322 |
+
"features": [
|
323 |
+
"tools",
|
324 |
+
"utils"
|
325 |
+
]
|
326 |
+
}
|
327 |
+
]
|
328 |
+
},
|
329 |
+
"pstl": {
|
330 |
+
"description": "Include pstl (Parallel STL) library.",
|
331 |
+
"dependencies": [
|
332 |
+
{
|
333 |
+
"name": "llvm",
|
334 |
+
"default-features": false,
|
335 |
+
"features": [
|
336 |
+
"tools"
|
337 |
+
]
|
338 |
+
}
|
339 |
+
]
|
340 |
+
},
|
341 |
+
"target-aarch64": {
|
342 |
+
"description": "Build with AArch64 backend."
|
343 |
+
},
|
344 |
+
"target-all": {
|
345 |
+
"description": "Build with all backends.",
|
346 |
+
"dependencies": [
|
347 |
+
{
|
348 |
+
"name": "llvm",
|
349 |
+
"default-features": false,
|
350 |
+
"features": [
|
351 |
+
"target-aarch64",
|
352 |
+
"target-amdgpu",
|
353 |
+
"target-arc",
|
354 |
+
"target-arm",
|
355 |
+
"target-avr",
|
356 |
+
"target-bpf",
|
357 |
+
"target-csky",
|
358 |
+
"target-directx",
|
359 |
+
"target-hexagon",
|
360 |
+
"target-lanai",
|
361 |
+
"target-loongarch",
|
362 |
+
"target-m68k",
|
363 |
+
"target-mips",
|
364 |
+
"target-msp430",
|
365 |
+
"target-nvptx",
|
366 |
+
"target-powerpc",
|
367 |
+
"target-riscv",
|
368 |
+
"target-sparc",
|
369 |
+
"target-spirv",
|
370 |
+
"target-systemz",
|
371 |
+
"target-ve",
|
372 |
+
"target-webassembly",
|
373 |
+
"target-x86",
|
374 |
+
"target-xcore",
|
375 |
+
"target-xtensa"
|
376 |
+
]
|
377 |
+
}
|
378 |
+
]
|
379 |
+
},
|
380 |
+
"target-amdgpu": {
|
381 |
+
"description": "Build with AMDGPU backend."
|
382 |
+
},
|
383 |
+
"target-arc": {
|
384 |
+
"description": "Build with ARC backend (experimental)."
|
385 |
+
},
|
386 |
+
"target-arm": {
|
387 |
+
"description": "Build with ARM backend."
|
388 |
+
},
|
389 |
+
"target-avr": {
|
390 |
+
"description": "Build with AVR backend."
|
391 |
+
},
|
392 |
+
"target-bpf": {
|
393 |
+
"description": "Build with BPF backend."
|
394 |
+
},
|
395 |
+
"target-csky": {
|
396 |
+
"description": "Build with CSKY backend (experimental)."
|
397 |
+
},
|
398 |
+
"target-directx": {
|
399 |
+
"description": "Build with DirectX backend (experimental)."
|
400 |
+
},
|
401 |
+
"target-hexagon": {
|
402 |
+
"description": "Build with Hexagon backend."
|
403 |
+
},
|
404 |
+
"target-lanai": {
|
405 |
+
"description": "Build with Lanai backend."
|
406 |
+
},
|
407 |
+
"target-loongarch": {
|
408 |
+
"description": "Build with LoongArch backend."
|
409 |
+
},
|
410 |
+
"target-m68k": {
|
411 |
+
"description": "Build with M68k backend (experimental)."
|
412 |
+
},
|
413 |
+
"target-mips": {
|
414 |
+
"description": "Build with Mips backend."
|
415 |
+
},
|
416 |
+
"target-msp430": {
|
417 |
+
"description": "Build with MSP430 backend."
|
418 |
+
},
|
419 |
+
"target-nvptx": {
|
420 |
+
"description": "Build with NVPTX backend."
|
421 |
+
},
|
422 |
+
"target-powerpc": {
|
423 |
+
"description": "Build with PowerPC backend."
|
424 |
+
},
|
425 |
+
"target-riscv": {
|
426 |
+
"description": "Build with RISC-V backend."
|
427 |
+
},
|
428 |
+
"target-sparc": {
|
429 |
+
"description": "Build with Sparc backend."
|
430 |
+
},
|
431 |
+
"target-spirv": {
|
432 |
+
"description": "Build with SPIRV backend (experimental)."
|
433 |
+
},
|
434 |
+
"target-systemz": {
|
435 |
+
"description": "Build with SystemZ backend."
|
436 |
+
},
|
437 |
+
"target-ve": {
|
438 |
+
"description": "Build with VE backend."
|
439 |
+
},
|
440 |
+
"target-webassembly": {
|
441 |
+
"description": "Build with WebAssembly backend."
|
442 |
+
},
|
443 |
+
"target-x86": {
|
444 |
+
"description": "Build with X86 backend."
|
445 |
+
},
|
446 |
+
"target-xcore": {
|
447 |
+
"description": "Build with XCore backend."
|
448 |
+
},
|
449 |
+
"target-xtensa": {
|
450 |
+
"description": "Build with Xtensa backend (experimental)."
|
451 |
+
},
|
452 |
+
"tools": {
|
453 |
+
"description": "Build LLVM tools."
|
454 |
+
},
|
455 |
+
"utils": {
|
456 |
+
"description": "Build LLVM utils."
|
457 |
+
}
|
458 |
+
}
|
459 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/log4cxx/fix-find-package.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 61c0479..3bd3327 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -60,7 +60,7 @@ find_package(APR-Util REQUIRED)
|
6 |
+
find_package( Threads REQUIRED )
|
7 |
+
|
8 |
+
# Find expat for XML parsing
|
9 |
+
-find_package(EXPAT REQUIRED)
|
10 |
+
+find_package(expat CONFIG REQUIRED)
|
11 |
+
if(TARGET EXPAT::EXPAT)
|
12 |
+
set(EXPAT_LIBRARIES EXPAT::EXPAT)
|
13 |
+
elseif(TARGET expat::expat)
|
cc-multilingual-main/cc_net/vcpkg/ports/log4cxx/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(ARCHIVE
|
2 |
+
URLS "https://archive.apache.org/dist/logging/log4cxx/${VERSION}/apache-log4cxx-${VERSION}.tar.gz"
|
3 |
+
FILENAME "apache-log4cxx-${VERSION}.tar.gz"
|
4 |
+
SHA512 377234407c5f1128fbff6e5d2fcda3f53aae275962cd9207257674fa016095f4bc4ac0c318c1ba2a75f3252402cce0776c1211ffa917a60f8a89a12f01d45efb
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_extract_source_archive(
|
8 |
+
SOURCE_PATH ARCHIVE "${ARCHIVE}"
|
9 |
+
PATCHES
|
10 |
+
fix-find-package.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DLOG4CXX_INSTALL_PDB=OFF # Installing pdbs failed on debug static. So, disable it and let vcpkg_copy_pdbs() do it
|
17 |
+
-DBUILD_TESTING=OFF
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_cmake_install()
|
21 |
+
vcpkg_copy_pdbs()
|
22 |
+
|
23 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/log4cxx)
|
24 |
+
|
25 |
+
if(VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX)
|
26 |
+
vcpkg_fixup_pkgconfig()
|
27 |
+
endif()
|
28 |
+
|
29 |
+
file(READ "${CURRENT_PACKAGES_DIR}/share/${PORT}/log4cxxConfig.cmake" _contents)
|
30 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/log4cxxConfig.cmake"
|
31 |
+
"include(CMakeFindDependencyMacro)
|
32 |
+
find_dependency(expat CONFIG)
|
33 |
+
${_contents}"
|
34 |
+
)
|
35 |
+
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
37 |
+
|
38 |
+
# Handle copyright
|
39 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
cc-multilingual-main/cc_net/vcpkg/ports/log4cxx/vcpkg.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "log4cxx",
|
3 |
+
"version": "1.2.0",
|
4 |
+
"description": "Apache log4cxx is a logging framework for C++ patterned after Apache log4j, which uses Apache Portable Runtime for most platform-specific code and should be usable on any platform supported by APR",
|
5 |
+
"homepage": "https://logging.apache.org/log4cxx",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"apr",
|
10 |
+
"apr-util",
|
11 |
+
"expat",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"name": "vcpkg-cmake-config",
|
18 |
+
"host": true
|
19 |
+
}
|
20 |
+
]
|
21 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/magma/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "magma",
|
3 |
+
"version": "2.7.2",
|
4 |
+
"description": "Matrix Algebra on GPU and Multi-core Architectures (MAGMA) is a collection of next-generation linear algebra libraries for heterogeneous computing",
|
5 |
+
"homepage": "https://icl.utk.edu/magma/",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
"blas",
|
9 |
+
"cuda",
|
10 |
+
"lapack",
|
11 |
+
{
|
12 |
+
"name": "vcpkg-cmake",
|
13 |
+
"host": true
|
14 |
+
}
|
15 |
+
]
|
16 |
+
}
|
cc-multilingual-main/cc_net/vcpkg/ports/marisa-trie/portfile.cmake
ADDED
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
2 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
3 |
+
endif()
|
4 |
+
|
5 |
+
if(VCPKG_TARGET_IS_LINUX)
|
6 |
+
message(WARNING "${PORT} currently requires the following packages:\n libtool\n This can be installed on Ubuntu systems via\n sudo apt-get install -y libtool\n")
|
7 |
+
endif()
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
REPO s-yata/marisa-trie
|
12 |
+
REF 006020c1df76d0d7dc6118dacc22da64da2e35c4
|
13 |
+
SHA512 05dd7cc81a6347d4528654c19617af16de8d7352ad9e38d5f1cd296d88527377ecbfed9dbe722362d64369cd792d1ae0410319854b546ce0b6081ac560a40c0f
|
14 |
+
HEAD_REF master
|
15 |
+
PATCHES
|
16 |
+
remove-windows-tests.patch
|
17 |
+
)
|
18 |
+
|
19 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
20 |
+
vcpkg_install_msbuild(
|
21 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
22 |
+
PROJECT_SUBPATH "vs2019/vs2019.sln"
|
23 |
+
LICENSE_SUBPATH COPYING.md
|
24 |
+
PLATFORM "${TRIPLET_SYSTEM_ARCH}"
|
25 |
+
ALLOW_ROOT_INCLUDES
|
26 |
+
)
|
27 |
+
|
28 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include")
|
29 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include/marisa")
|
30 |
+
file(INSTALL "${SOURCE_PATH}/include/marisa.h" DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
31 |
+
file(GLOB MARISA_DIR_HEADERS "${SOURCE_PATH}/include/marisa/*.h")
|
32 |
+
file(INSTALL ${MARISA_DIR_HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include/marisa")
|
33 |
+
|
34 |
+
vcpkg_clean_msbuild()
|
35 |
+
set(prefix "${CURRENT_INSTALLED_DIR}")
|
36 |
+
set(exec_prefix "\${prefix}")
|
37 |
+
set(bindir "\${prefix}/bin")
|
38 |
+
set(libdir "\${prefix}/lib")
|
39 |
+
set(includedir "\${prefix}/include")
|
40 |
+
configure_file("${SOURCE_PATH}/marisa.pc.in" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/marisa.pc" @ONLY)
|
41 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/marisa.pc" "-lmarisa" "-llibmarisa")
|
42 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
43 |
+
set(prefix "${CURRENT_INSTALLED_DIR}/debug")
|
44 |
+
set(exec_prefix "\${prefix}")
|
45 |
+
set(bindir "\${prefix}/bin")
|
46 |
+
set(libdir "\${prefix}/lib")
|
47 |
+
set(includedir "\${prefix}/include")
|
48 |
+
configure_file("${SOURCE_PATH}/marisa.pc.in" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/marisa.pc" @ONLY)
|
49 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/marisa.pc" "-lmarisa" "-llibmarisa")
|
50 |
+
endif()
|
51 |
+
else()
|
52 |
+
vcpkg_configure_make(
|
53 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
54 |
+
AUTOCONFIG
|
55 |
+
COPY_SOURCE
|
56 |
+
)
|
57 |
+
vcpkg_install_make()
|
58 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
59 |
+
file(INSTALL "${SOURCE_PATH}/COPYING.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
60 |
+
endif()
|
61 |
+
|
62 |
+
vcpkg_copy_pdbs()
|
63 |
+
vcpkg_fixup_pkgconfig()
|
64 |
+
|
65 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
cc-multilingual-main/cc_net/vcpkg/ports/marisa-trie/remove-windows-tests.patch
ADDED
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/vs2019/vs2019.sln b/vs2019/vs2019.sln
|
2 |
+
index df0ecfd..4382416 100644
|
3 |
+
--- a/vs2019/vs2019.sln
|
4 |
+
+++ b/vs2019/vs2019.sln
|
5 |
+
@@ -5,16 +5,6 @@ VisualStudioVersion = 16.0.29519.87
|
6 |
+
MinimumVisualStudioVersion = 10.0.40219.1
|
7 |
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmarisa", "libmarisa\libmarisa.vcxproj", "{84009DAF-7FAF-44AC-A6AA-023EF63E3051}"
|
8 |
+
EndProject
|
9 |
+
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "base-test", "base-test\base-test.vcxproj", "{9C0CFD54-C5A7-4736-9063-7DCB085B2877}"
|
10 |
+
-EndProject
|
11 |
+
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "marisa-test", "marisa-test\marisa-test.vcxproj", "{53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}"
|
12 |
+
-EndProject
|
13 |
+
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "io-test", "io-test\io-test.vcxproj", "{F9C6E136-FE11-4F7E-A113-7A98AACDABC7}"
|
14 |
+
-EndProject
|
15 |
+
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "trie-test", "trie-test\trie-test.vcxproj", "{1654861A-6F01-4D7C-830B-A39678093E4C}"
|
16 |
+
-EndProject
|
17 |
+
-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vector-test", "vector-test\vector-test.vcxproj", "{8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}"
|
18 |
+
-EndProject
|
19 |
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "marisa-benchmark", "marisa-benchmark\marisa-benchmark.vcxproj", "{CCD0AA2B-1461-4937-B3AD-487E541425FD}"
|
20 |
+
EndProject
|
21 |
+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "marisa-build", "marisa-build\marisa-build.vcxproj", "{3F2BDA56-422C-45F9-B2BC-5C19790E0D9D}"
|
22 |
+
@@ -45,46 +35,6 @@ Global
|
23 |
+
{84009DAF-7FAF-44AC-A6AA-023EF63E3051}.Release|x64.Build.0 = Release|x64
|
24 |
+
{84009DAF-7FAF-44AC-A6AA-023EF63E3051}.Release|x86.ActiveCfg = Release|Win32
|
25 |
+
{84009DAF-7FAF-44AC-A6AA-023EF63E3051}.Release|x86.Build.0 = Release|Win32
|
26 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Debug|x64.ActiveCfg = Debug|x64
|
27 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Debug|x64.Build.0 = Debug|x64
|
28 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Debug|x86.ActiveCfg = Debug|Win32
|
29 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Debug|x86.Build.0 = Debug|Win32
|
30 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Release|x64.ActiveCfg = Release|x64
|
31 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Release|x64.Build.0 = Release|x64
|
32 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Release|x86.ActiveCfg = Release|Win32
|
33 |
+
- {9C0CFD54-C5A7-4736-9063-7DCB085B2877}.Release|x86.Build.0 = Release|Win32
|
34 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Debug|x64.ActiveCfg = Debug|x64
|
35 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Debug|x64.Build.0 = Debug|x64
|
36 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Debug|x86.ActiveCfg = Debug|Win32
|
37 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Debug|x86.Build.0 = Debug|Win32
|
38 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Release|x64.ActiveCfg = Release|x64
|
39 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Release|x64.Build.0 = Release|x64
|
40 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Release|x86.ActiveCfg = Release|Win32
|
41 |
+
- {53731F7C-2EB6-4A9F-A6DF-A49DDAAF613F}.Release|x86.Build.0 = Release|Win32
|
42 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Debug|x64.ActiveCfg = Debug|x64
|
43 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Debug|x64.Build.0 = Debug|x64
|
44 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Debug|x86.ActiveCfg = Debug|Win32
|
45 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Debug|x86.Build.0 = Debug|Win32
|
46 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Release|x64.ActiveCfg = Release|x64
|
47 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Release|x64.Build.0 = Release|x64
|
48 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Release|x86.ActiveCfg = Release|Win32
|
49 |
+
- {F9C6E136-FE11-4F7E-A113-7A98AACDABC7}.Release|x86.Build.0 = Release|Win32
|
50 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Debug|x64.ActiveCfg = Debug|x64
|
51 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Debug|x64.Build.0 = Debug|x64
|
52 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Debug|x86.ActiveCfg = Debug|Win32
|
53 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Debug|x86.Build.0 = Debug|Win32
|
54 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Release|x64.ActiveCfg = Release|x64
|
55 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Release|x64.Build.0 = Release|x64
|
56 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Release|x86.ActiveCfg = Release|Win32
|
57 |
+
- {1654861A-6F01-4D7C-830B-A39678093E4C}.Release|x86.Build.0 = Release|Win32
|
58 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Debug|x64.ActiveCfg = Debug|x64
|
59 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Debug|x64.Build.0 = Debug|x64
|
60 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Debug|x86.ActiveCfg = Debug|Win32
|
61 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Debug|x86.Build.0 = Debug|Win32
|
62 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Release|x64.ActiveCfg = Release|x64
|
63 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Release|x64.Build.0 = Release|x64
|
64 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Release|x86.ActiveCfg = Release|Win32
|
65 |
+
- {8FAC4D71-7D54-4438-B84C-D6B779AD0EE8}.Release|x86.Build.0 = Release|Win32
|
66 |
+
{CCD0AA2B-1461-4937-B3AD-487E541425FD}.Debug|x64.ActiveCfg = Debug|x64
|
67 |
+
{CCD0AA2B-1461-4937-B3AD-487E541425FD}.Debug|x64.Build.0 = Debug|x64
|
68 |
+
{CCD0AA2B-1461-4937-B3AD-487E541425FD}.Debug|x86.ActiveCfg = Debug|Win32
|
cc-multilingual-main/cc_net/vcpkg/ports/marisa-trie/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package marisa-trie can be imported via CMake FindPkgConfig module:
|
2 |
+
|
3 |
+
find_package(PkgConfig REQUIRED)
|
4 |
+
pkg_check_modules(marisa REQUIRED IMPORTED_TARGET marisa)
|
5 |
+
target_link_libraries(main PkgConfig::marisa)
|