Spaces:
Sleeping
Sleeping
b9f1b8b660f92b8b07169572e5fe3fb9f265c49d257c2835cc04c31cdea0f256
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-yap/portfile.cmake +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-yap/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/0001-vcpkg.patch +32 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/0002-disable-waring-4065.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/portfile.cmake +49 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/embed-debug-info.patch +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/fix-generate-build-path.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/portfile.cmake +195 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/vcpkg.json +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/box2d/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/box2d/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/export-target.patch +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/fix-build.patch +56 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/fix-dependency.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/portfile.cmake +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/vcpkg.json +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/CMakeLists.txt +137 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/check_getcontext.cc +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/fix-unique_ptr.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/fix-unordered_map.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/vcpkg.json +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brigand/portfile.cmake +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brigand/remove-tests.patch +55 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brigand/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/fix-arm-uwp.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/fix-ios.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/install.patch +58 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/pkgconfig.patch +74 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/portfile.cmake +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/vcpkg-cmake-wrapper.cmake +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/fix_boost_ptr.patch +14 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/fix_thrift.patch +28 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/portfile.cmake +37 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/vcpkg.json +29 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brunocodutra-metal/portfile.cmake +24 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brunocodutra-metal/vcpkg.json +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brynet/portfile.cmake +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/brynet/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bshoshany-thread-pool/portfile.cmake +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bshoshany-thread-pool/vcpkg.json +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bsio/portfile.cmake +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/bsio/vcpkg.json +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux-mariadb-client/portfile.cmake +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux-mariadb-client/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux/fix-errorC7595.patch +15 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux/portfile.cmake +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux/vcpkg.json +15 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boost-yap/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/yap
|
6 |
+
REF boost-1.78.0
|
7 |
+
SHA512 7cb6c90ad0d7c1303dfaea14ddc6cafd3343b93d00f41ece57fbc38ae5ee923fc5f0abe51eb28d1b336b6f66a5b7778b063e5583738ef409acffb4253e831a8d
|
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-yap/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boost-yap",
|
3 |
+
"version": "1.78.0",
|
4 |
+
"description": "Boost yap module",
|
5 |
+
"homepage": "https://github.com/boostorg/yap",
|
6 |
+
"dependencies": [
|
7 |
+
"boost-hana",
|
8 |
+
"boost-preprocessor",
|
9 |
+
"boost-type-index",
|
10 |
+
"boost-vcpkg-helpers"
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/0001-vcpkg.patch
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 893bca7..83ff477 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -562,7 +562,7 @@ endif()
|
6 |
+
|
7 |
+
# Add minimal googletest targets. The provided one has many side-effects, and
|
8 |
+
# googletest has a very straightforward build.
|
9 |
+
-add_library(boringssl_gtest third_party/googletest/src/gtest-all.cc)
|
10 |
+
+add_library(boringssl_gtest STATIC third_party/googletest/src/gtest-all.cc)
|
11 |
+
target_include_directories(boringssl_gtest PRIVATE third_party/googletest)
|
12 |
+
|
13 |
+
include_directories(third_party/googletest/include)
|
14 |
+
@@ -649,3 +649,18 @@ add_custom_target(
|
15 |
+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
16 |
+
DEPENDS all_tests bssl_shim handshaker fips_specific_tests_if_any
|
17 |
+
USES_TERMINAL)
|
18 |
+
+
|
19 |
+
+install(TARGETS crypto ssl
|
20 |
+
+ RUNTIME DESTINATION bin
|
21 |
+
+ LIBRARY DESTINATION lib
|
22 |
+
+ ARCHIVE DESTINATION lib)
|
23 |
+
+
|
24 |
+
+option(INSTALL_HEADERS "Install headers" ON)
|
25 |
+
+if(INSTALL_HEADERS)
|
26 |
+
+ install(DIRECTORY include/ DESTINATION include)
|
27 |
+
+endif()
|
28 |
+
+
|
29 |
+
+option(INSTALL_TOOLS "Install bssl executable" OFF)
|
30 |
+
+if(INSTALL_TOOLS)
|
31 |
+
+ install(TARGETS bssl DESTINATION tools/boringssl)
|
32 |
+
+endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/0002-disable-waring-4065.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/decrepit/CMakeLists.txt b/decrepit/CMakeLists.txt
|
2 |
+
index ef95a6b..0b52c05 100644
|
3 |
+
--- a/decrepit/CMakeLists.txt
|
4 |
+
+++ b/decrepit/CMakeLists.txt
|
5 |
+
@@ -40,6 +40,10 @@ add_executable(
|
6 |
+
|
7 |
+
add_dependencies(decrepit_test global_target)
|
8 |
+
|
9 |
+
+if(MSVC)
|
10 |
+
+ target_compile_options(decrepit PRIVATE /wd4065)
|
11 |
+
+endif()
|
12 |
+
+
|
13 |
+
target_link_libraries(decrepit_test test_support_lib boringssl_gtest decrepit
|
14 |
+
crypto)
|
15 |
+
if(WIN32)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/portfile.cmake
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h")
|
2 |
+
message(FATAL_ERROR "Can't build BoringSSL if OpenSSL is installed. Please remove OpenSSL, and try to install BoringSSL again if you need it. Build will continue since BoringSSL is a drop-in replacement for OpenSSL")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_find_acquire_program(PERL)
|
6 |
+
get_filename_component(PERL_EXE_PATH ${PERL} DIRECTORY)
|
7 |
+
vcpkg_add_to_path(${PERL_EXE_PATH})
|
8 |
+
|
9 |
+
vcpkg_find_acquire_program(NASM)
|
10 |
+
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
11 |
+
vcpkg_add_to_path(${NASM_EXE_PATH})
|
12 |
+
|
13 |
+
vcpkg_find_acquire_program(GO)
|
14 |
+
get_filename_component(GO_EXE_PATH ${GO} DIRECTORY)
|
15 |
+
vcpkg_add_to_path(${GO_EXE_PATH})
|
16 |
+
|
17 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
18 |
+
FEATURES
|
19 |
+
tools INSTALL_TOOLS
|
20 |
+
)
|
21 |
+
|
22 |
+
vcpkg_from_github(
|
23 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
24 |
+
REPO google/boringssl
|
25 |
+
REF 479adf98d54a21c1d154aac59b2ce120e1d1a6d6
|
26 |
+
SHA512 74b5d001c0f5c1846b8818e9e668fa35de5171fc21a8f713d241f57b3e8abe42426fdc66b085cca1853b904def6f4bea573dfed40b8b1422894cca85b0b1a44a
|
27 |
+
HEAD_REF master
|
28 |
+
PATCHES
|
29 |
+
0001-vcpkg.patch
|
30 |
+
0002-disable-waring-4065.patch
|
31 |
+
)
|
32 |
+
|
33 |
+
vcpkg_configure_cmake(
|
34 |
+
SOURCE_PATH ${SOURCE_PATH}
|
35 |
+
PREFER_NINJA
|
36 |
+
OPTIONS
|
37 |
+
${FEATURE_OPTIONS}
|
38 |
+
OPTIONS_DEBUG
|
39 |
+
-DINSTALL_HEADERS=OFF
|
40 |
+
-DINSTALL_TOOLS=OFF
|
41 |
+
)
|
42 |
+
|
43 |
+
vcpkg_install_cmake()
|
44 |
+
|
45 |
+
if(IS_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/boringssl)
|
46 |
+
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/boringssl")
|
47 |
+
endif()
|
48 |
+
|
49 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/boringssl/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "boringssl",
|
3 |
+
"version-date": "2021-06-23",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "BoringSSl is a fork of OpenSSL developed by Google",
|
6 |
+
"homepage": "https://boringssl.googlesource.com/boringssl",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"features": {
|
9 |
+
"tools": {
|
10 |
+
"description": "Build bssl executable"
|
11 |
+
}
|
12 |
+
}
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/embed-debug-info.patch
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/build-data/cc/msvc.txt b/src/build-data/cc/msvc.txt
|
2 |
+
index 2306a4485..977e2e958 100644
|
3 |
+
--- a/src/build-data/cc/msvc.txt
|
4 |
+
+++ b/src/build-data/cc/msvc.txt
|
5 |
+
@@ -17,10 +17,10 @@ optimization_flags "/O2 /Oi"
|
6 |
+
size_optimization_flags "/O1 /Os"
|
7 |
+
|
8 |
+
# for debug info in the object file:
|
9 |
+
-#debug_info_flags "/Z7"
|
10 |
+
+debug_info_flags "/Z7"
|
11 |
+
|
12 |
+
# for using a PDB file:
|
13 |
+
-debug_info_flags "/Zi /FS"
|
14 |
+
+#debug_info_flags "/Zi /FS"
|
15 |
+
|
16 |
+
preproc_flags "/nologo /EP"
|
17 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/fix-generate-build-path.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.py b/configure.py
|
2 |
+
index 89f87d4..ba7914f 100644
|
3 |
+
--- a/configure.py
|
4 |
+
+++ b/configure.py
|
5 |
+
@@ -2076,7 +2076,7 @@ def create_template_vars(source_paths, build_paths, options, modules, cc, arch,
|
6 |
+
'maintainer_mode': options.maintainer_mode,
|
7 |
+
|
8 |
+
'out_dir': build_dir,
|
9 |
+
- 'build_dir': build_paths.build_dir,
|
10 |
+
+ 'build_dir': os.path.abspath(build_paths.build_dir),
|
11 |
+
|
12 |
+
'doc_stamp_file': os.path.join(build_paths.build_dir, 'doc.stamp'),
|
13 |
+
'makefile_path': os.path.join(build_paths.build_dir, '..', 'Makefile'),
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/portfile.cmake
ADDED
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO randombit/botan
|
4 |
+
REF d4bd416702a65eddcc14ee06b9c1b674631e6ae3 # 2.18.1
|
5 |
+
SHA512 6c8a8a772ff926402aa77ea1156e8a6b8fcaa18514107c94e9d2c7c76daaf9a02ef8c5c249d1ddf56655bab0ecd0d91490d907fc2239259689662533089b09ad
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-generate-build-path.patch
|
9 |
+
embed-debug-info.patch
|
10 |
+
)
|
11 |
+
|
12 |
+
if(CMAKE_HOST_WIN32)
|
13 |
+
vcpkg_find_acquire_program(JOM)
|
14 |
+
set(build_tool "${JOM}")
|
15 |
+
set(parallel_build "/J${VCPKG_CONCURRENCY}")
|
16 |
+
else()
|
17 |
+
find_program(MAKE make)
|
18 |
+
set(build_tool "${MAKE}")
|
19 |
+
set(parallel_build "-j${VCPKG_CONCURRENCY}")
|
20 |
+
endif()
|
21 |
+
|
22 |
+
vcpkg_find_acquire_program(PYTHON3)
|
23 |
+
get_filename_component(PYTHON3_DIR "${PYTHON3}" DIRECTORY)
|
24 |
+
set(ENV{PATH} "$ENV{PATH};${PYTHON3_DIR}")
|
25 |
+
|
26 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
27 |
+
set(BOTAN_FLAG_SHARED --enable-shared-library)
|
28 |
+
set(BOTAN_FLAG_STATIC --disable-static-library)
|
29 |
+
else()
|
30 |
+
set(BOTAN_FLAG_SHARED --disable-shared-library)
|
31 |
+
set(BOTAN_FLAG_STATIC --enable-static-library)
|
32 |
+
endif()
|
33 |
+
|
34 |
+
if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
|
35 |
+
set(BOTAN_MSVC_RUNTIME "--msvc-runtime=MD")
|
36 |
+
else()
|
37 |
+
set(BOTAN_MSVC_RUNTIME "--msvc-runtime=MT")
|
38 |
+
endif()
|
39 |
+
|
40 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
41 |
+
set(BOTAN_FLAG_CPU x86)
|
42 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
43 |
+
set(BOTAN_FLAG_CPU x86_64)
|
44 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
45 |
+
set(BOTAN_FLAG_CPU arm32)
|
46 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
47 |
+
set(BOTAN_FLAG_CPU arm64)
|
48 |
+
else()
|
49 |
+
message(FATAL_ERROR "Unsupported architecture")
|
50 |
+
endif()
|
51 |
+
|
52 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
53 |
+
FEATURES
|
54 |
+
amalgamation BOTAN_AMALGAMATION
|
55 |
+
zlib BOTAN_WITH_ZLIB
|
56 |
+
)
|
57 |
+
|
58 |
+
function(BOTAN_BUILD BOTAN_BUILD_TYPE)
|
59 |
+
|
60 |
+
if(BOTAN_BUILD_TYPE STREQUAL "dbg")
|
61 |
+
set(BOTAN_FLAG_PREFIX "${CURRENT_PACKAGES_DIR}/debug")
|
62 |
+
set(BOTAN_FLAG_DEBUGMODE --debug-mode)
|
63 |
+
set(BOTAN_DEBUG_SUFFIX "")
|
64 |
+
set(BOTAN_MSVC_RUNTIME_SUFFIX "d")
|
65 |
+
else()
|
66 |
+
set(BOTAN_FLAG_DEBUGMODE)
|
67 |
+
set(BOTAN_FLAG_PREFIX "${CURRENT_PACKAGES_DIR}")
|
68 |
+
set(BOTAN_MSVC_RUNTIME_SUFFIX "")
|
69 |
+
endif()
|
70 |
+
|
71 |
+
message(STATUS "Configure ${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE}")
|
72 |
+
|
73 |
+
if(EXISTS ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE})
|
74 |
+
file(REMOVE_RECURSE ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE})
|
75 |
+
endif()
|
76 |
+
make_directory(${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE})
|
77 |
+
|
78 |
+
set(configure_arguments --cpu=${BOTAN_FLAG_CPU}
|
79 |
+
${BOTAN_FLAG_SHARED}
|
80 |
+
${BOTAN_FLAG_STATIC}
|
81 |
+
${BOTAN_FLAG_DEBUGMODE}
|
82 |
+
"--distribution-info=vcpkg ${TARGET_TRIPLET}"
|
83 |
+
--prefix=${BOTAN_FLAG_PREFIX}
|
84 |
+
--with-pkg-config
|
85 |
+
--link-method=copy
|
86 |
+
--with-debug-info)
|
87 |
+
if(CMAKE_HOST_WIN32)
|
88 |
+
list(APPEND configure_arguments ${BOTAN_MSVC_RUNTIME}${BOTAN_MSVC_RUNTIME_SUFFIX})
|
89 |
+
endif()
|
90 |
+
|
91 |
+
if(VCPKG_CXX_FLAGS)
|
92 |
+
list(APPEND configure_arguments --extra-cxxflags ${VCPKG_CXX_FLAGS})
|
93 |
+
endif()
|
94 |
+
|
95 |
+
if("-DBOTAN_AMALGAMATION=ON" IN_LIST FEATURE_OPTIONS)
|
96 |
+
list(APPEND configure_arguments --amalgamation)
|
97 |
+
endif()
|
98 |
+
if("-DBOTAN_WITH_ZLIB=ON" IN_LIST FEATURE_OPTIONS)
|
99 |
+
list(APPEND configure_arguments --with-zlib)
|
100 |
+
list(APPEND configure_arguments --with-external-includedir="${CURRENT_INSTALLED_DIR}/include")
|
101 |
+
list(APPEND configure_arguments --with-external-libdir="${CURRENT_INSTALLED_DIR}/lib")
|
102 |
+
endif()
|
103 |
+
|
104 |
+
vcpkg_execute_required_process(
|
105 |
+
COMMAND "${PYTHON3}" "${SOURCE_PATH}/configure.py" ${configure_arguments}
|
106 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE}"
|
107 |
+
LOGNAME configure-${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE})
|
108 |
+
message(STATUS "Configure ${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE} done")
|
109 |
+
|
110 |
+
message(STATUS "Build ${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE}")
|
111 |
+
vcpkg_execute_build_process(
|
112 |
+
COMMAND "${build_tool}" ${parallel_build}
|
113 |
+
NO_PARALLEL_COMMAND "${build_tool}"
|
114 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE}"
|
115 |
+
LOGNAME build-${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE})
|
116 |
+
message(STATUS "Build ${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE} done")
|
117 |
+
|
118 |
+
message(STATUS "Package ${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE}")
|
119 |
+
vcpkg_execute_required_process(
|
120 |
+
COMMAND "${PYTHON3}" "${SOURCE_PATH}/src/scripts/install.py"
|
121 |
+
--prefix=${BOTAN_FLAG_PREFIX}
|
122 |
+
--bindir=${BOTAN_FLAG_PREFIX}/bin
|
123 |
+
--libdir=${BOTAN_FLAG_PREFIX}/lib
|
124 |
+
--pkgconfigdir=${BOTAN_FLAG_PREFIX}/lib
|
125 |
+
--includedir=${BOTAN_FLAG_PREFIX}/include
|
126 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE}"
|
127 |
+
LOGNAME install-${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE})
|
128 |
+
|
129 |
+
message(STATUS "Package ${TARGET_TRIPLET}-${BOTAN_BUILD_TYPE} done")
|
130 |
+
endfunction()
|
131 |
+
|
132 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
133 |
+
BOTAN_BUILD(rel)
|
134 |
+
endif()
|
135 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
136 |
+
BOTAN_BUILD(dbg)
|
137 |
+
endif()
|
138 |
+
|
139 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/include/botan-2/botan" "${CURRENT_PACKAGES_DIR}/include/botan")
|
140 |
+
|
141 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
142 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/lib/pkgconfig")
|
143 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/lib/botan-2.pc" "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/botan-2.pc")
|
144 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
145 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/botan-2.pc"
|
146 |
+
[[\lib]]
|
147 |
+
[[/lib]]
|
148 |
+
)
|
149 |
+
endif()
|
150 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/botan-2.pc"
|
151 |
+
[[${prefix}/include/botan-2]]
|
152 |
+
[[${prefix}/include]]
|
153 |
+
)
|
154 |
+
endif()
|
155 |
+
|
156 |
+
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
157 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
|
158 |
+
file(RENAME "${CURRENT_PACKAGES_DIR}/debug/lib/botan-2.pc" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/botan-2.pc")
|
159 |
+
if (VCPKG_TARGET_IS_WINDOWS)
|
160 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/botan-2.pc"
|
161 |
+
[[\lib]]
|
162 |
+
[[/lib]]
|
163 |
+
)
|
164 |
+
endif()
|
165 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/botan-2.pc"
|
166 |
+
[[${prefix}/include/botan-2]]
|
167 |
+
[[${prefix}/include]]
|
168 |
+
)
|
169 |
+
endif()
|
170 |
+
vcpkg_fixup_pkgconfig()
|
171 |
+
|
172 |
+
vcpkg_copy_pdbs()
|
173 |
+
|
174 |
+
if(CMAKE_HOST_WIN32)
|
175 |
+
vcpkg_copy_tools(TOOL_NAMES botan-cli AUTO_CLEAN)
|
176 |
+
else()
|
177 |
+
vcpkg_copy_tools(TOOL_NAMES botan AUTO_CLEAN)
|
178 |
+
endif()
|
179 |
+
|
180 |
+
file(REMOVE_RECURSE
|
181 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
182 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
183 |
+
"${CURRENT_PACKAGES_DIR}/include/botan-2"
|
184 |
+
"${CURRENT_PACKAGES_DIR}/share/doc")
|
185 |
+
|
186 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
187 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
188 |
+
endif()
|
189 |
+
|
190 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/botan/build.h" "#define BOTAN_INSTALL_PREFIX R\"(${CURRENT_PACKAGES_DIR})\"" "")
|
191 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/botan/build.h" "#define BOTAN_INSTALL_LIB_DIR R\"(${CURRENT_PACKAGES_DIR}\\lib)\"" "")
|
192 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/botan/build.h" "#define BOTAN_INSTALL_LIB_DIR R\"(${CURRENT_PACKAGES_DIR}/lib)\"" "")
|
193 |
+
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/botan/build.h" "--prefix=${CURRENT_PACKAGES_DIR}" "")
|
194 |
+
|
195 |
+
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/botan/vcpkg.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "botan",
|
3 |
+
"version": "2.18.1",
|
4 |
+
"port-version": 10,
|
5 |
+
"description": "A cryptography library written in C++11",
|
6 |
+
"homepage": "https://botan.randombit.net",
|
7 |
+
"license": "BSD-2-Clause",
|
8 |
+
"supports": "!(windows & arm)",
|
9 |
+
"features": {
|
10 |
+
"amalgamation": {
|
11 |
+
"description": "Do an amalgamation build of the library"
|
12 |
+
},
|
13 |
+
"zlib": {
|
14 |
+
"description": "Build with zlib. Enable compression pipes.",
|
15 |
+
"dependencies": [
|
16 |
+
"zlib"
|
17 |
+
]
|
18 |
+
}
|
19 |
+
}
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/box2d/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO erincatto/Box2D
|
6 |
+
REF 9ebbbcd960ad424e03e5de6e66a40764c16f51bc #v2.4.1
|
7 |
+
SHA512 d9fa387ce893ed1fb73f80006491202f2624ef6d0fb37daf92fbd1a7f9071c84da45e4b418b333566435bbbdfd3d5f68a42dfca02416e9a3a2b4db039f1c6151
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_configure_cmake(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
PREFER_NINJA
|
14 |
+
OPTIONS
|
15 |
+
-DBOX2D_BUILD_UNIT_TESTS=OFF
|
16 |
+
-DBOX2D_BUILD_TESTBED=OFF
|
17 |
+
)
|
18 |
+
vcpkg_install_cmake()
|
19 |
+
|
20 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
21 |
+
|
22 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/box2d)
|
23 |
+
|
24 |
+
vcpkg_copy_pdbs()
|
25 |
+
|
26 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/box2d/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "box2d",
|
3 |
+
"version-semver": "2.4.1",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "An open source C++ engine for simulating rigid bodies in 2D",
|
6 |
+
"homepage": "https://box2d.org",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/export-target.patch
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
2 |
+
index 78adc56..ff435a2 100644
|
3 |
+
--- a/src/CMakeLists.txt
|
4 |
+
+++ b/src/CMakeLists.txt
|
5 |
+
@@ -19,8 +19,10 @@ add_library(braft-static STATIC $<TARGET_OBJECTS:OBJ_LIB>)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
if (BUILD_SHARED_LIBS)
|
9 |
+
+target_include_directories(braft-shared PUBLIC $<INSTALL_INTERFACE:include>)
|
10 |
+
target_link_libraries(braft-shared PUBLIC ${DYNAMIC_LIB})
|
11 |
+
else()
|
12 |
+
+target_include_directories(braft-static PUBLIC $<INSTALL_INTERFACE:include>)
|
13 |
+
target_link_libraries(braft-static PUBLIC ${DYNAMIC_LIB})
|
14 |
+
endif()
|
15 |
+
|
16 |
+
@@ -31,15 +33,30 @@ SET_TARGET_PROPERTIES(braft-shared PROPERTIES OUTPUT_NAME braft CLEAN_DIRECT_OUT
|
17 |
+
endif()
|
18 |
+
|
19 |
+
if (NOT BUILD_SHARED_LIBS)
|
20 |
+
-install(TARGETS braft-static
|
21 |
+
+install(TARGETS braft-static EXPORT unofficial-braftTargets
|
22 |
+
RUNTIME DESTINATION bin
|
23 |
+
LIBRARY DESTINATION lib${LIBSUFFIX}
|
24 |
+
ARCHIVE DESTINATION lib${LIBSUFFIX}
|
25 |
+
)
|
26 |
+
else()
|
27 |
+
-install(TARGETS braft-shared
|
28 |
+
+install(TARGETS braft-shared EXPORT unofficial-braftTargets
|
29 |
+
RUNTIME DESTINATION bin
|
30 |
+
LIBRARY DESTINATION lib${LIBSUFFIX}
|
31 |
+
ARCHIVE DESTINATION lib${LIBSUFFIX}
|
32 |
+
)
|
33 |
+
endif()
|
34 |
+
+
|
35 |
+
+file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/unofficial-braft-config.cmake"
|
36 |
+
+[[include(CMakeFindDependencyMacro)
|
37 |
+
+find_dependency(gflags CONFIG)
|
38 |
+
+file(GLOB TARGET_FILES "${CMAKE_CURRENT_LIST_DIR}/unofficial-braftTargets.cmake")
|
39 |
+
+foreach (TARGET_FILE ${TARGET_FILES})
|
40 |
+
+ include("${TARGET_FILE}")
|
41 |
+
+endforeach()
|
42 |
+
+]])
|
43 |
+
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/unofficial-braft-config.cmake" DESTINATION share/unofficial-braft)
|
44 |
+
+
|
45 |
+
+install(EXPORT unofficial-braftTargets
|
46 |
+
+ NAMESPACE unofficial::braft::
|
47 |
+
+ DESTINATION share/unofficial-braft
|
48 |
+
+)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/fix-build.patch
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index a735c53..53ddaed 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -229,7 +229,9 @@ add_subdirectory(src)
|
6 |
+
if(BUILD_UNIT_TESTS)
|
7 |
+
add_subdirectory(test)
|
8 |
+
endif()
|
9 |
+
+if(BUILD_TOOLS)
|
10 |
+
add_subdirectory(tools)
|
11 |
+
+endif()
|
12 |
+
|
13 |
+
file(COPY ${CMAKE_CURRENT_BINARY_DIR}/braft/
|
14 |
+
DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/output/include/braft/
|
15 |
+
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
16 |
+
index f587464..78adc56 100644
|
17 |
+
--- a/src/CMakeLists.txt
|
18 |
+
+++ b/src/CMakeLists.txt
|
19 |
+
@@ -12,22 +12,34 @@ include_directories(${CMAKE_SOURCE_DIR}/src)
|
20 |
+
add_library(OBJ_LIB OBJECT ${SOURCES})
|
21 |
+
|
22 |
+
set_property(TARGET ${OBJ_LIB} PROPERTY POSITION_INDEPENDENT_CODE 1)
|
23 |
+
+if (BUILD_SHARED_LIBS)
|
24 |
+
add_library(braft-shared SHARED $<TARGET_OBJECTS:OBJ_LIB>)
|
25 |
+
+else()
|
26 |
+
add_library(braft-static STATIC $<TARGET_OBJECTS:OBJ_LIB>)
|
27 |
+
-target_link_libraries(braft-shared ${DYNAMIC_LIB})
|
28 |
+
-target_link_libraries(braft-static ${DYNAMIC_LIB})
|
29 |
+
+endif()
|
30 |
+
+
|
31 |
+
+if (BUILD_SHARED_LIBS)
|
32 |
+
+target_link_libraries(braft-shared PUBLIC ${DYNAMIC_LIB})
|
33 |
+
+else()
|
34 |
+
+target_link_libraries(braft-static PUBLIC ${DYNAMIC_LIB})
|
35 |
+
+endif()
|
36 |
+
|
37 |
+
+if (NOT BUILD_SHARED_LIBS)
|
38 |
+
SET_TARGET_PROPERTIES(braft-static PROPERTIES OUTPUT_NAME braft CLEAN_DIRECT_OUTPUT 1)
|
39 |
+
+else()
|
40 |
+
SET_TARGET_PROPERTIES(braft-shared PROPERTIES OUTPUT_NAME braft CLEAN_DIRECT_OUTPUT 1)
|
41 |
+
+endif()
|
42 |
+
|
43 |
+
+if (NOT BUILD_SHARED_LIBS)
|
44 |
+
install(TARGETS braft-static
|
45 |
+
RUNTIME DESTINATION bin
|
46 |
+
LIBRARY DESTINATION lib${LIBSUFFIX}
|
47 |
+
ARCHIVE DESTINATION lib${LIBSUFFIX}
|
48 |
+
)
|
49 |
+
-
|
50 |
+
+else()
|
51 |
+
install(TARGETS braft-shared
|
52 |
+
RUNTIME DESTINATION bin
|
53 |
+
LIBRARY DESTINATION lib${LIBSUFFIX}
|
54 |
+
ARCHIVE DESTINATION lib${LIBSUFFIX}
|
55 |
+
)
|
56 |
+
+endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/fix-dependency.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 53ddaed..a851c00 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -47,8 +47,9 @@ if ((NOT LEVELDB_INCLUDE_PATH) OR (NOT LEVELDB_LIB))
|
6 |
+
message(FATAL_ERROR "Fail to find leveldb")
|
7 |
+
endif()
|
8 |
+
|
9 |
+
-find_path(GFLAGS_INCLUDE_PATH NAMES gflags/gflags.h)
|
10 |
+
-find_library(GFLAGS_LIB NAMES gflags)
|
11 |
+
+find_package(gflags CONFIG REQUIRED)
|
12 |
+
+get_target_property(GFLAGS_INCLUDE_PATH gflags::gflags INTERFACE_INCLUDE_DIRECTORIES)
|
13 |
+
+set(GFLAGS_LIB gflags::gflags)
|
14 |
+
if ((NOT GFLAGS_INCLUDE_PATH) OR (NOT GFLAGS_LIB))
|
15 |
+
message(FATAL_ERROR "Fail to find gflags")
|
16 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/portfile.cmake
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO baidu/braft
|
4 |
+
REF 8d0128e02a2959f9cc427d5f97ed730ee6a6b410
|
5 |
+
SHA512 f28afbf5fe8a354872c252580e2d679f7a66944a554f0c8e9331b8a68b6a87659d59fbbc41c3ada55e09a265032290bcef567c99a7428604d08f7885f97cf6d7
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
fix-build.patch
|
9 |
+
fix-dependency.patch
|
10 |
+
export-target.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DBRPC_WITH_GLOG=ON
|
17 |
+
-DBUILD_TOOLS=OFF
|
18 |
+
)
|
19 |
+
vcpkg_cmake_install()
|
20 |
+
vcpkg_copy_pdbs()
|
21 |
+
|
22 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-braft CONFIG_PATH share/unofficial-braft)
|
23 |
+
|
24 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
25 |
+
|
26 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/braft/vcpkg.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "braft",
|
3 |
+
"version-date": "2021-26-04",
|
4 |
+
"description": "Consesus algorithm library",
|
5 |
+
"homepage": "https://github.com/baidu/braft",
|
6 |
+
"license": "Apache-2.0",
|
7 |
+
"supports": "!windows",
|
8 |
+
"dependencies": [
|
9 |
+
"brpc",
|
10 |
+
"gflags",
|
11 |
+
"glog",
|
12 |
+
"leveldb",
|
13 |
+
"protobuf",
|
14 |
+
"thrift",
|
15 |
+
{
|
16 |
+
"name": "vcpkg-cmake",
|
17 |
+
"host": true
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "vcpkg-cmake-config",
|
21 |
+
"host": true
|
22 |
+
}
|
23 |
+
]
|
24 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/CMakeLists.txt
ADDED
@@ -0,0 +1,137 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.8)
|
2 |
+
project(breakpad CXX)
|
3 |
+
|
4 |
+
set(CMAKE_CXX_STANDARD 11)
|
5 |
+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
6 |
+
|
7 |
+
add_definitions(
|
8 |
+
-DNOMINMAX
|
9 |
+
-DUNICODE
|
10 |
+
-DWIN32_LEAN_AND_MEAN
|
11 |
+
-D_CRT_SECURE_NO_WARNINGS
|
12 |
+
-D_CRT_SECURE_NO_DEPRECATE
|
13 |
+
-D_CRT_NONSTDC_NO_DEPRECATE
|
14 |
+
)
|
15 |
+
|
16 |
+
set(CMAKE_DEBUG_POSTFIX d)
|
17 |
+
|
18 |
+
string(COMPARE EQUAL "${CMAKE_BUILD_TYPE}" "Release" DEFAULT_INSTALL_HEADERS)
|
19 |
+
option(INSTALL_HEADERS "Install header files" ${DEFAULT_INSTALL_HEADERS})
|
20 |
+
|
21 |
+
# libbreakpad target
|
22 |
+
if(NOT CMAKE_SYSTEM_NAME STREQUAL Android)
|
23 |
+
file(GLOB_RECURSE LIBBREAKPAD_SOURCES src/processor/*.cc)
|
24 |
+
if(WIN32)
|
25 |
+
list(FILTER LIBBREAKPAD_SOURCES EXCLUDE REGEX
|
26 |
+
"_unittest|synth_minidump|/tests|/testdata|/linux|/mac|/android|/solaris|microdump_stackwalk|minidump_dump|minidump_stackwalk")
|
27 |
+
elseif(APPLE)
|
28 |
+
list(FILTER LIBBREAKPAD_SOURCES EXCLUDE REGEX
|
29 |
+
"_unittest|synth_minidump|/tests|/testdata|/linux|/windows|/android|/solaris|microdump_stackwalk|minidump_dump|minidump_stackwalk")
|
30 |
+
else()
|
31 |
+
list(FILTER LIBBREAKPAD_SOURCES EXCLUDE REGEX
|
32 |
+
"_unittest|synth_minidump|/tests|/testdata|/mac|/windows|/android|/solaris|microdump_stackwalk|minidump_dump|minidump_stackwalk")
|
33 |
+
endif()
|
34 |
+
|
35 |
+
find_library(LIBDISASM_LIB NAMES libdisasmd libdisasm)
|
36 |
+
|
37 |
+
add_library(libbreakpad ${LIBBREAKPAD_SOURCES})
|
38 |
+
target_link_libraries(libbreakpad PRIVATE ${LIBDISASM_LIB})
|
39 |
+
|
40 |
+
target_include_directories(libbreakpad
|
41 |
+
PUBLIC
|
42 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
43 |
+
$<INSTALL_INTERFACE:include>
|
44 |
+
)
|
45 |
+
|
46 |
+
set(TARGETS libbreakpad)
|
47 |
+
endif()
|
48 |
+
|
49 |
+
# libbreakpad_client target
|
50 |
+
if(CMAKE_SYSTEM_NAME STREQUAL Android)
|
51 |
+
file(READ "android/google_breakpad/Android.mk" android_mk)
|
52 |
+
string(REGEX MATCHALL "src/[^\n]*\\.cc" LIBBREAKPAD_CLIENT_SOURCES "${android_mk}")
|
53 |
+
else()
|
54 |
+
if(WIN32)
|
55 |
+
file(GLOB_RECURSE LIBBREAKPAD_CLIENT_SOURCES src/client/windows/*.cc src/common/windows/*.cc)
|
56 |
+
include_directories("$ENV{VSINSTALLDIR}/DIA SDK/include")
|
57 |
+
elseif(APPLE)
|
58 |
+
add_definitions(-DHAVE_MACH_O_NLIST_H)
|
59 |
+
file(GLOB_RECURSE LIBBREAKPAD_CLIENT_SOURCES src/client/mac/*.cc src/common/mac/*.cc)
|
60 |
+
list(APPEND LIBBREAKPAD_CLIENT_SOURCES src/common/mac/MachIPC.mm)
|
61 |
+
else()
|
62 |
+
add_definitions(-DHAVE_A_OUT_H)
|
63 |
+
file(GLOB_RECURSE LIBBREAKPAD_CLIENT_SOURCES src/client/linux/*.cc src/common/linux/*.cc)
|
64 |
+
endif()
|
65 |
+
file(GLOB LIBBREAKPAD_COMMON_SOURCES src/common/*.cc src/common/*.c src/client/*.cc)
|
66 |
+
list(APPEND LIBBREAKPAD_CLIENT_SOURCES ${LIBBREAKPAD_COMMON_SOURCES})
|
67 |
+
endif()
|
68 |
+
list(FILTER LIBBREAKPAD_CLIENT_SOURCES EXCLUDE REGEX "/sender|/tests|/unittests|/testcases|_unittest|_test")
|
69 |
+
if(WIN32)
|
70 |
+
list(FILTER LIBBREAKPAD_CLIENT_SOURCES EXCLUDE REGEX "language.cc|path_helper.cc|stabs_to_module.cc|stabs_reader.cc|minidump_file_writer.cc")
|
71 |
+
elseif(NOT APPLE)
|
72 |
+
try_compile(HAVE_GETCONTEXT ${CMAKE_BINARY_DIR}/check_getcontext ${CMAKE_CURRENT_LIST_DIR}/check_getcontext.cc OUTPUT_VARIABLE BUILD_OUT)
|
73 |
+
if (NOT HAVE_GETCONTEXT)
|
74 |
+
enable_language(ASM)
|
75 |
+
list(APPEND LIBBREAKPAD_CLIENT_SOURCES src/common/linux/breakpad_getcontext.S)
|
76 |
+
endif()
|
77 |
+
endif()
|
78 |
+
|
79 |
+
add_library(libbreakpad_client ${LIBBREAKPAD_CLIENT_SOURCES})
|
80 |
+
if(WIN32)
|
81 |
+
target_link_libraries(libbreakpad_client PRIVATE wininet.lib)
|
82 |
+
elseif(APPLE)
|
83 |
+
find_library(CoreFoundation_FRAMEWORK CoreFoundation)
|
84 |
+
target_link_libraries(libbreakpad_client PRIVATE ${CoreFoundation_FRAMEWORK})
|
85 |
+
else()
|
86 |
+
find_library(PTHREAD_LIBRARIES pthread)
|
87 |
+
if(PTHREAD_LIBRARIES)
|
88 |
+
target_link_libraries(libbreakpad_client PRIVATE ${PTHREAD_LIBRARIES})
|
89 |
+
endif()
|
90 |
+
if (HAVE_GETCONTEXT)
|
91 |
+
target_compile_definitions(libbreakpad_client PRIVATE HAVE_GETCONTEXT=1)
|
92 |
+
endif()
|
93 |
+
endif()
|
94 |
+
|
95 |
+
target_include_directories(libbreakpad_client
|
96 |
+
PUBLIC
|
97 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
98 |
+
$<INSTALL_INTERFACE:include>
|
99 |
+
)
|
100 |
+
list(APPEND TARGETS libbreakpad_client)
|
101 |
+
|
102 |
+
# installation
|
103 |
+
install(TARGETS ${TARGETS} EXPORT unofficial-breakpad-targets
|
104 |
+
RUNTIME DESTINATION bin
|
105 |
+
LIBRARY DESTINATION lib
|
106 |
+
ARCHIVE DESTINATION lib
|
107 |
+
)
|
108 |
+
|
109 |
+
if(INSTALL_HEADERS)
|
110 |
+
if(WIN32)
|
111 |
+
set(HEADER_EXCLUDE_REGEX "/apple|/ios|/linux|/mac|/solaris|/android|/dwarf|/tests|/testdata|/unittests")
|
112 |
+
elseif(APPLE)
|
113 |
+
set(HEADER_EXCLUDE_REGEX "/apple|/ios|/linux|/windows|/solaris|/android|/dwarf|/tests|/testdata|/unittests|/sender|/testapp|/*proj|/gcov")
|
114 |
+
else()
|
115 |
+
set(HEADER_EXCLUDE_REGEX "/apple|/ios|/windows|/mac|/solaris|/android|/dwarf|/tests|/testdata|/unittests")
|
116 |
+
install(
|
117 |
+
DIRECTORY src/third_party/lss
|
118 |
+
DESTINATION include/third_party
|
119 |
+
FILES_MATCHING PATTERN "*.h"
|
120 |
+
REGEX "${HEADER_EXCLUDE_REGEX}" EXCLUDE
|
121 |
+
)
|
122 |
+
endif()
|
123 |
+
install(
|
124 |
+
DIRECTORY src/client src/common src/google_breakpad
|
125 |
+
DESTINATION include/
|
126 |
+
FILES_MATCHING
|
127 |
+
PATTERN "*.h"
|
128 |
+
REGEX ${HEADER_EXCLUDE_REGEX} EXCLUDE
|
129 |
+
)
|
130 |
+
endif()
|
131 |
+
|
132 |
+
install(
|
133 |
+
EXPORT unofficial-breakpad-targets
|
134 |
+
FILE unofficial-breakpad-config.cmake
|
135 |
+
NAMESPACE unofficial::breakpad::
|
136 |
+
DESTINATION share/unofficial-breakpad
|
137 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/check_getcontext.cc
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#include <ucontext.h>
|
2 |
+
#include <cstddef>
|
3 |
+
|
4 |
+
int main() {
|
5 |
+
ucontext_t context;
|
6 |
+
getcontext(&context);
|
7 |
+
|
8 |
+
return 0;
|
9 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/fix-unique_ptr.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/common/windows/pe_util.cc b/src/common/windows/pe_util.cc
|
2 |
+
index 9f9e8fa..d912635 100644
|
3 |
+
--- a/src/common/windows/pe_util.cc
|
4 |
+
+++ b/src/common/windows/pe_util.cc
|
5 |
+
@@ -28,7 +28,7 @@
|
6 |
+
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
7 |
+
|
8 |
+
#include "pe_util.h"
|
9 |
+
-
|
10 |
+
+#include <memory>
|
11 |
+
#include <windows.h>
|
12 |
+
#include <winnt.h>
|
13 |
+
#include <atlbase.h>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/fix-unordered_map.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/common/unordered.h b/src/common/unordered.h
|
2 |
+
index c9cbd58..7743eda 100644
|
3 |
+
--- a/src/common/unordered.h
|
4 |
+
+++ b/src/common/unordered.h
|
5 |
+
@@ -46,7 +46,8 @@ struct unordered_map : public __gnu_cxx::hash_map<T, U, H> {};
|
6 |
+
template <class T, class H = __gnu_cxx::hash<T> >
|
7 |
+
struct unordered_set : public __gnu_cxx::hash_set<T, H> {};
|
8 |
+
|
9 |
+
-#elif defined(_LIBCPP_VERSION) // c++11
|
10 |
+
+#elif (__cplusplus >= 201103L) || defined(_LIBCPP_VERSION) || \
|
11 |
+
+ (defined(_MSC_VER) && (_MSC_VER >= 1800)) // c++11
|
12 |
+
#include <unordered_map>
|
13 |
+
#include <unordered_set>
|
14 |
+
using std::unordered_map;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/breakpad
|
6 |
+
REF 9c4671f2e3a63c0f155d9b2511192d0b5fa7f760 # accessed on 2020-09-14
|
7 |
+
SHA512 4c9ed9b675a772f9a6a84692865381130901820cb395b725511e7a9e2cbf4aaa5212a9ef5f87086baf58bb9d729082232b564bd827a205f87b5c1ffc1c53892a
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
fix-unique_ptr.patch
|
11 |
+
fix-unordered_map.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
if(VCPKG_HOST_IS_LINUX OR VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_ANDROID)
|
15 |
+
vcpkg_from_git(
|
16 |
+
OUT_SOURCE_PATH LSS_SOURCE_PATH
|
17 |
+
URL https://chromium.googlesource.com/linux-syscall-support
|
18 |
+
REF 7bde79cc274d06451bf65ae82c012a5d3e476b5a
|
19 |
+
)
|
20 |
+
|
21 |
+
file(RENAME "${LSS_SOURCE_PATH}" "${SOURCE_PATH}/src/third_party/lss")
|
22 |
+
endif()
|
23 |
+
|
24 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" "${CMAKE_CURRENT_LIST_DIR}/check_getcontext.cc" DESTINATION "${SOURCE_PATH}")
|
25 |
+
|
26 |
+
vcpkg_cmake_configure(
|
27 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
28 |
+
OPTIONS
|
29 |
+
-DINSTALL_HEADERS=ON
|
30 |
+
)
|
31 |
+
|
32 |
+
vcpkg_cmake_install()
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
34 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/client/linux/data" "${CURRENT_PACKAGES_DIR}/include/client/linux/sender")
|
35 |
+
|
36 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-breakpad CONFIG_PATH share/unofficial-breakpad)
|
37 |
+
|
38 |
+
vcpkg_copy_pdbs()
|
39 |
+
|
40 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/breakpad/vcpkg.json
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "breakpad",
|
3 |
+
"version-date": "2020-09-14",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "a set of client and server components which implement a crash-reporting system.",
|
6 |
+
"homepage": "https://github.com/google/breakpad",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"libdisasm",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"name": "vcpkg-cmake-config",
|
16 |
+
"host": true
|
17 |
+
}
|
18 |
+
]
|
19 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brigand/portfile.cmake
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO edouarda/brigand
|
6 |
+
REF 1.3.0
|
7 |
+
SHA512 538d288d84265cc9a4563f1e84d55a174db461ffd1e4f510bfdaef04af9fbf8e7ca79817f9118378bf7d58d578699aae3072bbffa3fd727b2d93ee783337aea6
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
remove-tests.patch
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
vcpkg_fixup_pkgconfig()
|
16 |
+
|
17 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
19 |
+
|
20 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brigand/remove-tests.patch
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 13ea689..e723f85 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -24,11 +24,6 @@ else()
|
6 |
+
endif()
|
7 |
+
|
8 |
+
# Install pre-commit git hook
|
9 |
+
-execute_process(COMMAND ${CMAKE_COMMAND} -E copy
|
10 |
+
- ${PROJECT_SOURCE_DIR}/script/pre-commit
|
11 |
+
- ${PROJECT_SOURCE_DIR}/.git/hooks
|
12 |
+
- )
|
13 |
+
-
|
14 |
+
set ( STANDALONE_GROUP
|
15 |
+
script/embed.py
|
16 |
+
)
|
17 |
+
@@ -204,17 +199,6 @@ source_group(brigand\\sequences FILES ${SEQUENCES_GROUP})
|
18 |
+
source_group(brigand\\types FILES ${TYPES_GROUP})
|
19 |
+
source_group(placeholder FILES ${PLACEHOLDER_GROUP})
|
20 |
+
|
21 |
+
-add_library(brigand
|
22 |
+
- ${BRIGAND_GROUP}
|
23 |
+
- ${ADAPTED_GROUP}
|
24 |
+
- ${ALGORITHMS_GROUP}
|
25 |
+
- ${ALGORITHMS_DETAIL_GROUP}
|
26 |
+
- ${FUNCTIONS_GROUPS}
|
27 |
+
- ${SEQUENCES_GROUP}
|
28 |
+
- ${TYPES_GROUP}
|
29 |
+
- ${PLACEHOLDER_GROUP}
|
30 |
+
-)
|
31 |
+
-
|
32 |
+
set(test_files
|
33 |
+
test/always.cpp
|
34 |
+
test/apply.cpp
|
35 |
+
@@ -276,10 +260,6 @@ endif()
|
36 |
+
|
37 |
+
source_group(tests FILES ${test_files})
|
38 |
+
|
39 |
+
-add_executable(brigand_test ${test_files})
|
40 |
+
-
|
41 |
+
-add_test(brigand brigand_test)
|
42 |
+
-
|
43 |
+
configure_file(libbrigand.pc.in
|
44 |
+
libbrigand.pc
|
45 |
+
@ONLY
|
46 |
+
diff --git a/libbrigand.pc.in b/libbrigand.pc.in
|
47 |
+
index 2ed570e..218215b 100644
|
48 |
+
--- a/libbrigand.pc.in
|
49 |
+
+++ b/libbrigand.pc.in
|
50 |
+
@@ -6,5 +6,4 @@ Name: Brigand
|
51 |
+
Description: Light-weight, fully functional, instant-compile time C++ 11 meta-programming library
|
52 |
+
URL: https://github.com/edouarda/brigand
|
53 |
+
Version: 1.2.0
|
54 |
+
-Libs:
|
55 |
+
Cflags: -I${includedir}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brigand/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "brigand",
|
3 |
+
"version-string": "1.3.0",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Brigand is a light-weight, fully functional, instant-compile time C++ 11 meta-programming library.",
|
6 |
+
"homepage": "https://github.com/edouarda/brigand",
|
7 |
+
"dependencies": [
|
8 |
+
"boost-fusion",
|
9 |
+
"boost-variant",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/fix-arm-uwp.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index e6c6054..2c4b757 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -124,6 +124,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
6 |
+
add_definitions(-DOS_FREEBSD)
|
7 |
+
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
8 |
+
add_definitions(-DOS_MACOSX)
|
9 |
+
+elseif(MSVC)
|
10 |
+
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
11 |
+
endif()
|
12 |
+
|
13 |
+
function(transform_sources_list INPUT_FILE OUTPUT_FILE)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/fix-ios.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index fcd9024..a717b87 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -225,6 +225,7 @@ if(NOT BROTLI_BUNDLED_MODE)
|
6 |
+
install(
|
7 |
+
TARGETS brotli
|
8 |
+
RUNTIME DESTINATION tools/brotli
|
9 |
+
+ BUNDLE DESTINATION tools/brotli
|
10 |
+
CONFIGURATIONS Release
|
11 |
+
)
|
12 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/install.patch
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 4ff3401..46492d0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -185,14 +185,13 @@ endforeach()
|
6 |
+
|
7 |
+
foreach(lib IN LISTS BROTLI_SHARED_LIBS BROTLI_STATIC_LIBS)
|
8 |
+
target_link_libraries(${lib} ${LIBM_LIBRARY})
|
9 |
+
- set_property(TARGET ${lib} APPEND PROPERTY INCLUDE_DIRECTORIES ${BROTLI_INCLUDE_DIRS})
|
10 |
+
set_target_properties(${lib} PROPERTIES
|
11 |
+
VERSION "${BROTLI_ABI_COMPATIBILITY}.${BROTLI_ABI_AGE}.${BROTLI_ABI_REVISION}"
|
12 |
+
SOVERSION "${BROTLI_ABI_COMPATIBILITY}")
|
13 |
+
if(NOT BROTLI_EMSCRIPTEN)
|
14 |
+
set_target_properties(${lib} PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
15 |
+
endif()
|
16 |
+
- set_property(TARGET ${lib} APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${BROTLI_INCLUDE_DIRS}")
|
17 |
+
+ set_property(TARGET ${lib} APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "$<BUILD_INTERFACE:${BROTLI_INCLUDE_DIRS}>" $<INSTALL_INTERFACE:include>)
|
18 |
+
endforeach()
|
19 |
+
|
20 |
+
if(NOT BROTLI_EMSCRIPTEN)
|
21 |
+
@@ -223,27 +222,35 @@ if(NOT BROTLI_EMSCRIPTEN)
|
22 |
+
if(NOT BROTLI_BUNDLED_MODE)
|
23 |
+
install(
|
24 |
+
TARGETS brotli
|
25 |
+
- RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
26 |
+
+ RUNTIME DESTINATION tools/brotli
|
27 |
+
+ CONFIGURATIONS Release
|
28 |
+
)
|
29 |
+
|
30 |
+
+ if(BUILD_SHARED_LIBS)
|
31 |
+
install(
|
32 |
+
TARGETS ${BROTLI_LIBRARIES_CORE}
|
33 |
+
+ EXPORT brotli
|
34 |
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
35 |
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
36 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
37 |
+
)
|
38 |
+
-
|
39 |
+
+ else()
|
40 |
+
install(
|
41 |
+
TARGETS ${BROTLI_LIBRARIES_CORE_STATIC}
|
42 |
+
+ EXPORT brotli
|
43 |
+
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
44 |
+
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
|
45 |
+
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
|
46 |
+
)
|
47 |
+
+ endif()
|
48 |
+
|
49 |
+
install(
|
50 |
+
DIRECTORY ${BROTLI_INCLUDE_DIRS}/brotli
|
51 |
+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
|
52 |
+
+ CONFIGURATIONS Release
|
53 |
+
)
|
54 |
+
+
|
55 |
+
+ install(EXPORT brotli FILE unofficial-brotli-config.cmake NAMESPACE unofficial::brotli:: DESTINATION share/unofficial-brotli)
|
56 |
+
endif() # BROTLI_BUNDLED_MODE
|
57 |
+
endif() # BROTLI_EMSCRIPTEN
|
58 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/pkgconfig.patch
ADDED
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index b1c654b..fcd9024 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -390,7 +390,7 @@ function(generate_pkg_config_path outvar path)
|
6 |
+
set("${outvar}" "${${outvar}}" PARENT_SCOPE)
|
7 |
+
endfunction(generate_pkg_config_path)
|
8 |
+
|
9 |
+
-function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION)
|
10 |
+
+function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION SHARED_TARGET STATIC_TARGET)
|
11 |
+
file(READ ${INPUT_FILE} TEXT)
|
12 |
+
|
13 |
+
set(PREFIX "${CMAKE_INSTALL_PREFIX}")
|
14 |
+
@@ -404,15 +404,22 @@ function(transform_pc_file INPUT_FILE OUTPUT_FILE VERSION)
|
15 |
+
string(REGEX REPLACE "@includedir@" "${INCLUDEDIR}" TEXT ${TEXT})
|
16 |
+
|
17 |
+
string(REGEX REPLACE "@PACKAGE_VERSION@" "${VERSION}" TEXT ${TEXT})
|
18 |
+
+
|
19 |
+
+ if(BUILD_SHARED_LIBS)
|
20 |
+
+ set(LIB_NAME "${SHARED_TARGET}")
|
21 |
+
+ else()
|
22 |
+
+ set(LIB_NAME "${STATIC_TARGET}")
|
23 |
+
+ endif()
|
24 |
+
+ string(REGEX REPLACE "@lib_name@" "${LIB_NAME}" TEXT ${TEXT})
|
25 |
+
|
26 |
+
file(WRITE ${OUTPUT_FILE} ${TEXT})
|
27 |
+
endfunction()
|
28 |
+
|
29 |
+
-transform_pc_file("scripts/libbrotlicommon.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlicommon.pc" "${BROTLI_VERSION}")
|
30 |
+
+transform_pc_file("scripts/libbrotlicommon.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlicommon.pc" "${BROTLI_VERSION}" brotlicommon brotlicommon-static)
|
31 |
+
|
32 |
+
-transform_pc_file("scripts/libbrotlidec.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlidec.pc" "${BROTLI_VERSION}")
|
33 |
+
+transform_pc_file("scripts/libbrotlidec.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlidec.pc" "${BROTLI_VERSION}" brotlidec brotlidec-static)
|
34 |
+
|
35 |
+
-transform_pc_file("scripts/libbrotlienc.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlienc.pc" "${BROTLI_VERSION}")
|
36 |
+
+transform_pc_file("scripts/libbrotlienc.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/libbrotlienc.pc" "${BROTLI_VERSION}" brotlienc brotlienc-static)
|
37 |
+
|
38 |
+
if(NOT BROTLI_EMSCRIPTEN)
|
39 |
+
if(NOT BROTLI_BUNDLED_MODE)
|
40 |
+
diff --git a/scripts/libbrotlicommon.pc.in b/scripts/libbrotlicommon.pc.in
|
41 |
+
index 10ca969..7736344 100644
|
42 |
+
--- a/scripts/libbrotlicommon.pc.in
|
43 |
+
+++ b/scripts/libbrotlicommon.pc.in
|
44 |
+
@@ -7,5 +7,5 @@ Name: libbrotlicommon
|
45 |
+
URL: https://github.com/google/brotli
|
46 |
+
Description: Brotli common dictionary library
|
47 |
+
Version: @PACKAGE_VERSION@
|
48 |
+
-Libs: -L${libdir} -R${libdir} -lbrotlicommon
|
49 |
+
+Libs: -L${libdir} -l@lib_name@
|
50 |
+
Cflags: -I${includedir}
|
51 |
+
diff --git a/scripts/libbrotlidec.pc.in b/scripts/libbrotlidec.pc.in
|
52 |
+
index e7c3124..a7dc8ce 100644
|
53 |
+
--- a/scripts/libbrotlidec.pc.in
|
54 |
+
+++ b/scripts/libbrotlidec.pc.in
|
55 |
+
@@ -7,6 +7,6 @@ Name: libbrotlidec
|
56 |
+
URL: https://github.com/google/brotli
|
57 |
+
Description: Brotli decoder library
|
58 |
+
Version: @PACKAGE_VERSION@
|
59 |
+
-Libs: -L${libdir} -R${libdir} -lbrotlidec
|
60 |
+
+Libs: -L${libdir} -l@lib_name@
|
61 |
+
Requires.private: libbrotlicommon >= 1.0.2
|
62 |
+
Cflags: -I${includedir}
|
63 |
+
diff --git a/scripts/libbrotlienc.pc.in b/scripts/libbrotlienc.pc.in
|
64 |
+
index 4dd0811..eb2712e 100644
|
65 |
+
--- a/scripts/libbrotlienc.pc.in
|
66 |
+
+++ b/scripts/libbrotlienc.pc.in
|
67 |
+
@@ -7,6 +7,6 @@ Name: libbrotlienc
|
68 |
+
URL: https://github.com/google/brotli
|
69 |
+
Description: Brotli encoder library
|
70 |
+
Version: @PACKAGE_VERSION@
|
71 |
+
-Libs: -L${libdir} -R${libdir} -lbrotlienc
|
72 |
+
+Libs: -L${libdir} -l@lib_name@
|
73 |
+
Requires.private: libbrotlicommon >= 1.0.2
|
74 |
+
Cflags: -I${includedir}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/portfile.cmake
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO google/brotli
|
4 |
+
REF e61745a6b7add50d380cfd7d3883dd6c62fc2c71 # v1.0.9
|
5 |
+
SHA512 303444695600b70ce59708e06bf21647d9b8dd33d772c53bbe49320f2f8f95ca8a7d6df2d29b7f36ff99001967e2d28380e0e305d778031940a3a5c6585f9a4f
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES
|
8 |
+
install.patch
|
9 |
+
fix-arm-uwp.patch
|
10 |
+
pkgconfig.patch
|
11 |
+
fix-ios.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_configure_cmake(
|
15 |
+
SOURCE_PATH ${SOURCE_PATH}
|
16 |
+
PREFER_NINJA
|
17 |
+
OPTIONS -DBROTLI_DISABLE_TESTS=ON
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/brotli)
|
25 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-brotli TARGET_PATH share/unofficial-brotli)
|
26 |
+
vcpkg_fixup_pkgconfig()
|
27 |
+
|
28 |
+
|
29 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/unofficial-brotli)
|
30 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
_find_package(${ARGS})
|
2 |
+
foreach(T brotlicommon brotlidec brotlienc)
|
3 |
+
if(TARGET unofficial::brotli::${T} AND NOT TARGET unofficial::brotli::${T}-static)
|
4 |
+
_add_library(unofficial::brotli::${T}-static INTERFACE IMPORTED)
|
5 |
+
set_target_properties(unofficial::brotli::${T}-static PROPERTIES INTERFACE_LINK_LIBRARIES "unofficial::brotli::${T}")
|
6 |
+
endif()
|
7 |
+
if(NOT TARGET unofficial::brotli::${T} AND TARGET unofficial::brotli::${T}-static)
|
8 |
+
_add_library(unofficial::brotli::${T} INTERFACE IMPORTED)
|
9 |
+
set_target_properties(unofficial::brotli::${T} PROPERTIES INTERFACE_LINK_LIBRARIES "unofficial::brotli::${T}-static")
|
10 |
+
endif()
|
11 |
+
endforeach()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brotli/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "brotli",
|
3 |
+
"version-string": "1.0.9",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "a generic-purpose lossless compression algorithm that compresses data using a combination of a modern variant of the LZ77 algorithm, Huffman coding and 2nd order context modeling.",
|
6 |
+
"homepage": "https://github.com/google/brotli"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/fix_boost_ptr.patch
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/brpc/policy/thrift_protocol.cpp b/src/brpc/policy/thrift_protocol.cpp
|
2 |
+
index eae081a0..39c92338 100755
|
3 |
+
--- a/src/brpc/policy/thrift_protocol.cpp
|
4 |
+
+++ b/src/brpc/policy/thrift_protocol.cpp
|
5 |
+
@@ -45,8 +45,7 @@
|
6 |
+
#if defined(_THRIFT_STDCXX_H_)
|
7 |
+
# define THRIFT_STDCXX apache::thrift::stdcxx
|
8 |
+
#else
|
9 |
+
- # define THRIFT_STDCXX boost
|
10 |
+
- # include <boost/make_shared.hpp>
|
11 |
+
+ # define THRIFT_STDCXX std
|
12 |
+
#endif
|
13 |
+
#endif
|
14 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/fix_thrift.patch
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 3deb7342..737f6a70 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -62,8 +62,10 @@ if(WITH_DEBUG_SYMBOLS)
|
6 |
+
endif()
|
7 |
+
|
8 |
+
if(WITH_THRIFT)
|
9 |
+
+ find_package(Thrift CONFIG REQUIRED)
|
10 |
+
+ # target_link_libraries(main PRIVATE thrift::thrift thriftz::thriftz thriftnb::thriftnb)
|
11 |
+
set(THRIFT_CPP_FLAG "-DENABLE_THRIFT_FRAMED_PROTOCOL")
|
12 |
+
- set(THRIFT_LIB "thrift")
|
13 |
+
+ set(THRIFT_LIB "thrift::thrift")
|
14 |
+
endif()
|
15 |
+
|
16 |
+
include(GNUInstallDirs)
|
17 |
+
@@ -196,9 +198,10 @@ set(DYNAMIC_LIB
|
18 |
+
${LEVELDB_LIB}
|
19 |
+
${PROTOC_LIB}
|
20 |
+
${CMAKE_THREAD_LIBS_INIT}
|
21 |
+
+ ${OPENSSL_CRYPTO_LIBRARY}
|
22 |
+
+ ${OPENSSL_SSL_LIBRARY}
|
23 |
+
${THRIFT_LIB}
|
24 |
+
${THRIFTNB_LIB}
|
25 |
+
- ${OPENSSL_CRYPTO_LIBRARY}
|
26 |
+
dl
|
27 |
+
z)
|
28 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/portfile.cmake
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_download_distfile(patch1679
|
2 |
+
URLS "https://patch-diff.githubusercontent.com/raw/apache/incubator-brpc/pull/1679.diff"
|
3 |
+
FILENAME "apache-incubator-brpc-1679.diff"
|
4 |
+
SHA512 4b1e5717b44aa6a741ddd49b1408e3e556f6d845d5e8a5cfccf2f2d7ebe39aed19c3dad703db7a9ebd0446ac1f225e7dbdd2ff1f23f34fd60c3ef59aaa07b789
|
5 |
+
)
|
6 |
+
|
7 |
+
vcpkg_from_github(
|
8 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
9 |
+
REPO apache/incubator-brpc
|
10 |
+
REF 1d6510aa50075cade5ed539ee09a11a1b8d7f990 # 0.9.7
|
11 |
+
SHA512 9c9dbe2a202e58586010c56634bd371f6a9e3ff0d8c5341abbabd1f1dd204a3aec5e89061fa326b4fc8ae7202f9fc33f93a5acd845d18dab3915a3e2b81cbaf3
|
12 |
+
HEAD_REF master
|
13 |
+
PATCHES
|
14 |
+
fix_boost_ptr.patch
|
15 |
+
fix_thrift.patch
|
16 |
+
${patch1679}
|
17 |
+
)
|
18 |
+
|
19 |
+
vcpkg_cmake_configure(
|
20 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
21 |
+
OPTIONS
|
22 |
+
-DWITH_THRIFT=ON
|
23 |
+
-DWITH_MESALINK=OFF
|
24 |
+
-DWITH_GLOG=ON
|
25 |
+
)
|
26 |
+
|
27 |
+
vcpkg_cmake_install()
|
28 |
+
|
29 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
30 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
31 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/butil/third_party/superfasthash")
|
32 |
+
|
33 |
+
vcpkg_copy_pdbs()
|
34 |
+
|
35 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
36 |
+
|
37 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brpc/vcpkg.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "brpc",
|
3 |
+
"version": "0.9.7",
|
4 |
+
"port-version": 7,
|
5 |
+
"description": "Industrial-grade RPC framework used throughout Baidu, with 1,000,000+ instances and thousands kinds of services, called \"baidu-rpc\" inside Baidu.",
|
6 |
+
"homepage": "https://github.com/apache/incubator-brpc",
|
7 |
+
"license": "Apache-2.0",
|
8 |
+
"supports": "!windows & !arm",
|
9 |
+
"dependencies": [
|
10 |
+
"gflags",
|
11 |
+
"glog",
|
12 |
+
{
|
13 |
+
"name": "leveldb",
|
14 |
+
"default-features": false
|
15 |
+
},
|
16 |
+
"openssl",
|
17 |
+
{
|
18 |
+
"name": "protobuf",
|
19 |
+
"features": [
|
20 |
+
"zlib"
|
21 |
+
]
|
22 |
+
},
|
23 |
+
"thrift",
|
24 |
+
{
|
25 |
+
"name": "vcpkg-cmake",
|
26 |
+
"host": true
|
27 |
+
}
|
28 |
+
]
|
29 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brunocodutra-metal/portfile.cmake
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO brunocodutra/metal
|
6 |
+
REF 2.1.3
|
7 |
+
SHA512 7a71f8bdbdb8a19084d0cabd4c78a4f2990514f2da56312aec8dfac02f6781c95f28bc33815ecbb3d9e3e8d2b47cc5dbcd4917751195a8318bea7c08fca29b23
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
|
17 |
+
vcpkg_cmake_config_fixup(
|
18 |
+
PACKAGE_NAME Metal
|
19 |
+
CONFIG_PATH lib/cmake/Metal
|
20 |
+
)
|
21 |
+
|
22 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
23 |
+
|
24 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brunocodutra-metal/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "brunocodutra-metal",
|
3 |
+
"version": "2.1.3",
|
4 |
+
"description": "A single header C++11 library designed to make you love template metaprogramming",
|
5 |
+
"dependencies": [
|
6 |
+
{
|
7 |
+
"name": "vcpkg-cmake",
|
8 |
+
"host": true
|
9 |
+
},
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake-config",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brynet/portfile.cmake
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO IronsDu/brynet
|
6 |
+
REF 4d162460372b2385cea121da0403f55582b4e39b # v1.11.2
|
7 |
+
SHA512 656e8e0bdf44e2fb9f17c622d517cafc5ff965402ccab4b96e6f4663e715396a962df0ebb2baaec871336e27c0129ceb47b80352bfcd28cdff731d46aad08d8a
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(INSTALL ${SOURCE_PATH}/include/brynet DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
12 |
+
|
13 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/brynet/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "brynet",
|
3 |
+
"version": "1.11.2",
|
4 |
+
"description": "A C++ header only cross platform high performance tcp network library, and support SSL/HTTP/Websocket.",
|
5 |
+
"homepage": "https://github.com/IronsDu/brynet"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bshoshany-thread-pool/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO bshoshany/thread-pool
|
5 |
+
REF v2.0.0
|
6 |
+
SHA512 eac1674ea999d25d8d0b8f1b24714830330ba4d345e3f730e49359bae89d9259e429d48357a45f7b4355cbbe1a63f04e7fe2c4e0be08b3bbea51018c62721fcc
|
7 |
+
HEAD_REF master
|
8 |
+
)
|
9 |
+
|
10 |
+
# Install headers (header-only):
|
11 |
+
file(GLOB HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/*.hpp")
|
12 |
+
file(INSTALL
|
13 |
+
"${HEADER_FILES}"
|
14 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
|
15 |
+
|
16 |
+
)
|
17 |
+
|
18 |
+
# Handle copyright
|
19 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bshoshany-thread-pool/vcpkg.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bshoshany-thread-pool",
|
3 |
+
"version": "2.0.0",
|
4 |
+
"description": "A C++17 Thread Pool for High-Performance Scientific Computing",
|
5 |
+
"homepage": "https://github.com/bshoshany/thread-pool"
|
6 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bsio/portfile.cmake
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#header-only library
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO ArkNX/bsio
|
6 |
+
REF v1.0.0
|
7 |
+
SHA512 28b895b823d84203f4cec531ddd5bb49dc915e9a4eb26e064834d1e999b98e512b37d361e59029eb6d7e44fe99ba81f9c5729f119eab7eb928de1a1374f0b7df
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_cmake_configure(
|
12 |
+
SOURCE_PATH ${SOURCE_PATH}
|
13 |
+
OPTIONS
|
14 |
+
-Dbsio_BUILD_EXAMPLES=OFF
|
15 |
+
)
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
|
18 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
19 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/bsio/vcpkg.json
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "bsio",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "networking library, ans support HTTP/WebSocket, based on asio.",
|
5 |
+
"homepage": "https://github.com/ArkNX/bsio",
|
6 |
+
"dependencies": [
|
7 |
+
"asio",
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
}
|
12 |
+
]
|
13 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux-mariadb-client/portfile.cmake
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO buck-yeh/bux-mariadb-client
|
4 |
+
REF bb078afd7e7287f9c3220b889e8206d5a841b185 # v1.0.1
|
5 |
+
SHA512 96cc0a40809f13d4a49e849306eed96dc2bc00998612344801df7d664f8a0a9cfa646b70927747d1decbca48cf5ff9502796b7738b106e9b68a4564abd981ce9
|
6 |
+
HEAD_REF main
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_cmake_configure(
|
10 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_cmake_install()
|
14 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
15 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux-mariadb-client/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "buck-yeh-bux-mariadb-client",
|
3 |
+
"version": "1.0.1",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Loose-coupled throw-on-error C++20 wrapper classes and utilities over mysql/mariadb Connector/C API",
|
6 |
+
"homepage": "https://github.com/buck-yeh/bux-mariadb-client",
|
7 |
+
"supports": "!(arm | uwp | osx)",
|
8 |
+
"dependencies": [
|
9 |
+
"buck-yeh-bux",
|
10 |
+
"fmt",
|
11 |
+
"libmariadb",
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux/fix-errorC7595.patch
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/XException.cpp b/src/XException.cpp
|
2 |
+
index 6a66347..53a0087 100644
|
3 |
+
--- a/src/XException.cpp
|
4 |
+
+++ b/src/XException.cpp
|
5 |
+
@@ -49,8 +49,8 @@ LONG WINAPI usrSEH(_EXCEPTION_POINTERS *pInfo)
|
6 |
+
RUNTIME_ERROR("code 0x{:x}, flags 0x{:x}, extra 0x{:x}, ip 0x{:x}, arg#{:x}",
|
7 |
+
er->ExceptionCode,
|
8 |
+
er->ExceptionFlags,
|
9 |
+
- static_cast<void*>(er->ExceptionRecord),
|
10 |
+
- static_cast<void*>(er->ExceptionAddress),
|
11 |
+
+ (size_t)static_cast<void*>(er->ExceptionRecord),
|
12 |
+
+ (size_t)static_cast<void*>(er->ExceptionAddress),
|
13 |
+
er->NumberParameters);
|
14 |
+
}
|
15 |
+
return EXCEPTION_CONTINUE_SEARCH;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux/portfile.cmake
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO buck-yeh/bux
|
4 |
+
REF 8788509f0281e9a2af34c0399a45a5c9e66a4664 # v1.6.3
|
5 |
+
SHA512 a7045a93d91e497ca2b60965bb2f098eae714d00feef0d252747178739cdd981f44cb8983278c679761f61e037da05889f22fa161d26fca05af511fc56c1ac8f
|
6 |
+
HEAD_REF main
|
7 |
+
PATCHES fix-errorC7595.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
16 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/buck-yeh-bux/vcpkg.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "buck-yeh-bux",
|
3 |
+
"version": "1.6.3",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "A supplemental C++ library with functionalities not directly supported from Modern C++ standard.",
|
6 |
+
"homepage": "https://github.com/buck-yeh/bux",
|
7 |
+
"supports": "!(arm | uwp | osx)",
|
8 |
+
"dependencies": [
|
9 |
+
"fmt",
|
10 |
+
{
|
11 |
+
"name": "vcpkg-cmake",
|
12 |
+
"host": true
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|