Spaces:
Sleeping
Sleeping
a50c1935e5d9a8eb65f859e948f6e0296dd164d63dcb858e3e6eb79362dded46
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-io/vcpkg.json +10 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/Removeseekpos.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/b2-options.cmake +74 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/vcpkg.json +74 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iterator/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iterator/vcpkg.json +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-json/b2-options.cmake +3 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-json/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-json/vcpkg.json +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda2/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda2/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-leaf/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-leaf/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lexical-cast/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lexical-cast/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-local-function/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-local-function/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/0001-Fix-boost-ICU-support.patch +100 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/allow-force-finding-iconv.patch +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/b2-options.cmake.in +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/portfile.cmake +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/vcpkg.json +43 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lockfree/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lockfree/vcpkg.json +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-log/portfile.cmake +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-log/vcpkg.json +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-logic/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-logic/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/001-remove-checks.patch +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/b2-options.cmake +3 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/vcpkg.json +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-metaparse/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-metaparse/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/CMakeLists.txt +282 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/Jamroot.jam.in +180 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/boost-modular-build.cmake +197 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/nothing.bat +0 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/usage +4 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/user-config.jam.in +53 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-move/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-move/vcpkg.json +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-mp11/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-mp11/vcpkg.json +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-mpi/fix-build-boost_mpi_python-on-windows.patch +15 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-io/vcpkg.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-io",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost io module",
|
5 |
+
"homepage": "https://github.com/boostorg/io",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-config",
|
8 |
+
"boost-vcpkg-helpers"
|
9 |
+
]
|
10 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/Removeseekpos.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/include/boost/iostreams/positioning.hpp b/include/boost/iostreams/positioning.hpp
|
2 |
+
index 12f2afc..709da7d 100644
|
3 |
+
--- a/include/boost/iostreams/positioning.hpp
|
4 |
+
+++ b/include/boost/iostreams/positioning.hpp
|
5 |
+
@@ -93,7 +93,7 @@ inline stream_offset fpos_t_to_offset(std::fpos_t pos)
|
6 |
+
inline std::fpos_t streampos_to_fpos_t(std::streampos pos)
|
7 |
+
{
|
8 |
+
# if defined (_CPPLIB_VER) || defined(__IBMCPP__)
|
9 |
+
- return pos.seekpos();
|
10 |
+
+ return pos;
|
11 |
+
# else
|
12 |
+
return pos.get_fpos_t();
|
13 |
+
# endif
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/b2-options.cmake
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
2 |
+
set(lib_path_suffix lib)
|
3 |
+
else()
|
4 |
+
set(lib_path_suffix debug/lib)
|
5 |
+
endif()
|
6 |
+
|
7 |
+
if("bzip2" IN_LIST FEATURES)
|
8 |
+
list(APPEND B2_OPTIONS
|
9 |
+
-sBZIP2_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
10 |
+
)
|
11 |
+
# Overwride debug library name
|
12 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
13 |
+
list(APPEND B2_OPTIONS
|
14 |
+
-sBZIP2_NAME=bz2d
|
15 |
+
)
|
16 |
+
endif()
|
17 |
+
list(APPEND B2_OPTIONS
|
18 |
+
-sBZIP2_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
19 |
+
)
|
20 |
+
else()
|
21 |
+
list(APPEND B2_OPTIONS
|
22 |
+
-sNO_BZIP2=1
|
23 |
+
)
|
24 |
+
endif()
|
25 |
+
|
26 |
+
if("lzma" IN_LIST FEATURES)
|
27 |
+
list(APPEND B2_OPTIONS
|
28 |
+
-sLZMA_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
29 |
+
)
|
30 |
+
list(APPEND B2_OPTIONS
|
31 |
+
-sLZMA_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
32 |
+
)
|
33 |
+
else()
|
34 |
+
list(APPEND B2_OPTIONS
|
35 |
+
-sNO_LZMA=1
|
36 |
+
)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
if("zlib" IN_LIST FEATURES)
|
40 |
+
list(APPEND B2_OPTIONS
|
41 |
+
-sZLIB_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
42 |
+
)
|
43 |
+
# Overwride debug library name
|
44 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
45 |
+
if(WIN32)
|
46 |
+
set(ZLIB_NAME zlibd)
|
47 |
+
else()
|
48 |
+
set(ZLIB_NAME z)
|
49 |
+
endif()
|
50 |
+
list(APPEND B2_OPTIONS
|
51 |
+
-sZLIB_NAME=${ZLIB_NAME}
|
52 |
+
)
|
53 |
+
endif()
|
54 |
+
list(APPEND B2_OPTIONS
|
55 |
+
-sZLIB_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
56 |
+
)
|
57 |
+
else()
|
58 |
+
list(APPEND B2_OPTIONS
|
59 |
+
-sNO_ZLIB=1
|
60 |
+
)
|
61 |
+
endif()
|
62 |
+
|
63 |
+
if("zstd" IN_LIST FEATURES)
|
64 |
+
list(APPEND B2_OPTIONS
|
65 |
+
-sZSTD_INCLUDE="${CURRENT_INSTALLED_DIR}/include"
|
66 |
+
)
|
67 |
+
list(APPEND B2_OPTIONS
|
68 |
+
-sZSTD_LIBRARY_PATH="${CURRENT_INSTALLED_DIR}/${lib_path_suffix}"
|
69 |
+
)
|
70 |
+
else()
|
71 |
+
list(APPEND B2_OPTIONS
|
72 |
+
-sNO_ZSTD=1
|
73 |
+
)
|
74 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/iostreams
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 ad766d5b922bf959480dbaaae80c82211118a11db2a1cc7790ac2885a9c2d85d883d320f6dc19a4cadb0d857398f4a21c173fd3ccf2ff2068718b32dc5cb67c1
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES Removeseekpos.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
|
13 |
+
message(FATAL_ERROR "boost-iostreams requires a newer version of vcpkg in order to build.")
|
14 |
+
endif()
|
15 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
16 |
+
boost_modular_build(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
|
19 |
+
)
|
20 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
21 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iostreams/vcpkg.json
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-iostreams",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Boost iostreams module",
|
6 |
+
"homepage": "https://github.com/boostorg/iostreams",
|
7 |
+
"license": "BSL-1.0",
|
8 |
+
"supports": "!uwp",
|
9 |
+
"dependencies": [
|
10 |
+
"boost-assert",
|
11 |
+
{
|
12 |
+
"name": "boost-build",
|
13 |
+
"host": true
|
14 |
+
},
|
15 |
+
"boost-config",
|
16 |
+
"boost-core",
|
17 |
+
"boost-detail",
|
18 |
+
"boost-function",
|
19 |
+
"boost-integer",
|
20 |
+
"boost-iterator",
|
21 |
+
{
|
22 |
+
"name": "boost-modular-build-helper",
|
23 |
+
"host": true
|
24 |
+
},
|
25 |
+
"boost-mpl",
|
26 |
+
"boost-numeric-conversion",
|
27 |
+
"boost-preprocessor",
|
28 |
+
"boost-random",
|
29 |
+
"boost-range",
|
30 |
+
"boost-regex",
|
31 |
+
"boost-smart-ptr",
|
32 |
+
"boost-static-assert",
|
33 |
+
"boost-throw-exception",
|
34 |
+
"boost-type-traits",
|
35 |
+
"boost-utility",
|
36 |
+
"boost-vcpkg-helpers",
|
37 |
+
{
|
38 |
+
"name": "vcpkg-cmake",
|
39 |
+
"host": true
|
40 |
+
}
|
41 |
+
],
|
42 |
+
"default-features": [
|
43 |
+
"bzip2",
|
44 |
+
"lzma",
|
45 |
+
"zlib",
|
46 |
+
"zstd"
|
47 |
+
],
|
48 |
+
"features": {
|
49 |
+
"bzip2": {
|
50 |
+
"description": "Support bzip2 filters",
|
51 |
+
"dependencies": [
|
52 |
+
"bzip2"
|
53 |
+
]
|
54 |
+
},
|
55 |
+
"lzma": {
|
56 |
+
"description": "Support LZMA/xz filters",
|
57 |
+
"dependencies": [
|
58 |
+
"liblzma"
|
59 |
+
]
|
60 |
+
},
|
61 |
+
"zlib": {
|
62 |
+
"description": "Support zlib filters",
|
63 |
+
"dependencies": [
|
64 |
+
"zlib"
|
65 |
+
]
|
66 |
+
},
|
67 |
+
"zstd": {
|
68 |
+
"description": "Support zstd filters",
|
69 |
+
"dependencies": [
|
70 |
+
"zstd"
|
71 |
+
]
|
72 |
+
}
|
73 |
+
}
|
74 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iterator/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/iterator
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 a6cea7025926b9482e3e0b0c19d9ba6d2bd2fe358c418d27b69ee8f9aa25204869f29412639242e244acb5eb5a7d5e79786d3bae649b1603f9123eeae16dc32b
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-iterator/vcpkg.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-iterator",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost iterator module",
|
5 |
+
"homepage": "https://github.com/boostorg/iterator",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-assert",
|
8 |
+
"boost-concept-check",
|
9 |
+
"boost-config",
|
10 |
+
"boost-conversion",
|
11 |
+
"boost-core",
|
12 |
+
"boost-detail",
|
13 |
+
"boost-function-types",
|
14 |
+
"boost-fusion",
|
15 |
+
"boost-mpl",
|
16 |
+
"boost-optional",
|
17 |
+
"boost-smart-ptr",
|
18 |
+
"boost-static-assert",
|
19 |
+
"boost-type-traits",
|
20 |
+
"boost-utility",
|
21 |
+
"boost-vcpkg-helpers"
|
22 |
+
]
|
23 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-json/b2-options.cmake
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
if(APPLE)
|
2 |
+
list(APPEND B2_OPTIONS cxxstd=11)
|
3 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-json/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/json
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 245eb006392cea71fc4da0100a804cff0f4f0a63baf5e4d95ea3b8234a8b2a72344090ccf827a6334fe1819dc207d84a2c1709c62f71361a8e8824d84a51edab
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(READ "${SOURCE_PATH}/build/Jamfile" _contents)
|
12 |
+
string(REPLACE "import ../../config/checks/config" "import ../config/checks/config" _contents "${_contents}")
|
13 |
+
file(WRITE "${SOURCE_PATH}/build/Jamfile" "${_contents}")
|
14 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
|
15 |
+
if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
|
16 |
+
message(FATAL_ERROR "boost-json requires a newer version of vcpkg in order to build.")
|
17 |
+
endif()
|
18 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
19 |
+
boost_modular_build(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
|
22 |
+
)
|
23 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
24 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-json/vcpkg.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-json",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost json module",
|
5 |
+
"homepage": "https://github.com/boostorg/json",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-align",
|
8 |
+
"boost-assert",
|
9 |
+
{
|
10 |
+
"name": "boost-build",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
"boost-config",
|
14 |
+
"boost-container",
|
15 |
+
"boost-exception",
|
16 |
+
{
|
17 |
+
"name": "boost-modular-build-helper",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
"boost-mp11",
|
21 |
+
"boost-system",
|
22 |
+
"boost-throw-exception",
|
23 |
+
"boost-utility",
|
24 |
+
"boost-vcpkg-helpers",
|
25 |
+
{
|
26 |
+
"name": "vcpkg-cmake",
|
27 |
+
"host": true
|
28 |
+
}
|
29 |
+
]
|
30 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/lambda
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 b3d923435133ba4bcffd0fb722d92ccf4f7b739a51390319db10ac43452141c1d786755ae143149102324548d4beb7e87e5767381b93cc814593ce9123f2dffb
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-lambda",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost lambda module",
|
5 |
+
"homepage": "https://github.com/boostorg/lambda",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-bind",
|
8 |
+
"boost-config",
|
9 |
+
"boost-core",
|
10 |
+
"boost-detail",
|
11 |
+
"boost-iterator",
|
12 |
+
"boost-mpl",
|
13 |
+
"boost-preprocessor",
|
14 |
+
"boost-tuple",
|
15 |
+
"boost-type-traits",
|
16 |
+
"boost-utility",
|
17 |
+
"boost-vcpkg-helpers"
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda2/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/lambda2
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 56c8e14dea12e32d8b049c6de2c5ed4ea299b169fc43d76c65aa1057dc5cad9e1182fdf9761381855c3b940ed4e34a794ea8aeca11fde116bc25c4ae1065cc58
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lambda2/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-lambda2",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost lambda2 module",
|
5 |
+
"homepage": "https://github.com/boostorg/lambda2",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-vcpkg-helpers"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-leaf/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/leaf
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 07f15896fe8dd1029aefe2988c82b688243b11f344fafe7ad80a93e70e75c7b35083d1a84944bc564aa591a086f20dfcb4010fc701b1e6780f93ac2dd5701c6b
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-leaf/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-leaf",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost leaf module",
|
5 |
+
"homepage": "https://github.com/boostorg/leaf",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-vcpkg-helpers"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lexical-cast/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/lexical_cast
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 01b544b29f8c4e7de7cb1f4d11835bf4c434fd65fa48983794cd4ec2847d3fc12692722025177552b4653f213d033811bafecf64ce3572885ea7cf522ab3f406
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lexical-cast/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-lexical-cast",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost lexical_cast module",
|
5 |
+
"homepage": "https://github.com/boostorg/lexical_cast",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-array",
|
8 |
+
"boost-assert",
|
9 |
+
"boost-config",
|
10 |
+
"boost-container",
|
11 |
+
"boost-core",
|
12 |
+
"boost-integer",
|
13 |
+
"boost-numeric-conversion",
|
14 |
+
"boost-range",
|
15 |
+
"boost-static-assert",
|
16 |
+
"boost-throw-exception",
|
17 |
+
"boost-type-traits",
|
18 |
+
"boost-vcpkg-helpers"
|
19 |
+
]
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-local-function/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/local_function
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 4df1e13e9314dc31fabd2e0451e09a69b6f976efa41b2fae87766bb9ba271ab47604f15ae138c694b8e15ea51289ca8c2e882179ca55b9abd904bd166b0bd2b4
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-local-function/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-local-function",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost local_function module",
|
5 |
+
"homepage": "https://github.com/boostorg/local_function",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-config",
|
8 |
+
"boost-mpl",
|
9 |
+
"boost-preprocessor",
|
10 |
+
"boost-scope-exit",
|
11 |
+
"boost-type-traits",
|
12 |
+
"boost-typeof",
|
13 |
+
"boost-utility",
|
14 |
+
"boost-vcpkg-helpers"
|
15 |
+
]
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/0001-Fix-boost-ICU-support.patch
ADDED
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
libs/locale/build/Jamfile.v2 | 63 ++++++--------------------------------
|
3 |
+
libs/locale/build/has_icu_test.cpp | 4 ---
|
4 |
+
libs/regex/build/Jamfile.v2 | 47 +++++++---------------------
|
5 |
+
3 files changed, 20 insertions(+), 94 deletions(-)
|
6 |
+
|
7 |
+
diff --git a/libs/locale/build/Jamfile.v2 b/libs/locale/build/Jamfile.v2
|
8 |
+
index 578e722..5f25917 100644
|
9 |
+
--- a/build/Jamfile.v2
|
10 |
+
+++ b/build/Jamfile.v2
|
11 |
+
@@ -70,62 +70,17 @@ if $(ICU_LINK)
|
12 |
+
}
|
13 |
+
else
|
14 |
+
{
|
15 |
+
- searched-lib icuuc : : <name>icuuc
|
16 |
+
- <search>$(ICU_PATH)/lib
|
17 |
+
- <link>shared
|
18 |
+
- <runtime-link>shared ;
|
19 |
+
-
|
20 |
+
- searched-lib icuuc : : <toolset>msvc
|
21 |
+
- <variant>debug
|
22 |
+
- <name>icuucd
|
23 |
+
- <search>$(ICU_PATH)/lib
|
24 |
+
- <link>shared
|
25 |
+
- <runtime-link>shared ;
|
26 |
+
-
|
27 |
+
- searched-lib icuuc : : <name>this_is_an_invalid_library_name ;
|
28 |
+
-
|
29 |
+
- searched-lib icudt : : <search>$(ICU_PATH)/lib
|
30 |
+
- <name>icudata
|
31 |
+
- <link>shared
|
32 |
+
- <runtime-link>shared ;
|
33 |
+
-
|
34 |
+
- searched-lib icudt : : <search>$(ICU_PATH)/lib
|
35 |
+
- <name>icudt
|
36 |
+
- <toolset>msvc
|
37 |
+
- <link>shared
|
38 |
+
- <runtime-link>shared ;
|
39 |
+
-
|
40 |
+
- searched-lib icudt : : <name>this_is_an_invalid_library_name ;
|
41 |
+
-
|
42 |
+
- searched-lib icuin : : <search>$(ICU_PATH)/lib
|
43 |
+
- <name>icui18n
|
44 |
+
- <link>shared
|
45 |
+
- <runtime-link>shared ;
|
46 |
+
-
|
47 |
+
- searched-lib icuin : : <toolset>msvc
|
48 |
+
- <variant>debug
|
49 |
+
- <name>icuind
|
50 |
+
- <search>$(ICU_PATH)/lib
|
51 |
+
- <link>shared
|
52 |
+
- <runtime-link>shared ;
|
53 |
+
-
|
54 |
+
- searched-lib icuin : : <toolset>msvc
|
55 |
+
- <variant>release
|
56 |
+
- <name>icuin
|
57 |
+
- <search>$(ICU_PATH)/lib
|
58 |
+
- <link>shared
|
59 |
+
- <runtime-link>shared ;
|
60 |
+
-
|
61 |
+
- searched-lib icuin : : <name>this_is_an_invalid_library_name ;
|
62 |
+
-
|
63 |
+
- explicit icuuc icudt icuin ;
|
64 |
+
+ alias icuuc : /user-config//icuuc ;
|
65 |
+
+ alias icuin : /user-config//icuin ;
|
66 |
+
+ alias icudt : /user-config//icudt ;
|
67 |
+
+
|
68 |
+
+ explicit icuuc icuin icudt ;
|
69 |
+
|
70 |
+
ICU_OPTS = <include>$(ICU_PATH)/include
|
71 |
+
- <library>icuuc/<link>shared/<runtime-link>shared
|
72 |
+
- <library>icudt/<link>shared/<runtime-link>shared
|
73 |
+
- <library>icuin/<link>shared/<runtime-link>shared
|
74 |
+
- <dll-path>$(ICU_PATH)/bin
|
75 |
+
- <runtime-link>shared ;
|
76 |
+
+ <library>icuuc
|
77 |
+
+ <library>icuin
|
78 |
+
+ <library>icudt
|
79 |
+
+ <dll-path>$(ICU_PATH)/bin ;
|
80 |
+
|
81 |
+
|
82 |
+
|
83 |
+
diff --git a/libs/locale/build/has_icu_test.cpp b/libs/locale/build/has_icu_test.cpp
|
84 |
+
index 9419b30..ed9be05 100644
|
85 |
+
--- a/build/has_icu_test.cpp
|
86 |
+
+++ b/build/has_icu_test.cpp
|
87 |
+
@@ -15,10 +15,6 @@
|
88 |
+
#include <unicode/uchar.h>
|
89 |
+
#include <unicode/coll.h>
|
90 |
+
|
91 |
+
-#if defined(_MSC_VER) && !defined(_DLL)
|
92 |
+
-#error "Mixing ICU with a static runtime doesn't work"
|
93 |
+
-#endif
|
94 |
+
-
|
95 |
+
int main()
|
96 |
+
{
|
97 |
+
icu::Locale loc;
|
98 |
+
--
|
99 |
+
2.12.2.windows.2
|
100 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/allow-force-finding-iconv.patch
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libs/locale/build/Jamfile.v2 b/libs/locale/build/Jamfile.v2
|
2 |
+
index 88a8cb1..e6a6b7f 100644
|
3 |
+
--- a/build/Jamfile.v2
|
4 |
+
+++ b/build/Jamfile.v2
|
5 |
+
@@ -17,6 +17,7 @@ import feature ;
|
6 |
+
# Features
|
7 |
+
|
8 |
+
feature.feature boost.locale.iconv : on off : optional propagated ;
|
9 |
+
+feature.feature boost.locale.force-found-iconv : on off : optional propagated ;
|
10 |
+
feature.feature boost.locale.icu : on off : optional propagated ;
|
11 |
+
feature.feature boost.locale.posix : on off : optional propagated ;
|
12 |
+
feature.feature boost.locale.std : on off : optional propagated ;
|
13 |
+
@@ -164,6 +164,11 @@ local flags-result ;
|
14 |
+
|
15 |
+
local found-iconv ;
|
16 |
+
|
17 |
+
+ if <boost.locale.force-found-iconv>on in $(properties)
|
18 |
+
+ {
|
19 |
+
+ found-iconv = true ;
|
20 |
+
+ }
|
21 |
+
+
|
22 |
+
if <boost.locale.iconv>on in $(properties)
|
23 |
+
|| ! <boost.locale.iconv> in $(properties:G)
|
24 |
+
&& ! <target-os>solaris in $(properties)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/b2-options.cmake.in
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(_B2_OPTIONS_FEATURES "@FEATURES@")
|
2 |
+
if("icu" IN_LIST _B2_OPTIONS_FEATURES)
|
3 |
+
set(BOOST_LOCALE_ENABLE_ICU on)
|
4 |
+
else()
|
5 |
+
set(BOOST_LOCALE_ENABLE_ICU off)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
if(@VCPKG_TARGET_IS_WINDOWS@)
|
9 |
+
set(BOOST_LOCALE_ENABLE_ICONV off)
|
10 |
+
set(BOOST_LOCALE_ENABLE_POSIX off)
|
11 |
+
set(BOOST_LOCALE_ENABLE_WINAPI on)
|
12 |
+
else()
|
13 |
+
find_library(VCPKG_ICONV_LIBRARY_RELEASE iconv PATHS "${CURRENT_INSTALLED_DIR}/lib/" NO_DEFAULT_PATH)
|
14 |
+
find_library(VCPKG_ICONV_LIBRARY_DEBUG iconv PATHS "${CURRENT_INSTALLED_DIR}/debug/lib/" NO_DEFAULT_PATH)
|
15 |
+
set(BOOST_LOCALE_ENABLE_ICONV on)
|
16 |
+
if(@VCPKG_TARGET_IS_ANDROID@)
|
17 |
+
set(BOOST_LOCALE_ENABLE_POSIX off)
|
18 |
+
else()
|
19 |
+
set(BOOST_LOCALE_ENABLE_POSIX on)
|
20 |
+
endif()
|
21 |
+
set(BOOST_LOCALE_ENABLE_WINAPI off)
|
22 |
+
endif()
|
23 |
+
|
24 |
+
list(APPEND B2_OPTIONS
|
25 |
+
boost.locale.iconv=${BOOST_LOCALE_ENABLE_ICONV}
|
26 |
+
boost.locale.icu=${BOOST_LOCALE_ENABLE_ICU}
|
27 |
+
boost.locale.posix=${BOOST_LOCALE_ENABLE_POSIX}
|
28 |
+
boost.locale.winapi=${BOOST_LOCALE_ENABLE_WINAPI}
|
29 |
+
/boost/locale//boost_locale
|
30 |
+
)
|
31 |
+
|
32 |
+
if(BOOST_LOCALE_ENABLE_ICONV)
|
33 |
+
list(APPEND B2_OPTIONS
|
34 |
+
-sICONV_PATH=${CURRENT_INSTALLED_DIR}
|
35 |
+
)
|
36 |
+
|
37 |
+
if(VCPKG_TARGET_IS_OSX OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Emscripten" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "wasm32")
|
38 |
+
list(APPEND B2_OPTIONS
|
39 |
+
boost.locale.force-found-iconv=on
|
40 |
+
)
|
41 |
+
endif()
|
42 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/portfile.cmake
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/locale
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 17870d13898fe1c8df3958757aba81f385924ee063e9f92f821ced912346b89d106b2256d659239323efba125ecd8507a8f3fbc326285cc243befdab5dcaf72d
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
0001-Fix-boost-ICU-support.patch
|
11 |
+
allow-force-finding-iconv.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
|
15 |
+
message(FATAL_ERROR "boost-locale requires a newer version of vcpkg in order to build.")
|
16 |
+
endif()
|
17 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
18 |
+
configure_file(
|
19 |
+
"${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake.in"
|
20 |
+
"${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"
|
21 |
+
@ONLY
|
22 |
+
)
|
23 |
+
boost_modular_build(
|
24 |
+
SOURCE_PATH ${SOURCE_PATH}
|
25 |
+
BOOST_CMAKE_FRAGMENT "${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"
|
26 |
+
)
|
27 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
28 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-locale/vcpkg.json
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-locale",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost locale module",
|
5 |
+
"homepage": "https://github.com/boostorg/locale",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-assert",
|
9 |
+
{
|
10 |
+
"name": "boost-build",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
"boost-config",
|
14 |
+
"boost-function",
|
15 |
+
"boost-iterator",
|
16 |
+
{
|
17 |
+
"name": "boost-modular-build-helper",
|
18 |
+
"host": true
|
19 |
+
},
|
20 |
+
"boost-smart-ptr",
|
21 |
+
"boost-static-assert",
|
22 |
+
"boost-thread",
|
23 |
+
"boost-type-traits",
|
24 |
+
"boost-unordered",
|
25 |
+
"boost-vcpkg-helpers",
|
26 |
+
{
|
27 |
+
"name": "libiconv",
|
28 |
+
"platform": "!uwp & !windows & !mingw"
|
29 |
+
},
|
30 |
+
{
|
31 |
+
"name": "vcpkg-cmake",
|
32 |
+
"host": true
|
33 |
+
}
|
34 |
+
],
|
35 |
+
"features": {
|
36 |
+
"icu": {
|
37 |
+
"description": "ICU backend for Boost.Locale",
|
38 |
+
"dependencies": [
|
39 |
+
"icu"
|
40 |
+
]
|
41 |
+
}
|
42 |
+
}
|
43 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lockfree/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/lockfree
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 f0e56532c369dcf9adb20ea1da6f647d083a67aea067109d7743e5eb4d26ebe2b21b8e2b131265db03f8155845d6948197acfbecb2da41f9f54c11f80e078ba9
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-lockfree/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-lockfree",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost lockfree module",
|
5 |
+
"homepage": "https://github.com/boostorg/lockfree",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-align",
|
8 |
+
"boost-array",
|
9 |
+
"boost-assert",
|
10 |
+
"boost-atomic",
|
11 |
+
"boost-config",
|
12 |
+
"boost-core",
|
13 |
+
"boost-integer",
|
14 |
+
"boost-iterator",
|
15 |
+
"boost-mpl",
|
16 |
+
"boost-parameter",
|
17 |
+
"boost-predef",
|
18 |
+
"boost-static-assert",
|
19 |
+
"boost-tuple",
|
20 |
+
"boost-type-traits",
|
21 |
+
"boost-utility",
|
22 |
+
"boost-vcpkg-helpers"
|
23 |
+
]
|
24 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-log/portfile.cmake
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/log
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 86f2c99647236f49a8a18a10a3c4a7409f15e5d5cdf8f925a7bd87a7eb196d3c53595b7ddc7fd56354181d5b7c433645f3ee349db59d5b971583166366550613
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(READ "${SOURCE_PATH}/build/Jamfile.v2" _contents)
|
12 |
+
string(REPLACE "import ../../config/checks/config" "import ../config/checks/config" _contents "${_contents}")
|
13 |
+
string(REPLACE " <conditional>@select-arch-specific-sources" "#<conditional>@select-arch-specific-sources" _contents "${_contents}")
|
14 |
+
file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")
|
15 |
+
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/config")
|
16 |
+
|
17 |
+
file(READ ${SOURCE_PATH}/build/log-arch-config.jam _contents)
|
18 |
+
string(REPLACE
|
19 |
+
"project.load [ path.join [ path.make $(here:D) ] ../../config/checks/architecture ]"
|
20 |
+
"project.load [ path.join [ path.make $(here:D) ] ../config/checks/architecture ]"
|
21 |
+
_contents "${_contents}")
|
22 |
+
file(WRITE ${SOURCE_PATH}/build/log-arch-config.jam "${_contents}")
|
23 |
+
if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
|
24 |
+
message(FATAL_ERROR "boost-log requires a newer version of vcpkg in order to build.")
|
25 |
+
endif()
|
26 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
27 |
+
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
|
28 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
29 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-log/vcpkg.json
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-log",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost log module",
|
5 |
+
"homepage": "https://github.com/boostorg/log",
|
6 |
+
"supports": "!uwp & !emscripten",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-align",
|
9 |
+
"boost-array",
|
10 |
+
"boost-asio",
|
11 |
+
"boost-assert",
|
12 |
+
"boost-atomic",
|
13 |
+
"boost-bind",
|
14 |
+
{
|
15 |
+
"name": "boost-build",
|
16 |
+
"host": true
|
17 |
+
},
|
18 |
+
"boost-config",
|
19 |
+
"boost-container",
|
20 |
+
"boost-core",
|
21 |
+
"boost-date-time",
|
22 |
+
"boost-exception",
|
23 |
+
{
|
24 |
+
"name": "boost-filesystem",
|
25 |
+
"platform": "!uwp"
|
26 |
+
},
|
27 |
+
"boost-function-types",
|
28 |
+
"boost-fusion",
|
29 |
+
"boost-interprocess",
|
30 |
+
"boost-intrusive",
|
31 |
+
"boost-io",
|
32 |
+
"boost-iterator",
|
33 |
+
"boost-lexical-cast",
|
34 |
+
{
|
35 |
+
"name": "boost-modular-build-helper",
|
36 |
+
"host": true
|
37 |
+
},
|
38 |
+
"boost-move",
|
39 |
+
"boost-mpl",
|
40 |
+
"boost-optional",
|
41 |
+
"boost-parameter",
|
42 |
+
"boost-phoenix",
|
43 |
+
"boost-predef",
|
44 |
+
"boost-preprocessor",
|
45 |
+
"boost-property-tree",
|
46 |
+
"boost-proto",
|
47 |
+
"boost-random",
|
48 |
+
"boost-range",
|
49 |
+
"boost-regex",
|
50 |
+
"boost-smart-ptr",
|
51 |
+
"boost-spirit",
|
52 |
+
"boost-static-assert",
|
53 |
+
"boost-system",
|
54 |
+
"boost-thread",
|
55 |
+
"boost-throw-exception",
|
56 |
+
"boost-type-index",
|
57 |
+
"boost-type-traits",
|
58 |
+
"boost-utility",
|
59 |
+
"boost-vcpkg-helpers",
|
60 |
+
"boost-winapi",
|
61 |
+
"boost-xpressive",
|
62 |
+
{
|
63 |
+
"name": "vcpkg-cmake",
|
64 |
+
"host": true
|
65 |
+
}
|
66 |
+
]
|
67 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-logic/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/logic
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 0f190c66e1f6ae30173c95db14c7a4373ffc55d3f48a0c54a1814e222b1cba05cf6668e6d90a780506dfa40b5060c0c0c1a4a0c76929fb420770d2134a8cbcd0
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-logic/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-logic",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost logic module",
|
5 |
+
"homepage": "https://github.com/boostorg/logic",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-config",
|
8 |
+
"boost-core",
|
9 |
+
"boost-vcpkg-helpers"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/001-remove-checks.patch
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
build/Jamfile.v2 | 2 --
|
2 |
+
1 file changed, 2 deletions(-)
|
3 |
+
|
4 |
+
diff --git a/build/Jamfile.v2 b/build/Jamfile.v2
|
5 |
+
index fd84028..3537e9f 100644
|
6 |
+
--- a/build/Jamfile.v2
|
7 |
+
+++ b/build/Jamfile.v2
|
8 |
+
@@ -5,7 +5,6 @@
|
9 |
+
|
10 |
+
import testing ;
|
11 |
+
import pch ;
|
12 |
+
-import ../../config/checks/config : requires ;
|
13 |
+
|
14 |
+
project
|
15 |
+
: requirements
|
16 |
+
@@ -19,7 +18,6 @@ project
|
17 |
+
<toolset>intel-linux:<cxxflags>-fvisibility=hidden
|
18 |
+
#<toolset>sun:<cxxflags>-xldscope=hidden
|
19 |
+
[ check-target-builds ../config//has_gcc_visibility "gcc visibility" : <toolset>gcc:<cxxflags>-fvisibility=hidden : ]
|
20 |
+
- [ requires cxx11_noexcept cxx11_rvalue_references sfinae_expr cxx11_auto_declarations cxx11_lambdas cxx11_unified_initialization_syntax cxx11_hdr_tuple cxx11_hdr_initializer_list cxx11_hdr_chrono cxx11_thread_local cxx11_constexpr cxx11_nullptr cxx11_numeric_limits cxx11_decltype cxx11_hdr_array cxx11_hdr_atomic cxx11_hdr_type_traits cxx11_allocator cxx11_explicit_conversion_operators ]
|
21 |
+
;
|
22 |
+
|
23 |
+
cpp-pch pch : ../src/tr1/pch.hpp : <include>../src/tr1 <link>shared:<define>BOOST_MATH_TR1_DYN_LINK=1 ;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/b2-options.cmake
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
if(APPLE)
|
2 |
+
list(APPEND B2_OPTIONS cxxstd=11)
|
3 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/math
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 a5de0dfddca56ef67c750db55d103e41822ae3823c023f884211a1d993ebd4a35cceab024b405e48f51acc7f2ae7d1e97aa7e4c603eca929027b62ca2d234ff9
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES 001-remove-checks.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)
|
13 |
+
message(FATAL_ERROR "boost-math requires a newer version of vcpkg in order to build.")
|
14 |
+
endif()
|
15 |
+
include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
|
16 |
+
boost_modular_build(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
BOOST_CMAKE_FRAGMENT "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake"
|
19 |
+
)
|
20 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
21 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-math/vcpkg.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-math",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost math module",
|
5 |
+
"homepage": "https://github.com/boostorg/math",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-assert",
|
8 |
+
{
|
9 |
+
"name": "boost-build",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
"boost-concept-check",
|
13 |
+
"boost-config",
|
14 |
+
"boost-core",
|
15 |
+
"boost-integer",
|
16 |
+
"boost-lexical-cast",
|
17 |
+
{
|
18 |
+
"name": "boost-modular-build-helper",
|
19 |
+
"host": true
|
20 |
+
},
|
21 |
+
"boost-predef",
|
22 |
+
"boost-random",
|
23 |
+
"boost-static-assert",
|
24 |
+
"boost-throw-exception",
|
25 |
+
"boost-vcpkg-helpers",
|
26 |
+
{
|
27 |
+
"name": "vcpkg-cmake",
|
28 |
+
"host": true
|
29 |
+
}
|
30 |
+
]
|
31 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-metaparse/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/metaparse
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 d068680be7609e3a9c87f8c027373eb68fe3c212944fe63369bca94842fd8ceb032a43a455a93248bf5578170acdb76c99aa1d04abc53901636d8e74c261755c
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-metaparse/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-metaparse",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost metaparse module",
|
5 |
+
"homepage": "https://github.com/boostorg/metaparse",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-config",
|
8 |
+
"boost-mpl",
|
9 |
+
"boost-predef",
|
10 |
+
"boost-preprocessor",
|
11 |
+
"boost-static-assert",
|
12 |
+
"boost-type-traits",
|
13 |
+
"boost-vcpkg-helpers"
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/CMakeLists.txt
ADDED
@@ -0,0 +1,282 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.9)
|
2 |
+
project(boost NONE)
|
3 |
+
|
4 |
+
# The following variables are used in user-config.jam file
|
5 |
+
set(USER_CONFIG_TOOLSET "")
|
6 |
+
set(USER_CONFIG_TOOLSET_VERSION "")
|
7 |
+
set(USER_CONFIG_TOOLSET_INVOCATION_COMMAND "")
|
8 |
+
set(USER_CONFIG_TOOLSET_OPTIONS "")
|
9 |
+
set(USER_CONFIG_EXTRA_LINES "")
|
10 |
+
set(USER_CONFIG_REQUIREMENTS "")
|
11 |
+
|
12 |
+
set(B2_OPTIONS)
|
13 |
+
|
14 |
+
include("${VCPKG_CMAKE_VARS_FILE}")
|
15 |
+
|
16 |
+
# Add build type specific options
|
17 |
+
if(VCPKG_CRT_LINKAGE STREQUAL "dynamic")
|
18 |
+
list(APPEND B2_OPTIONS runtime-link=shared)
|
19 |
+
else()
|
20 |
+
list(APPEND B2_OPTIONS runtime-link=static)
|
21 |
+
endif()
|
22 |
+
|
23 |
+
if(BUILD_SHARED_LIBS)
|
24 |
+
list(APPEND B2_OPTIONS link=shared)
|
25 |
+
else()
|
26 |
+
list(APPEND B2_OPTIONS link=static)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if(VCPKG_DETECTED_CMAKE_SIZEOF_VOID_P EQUAL "8")
|
30 |
+
list(APPEND B2_OPTIONS address-model=64)
|
31 |
+
else()
|
32 |
+
list(APPEND B2_OPTIONS address-model=32)
|
33 |
+
endif()
|
34 |
+
|
35 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "s390x")
|
36 |
+
list(APPEND B2_OPTIONS architecture=s390x)
|
37 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
38 |
+
list(APPEND B2_OPTIONS architecture=arm)
|
39 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "ppc64le")
|
40 |
+
list(APPEND B2_OPTIONS architecture=power)
|
41 |
+
else()
|
42 |
+
list(APPEND B2_OPTIONS architecture=x86)
|
43 |
+
endif()
|
44 |
+
|
45 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" AND WIN32)
|
46 |
+
list(APPEND B2_OPTIONS "asmflags=/safeseh")
|
47 |
+
endif()
|
48 |
+
|
49 |
+
if(VCPKG_DETECTED_MSVC)
|
50 |
+
if(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
51 |
+
set(USER_CONFIG_TOOLSET clang-win)
|
52 |
+
else()
|
53 |
+
set(USER_CONFIG_TOOLSET msvc)
|
54 |
+
endif()
|
55 |
+
if(VCPKG_DETECTED_MSVC_VERSION LESS "1900")
|
56 |
+
math(EXPR USER_CONFIG_TOOLSET_VERSION "${VCPKG_DETECTED_MSVC_VERSION} / 10 - 60")
|
57 |
+
else()
|
58 |
+
math(EXPR USER_CONFIG_TOOLSET_VERSION "${VCPKG_DETECTED_MSVC_VERSION} / 10 - 50")
|
59 |
+
endif()
|
60 |
+
elseif(VCPKG_DETECTED_CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
61 |
+
set(USER_CONFIG_TOOLSET clang)
|
62 |
+
else()
|
63 |
+
set(USER_CONFIG_TOOLSET gcc)
|
64 |
+
endif()
|
65 |
+
|
66 |
+
if(WIN32)
|
67 |
+
list(APPEND B2_OPTIONS target-os=windows)
|
68 |
+
elseif(APPLE)
|
69 |
+
list(APPEND B2_OPTIONS target-os=darwin)
|
70 |
+
elseif(ANDROID)
|
71 |
+
list(APPEND B2_OPTIONS target-os=android)
|
72 |
+
else()
|
73 |
+
list(APPEND B2_OPTIONS target-os=linux)
|
74 |
+
endif()
|
75 |
+
|
76 |
+
# Properly handle compiler and linker flags passed by VCPKG
|
77 |
+
string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPER_BUILD_TYPE)
|
78 |
+
|
79 |
+
set(CXXFLAGS "${VCPKG_COMBINED_CXX_FLAGS_${UPPER_BUILD_TYPE}}")
|
80 |
+
set(CFLAGS "${VCPKG_COMBINED_C_FLAGS_${UPPER_BUILD_TYPE}}")
|
81 |
+
set(LDFLAGS "${VCPKG_COMBINED_SHARED_LINKER_FLAGS_${UPPER_BUILD_TYPE}}")
|
82 |
+
set(ARFLAGS "${VCPKG_COMBINED_STATIC_LINKER_FLAGS_${UPPER_BUILD_TYPE}}")
|
83 |
+
|
84 |
+
if(APPLE)
|
85 |
+
string(APPEND COMPILEFLAGS " -D_DARWIN_C_SOURCE")
|
86 |
+
if(NOT CXXFLAGS MATCHES " -std=")
|
87 |
+
# If the user hasn't provided their own standard flag, use at least c++11
|
88 |
+
string(APPEND CXXFLAGS " -std=c++11")
|
89 |
+
endif()
|
90 |
+
endif()
|
91 |
+
|
92 |
+
if(VCPKG_DETECTED_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
93 |
+
# cl in b2 appears to not receive `LIBPATH` for finding winmd files, so we transform them to `/AI` options.
|
94 |
+
set(libpath_args "$ENV{LIBPATH}")
|
95 |
+
# Apply: {x -> /AI"x"}
|
96 |
+
list(TRANSFORM libpath_args PREPEND "/AI\"")
|
97 |
+
list(TRANSFORM libpath_args APPEND "\"")
|
98 |
+
list(JOIN libpath_args " " libpath_arg)
|
99 |
+
|
100 |
+
string(APPEND CXXFLAGS " /ZW")
|
101 |
+
string(APPEND COMPILEFLAGS " ${libpath_arg} /D_WIN32_WINNT=0x0A00")
|
102 |
+
string(APPEND CFLAGS " -Zl")
|
103 |
+
list(APPEND B2_OPTIONS windows-api=store)
|
104 |
+
list(APPEND B2_OPTIONS linkflags=WindowsApp.lib)
|
105 |
+
endif()
|
106 |
+
|
107 |
+
set(USER_CONFIG_TOOLSET_INVOCATION_COMMAND "\"${VCPKG_DETECTED_CMAKE_CXX_COMPILER}\"")
|
108 |
+
|
109 |
+
string(APPEND CXXFLAGS "${COMPILEFLAGS}")
|
110 |
+
string(APPEND CFLAGS "${COMPILEFLAGS}")
|
111 |
+
|
112 |
+
foreach(var CXXFLAGS CFLAGS LDFLAGS ARFLAGS)
|
113 |
+
string(REPLACE [[\]] [[\\]] ${var} "${${var}}")
|
114 |
+
string(REPLACE [["]] [[\"]] ${var} "${${var}}")
|
115 |
+
string(REGEX REPLACE "[ \t\r\n]+" " " ${var} "${${var}}")
|
116 |
+
string(STRIP "${${var}}" ${var})
|
117 |
+
endforeach()
|
118 |
+
|
119 |
+
if(USER_CONFIG_TOOLSET STREQUAL "msvc")
|
120 |
+
file(TO_CMAKE_PATH "${CMAKE_CURRENT_LIST_DIR}/nothing.bat" NOTHING_BAT)
|
121 |
+
string(APPEND USER_CONFIG_TOOLSET_OPTIONS
|
122 |
+
" <setup>\"${NOTHING_BAT}\"\n"
|
123 |
+
)
|
124 |
+
if(NOT ARFLAGS STREQUAL "")
|
125 |
+
# Only apply these flags for MSVC
|
126 |
+
string(APPEND USER_CONFIG_REQUIREMENTS "<archiveflags>\"${ARFLAGS}\"\n ")
|
127 |
+
endif()
|
128 |
+
else()
|
129 |
+
string(APPEND USER_CONFIG_TOOLSET_OPTIONS
|
130 |
+
" <ranlib>\"${VCPKG_DETECTED_CMAKE_RANLIB}\"\n"
|
131 |
+
" <archiver>\"${VCPKG_DETECTED_CMAKE_AR}\"\n"
|
132 |
+
)
|
133 |
+
endif()
|
134 |
+
|
135 |
+
if(NOT CXXFLAGS STREQUAL "")
|
136 |
+
string(APPEND USER_CONFIG_TOOLSET_OPTIONS " <cxxflags>\"${CXXFLAGS}\"\n")
|
137 |
+
endif()
|
138 |
+
if(NOT CFLAGS STREQUAL "")
|
139 |
+
string(APPEND USER_CONFIG_TOOLSET_OPTIONS " <cflags>\"${CFLAGS}\"\n <asmflags>\"${CFLAGS}\"\n")
|
140 |
+
endif()
|
141 |
+
if(NOT LDFLAGS STREQUAL "")
|
142 |
+
string(APPEND USER_CONFIG_REQUIREMENTS "<linkflags>\"${LDFLAGS}\"\n ")
|
143 |
+
string(APPEND USER_CONFIG_TOOLSET_OPTIONS " <linkflags>\"${LDFLAGS}\"\n")
|
144 |
+
endif()
|
145 |
+
|
146 |
+
if(WIN32 AND NOT USER_CONFIG_TOOLSET STREQUAL "msvc")
|
147 |
+
# MINGW here causes b2 to not run cygpath
|
148 |
+
string(APPEND USER_CONFIG_TOOLSET_OPTIONS
|
149 |
+
" <flavor>mingw\n"
|
150 |
+
)
|
151 |
+
endif()
|
152 |
+
|
153 |
+
if(WIN32)
|
154 |
+
list(APPEND B2_OPTIONS threadapi=win32)
|
155 |
+
else()
|
156 |
+
list(APPEND B2_OPTIONS threadapi=pthread)
|
157 |
+
endif()
|
158 |
+
|
159 |
+
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
160 |
+
list(APPEND B2_OPTIONS variant=release)
|
161 |
+
else()
|
162 |
+
list(APPEND B2_OPTIONS variant=debug)
|
163 |
+
endif()
|
164 |
+
|
165 |
+
if(NOT WIN32)
|
166 |
+
list(APPEND B2_OPTIONS "--layout=system")
|
167 |
+
endif()
|
168 |
+
|
169 |
+
include(ProcessorCount)
|
170 |
+
ProcessorCount(NUMBER_OF_PROCESSORS)
|
171 |
+
if(NOT NUMBER_OF_PROCESSORS)
|
172 |
+
set(NUMBER_OF_PROCESSORS 1)
|
173 |
+
endif()
|
174 |
+
|
175 |
+
# Handle ICU
|
176 |
+
if(WIN32)
|
177 |
+
list(APPEND B2_OPTIONS "--disable-icu")
|
178 |
+
else()
|
179 |
+
find_path(ICU_PATH include/unicode/utf.h)
|
180 |
+
list(APPEND B2_OPTIONS "-sICU_PATH=\"${ICU_PATH}\"")
|
181 |
+
endif()
|
182 |
+
|
183 |
+
# Handle Python
|
184 |
+
set(python_versions "")
|
185 |
+
|
186 |
+
if(WITH_PYTHON2)
|
187 |
+
# Find Python2 in the current installed directory
|
188 |
+
file(GLOB python2_include_dir "${CURRENT_INSTALLED_DIR}/include/python2.*")
|
189 |
+
string(REGEX REPLACE ".*python([0-9\.]+).*" "\\1" python2_version "${python2_include_dir}")
|
190 |
+
string(APPEND USER_CONFIG_EXTRA_LINES
|
191 |
+
"using python : ${python2_version} : : \"${python2_include_dir}\" : \"${CURRENT_INSTALLED_DIR}/lib\" ;\n"
|
192 |
+
"using python : ${python2_version} : : \"${python2_include_dir}\" : \"${CURRENT_INSTALLED_DIR}/debug/lib\" : <python-debugging>on ;\n"
|
193 |
+
)
|
194 |
+
list(APPEND python_versions "${python2_version}")
|
195 |
+
endif()
|
196 |
+
|
197 |
+
if(WITH_PYTHON3)
|
198 |
+
# Find Python3 in the current installed directory
|
199 |
+
file(GLOB python3_include_dir "${CURRENT_INSTALLED_DIR}/include/python3.*")
|
200 |
+
string(REGEX REPLACE ".*python([0-9\.]+).*" "\\1" python3_version "${python3_include_dir}")
|
201 |
+
string(APPEND USER_CONFIG_EXTRA_LINES
|
202 |
+
"using python : ${python3_version} : : \"${python3_include_dir}\" : \"${CURRENT_INSTALLED_DIR}/lib\" ;\n"
|
203 |
+
"using python : ${python3_version} : : \"${python3_include_dir}\" : \"${CURRENT_INSTALLED_DIR}/debug/lib\" : <python-debugging>on ;\n"
|
204 |
+
)
|
205 |
+
list(APPEND python_versions "${python3_version}")
|
206 |
+
endif()
|
207 |
+
|
208 |
+
if("${PORT}" STREQUAL "boost-mpi" OR "${PORT}" STREQUAL "boost-graph-parallel")
|
209 |
+
string(APPEND USER_CONFIG_EXTRA_LINES
|
210 |
+
"using mpi : : <library-path>\"${CURRENT_INSTALLED_DIR}/lib\"\n"
|
211 |
+
" <include>\"${CURRENT_INSTALLED_DIR}/include\"\n"
|
212 |
+
)
|
213 |
+
if(WIN32)
|
214 |
+
string(APPEND USER_CONFIG_EXTRA_LINES
|
215 |
+
" <find-shared-library>msmpi ;\n"
|
216 |
+
)
|
217 |
+
else()
|
218 |
+
string(APPEND USER_CONFIG_EXTRA_LINES
|
219 |
+
" <find-shared-library>openmpi ;\n"
|
220 |
+
)
|
221 |
+
endif()
|
222 |
+
endif()
|
223 |
+
|
224 |
+
if(NOT python_versions STREQUAL "")
|
225 |
+
list(JOIN python_versions "," python_versions)
|
226 |
+
list(APPEND B2_OPTIONS "python=${python_versions}")
|
227 |
+
endif()
|
228 |
+
|
229 |
+
# Include port specific CMake fragment
|
230 |
+
if(DEFINED BOOST_CMAKE_FRAGMENT)
|
231 |
+
message(STATUS "Including ${BOOST_CMAKE_FRAGMENT}")
|
232 |
+
include(${BOOST_CMAKE_FRAGMENT})
|
233 |
+
endif()
|
234 |
+
|
235 |
+
configure_file(${CMAKE_CURRENT_LIST_DIR}/user-config.jam.in ${CMAKE_CURRENT_BINARY_DIR}/user-config.jam @ONLY)
|
236 |
+
|
237 |
+
add_custom_target(boost ALL
|
238 |
+
COMMAND "${B2_EXE}"
|
239 |
+
toolset=${USER_CONFIG_TOOLSET}
|
240 |
+
--user-config=${CMAKE_CURRENT_BINARY_DIR}/user-config.jam
|
241 |
+
--stagedir=${CMAKE_CURRENT_BINARY_DIR}/stage
|
242 |
+
--build-dir=${CMAKE_CURRENT_BINARY_DIR}
|
243 |
+
${B2_OPTIONS}
|
244 |
+
--with-atomic
|
245 |
+
--with-random
|
246 |
+
--with-date_time
|
247 |
+
--with-filesystem
|
248 |
+
--with-system
|
249 |
+
--with-thread
|
250 |
+
--with-chrono
|
251 |
+
-j${NUMBER_OF_PROCESSORS}
|
252 |
+
-sBOOST_ROOT=${BOOST_BUILD_PATH}
|
253 |
+
-sBOOST_BUILD_PATH=${BOOST_BUILD_PATH}
|
254 |
+
--debug-configuration
|
255 |
+
--debug-building
|
256 |
+
--debug-generators
|
257 |
+
--ignore-site-config
|
258 |
+
--hash
|
259 |
+
-q
|
260 |
+
debug-symbols=on
|
261 |
+
# Enable debugging level 2.
|
262 |
+
-d +2
|
263 |
+
|
264 |
+
threading=multi
|
265 |
+
|
266 |
+
stage
|
267 |
+
WORKING_DIRECTORY ${SOURCE_PATH}/build
|
268 |
+
)
|
269 |
+
|
270 |
+
set(SUBDIR ${CMAKE_CURRENT_BINARY_DIR}/stage/lib)
|
271 |
+
install(
|
272 |
+
CODE "
|
273 |
+
file(GLOB LIBS \"${SUBDIR}/*.so.*\" \"${SUBDIR}/*.so\" \"${SUBDIR}/*.a\" \"${SUBDIR}/*.dylib\" \"${SUBDIR}/*.dylib.*\" \"${SUBDIR}/*.lib\")
|
274 |
+
if(LIBS)
|
275 |
+
file(INSTALL \${LIBS} DESTINATION \"\${CMAKE_INSTALL_PREFIX}/lib\")
|
276 |
+
endif()
|
277 |
+
file(GLOB DLLS \"${SUBDIR}/*.dll\" \"${SUBDIR}/*.pyd\")
|
278 |
+
if(DLLS)
|
279 |
+
file(INSTALL \${DLLS} DESTINATION \"\${CMAKE_INSTALL_PREFIX}/bin\")
|
280 |
+
endif()
|
281 |
+
"
|
282 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/Jamroot.jam.in
ADDED
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
constant BOOST_VERSION : @BOOST_VERSION@ ;
|
2 |
+
constant BOOST_VERSION_ABI_TAG : @BOOST_VERSION_ABI_TAG@ ;
|
3 |
+
constant BOOST_JAMROOT_MODULE : $(__name__) ;
|
4 |
+
|
5 |
+
import boostcpp ;
|
6 |
+
import feature ;
|
7 |
+
|
8 |
+
boostcpp.set-version $(BOOST_VERSION) ;
|
9 |
+
|
10 |
+
project boost : requirements
|
11 |
+
<include>include&&"@CURRENT_INSTALLED_DIR@/include"
|
12 |
+
<define>BOOST_ALL_NO_LIB=1
|
13 |
+
<tag>@$(__name__).tag
|
14 |
+
@B2_REQUIREMENTS@
|
15 |
+
;
|
16 |
+
|
17 |
+
rule boost-install ( libraries * )
|
18 |
+
{
|
19 |
+
stagedir = [ option.get stagedir ] ;
|
20 |
+
install stage
|
21 |
+
: $(libraries)
|
22 |
+
: <location>$(stagedir)/lib ;
|
23 |
+
}
|
24 |
+
|
25 |
+
rule tag ( name : type ? : property-set )
|
26 |
+
{
|
27 |
+
return [ boostcpp.tag $(name) : $(type) : $(property-set) ] ;
|
28 |
+
}
|
29 |
+
|
30 |
+
rule python-tag ( name : type ? : property-set )
|
31 |
+
{
|
32 |
+
return [ boostcpp.python-tag $(name) : $(type) : $(property-set) ] ;
|
33 |
+
}
|
34 |
+
|
35 |
+
if "@PORT@" != "boost-system"
|
36 |
+
{
|
37 |
+
use-project /boost/system : . ;
|
38 |
+
|
39 |
+
lib boost_system : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_system@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
40 |
+
lib boost_system : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_system@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
41 |
+
explicit boost_system ;
|
42 |
+
|
43 |
+
use-project /boost : . ;
|
44 |
+
alias system : boost_system ;
|
45 |
+
}
|
46 |
+
|
47 |
+
if "@PORT@" != "boost-chrono"
|
48 |
+
{
|
49 |
+
use-project /boost/chrono : . ;
|
50 |
+
|
51 |
+
lib boost_chrono : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_chrono@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
52 |
+
lib boost_chrono : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_chrono@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
53 |
+
explicit boost_chrono ;
|
54 |
+
}
|
55 |
+
|
56 |
+
if "@PORT@" != "boost-regex"
|
57 |
+
{
|
58 |
+
use-project /boost/regex : . ;
|
59 |
+
|
60 |
+
lib boost_regex : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_regex@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
61 |
+
lib boost_regex : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_regex@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
62 |
+
explicit boost_regex ;
|
63 |
+
}
|
64 |
+
|
65 |
+
if "@PORT@" != "boost-date-time"
|
66 |
+
{
|
67 |
+
use-project /boost/date_time : . ;
|
68 |
+
|
69 |
+
lib boost_date_time : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_date_time@BOOST_LIB_RELEASE_SUFFIX@" <variant>release -<library>/boost/date_time//boost_date_time ;
|
70 |
+
lib boost_date_time : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_date_time@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug -<library>/boost/date_time//boost_date_time ;
|
71 |
+
explicit boost_date_time ;
|
72 |
+
}
|
73 |
+
|
74 |
+
if "@PORT@" != "boost-thread"
|
75 |
+
{
|
76 |
+
use-project /boost/thread : . ;
|
77 |
+
|
78 |
+
lib boost_thread : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_thread@BOOST_LIB_RELEASE_SUFFIX@" <variant>release : : <library>/boost/date_time//boost_date_time ;
|
79 |
+
lib boost_thread : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_thread@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug : : <library>/boost/date_time//boost_date_time ;
|
80 |
+
explicit boost_thread ;
|
81 |
+
}
|
82 |
+
|
83 |
+
if "@PORT@" != "boost-timer"
|
84 |
+
{
|
85 |
+
use-project /boost/timer : . ;
|
86 |
+
|
87 |
+
lib boost_timer : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_timer@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
88 |
+
lib boost_timer : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_timer@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
89 |
+
explicit boost_timer ;
|
90 |
+
}
|
91 |
+
|
92 |
+
if "@PORT@" != "boost-filesystem"
|
93 |
+
{
|
94 |
+
use-project /boost/filesystem : . ;
|
95 |
+
|
96 |
+
lib boost_filesystem : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_filesystem@BOOST_LIB_RELEASE_SUFFIX@" <variant>release : : <library>/boost/system//boost_system ;
|
97 |
+
lib boost_filesystem : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_filesystem@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug : : <library>/boost/system//boost_system ;
|
98 |
+
explicit boost_filesystem ;
|
99 |
+
}
|
100 |
+
|
101 |
+
if "@PORT@" != "boost-atomic"
|
102 |
+
{
|
103 |
+
use-project /boost/atomic : . ;
|
104 |
+
|
105 |
+
lib boost_atomic : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_atomic@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
106 |
+
lib boost_atomic : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_atomic@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
107 |
+
explicit boost_atomic ;
|
108 |
+
}
|
109 |
+
|
110 |
+
if "@PORT@" != "boost-context"
|
111 |
+
{
|
112 |
+
feature.feature segmented-stacks : on : optional propagated composite ;
|
113 |
+
feature.compose <segmented-stacks>on : <define>BOOST_USE_SEGMENTED_STACKS ;
|
114 |
+
|
115 |
+
use-project /boost/context : . ;
|
116 |
+
|
117 |
+
lib boost_context : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_context@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
118 |
+
lib boost_context : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_context@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
119 |
+
explicit boost_context ;
|
120 |
+
}
|
121 |
+
|
122 |
+
if "@PORT@" != "boost-test"
|
123 |
+
{
|
124 |
+
use-project /boost/test : . ;
|
125 |
+
|
126 |
+
lib boost_unit_test_framework : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_unit_test_framework@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
127 |
+
lib boost_unit_test_framework : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_unit_test_framework@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
128 |
+
explicit boost_unit_test_framework ;
|
129 |
+
}
|
130 |
+
|
131 |
+
if "@PORT@" != "boost-serialization"
|
132 |
+
{
|
133 |
+
use-project /boost/serialization : . ;
|
134 |
+
|
135 |
+
lib boost_serialization : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_serialization@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
136 |
+
lib boost_serialization : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_serialization@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
137 |
+
explicit boost_serialization ;
|
138 |
+
}
|
139 |
+
|
140 |
+
if "@PORT@" != "boost-mpi"
|
141 |
+
{
|
142 |
+
use-project /boost/mpi : . ;
|
143 |
+
|
144 |
+
lib boost_mpi : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_mpi@BOOST_LIB_RELEASE_SUFFIX@" <variant>release : : <library>/boost/serialization//boost_serialization ;
|
145 |
+
lib boost_mpi : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_mpi@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug : : <library>/boost/serialization//boost_serialization ;
|
146 |
+
explicit boost_mpi ;
|
147 |
+
}
|
148 |
+
|
149 |
+
if "@PORT@" != "boost-container"
|
150 |
+
{
|
151 |
+
use-project /boost/container : . ;
|
152 |
+
|
153 |
+
lib boost_container : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_container@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
154 |
+
lib boost_container : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_container@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
155 |
+
explicit boost_container ;
|
156 |
+
}
|
157 |
+
|
158 |
+
if "@PORT@" != "boost-python"
|
159 |
+
{
|
160 |
+
use-project /boost/python : . ;
|
161 |
+
|
162 |
+
lib boost_python : : <file>"@CURRENT_INSTALLED_DIR@/lib/@BOOST_LIB_PREFIX@boost_python@PYTHON_VERSION_TAG@@BOOST_LIB_RELEASE_SUFFIX@" <variant>release ;
|
163 |
+
lib boost_python : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/@BOOST_LIB_PREFIX@boost_python@PYTHON_VERSION_TAG@@BOOST_LIB_DEBUG_SUFFIX@" <variant>debug ;
|
164 |
+
explicit boost_python ;
|
165 |
+
}
|
166 |
+
|
167 |
+
rule requires ( foo * )
|
168 |
+
{
|
169 |
+
}
|
170 |
+
|
171 |
+
rule boost-lib ( name : sources * : requirements * : default-build * : usage-requirements * )
|
172 |
+
{
|
173 |
+
name = boost_$(name) ;
|
174 |
+
lib $(name) : $(sources) : $(requirements) : $(default-build) : $(usage-requirements) ;
|
175 |
+
boost-install $(name) ;
|
176 |
+
}
|
177 |
+
|
178 |
+
use-project /boost/@PORT@ : build ;
|
179 |
+
|
180 |
+
build-project build ;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/boost-modular-build.cmake
ADDED
@@ -0,0 +1,197 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
include_guard(GLOBAL)
|
2 |
+
include("${CMAKE_CURRENT_LIST_DIR}/../vcpkg-cmake/vcpkg-port-config.cmake")
|
3 |
+
|
4 |
+
get_filename_component(BOOST_BUILD_INSTALLED_DIR "${CMAKE_CURRENT_LIST_DIR}" DIRECTORY)
|
5 |
+
get_filename_component(BOOST_BUILD_INSTALLED_DIR "${BOOST_BUILD_INSTALLED_DIR}" DIRECTORY)
|
6 |
+
|
7 |
+
set(BOOST_VERSION 1.78.0)
|
8 |
+
string(REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)" BOOST_VERSION_MATCH "${BOOST_VERSION}")
|
9 |
+
if("${CMAKE_MATCH_3}" GREATER 0)
|
10 |
+
set(BOOST_VERSION_ABI_TAG "${CMAKE_MATCH_1}_${CMAKE_MATCH_2}_${CMAKE_MATCH_3}")
|
11 |
+
else()
|
12 |
+
set(BOOST_VERSION_ABI_TAG "${CMAKE_MATCH_1}_${CMAKE_MATCH_2}")
|
13 |
+
endif()
|
14 |
+
|
15 |
+
function(boost_modular_build)
|
16 |
+
cmake_parse_arguments(_bm "" "SOURCE_PATH;BOOST_CMAKE_FRAGMENT" "" ${ARGN})
|
17 |
+
|
18 |
+
if(NOT DEFINED _bm_SOURCE_PATH)
|
19 |
+
message(FATAL_ERROR "SOURCE_PATH is a required argument to boost_modular_build.")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
# The following variables are used in the Jamroot.jam
|
23 |
+
set(B2_REQUIREMENTS)
|
24 |
+
|
25 |
+
# Some CMake variables may be overridden in the file specified in ${_bm_BOOST_CMAKE_FRAGMENT}
|
26 |
+
if(DEFINED _bm_BOOST_CMAKE_FRAGMENT)
|
27 |
+
message(STATUS "Including ${_bm_BOOST_CMAKE_FRAGMENT}")
|
28 |
+
include(${_bm_BOOST_CMAKE_FRAGMENT})
|
29 |
+
endif()
|
30 |
+
|
31 |
+
set(BOOST_BUILD_PATH "${BOOST_BUILD_INSTALLED_DIR}/tools/boost-build")
|
32 |
+
|
33 |
+
if(EXISTS "${BOOST_BUILD_PATH}/b2.exe")
|
34 |
+
set(B2_EXE "${BOOST_BUILD_PATH}/b2.exe")
|
35 |
+
elseif(EXISTS "${BOOST_BUILD_PATH}/b2")
|
36 |
+
set(B2_EXE "${BOOST_BUILD_PATH}/b2")
|
37 |
+
else()
|
38 |
+
message(FATAL_ERROR "Could not find b2 in ${BOOST_BUILD_PATH}")
|
39 |
+
endif()
|
40 |
+
|
41 |
+
if(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
42 |
+
set(BOOST_LIB_PREFIX)
|
43 |
+
if(VCPKG_PLATFORM_TOOLSET MATCHES "v14.")
|
44 |
+
set(BOOST_LIB_RELEASE_SUFFIX -vc140-mt.lib)
|
45 |
+
set(BOOST_LIB_DEBUG_SUFFIX -vc140-mt-gd.lib)
|
46 |
+
elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v120")
|
47 |
+
set(BOOST_LIB_RELEASE_SUFFIX -vc120-mt.lib)
|
48 |
+
set(BOOST_LIB_DEBUG_SUFFIX -vc120-mt-gd.lib)
|
49 |
+
else()
|
50 |
+
set(BOOST_LIB_RELEASE_SUFFIX .lib)
|
51 |
+
set(BOOST_LIB_DEBUG_SUFFIX d.lib)
|
52 |
+
endif()
|
53 |
+
else()
|
54 |
+
set(BOOST_LIB_PREFIX lib)
|
55 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
56 |
+
set(BOOST_LIB_RELEASE_SUFFIX .a)
|
57 |
+
set(BOOST_LIB_DEBUG_SUFFIX .a)
|
58 |
+
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
59 |
+
set(BOOST_LIB_RELEASE_SUFFIX .dylib)
|
60 |
+
set(BOOST_LIB_DEBUG_SUFFIX .dylib)
|
61 |
+
elseif(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "MinGW")
|
62 |
+
set(BOOST_LIB_RELEASE_SUFFIX .dll.a)
|
63 |
+
set(BOOST_LIB_DEBUG_SUFFIX .dll.a)
|
64 |
+
else()
|
65 |
+
set(BOOST_LIB_RELEASE_SUFFIX .so)
|
66 |
+
set(BOOST_LIB_DEBUG_SUFFIX .so)
|
67 |
+
endif()
|
68 |
+
endif()
|
69 |
+
|
70 |
+
set(_jamfile)
|
71 |
+
if(EXISTS "${_bm_SOURCE_PATH}/build/Jamfile.v2")
|
72 |
+
set(_jamfile "${_bm_SOURCE_PATH}/build/Jamfile.v2")
|
73 |
+
elseif(EXISTS "${_bm_SOURCE_PATH}/build/Jamfile")
|
74 |
+
set(_jamfile "${_bm_SOURCE_PATH}/build/Jamfile")
|
75 |
+
endif()
|
76 |
+
if(_jamfile)
|
77 |
+
file(READ "${_jamfile}" _contents)
|
78 |
+
string(REGEX REPLACE
|
79 |
+
"\.\./\.\./([^/ ]+)/build//(boost_[^/ ]+)"
|
80 |
+
"/boost/\\1//\\2"
|
81 |
+
_contents
|
82 |
+
"${_contents}"
|
83 |
+
)
|
84 |
+
string(REGEX REPLACE "/boost//([^/ ]+)" "/boost/\\1//boost_\\1" _contents "${_contents}")
|
85 |
+
file(WRITE "${_jamfile}" "${_contents}")
|
86 |
+
endif()
|
87 |
+
|
88 |
+
if("python2" IN_LIST FEATURES)
|
89 |
+
# Find Python2 in the current installed directory
|
90 |
+
file(GLOB python2_include_dir "${CURRENT_INSTALLED_DIR}/include/python2.*")
|
91 |
+
string(REGEX REPLACE ".*python([0-9\.]+).*" "\\1" python2_version "${python2_include_dir}")
|
92 |
+
string(REPLACE "." "" PYTHON_VERSION_TAG "${python2_version}")
|
93 |
+
endif()
|
94 |
+
if("python3" IN_LIST FEATURES)
|
95 |
+
# Find Python3 in the current installed directory
|
96 |
+
file(GLOB python3_include_dir "${CURRENT_INSTALLED_DIR}/include/python3.*")
|
97 |
+
string(REGEX REPLACE ".*python([0-9\.]+).*" "\\1" python3_version "${python3_include_dir}")
|
98 |
+
string(REPLACE "." "" PYTHON_VERSION_TAG "${python3_version}")
|
99 |
+
endif()
|
100 |
+
|
101 |
+
configure_file(${BOOST_BUILD_INSTALLED_DIR}/share/boost-build/Jamroot.jam.in ${_bm_SOURCE_PATH}/Jamroot.jam @ONLY)
|
102 |
+
|
103 |
+
set(configure_options)
|
104 |
+
if(_bm_BOOST_CMAKE_FRAGMENT)
|
105 |
+
list(APPEND configure_options "-DBOOST_CMAKE_FRAGMENT=${_bm_BOOST_CMAKE_FRAGMENT}")
|
106 |
+
endif()
|
107 |
+
|
108 |
+
vcpkg_cmake_get_vars(cmake_vars_file)
|
109 |
+
|
110 |
+
vcpkg_check_features(
|
111 |
+
OUT_FEATURE_OPTIONS feature_options
|
112 |
+
FEATURES
|
113 |
+
python2 WITH_PYTHON2
|
114 |
+
python3 WITH_PYTHON3
|
115 |
+
)
|
116 |
+
|
117 |
+
vcpkg_cmake_configure(
|
118 |
+
SOURCE_PATH ${BOOST_BUILD_INSTALLED_DIR}/share/boost-build
|
119 |
+
GENERATOR Ninja
|
120 |
+
OPTIONS
|
121 |
+
"-DPORT=${PORT}"
|
122 |
+
"-DFEATURES=${FEATURES}"
|
123 |
+
${feature_options}
|
124 |
+
"-DCURRENT_INSTALLED_DIR=${CURRENT_INSTALLED_DIR}"
|
125 |
+
"-DB2_EXE=${B2_EXE}"
|
126 |
+
"-DSOURCE_PATH=${_bm_SOURCE_PATH}"
|
127 |
+
"-DBOOST_BUILD_PATH=${BOOST_BUILD_PATH}"
|
128 |
+
"-DVCPKG_CRT_LINKAGE=${VCPKG_CRT_LINKAGE}"
|
129 |
+
"-DVCPKG_CMAKE_VARS_FILE=${cmake_vars_file}"
|
130 |
+
${configure_options}
|
131 |
+
MAYBE_UNUSED_VARIABLES
|
132 |
+
FEATURES
|
133 |
+
)
|
134 |
+
|
135 |
+
vcpkg_cmake_install()
|
136 |
+
|
137 |
+
vcpkg_copy_pdbs(
|
138 |
+
BUILD_PATHS
|
139 |
+
"${CURRENT_PACKAGES_DIR}/bin/*.dll"
|
140 |
+
"${CURRENT_PACKAGES_DIR}/bin/*.pyd"
|
141 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin/*.dll"
|
142 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin/*.pyd"
|
143 |
+
)
|
144 |
+
|
145 |
+
file(GLOB INSTALLED_LIBS "${CURRENT_PACKAGES_DIR}/debug/lib/*.lib" "${CURRENT_PACKAGES_DIR}/lib/*.lib")
|
146 |
+
foreach(LIB IN LISTS INSTALLED_LIBS)
|
147 |
+
get_filename_component(OLD_FILENAME ${LIB} NAME)
|
148 |
+
get_filename_component(DIRECTORY_OF_LIB_FILE ${LIB} DIRECTORY)
|
149 |
+
string(REPLACE "libboost_" "boost_" NEW_FILENAME ${OLD_FILENAME})
|
150 |
+
string(REPLACE "-s-" "-" NEW_FILENAME ${NEW_FILENAME}) # For Release libs
|
151 |
+
string(REPLACE "-vc141-" "-vc140-" NEW_FILENAME ${NEW_FILENAME}) # To merge VS2017 and VS2015 binaries
|
152 |
+
string(REPLACE "-vc142-" "-vc140-" NEW_FILENAME ${NEW_FILENAME}) # To merge VS2019 and VS2015 binaries
|
153 |
+
string(REPLACE "-vc143-" "-vc140-" NEW_FILENAME ${NEW_FILENAME}) # To merge VS2022 and VS2015 binaries
|
154 |
+
string(REPLACE "-sgd-" "-gd-" NEW_FILENAME ${NEW_FILENAME}) # For Debug libs
|
155 |
+
string(REPLACE "-sgyd-" "-gyd-" NEW_FILENAME ${NEW_FILENAME}) # For Debug libs
|
156 |
+
string(REPLACE "-x32-" "-" NEW_FILENAME ${NEW_FILENAME}) # To enable CMake 3.10 and earlier to locate the binaries
|
157 |
+
string(REPLACE "-x64-" "-" NEW_FILENAME ${NEW_FILENAME}) # To enable CMake 3.10 and earlier to locate the binaries
|
158 |
+
string(REPLACE "-a32-" "-" NEW_FILENAME ${NEW_FILENAME}) # To enable CMake 3.10 and earlier to locate the binaries
|
159 |
+
string(REPLACE "-a64-" "-" NEW_FILENAME ${NEW_FILENAME}) # To enable CMake 3.10 and earlier to locate the binaries
|
160 |
+
string(REPLACE "-${BOOST_VERSION_ABI_TAG}" "" NEW_FILENAME ${NEW_FILENAME}) # To enable CMake > 3.10 to locate the binaries
|
161 |
+
if("${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}" STREQUAL "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}")
|
162 |
+
# nothing to do
|
163 |
+
elseif(EXISTS "${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}")
|
164 |
+
file(REMOVE "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}")
|
165 |
+
else()
|
166 |
+
file(RENAME "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}" "${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}")
|
167 |
+
endif()
|
168 |
+
endforeach()
|
169 |
+
# Similar for mingw
|
170 |
+
file(GLOB INSTALLED_LIBS "${CURRENT_PACKAGES_DIR}/debug/lib/*-mgw*-*.a" "${CURRENT_PACKAGES_DIR}/lib/*-mgw*-*.a")
|
171 |
+
foreach(LIB IN LISTS INSTALLED_LIBS)
|
172 |
+
get_filename_component(OLD_FILENAME "${LIB}" NAME)
|
173 |
+
get_filename_component(DIRECTORY_OF_LIB_FILE "${LIB}" DIRECTORY)
|
174 |
+
string(REGEX REPLACE "-mgw[0-9]+-.*[0-9](\\.dll\\.a|\\.a)$" "\\1" NEW_FILENAME "${OLD_FILENAME}")
|
175 |
+
if("${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}" STREQUAL "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}")
|
176 |
+
# nothing to do
|
177 |
+
elseif(EXISTS "${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}")
|
178 |
+
file(REMOVE "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}")
|
179 |
+
else()
|
180 |
+
file(RENAME "${DIRECTORY_OF_LIB_FILE}/${OLD_FILENAME}" "${DIRECTORY_OF_LIB_FILE}/${NEW_FILENAME}")
|
181 |
+
endif()
|
182 |
+
endforeach()
|
183 |
+
|
184 |
+
# boost-regex[icu] and boost-locale[icu] generate has_icu.lib
|
185 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/debug/lib/has_icu.lib")
|
186 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/has_icu.lib")
|
187 |
+
endif()
|
188 |
+
if(EXISTS "${CURRENT_PACKAGES_DIR}/lib/has_icu.lib")
|
189 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/lib/has_icu.lib")
|
190 |
+
endif()
|
191 |
+
|
192 |
+
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/lib")
|
193 |
+
message(FATAL_ERROR "No libraries were produced. This indicates a failure while building the boost library.")
|
194 |
+
endif()
|
195 |
+
|
196 |
+
configure_file(${BOOST_BUILD_INSTALLED_DIR}/share/boost-build/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage COPYONLY)
|
197 |
+
endfunction()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/nothing.bat
ADDED
File without changes
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
2 |
+
|
3 |
+
file(
|
4 |
+
COPY
|
5 |
+
${CMAKE_CURRENT_LIST_DIR}/boost-modular-build.cmake
|
6 |
+
${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt
|
7 |
+
${CMAKE_CURRENT_LIST_DIR}/Jamroot.jam.in
|
8 |
+
${CMAKE_CURRENT_LIST_DIR}/nothing.bat
|
9 |
+
${CMAKE_CURRENT_LIST_DIR}/usage
|
10 |
+
${CMAKE_CURRENT_LIST_DIR}/user-config.jam.in
|
11 |
+
DESTINATION
|
12 |
+
${CURRENT_PACKAGES_DIR}/share/boost-build
|
13 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/usage
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package boost is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
find_package(Boost REQUIRED [COMPONENTS <libs>...])
|
4 |
+
target_link_libraries(main PRIVATE Boost::boost Boost::<lib1> Boost::<lib2> ...)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/user-config.jam.in
ADDED
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import toolset ;
|
2 |
+
|
3 |
+
using @USER_CONFIG_TOOLSET@ : @USER_CONFIG_TOOLSET_VERSION@ : @USER_CONFIG_TOOLSET_INVOCATION_COMMAND@
|
4 |
+
:
|
5 |
+
@USER_CONFIG_TOOLSET_OPTIONS@
|
6 |
+
;
|
7 |
+
|
8 |
+
@USER_CONFIG_EXTRA_LINES@
|
9 |
+
|
10 |
+
project user-config : requirements @USER_CONFIG_REQUIREMENTS@ ;
|
11 |
+
|
12 |
+
if "@USER_CONFIG_TOOLSET@" = "msvc" || "@USER_CONFIG_TOOLSET@" = "clang-win"
|
13 |
+
{
|
14 |
+
lib advapi32 ;
|
15 |
+
|
16 |
+
lib icuuc : : <file>"@CURRENT_INSTALLED_DIR@/lib/icuuc.lib" <variant>release : : <library>advapi32 ;
|
17 |
+
lib icuuc : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/icuucd.lib" <variant>debug : : <library>advapi32 ;
|
18 |
+
|
19 |
+
lib icuin : : <file>"@CURRENT_INSTALLED_DIR@/lib/icuin.lib" <variant>release : : ;
|
20 |
+
lib icuin : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/icuind.lib" <variant>debug : : ;
|
21 |
+
|
22 |
+
lib icudt : : <file>"@CURRENT_INSTALLED_DIR@/lib/icudt.lib" <variant>release : : ;
|
23 |
+
lib icudt : : <file>"@CURRENT_INSTALLED_DIR@/debug/lib/icudtd.lib" <variant>debug : : ;
|
24 |
+
}
|
25 |
+
else
|
26 |
+
{
|
27 |
+
if "@CMAKE_SYSTEM_NAME@" = "Windows" # We are hopelessly stuck inside boost-modular-build-helper, only this works
|
28 |
+
{
|
29 |
+
lib icuuc : : <name>icuuc <search>"@CURRENT_INSTALLED_DIR@/lib" <variant>release : : ;
|
30 |
+
lib icuuc : : <name>icuucd <search>"@CURRENT_INSTALLED_DIR@/debug/lib" <variant>debug : : ;
|
31 |
+
|
32 |
+
lib icuin : : <name>icuin <search>"@CURRENT_INSTALLED_DIR@/lib" <variant>release : : ;
|
33 |
+
lib icuin : : <name>icuind <search>"@CURRENT_INSTALLED_DIR@/debug/lib" <variant>debug : : ;
|
34 |
+
|
35 |
+
lib icudt : : <name>icudt <search>"@CURRENT_INSTALLED_DIR@/lib" <variant>release : : ;
|
36 |
+
lib icudt : : <name>icudtd <search>"@CURRENT_INSTALLED_DIR@/debug/lib" <variant>debug : : ;
|
37 |
+
}
|
38 |
+
else
|
39 |
+
{
|
40 |
+
lib dl ;
|
41 |
+
lib icuuc : : <name>icuuc <search>"@CURRENT_INSTALLED_DIR@/lib" <variant>release : : <library>dl ;
|
42 |
+
lib icuuc : : <name>icuuc <search>"@CURRENT_INSTALLED_DIR@/debug/lib" <variant>debug : : <library>dl ;
|
43 |
+
|
44 |
+
lib icuin : : <name>icui18n <search>"@CURRENT_INSTALLED_DIR@/lib" <variant>release : : ;
|
45 |
+
lib icuin : : <name>icui18n <search>"@CURRENT_INSTALLED_DIR@/debug/lib" <variant>debug : : ;
|
46 |
+
|
47 |
+
lib icudt : : <name>icudata <search>"@CURRENT_INSTALLED_DIR@/lib" <variant>release : : ;
|
48 |
+
lib icudt : : <name>icudata <search>"@CURRENT_INSTALLED_DIR@/debug/lib" <variant>debug : : ;
|
49 |
+
}
|
50 |
+
}
|
51 |
+
|
52 |
+
lib iconv : : <file>"@VCPKG_ICONV_LIBRARY_RELEASE@" <link>shared <runtime-link>shared <variant>release : : ;
|
53 |
+
lib iconv : : <file>"@VCPKG_ICONV_LIBRARY_DEBUG@" <link>shared <runtime-link>shared <variant>debug : : ;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-modular-build-helper/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-modular-build-helper",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Internal vcpkg port used to build Boost libraries",
|
6 |
+
"license": "MIT",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-uninstall",
|
9 |
+
"vcpkg-cmake"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-move/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/move
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 e17ceeaf96375e2fed7ad8be88970cdcb9b94ff3e101bdf4291ef48bf64485da3c1b7449f77881a7a757a9f5a81568cb387733e1b1b3c66f99058db1487e7554
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-move/vcpkg.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-move",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost move module",
|
5 |
+
"homepage": "https://github.com/boostorg/move",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-assert",
|
8 |
+
"boost-config",
|
9 |
+
"boost-core",
|
10 |
+
"boost-static-assert",
|
11 |
+
"boost-vcpkg-helpers",
|
12 |
+
"boost-winapi"
|
13 |
+
]
|
14 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-mp11/portfile.cmake
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Automatically generated by scripts/boost/generate-ports.ps1
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO boostorg/mp11
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 e98ca08ffa766760f20f3e94a97cfe82a024c4a3ed7d1101e2a5a790c9d50dc19d83a2a9a934432f452c2746de1a8fb81c105e379703c4e2be745ef697c38a42
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
|
12 |
+
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-mp11/vcpkg.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-mp11",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost mp11 module",
|
5 |
+
"homepage": "https://github.com/boostorg/mp11",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-vcpkg-helpers"
|
8 |
+
]
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-mpi/fix-build-boost_mpi_python-on-windows.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
build/Jamfile.v2 | 1 +
|
2 |
+
1 file changed, 1 insertion(+)
|
3 |
+
|
4 |
+
diff --git a/build/Jamfile.v2 b/build/Jamfile.v2
|
5 |
+
index 8a2f1ac..abfba37 100644
|
6 |
+
--- a/build/Jamfile.v2
|
7 |
+
+++ b/build/Jamfile.v2
|
8 |
+
@@ -77,6 +77,7 @@ lib boost_mpi
|
9 |
+
: # Requirements
|
10 |
+
<library>boost_mpi
|
11 |
+
<library>/mpi//mpi [ mpi.extra-requirements ]
|
12 |
+
+ <library>/python//python_for_extensions
|
13 |
+
<library>/boost/python//boost_python
|
14 |
+
<link>shared:<define>BOOST_MPI_DYN_LINK=1
|
15 |
+
<link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1
|