Spaces:
Sleeping
Sleeping
3782d9da2d8e030caec64812735cebde395e6642bbc7df52c755edb6e5245580
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lionkor-commandline/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lionkor-commandline/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/CMakeLists.txt +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/fix-RTSPClient.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/portfile.cmake +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/issue-83-fix-backport.patch +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/portfile.cmake +91 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-error-code-dynamic +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-error-code-static +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-status-code-dynamic +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-status-code-static +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/vcpkg.json +57 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/fix-arm64-build-error.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/fix-install-error.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/portfile.cmake +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0002-fix-install-paths.patch +138 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0003-fix-openmp-debug.patch +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0004-fix-dr-1734.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0005-fix-tools-path.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0007-fix-compiler-rt-install-path.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0009-fix-tools-install-path.patch +184 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0010-fix-libffi.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0011-fix-libxml2.patch +34 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/clang_usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/flang_usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/lld_usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/llvm_usage +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/mlir_usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/portfile.cmake +333 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/vcpkg.json +355 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/CMakeLists.txt +81 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/cmake/package-config.cmakein +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/cmake/runtest.cmake +3 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/lmdb.def +58 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/lmdbd.def +58 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng-c/portfile.cmake +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng-c/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/CMakeLists.txt +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/usage +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cplus/portfile.cmake +52 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cplus/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cpp/fix-export-targets.patch +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cpp/fix-includepath.patch +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cpp/fix-install-targets.patch +13 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lionkor-commandline/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO lionkor/commandline
|
6 |
+
REF 01434c11aaf82d37a126dc70f5aa02cc523dbbb4
|
7 |
+
SHA512 fb9554c07d13aa4c5d84f8288ad39e67ab302da4b286172e0f8fbc22b351234a83fb60f1c085a238d10477a379fded32302338cbddbe7ee0fdda54c6c4a75593
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
add-install.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DBUILD_EXAMPLES=OFF
|
17 |
+
)
|
18 |
+
vcpkg_cmake_install()
|
19 |
+
vcpkg_copy_pdbs()
|
20 |
+
|
21 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
22 |
+
|
23 |
+
# Handle copyright
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lionkor-commandline/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lionkor-commandline",
|
3 |
+
"version-semver": "2.0.0",
|
4 |
+
"description": "A C++ commandline for use in servers and chat software. Provides very simple asynchronous input/output.",
|
5 |
+
"homepage": "https://github.com/lionkor/commandline/",
|
6 |
+
"license": "MIT",
|
7 |
+
"supports": "!osx & !uwp",
|
8 |
+
"dependencies": [
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/CMakeLists.txt
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.5)
|
2 |
+
project(live555 C CXX)
|
3 |
+
|
4 |
+
include_directories(
|
5 |
+
BasicUsageEnvironment/include
|
6 |
+
groupsock/include
|
7 |
+
liveMedia/include
|
8 |
+
UsageEnvironment/include
|
9 |
+
)
|
10 |
+
|
11 |
+
if (WIN32)
|
12 |
+
add_definitions(-DNO_GETIFADDRS)
|
13 |
+
endif(WIN32)
|
14 |
+
|
15 |
+
if (NOT MSVC)
|
16 |
+
add_compile_options(-DSOCKLEN_T=socklen_t)
|
17 |
+
endif()
|
18 |
+
|
19 |
+
file(GLOB BASIC_USAGE_ENVIRONMENT_SRCS BasicUsageEnvironment/*.c BasicUsageEnvironment/*.cpp)
|
20 |
+
add_library(BasicUsageEnvironment ${BASIC_USAGE_ENVIRONMENT_SRCS})
|
21 |
+
|
22 |
+
file(GLOB GROUPSOCK_SRCS groupsock/*.c groupsock/*.cpp)
|
23 |
+
add_library(groupsock ${GROUPSOCK_SRCS})
|
24 |
+
|
25 |
+
file(GLOB LIVEMEDIA_SRCS liveMedia/*.c liveMedia/*.cpp)
|
26 |
+
add_library(liveMedia ${LIVEMEDIA_SRCS})
|
27 |
+
find_package(OpenSSL REQUIRED)
|
28 |
+
target_include_directories(liveMedia PRIVATE "${OPENSSL_INCLUDE_DIR}")
|
29 |
+
|
30 |
+
file(GLOB USAGE_ENVIRONMENT_SRCS UsageEnvironment/*.c UsageEnvironment/*.cpp)
|
31 |
+
add_library(UsageEnvironment ${USAGE_ENVIRONMENT_SRCS})
|
32 |
+
|
33 |
+
install(TARGETS groupsock BasicUsageEnvironment liveMedia UsageEnvironment
|
34 |
+
RUNTIME DESTINATION bin
|
35 |
+
LIBRARY DESTINATION lib
|
36 |
+
ARCHIVE DESTINATION lib
|
37 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/fix-RTSPClient.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/liveMedia/RTSPClient.cpp b/liveMedia/RTSPClient.cpp
|
2 |
+
index 02c46c7..6127698 100644
|
3 |
+
--- a/liveMedia/RTSPClient.cpp
|
4 |
+
+++ b/liveMedia/RTSPClient.cpp
|
5 |
+
@@ -1939,7 +1939,7 @@ int RTSPClient::write(const u_int8_t* data, unsigned count) {
|
6 |
+
if (fTLS.isNeeded) {
|
7 |
+
return fTLS.write(data, count);
|
8 |
+
} else {
|
9 |
+
- return send(fOutputSocketNum, data, count, 0);
|
10 |
+
+ return send(fOutputSocketNum, (const char *)data, count, 0);
|
11 |
+
}
|
12 |
+
}
|
13 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/portfile.cmake
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "http://www.live555.com/liveMedia/public/live.2021.12.18.tar.gz"
|
5 |
+
FILENAME "live.2021.12.18.tar.gz"
|
6 |
+
SHA512 072ae92a1a63687e33c659627fbf562e6f2cdf73cf1c3199959aa3a713636ccd4113d56270c4793c86b42338000f180e16a7b2cf3d893402226a04360f8b2e97
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_extract_source_archive_ex(
|
10 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
11 |
+
ARCHIVE ${ARCHIVE}
|
12 |
+
PATCHES
|
13 |
+
fix-RTSPClient.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
|
24 |
+
file(GLOB HEADERS
|
25 |
+
"${SOURCE_PATH}/BasicUsageEnvironment/include/*.h*"
|
26 |
+
"${SOURCE_PATH}/groupsock/include/*.h*"
|
27 |
+
"${SOURCE_PATH}/liveMedia/include/*.h*"
|
28 |
+
"${SOURCE_PATH}/UsageEnvironment/include/*.h*"
|
29 |
+
)
|
30 |
+
|
31 |
+
file(COPY ${HEADERS} DESTINATION "${CURRENT_PACKAGES_DIR}/include")
|
32 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
33 |
+
|
34 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/live555/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "live555",
|
3 |
+
"version-date": "2021-12-18",
|
4 |
+
"description": "A complete RTSP server application",
|
5 |
+
"homepage": "https://www.live555.com/liveMedia",
|
6 |
+
"dependencies": [
|
7 |
+
"openssl",
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/issue-83-fix-backport.patch
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/llfio/v2.0/map_handle.hpp b/include/llfio/v2.0/map_handle.hpp
|
2 |
+
index 55cefa8f..3962be16 100644
|
3 |
+
--- a/include/llfio/v2.0/map_handle.hpp
|
4 |
+
+++ b/include/llfio/v2.0/map_handle.hpp
|
5 |
+
@@ -294,8 +294,8 @@ support this operation). You may find the `is_nvram()` observer of particular us
|
6 |
+
*/
|
7 |
+
inline io_handle::const_buffer_type nvram_barrier(io_handle::const_buffer_type req, bool evict = false) noexcept
|
8 |
+
{
|
9 |
+
- auto *tp = (io_handle::const_buffer_type::pointer)(((uintptr_t) req.data()) & ~63);
|
10 |
+
- io_handle::const_buffer_type ret{tp, (size_t)(req.data() + 63 + req.size() - tp) & ~63};
|
11 |
+
+ auto *tp = (io_handle::const_buffer_type::pointer) (((uintptr_t) req.data()) & ~63);
|
12 |
+
+ io_handle::const_buffer_type ret{tp, (size_t) (req.data() + 63 + req.size() - tp) & ~63};
|
13 |
+
if(memory_flush_none == mem_flush_stores(ret.data(), ret.size(), evict ? memory_flush_evict : memory_flush_retain))
|
14 |
+
{
|
15 |
+
ret = {tp, 0};
|
16 |
+
@@ -954,7 +954,8 @@ namespace detail
|
17 |
+
{
|
18 |
+
try
|
19 |
+
{
|
20 |
+
- auto make_shared = [](map_handle h) {
|
21 |
+
+ auto make_shared = [](map_handle h) -> io_handle::registered_buffer_type
|
22 |
+
+ {
|
23 |
+
struct registered_buffer_type_indirect : io_multiplexer::_registered_buffer_type
|
24 |
+
{
|
25 |
+
map_handle h;
|
26 |
+
@@ -964,8 +965,7 @@ namespace detail
|
27 |
+
{
|
28 |
+
}
|
29 |
+
};
|
30 |
+
- auto ptr = std::make_shared<registered_buffer_type_indirect>(std::move(h));
|
31 |
+
- return ptr;
|
32 |
+
+ return io_handle::registered_buffer_type(std::make_shared<registered_buffer_type_indirect>(std::move(h)));
|
33 |
+
};
|
34 |
+
const auto &page_sizes = utils::page_sizes(true);
|
35 |
+
size_t idx = 0;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/portfile.cmake
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (NOT "cxx20" IN_LIST FEATURES)
|
2 |
+
message(WARNING [=[
|
3 |
+
LLFIO depends on Outcome which depends on QuickCppLib which uses the vcpkg versions of gsl-lite and byte-lite, rather than the versions tested by QuickCppLib's, Outcome's and LLFIO's CI. It is not guaranteed to work with other versions, with failures experienced in the past up-to-and-including runtime crashes. See the warning message from QuickCppLib for how you can pin the versions of those dependencies in your manifest file to those with which QuickCppLib was tested. Do not report issues to upstream without first pinning the versions as QuickCppLib was tested against.
|
4 |
+
]=])
|
5 |
+
endif()
|
6 |
+
|
7 |
+
|
8 |
+
vcpkg_from_github(
|
9 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
10 |
+
REPO ned14/llfio
|
11 |
+
REF 4a117d683b82a2e3e456c2ecc47a99c8406280fa
|
12 |
+
SHA512 7880356dbff10664a146a09558ba15f95cf6883ebe8e0af3d392fbd6f86f3455b9b5c8b6c5c1281c8fca93c358fcafd3468ab575eee0b483ec5b136ca59eef04
|
13 |
+
HEAD_REF develop
|
14 |
+
PATCHES
|
15 |
+
# https://github.com/ned14/llfio/issues/83
|
16 |
+
# To be removed on next update
|
17 |
+
issue-83-fix-backport.patch
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_from_github(
|
21 |
+
OUT_SOURCE_PATH NTKEC_SOURCE_PATH
|
22 |
+
REPO ned14/ntkernel-error-category
|
23 |
+
REF bbd44623594142155d49bd3ce8820d3cf9da1e1e
|
24 |
+
SHA512 589d3bc7bca98ca8d05ce9f5cf009dd98b8884bdf3739582f2f6cbf5a324ce95007ea041450ed935baa4a401b4a0242c181fb6d2dcf7ad91587d75f05491f50e
|
25 |
+
HEAD_REF master
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_check_features(
|
29 |
+
OUT_FEATURE_OPTIONS LLFIO_FEATURE_OPTIONS
|
30 |
+
FEATURES
|
31 |
+
status-code LLFIO_USE_EXPERIMENTAL_SG14_STATUS_CODE
|
32 |
+
)
|
33 |
+
|
34 |
+
# LLFIO expects ntkernel-error-category to live inside its include directory
|
35 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/include/llfio/ntkernel-error-category")
|
36 |
+
file(RENAME "${NTKEC_SOURCE_PATH}" "${SOURCE_PATH}/include/llfio/ntkernel-error-category")
|
37 |
+
|
38 |
+
set(extra_config)
|
39 |
+
# cmake does not correctly set CMAKE_SYSTEM_PROCESSOR when targeting ARM on Windows
|
40 |
+
if(VCPKG_TARGET_IS_WINDOWS AND (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64"))
|
41 |
+
list(APPEND extra_config -DLLFIO_ASSUME_CROSS_COMPILING=On)
|
42 |
+
endif()
|
43 |
+
# setting CMAKE_CXX_STANDARD here to prevent llfio from messing with compiler flags
|
44 |
+
# the cmake package config requires said C++ standard target transitively via quickcpplib
|
45 |
+
if ("cxx20" IN_LIST FEATURES)
|
46 |
+
list(APPEND extra_config -DCMAKE_CXX_STANDARD=20)
|
47 |
+
elseif("cxx17" IN_LIST FEATURES)
|
48 |
+
list(APPEND extra_config -DCMAKE_CXX_STANDARD=17)
|
49 |
+
endif()
|
50 |
+
|
51 |
+
# quickcpplib parses CMAKE_MSVC_RUNTIME_LIBRARY and cannot support the default crt linkage generator expression from vcpkg
|
52 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
53 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
54 |
+
list(APPEND extra_config -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$$<$$<CONFIG:Debug>:Debug>DLL)
|
55 |
+
else()
|
56 |
+
list(APPEND extra_config -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$$<$$<CONFIG:Debug>:Debug>)
|
57 |
+
endif()
|
58 |
+
endif()
|
59 |
+
|
60 |
+
vcpkg_cmake_configure(
|
61 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
62 |
+
PREFER_NINJA
|
63 |
+
OPTIONS
|
64 |
+
-DPROJECT_IS_DEPENDENCY=On
|
65 |
+
-Dquickcpplib_DIR=${CURRENT_INSTALLED_DIR}/share/quickcpplib
|
66 |
+
${LLFIO_FEATURE_OPTIONS}
|
67 |
+
-DLLFIO_ENABLE_DEPENDENCY_SMOKE_TEST=ON # Leave this always on to test everything compiles
|
68 |
+
-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
|
69 |
+
${extra_config}
|
70 |
+
)
|
71 |
+
|
72 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
73 |
+
vcpkg_cmake_build(TARGET install.dl)
|
74 |
+
else(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
75 |
+
vcpkg_cmake_build(TARGET install.sl)
|
76 |
+
endif()
|
77 |
+
|
78 |
+
if("run-tests" IN_LIST FEATURES)
|
79 |
+
vcpkg_cmake_build(TARGET test)
|
80 |
+
endif()
|
81 |
+
|
82 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/llfio)
|
83 |
+
|
84 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
85 |
+
|
86 |
+
if("status-code" IN_LIST FEATURES)
|
87 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage-status-code-${VCPKG_LIBRARY_LINKAGE}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
88 |
+
else()
|
89 |
+
file(INSTALL "${CURRENT_PORT_DIR}/usage-error-code-${VCPKG_LIBRARY_LINKAGE}" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
90 |
+
endif()
|
91 |
+
file(INSTALL "${SOURCE_PATH}/Licence.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-error-code-dynamic
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package llfio provides two CMake targets:
|
2 |
+
|
3 |
+
find_package(llfio CONFIG REQUIRED)
|
4 |
+
|
5 |
+
- If you want the header-only form of LLFIO:
|
6 |
+
find_package(Threads REQUIRED)
|
7 |
+
target_link_libraries(main PUBLIC llfio::hl)
|
8 |
+
|
9 |
+
- If you want the shared library form of LLFIO with shared NT kernel error code category:
|
10 |
+
target_link_libraries(main PUBLIC llfio::dl llfio::ntkernel-error-category::dl)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-error-code-static
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package llfio provides two CMake targets:
|
2 |
+
|
3 |
+
find_package(llfio CONFIG REQUIRED)
|
4 |
+
|
5 |
+
- If you want the header-only form of LLFIO:
|
6 |
+
find_package(Threads REQUIRED)
|
7 |
+
target_link_libraries(main PUBLIC llfio::hl)
|
8 |
+
|
9 |
+
- If you want the static library form of LLFIO with static NT kernel error code category:
|
10 |
+
target_link_libraries(main PUBLIC llfio::sl llfio::ntkernel-error-category::sl)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-status-code-dynamic
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package llfio provides two CMake targets:
|
2 |
+
|
3 |
+
find_package(llfio CONFIG REQUIRED)
|
4 |
+
|
5 |
+
- If you want the header-only form of LLFIO:
|
6 |
+
find_package(Threads REQUIRED)
|
7 |
+
target_link_libraries(main PUBLIC llfio::hl)
|
8 |
+
|
9 |
+
- If you want the shared library form of LLFIO:
|
10 |
+
target_link_libraries(main PUBLIC llfio::dl)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/usage-status-code-static
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package llfio provides two CMake targets:
|
2 |
+
|
3 |
+
find_package(llfio CONFIG REQUIRED)
|
4 |
+
|
5 |
+
- If you want the header-only form of LLFIO:
|
6 |
+
find_package(Threads REQUIRED)
|
7 |
+
target_link_libraries(main PUBLIC llfio::hl)
|
8 |
+
|
9 |
+
- If you want the static library form of LLFIO:
|
10 |
+
target_link_libraries(main PUBLIC llfio::sl)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llfio/vcpkg.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "llfio",
|
3 |
+
"version-string": "2.0-20220112",
|
4 |
+
"description": "P1031 low level file i/o and filesystem library for the C++ standard",
|
5 |
+
"homepage": "https://github.com/ned14/llfio",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
"outcome",
|
9 |
+
{
|
10 |
+
"name": "vcpkg-cmake",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "vcpkg-cmake-config",
|
15 |
+
"host": true
|
16 |
+
}
|
17 |
+
],
|
18 |
+
"features": {
|
19 |
+
"cxx17": {
|
20 |
+
"description": "Do not polyfill C++17 entities",
|
21 |
+
"dependencies": [
|
22 |
+
{
|
23 |
+
"name": "ned14-internal-quickcpplib",
|
24 |
+
"default-features": false,
|
25 |
+
"features": [
|
26 |
+
"cxx17"
|
27 |
+
]
|
28 |
+
}
|
29 |
+
]
|
30 |
+
},
|
31 |
+
"cxx20": {
|
32 |
+
"description": "Do not polyfill C++20 entities",
|
33 |
+
"dependencies": [
|
34 |
+
{
|
35 |
+
"name": "llfio",
|
36 |
+
"default-features": false,
|
37 |
+
"features": [
|
38 |
+
"cxx17"
|
39 |
+
]
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"name": "ned14-internal-quickcpplib",
|
43 |
+
"default-features": false,
|
44 |
+
"features": [
|
45 |
+
"cxx20"
|
46 |
+
]
|
47 |
+
}
|
48 |
+
]
|
49 |
+
},
|
50 |
+
"run-tests": {
|
51 |
+
"description": "Build and run the dependency validation tests"
|
52 |
+
},
|
53 |
+
"status-code": {
|
54 |
+
"description": "Have LLFIO use SG14 `status_code` (proposed `std::error`) instead of `std::error_code`."
|
55 |
+
}
|
56 |
+
}
|
57 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/fix-arm64-build-error.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f440884..f1a9190 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -559,6 +559,8 @@ if(APPLE)
|
6 |
+
endif()
|
7 |
+
elseif(UNIX)
|
8 |
+
target_link_libraries(LLGL X11 pthread Xxf86vm Xrandr)
|
9 |
+
+elseif(WIN32)
|
10 |
+
+ target_link_libraries(LLGL gdi32 shell32)
|
11 |
+
endif()
|
12 |
+
|
13 |
+
set_target_properties(LLGL PROPERTIES LINKER_LANGUAGE CXX DEBUG_POSTFIX "D")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/fix-install-error.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index f440884..d1b0c2f 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -614,6 +614,12 @@ if(LLGL_BUILD_RENDERER_OPENGL)
|
6 |
+
target_link_libraries(LLGL_OpenGL LLGL ${OPENGL_LIBRARIES})
|
7 |
+
|
8 |
+
ADD_DEFINE(LLGL_BUILD_RENDERER_OPENGL)
|
9 |
+
+
|
10 |
+
+ install(TARGETS LLGL_OpenGL
|
11 |
+
+ RUNTIME DESTINATION bin
|
12 |
+
+ LIBRARY DESTINATION lib
|
13 |
+
+ ARCHIVE DESTINATION lib
|
14 |
+
+ )
|
15 |
+
else()
|
16 |
+
message("Missing OpenGL -> LLGL_OpenGL renderer will be excluded from project")
|
17 |
+
endif()
|
18 |
+
@@ -681,6 +687,12 @@ if(WIN32)
|
19 |
+
target_link_libraries(LLGL_Direct3D11 LLGL d3d11 dxgi D3DCompiler)
|
20 |
+
|
21 |
+
ADD_DEFINE(LLGL_BUILD_RENDERER_DIRECT3D11)
|
22 |
+
+
|
23 |
+
+ install(TARGETS LLGL_Direct3D11
|
24 |
+
+ RUNTIME DESTINATION bin
|
25 |
+
+ LIBRARY DESTINATION lib
|
26 |
+
+ ARCHIVE DESTINATION lib
|
27 |
+
+ )
|
28 |
+
endif()
|
29 |
+
|
30 |
+
if(LLGL_BUILD_RENDERER_DIRECT3D12)
|
31 |
+
@@ -821,4 +833,13 @@ if(LLGL_ENABLE_SPIRV_REFLECT)
|
32 |
+
message("Including Submodule: SPIRV")
|
33 |
+
endif()
|
34 |
+
|
35 |
+
+# Install targets
|
36 |
+
+install(TARGETS ${PROJECT_NAME}
|
37 |
+
+ RUNTIME DESTINATION bin
|
38 |
+
+ LIBRARY DESTINATION lib
|
39 |
+
+ ARCHIVE DESTINATION lib
|
40 |
+
+)
|
41 |
+
+# Install headers
|
42 |
+
+install(DIRECTORY ${PROJECT_INCLUDE_DIR} DESTINATION .)
|
43 |
+
+
|
44 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/portfile.cmake
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
2 |
+
message(FATAL_ERROR "${PORT} currently doesn't supports UWP.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO LukasBanana/LLGL
|
8 |
+
REF 8f28437960ed60622e94f4f97b24e842b5a0e9e6
|
9 |
+
SHA512 8a6bd4109e977f9def0f04a3d31f7bd4beebbe162c52eaa08a54daf8335871615215ece166e5a9d5b5475b834fd53a26ff9638ff270a2f00c88bab21ed156760
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-install-error.patch
|
13 |
+
fix-arm64-build-error.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
17 |
+
opengl LLGL_BUILD_RENDERER_OPENGL
|
18 |
+
direct3d11 LLGL_BUILD_RENDERER_DIRECT3D11
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_configure_cmake(
|
22 |
+
SOURCE_PATH ${SOURCE_PATH}
|
23 |
+
PREFER_NINJA
|
24 |
+
OPTIONS ${FEATURE_OPTIONS}
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_install_cmake()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
30 |
+
|
31 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
32 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
vcpkg_copy_pdbs()
|
36 |
+
|
37 |
+
# Handle copyright
|
38 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llgl/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "llgl",
|
3 |
+
"version-string": "2019-08-15",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Low Level Graphics Library (LLGL) is a thin abstraction layer for the modern graphics APIs OpenGL, Direct3D, Vulkan, and Metal.",
|
6 |
+
"homepage": "https://github.com/LukasBanana/LLGL",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"features": {
|
9 |
+
"direct3d11": {
|
10 |
+
"description": "Support for direct3d11"
|
11 |
+
},
|
12 |
+
"opengl": {
|
13 |
+
"description": "Support for opengl"
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0002-fix-install-paths.patch
ADDED
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clang/cmake/modules/CMakeLists.txt | 4 ++--
|
2 |
+
flang/cmake/modules/CMakeLists.txt | 4 ++--
|
3 |
+
lld/cmake/modules/CMakeLists.txt | 4 ++--
|
4 |
+
llvm/cmake/modules/AddLLVM.cmake | 2 +-
|
5 |
+
llvm/cmake/modules/CMakeLists.txt | 2 +-
|
6 |
+
mlir/cmake/modules/CMakeLists.txt | 4 ++--
|
7 |
+
polly/cmake/CMakeLists.txt | 4 ++--
|
8 |
+
pstl/CMakeLists.txt | 4 ++--
|
9 |
+
8 files changed, 14 insertions(+), 14 deletions(-)
|
10 |
+
|
11 |
+
diff --git a/clang/cmake/modules/CMakeLists.txt b/clang/cmake/modules/CMakeLists.txt
|
12 |
+
index 561665d58cad..3c73878a4483 100644
|
13 |
+
--- a/clang/cmake/modules/CMakeLists.txt
|
14 |
+
+++ b/clang/cmake/modules/CMakeLists.txt
|
15 |
+
@@ -3,11 +3,11 @@ include(LLVMDistributionSupport)
|
16 |
+
# Generate a list of CMake library targets so that other CMake projects can
|
17 |
+
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
18 |
+
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
19 |
+
-set(CLANG_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/clang)
|
20 |
+
+set(CLANG_INSTALL_PACKAGE_DIR share/clang)
|
21 |
+
set(clang_cmake_builddir "${CMAKE_BINARY_DIR}/${CLANG_INSTALL_PACKAGE_DIR}")
|
22 |
+
|
23 |
+
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
24 |
+
-set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
|
25 |
+
+set(LLVM_INSTALL_PACKAGE_DIR share/llvm)
|
26 |
+
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
|
27 |
+
|
28 |
+
get_property(CLANG_EXPORTS GLOBAL PROPERTY CLANG_EXPORTS)
|
29 |
+
diff --git a/flang/cmake/modules/CMakeLists.txt b/flang/cmake/modules/CMakeLists.txt
|
30 |
+
index e46498a6bc35..2e922f8ca89d 100644
|
31 |
+
--- a/flang/cmake/modules/CMakeLists.txt
|
32 |
+
+++ b/flang/cmake/modules/CMakeLists.txt
|
33 |
+
@@ -1,11 +1,11 @@
|
34 |
+
# Generate a list of CMake library targets so that other CMake projects can
|
35 |
+
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
36 |
+
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
37 |
+
-set(FLANG_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/flang)
|
38 |
+
+set(FLANG_INSTALL_PACKAGE_DIR share/flang)
|
39 |
+
set(flang_cmake_builddir "${CMAKE_BINARY_DIR}/${FLANG_INSTALL_PACKAGE_DIR}")
|
40 |
+
|
41 |
+
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
42 |
+
-set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
|
43 |
+
+set(LLVM_INSTALL_PACKAGE_DIR share/llvm)
|
44 |
+
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
|
45 |
+
|
46 |
+
get_property(FLANG_EXPORTS GLOBAL PROPERTY FLANG_EXPORTS)
|
47 |
+
diff --git a/lld/cmake/modules/CMakeLists.txt b/lld/cmake/modules/CMakeLists.txt
|
48 |
+
index 62d03fa901dd..09b0f54ee8c3 100644
|
49 |
+
--- a/lld/cmake/modules/CMakeLists.txt
|
50 |
+
+++ b/lld/cmake/modules/CMakeLists.txt
|
51 |
+
@@ -1,11 +1,11 @@
|
52 |
+
# Generate a list of CMake library targets so that other CMake projects can
|
53 |
+
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
54 |
+
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
55 |
+
-set(LLD_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/lld)
|
56 |
+
+set(LLD_INSTALL_PACKAGE_DIR share/lld)
|
57 |
+
set(lld_cmake_builddir "${CMAKE_BINARY_DIR}/${LLD_INSTALL_PACKAGE_DIR}")
|
58 |
+
|
59 |
+
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
60 |
+
-set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
|
61 |
+
+set(LLVM_INSTALL_PACKAGE_DIR share/llvm)
|
62 |
+
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
|
63 |
+
|
64 |
+
get_property(LLD_EXPORTS GLOBAL PROPERTY LLD_EXPORTS)
|
65 |
+
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
|
66 |
+
index 29e40f45fef8..e9094e9b8eb2 100644
|
67 |
+
--- a/llvm/cmake/modules/AddLLVM.cmake
|
68 |
+
+++ b/llvm/cmake/modules/AddLLVM.cmake
|
69 |
+
@@ -1033,7 +1033,7 @@ function(process_llvm_pass_plugins)
|
70 |
+
|
71 |
+
## Part 1: Extension header to be included whenever we need extension
|
72 |
+
# processing.
|
73 |
+
- set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
|
74 |
+
+ set(LLVM_INSTALL_PACKAGE_DIR share/llvm)
|
75 |
+
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
|
76 |
+
file(WRITE
|
77 |
+
"${llvm_cmake_builddir}/LLVMConfigExtensions.cmake"
|
78 |
+
diff --git a/llvm/cmake/modules/CMakeLists.txt b/llvm/cmake/modules/CMakeLists.txt
|
79 |
+
index 51b6a4fdc284..a818de2e116c 100644
|
80 |
+
--- a/llvm/cmake/modules/CMakeLists.txt
|
81 |
+
+++ b/llvm/cmake/modules/CMakeLists.txt
|
82 |
+
@@ -1,6 +1,6 @@
|
83 |
+
include(LLVMDistributionSupport)
|
84 |
+
|
85 |
+
-set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
|
86 |
+
+set(LLVM_INSTALL_PACKAGE_DIR share/llvm)
|
87 |
+
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
|
88 |
+
|
89 |
+
# First for users who use an installed LLVM, create the LLVMExports.cmake file.
|
90 |
+
diff --git a/mlir/cmake/modules/CMakeLists.txt b/mlir/cmake/modules/CMakeLists.txt
|
91 |
+
index 65efc4a14987..7c3213ab0c2b 100644
|
92 |
+
--- a/mlir/cmake/modules/CMakeLists.txt
|
93 |
+
+++ b/mlir/cmake/modules/CMakeLists.txt
|
94 |
+
@@ -3,11 +3,11 @@ include(LLVMDistributionSupport)
|
95 |
+
# Generate a list of CMake library targets so that other CMake projects can
|
96 |
+
# link against them. LLVM calls its version of this file LLVMExports.cmake, but
|
97 |
+
# the usual CMake convention seems to be ${Project}Targets.cmake.
|
98 |
+
-set(MLIR_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/mlir)
|
99 |
+
+set(MLIR_INSTALL_PACKAGE_DIR share/mlir)
|
100 |
+
set(mlir_cmake_builddir "${CMAKE_BINARY_DIR}/${MLIR_INSTALL_PACKAGE_DIR}")
|
101 |
+
|
102 |
+
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
103 |
+
-set(LLVM_INSTALL_PACKAGE_DIR lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm)
|
104 |
+
+set(LLVM_INSTALL_PACKAGE_DIR share/llvm)
|
105 |
+
set(llvm_cmake_builddir "${LLVM_BINARY_DIR}/${LLVM_INSTALL_PACKAGE_DIR}")
|
106 |
+
|
107 |
+
get_property(MLIR_EXPORTS GLOBAL PROPERTY MLIR_EXPORTS)
|
108 |
+
diff --git a/polly/cmake/CMakeLists.txt b/polly/cmake/CMakeLists.txt
|
109 |
+
index 7cc129ba2e90..9776391cd535 100644
|
110 |
+
--- a/polly/cmake/CMakeLists.txt
|
111 |
+
+++ b/polly/cmake/CMakeLists.txt
|
112 |
+
@@ -1,7 +1,7 @@
|
113 |
+
# Keep this in sync with llvm/cmake/CMakeLists.txt!
|
114 |
+
|
115 |
+
-set(LLVM_INSTALL_PACKAGE_DIR "lib${LLVM_LIBDIR_SUFFIX}/cmake/llvm")
|
116 |
+
-set(POLLY_INSTALL_PACKAGE_DIR "lib${LLVM_LIBDIR_SUFFIX}/cmake/polly")
|
117 |
+
+set(LLVM_INSTALL_PACKAGE_DIR share/llvm)
|
118 |
+
+set(POLLY_INSTALL_PACKAGE_DIR share/polly)
|
119 |
+
if (CMAKE_CONFIGURATION_TYPES)
|
120 |
+
set(POLLY_EXPORTS_FILE_NAME "PollyExports-$<LOWER_CASE:$<CONFIG>>.cmake")
|
121 |
+
else()
|
122 |
+
diff --git a/pstl/CMakeLists.txt b/pstl/CMakeLists.txt
|
123 |
+
index 8bea8843589b..3658c0a4414a 100644
|
124 |
+
--- a/pstl/CMakeLists.txt
|
125 |
+
+++ b/pstl/CMakeLists.txt
|
126 |
+
@@ -81,10 +81,10 @@ install(TARGETS ParallelSTL
|
127 |
+
install(EXPORT ParallelSTLTargets
|
128 |
+
FILE ParallelSTLTargets.cmake
|
129 |
+
NAMESPACE pstl::
|
130 |
+
- DESTINATION lib/cmake/ParallelSTL)
|
131 |
+
+ DESTINATION share/ParallelSTL)
|
132 |
+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ParallelSTLConfig.cmake"
|
133 |
+
"${CMAKE_CURRENT_BINARY_DIR}/ParallelSTLConfigVersion.cmake"
|
134 |
+
- DESTINATION lib/cmake/ParallelSTL)
|
135 |
+
+ DESTINATION share/ParallelSTL)
|
136 |
+
install(DIRECTORY include/
|
137 |
+
DESTINATION include
|
138 |
+
PATTERN "*.in" EXCLUDE)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0003-fix-openmp-debug.patch
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
openmp/runtime/src/CMakeLists.txt | 4 ++--
|
2 |
+
1 file changed, 2 insertions(+), 2 deletions(-)
|
3 |
+
|
4 |
+
diff --git a/openmp/runtime/src/CMakeLists.txt b/openmp/runtime/src/CMakeLists.txt
|
5 |
+
index bdb867e352f7..16a13fa959ea 100644
|
6 |
+
--- a/openmp/runtime/src/CMakeLists.txt
|
7 |
+
+++ b/openmp/runtime/src/CMakeLists.txt
|
8 |
+
@@ -159,7 +159,7 @@ else()
|
9 |
+
endif()
|
10 |
+
|
11 |
+
set_target_properties(omp PROPERTIES
|
12 |
+
- PREFIX "" SUFFIX "" OUTPUT_NAME "${LIBOMP_LIB_FILE}"
|
13 |
+
+ PREFIX "" SUFFIX "" OUTPUT_NAME "${LIBOMP_LIB_FILE}" DEBUG_POSTFIX ""
|
14 |
+
LINK_FLAGS "${LIBOMP_CONFIGURED_LDFLAGS}"
|
15 |
+
LINKER_LANGUAGE ${LIBOMP_LINKER_LANGUAGE}
|
16 |
+
)
|
17 |
+
@@ -236,7 +236,7 @@ if(WIN32)
|
18 |
+
# Create new import library that is just the previously created one + kmp_import.cpp
|
19 |
+
add_library(ompimp STATIC ${LIBOMP_GENERATED_IMP_LIB} kmp_import.cpp)
|
20 |
+
set_target_properties(ompimp PROPERTIES
|
21 |
+
- PREFIX "" SUFFIX "" OUTPUT_NAME "${LIBOMP_IMP_LIB_FILE}"
|
22 |
+
+ PREFIX "" SUFFIX "" OUTPUT_NAME "${LIBOMP_IMP_LIB_FILE}" DEBUG_POSTFIX ""
|
23 |
+
LINKER_LANGUAGE C
|
24 |
+
)
|
25 |
+
add_dependencies(ompimp omp) # ensure generated import library is created first
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0004-fix-dr-1734.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
llvm/include/llvm/Support/type_traits.h | 3 ++-
|
2 |
+
1 file changed, 2 insertions(+), 1 deletion(-)
|
3 |
+
|
4 |
+
diff --git a/llvm/include/llvm/Support/type_traits.h b/llvm/include/llvm/Support/type_traits.h
|
5 |
+
index 7b7d5d991f3f..469b681deea3 100644
|
6 |
+
--- a/llvm/include/llvm/Support/type_traits.h
|
7 |
+
+++ b/llvm/include/llvm/Support/type_traits.h
|
8 |
+
@@ -176,7 +176,8 @@ class is_trivially_copyable {
|
9 |
+
(has_deleted_copy_assign || has_trivial_copy_assign) &&
|
10 |
+
(has_deleted_copy_constructor || has_trivial_copy_constructor);
|
11 |
+
|
12 |
+
-#ifdef HAVE_STD_IS_TRIVIALLY_COPYABLE
|
13 |
+
+// due to DR 1734, a type can be std::is_trivially_copyable but not llvm::is_trivially_copyable
|
14 |
+
+#if 0
|
15 |
+
static_assert(value == std::is_trivially_copyable<T>::value,
|
16 |
+
"inconsistent behavior between llvm:: and std:: implementation of is_trivially_copyable");
|
17 |
+
#endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0005-fix-tools-path.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 1a2f04552d13..9370c5e28206 100644
|
6 |
+
--- a/llvm/tools/llvm-config/llvm-config.cpp
|
7 |
+
+++ b/llvm/tools/llvm-config/llvm-config.cpp
|
8 |
+
@@ -305,7 +305,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).
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0007-fix-compiler-rt-install-path.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clang/lib/Headers/CMakeLists.txt | 2 +-
|
2 |
+
clang/runtime/CMakeLists.txt | 2 +-
|
3 |
+
compiler-rt/cmake/base-config-ix.cmake | 2 +-
|
4 |
+
3 files changed, 3 insertions(+), 3 deletions(-)
|
5 |
+
|
6 |
+
diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt
|
7 |
+
index 8131f6005dc2..9afef2e5a4e7 100644
|
8 |
+
--- a/clang/lib/Headers/CMakeLists.txt
|
9 |
+
+++ b/clang/lib/Headers/CMakeLists.txt
|
10 |
+
@@ -222,7 +222,7 @@ set_target_properties(clang-resource-headers PROPERTIES
|
11 |
+
FOLDER "Misc"
|
12 |
+
RUNTIME_OUTPUT_DIRECTORY "${output_dir}")
|
13 |
+
|
14 |
+
-set(header_install_dir lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
|
15 |
+
+set(header_install_dir tools/llvm/lib/clang/${CLANG_VERSION}/include)
|
16 |
+
|
17 |
+
install(
|
18 |
+
FILES ${files} ${generated_files}
|
19 |
+
diff --git a/clang/runtime/CMakeLists.txt b/clang/runtime/CMakeLists.txt
|
20 |
+
index 61b1c60bf590..c20a5a326f15 100644
|
21 |
+
--- a/clang/runtime/CMakeLists.txt
|
22 |
+
+++ b/clang/runtime/CMakeLists.txt
|
23 |
+
@@ -82,7 +82,7 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
|
24 |
+
-DLLVM_LIT_ARGS=${LLVM_LIT_ARGS}
|
25 |
+
-DCOMPILER_RT_OUTPUT_DIR=${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION}
|
26 |
+
-DCOMPILER_RT_EXEC_OUTPUT_DIR=${LLVM_RUNTIME_OUTPUT_INTDIR}
|
27 |
+
- -DCOMPILER_RT_INSTALL_PATH:PATH=lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}
|
28 |
+
+ -DCOMPILER_RT_INSTALL_PATH:PATH=tools/llvm/lib/clang/${CLANG_VERSION}
|
29 |
+
-DCOMPILER_RT_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
|
30 |
+
-DCMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}
|
31 |
+
-DLLVM_LIBDIR_SUFFIX=${LLVM_LIBDIR_SUFFIX}
|
32 |
+
diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake
|
33 |
+
index c11342e68813..61bb52135c43 100644
|
34 |
+
--- a/compiler-rt/cmake/base-config-ix.cmake
|
35 |
+
+++ b/compiler-rt/cmake/base-config-ix.cmake
|
36 |
+
@@ -42,7 +42,7 @@ if (LLVM_TREE_AVAILABLE)
|
37 |
+
# Setup the paths where compiler-rt runtimes and headers should be stored.
|
38 |
+
set(COMPILER_RT_OUTPUT_DIR ${LLVM_LIBRARY_OUTPUT_INTDIR}/clang/${CLANG_VERSION})
|
39 |
+
set(COMPILER_RT_EXEC_OUTPUT_DIR ${LLVM_RUNTIME_OUTPUT_INTDIR})
|
40 |
+
- set(COMPILER_RT_INSTALL_PATH lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION})
|
41 |
+
+ set(COMPILER_RT_INSTALL_PATH tools/llvm/lib/clang/${CLANG_VERSION})
|
42 |
+
option(COMPILER_RT_INCLUDE_TESTS "Generate and build compiler-rt unit tests."
|
43 |
+
${LLVM_INCLUDE_TESTS})
|
44 |
+
option(COMPILER_RT_ENABLE_WERROR "Fail and stop if warning is triggered"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0009-fix-tools-install-path.patch
ADDED
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clang-tools-extra/modularize/CMakeLists.txt | 2 +-
|
2 |
+
clang/cmake/modules/AddClang.cmake | 2 +-
|
3 |
+
clang/tools/c-index-test/CMakeLists.txt | 2 +-
|
4 |
+
clang/tools/clang-format/CMakeLists.txt | 2 +-
|
5 |
+
clang/tools/scan-build/CMakeLists.txt | 2 +-
|
6 |
+
clang/tools/scan-view/CMakeLists.txt | 2 +-
|
7 |
+
clang/utils/hmaptool/CMakeLists.txt | 2 +-
|
8 |
+
flang/cmake/modules/AddFlang.cmake | 2 +-
|
9 |
+
flang/tools/f18/CMakeLists.txt | 4 ++--
|
10 |
+
flang/tools/flang-driver/CMakeLists.txt | 2 +-
|
11 |
+
lld/cmake/modules/AddLLD.cmake | 2 +-
|
12 |
+
lld/tools/lld/CMakeLists.txt | 2 +-
|
13 |
+
lldb/cmake/modules/AddLLDB.cmake | 2 +-
|
14 |
+
13 files changed, 14 insertions(+), 14 deletions(-)
|
15 |
+
|
16 |
+
diff --git a/clang-tools-extra/modularize/CMakeLists.txt b/clang-tools-extra/modularize/CMakeLists.txt
|
17 |
+
index 4caae81c49b6..8c459c51cc34 100644
|
18 |
+
--- a/clang-tools-extra/modularize/CMakeLists.txt
|
19 |
+
+++ b/clang-tools-extra/modularize/CMakeLists.txt
|
20 |
+
@@ -23,5 +23,5 @@ clang_target_link_libraries(modularize
|
21 |
+
)
|
22 |
+
|
23 |
+
install(TARGETS modularize
|
24 |
+
- RUNTIME DESTINATION bin
|
25 |
+
+ RUNTIME DESTINATION tools/llvm
|
26 |
+
COMPONENT clang-extras)
|
27 |
+
diff --git a/clang/cmake/modules/AddClang.cmake b/clang/cmake/modules/AddClang.cmake
|
28 |
+
index 5752f4277444..00b7d21b8fef 100644
|
29 |
+
--- a/clang/cmake/modules/AddClang.cmake
|
30 |
+
+++ b/clang/cmake/modules/AddClang.cmake
|
31 |
+
@@ -159,7 +159,7 @@ macro(add_clang_tool name)
|
32 |
+
get_target_export_arg(${name} Clang export_to_clangtargets)
|
33 |
+
install(TARGETS ${name}
|
34 |
+
${export_to_clangtargets}
|
35 |
+
- RUNTIME DESTINATION bin
|
36 |
+
+ RUNTIME DESTINATION tools/llvm
|
37 |
+
COMPONENT ${name})
|
38 |
+
|
39 |
+
if(NOT LLVM_ENABLE_IDE)
|
40 |
+
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt
|
41 |
+
index ceef4b08637c..ce6d7799475b 100644
|
42 |
+
--- a/clang/tools/c-index-test/CMakeLists.txt
|
43 |
+
+++ b/clang/tools/c-index-test/CMakeLists.txt
|
44 |
+
@@ -54,7 +54,7 @@ if (NOT LLVM_INSTALL_TOOLCHAIN_ONLY)
|
45 |
+
set_property(TARGET c-index-test APPEND PROPERTY INSTALL_RPATH
|
46 |
+
"@executable_path/../../lib")
|
47 |
+
else()
|
48 |
+
- set(INSTALL_DESTINATION bin)
|
49 |
+
+ set(INSTALL_DESTINATION tools/llvm)
|
50 |
+
endif()
|
51 |
+
|
52 |
+
install(TARGETS c-index-test
|
53 |
+
diff --git a/clang/tools/clang-format/CMakeLists.txt b/clang/tools/clang-format/CMakeLists.txt
|
54 |
+
index 35ecdb11253c..d1b800dfdadc 100644
|
55 |
+
--- a/clang/tools/clang-format/CMakeLists.txt
|
56 |
+
+++ b/clang/tools/clang-format/CMakeLists.txt
|
57 |
+
@@ -36,5 +36,5 @@ install(PROGRAMS clang-format.py
|
58 |
+
DESTINATION share/clang
|
59 |
+
COMPONENT clang-format)
|
60 |
+
install(PROGRAMS git-clang-format
|
61 |
+
- DESTINATION bin
|
62 |
+
+ DESTINATION tools/llvm
|
63 |
+
COMPONENT clang-format)
|
64 |
+
diff --git a/clang/tools/scan-build/CMakeLists.txt b/clang/tools/scan-build/CMakeLists.txt
|
65 |
+
index ec0702d76f18..9a34a09921b1 100644
|
66 |
+
--- a/clang/tools/scan-build/CMakeLists.txt
|
67 |
+
+++ b/clang/tools/scan-build/CMakeLists.txt
|
68 |
+
@@ -47,7 +47,7 @@ if(CLANG_INSTALL_SCANBUILD)
|
69 |
+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
70 |
+
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
71 |
+
install(PROGRAMS bin/${BinFile}
|
72 |
+
- DESTINATION bin
|
73 |
+
+ DESTINATION tools/llvm
|
74 |
+
COMPONENT scan-build)
|
75 |
+
endforeach()
|
76 |
+
|
77 |
+
diff --git a/clang/tools/scan-view/CMakeLists.txt b/clang/tools/scan-view/CMakeLists.txt
|
78 |
+
index eccc6b83195b..232976c0c227 100644
|
79 |
+
--- a/clang/tools/scan-view/CMakeLists.txt
|
80 |
+
+++ b/clang/tools/scan-view/CMakeLists.txt
|
81 |
+
@@ -20,7 +20,7 @@ if(CLANG_INSTALL_SCANVIEW)
|
82 |
+
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/bin/${BinFile})
|
83 |
+
list(APPEND Depends ${CMAKE_BINARY_DIR}/bin/${BinFile})
|
84 |
+
install(PROGRAMS bin/${BinFile}
|
85 |
+
- DESTINATION bin
|
86 |
+
+ DESTINATION tools/llvm
|
87 |
+
COMPONENT scan-view)
|
88 |
+
endforeach()
|
89 |
+
|
90 |
+
diff --git a/clang/utils/hmaptool/CMakeLists.txt b/clang/utils/hmaptool/CMakeLists.txt
|
91 |
+
index 62f2de0cb15c..38dc821c76de 100644
|
92 |
+
--- a/clang/utils/hmaptool/CMakeLists.txt
|
93 |
+
+++ b/clang/utils/hmaptool/CMakeLists.txt
|
94 |
+
@@ -10,7 +10,7 @@ add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HM
|
95 |
+
|
96 |
+
list(APPEND Depends ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin/${CLANG_HMAPTOOL})
|
97 |
+
install(PROGRAMS ${CLANG_HMAPTOOL}
|
98 |
+
- DESTINATION bin
|
99 |
+
+ DESTINATION tools/llvm
|
100 |
+
COMPONENT hmaptool)
|
101 |
+
|
102 |
+
add_custom_target(hmaptool ALL DEPENDS ${Depends})
|
103 |
+
diff --git a/flang/cmake/modules/AddFlang.cmake b/flang/cmake/modules/AddFlang.cmake
|
104 |
+
index 5da58a59ed12..c019d7fc50a9 100644
|
105 |
+
--- a/flang/cmake/modules/AddFlang.cmake
|
106 |
+
+++ b/flang/cmake/modules/AddFlang.cmake
|
107 |
+
@@ -108,7 +108,7 @@ macro(add_flang_tool name)
|
108 |
+
get_target_export_arg(${name} Flang export_to_flangtargets)
|
109 |
+
install(TARGETS ${name}
|
110 |
+
${export_to_flangtargets}
|
111 |
+
- RUNTIME DESTINATION bin
|
112 |
+
+ RUNTIME DESTINATION tools/llvm
|
113 |
+
COMPONENT ${name})
|
114 |
+
|
115 |
+
if(NOT LLVM_ENABLE_IDE)
|
116 |
+
diff --git a/flang/tools/f18/CMakeLists.txt b/flang/tools/f18/CMakeLists.txt
|
117 |
+
index 239859b5e5b9..12d00f904f8a 100644
|
118 |
+
--- a/flang/tools/f18/CMakeLists.txt
|
119 |
+
+++ b/flang/tools/f18/CMakeLists.txt
|
120 |
+
@@ -60,7 +60,7 @@ endforeach()
|
121 |
+
|
122 |
+
add_custom_target(module_files ALL DEPENDS ${MODULE_FILES})
|
123 |
+
|
124 |
+
-install(TARGETS f18 DESTINATION bin)
|
125 |
+
+install(TARGETS f18 DESTINATION tools/llvm)
|
126 |
+
|
127 |
+
set(FLANG_DEFAULT_DRIVER "flang-new")
|
128 |
+
if (NOT FLANG_BUILD_NEW_DRIVER)
|
129 |
+
@@ -70,5 +70,5 @@ endif()
|
130 |
+
# This flang shell script will only work in a POSIX shell.
|
131 |
+
if (NOT WIN32)
|
132 |
+
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/flang.in ${CMAKE_BINARY_DIR}/bin/flang @ONLY)
|
133 |
+
- install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang DESTINATION bin)
|
134 |
+
+ install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/flang DESTINATION tools/llvm)
|
135 |
+
endif()
|
136 |
+
diff --git a/flang/tools/flang-driver/CMakeLists.txt b/flang/tools/flang-driver/CMakeLists.txt
|
137 |
+
index 4c7ad220d223..f4206913e76f 100644
|
138 |
+
--- a/flang/tools/flang-driver/CMakeLists.txt
|
139 |
+
+++ b/flang/tools/flang-driver/CMakeLists.txt
|
140 |
+
@@ -27,4 +27,4 @@ clang_target_link_libraries(flang-new
|
141 |
+
clangBasic
|
142 |
+
)
|
143 |
+
|
144 |
+
-install(TARGETS flang-new DESTINATION bin)
|
145 |
+
+install(TARGETS flang-new DESTINATION tools/llvm)
|
146 |
+
diff --git a/lld/cmake/modules/AddLLD.cmake b/lld/cmake/modules/AddLLD.cmake
|
147 |
+
index 9883475d1aa5..48e46586f387 100644
|
148 |
+
--- a/lld/cmake/modules/AddLLD.cmake
|
149 |
+
+++ b/lld/cmake/modules/AddLLD.cmake
|
150 |
+
@@ -46,7 +46,7 @@ macro(add_lld_tool name)
|
151 |
+
get_target_export_arg(${name} LLD export_to_lldtargets)
|
152 |
+
install(TARGETS ${name}
|
153 |
+
${export_to_lldtargets}
|
154 |
+
- RUNTIME DESTINATION bin
|
155 |
+
+ RUNTIME DESTINATION tools/llvm
|
156 |
+
COMPONENT ${name})
|
157 |
+
|
158 |
+
if(NOT CMAKE_CONFIGURATION_TYPES)
|
159 |
+
diff --git a/lld/tools/lld/CMakeLists.txt b/lld/tools/lld/CMakeLists.txt
|
160 |
+
index e77b2161a873..b325b934640c 100644
|
161 |
+
--- a/lld/tools/lld/CMakeLists.txt
|
162 |
+
+++ b/lld/tools/lld/CMakeLists.txt
|
163 |
+
@@ -21,7 +21,7 @@ target_link_libraries(lld
|
164 |
+
)
|
165 |
+
|
166 |
+
install(TARGETS lld
|
167 |
+
- RUNTIME DESTINATION bin)
|
168 |
+
+ RUNTIME DESTINATION tools/llvm)
|
169 |
+
|
170 |
+
if(NOT LLD_SYMLINKS_TO_CREATE)
|
171 |
+
set(LLD_SYMLINKS_TO_CREATE
|
172 |
+
diff --git a/lldb/cmake/modules/AddLLDB.cmake b/lldb/cmake/modules/AddLLDB.cmake
|
173 |
+
index 8be214a8509a..4a5d0fa39be3 100644
|
174 |
+
--- a/lldb/cmake/modules/AddLLDB.cmake
|
175 |
+
+++ b/lldb/cmake/modules/AddLLDB.cmake
|
176 |
+
@@ -187,7 +187,7 @@ function(add_lldb_executable name)
|
177 |
+
endif()
|
178 |
+
|
179 |
+
if(ARG_GENERATE_INSTALL)
|
180 |
+
- set(install_dest bin)
|
181 |
+
+ set(install_dest tools/llvm)
|
182 |
+
if(ARG_INSTALL_PREFIX)
|
183 |
+
set(install_dest ${ARG_INSTALL_PREFIX})
|
184 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0010-fix-libffi.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
llvm/cmake/config-ix.cmake | 2 +-
|
2 |
+
1 file changed, 1 insertion(+), 1 deletion(-)
|
3 |
+
|
4 |
+
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
|
5 |
+
index dd0aaadb47c7..279435b5b27d 100644
|
6 |
+
--- a/llvm/cmake/config-ix.cmake
|
7 |
+
+++ b/llvm/cmake/config-ix.cmake
|
8 |
+
@@ -343,7 +343,7 @@ if( LLVM_ENABLE_FFI )
|
9 |
+
message(FATAL_ERROR "libffi includes are not found.")
|
10 |
+
endif()
|
11 |
+
|
12 |
+
- find_library(FFI_LIBRARY_PATH ffi PATHS ${FFI_LIBRARY_DIR})
|
13 |
+
+ find_library(FFI_LIBRARY_PATH NAMES ffi libffi PATHS ${FFI_LIBRARY_DIR})
|
14 |
+
if( NOT FFI_LIBRARY_PATH )
|
15 |
+
message(FATAL_ERROR "libffi is not found.")
|
16 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/0011-fix-libxml2.patch
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
clang/tools/c-index-test/CMakeLists.txt | 6 +-----
|
2 |
+
lldb/cmake/modules/LLDBConfig.cmake | 2 +-
|
3 |
+
2 files changed, 2 insertions(+), 6 deletions(-)
|
4 |
+
|
5 |
+
diff --git a/clang/tools/c-index-test/CMakeLists.txt b/clang/tools/c-index-test/CMakeLists.txt
|
6 |
+
index ceef4b08637c..40b9e995597f 100644
|
7 |
+
--- a/clang/tools/c-index-test/CMakeLists.txt
|
8 |
+
+++ b/clang/tools/c-index-test/CMakeLists.txt
|
9 |
+
@@ -40,11 +40,7 @@ set_target_properties(c-index-test
|
10 |
+
|
11 |
+
# If libxml2 is available, make it available for c-index-test.
|
12 |
+
if (CLANG_HAVE_LIBXML)
|
13 |
+
- if ((CMAKE_OSX_SYSROOT) AND (EXISTS ${CMAKE_OSX_SYSROOT}/${LIBXML2_INCLUDE_DIR}))
|
14 |
+
- include_directories(SYSTEM ${CMAKE_OSX_SYSROOT}/${LIBXML2_INCLUDE_DIR})
|
15 |
+
- else()
|
16 |
+
- include_directories(SYSTEM ${LIBXML2_INCLUDE_DIR})
|
17 |
+
- endif()
|
18 |
+
+ include_directories(SYSTEM ${LIBXML2_INCLUDE_DIRS})
|
19 |
+
target_link_libraries(c-index-test PRIVATE ${LIBXML2_LIBRARIES})
|
20 |
+
endif()
|
21 |
+
|
22 |
+
diff --git a/lldb/cmake/modules/LLDBConfig.cmake b/lldb/cmake/modules/LLDBConfig.cmake
|
23 |
+
index b62cd7d24438..a8c78ee1bccd 100644
|
24 |
+
--- a/lldb/cmake/modules/LLDBConfig.cmake
|
25 |
+
+++ b/lldb/cmake/modules/LLDBConfig.cmake
|
26 |
+
@@ -215,7 +215,7 @@ if (LLDB_ENABLE_LZMA)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if (LLDB_ENABLE_LIBXML2)
|
30 |
+
- include_directories(${LIBXML2_INCLUDE_DIR})
|
31 |
+
+ include_directories(${LIBXML2_INCLUDE_DIRS})
|
32 |
+
endif()
|
33 |
+
|
34 |
+
include_directories(BEFORE
|
third-party/DPVO/Pangolin/scripts/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 ...)
|
third-party/DPVO/Pangolin/scripts/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 ...)
|
third-party/DPVO/Pangolin/scripts/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 ...)
|
third-party/DPVO/Pangolin/scripts/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})
|
third-party/DPVO/Pangolin/scripts/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 ...)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/portfile.cmake
ADDED
@@ -0,0 +1,333 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(LLVM_VERSION "13.0.0")
|
2 |
+
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO llvm/llvm-project
|
8 |
+
REF llvmorg-${LLVM_VERSION}
|
9 |
+
SHA512 8004c05d32b9720fb3391783621690c1df9bd1e97e72cbff9192ed88a84b0acd303b61432145fa917b5b5e548c8cee29b24ef8547dcc8677adf4816e7a8a0eb2
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
0002-fix-install-paths.patch # This patch fixes paths in ClangConfig.cmake, LLVMConfig.cmake, LLDConfig.cmake etc.
|
13 |
+
0003-fix-openmp-debug.patch
|
14 |
+
0004-fix-dr-1734.patch
|
15 |
+
0005-fix-tools-path.patch
|
16 |
+
0007-fix-compiler-rt-install-path.patch
|
17 |
+
0009-fix-tools-install-path.patch
|
18 |
+
0010-fix-libffi.patch
|
19 |
+
0011-fix-libxml2.patch
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_check_features(
|
23 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
24 |
+
FEATURES
|
25 |
+
tools LLVM_BUILD_TOOLS
|
26 |
+
tools LLVM_INCLUDE_TOOLS
|
27 |
+
utils LLVM_BUILD_UTILS
|
28 |
+
utils LLVM_INCLUDE_UTILS
|
29 |
+
utils LLVM_INSTALL_UTILS
|
30 |
+
enable-rtti LLVM_ENABLE_RTTI
|
31 |
+
enable-ffi LLVM_ENABLE_FFI
|
32 |
+
enable-terminfo LLVM_ENABLE_TERMINFO
|
33 |
+
enable-threads LLVM_ENABLE_THREADS
|
34 |
+
enable-eh LLVM_ENABLE_EH
|
35 |
+
enable-bindings LLVM_ENABLE_BINDINGS
|
36 |
+
)
|
37 |
+
|
38 |
+
# LLVM generates CMake error due to Visual Studio version 16.4 is known to miscompile part of LLVM.
|
39 |
+
# LLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON disables this error.
|
40 |
+
# See https://developercommunity.visualstudio.com/content/problem/845933/miscompile-boolean-condition-deduced-to-be-always.html
|
41 |
+
# and thread "[llvm-dev] Longstanding failing tests - clang-tidy, MachO, Polly" on llvm-dev Jan 21-23 2020.
|
42 |
+
list(APPEND FEATURE_OPTIONS
|
43 |
+
-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
|
44 |
+
)
|
45 |
+
|
46 |
+
# Force enable or disable external libraries
|
47 |
+
set(llvm_external_libraries
|
48 |
+
zlib
|
49 |
+
libxml2
|
50 |
+
)
|
51 |
+
foreach(external_library IN LISTS llvm_external_libraries)
|
52 |
+
string(TOLOWER "enable-${external_library}" feature_name)
|
53 |
+
string(TOUPPER "LLVM_ENABLE_${external_library}" define_name)
|
54 |
+
if(feature_name IN_LIST FEATURES)
|
55 |
+
list(APPEND FEATURE_OPTIONS
|
56 |
+
-D${define_name}=FORCE_ON
|
57 |
+
)
|
58 |
+
else()
|
59 |
+
list(APPEND FEATURE_OPTIONS
|
60 |
+
-D${define_name}=OFF
|
61 |
+
)
|
62 |
+
endif()
|
63 |
+
endforeach()
|
64 |
+
|
65 |
+
# By default assertions are enabled for Debug configuration only.
|
66 |
+
if("enable-assertions" IN_LIST FEATURES)
|
67 |
+
# Force enable assertions for all configurations.
|
68 |
+
list(APPEND FEATURE_OPTIONS
|
69 |
+
-DLLVM_ENABLE_ASSERTIONS=ON
|
70 |
+
)
|
71 |
+
elseif("disable-assertions" IN_LIST FEATURES)
|
72 |
+
# Force disable assertions for all configurations.
|
73 |
+
list(APPEND FEATURE_OPTIONS
|
74 |
+
-DLLVM_ENABLE_ASSERTIONS=OFF
|
75 |
+
)
|
76 |
+
endif()
|
77 |
+
|
78 |
+
# LLVM_ABI_BREAKING_CHECKS can be WITH_ASSERTS (default), FORCE_ON or FORCE_OFF.
|
79 |
+
# By default abi-breaking checks are enabled if assertions are enabled.
|
80 |
+
if("enable-abi-breaking-checks" IN_LIST FEATURES)
|
81 |
+
# Force enable abi-breaking checks.
|
82 |
+
list(APPEND FEATURE_OPTIONS
|
83 |
+
-DLLVM_ABI_BREAKING_CHECKS=FORCE_ON
|
84 |
+
)
|
85 |
+
elseif("disable-abi-breaking-checks" IN_LIST FEATURES)
|
86 |
+
# Force disable abi-breaking checks.
|
87 |
+
list(APPEND FEATURE_OPTIONS
|
88 |
+
-DLLVM_ABI_BREAKING_CHECKS=FORCE_OFF
|
89 |
+
)
|
90 |
+
endif()
|
91 |
+
|
92 |
+
set(LLVM_ENABLE_PROJECTS)
|
93 |
+
if("clang" IN_LIST FEATURES OR "clang-tools-extra" IN_LIST FEATURES)
|
94 |
+
list(APPEND LLVM_ENABLE_PROJECTS "clang")
|
95 |
+
if("disable-clang-static-analyzer" IN_LIST FEATURES)
|
96 |
+
list(APPEND FEATURE_OPTIONS
|
97 |
+
# Disable ARCMT
|
98 |
+
-DCLANG_ENABLE_ARCMT=OFF
|
99 |
+
# Disable static analyzer
|
100 |
+
-DCLANG_ENABLE_STATIC_ANALYZER=OFF
|
101 |
+
)
|
102 |
+
endif()
|
103 |
+
# 1) LLVM/Clang tools are relocated from ./bin/ to ./tools/llvm/ (LLVM_TOOLS_INSTALL_DIR=tools/llvm)
|
104 |
+
# 2) Clang resource files are relocated from ./lib/clang/<version> to ./tools/llvm/lib/clang/<version> (see patch 0007-fix-compiler-rt-install-path.patch)
|
105 |
+
# So, the relative path should be changed from ../lib/clang/<version> to ./lib/clang/<version>
|
106 |
+
list(APPEND FEATURE_OPTIONS -DCLANG_RESOURCE_DIR=lib/clang/${LLVM_VERSION})
|
107 |
+
endif()
|
108 |
+
if("clang-tools-extra" IN_LIST FEATURES)
|
109 |
+
list(APPEND LLVM_ENABLE_PROJECTS "clang-tools-extra")
|
110 |
+
endif()
|
111 |
+
if("compiler-rt" IN_LIST FEATURES)
|
112 |
+
list(APPEND LLVM_ENABLE_PROJECTS "compiler-rt")
|
113 |
+
endif()
|
114 |
+
if("flang" IN_LIST FEATURES)
|
115 |
+
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
116 |
+
message(FATAL_ERROR "Building Flang with MSVC is not supported on x86. Disable it until issues are fixed.")
|
117 |
+
endif()
|
118 |
+
list(APPEND LLVM_ENABLE_PROJECTS "flang")
|
119 |
+
list(APPEND FEATURE_OPTIONS
|
120 |
+
# Flang requires C++17
|
121 |
+
-DCMAKE_CXX_STANDARD=17
|
122 |
+
)
|
123 |
+
endif()
|
124 |
+
if("libclc" IN_LIST FEATURES)
|
125 |
+
list(APPEND LLVM_ENABLE_PROJECTS "libclc")
|
126 |
+
endif()
|
127 |
+
if("libcxx" IN_LIST FEATURES)
|
128 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
129 |
+
message(FATAL_ERROR "Building libcxx with MSVC is not supported. Disable it until issues are fixed.")
|
130 |
+
endif()
|
131 |
+
list(APPEND LLVM_ENABLE_PROJECTS "libcxx")
|
132 |
+
endif()
|
133 |
+
if("libcxxabi" IN_LIST FEATURES)
|
134 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
135 |
+
message(FATAL_ERROR "Building libcxxabi with MSVC is not supported. Disable it until issues are fixed.")
|
136 |
+
endif()
|
137 |
+
list(APPEND LLVM_ENABLE_PROJECTS "libcxxabi")
|
138 |
+
endif()
|
139 |
+
if("libunwind" IN_LIST FEATURES)
|
140 |
+
list(APPEND LLVM_ENABLE_PROJECTS "libunwind")
|
141 |
+
endif()
|
142 |
+
if("lld" IN_LIST FEATURES)
|
143 |
+
list(APPEND LLVM_ENABLE_PROJECTS "lld")
|
144 |
+
endif()
|
145 |
+
if("lldb" IN_LIST FEATURES)
|
146 |
+
list(APPEND LLVM_ENABLE_PROJECTS "lldb")
|
147 |
+
endif()
|
148 |
+
if("mlir" IN_LIST FEATURES)
|
149 |
+
list(APPEND LLVM_ENABLE_PROJECTS "mlir")
|
150 |
+
endif()
|
151 |
+
if("openmp" IN_LIST FEATURES)
|
152 |
+
# Disable OpenMP on Windows (see https://bugs.llvm.org/show_bug.cgi?id=45074).
|
153 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
154 |
+
message(FATAL_ERROR "Building OpenMP with MSVC is not supported. Disable it until issues are fixed.")
|
155 |
+
endif()
|
156 |
+
list(APPEND LLVM_ENABLE_PROJECTS "openmp")
|
157 |
+
# Perl is required for the OpenMP run-time
|
158 |
+
vcpkg_find_acquire_program(PERL)
|
159 |
+
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
160 |
+
vcpkg_add_to_path(${PERL_PATH})
|
161 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
162 |
+
list(APPEND FEATURE_OPTIONS
|
163 |
+
-DLIBOMP_DEFAULT_LIB_NAME=libompd
|
164 |
+
)
|
165 |
+
endif()
|
166 |
+
endif()
|
167 |
+
if("parallel-libs" IN_LIST FEATURES)
|
168 |
+
list(APPEND LLVM_ENABLE_PROJECTS "parallel-libs")
|
169 |
+
endif()
|
170 |
+
if("polly" IN_LIST FEATURES)
|
171 |
+
list(APPEND LLVM_ENABLE_PROJECTS "polly")
|
172 |
+
endif()
|
173 |
+
if("pstl" IN_LIST FEATURES)
|
174 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
175 |
+
message(FATAL_ERROR "Building pstl with MSVC is not supported. Disable it until issues are fixed.")
|
176 |
+
endif()
|
177 |
+
list(APPEND LLVM_ENABLE_PROJECTS "pstl")
|
178 |
+
endif()
|
179 |
+
|
180 |
+
set(known_llvm_targets
|
181 |
+
AArch64
|
182 |
+
AMDGPU
|
183 |
+
ARM
|
184 |
+
AVR
|
185 |
+
BPF
|
186 |
+
Hexagon
|
187 |
+
Lanai
|
188 |
+
Mips
|
189 |
+
MSP430
|
190 |
+
NVPTX
|
191 |
+
PowerPC
|
192 |
+
RISCV
|
193 |
+
Sparc
|
194 |
+
SystemZ
|
195 |
+
WebAssembly
|
196 |
+
X86
|
197 |
+
XCore
|
198 |
+
)
|
199 |
+
|
200 |
+
set(LLVM_TARGETS_TO_BUILD "")
|
201 |
+
foreach(llvm_target IN LISTS known_llvm_targets)
|
202 |
+
string(TOLOWER "target-${llvm_target}" feature_name)
|
203 |
+
if(feature_name IN_LIST FEATURES)
|
204 |
+
list(APPEND LLVM_TARGETS_TO_BUILD "${llvm_target}")
|
205 |
+
endif()
|
206 |
+
endforeach()
|
207 |
+
|
208 |
+
vcpkg_find_acquire_program(PYTHON3)
|
209 |
+
get_filename_component(PYTHON3_DIR ${PYTHON3} DIRECTORY)
|
210 |
+
vcpkg_add_to_path(${PYTHON3_DIR})
|
211 |
+
|
212 |
+
if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "${VCPKG_DETECTED_CMAKE_SYSTEM_PROCESSOR}")
|
213 |
+
# TODO: support more targets and OS
|
214 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
215 |
+
if(VCPKG_TARGET_IS_OSX)
|
216 |
+
list(APPEND CROSS_OPTIONS -DLLVM_HOST_TRIPLE=arm64-apple-darwin20.3.0)
|
217 |
+
list(APPEND CROSS_OPTIONS -DLLVM_DEFAULT_TARGET_TRIPLE=arm64-apple-darwin20.3.0)
|
218 |
+
elseif(VCPKG_TARGET_IS_WINDOWS)
|
219 |
+
list(APPEND CROSS_OPTIONS -DLLVM_HOST_TRIPLE=arm64-pc-win32)
|
220 |
+
list(APPEND CROSS_OPTIONS -DLLVM_DEFAULT_TARGET_TRIPLE=arm64-pc-win32)
|
221 |
+
|
222 |
+
# Remove if PR #16111 is merged
|
223 |
+
list(APPEND CROSS_OPTIONS -DCMAKE_CROSSCOMPILING=ON)
|
224 |
+
list(APPEND CROSS_OPTIONS -DCMAKE_SYSTEM_PROCESSOR:STRING=ARM64)
|
225 |
+
list(APPEND CROSS_OPTIONS -DCMAKE_SYSTEM_NAME:STRING=Windows)
|
226 |
+
endif()
|
227 |
+
list(APPEND CROSS_OPTIONS -DLLVM_TARGET_ARCH=AArch64)
|
228 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
229 |
+
if(VCPKG_TARGET_IS_OSX)
|
230 |
+
list(APPEND CROSS_OPTIONS -DLLVM_HOST_TRIPLE=x86_64-apple-darwin20.3.0)
|
231 |
+
list(APPEND CROSS_OPTIONS -DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-apple-darwin20.3.0)
|
232 |
+
endif()
|
233 |
+
list(APPEND CROSS_OPTIONS -DLLVM_TARGET_ARCH=X86)
|
234 |
+
endif()
|
235 |
+
endif()
|
236 |
+
|
237 |
+
vcpkg_cmake_configure(
|
238 |
+
SOURCE_PATH ${SOURCE_PATH}/llvm
|
239 |
+
OPTIONS
|
240 |
+
${FEATURE_OPTIONS}
|
241 |
+
${CROSS_OPTIONS}
|
242 |
+
-DLLVM_INCLUDE_EXAMPLES=OFF
|
243 |
+
-DLLVM_BUILD_EXAMPLES=OFF
|
244 |
+
-DLLVM_INCLUDE_TESTS=OFF
|
245 |
+
-DLLVM_BUILD_TESTS=OFF
|
246 |
+
-DLLDB_ENABLE_CURSES=OFF
|
247 |
+
# Force TableGen to be built with optimization. This will significantly improve build time.
|
248 |
+
-DLLVM_OPTIMIZED_TABLEGEN=ON
|
249 |
+
"-DLLVM_ENABLE_PROJECTS=${LLVM_ENABLE_PROJECTS}"
|
250 |
+
"-DLLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD}"
|
251 |
+
-DPACKAGE_VERSION=${LLVM_VERSION}
|
252 |
+
# Limit the maximum number of concurrent link jobs to 1. This should fix low amount of memory issue for link.
|
253 |
+
-DLLVM_PARALLEL_LINK_JOBS=1
|
254 |
+
# Disable build LLVM-C.dll (Windows only) due to doesn't compile with CMAKE_DEBUG_POSTFIX
|
255 |
+
-DLLVM_BUILD_LLVM_C_DYLIB=OFF
|
256 |
+
# Path for binary subdirectory (defaults to 'bin')
|
257 |
+
-DLLVM_TOOLS_INSTALL_DIR=tools/llvm
|
258 |
+
OPTIONS_DEBUG
|
259 |
+
-DCMAKE_DEBUG_POSTFIX=d
|
260 |
+
)
|
261 |
+
|
262 |
+
vcpkg_cmake_install(ADD_BIN_TO_PATH)
|
263 |
+
|
264 |
+
function(llvm_cmake_package_config_fixup package_name)
|
265 |
+
cmake_parse_arguments("arg" "DO_NOT_DELETE_PARENT_CONFIG_PATH" "FEATURE_NAME" "" ${ARGN})
|
266 |
+
if(NOT DEFINED arg_FEATURE_NAME)
|
267 |
+
set(arg_FEATURE_NAME ${package_name})
|
268 |
+
endif()
|
269 |
+
if("${arg_FEATURE_NAME}" STREQUAL "${PORT}" OR "${arg_FEATURE_NAME}" IN_LIST FEATURES)
|
270 |
+
set(args)
|
271 |
+
list(APPEND args PACKAGE_NAME "${package_name}")
|
272 |
+
if(arg_DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
273 |
+
list(APPEND args "DO_NOT_DELETE_PARENT_CONFIG_PATH")
|
274 |
+
endif()
|
275 |
+
vcpkg_cmake_config_fixup(${args})
|
276 |
+
file(INSTALL "${SOURCE_PATH}/${package_name}/LICENSE.TXT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${package_name}" RENAME copyright)
|
277 |
+
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/${package_name}_usage")
|
278 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/${package_name}_usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${package_name}" RENAME usage)
|
279 |
+
endif()
|
280 |
+
endif()
|
281 |
+
endfunction()
|
282 |
+
|
283 |
+
llvm_cmake_package_config_fixup("clang" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
284 |
+
llvm_cmake_package_config_fixup("flang" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
285 |
+
llvm_cmake_package_config_fixup("lld" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
286 |
+
llvm_cmake_package_config_fixup("mlir" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
287 |
+
llvm_cmake_package_config_fixup("polly" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
288 |
+
llvm_cmake_package_config_fixup("ParallelSTL" FEATURE_NAME "pstl" DO_NOT_DELETE_PARENT_CONFIG_PATH)
|
289 |
+
llvm_cmake_package_config_fixup("llvm")
|
290 |
+
|
291 |
+
set(empty_dirs)
|
292 |
+
|
293 |
+
if("clang-tools-extra" IN_LIST FEATURES)
|
294 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/clang-tidy/plugin")
|
295 |
+
endif()
|
296 |
+
|
297 |
+
if("flang" IN_LIST FEATURES)
|
298 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Config")
|
299 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/CMakeFiles")
|
300 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/CMakeFiles")
|
301 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/CodeGen/CMakeFiles")
|
302 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/Dialect/CMakeFiles")
|
303 |
+
list(APPEND empty_dirs "${CURRENT_PACKAGES_DIR}/include/flang/Optimizer/Transforms/CMakeFiles")
|
304 |
+
endif()
|
305 |
+
|
306 |
+
if(empty_dirs)
|
307 |
+
foreach(empty_dir IN LISTS empty_dirs)
|
308 |
+
if(NOT EXISTS "${empty_dir}")
|
309 |
+
message(SEND_ERROR "Directory '${empty_dir}' is not exist. Please remove it from the checking.")
|
310 |
+
else()
|
311 |
+
file(GLOB_RECURSE files_in_dir "${empty_dir}/*")
|
312 |
+
if(files_in_dir)
|
313 |
+
message(SEND_ERROR "Directory '${empty_dir}' is not empty. Please remove it from the checking.")
|
314 |
+
else()
|
315 |
+
file(REMOVE_RECURSE "${empty_dir}")
|
316 |
+
endif()
|
317 |
+
endif()
|
318 |
+
endforeach()
|
319 |
+
endif()
|
320 |
+
|
321 |
+
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT})
|
322 |
+
|
323 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
324 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
325 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
326 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/tools)
|
327 |
+
endif()
|
328 |
+
|
329 |
+
# LLVM still generates a few DLLs in the static build:
|
330 |
+
# * libclang.dll
|
331 |
+
# * LTO.dll
|
332 |
+
# * Remarks.dll
|
333 |
+
set(VCPKG_POLICY_DLLS_IN_STATIC_LIBRARY enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/llvm/vcpkg.json
ADDED
@@ -0,0 +1,355 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "llvm",
|
3 |
+
"version": "13.0.0",
|
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": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
],
|
19 |
+
"default-features": [
|
20 |
+
"clang",
|
21 |
+
"default-options",
|
22 |
+
"default-targets",
|
23 |
+
"lld",
|
24 |
+
"tools"
|
25 |
+
],
|
26 |
+
"features": {
|
27 |
+
"clang": {
|
28 |
+
"description": "Include C Language Family Front-end.",
|
29 |
+
"dependencies": [
|
30 |
+
{
|
31 |
+
"name": "llvm",
|
32 |
+
"default-features": false,
|
33 |
+
"features": [
|
34 |
+
"compiler-rt",
|
35 |
+
"tools"
|
36 |
+
]
|
37 |
+
}
|
38 |
+
]
|
39 |
+
},
|
40 |
+
"clang-tools-extra": {
|
41 |
+
"description": "Include Clang tools."
|
42 |
+
},
|
43 |
+
"compiler-rt": {
|
44 |
+
"description": "Include compiler's runtime libraries."
|
45 |
+
},
|
46 |
+
"default-options": {
|
47 |
+
"description": "Build with default options.",
|
48 |
+
"dependencies": [
|
49 |
+
{
|
50 |
+
"name": "llvm",
|
51 |
+
"default-features": false,
|
52 |
+
"features": [
|
53 |
+
"disable-abi-breaking-checks",
|
54 |
+
"disable-assertions",
|
55 |
+
"disable-clang-static-analyzer",
|
56 |
+
"enable-bindings",
|
57 |
+
"enable-terminfo",
|
58 |
+
"enable-threads",
|
59 |
+
"enable-zlib"
|
60 |
+
]
|
61 |
+
}
|
62 |
+
]
|
63 |
+
},
|
64 |
+
"default-targets": {
|
65 |
+
"description": "Build with platform-specific default targets.",
|
66 |
+
"dependencies": [
|
67 |
+
{
|
68 |
+
"name": "llvm",
|
69 |
+
"default-features": false,
|
70 |
+
"features": [
|
71 |
+
"target-aarch64"
|
72 |
+
],
|
73 |
+
"platform": "arm64"
|
74 |
+
},
|
75 |
+
{
|
76 |
+
"name": "llvm",
|
77 |
+
"default-features": false,
|
78 |
+
"features": [
|
79 |
+
"target-x86"
|
80 |
+
],
|
81 |
+
"platform": "x86 | x64"
|
82 |
+
},
|
83 |
+
{
|
84 |
+
"name": "llvm",
|
85 |
+
"default-features": false,
|
86 |
+
"features": [
|
87 |
+
"target-arm"
|
88 |
+
],
|
89 |
+
"platform": "arm & !arm64"
|
90 |
+
},
|
91 |
+
{
|
92 |
+
"name": "llvm",
|
93 |
+
"default-features": false,
|
94 |
+
"features": [
|
95 |
+
"target-all"
|
96 |
+
],
|
97 |
+
"platform": "!x86 & !x64 & !arm & !arm64"
|
98 |
+
}
|
99 |
+
]
|
100 |
+
},
|
101 |
+
"disable-abi-breaking-checks": {
|
102 |
+
"description": "Build LLVM with LLVM_ABI_BREAKING_CHECKS=FORCE_OFF."
|
103 |
+
},
|
104 |
+
"disable-assertions": {
|
105 |
+
"description": "Build LLVM without assertions."
|
106 |
+
},
|
107 |
+
"disable-clang-static-analyzer": {
|
108 |
+
"description": "Build without static analyzer."
|
109 |
+
},
|
110 |
+
"enable-abi-breaking-checks": {
|
111 |
+
"description": "Build LLVM with LLVM_ABI_BREAKING_CHECKS=FORCE_ON."
|
112 |
+
},
|
113 |
+
"enable-assertions": {
|
114 |
+
"description": "Build LLVM with assertions."
|
115 |
+
},
|
116 |
+
"enable-bindings": {
|
117 |
+
"description": "Build bindings."
|
118 |
+
},
|
119 |
+
"enable-eh": {
|
120 |
+
"description": "Build LLVM with exception handler.",
|
121 |
+
"dependencies": [
|
122 |
+
{
|
123 |
+
"name": "llvm",
|
124 |
+
"default-features": false,
|
125 |
+
"features": [
|
126 |
+
"enable-rtti"
|
127 |
+
]
|
128 |
+
}
|
129 |
+
]
|
130 |
+
},
|
131 |
+
"enable-ffi": {
|
132 |
+
"description": "Build LLVM with FFI.",
|
133 |
+
"dependencies": [
|
134 |
+
"libffi"
|
135 |
+
]
|
136 |
+
},
|
137 |
+
"enable-libxml2": {
|
138 |
+
"description": "Build with LibXml2.",
|
139 |
+
"dependencies": [
|
140 |
+
"libxml2"
|
141 |
+
]
|
142 |
+
},
|
143 |
+
"enable-rtti": {
|
144 |
+
"description": "Build LLVM with run-time type information."
|
145 |
+
},
|
146 |
+
"enable-terminfo": {
|
147 |
+
"description": "Use terminfo database if available."
|
148 |
+
},
|
149 |
+
"enable-threads": {
|
150 |
+
"description": "Use threads if available."
|
151 |
+
},
|
152 |
+
"enable-zlib": {
|
153 |
+
"description": "Build with ZLib.",
|
154 |
+
"dependencies": [
|
155 |
+
"zlib"
|
156 |
+
]
|
157 |
+
},
|
158 |
+
"flang": {
|
159 |
+
"description": "Include Fortran front end.",
|
160 |
+
"dependencies": [
|
161 |
+
{
|
162 |
+
"name": "llvm",
|
163 |
+
"default-features": false,
|
164 |
+
"features": [
|
165 |
+
"clang",
|
166 |
+
"mlir",
|
167 |
+
"tools"
|
168 |
+
]
|
169 |
+
}
|
170 |
+
]
|
171 |
+
},
|
172 |
+
"libclc": {
|
173 |
+
"description": "Include OpenCL library."
|
174 |
+
},
|
175 |
+
"libcxx": {
|
176 |
+
"description": "Include libcxx library.",
|
177 |
+
"dependencies": [
|
178 |
+
{
|
179 |
+
"name": "llvm",
|
180 |
+
"default-features": false,
|
181 |
+
"features": [
|
182 |
+
"libcxxabi"
|
183 |
+
]
|
184 |
+
}
|
185 |
+
]
|
186 |
+
},
|
187 |
+
"libcxxabi": {
|
188 |
+
"description": "Include libcxxabi library."
|
189 |
+
},
|
190 |
+
"libunwind": {
|
191 |
+
"description": "Include libunwind library."
|
192 |
+
},
|
193 |
+
"lld": {
|
194 |
+
"description": "Include LLVM linker.",
|
195 |
+
"dependencies": [
|
196 |
+
{
|
197 |
+
"name": "llvm",
|
198 |
+
"default-features": false,
|
199 |
+
"features": [
|
200 |
+
"tools"
|
201 |
+
]
|
202 |
+
}
|
203 |
+
]
|
204 |
+
},
|
205 |
+
"lldb": {
|
206 |
+
"description": "Include LLVM debugger.",
|
207 |
+
"dependencies": [
|
208 |
+
{
|
209 |
+
"name": "llvm",
|
210 |
+
"default-features": false,
|
211 |
+
"features": [
|
212 |
+
"tools"
|
213 |
+
]
|
214 |
+
}
|
215 |
+
]
|
216 |
+
},
|
217 |
+
"mlir": {
|
218 |
+
"description": "Include MLIR (Multi-Level IR Compiler Framework) project.",
|
219 |
+
"dependencies": [
|
220 |
+
{
|
221 |
+
"name": "llvm",
|
222 |
+
"default-features": false,
|
223 |
+
"features": [
|
224 |
+
"tools"
|
225 |
+
]
|
226 |
+
}
|
227 |
+
]
|
228 |
+
},
|
229 |
+
"openmp": {
|
230 |
+
"description": "Include LLVM OpenMP libraries.",
|
231 |
+
"dependencies": [
|
232 |
+
{
|
233 |
+
"name": "llvm",
|
234 |
+
"default-features": false,
|
235 |
+
"features": [
|
236 |
+
"utils"
|
237 |
+
]
|
238 |
+
}
|
239 |
+
]
|
240 |
+
},
|
241 |
+
"parallel-libs": {
|
242 |
+
"description": "Include parallel-libs project."
|
243 |
+
},
|
244 |
+
"polly": {
|
245 |
+
"description": "Include Polly (Polyhedral optimizations for LLVM) project.",
|
246 |
+
"dependencies": [
|
247 |
+
{
|
248 |
+
"name": "llvm",
|
249 |
+
"default-features": false,
|
250 |
+
"features": [
|
251 |
+
"tools",
|
252 |
+
"utils"
|
253 |
+
]
|
254 |
+
}
|
255 |
+
]
|
256 |
+
},
|
257 |
+
"pstl": {
|
258 |
+
"description": "Include pstl (Parallel STL) library."
|
259 |
+
},
|
260 |
+
"target-aarch64": {
|
261 |
+
"description": "Build with AArch64 backend."
|
262 |
+
},
|
263 |
+
"target-all": {
|
264 |
+
"description": "Build with all backends.",
|
265 |
+
"dependencies": [
|
266 |
+
{
|
267 |
+
"name": "llvm",
|
268 |
+
"default-features": false,
|
269 |
+
"features": [
|
270 |
+
"target-aarch64",
|
271 |
+
"target-amdgpu",
|
272 |
+
"target-arm",
|
273 |
+
"target-avr",
|
274 |
+
"target-bpf",
|
275 |
+
"target-hexagon",
|
276 |
+
"target-lanai",
|
277 |
+
"target-mips",
|
278 |
+
"target-msp430",
|
279 |
+
"target-nvptx",
|
280 |
+
"target-powerpc",
|
281 |
+
"target-riscv",
|
282 |
+
"target-sparc",
|
283 |
+
"target-systemz",
|
284 |
+
"target-webassembly",
|
285 |
+
"target-x86",
|
286 |
+
"target-xcore"
|
287 |
+
]
|
288 |
+
}
|
289 |
+
]
|
290 |
+
},
|
291 |
+
"target-amdgpu": {
|
292 |
+
"description": "Build with AMDGPU backend."
|
293 |
+
},
|
294 |
+
"target-arm": {
|
295 |
+
"description": "Build with ARM backend."
|
296 |
+
},
|
297 |
+
"target-avr": {
|
298 |
+
"description": "Build with AVR backend."
|
299 |
+
},
|
300 |
+
"target-bpf": {
|
301 |
+
"description": "Build with BPF backend."
|
302 |
+
},
|
303 |
+
"target-hexagon": {
|
304 |
+
"description": "Build with Hexagon backend."
|
305 |
+
},
|
306 |
+
"target-lanai": {
|
307 |
+
"description": "Build with Lanai backend."
|
308 |
+
},
|
309 |
+
"target-mips": {
|
310 |
+
"description": "Build with Mips backend."
|
311 |
+
},
|
312 |
+
"target-msp430": {
|
313 |
+
"description": "Build with MSP430 backend."
|
314 |
+
},
|
315 |
+
"target-nvptx": {
|
316 |
+
"description": "Build with NVPTX backend."
|
317 |
+
},
|
318 |
+
"target-powerpc": {
|
319 |
+
"description": "Build with PowerPC backend."
|
320 |
+
},
|
321 |
+
"target-riscv": {
|
322 |
+
"description": "Build with RISC-V backend."
|
323 |
+
},
|
324 |
+
"target-sparc": {
|
325 |
+
"description": "Build with Sparc backend."
|
326 |
+
},
|
327 |
+
"target-systemz": {
|
328 |
+
"description": "Build with SystemZ backend."
|
329 |
+
},
|
330 |
+
"target-webassembly": {
|
331 |
+
"description": "Build with WebAssembly backend."
|
332 |
+
},
|
333 |
+
"target-x86": {
|
334 |
+
"description": "Build with X86 backend."
|
335 |
+
},
|
336 |
+
"target-xcore": {
|
337 |
+
"description": "Build with XCore backend."
|
338 |
+
},
|
339 |
+
"tools": {
|
340 |
+
"description": "Build LLVM tools.",
|
341 |
+
"dependencies": [
|
342 |
+
{
|
343 |
+
"name": "llvm",
|
344 |
+
"default-features": false,
|
345 |
+
"features": [
|
346 |
+
"enable-threads"
|
347 |
+
]
|
348 |
+
}
|
349 |
+
]
|
350 |
+
},
|
351 |
+
"utils": {
|
352 |
+
"description": "Build LLVM utils."
|
353 |
+
}
|
354 |
+
}
|
355 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/CMakeLists.txt
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 2.8)
|
2 |
+
|
3 |
+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/lmdb.h" VERSION_HEADER)
|
4 |
+
string(REGEX MATCH ".*MDB_VERSION_MAJOR[ \t]+([0-9])" MAJOR_VERSION_MATCH "${VERSION_HEADER}")
|
5 |
+
set(LMDB_MAJOR_VERSION ${CMAKE_MATCH_1})
|
6 |
+
string(REGEX MATCH ".*MDB_VERSION_MINOR[ \t]+([0-9])" MINOR_VERSION_MATCH "${VERSION_HEADER}")
|
7 |
+
set(LMDB_MINOR_VERSION ${CMAKE_MATCH_1})
|
8 |
+
string(REGEX MATCH ".*MDB_VERSION_PATCH[ \t]+([0-9]+)" PATCH_VERSION_MATCH "${VERSION_HEADER}")
|
9 |
+
set(LMDB_PATCH_VERSION ${CMAKE_MATCH_1})
|
10 |
+
|
11 |
+
set(LMDB_VERSION "${LMDB_MAJOR_VERSION}.${LMDB_MINOR_VERSION}.${LMDB_PATCH_VERSION}")
|
12 |
+
|
13 |
+
project(lmdb)
|
14 |
+
|
15 |
+
option(LMDB_BUILD_TOOLS "Build lmdb tools" OFF)
|
16 |
+
option(LMDB_BUILD_TESTS "Build lmdb tests" OFF)
|
17 |
+
option(LMDB_INSTALL_HEADERS "Install LMDB header files" ON)
|
18 |
+
set(LMDB_INCLUDE_INSTALL_DIR include CACHE PATH "Install directory for headers")
|
19 |
+
set(LMDB_LIBRARY_INSTALL_DIR lib CACHE PATH "Install directory for library")
|
20 |
+
set(LMDB_RUNTIME_INSTALL_DIR bin CACHE PATH "Install directory for binaries/dlls")
|
21 |
+
set(LMDB_CONFIG_INSTALL_DIR share/lmdb CACHE PATH "Install directory for cmake config files")
|
22 |
+
|
23 |
+
if(MSVC AND BUILD_SHARED_LIBS)
|
24 |
+
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /DEF:\"${CMAKE_CURRENT_SOURCE_DIR}/lmdbd.def\"")
|
25 |
+
set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} /DEF:\"${CMAKE_CURRENT_SOURCE_DIR}/lmdb.def\"")
|
26 |
+
endif()
|
27 |
+
|
28 |
+
set(SRCS lmdb mdb.c lmdb.h midl.c midl.h )
|
29 |
+
add_library(lmdb ${SRCS})
|
30 |
+
set_target_properties(lmdb PROPERTIES DEBUG_POSTFIX d)
|
31 |
+
if (WIN32)
|
32 |
+
target_link_libraries(lmdb PRIVATE ntdll.lib)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
install(TARGETS lmdb DESTINATION lib
|
36 |
+
EXPORT lmdb-targets
|
37 |
+
RUNTIME DESTINATION ${LMDB_RUNTIME_INSTALL_DIR}
|
38 |
+
LIBRARY DESTINATION ${LMDB_LIBRARY_INSTALL_DIR}
|
39 |
+
ARCHIVE DESTINATION ${LMDB_LIBRARY_INSTALL_DIR}
|
40 |
+
)
|
41 |
+
|
42 |
+
if(LMDB_INSTALL_HEADERS)
|
43 |
+
install(FILES lmdb.h midl.h DESTINATION ${LMDB_INCLUDE_INSTALL_DIR})
|
44 |
+
endif()
|
45 |
+
|
46 |
+
include(CMakePackageConfigHelpers)
|
47 |
+
|
48 |
+
set(INSTALL_INCLUDE_DIR ${LMDB_INCLUDE_INSTALL_DIR})
|
49 |
+
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/package-config.cmakein ${CMAKE_CURRENT_BINARY_DIR}/lmdb-config.cmake
|
50 |
+
INSTALL_DESTINATION ${LMDB_CONFIG_INSTALL_DIR}
|
51 |
+
PATH_VARS INSTALL_INCLUDE_DIR
|
52 |
+
)
|
53 |
+
|
54 |
+
write_basic_package_version_file( ${CMAKE_CURRENT_BINARY_DIR}/lmdb-config-version.cmake VERSION ${LMDB_VERSION} COMPATIBILITY SameMajorVersion )
|
55 |
+
|
56 |
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/lmdb-config.cmake ${CMAKE_CURRENT_BINARY_DIR}/lmdb-config-version.cmake
|
57 |
+
DESTINATION ${LMDB_CONFIG_INSTALL_DIR} )
|
58 |
+
|
59 |
+
|
60 |
+
install(EXPORT lmdb-targets DESTINATION ${LMDB_CONFIG_INSTALL_DIR})
|
61 |
+
|
62 |
+
if(LMDB_BUILD_TOOLS)
|
63 |
+
# don't build mdb_dump/load/stat since they will
|
64 |
+
# not build on windows
|
65 |
+
foreach(_tool mdb_copy)
|
66 |
+
add_executable(${_tool} ${_tool}.c)
|
67 |
+
target_link_libraries(${_tool} lmdb)
|
68 |
+
endforeach()
|
69 |
+
endif()
|
70 |
+
|
71 |
+
if(LMDB_BUILD_TESTS)
|
72 |
+
enable_testing()
|
73 |
+
# don't use mtest6 since it will only build in static
|
74 |
+
# build
|
75 |
+
foreach(_test mtest mtest2 mtest3 mtest4 mtest5)
|
76 |
+
add_executable(${_test} ${_test}.c)
|
77 |
+
target_link_libraries(${_test} lmdb)
|
78 |
+
add_test(NAME ${_test}
|
79 |
+
COMMAND ${CMAKE_COMMAND} -DTEST=$<TARGET_FILE:"${_test}" -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/runtest.cmake)
|
80 |
+
endforeach()
|
81 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/cmake/package-config.cmakein
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
@PACKAGE_INIT@
|
2 |
+
|
3 |
+
include("${CMAKE_CURRENT_LIST_DIR}/lmdb-targets.cmake")
|
4 |
+
|
5 |
+
set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIR @PACKAGE_INSTALL_INCLUDE_DIR@)
|
6 |
+
set(${CMAKE_FIND_PACKAGE_NAME}_INCLUDE_DIRS @PACKAGE_INSTALL_INCLUDE_DIR@)
|
7 |
+
set(${CMAKE_FIND_PACKAGE_NAME}_LIBRARIES lmdb)
|
8 |
+
|
9 |
+
string(TOUPPER "${CMAKE_FIND_PACKAGE_NAME}" UPPER_PACKAGE_NAME)
|
10 |
+
|
11 |
+
set(${UPPER_PACKAGE_NAME}_INCLUDE_DIR @PACKAGE_INSTALL_INCLUDE_DIR@)
|
12 |
+
set(${UPPER_PACKAGE_NAME}_INCLUDE_DIRS @PACKAGE_INSTALL_INCLUDE_DIR@)
|
13 |
+
set(${UPPER_PACKAGE_NAME}_LIBRARIES lmdb)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/cmake/runtest.cmake
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
file(MAKE_DIRECTORY testb)
|
2 |
+
execute_process(COMMAND ${TEST})
|
3 |
+
file(REMOVE_RECURSE testdb)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/lmdb.def
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
LIBRARY lmdb
|
2 |
+
EXPORTS
|
3 |
+
mdb_version
|
4 |
+
mdb_strerror
|
5 |
+
mdb_env_create
|
6 |
+
mdb_env_open
|
7 |
+
mdb_env_copy
|
8 |
+
mdb_env_copyfd
|
9 |
+
mdb_env_copy2
|
10 |
+
mdb_env_copyfd2
|
11 |
+
mdb_env_stat
|
12 |
+
mdb_env_info
|
13 |
+
mdb_env_sync
|
14 |
+
mdb_env_close
|
15 |
+
mdb_env_set_flags
|
16 |
+
mdb_env_get_flags
|
17 |
+
mdb_env_get_path
|
18 |
+
mdb_env_get_fd
|
19 |
+
mdb_env_set_mapsize
|
20 |
+
mdb_env_set_maxreaders
|
21 |
+
mdb_env_get_maxreaders
|
22 |
+
mdb_env_set_maxdbs
|
23 |
+
mdb_env_get_maxkeysize
|
24 |
+
mdb_env_set_userctx
|
25 |
+
mdb_env_get_userctx
|
26 |
+
mdb_env_set_assert
|
27 |
+
mdb_txn_begin
|
28 |
+
mdb_txn_env
|
29 |
+
mdb_txn_id
|
30 |
+
mdb_txn_commit
|
31 |
+
mdb_txn_abort
|
32 |
+
mdb_txn_reset
|
33 |
+
mdb_txn_renew
|
34 |
+
mdb_dbi_open
|
35 |
+
mdb_stat
|
36 |
+
mdb_dbi_flags
|
37 |
+
mdb_dbi_close
|
38 |
+
mdb_drop
|
39 |
+
mdb_set_compare
|
40 |
+
mdb_set_dupsort
|
41 |
+
mdb_set_relfunc
|
42 |
+
mdb_set_relctx
|
43 |
+
mdb_get
|
44 |
+
mdb_put
|
45 |
+
mdb_del
|
46 |
+
mdb_cursor_open
|
47 |
+
mdb_cursor_close
|
48 |
+
mdb_cursor_renew
|
49 |
+
mdb_cursor_txn
|
50 |
+
mdb_cursor_dbi
|
51 |
+
mdb_cursor_get
|
52 |
+
mdb_cursor_put
|
53 |
+
mdb_cursor_del
|
54 |
+
mdb_cursor_count
|
55 |
+
mdb_cmp
|
56 |
+
mdb_dcmp
|
57 |
+
mdb_reader_list
|
58 |
+
mdb_reader_check
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/cmake/lmdbd.def
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
LIBRARY lmdbd
|
2 |
+
EXPORTS
|
3 |
+
mdb_version
|
4 |
+
mdb_strerror
|
5 |
+
mdb_env_create
|
6 |
+
mdb_env_open
|
7 |
+
mdb_env_copy
|
8 |
+
mdb_env_copyfd
|
9 |
+
mdb_env_copy2
|
10 |
+
mdb_env_copyfd2
|
11 |
+
mdb_env_stat
|
12 |
+
mdb_env_info
|
13 |
+
mdb_env_sync
|
14 |
+
mdb_env_close
|
15 |
+
mdb_env_set_flags
|
16 |
+
mdb_env_get_flags
|
17 |
+
mdb_env_get_path
|
18 |
+
mdb_env_get_fd
|
19 |
+
mdb_env_set_mapsize
|
20 |
+
mdb_env_set_maxreaders
|
21 |
+
mdb_env_get_maxreaders
|
22 |
+
mdb_env_set_maxdbs
|
23 |
+
mdb_env_get_maxkeysize
|
24 |
+
mdb_env_set_userctx
|
25 |
+
mdb_env_get_userctx
|
26 |
+
mdb_env_set_assert
|
27 |
+
mdb_txn_begin
|
28 |
+
mdb_txn_env
|
29 |
+
mdb_txn_id
|
30 |
+
mdb_txn_commit
|
31 |
+
mdb_txn_abort
|
32 |
+
mdb_txn_reset
|
33 |
+
mdb_txn_renew
|
34 |
+
mdb_dbi_open
|
35 |
+
mdb_stat
|
36 |
+
mdb_dbi_flags
|
37 |
+
mdb_dbi_close
|
38 |
+
mdb_drop
|
39 |
+
mdb_set_compare
|
40 |
+
mdb_set_dupsort
|
41 |
+
mdb_set_relfunc
|
42 |
+
mdb_set_relctx
|
43 |
+
mdb_get
|
44 |
+
mdb_put
|
45 |
+
mdb_del
|
46 |
+
mdb_cursor_open
|
47 |
+
mdb_cursor_close
|
48 |
+
mdb_cursor_renew
|
49 |
+
mdb_cursor_txn
|
50 |
+
mdb_cursor_dbi
|
51 |
+
mdb_cursor_get
|
52 |
+
mdb_cursor_put
|
53 |
+
mdb_cursor_del
|
54 |
+
mdb_cursor_count
|
55 |
+
mdb_cmp
|
56 |
+
mdb_dcmp
|
57 |
+
mdb_reader_list
|
58 |
+
mdb_reader_check
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO LMDB/lmdb
|
4 |
+
REF 8ad7be2510414b9506ec9f9e24f24d04d9b04a1a # LMDB_0.9.29
|
5 |
+
SHA512 a18b6217761bdfcc5964d9817addd2d0c6c735d02a823717eb7ae1561a48110da0708a3290e21297d481e4d8eeb5d92a4a6860ff44888bf2da665cd9f167513c
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/cmake/" DESTINATION "${SOURCE_PATH}/libraries/liblmdb")
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}/libraries/liblmdb"
|
13 |
+
OPTIONS_DEBUG
|
14 |
+
-DLMDB_INSTALL_HEADERS=OFF
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_cmake_install()
|
18 |
+
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
20 |
+
|
21 |
+
file(INSTALL "${SOURCE_PATH}/libraries/liblmdb/COPYRIGHT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/lmdb" RENAME copyright)
|
22 |
+
|
23 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lmdb/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lmdb",
|
3 |
+
"version": "0.9.29",
|
4 |
+
"description": "LMDB is an extraordinarily fast, memory-efficient database",
|
5 |
+
"homepage": "https://github.com/LMDB/lmdb",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng-c/portfile.cmake
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng-c/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lodepng-c",
|
3 |
+
"version-string": "deprecated",
|
4 |
+
"description": "Legacy port. Use port lodepng instead.",
|
5 |
+
"dependencies": [
|
6 |
+
"lodepng"
|
7 |
+
]
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/CMakeLists.txt
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8.0)
|
2 |
+
project(lodepng)
|
3 |
+
|
4 |
+
add_library(lodepng lodepng.cpp)
|
5 |
+
target_include_directories(lodepng PUBLIC
|
6 |
+
$<INSTALL_INTERFACE:include>
|
7 |
+
)
|
8 |
+
|
9 |
+
file(WRITE "${CMAKE_BINARY_DIR}/lodepng-config.cmake" "include(\"\${CMAKE_CURRENT_LIST_DIR}/lodepng-targets.cmake\")")
|
10 |
+
install(FILES "${CMAKE_BINARY_DIR}/lodepng-config.cmake" DESTINATION "share/lodepng/")
|
11 |
+
|
12 |
+
install(TARGETS lodepng EXPORT lodepng-targets)
|
13 |
+
|
14 |
+
install(EXPORT lodepng-targets DESTINATION share/lodepng/)
|
15 |
+
|
16 |
+
add_library(lodepng-c lodepng.c)
|
17 |
+
target_include_directories(lodepng-c PUBLIC
|
18 |
+
$<INSTALL_INTERFACE:include>
|
19 |
+
)
|
20 |
+
|
21 |
+
file(WRITE "${CMAKE_BINARY_DIR}/lodepng-c-config.cmake" "include(\"\${CMAKE_CURRENT_LIST_DIR}/lodepng-c-targets.cmake\")")
|
22 |
+
install(FILES "${CMAKE_BINARY_DIR}/lodepng-c-config.cmake" DESTINATION "share/lodepng-c/")
|
23 |
+
|
24 |
+
install(TARGETS lodepng-c EXPORT lodepng-c-targets)
|
25 |
+
|
26 |
+
install(EXPORT lodepng-c-targets DESTINATION share/lodepng-c/)
|
27 |
+
|
28 |
+
if(NOT DISABLE_INSTALL_HEADERS)
|
29 |
+
install(FILES lodepng.h DESTINATION include)
|
30 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (EXISTS ${CURRENT_INSTALLED_DIR}/share/lodepng-c/copyright)
|
2 |
+
message(FATAL_ERROR "${PORT} conflict with lodepng-c, please remove lodepng-c before install ${PORT}.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO lvandeve/lodepng
|
10 |
+
REF 8c6a9e30576f07bf470ad6f09458a2dcd7a6a84a
|
11 |
+
SHA512 2e0abc063be45dc04a070656260e9a2b9fa1172433cdd7d4988f0afc11751ad28aa802350598ef0e2b27c2c011fd9d9f7ab7f267b0bfcdf28f9f708b888c4411
|
12 |
+
HEAD_REF master
|
13 |
+
)
|
14 |
+
|
15 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
16 |
+
configure_file("${SOURCE_PATH}/lodepng.cpp" "${SOURCE_PATH}/lodepng.c" COPYONLY)
|
17 |
+
|
18 |
+
vcpkg_cmake_configure(
|
19 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
20 |
+
OPTIONS_DEBUG
|
21 |
+
-DDISABLE_INSTALL_HEADERS=ON
|
22 |
+
)
|
23 |
+
|
24 |
+
vcpkg_cmake_install()
|
25 |
+
vcpkg_copy_pdbs()
|
26 |
+
|
27 |
+
vcpkg_cmake_config_fixup()
|
28 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME lodepng-c)
|
29 |
+
|
30 |
+
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
31 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/usage
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package lodepng provides CMake targets:
|
2 |
+
|
3 |
+
# C API
|
4 |
+
find_package(lodepng-c CONFIG REQUIRED)
|
5 |
+
target_link_libraries(main PRIVATE lodepng-c)
|
6 |
+
|
7 |
+
# C++ API
|
8 |
+
find_package(lodepng CONFIG REQUIRED)
|
9 |
+
target_link_libraries(main PRIVATE lodepng)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/lodepng/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "lodepng",
|
3 |
+
"version-date": "2021-12-04",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "PNG encoder and decoder in C++",
|
6 |
+
"homepage": "https://github.com/lvandeve/lodepng",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cplus/portfile.cmake
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO log4cplus/log4cplus
|
4 |
+
REF REL_2_0_7
|
5 |
+
SHA512 FE5FCEB346AC19A6D953661A20E8AA02AB48E872F427D958EA99C62F534DDF1FA4511FFD67A662605B1F225E3A6C06B0EE2C1B0EB62DE3AA0316F47F778DF06D
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_from_github(
|
10 |
+
OUT_SOURCE_PATH THREADPOOL_SOURCE_PATH
|
11 |
+
REPO log4cplus/ThreadPool
|
12 |
+
REF 3507796e172d36555b47d6191f170823d9f6b12c
|
13 |
+
SHA512 6b46ce287d68fd0cda0c69fda739eaeda89e1ed4f086e28a591f4e50aaf80ee2defc28ee14a5bf65be005c1a6ec4f2848d5723740726c54d5cc1d20f8e98aa0c
|
14 |
+
HEAD_REF master
|
15 |
+
)
|
16 |
+
|
17 |
+
file(
|
18 |
+
COPY
|
19 |
+
"${THREADPOOL_SOURCE_PATH}/COPYING"
|
20 |
+
"${THREADPOOL_SOURCE_PATH}/example.cpp"
|
21 |
+
"${THREADPOOL_SOURCE_PATH}/README.md"
|
22 |
+
"${THREADPOOL_SOURCE_PATH}/ThreadPool.h"
|
23 |
+
DESTINATION "${SOURCE_PATH}/threadpool"
|
24 |
+
)
|
25 |
+
|
26 |
+
vcpkg_check_features(
|
27 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
28 |
+
FEATURES
|
29 |
+
unicode UNICODE
|
30 |
+
)
|
31 |
+
|
32 |
+
vcpkg_cmake_configure(
|
33 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
34 |
+
OPTIONS
|
35 |
+
-DLOG4CPLUS_BUILD_TESTING=OFF
|
36 |
+
-DLOG4CPLUS_BUILD_LOGGINGSERVER=OFF
|
37 |
+
-DWITH_UNIT_TESTS=OFF
|
38 |
+
-DLOG4CPLUS_ENABLE_DECORATED_LIBRARY_NAME=OFF
|
39 |
+
${FEATURE_OPTIONS}
|
40 |
+
)
|
41 |
+
|
42 |
+
vcpkg_cmake_install()
|
43 |
+
|
44 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/log4cplus)
|
45 |
+
|
46 |
+
vcpkg_copy_pdbs()
|
47 |
+
|
48 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
49 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
50 |
+
|
51 |
+
# Handle copyright
|
52 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cplus/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "log4cplus",
|
3 |
+
"version": "2.0.7",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A simple to use C++ logging API providing thread--safe, flexible, and arbitrarily granular control over log management and configuration",
|
6 |
+
"homepage": "https://github.com/log4cplus/log4cplus",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"unicode": {
|
19 |
+
"description": "Unicode logger"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cpp/fix-export-targets.patch
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 19767a0..59dbf6c 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -161,11 +161,13 @@ INSTALL (
|
6 |
+
)
|
7 |
+
|
8 |
+
INSTALL(TARGETS ${LOG4CPP_LIBRARY_NAME}
|
9 |
+
+ EXPORT log4cpp-targets
|
10 |
+
LIBRARY DESTINATION lib
|
11 |
+
ARCHIVE DESTINATION lib
|
12 |
+
RUNTIME DESTINATION bin)
|
13 |
+
|
14 |
+
INSTALL(FILES package.xml DESTINATION share/log4cpp)
|
15 |
+
+INSTALL(EXPORT log4cpp-targets NAMESPACE log4cpp:: DESTINATION share/log4cpp)
|
16 |
+
|
17 |
+
###########################################################
|
18 |
+
# DOCUMENTATION
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cpp/fix-includepath.patch
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index beace9e..c8264ec 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -136,7 +136,7 @@ SET(prefix "${CMAKE_INSTALL_PREFIX}")
|
6 |
+
SET(exec_prefix "\${prefix}")
|
7 |
+
SET(log4cpp_cflags "")
|
8 |
+
SET(log4cpp_libs "${LOG4CPP_LIBS}")
|
9 |
+
-SET(includedir "\${prefix}/include/orocos")
|
10 |
+
+SET(includedir "\${prefix}/include")
|
11 |
+
SET(libdir "\${prefix}/lib")
|
12 |
+
CONFIGURE_FILE(log4cpp.pc.in ${CMAKE_CURRENT_BINARY_DIR}/orocos-log4cpp.pc @ONLY)
|
13 |
+
|
14 |
+
@@ -147,7 +147,7 @@ INSTALL(
|
15 |
+
|
16 |
+
INSTALL (
|
17 |
+
DIRECTORY include/log4cpp
|
18 |
+
- DESTINATION include/orocos
|
19 |
+
+ DESTINATION include
|
20 |
+
PATTERN "config.h.in" EXCLUDE
|
21 |
+
PATTERN ".svn" EXCLUDE
|
22 |
+
PATTERN "*.am" EXCLUDE
|
23 |
+
@@ -157,7 +157,7 @@ INSTALL (
|
24 |
+
|
25 |
+
INSTALL (
|
26 |
+
FILES ${CMAKE_CURRENT_BINARY_DIR}/include/log4cpp/config.h
|
27 |
+
- DESTINATION include/orocos/log4cpp
|
28 |
+
+ DESTINATION include/log4cpp
|
29 |
+
)
|
30 |
+
|
31 |
+
INSTALL(TARGETS ${LOG4CPP_LIBRARY_NAME}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/log4cpp/fix-install-targets.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 8db2287..529c18e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -159,7 +159,7 @@ INSTALL (
|
6 |
+
INSTALL(TARGETS ${LOG4CPP_LIBRARY_NAME}
|
7 |
+
LIBRARY DESTINATION lib
|
8 |
+
ARCHIVE DESTINATION lib
|
9 |
+
- RUNTIME DESTINATION lib)
|
10 |
+
+ RUNTIME DESTINATION bin)
|
11 |
+
|
12 |
+
INSTALL(FILES package.xml DESTINATION share/log4cpp)
|
13 |
+
|