Spaces:
Sleeping
Sleeping
493f33cfd1f04895372fd2ba69a17a9a3efbe68391d8b1aaf6199b4b714b3255
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/chromium-baseConfig.cmake.in +81 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/portfile.cmake +152 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/.gn +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/0001-base.patch +101 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/0002-build.patch +144 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/BUILD.gn +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/LASTCHANGE.committime +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/build_overrides/build.gni +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/fontconfig/BUILD.gn +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/gclient_args.gni +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/icu/BUILD.gn +2 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/icu/config.gni +3 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/libxml/BUILD.gn +2 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/protobuf/proto_library.gni +0 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/test_fonts/BUILD.gn +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/gmock/BUILD.gn +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/gtest/BUILD.gn +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/libfuzzer/fuzzer_test.gni +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/test.gni +20 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/BUILD.gn +1 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/chrome.natvis +0 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cimg/CMakeLists.txt +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cimg/portfile.cmake +21 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cimg/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/CMakeLists.txt +62 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/config.h +118 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/portfile.cmake +47 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/civetweb/portfile.cmake +41 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/civetweb/vcpkg.json +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cjson/portfile.cmake +60 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/cjson/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/build.patch +26 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/cmakefiles.patch +136 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/curl.patch +38 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/mspack.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/portfile.cmake +40 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/vcpkg.json +18 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/FindLAPACK.cmake +239 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_linux64.h +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_osx.h +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_win32.h +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_win64.h +9 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/fix-ConfigFile.patch +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/fix-install.patch +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/portfile.cmake +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/remove_internal_blas.patch +77 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/support-uwp.patch +87 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/vcpkg-cmake-wrapper.cmake +11 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/chromium-baseConfig.cmake.in
ADDED
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(TARGET chromium-base)
|
2 |
+
return()
|
3 |
+
endif()
|
4 |
+
|
5 |
+
set(DEFINITIONS_DBG @DEFINITIONS_DBG@)
|
6 |
+
set(DEFINITIONS_REL @DEFINITIONS_DBG@)
|
7 |
+
|
8 |
+
# Compute the installation prefix relative to this file.
|
9 |
+
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
10 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
11 |
+
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
12 |
+
if(_IMPORT_PREFIX STREQUAL "/")
|
13 |
+
set(_IMPORT_PREFIX "")
|
14 |
+
endif()
|
15 |
+
|
16 |
+
add_library(chromium-base INTERFACE IMPORTED GLOBAL)
|
17 |
+
add_library(chromium-base::chromium-base ALIAS chromium-base)
|
18 |
+
|
19 |
+
set(LIBRARIES_ chromium_base chromium_base_static dynamic_annotations double_conversion)
|
20 |
+
|
21 |
+
if(WIN32)
|
22 |
+
list(APPEND LIBRARIES_
|
23 |
+
cfgmgr32
|
24 |
+
powrprof
|
25 |
+
propsys
|
26 |
+
setupapi
|
27 |
+
userenv
|
28 |
+
wbemuuid
|
29 |
+
winmm
|
30 |
+
advapi32
|
31 |
+
comdlg32
|
32 |
+
dbghelp
|
33 |
+
dnsapi
|
34 |
+
gdi32
|
35 |
+
msimg32
|
36 |
+
odbc32
|
37 |
+
odbccp32
|
38 |
+
oleaut32
|
39 |
+
shell32
|
40 |
+
shlwapi
|
41 |
+
user32
|
42 |
+
usp10
|
43 |
+
uuid
|
44 |
+
version
|
45 |
+
wininet
|
46 |
+
winspool
|
47 |
+
ws2_32
|
48 |
+
delayimp
|
49 |
+
kernel32
|
50 |
+
ole32)
|
51 |
+
elseif(APPLE)
|
52 |
+
list(APPEND LIBRARIES_
|
53 |
+
ApplicationServices
|
54 |
+
AppKit
|
55 |
+
CoreFoundation
|
56 |
+
IOKit
|
57 |
+
OpenDirectory
|
58 |
+
Security
|
59 |
+
bsm
|
60 |
+
pmenergy
|
61 |
+
pmsample)
|
62 |
+
endif()
|
63 |
+
|
64 |
+
foreach(LIB_NAME ${LIBRARIES_})
|
65 |
+
find_library(_LIB NAMES ${LIB_NAME} ${LIB_NAME}.dll)
|
66 |
+
target_link_libraries(chromium-base INTERFACE ${_LIB})
|
67 |
+
unset(_LIB CACHE)
|
68 |
+
endforeach()
|
69 |
+
|
70 |
+
if(UNIX AND NOT APPLE)
|
71 |
+
target_link_libraries(chromium-base INTERFACE -ldl -latomic -lpthread)
|
72 |
+
endif()
|
73 |
+
|
74 |
+
target_include_directories(chromium-base
|
75 |
+
INTERFACE ${_IMPORT_PREFIX}/include/chromium-base)
|
76 |
+
|
77 |
+
target_compile_definitions(chromium-base INTERFACE
|
78 |
+
$<$<CONFIG:Debug>:${DEFINITIONS_DBG}>
|
79 |
+
$<$<CONFIG:Release>:${DEFINITIONS_REL}>)
|
80 |
+
|
81 |
+
target_compile_features(chromium-base INTERFACE cxx_std_14)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/portfile.cmake
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Patches may be provided at the end
|
2 |
+
function(checkout_in_path PATH URL REF)
|
3 |
+
if(EXISTS "${PATH}")
|
4 |
+
file(GLOB FILES "${PATH}")
|
5 |
+
list(LENGTH FILES COUNT)
|
6 |
+
if(COUNT GREATER 0)
|
7 |
+
return()
|
8 |
+
endif()
|
9 |
+
file(REMOVE_RECURSE "${PATH}")
|
10 |
+
endif()
|
11 |
+
|
12 |
+
vcpkg_from_git(
|
13 |
+
OUT_SOURCE_PATH DEP_SOURCE_PATH
|
14 |
+
URL "${URL}"
|
15 |
+
REF "${REF}"
|
16 |
+
PATCHES "${ARGN}"
|
17 |
+
)
|
18 |
+
file(RENAME "${DEP_SOURCE_PATH}" "${PATH}")
|
19 |
+
file(REMOVE_RECURSE "${DEP_SOURCE_PATH}")
|
20 |
+
endfunction()
|
21 |
+
|
22 |
+
# Commits are based on https://chromium.googlesource.com/chromium/src/+/refs/tags/86.0.4199.1
|
23 |
+
set(SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/src/25ce732")
|
24 |
+
file(MAKE_DIRECTORY "${SOURCE_PATH}/third_party")
|
25 |
+
|
26 |
+
set(CHROMIUM_GIT "https://chromium.googlesource.com/chromium/src")
|
27 |
+
checkout_in_path(
|
28 |
+
"${SOURCE_PATH}/base"
|
29 |
+
"${CHROMIUM_GIT}/base"
|
30 |
+
"25ce73258703a5ac018da0e203fb3d4a98c2136e"
|
31 |
+
res/0001-base.patch)
|
32 |
+
checkout_in_path(
|
33 |
+
"${SOURCE_PATH}/build"
|
34 |
+
"${CHROMIUM_GIT}/build"
|
35 |
+
"312532ee66abdacbe58afb5df7ddf05e3a6399f9"
|
36 |
+
res/0002-build.patch)
|
37 |
+
checkout_in_path(
|
38 |
+
"${SOURCE_PATH}/third_party/apple_apsl"
|
39 |
+
"${CHROMIUM_GIT}/third_party/apple_apsl"
|
40 |
+
"4cc25bbf65194f6726f7f10da0a885818e35d53e")
|
41 |
+
checkout_in_path(
|
42 |
+
"${SOURCE_PATH}/third_party/ced"
|
43 |
+
"${CHROMIUM_GIT}/third_party/ced"
|
44 |
+
"4cd87a44674edd9fe1f01c4cb5f1b73907ce4236")
|
45 |
+
checkout_in_path(
|
46 |
+
"${SOURCE_PATH}/third_party/modp_b64"
|
47 |
+
"${CHROMIUM_GIT}/third_party/modp_b64"
|
48 |
+
"509f005fa65e652dc4a6f636da6fa1002b6dce16")
|
49 |
+
|
50 |
+
set(RES "${CMAKE_CURRENT_LIST_DIR}/res")
|
51 |
+
file(COPY "${RES}/.gn" DESTINATION "${SOURCE_PATH}")
|
52 |
+
file(COPY "${RES}/BUILD.gn" DESTINATION "${SOURCE_PATH}")
|
53 |
+
file(COPY "${RES}/build_overrides" DESTINATION "${SOURCE_PATH}")
|
54 |
+
file(COPY "${RES}/testing" DESTINATION "${SOURCE_PATH}")
|
55 |
+
file(COPY "${RES}/tools" DESTINATION "${SOURCE_PATH}")
|
56 |
+
file(COPY "${RES}/gclient_args.gni" DESTINATION "${SOURCE_PATH}/build/config")
|
57 |
+
file(COPY "${RES}/LASTCHANGE.committime" DESTINATION "${SOURCE_PATH}/build/util")
|
58 |
+
file(COPY "${RES}/icu" DESTINATION "${SOURCE_PATH}/third_party")
|
59 |
+
file(COPY "${RES}/libxml" DESTINATION "${SOURCE_PATH}/third_party")
|
60 |
+
file(COPY "${RES}/protobuf" DESTINATION "${SOURCE_PATH}/third_party")
|
61 |
+
file(COPY "${RES}/fontconfig" DESTINATION "${SOURCE_PATH}/third_party")
|
62 |
+
file(COPY "${RES}/test_fonts" DESTINATION "${SOURCE_PATH}/third_party")
|
63 |
+
|
64 |
+
set(OPTIONS "\
|
65 |
+
use_custom_libcxx=false \
|
66 |
+
clang_use_chrome_plugins=false \
|
67 |
+
forbid_non_component_debug_builds=false \
|
68 |
+
treat_warnings_as_errors=false")
|
69 |
+
set(DEFINITIONS "")
|
70 |
+
|
71 |
+
if(WIN32)
|
72 |
+
# Windows 10 SDK >= (10.0.19041.0) is required
|
73 |
+
# https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
|
74 |
+
SET(VCPKG_POLICY_SKIP_ARCHITECTURE_CHECK enabled)
|
75 |
+
set(ENV{DEPOT_TOOLS_WIN_TOOLCHAIN} 0)
|
76 |
+
set(OPTIONS "${OPTIONS} use_lld=false")
|
77 |
+
endif()
|
78 |
+
|
79 |
+
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL Linux)
|
80 |
+
set(OPTIONS "${OPTIONS} use_allocator=\"none\" use_sysroot=false use_glib=false")
|
81 |
+
endif()
|
82 |
+
|
83 |
+
# Find the directory that contains "bin/clang"
|
84 |
+
# Note: Only clang-cl is supported on Windows, see https://crbug.com/988071
|
85 |
+
vcpkg_find_acquire_program(CLANG)
|
86 |
+
if(CLANG MATCHES "-NOTFOUND")
|
87 |
+
message(FATAL_ERROR "Clang is required.")
|
88 |
+
endif()
|
89 |
+
get_filename_component(CLANG "${CLANG}" DIRECTORY)
|
90 |
+
get_filename_component(CLANG "${CLANG}" DIRECTORY)
|
91 |
+
if((WIN32 AND NOT EXISTS "${CLANG}/bin/clang-cl.exe") OR
|
92 |
+
(APPLE AND NOT EXISTS "${CLANG}/bin/clang"))
|
93 |
+
message(FATAL_ERROR "Clang needs to be inside a bin directory.")
|
94 |
+
endif()
|
95 |
+
set(OPTIONS "${OPTIONS} clang_base_path=\"${CLANG}\"")
|
96 |
+
|
97 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
98 |
+
set(OPTIONS "${OPTIONS} is_component_build=true")
|
99 |
+
list(APPEND DEFINITIONS COMPONENT_BUILD)
|
100 |
+
else()
|
101 |
+
set(OPTIONS "${OPTIONS} is_component_build=false")
|
102 |
+
endif()
|
103 |
+
|
104 |
+
if(APPLE)
|
105 |
+
set(OPTIONS "${OPTIONS} enable_dsyms=true")
|
106 |
+
endif()
|
107 |
+
|
108 |
+
set(OPTIONS_DBG "${OPTIONS} is_debug=true symbol_level=2")
|
109 |
+
set(OPTIONS_REL "${OPTIONS} is_debug=false symbol_level=0")
|
110 |
+
set(DEFINITIONS_DBG ${DEFINITIONS})
|
111 |
+
set(DEFINITIONS_REL ${DEFINITIONS})
|
112 |
+
|
113 |
+
vcpkg_configure_gn(
|
114 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
115 |
+
OPTIONS_DEBUG "${OPTIONS_DBG}"
|
116 |
+
OPTIONS_RELEASE "${OPTIONS_REL}"
|
117 |
+
)
|
118 |
+
|
119 |
+
# Prevent a ninja re-config loop
|
120 |
+
set(NINJA_REBUILD "build build.ninja: gn\n generator = 1\n depfile = build.ninja.d")
|
121 |
+
vcpkg_replace_string("${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/build.ninja" "${NINJA_REBUILD}" "")
|
122 |
+
vcpkg_replace_string("${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/build.ninja" "${NINJA_REBUILD}" "")
|
123 |
+
|
124 |
+
set(TARGETS
|
125 |
+
base base:base_static
|
126 |
+
base/third_party/dynamic_annotations
|
127 |
+
base/third_party/double_conversion)
|
128 |
+
|
129 |
+
if(WIN32)
|
130 |
+
list(APPEND TARGETS base/win:pe_image)
|
131 |
+
endif()
|
132 |
+
|
133 |
+
vcpkg_install_gn(
|
134 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
135 |
+
TARGETS ${TARGETS}
|
136 |
+
)
|
137 |
+
|
138 |
+
# Install includes
|
139 |
+
set(PACKAGES_INCLUDE_DIR "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
140 |
+
file(GLOB_RECURSE INCLUDE_FILES LIST_DIRECTORIES false RELATIVE "${SOURCE_PATH}" "${SOURCE_PATH}/*.h")
|
141 |
+
foreach(file_ ${INCLUDE_FILES})
|
142 |
+
configure_file("${SOURCE_PATH}/${file_}" "${PACKAGES_INCLUDE_DIR}/${file_}" COPYONLY)
|
143 |
+
endforeach()
|
144 |
+
|
145 |
+
configure_file("${CMAKE_CURRENT_LIST_DIR}/chromium-baseConfig.cmake.in"
|
146 |
+
"${CURRENT_PACKAGES_DIR}/share/${PORT}/chromium-baseConfig.cmake" @ONLY)
|
147 |
+
|
148 |
+
vcpkg_copy_pdbs()
|
149 |
+
|
150 |
+
file(INSTALL "${SOURCE_PATH}/third_party/ced/LICENSE"
|
151 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
152 |
+
RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
buildconfig = "//build/config/BUILDCONFIG.gn"
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/0001-base.patch
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/BUILD.gn b/BUILD.gn
|
2 |
+
index 7b7cd51..2961688 100644
|
3 |
+
--- a/BUILD.gn
|
4 |
+
+++ b/BUILD.gn
|
5 |
+
@@ -155,6 +155,7 @@ if (is_android) {
|
6 |
+
# test code (test support and anything in the test directory) which should use
|
7 |
+
# source_set as is recommended for GN targets).
|
8 |
+
jumbo_component("base") {
|
9 |
+
+ output_name = "chromium_base"
|
10 |
+
if (is_nacl || is_ios) {
|
11 |
+
# Link errors related to malloc functions if libbase for nacl is
|
12 |
+
# compiled with jumbo: https://crbug.com/775959.
|
13 |
+
@@ -162,6 +163,11 @@ jumbo_component("base") {
|
14 |
+
never_build_jumbo = true
|
15 |
+
}
|
16 |
+
|
17 |
+
+ if (!is_component_build) {
|
18 |
+
+ complete_static_lib = true
|
19 |
+
+ configs -= [ "//build/config/compiler:thin_archive" ]
|
20 |
+
+ }
|
21 |
+
+
|
22 |
+
sources = [
|
23 |
+
"allocator/allocator_check.cc",
|
24 |
+
"allocator/allocator_check.h",
|
25 |
+
@@ -1638,7 +1644,7 @@ jumbo_component("base") {
|
26 |
+
"hash/md5_constexpr_internal.h",
|
27 |
+
"hash/sha1.h",
|
28 |
+
]
|
29 |
+
- if (is_nacl) {
|
30 |
+
+ if (true) {
|
31 |
+
sources += [
|
32 |
+
"hash/md5_nacl.cc",
|
33 |
+
"hash/md5_nacl.h",
|
34 |
+
@@ -2298,6 +2304,7 @@ buildflag_header("tracing_buildflags") {
|
35 |
+
# library. Note that this library cannot depend on base because base depends on
|
36 |
+
# base_static.
|
37 |
+
static_library("base_static") {
|
38 |
+
+ output_name = "chromium_base_static"
|
39 |
+
sources = [
|
40 |
+
"base_switches.cc",
|
41 |
+
"base_switches.h",
|
42 |
+
@@ -2325,7 +2332,7 @@ static_library("base_static") {
|
43 |
+
}
|
44 |
+
|
45 |
+
component("i18n") {
|
46 |
+
- output_name = "base_i18n"
|
47 |
+
+ output_name = "chromium_base_i18n"
|
48 |
+
sources = [
|
49 |
+
"i18n/base_i18n_export.h",
|
50 |
+
"i18n/base_i18n_switches.cc",
|
51 |
+
diff --git a/gtest_prod_util.h b/gtest_prod_util.h
|
52 |
+
index 2ca267e..0a0b6df 100644
|
53 |
+
--- a/gtest_prod_util.h
|
54 |
+
+++ b/gtest_prod_util.h
|
55 |
+
@@ -5,7 +5,8 @@
|
56 |
+
#ifndef BASE_GTEST_PROD_UTIL_H_
|
57 |
+
#define BASE_GTEST_PROD_UTIL_H_
|
58 |
+
|
59 |
+
-#include "testing/gtest/include/gtest/gtest_prod.h" // nogncheck
|
60 |
+
+#define FRIEND_TEST(test_case_name, test_name)\
|
61 |
+
+friend class test_case_name##_##test_name##_Test
|
62 |
+
|
63 |
+
// This is a wrapper for gtest's FRIEND_TEST macro that friends
|
64 |
+
// test with all possible prefixes. This is very helpful when changing the test
|
65 |
+
diff --git a/hash/md5.h b/hash/md5.h
|
66 |
+
index 8a49f08..24acdab 100644
|
67 |
+
--- a/hash/md5.h
|
68 |
+
+++ b/hash/md5.h
|
69 |
+
@@ -11,7 +11,7 @@
|
70 |
+
#include "base/strings/string_piece.h"
|
71 |
+
#include "build/build_config.h"
|
72 |
+
|
73 |
+
-#if defined(OS_NACL)
|
74 |
+
+#if true
|
75 |
+
#include "base/hash/md5_nacl.h"
|
76 |
+
#else
|
77 |
+
#include "base/hash/md5_boringssl.h"
|
78 |
+
diff --git a/hash/md5_nacl.cc b/hash/md5_nacl.cc
|
79 |
+
index 827bbbd..4b22c59 100644
|
80 |
+
--- a/hash/md5_nacl.cc
|
81 |
+
+++ b/hash/md5_nacl.cc
|
82 |
+
@@ -22,6 +22,7 @@
|
83 |
+
*/
|
84 |
+
|
85 |
+
#include <stddef.h>
|
86 |
+
+#include <string.h>
|
87 |
+
|
88 |
+
#include "base/hash/md5.h"
|
89 |
+
|
90 |
+
diff --git a/profiler/stack_copier_signal.cc b/profiler/stack_copier_signal.cc
|
91 |
+
index 5a7d8b9..f959f2f 100644
|
92 |
+
--- a/profiler/stack_copier_signal.cc
|
93 |
+
+++ b/profiler/stack_copier_signal.cc
|
94 |
+
@@ -6,6 +6,7 @@
|
95 |
+
|
96 |
+
#include <linux/futex.h>
|
97 |
+
#include <signal.h>
|
98 |
+
+#include <string.h>
|
99 |
+
#include <sys/ucontext.h>
|
100 |
+
#include <syscall.h>
|
101 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/0002-build.patch
ADDED
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/config/BUILDCONFIG.gn b/config/BUILDCONFIG.gn
|
2 |
+
index 4cc6bfc..9ea83a9 100644
|
3 |
+
--- a/config/BUILDCONFIG.gn
|
4 |
+
+++ b/config/BUILDCONFIG.gn
|
5 |
+
@@ -657,6 +657,7 @@ template("component") {
|
6 |
+
# See http://crbug.com/594610
|
7 |
+
forward_variables_from(invoker, [ "visibility" ])
|
8 |
+
forward_variables_from(invoker, "*", [ "visibility" ])
|
9 |
+
+ not_needed("*")
|
10 |
+
}
|
11 |
+
}
|
12 |
+
|
13 |
+
diff --git a/config/clang/BUILD.gn b/config/clang/BUILD.gn
|
14 |
+
index 960726e..87886dc 100644
|
15 |
+
--- a/config/clang/BUILD.gn
|
16 |
+
+++ b/config/clang/BUILD.gn
|
17 |
+
@@ -38,5 +38,7 @@ config("extra_warnings") {
|
18 |
+
"-Wstring-conversion",
|
19 |
+
|
20 |
+
"-Wtautological-overlap-compare",
|
21 |
+
+ "-Wno-unknown-warning-option",
|
22 |
+
+ "-Wno-unknown-pragmas"
|
23 |
+
]
|
24 |
+
}
|
25 |
+
diff --git a/config/mac/sdk_info.py b/config/mac/sdk_info.py
|
26 |
+
index 1ad11d3..99b21f9 100644
|
27 |
+
--- a/config/mac/sdk_info.py
|
28 |
+
+++ b/config/mac/sdk_info.py
|
29 |
+
@@ -61,10 +61,15 @@ def FillXcodeVersion(settings, developer_dir):
|
30 |
+
settings['xcode_build'] = version_plist['ProductBuildVersion']
|
31 |
+
return
|
32 |
+
|
33 |
+
- lines = subprocess.check_output(['xcodebuild', '-version']).splitlines()
|
34 |
+
- settings['xcode_version'] = FormatVersion(lines[0].split()[-1])
|
35 |
+
- settings['xcode_version_int'] = int(settings['xcode_version'], 10)
|
36 |
+
- settings['xcode_build'] = lines[-1].split()[-1]
|
37 |
+
+ try:
|
38 |
+
+ lines = subprocess.check_output(['xcodebuild', '-version']).splitlines()
|
39 |
+
+ settings['xcode_version'] = FormatVersion(lines[0].split()[-1])
|
40 |
+
+ settings['xcode_version_int'] = int(settings['xcode_version'], 10)
|
41 |
+
+ settings['xcode_build'] = lines[-1].split()[-1]
|
42 |
+
+ except:
|
43 |
+
+ settings['xcode_version'] = ""
|
44 |
+
+ settings['xcode_version_int'] = 0
|
45 |
+
+ settings['xcode_build'] = ""
|
46 |
+
|
47 |
+
|
48 |
+
def FillMachineOSBuild(settings):
|
49 |
+
diff --git a/mac/find_sdk.py b/mac/find_sdk.py
|
50 |
+
index 58362bf..a6069b6 100755
|
51 |
+
--- a/mac/find_sdk.py
|
52 |
+
+++ b/mac/find_sdk.py
|
53 |
+
@@ -68,6 +68,8 @@ def main():
|
54 |
+
dev_dir = out.rstrip()
|
55 |
+
sdk_dir = os.path.join(
|
56 |
+
dev_dir, 'Platforms/MacOSX.platform/Developer/SDKs')
|
57 |
+
+ if not os.path.isdir(sdk_dir):
|
58 |
+
+ sdk_dir = os.path.join(dev_dir, 'SDKs')
|
59 |
+
|
60 |
+
if not os.path.isdir(sdk_dir):
|
61 |
+
raise SdkError('Install Xcode, launch it, accept the license ' +
|
62 |
+
@@ -87,7 +89,10 @@ def main():
|
63 |
+
|
64 |
+
if options.print_bin_path:
|
65 |
+
bin_path = 'Toolchains/XcodeDefault.xctoolchain/usr/bin/'
|
66 |
+
- print(os.path.join(dev_dir, bin_path))
|
67 |
+
+ if os.path.isdir(os.path.join(dev_dir, bin_path)):
|
68 |
+
+ print(os.path.join(dev_dir, bin_path))
|
69 |
+
+ else:
|
70 |
+
+ print(os.path.join(dev_dir, 'usr/bin/'))
|
71 |
+
|
72 |
+
return best_sdk
|
73 |
+
|
74 |
+
diff --git a/toolchain/mac/BUILD.gn b/toolchain/mac/BUILD.gn
|
75 |
+
index 8fdada0..8d5e6b7 100644
|
76 |
+
--- a/toolchain/mac/BUILD.gn
|
77 |
+
+++ b/toolchain/mac/BUILD.gn
|
78 |
+
@@ -184,9 +184,9 @@ template("mac_toolchain") {
|
79 |
+
# If dSYMs are enabled, this flag will be added to the link tools.
|
80 |
+
if (_enable_dsyms) {
|
81 |
+
dsym_switch = " -Wcrl,dsym,{{root_out_dir}} "
|
82 |
+
- dsym_switch += "-Wcrl,dsymutilpath," +
|
83 |
+
- rebase_path("//tools/clang/dsymutil/bin/dsymutil",
|
84 |
+
- root_build_dir) + " "
|
85 |
+
+ # dsym_switch += "-Wcrl,dsymutilpath," +
|
86 |
+
+ # rebase_path("//tools/clang/dsymutil/bin/dsymutil",
|
87 |
+
+ # root_build_dir) + " "
|
88 |
+
|
89 |
+
dsym_output_dir =
|
90 |
+
"{{root_out_dir}}/{{target_output_name}}{{output_extension}}.dSYM"
|
91 |
+
diff --git a/toolchain/win/BUILD.gn b/toolchain/win/BUILD.gn
|
92 |
+
index be08930..04fb374 100644
|
93 |
+
--- a/toolchain/win/BUILD.gn
|
94 |
+
+++ b/toolchain/win/BUILD.gn
|
95 |
+
@@ -98,7 +98,7 @@ template("msvc_toolchain") {
|
96 |
+
} else {
|
97 |
+
lld_link = "lld-link"
|
98 |
+
}
|
99 |
+
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
100 |
+
+ prefix = "$clang_base_path/bin"
|
101 |
+
|
102 |
+
# lld-link includes a replacement for lib.exe that can produce thin
|
103 |
+
# archives and understands bitcode (for lto builds).
|
104 |
+
@@ -190,7 +190,7 @@ template("msvc_toolchain") {
|
105 |
+
# amount of data to parse and store in .ninja_deps. We do this on non-Windows too,
|
106 |
+
# and already make sure rebuilds after win sdk / libc++ / clang header updates happen via
|
107 |
+
# changing commandline flags.
|
108 |
+
- show_includes = "/showIncludes:user"
|
109 |
+
+ show_includes = ""
|
110 |
+
} else {
|
111 |
+
show_includes = "/showIncludes"
|
112 |
+
}
|
113 |
+
@@ -235,7 +235,7 @@ template("msvc_toolchain") {
|
114 |
+
|
115 |
+
if (toolchain_args.current_cpu == "arm64") {
|
116 |
+
if (is_clang) {
|
117 |
+
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
118 |
+
+ prefix = "$clang_base_path/bin"
|
119 |
+
ml = "${clang_prefix}${prefix}/${clang_cl} --target=arm64-windows"
|
120 |
+
if (host_os == "win") {
|
121 |
+
# Flip the slashes so that copy/paste of the command works.
|
122 |
+
@@ -444,11 +444,9 @@ template("win_toolchains") {
|
123 |
+
|
124 |
+
msvc_toolchain("win_clang_" + target_name) {
|
125 |
+
environment = "environment." + toolchain_arch
|
126 |
+
- prefix = rebase_path("$clang_base_path/bin", root_build_dir)
|
127 |
+
+ prefix = "$clang_base_path/bin"
|
128 |
+
cl = "${clang_prefix}$prefix/${clang_cl}"
|
129 |
+
- _clang_lib_dir =
|
130 |
+
- rebase_path("$clang_base_path/lib/clang/$clang_version/lib/windows",
|
131 |
+
- root_build_dir)
|
132 |
+
+ _clang_lib_dir = "$clang_base_path/lib/clang/$clang_version/lib/windows"
|
133 |
+
if (host_os == "win") {
|
134 |
+
# Flip the slashes so that copy/paste of the command works.
|
135 |
+
cl = string_replace(cl, "/", "\\")
|
136 |
+
@@ -459,7 +457,7 @@ template("win_toolchains") {
|
137 |
+
|
138 |
+
sys_include_flags = "${win_toolchain_data.include_flags_imsvc}"
|
139 |
+
sys_lib_flags =
|
140 |
+
- "-libpath:$_clang_lib_dir ${win_toolchain_data.libpath_flags}"
|
141 |
+
+ "-libpath:\"$_clang_lib_dir\" ${win_toolchain_data.libpath_flags}"
|
142 |
+
|
143 |
+
toolchain_args = {
|
144 |
+
if (defined(invoker.toolchain_args)) {
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/BUILD.gn
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
static_library("chromium-base") {
|
2 |
+
deps = [
|
3 |
+
"//base",
|
4 |
+
]
|
5 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/LASTCHANGE.committime
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
1594430814
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/build_overrides/build.gni
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import("//build/config/gclient_args.gni")
|
2 |
+
|
3 |
+
# Some non-Chromium builds don't support building java targets.
|
4 |
+
enable_java_templates = true
|
5 |
+
|
6 |
+
# Don't use Chromium's third_party/binutils.
|
7 |
+
linux_use_bundled_binutils_override = false
|
8 |
+
|
9 |
+
# Tracing requires //third_party/perfetto.
|
10 |
+
enable_base_tracing = false
|
11 |
+
|
12 |
+
# Skip assertions about 4GiB file size limit. See https://crbug.com/648948.
|
13 |
+
ignore_elf32_limitations = false
|
14 |
+
|
15 |
+
# Use the system install of Xcode for tools like ibtool, libtool, etc.
|
16 |
+
use_system_xcode = true
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/fontconfig/BUILD.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
component("fontconfig") {}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/gclient_args.gni
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
build_with_chromium = true
|
2 |
+
checkout_android = false
|
3 |
+
checkout_android_native_support = false
|
4 |
+
checkout_ios_webkit = false
|
5 |
+
checkout_nacl = false
|
6 |
+
checkout_oculus_sdk = false
|
7 |
+
checkout_openxr = false
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/icu/BUILD.gn
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
component("icuuc") {}
|
2 |
+
component("icu") {}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/icu/config.gni
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
declare_args() {
|
2 |
+
icu_use_data_file = false
|
3 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/libxml/BUILD.gn
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
component("libxml_utils") {}
|
2 |
+
component("xml_reader") {}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/protobuf/proto_library.gni
ADDED
File without changes
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/test_fonts/BUILD.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
component("test_fonts") {}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/gmock/BUILD.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
component("gmock") {}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/gtest/BUILD.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
component("gtest") {}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/libfuzzer/fuzzer_test.gni
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
import("//testing/test.gni")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/testing/test.gni
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
template("test") {
|
2 |
+
not_needed(invoker, "*")
|
3 |
+
not_needed("*")
|
4 |
+
}
|
5 |
+
|
6 |
+
set_defaults("test") {
|
7 |
+
configs = [
|
8 |
+
"//build/config/compiler:chromium_code"
|
9 |
+
]
|
10 |
+
}
|
11 |
+
|
12 |
+
template("fuzzer_test") {
|
13 |
+
not_needed(invoker, "*")
|
14 |
+
not_needed("*")
|
15 |
+
}
|
16 |
+
|
17 |
+
template("protoc_convert") {
|
18 |
+
not_needed(invoker, "*")
|
19 |
+
not_needed("*")
|
20 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/BUILD.gn
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
config("chrome") {}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/res/tools/win/DebugVisualizers/chrome.natvis
ADDED
File without changes
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/chromium-base/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "chromium-base",
|
3 |
+
"version-string": "86.0.4199.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.",
|
6 |
+
"homepage": "https://chromium.googlesource.com/chromium/src",
|
7 |
+
"supports": "x64 & (osx | windows | linux) & !uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cimg/CMakeLists.txt
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
|
2 |
+
project(CImg)
|
3 |
+
|
4 |
+
add_library(${PROJECT_NAME} INTERFACE)
|
5 |
+
|
6 |
+
target_include_directories(${PROJECT_NAME} INTERFACE
|
7 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
|
8 |
+
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
9 |
+
)
|
10 |
+
|
11 |
+
install(TARGETS ${PROJECT_NAME}
|
12 |
+
EXPORT CImgExport
|
13 |
+
INCLUDES DESTINATION include
|
14 |
+
)
|
15 |
+
|
16 |
+
install(EXPORT CImgExport FILE ${PROJECT_NAME}Config.cmake NAMESPACE ${PROJECT_NAME}:: DESTINATION share/cimg)
|
17 |
+
|
18 |
+
install(
|
19 |
+
FILES ${CMAKE_CURRENT_SOURCE_DIR}/CImg.h
|
20 |
+
DESTINATION include
|
21 |
+
)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cimg/portfile.cmake
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(OUT_SOURCE_PATH SOURCE_PATH
|
2 |
+
REPO dtschump/CImg
|
3 |
+
REF b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd # v2.9.9
|
4 |
+
SHA512 327c72320e7cac386ba72d417c45b9e8b40df34650370c34e687c362731919af1b447b2ee498f21278d4af155f0d9dbfabd222856d5f18c2e05569fa638a5909
|
5 |
+
HEAD_REF master
|
6 |
+
)
|
7 |
+
|
8 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
)
|
13 |
+
|
14 |
+
vcpkg_cmake_install()
|
15 |
+
|
16 |
+
# Move cmake files, ensuring they will be 3 directories up the import prefix
|
17 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
18 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
19 |
+
|
20 |
+
file(INSTALL "${SOURCE_PATH}/Licence_CeCILL-C_V1-en.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
21 |
+
file(INSTALL "${SOURCE_PATH}/Licence_CeCILL_V2-en.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright2)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cimg/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cimg",
|
3 |
+
"version": "2.9.9",
|
4 |
+
"description": "The CImg Library is a small, open-source, and modern C++ toolkit for image processing",
|
5 |
+
"homepage": "https://github.com/dtschump/CImg",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
}
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/CMakeLists.txt
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.13)
|
2 |
+
project(cityhash CXX)
|
3 |
+
|
4 |
+
option(ENABLE_SSE "Build CityHash variants that depend on the _mm_crc32_u64 intrinsic." OFF)
|
5 |
+
|
6 |
+
set(CMAKE_CXX_STANDARD 11)
|
7 |
+
|
8 |
+
if (ENABLE_SSE)
|
9 |
+
include (CMakePushCheckState)
|
10 |
+
cmake_push_check_state()
|
11 |
+
if (MSVC)
|
12 |
+
include(CheckCXXSourceCompiles)
|
13 |
+
|
14 |
+
check_cxx_source_compiles(
|
15 |
+
"#include <nmmintrin.h>
|
16 |
+
int main() {
|
17 |
+
_mm_crc32_u64(0, 0);
|
18 |
+
return 0;
|
19 |
+
}"
|
20 |
+
USE_SSE)
|
21 |
+
else()
|
22 |
+
include(CheckCXXCompilerFlag)
|
23 |
+
check_cxx_compiler_flag ("-msse4.2" USE_SSE)
|
24 |
+
if (USE_SSE)
|
25 |
+
set (SSE2_FLAG "-msse4.2")
|
26 |
+
endif()
|
27 |
+
endif()
|
28 |
+
|
29 |
+
cmake_pop_check_state()
|
30 |
+
|
31 |
+
if (NOT USE_SSE)
|
32 |
+
message(FATAL_ERROR "This platform doesn't support feature SSE4.2")
|
33 |
+
endif()
|
34 |
+
else()
|
35 |
+
set(USE_SSE OFF)
|
36 |
+
endif()
|
37 |
+
|
38 |
+
add_library(cityhash STATIC src/city.cc)
|
39 |
+
|
40 |
+
list(APPEND CITY_HEADERS src/city.h)
|
41 |
+
if (USE_SSE)
|
42 |
+
list(APPEND CITY_HEADERS src/citycrc.h)
|
43 |
+
|
44 |
+
target_compile_options(cityhash PRIVATE ${SSE2_FLAG})
|
45 |
+
if (MSVC)
|
46 |
+
target_compile_definitions(cityhash PRIVATE __SSE4_2__)
|
47 |
+
endif()
|
48 |
+
endif()
|
49 |
+
|
50 |
+
target_include_directories(cityhash PUBLIC
|
51 |
+
$<INSTALL_INTERFACE:include>
|
52 |
+
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
53 |
+
)
|
54 |
+
|
55 |
+
install(TARGETS cityhash EXPORT cityhash-config
|
56 |
+
RUNTIME DESTINATION bin
|
57 |
+
ARCHIVE DESTINATION lib
|
58 |
+
LIBRARY DESTINATION lib
|
59 |
+
)
|
60 |
+
|
61 |
+
install(EXPORT cityhash-config DESTINATION share/cmake/cityhash)
|
62 |
+
install(FILES ${CITY_HEADERS} DESTINATION include)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/config.h
ADDED
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* config.h. Generated from config.h.in by configure. */
|
2 |
+
/* config.h.in. Generated from configure.ac by autoheader. */
|
3 |
+
|
4 |
+
/* Define if building universal (internal helper macro) */
|
5 |
+
/* #undef AC_APPLE_UNIVERSAL_BUILD */
|
6 |
+
|
7 |
+
/* Define to 1 if the compiler supports __builtin_expect. */
|
8 |
+
#if WIN32 || WIN64
|
9 |
+
# define HAVE_BUILTIN_EXPECT 0
|
10 |
+
#else
|
11 |
+
# define HAVE_BUILTIN_EXPECT 1
|
12 |
+
#endif
|
13 |
+
|
14 |
+
/* Define to 1 if you have the <dlfcn.h> header file. */
|
15 |
+
#define HAVE_DLFCN_H 1
|
16 |
+
|
17 |
+
/* Define to 1 if you have the <inttypes.h> header file. */
|
18 |
+
#define HAVE_INTTYPES_H 1
|
19 |
+
|
20 |
+
/* Define to 1 if you have the <memory.h> header file. */
|
21 |
+
#define HAVE_MEMORY_H 1
|
22 |
+
|
23 |
+
/* Define to 1 if you have the <stdint.h> header file. */
|
24 |
+
#define HAVE_STDINT_H 1
|
25 |
+
|
26 |
+
/* Define to 1 if you have the <stdlib.h> header file. */
|
27 |
+
#define HAVE_STDLIB_H 1
|
28 |
+
|
29 |
+
/* Define to 1 if you have the <strings.h> header file. */
|
30 |
+
#define HAVE_STRINGS_H 1
|
31 |
+
|
32 |
+
/* Define to 1 if you have the <string.h> header file. */
|
33 |
+
#define HAVE_STRING_H 1
|
34 |
+
|
35 |
+
/* Define to 1 if you have the <sys/stat.h> header file. */
|
36 |
+
#define HAVE_SYS_STAT_H 1
|
37 |
+
|
38 |
+
/* Define to 1 if you have the <sys/types.h> header file. */
|
39 |
+
#define HAVE_SYS_TYPES_H 1
|
40 |
+
|
41 |
+
/* Define to 1 if you have the <unistd.h> header file. */
|
42 |
+
#define HAVE_UNISTD_H 1
|
43 |
+
|
44 |
+
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
45 |
+
*/
|
46 |
+
#define LT_OBJDIR ".libs/"
|
47 |
+
|
48 |
+
/* Define to the address where bug reports for this package should be sent. */
|
49 |
+
#define PACKAGE_BUGREPORT "[email protected]"
|
50 |
+
|
51 |
+
/* Define to the full name of this package. */
|
52 |
+
#define PACKAGE_NAME "CityHash"
|
53 |
+
|
54 |
+
/* Define to the full name and version of this package. */
|
55 |
+
#define PACKAGE_STRING "CityHash 1.1.1"
|
56 |
+
|
57 |
+
/* Define to the one symbol short name of this package. */
|
58 |
+
#define PACKAGE_TARNAME "cityhash"
|
59 |
+
|
60 |
+
/* Define to the home page for this package. */
|
61 |
+
#define PACKAGE_URL ""
|
62 |
+
|
63 |
+
/* Define to the version of this package. */
|
64 |
+
#define PACKAGE_VERSION "1.1.1"
|
65 |
+
|
66 |
+
/* Define to 1 if you have the ANSI C header files. */
|
67 |
+
#define STDC_HEADERS 1
|
68 |
+
|
69 |
+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
70 |
+
significant byte first (like Motorola and SPARC, unlike Intel). */
|
71 |
+
#if defined AC_APPLE_UNIVERSAL_BUILD
|
72 |
+
# if defined __BIG_ENDIAN__
|
73 |
+
# define WORDS_BIGENDIAN 1
|
74 |
+
# endif
|
75 |
+
#else
|
76 |
+
# ifndef WORDS_BIGENDIAN
|
77 |
+
/* # undef WORDS_BIGENDIAN */
|
78 |
+
# endif
|
79 |
+
#endif
|
80 |
+
|
81 |
+
/* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
|
82 |
+
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|
83 |
+
#define below would cause a syntax error. */
|
84 |
+
/* #undef _UINT32_T */
|
85 |
+
|
86 |
+
/* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
|
87 |
+
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|
88 |
+
#define below would cause a syntax error. */
|
89 |
+
/* #undef _UINT64_T */
|
90 |
+
|
91 |
+
/* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
|
92 |
+
<pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
|
93 |
+
#define below would cause a syntax error. */
|
94 |
+
/* #undef _UINT8_T */
|
95 |
+
|
96 |
+
/* Define to `__inline__' or `__inline' if that's what the C compiler
|
97 |
+
calls it, or to nothing if 'inline' is not supported under any name. */
|
98 |
+
#ifndef __cplusplus
|
99 |
+
/* #undef inline */
|
100 |
+
#endif
|
101 |
+
|
102 |
+
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
103 |
+
/* #undef size_t */
|
104 |
+
|
105 |
+
/* Define to `int' if <sys/types.h> does not define. */
|
106 |
+
/* #undef ssize_t */
|
107 |
+
|
108 |
+
/* Define to the type of an unsigned integer type of width exactly 32 bits if
|
109 |
+
such a type exists and the standard includes do not define it. */
|
110 |
+
/* #undef uint32_t */
|
111 |
+
|
112 |
+
/* Define to the type of an unsigned integer type of width exactly 64 bits if
|
113 |
+
such a type exists and the standard includes do not define it. */
|
114 |
+
/* #undef uint64_t */
|
115 |
+
|
116 |
+
/* Define to the type of an unsigned integer type of width exactly 8 bits if
|
117 |
+
such a type exists and the standard includes do not define it. */
|
118 |
+
/* #undef uint8_t */
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/portfile.cmake
ADDED
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO google/cityhash
|
6 |
+
REF 8af9b8c2b889d80c22d6bc26ba0df1afb79a30db
|
7 |
+
SHA512 5878a6a4f8ee99593412d446d96c05be1f89fa7771eca49ff4a52ce181de8199ba558170930996d36f6df80a65889d93c81ab2611868b015d8db913e2ecd2eb9
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
12 |
+
|
13 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
14 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h" DESTINATION "${SOURCE_PATH}/src")
|
15 |
+
else()
|
16 |
+
file(MAKE_DIRECTORY "${SOURCE_PATH}/out")
|
17 |
+
vcpkg_execute_required_process(
|
18 |
+
COMMAND "${SOURCE_PATH}/configure"
|
19 |
+
WORKING_DIRECTORY "${SOURCE_PATH}/out"
|
20 |
+
LOGNAME configure-${TARGET_TRIPLET}
|
21 |
+
)
|
22 |
+
file(COPY "${SOURCE_PATH}/out/config.h" DESTINATION "${SOURCE_PATH}/src")
|
23 |
+
endif()
|
24 |
+
|
25 |
+
if (VCPKG_TARGET_IS_WINDOWS AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x86" AND "sse" IN_LIST FEATURES)
|
26 |
+
message(FATAL_ERROR "Feature 'sse' does not support Windows x86 triplet.")
|
27 |
+
endif()
|
28 |
+
|
29 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
30 |
+
FEATURES
|
31 |
+
"sse" ENABLE_SSE
|
32 |
+
)
|
33 |
+
|
34 |
+
vcpkg_cmake_configure(
|
35 |
+
SOURCE_PATH ${SOURCE_PATH}
|
36 |
+
OPTIONS
|
37 |
+
${FEATURE_OPTIONS}
|
38 |
+
)
|
39 |
+
|
40 |
+
vcpkg_cmake_install()
|
41 |
+
vcpkg_copy_pdbs()
|
42 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/cityhash)
|
43 |
+
|
44 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include"
|
45 |
+
"${CURRENT_PACKAGES_DIR}/debug/share")
|
46 |
+
|
47 |
+
configure_file("${SOURCE_PATH}/COPYING" "${CURRENT_PACKAGES_DIR}/share/cityhash/copyright" COPYONLY)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cityhash/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cityhash",
|
3 |
+
"version-date": "2013-01-08",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "CityHash, a family of hash functions for strings.",
|
6 |
+
"homepage": "https://github.com/google/cityhash",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"sse": {
|
19 |
+
"description": "Build CityHash variants that depend on the _mm_crc32_u64 intrinsic."
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/civetweb/portfile.cmake
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO civetweb/civetweb
|
6 |
+
REF eefb26f82b233268fc98577d265352720d477ba4 # v1.15
|
7 |
+
SHA512 5ce962e31b3c07b7110cbc645458dba9c0e26e693fbe3b4a7ffe8a28563827049a22fc5596a911fbcea4d88a9adbef3f82000ff61027ff4387f40e4a4045c26d
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
12 |
+
FEATURES
|
13 |
+
ssl CIVETWEB_ENABLE_SSL
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_configure_cmake(
|
17 |
+
SOURCE_PATH ${SOURCE_PATH}
|
18 |
+
# PREFER_NINJA - See https://github.com/civetweb/civetweb/issues/1024
|
19 |
+
OPTIONS
|
20 |
+
-DCIVETWEB_BUILD_TESTING=OFF
|
21 |
+
-DCIVETWEB_ENABLE_DEBUG_TOOLS=OFF
|
22 |
+
-DCIVETWEB_ENABLE_ASAN=OFF
|
23 |
+
-DCIVETWEB_ENABLE_CXX=ON
|
24 |
+
-DCIVETWEB_ENABLE_IPV6=ON
|
25 |
+
-DCIVETWEB_ENABLE_SERVER_EXECUTABLE=OFF
|
26 |
+
-DCIVETWEB_ENABLE_SSL_DYNAMIC_LOADING=OFF
|
27 |
+
-DCIVETWEB_ENABLE_WEBSOCKETS=ON
|
28 |
+
${FEATURE_OPTIONS}
|
29 |
+
)
|
30 |
+
|
31 |
+
vcpkg_install_cmake()
|
32 |
+
|
33 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/civetweb)
|
34 |
+
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
36 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
37 |
+
|
38 |
+
# Handle copyright
|
39 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
40 |
+
|
41 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/civetweb/vcpkg.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "civetweb",
|
3 |
+
"version": "1.15",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Easy to use, powerful, C/C++ embeddable web server.",
|
6 |
+
"homepage": "https://github.com/civetweb/civetweb",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"features": {
|
9 |
+
"ssl": {
|
10 |
+
"description": "Enable SSL support",
|
11 |
+
"dependencies": [
|
12 |
+
"openssl"
|
13 |
+
]
|
14 |
+
}
|
15 |
+
}
|
16 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cjson/portfile.cmake
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO DaveGamble/cJSON
|
4 |
+
REF v1.7.15
|
5 |
+
SHA512 0b32a758c597fcc90c8ed0af493c9bccd611b9d4f9a03e87de3f7337bb9a28990b810befd44bc321a0cb42cbcd0b026d45761f9bab7bd798f920b7b6975fb124
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_check_features(
|
10 |
+
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
11 |
+
FEATURES
|
12 |
+
utils ENABLE_CJSON_UTILS
|
13 |
+
)
|
14 |
+
|
15 |
+
if(CMAKE_HOST_WIN32)
|
16 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_PUBLIC_SYMBOLS)
|
17 |
+
string(COMPARE NOTEQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" DENABLE_HIDDEN_SYMBOLS)
|
18 |
+
else()
|
19 |
+
set(ENABLE_PUBLIC_SYMBOLS OFF)
|
20 |
+
set(DENABLE_HIDDEN_SYMBOLS OFF)
|
21 |
+
endif()
|
22 |
+
|
23 |
+
vcpkg_cmake_configure(
|
24 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
25 |
+
OPTIONS
|
26 |
+
-DBUILD_SHARED_AND_STATIC_LIBS=OFF
|
27 |
+
-DCJSON_OVERRIDE_BUILD_SHARED_LIBS=OFF
|
28 |
+
-DENABLE_PUBLIC_SYMBOLS=${ENABLE_PUBLIC_SYMBOLS}
|
29 |
+
-DENABLE_HIDDEN_SYMBOLS=${DENABLE_HIDDEN_SYMBOLS}
|
30 |
+
-DENABLE_TARGET_EXPORT=ON # Export CMake config files
|
31 |
+
-DENABLE_CJSON_TEST=OFF
|
32 |
+
-DENABLE_FUZZING=OFF
|
33 |
+
${FEATURE_OPTIONS}
|
34 |
+
)
|
35 |
+
|
36 |
+
vcpkg_cmake_install()
|
37 |
+
|
38 |
+
vcpkg_copy_pdbs()
|
39 |
+
|
40 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/cJSON)
|
41 |
+
|
42 |
+
file(REMOVE_RECURSE
|
43 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
44 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
45 |
+
)
|
46 |
+
|
47 |
+
file(READ "${CURRENT_PACKAGES_DIR}/include/cjson/cJSON.h" _contents)
|
48 |
+
if(ENABLE_PUBLIC_SYMBOLS)
|
49 |
+
string(REPLACE "defined(CJSON_HIDE_SYMBOLS)" "0 /* defined(CJSON_HIDE_SYMBOLS) */" _contents "${_contents}")
|
50 |
+
string(REPLACE "defined(CJSON_EXPORT_SYMBOLS)" "0 /* defined(CJSON_EXPORT_SYMBOLS) */" _contents "${_contents}")
|
51 |
+
string(REPLACE "defined(CJSON_IMPORT_SYMBOLS)" "1 /* defined(CJSON_IMPORT_SYMBOLS) */" _contents "${_contents}")
|
52 |
+
else()
|
53 |
+
string(REPLACE "defined(CJSON_HIDE_SYMBOLS)" "1 /* defined(CJSON_HIDE_SYMBOLS) */" _contents "${_contents}")
|
54 |
+
endif()
|
55 |
+
file(WRITE "${CURRENT_PACKAGES_DIR}/include/cjson/cJSON.h" "${_contents}")
|
56 |
+
|
57 |
+
# Handle copyright
|
58 |
+
configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" COPYONLY)
|
59 |
+
|
60 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/cjson/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "cjson",
|
3 |
+
"version": "1.7.15",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Ultralightweight JSON parser in ANSI C",
|
6 |
+
"homepage": "https://github.com/DaveGamble/cJSON",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
],
|
17 |
+
"features": {
|
18 |
+
"utils": {
|
19 |
+
"description": "Enable building the cJSON_Utils library"
|
20 |
+
}
|
21 |
+
}
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/build.patch
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/FindCURSES.cmake b/cmake/FindCURSES.cmake
|
2 |
+
index a0755c697..f60735a91 100644
|
3 |
+
--- a/cmake/FindCURSES.cmake
|
4 |
+
+++ b/cmake/FindCURSES.cmake
|
5 |
+
@@ -107,7 +107,7 @@ else()
|
6 |
+
set(CURSES_INCLUDE "<curses.h>")
|
7 |
+
|
8 |
+
find_library(CURSES_LIBRARY
|
9 |
+
- NAMES curses
|
10 |
+
+ NAMES curses pdcurses
|
11 |
+
PATHS ${PC_PDCurses_LIBRARY_DIRS}
|
12 |
+
)
|
13 |
+
|
14 |
+
diff --git a/cmake/FindPthreadW32.cmake b/cmake/FindPthreadW32.cmake
|
15 |
+
index 4fded1eb7..0d44af310 100644
|
16 |
+
--- a/cmake/FindPthreadW32.cmake
|
17 |
+
+++ b/cmake/FindPthreadW32.cmake
|
18 |
+
@@ -54,7 +54,7 @@ find_path(PThreadW32_INCLUDE_DIR
|
19 |
+
PATH_SUFFIXES pthreadw32
|
20 |
+
)
|
21 |
+
find_library(PThreadW32_LIBRARY
|
22 |
+
- NAMES pthreadVC2
|
23 |
+
+ NAMES pthreadVC2 pthreadVC3
|
24 |
+
PATHS ${PC_PThreadW32_LIBRARY_DIRS}
|
25 |
+
)
|
26 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/cmakefiles.patch
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/freshclam/CMakeLists.txt b/freshclam/CMakeLists.txt
|
2 |
+
index 545d5d4ba..59cbbc4ce 100644
|
3 |
+
--- a/freshclam/CMakeLists.txt
|
4 |
+
+++ b/freshclam/CMakeLists.txt
|
5 |
+
@@ -28,18 +28,8 @@ target_link_libraries(freshclam-bin
|
6 |
+
ClamAV::libfreshclam
|
7 |
+
ClamAV::libclamav
|
8 |
+
ClamAV::shared )
|
9 |
+
-if(WIN32)
|
10 |
+
- install(TARGETS freshclam-bin DESTINATION ${CMAKE_INSTALL_PREFIX})
|
11 |
+
-else()
|
12 |
+
- install(TARGETS freshclam-bin DESTINATION ${CMAKE_INSTALL_BINDIR})
|
13 |
+
-endif()
|
14 |
+
|
15 |
+
-# Install an empty database directory
|
16 |
+
-if(WIN32)
|
17 |
+
- INSTALL(CODE "FILE(MAKE_DIRECTORY \${ENV}\${CMAKE_INSTALL_PREFIX}/database)")
|
18 |
+
-else()
|
19 |
+
- INSTALL(CODE "FILE(MAKE_DIRECTORY \${ENV}\${CMAKE_INSTALL_PREFIX}/share/clamav)")
|
20 |
+
-endif()
|
21 |
+
+install(TARGETS freshclam-bin)
|
22 |
+
|
23 |
+
# now we rename resman-bin executable to resman using target properties
|
24 |
+
set_target_properties( freshclam-bin
|
25 |
+
diff --git a/libclamav/CMakeLists.txt b/libclamav/CMakeLists.txt
|
26 |
+
index bb14510db..136ea308a 100644
|
27 |
+
--- a/libclamav/CMakeLists.txt
|
28 |
+
+++ b/libclamav/CMakeLists.txt
|
29 |
+
@@ -564,11 +564,7 @@ if(ENABLE_SHARED_LIB)
|
30 |
+
else()
|
31 |
+
target_link_libraries( clamav PUBLIC Iconv::Iconv )
|
32 |
+
endif()
|
33 |
+
- if(WIN32)
|
34 |
+
- install(TARGETS clamav DESTINATION ${CMAKE_INSTALL_PREFIX})
|
35 |
+
- else()
|
36 |
+
- install(TARGETS clamav DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
37 |
+
- endif()
|
38 |
+
+ install(TARGETS clamav)
|
39 |
+
|
40 |
+
if(LLVM_FOUND)
|
41 |
+
target_link_directories( clamav PRIVATE ${LLVM_LIBRARY_DIRS} )
|
42 |
+
@@ -609,11 +605,7 @@ if(ENABLE_STATIC_LIB)
|
43 |
+
COMPILE_FLAGS "${WARNCFLAGS}"
|
44 |
+
VERSION ${LIBCLAMAV_VERSION} SOVERSION ${LIBCLAMAV_SOVERSION})
|
45 |
+
target_compile_definitions(clamav_static PUBLIC clamav_staticLIB)
|
46 |
+
- if(WIN32)
|
47 |
+
- install(TARGETS clamav_static DESTINATION ${CMAKE_INSTALL_PREFIX})
|
48 |
+
- else()
|
49 |
+
- install(TARGETS clamav_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
50 |
+
- endif()
|
51 |
+
+ install(TARGETS clamav_static)
|
52 |
+
|
53 |
+
add_library( ClamAV::libclamav_static ALIAS clamav_static )
|
54 |
+
endif()
|
55 |
+
diff --git a/libclammspack/CMakeLists.txt b/libclammspack/CMakeLists.txt
|
56 |
+
index 1b5edbd4d..bba781d76 100644
|
57 |
+
--- a/libclammspack/CMakeLists.txt
|
58 |
+
+++ b/libclammspack/CMakeLists.txt
|
59 |
+
@@ -73,11 +73,7 @@ endif()
|
60 |
+
target_sources( mspack
|
61 |
+
PUBLIC
|
62 |
+
"${CMAKE_CURRENT_SOURCE_DIR}/mspack/mspack.h" )
|
63 |
+
-if(WIN32)
|
64 |
+
- install(TARGETS mspack DESTINATION ${CMAKE_INSTALL_PREFIX})
|
65 |
+
-else()
|
66 |
+
- install(TARGETS mspack DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
67 |
+
-endif()
|
68 |
+
+install(TARGETS mspack)
|
69 |
+
|
70 |
+
# Public (forwarded) dependencies.
|
71 |
+
target_link_libraries( mspack
|
72 |
+
diff --git a/libclamunrar/CMakeLists.txt b/libclamunrar/CMakeLists.txt
|
73 |
+
index 03dbc3387..267690b1c 100644
|
74 |
+
--- a/libclamunrar/CMakeLists.txt
|
75 |
+
+++ b/libclamunrar/CMakeLists.txt
|
76 |
+
@@ -90,10 +90,6 @@ target_link_libraries( clamunrar
|
77 |
+
PUBLIC
|
78 |
+
unrar_obj )
|
79 |
+
|
80 |
+
-if(WIN32)
|
81 |
+
- install(TARGETS clamunrar DESTINATION ${CMAKE_INSTALL_PREFIX})
|
82 |
+
-else()
|
83 |
+
- install(TARGETS clamunrar DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
84 |
+
-endif()
|
85 |
+
+install(TARGETS clamunrar)
|
86 |
+
|
87 |
+
add_library( ClamAV::libclamunrar ALIAS clamunrar )
|
88 |
+
diff --git a/libclamunrar_iface/CMakeLists.txt b/libclamunrar_iface/CMakeLists.txt
|
89 |
+
index 42f81544d..61f21da33 100644
|
90 |
+
--- a/libclamunrar_iface/CMakeLists.txt
|
91 |
+
+++ b/libclamunrar_iface/CMakeLists.txt
|
92 |
+
@@ -55,11 +55,7 @@ if(ENABLE_UNRAR)
|
93 |
+
PUBLIC
|
94 |
+
ClamAV::libclamunrar_iface_iface)
|
95 |
+
|
96 |
+
- if(WIN32)
|
97 |
+
- install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_PREFIX})
|
98 |
+
- else()
|
99 |
+
- install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
100 |
+
- endif()
|
101 |
+
+ install(TARGETS clamunrar_iface)
|
102 |
+
|
103 |
+
add_library( ClamAV::libclamunrar_iface ALIAS clamunrar_iface )
|
104 |
+
-endif()
|
105 |
+
|
106 |
+
+endif()
|
107 |
+
diff --git a/libfreshclam/CMakeLists.txt b/libfreshclam/CMakeLists.txt
|
108 |
+
index 6fb711818..27321ceb4 100644
|
109 |
+
--- a/libfreshclam/CMakeLists.txt
|
110 |
+
+++ b/libfreshclam/CMakeLists.txt
|
111 |
+
@@ -65,11 +65,7 @@ if(ENABLE_SHARED_LIB)
|
112 |
+
set_target_properties(freshclam PROPERTIES
|
113 |
+
COMPILE_FLAGS "${WARNCFLAGS}"
|
114 |
+
VERSION ${LIBFRESHCLAM_VERSION} SOVERSION ${LIBFRESHCLAM_SOVERSION})
|
115 |
+
- if(WIN32)
|
116 |
+
- install(TARGETS freshclam DESTINATION ${CMAKE_INSTALL_PREFIX})
|
117 |
+
- else()
|
118 |
+
- install(TARGETS freshclam DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
119 |
+
- endif()
|
120 |
+
+ install(TARGETS freshclam)
|
121 |
+
|
122 |
+
add_library( ClamAV::libfreshclam ALIAS freshclam )
|
123 |
+
endif()
|
124 |
+
@@ -88,11 +84,7 @@ if(ENABLE_STATIC_LIB)
|
125 |
+
COMPILE_FLAGS "${WARNCFLAGS}"
|
126 |
+
VERSION ${LIBFRESHCLAM_VERSION} SOVERSION ${LIBFRESHCLAM_SOVERSION})
|
127 |
+
target_compile_definitions(freshclam_static PUBLIC freshclam_staticLIB)
|
128 |
+
- if(WIN32)
|
129 |
+
- install(TARGETS freshclam_static DESTINATION ${CMAKE_INSTALL_PREFIX})
|
130 |
+
- else()
|
131 |
+
- install(TARGETS freshclam_static DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
132 |
+
- endif()
|
133 |
+
+ install(TARGETS freshclam_static)
|
134 |
+
|
135 |
+
add_library( ClamAV::libfreshclam_static ALIAS freshclam_static )
|
136 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/curl.patch
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
commit 59516af244a840aa95a8f15f978ac24ec97178cf
|
2 |
+
Author: jzaddach <[email protected]>
|
3 |
+
Date: Fri Nov 27 14:24:31 2020 +0100
|
4 |
+
|
5 |
+
Fix curl usage
|
6 |
+
|
7 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
8 |
+
index e85d03e20..9f1cd42c5 100644
|
9 |
+
--- a/CMakeLists.txt
|
10 |
+
+++ b/CMakeLists.txt
|
11 |
+
@@ -685,7 +685,7 @@ endif()
|
12 |
+
|
13 |
+
add_subdirectory( libclamav )
|
14 |
+
|
15 |
+
-if(NOT LIBCLAMAV_ONLY)
|
16 |
+
+if(NOT ENABLE_LIBCLAMAV_ONLY)
|
17 |
+
add_subdirectory( shared )
|
18 |
+
|
19 |
+
add_subdirectory( libfreshclam )
|
20 |
+
diff --git a/shared/CMakeLists.txt b/shared/CMakeLists.txt
|
21 |
+
index d9c8b6bfe..30df5a1a4 100644
|
22 |
+
--- a/shared/CMakeLists.txt
|
23 |
+
+++ b/shared/CMakeLists.txt
|
24 |
+
@@ -59,9 +59,13 @@ target_link_libraries( shared_obj
|
25 |
+
PUBLIC
|
26 |
+
ClamAV::libclamav
|
27 |
+
ZLIB::ZLIB
|
28 |
+
- CURL::libcurl
|
29 |
+
OpenSSL::SSL
|
30 |
+
OpenSSL::Crypto )
|
31 |
+
+if(CURL_FOUND)
|
32 |
+
+ target_link_libraries( shared_obj
|
33 |
+
+ PUBLIC
|
34 |
+
+ CURL::libcurl )
|
35 |
+
+endif()
|
36 |
+
if(WIN32)
|
37 |
+
target_link_libraries( shared_obj
|
38 |
+
PUBLIC
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/mspack.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/cmake/FindMSPack.cmake b/cmake/FindMSPack.cmake
|
2 |
+
index cad448f..4ce4f87 100644
|
3 |
+
--- a/cmake/FindMSPack.cmake
|
4 |
+
+++ b/cmake/FindMSPack.cmake
|
5 |
+
@@ -50,7 +50,7 @@ find_path(MSPack_INCLUDE_DIR
|
6 |
+
PATH_SUFFIXES mspack
|
7 |
+
)
|
8 |
+
find_library(MSPack_LIBRARY
|
9 |
+
- NAMES mspack
|
10 |
+
+ NAMES libmspack
|
11 |
+
PATHS ${PC_MSPack_LIBRARY_DIRS}
|
12 |
+
)
|
13 |
+
|
14 |
+
diff --git a/libclamav/CMakeLists.txt b/libclamav/CMakeLists.txt
|
15 |
+
index 136ea30..72db826 100644
|
16 |
+
--- a/libclamav/CMakeLists.txt
|
17 |
+
+++ b/libclamav/CMakeLists.txt
|
18 |
+
@@ -504,7 +504,7 @@ target_link_libraries( clamav_obj
|
19 |
+
yara
|
20 |
+
tomsfastmath
|
21 |
+
bytecode_runtime
|
22 |
+
- ClamAV::libmspack
|
23 |
+
+ ${MSPack_LIBRARIES}
|
24 |
+
ClamAV::libclamunrar_iface_iface
|
25 |
+
OpenSSL::SSL
|
26 |
+
OpenSSL::Crypto
|
27 |
+
@@ -547,7 +547,7 @@ if(ENABLE_SHARED_LIB)
|
28 |
+
yara
|
29 |
+
tomsfastmath
|
30 |
+
bytecode_runtime
|
31 |
+
- ClamAV::libmspack
|
32 |
+
+ ${MSPack_LIBRARIES}
|
33 |
+
ClamAV::libclamunrar_iface_iface
|
34 |
+
OpenSSL::SSL
|
35 |
+
OpenSSL::Crypto
|
36 |
+
@@ -588,7 +588,7 @@ if(ENABLE_STATIC_LIB)
|
37 |
+
yara
|
38 |
+
tomsfastmath
|
39 |
+
bytecode_runtime
|
40 |
+
- ClamAV::libmspack
|
41 |
+
+ ${MSPack_LIBRARIES}
|
42 |
+
ClamAV::libclamunrar_iface_iface
|
43 |
+
OpenSSL::SSL
|
44 |
+
OpenSSL::Crypto
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/portfile.cmake
ADDED
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO Cisco-Talos/clamav-devel
|
6 |
+
REF clamav-0.103.0
|
7 |
+
SHA512 e7ff4d98e0615a9fec0752bbfa2b882ae95034a8e01d0f7cc635ee520ff917c3be2a2d3273caa2fc1598e7d5ec4fd60d59b517cb439c5454d32447f8c8d7ba5a
|
8 |
+
FILE_DISAMBIGUATOR 1
|
9 |
+
HEAD_REF master
|
10 |
+
PATCHES
|
11 |
+
"build.patch"
|
12 |
+
"cmakefiles.patch"
|
13 |
+
"curl.patch"
|
14 |
+
"mspack.patch"
|
15 |
+
)
|
16 |
+
|
17 |
+
vcpkg_configure_cmake(
|
18 |
+
SOURCE_PATH ${SOURCE_PATH}
|
19 |
+
PREFER_NINJA
|
20 |
+
OPTIONS
|
21 |
+
-DENABLE_LIBCLAMAV_ONLY=ON
|
22 |
+
-DENABLE_DOCS=OFF
|
23 |
+
-DENABLE_SHARED_LIB=ON
|
24 |
+
-DENABLE_STATIC_LIB=OFF
|
25 |
+
-DENABLE_EXTERNAL_MSPACK=ON
|
26 |
+
)
|
27 |
+
|
28 |
+
vcpkg_install_cmake()
|
29 |
+
|
30 |
+
# Handle copyright
|
31 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
32 |
+
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
34 |
+
|
35 |
+
# On Linux, clamav will still build and install clamav-config
|
36 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
38 |
+
endif()
|
39 |
+
|
40 |
+
vcpkg_copy_pdbs()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clamav/vcpkg.json
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "clamav",
|
3 |
+
"version-semver": "0.103.0",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "ClamAV is an open-source anti-virus toolkit.",
|
6 |
+
"homepage": "https://www.clamav.net",
|
7 |
+
"supports": "!uwp & !static",
|
8 |
+
"dependencies": [
|
9 |
+
"bzip2",
|
10 |
+
"json-c",
|
11 |
+
"libmspack",
|
12 |
+
"libxml2",
|
13 |
+
"openssl",
|
14 |
+
"pcre2",
|
15 |
+
"pthreads",
|
16 |
+
"zlib"
|
17 |
+
]
|
18 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/FindLAPACK.cmake
ADDED
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#.rst:
|
2 |
+
# clapack config for vcpkg
|
3 |
+
# ------------
|
4 |
+
#
|
5 |
+
# Find the clapack includes and library.
|
6 |
+
#
|
7 |
+
# Result Variables
|
8 |
+
# ^^^^^^^^^^^^^^^^
|
9 |
+
#
|
10 |
+
# This script defines the following variables:
|
11 |
+
#
|
12 |
+
# ``CLAPACK_FOUND``
|
13 |
+
# True if clapack library found
|
14 |
+
#
|
15 |
+
# ``CLAPACK_VERSION``
|
16 |
+
# Containing the clapack version tag (manually defined)
|
17 |
+
#
|
18 |
+
# ``CLAPACK_INCLUDE_DIR``
|
19 |
+
# Location of clapack headers
|
20 |
+
#
|
21 |
+
# ``CLAPACK_LIBRARY``
|
22 |
+
# List of libraries to link with when using clapack
|
23 |
+
#
|
24 |
+
# Result Targets
|
25 |
+
# ^^^^^^^^^^^^^^
|
26 |
+
#
|
27 |
+
# This script defines the following targets:
|
28 |
+
#
|
29 |
+
# ``clapack::clapack``
|
30 |
+
# Target to use clapack
|
31 |
+
#
|
32 |
+
# Compatibility Variables
|
33 |
+
# ^^^^^^^^^^^^^^^^^^^^^^^
|
34 |
+
#
|
35 |
+
# This script defines the following variables for compatibility reasons:
|
36 |
+
#
|
37 |
+
# ``F2C_FOUND``
|
38 |
+
# True if f2c (fortran-to-c wrap layer) library found
|
39 |
+
#
|
40 |
+
# ``F2C_INCLUDE_DIR``
|
41 |
+
# Location of clapack headers
|
42 |
+
#
|
43 |
+
# ``F2C_LIBRARY``
|
44 |
+
# Library containing the fortran-to-c wrap layer, necessary for clapack and automatically included when used
|
45 |
+
#
|
46 |
+
# ``LAPACK_FOUND``
|
47 |
+
# True if clapack library found
|
48 |
+
#
|
49 |
+
# ``LAPACK_VERSION``
|
50 |
+
# Containing the clapack version tag (manually defined)
|
51 |
+
#
|
52 |
+
# ``LAPACK_INCLUDE_DIR``
|
53 |
+
# Location of clapack headers
|
54 |
+
#
|
55 |
+
# ``LAPACK_LIBRARY``
|
56 |
+
# List of libraries to link with when using clapack
|
57 |
+
#
|
58 |
+
# Compatibility Targets
|
59 |
+
# ^^^^^^^^^^^^^^
|
60 |
+
#
|
61 |
+
# This script defines the following targets for compatibility reasons:
|
62 |
+
#
|
63 |
+
# ``lapack``
|
64 |
+
# Target to use lapack
|
65 |
+
|
66 |
+
include(${CMAKE_ROOT}/Modules/SelectLibraryConfigurations.cmake)
|
67 |
+
include(${CMAKE_ROOT}/Modules/CheckSymbolExists.cmake)
|
68 |
+
include(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
|
69 |
+
include(${CMAKE_ROOT}/Modules/CMakeFindDependencyMacro.cmake)
|
70 |
+
|
71 |
+
set(CLAPACK_VERSION "3.2.1")
|
72 |
+
|
73 |
+
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
|
74 |
+
find_dependency(Threads)
|
75 |
+
|
76 |
+
if(UNIX)
|
77 |
+
find_library(ADDITIONAL_LAPACK_LIBRARY m)
|
78 |
+
set(PTHREAD_LINK_NAME "-pthread")
|
79 |
+
endif()
|
80 |
+
|
81 |
+
if(NOT F2C_LIBRARY)
|
82 |
+
find_library(F2C_LIBRARY_RELEASE NAMES f2c libf2c)
|
83 |
+
find_library(F2C_LIBRARY_DEBUG NAMES f2cd libf2cd)
|
84 |
+
select_library_configurations(F2C)
|
85 |
+
|
86 |
+
#keep a list of "pure" f2c libs, without dependencies
|
87 |
+
set(oF2C_LIBRARY_RELEASE ${F2C_LIBRARY_RELEASE})
|
88 |
+
set(oF2C_LIBRARY_DEBUG ${F2C_LIBRARY_DEBUG})
|
89 |
+
set(oF2C_LIBRARY ${F2C_LIBRARY})
|
90 |
+
|
91 |
+
list(APPEND F2C_LIBRARY ${ADDITIONAL_LAPACK_LIBRARY})
|
92 |
+
endif()
|
93 |
+
|
94 |
+
if(NOT LAPACK_LIBRARY)
|
95 |
+
find_library(LAPACK_LIBRARY_RELEASE NAMES lapack)
|
96 |
+
find_library(LAPACK_LIBRARY_DEBUG NAMES lapackd)
|
97 |
+
|
98 |
+
#keep a list of "pure" lapack libs, without dependencies
|
99 |
+
set(oLAPACK_LIBRARY_RELEASE ${LAPACK_LIBRARY_RELEASE})
|
100 |
+
set(oLAPACK_LIBRARY_DEBUG ${LAPACK_LIBRARY_DEBUG})
|
101 |
+
select_library_configurations(oLAPACK)
|
102 |
+
|
103 |
+
list(APPEND LAPACK_LIBRARY_RELEASE ${F2C_LIBRARY_RELEASE})
|
104 |
+
list(APPEND LAPACK_LIBRARY_DEBUG ${F2C_LIBRARY_DEBUG})
|
105 |
+
|
106 |
+
find_dependency(OpenBLAS)
|
107 |
+
get_property(_loc TARGET OpenBLAS::OpenBLAS PROPERTY IMPORTED_IMPLIB_RELEASE)
|
108 |
+
if(NOT _loc)
|
109 |
+
get_property(_loc TARGET OpenBLAS::OpenBLAS PROPERTY LOCATION_RELEASE)
|
110 |
+
endif()
|
111 |
+
set(LAPACK_BLAS_LIBRARY_RELEASE ${_loc})
|
112 |
+
get_property(_loc TARGET OpenBLAS::OpenBLAS PROPERTY IMPORTED_IMPLIB_DEBUG)
|
113 |
+
if(NOT _loc)
|
114 |
+
get_property(_loc TARGET OpenBLAS::OpenBLAS PROPERTY LOCATION_DEBUG)
|
115 |
+
endif()
|
116 |
+
set(LAPACK_BLAS_LIBRARY_DEBUG ${_loc})
|
117 |
+
select_library_configurations(LAPACK_BLAS)
|
118 |
+
list(APPEND LAPACK_LIBRARY_RELEASE ${LAPACK_BLAS_LIBRARY_RELEASE})
|
119 |
+
list(APPEND LAPACK_LIBRARY_DEBUG ${LAPACK_BLAS_LIBRARY_DEBUG})
|
120 |
+
|
121 |
+
select_library_configurations(LAPACK)
|
122 |
+
if(UNIX)
|
123 |
+
list(APPEND LAPACK_LIBRARY ${PTHREAD_LINK_NAME})
|
124 |
+
endif()
|
125 |
+
endif()
|
126 |
+
|
127 |
+
if(NOT F2C_INCLUDE_DIR)
|
128 |
+
find_path(F2C_INCLUDE_DIR NAMES f2c.h)
|
129 |
+
endif()
|
130 |
+
|
131 |
+
if(NOT LAPACK_INCLUDE_DIR)
|
132 |
+
find_path(LAPACK_INCLUDE_DIR NAMES clapack.h)
|
133 |
+
endif()
|
134 |
+
|
135 |
+
list(APPEND LAPACK_INCLUDE_DIR ${F2C_INCLUDE_DIR})
|
136 |
+
set(LAPACK_INCLUDE_DIR "${LAPACK_INCLUDE_DIR}" CACHE PATH "" FORCE)
|
137 |
+
set(LAPACK_INCLUDE_DIRS "${LAPACK_INCLUDE_DIR}" CACHE PATH "" FORCE)
|
138 |
+
set(CLAPACK_INCLUDE_DIR "${LAPACK_INCLUDE_DIR}" CACHE PATH "" FORCE)
|
139 |
+
set(CLAPACK_INCLUDE_DIRS "${LAPACK_INCLUDE_DIR}" CACHE PATH "" FORCE)
|
140 |
+
set(F2C_INCLUDE_DIRS "${F2C_INCLUDE_DIR}" CACHE PATH "" FORCE)
|
141 |
+
|
142 |
+
set(LAPACK_DLL_DIR ${LAPACK_INCLUDE_DIR})
|
143 |
+
list(TRANSFORM LAPACK_DLL_DIR APPEND "/../bin")
|
144 |
+
message(STATUS "LAPACK_DLL_DIR: ${LAPACK_DLL_DIR}")
|
145 |
+
|
146 |
+
if(WIN32)
|
147 |
+
find_file(LAPACK_LIBRARY_RELEASE_DLL NAMES lapack.dll PATHS ${LAPACK_DLL_DIR})
|
148 |
+
find_file(LAPACK_LIBRARY_DEBUG_FOLDER NAMES lapackd.dll PATHS ${LAPACK_DLL_DIR})
|
149 |
+
find_file(F2C_LIBRARY_RELEASE_DLL NAMES f2c.dll libf2c.dll PATHS ${LAPACK_DLL_DIR})
|
150 |
+
find_file(F2C_LIBRARY_DEBUG_DLL NAMES f2cd.dll libf2cd.dll PATHS ${LAPACK_DLL_DIR})
|
151 |
+
endif()
|
152 |
+
|
153 |
+
set(LAPACK_BLAS_LIBRARY "${LAPACK_BLAS_LIBRARY}" CACHE STRING "" FORCE)
|
154 |
+
set(F2C_LIBRARIES "${F2C_LIBRARY}" CACHE STRING "" FORCE)
|
155 |
+
set(LAPACK_VERSION "${CLAPACK_VERSION}" CACHE STRING "" FORCE)
|
156 |
+
set(LAPACK_LIBRARIES "${LAPACK_LIBRARY}" CACHE STRING "" FORCE)
|
157 |
+
set(CLAPACK_LIBRARY "${LAPACK_LIBRARY}" CACHE STRING "" FORCE)
|
158 |
+
set(CLAPACK_LIBRARIES "${LAPACK_LIBRARY}" CACHE STRING "" FORCE)
|
159 |
+
|
160 |
+
set(LAPACK_LIBRARY "${LAPACK_LIBRARY}" CACHE STRING "" FORCE)
|
161 |
+
set(F2C_LIBRARY "${F2C_LIBRARY}" CACHE STRING "" FORCE)
|
162 |
+
set(LAPACK_LIBRARY_RELEASE "${LAPACK_LIBRARY_RELEASE}" CACHE STRING "" FORCE)
|
163 |
+
set(LAPACK_LIBRARY_DEBUG "${LAPACK_LIBRARY_DEBUG}" CACHE STRING "" FORCE)
|
164 |
+
set(F2C_LIBRARY_RELEASE "${F2C_LIBRARY_RELEASE}" CACHE STRING "" FORCE)
|
165 |
+
set(F2C_LIBRARY_DEBUG "${F2C_LIBRARY_DEBUG}" CACHE STRING "" FORCE)
|
166 |
+
|
167 |
+
find_package_handle_standard_args(LAPACK DEFAULT_MSG LAPACK_LIBRARY LAPACK_INCLUDE_DIR)
|
168 |
+
mark_as_advanced(LAPACK_INCLUDE_DIR LAPACK_LIBRARY)
|
169 |
+
|
170 |
+
#TARGETS
|
171 |
+
if(CLAPACK_FOUND AND NOT TARGET clapack::clapack)
|
172 |
+
if(EXISTS "${LAPACK_LIBRARY_RELEASE_DLL}")
|
173 |
+
add_library(clapack::clapack SHARED IMPORTED)
|
174 |
+
set_target_properties(clapack::clapack PROPERTIES
|
175 |
+
IMPORTED_LOCATION_RELEASE "${LAPACK_LIBRARY_RELEASE_DLL}"
|
176 |
+
IMPORTED_IMPLIB_RELEASE "${oLAPACK_LIBRARY_RELEASE}"
|
177 |
+
INTERFACE_INCLUDE_DIRECTORIES "${LAPACK_INCLUDE_DIR}"
|
178 |
+
INTERFACE_LINK_LIBRARIES "$<$<NOT:$<CONFIG:DEBUG>>:${oF2C_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${oF2C_LIBRARY_DEBUG}>;$<$<NOT:$<CONFIG:DEBUG>>:${LAPACK_BLAS_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${LAPACK_BLAS_LIBRARY_DEBUG}>;$<LINK_ONLY:${ADDITIONAL_LAPACK_LIBRARY}>;$<LINK_ONLY:${PTHREAD_LINK_NAME}>"
|
179 |
+
IMPORTED_CONFIGURATIONS Release
|
180 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
181 |
+
if(EXISTS "${LAPACK_LIBRARY_DEBUG_DLL}")
|
182 |
+
set_property(TARGET clapack::clapack APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug)
|
183 |
+
set_target_properties(clapack::clapack PROPERTIES
|
184 |
+
IMPORTED_LOCATION_DEBUG "${LAPACK_LIBRARY_DEBUG_DLL}"
|
185 |
+
IMPORTED_IMPLIB_DEBUG "${oLAPACK_LIBRARY_DEBUG}")
|
186 |
+
endif()
|
187 |
+
else()
|
188 |
+
add_library(clapack::clapack UNKNOWN IMPORTED)
|
189 |
+
set_target_properties(clapack::clapack PROPERTIES
|
190 |
+
IMPORTED_LOCATION_RELEASE "${oLAPACK_LIBRARY_RELEASE}"
|
191 |
+
INTERFACE_INCLUDE_DIRECTORIES "${LAPACK_INCLUDE_DIR}"
|
192 |
+
INTERFACE_LINK_LIBRARIES "$<$<NOT:$<CONFIG:DEBUG>>:${oF2C_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${oF2C_LIBRARY_DEBUG}>;$<$<NOT:$<CONFIG:DEBUG>>:${LAPACK_BLAS_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${LAPACK_BLAS_LIBRARY_DEBUG}>;$<LINK_ONLY:${ADDITIONAL_LAPACK_LIBRARY}>;$<LINK_ONLY:${PTHREAD_LINK_NAME}>"
|
193 |
+
IMPORTED_CONFIGURATIONS Release
|
194 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
195 |
+
if(EXISTS "${LAPACK_LIBRARY_DEBUG}")
|
196 |
+
set_property(TARGET clapack::clapack APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug)
|
197 |
+
set_target_properties(clapack::clapack PROPERTIES
|
198 |
+
IMPORTED_LOCATION_DEBUG "${oLAPACK_LIBRARY_DEBUG}")
|
199 |
+
endif()
|
200 |
+
endif()
|
201 |
+
endif()
|
202 |
+
|
203 |
+
# Ensure consistency with both CMake's vanilla as well as lapack-reference's FindLAPACK.cmake module and register the LAPACK::LAPACK target
|
204 |
+
if(CLAPACK_FOUND AND NOT TARGET LAPACK::LAPACK)
|
205 |
+
if(EXISTS "${LAPACK_LIBRARY_RELEASE_DLL}")
|
206 |
+
add_library(LAPACK::LAPACK SHARED IMPORTED)
|
207 |
+
set_target_properties(LAPACK::LAPACK PROPERTIES
|
208 |
+
IMPORTED_LOCATION_RELEASE "${LAPACK_LIBRARY_RELEASE_DLL}"
|
209 |
+
IMPORTED_IMPLIB_RELEASE "${oLAPACK_LIBRARY_RELEASE}"
|
210 |
+
INTERFACE_INCLUDE_DIRECTORIES "${LAPACK_INCLUDE_DIR}"
|
211 |
+
INTERFACE_LINK_LIBRARIES "$<$<NOT:$<CONFIG:DEBUG>>:${oF2C_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${oF2C_LIBRARY_DEBUG}>;$<$<NOT:$<CONFIG:DEBUG>>:${LAPACK_BLAS_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${LAPACK_BLAS_LIBRARY_DEBUG}>;$<LINK_ONLY:${ADDITIONAL_LAPACK_LIBRARY}>;$<LINK_ONLY:${PTHREAD_LINK_NAME}>"
|
212 |
+
IMPORTED_CONFIGURATIONS Release
|
213 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
214 |
+
if(EXISTS "${LAPACK_LIBRARY_DEBUG_DLL}")
|
215 |
+
set_property(TARGET LAPACK::LAPACK APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug)
|
216 |
+
set_target_properties(LAPACK::LAPACK PROPERTIES
|
217 |
+
IMPORTED_LOCATION_DEBUG "${LAPACK_LIBRARY_DEBUG_DLL}"
|
218 |
+
IMPORTED_IMPLIB_DEBUG "${oLAPACK_LIBRARY_DEBUG}")
|
219 |
+
endif()
|
220 |
+
else()
|
221 |
+
add_library(LAPACK::LAPACK UNKNOWN IMPORTED)
|
222 |
+
set_target_properties(LAPACK::LAPACK PROPERTIES
|
223 |
+
IMPORTED_LOCATION_RELEASE "${oLAPACK_LIBRARY_RELEASE}"
|
224 |
+
INTERFACE_INCLUDE_DIRECTORIES "${LAPACK_INCLUDE_DIR}"
|
225 |
+
IMPORTED_CONFIGURATIONS Release
|
226 |
+
INTERFACE_LINK_LIBRARIES "$<$<NOT:$<CONFIG:DEBUG>>:${oF2C_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${oF2C_LIBRARY_DEBUG}>;$<$<NOT:$<CONFIG:DEBUG>>:${LAPACK_BLAS_LIBRARY_RELEASE}>;$<$<CONFIG:DEBUG>:${LAPACK_BLAS_LIBRARY_DEBUG}>;$<LINK_ONLY:${ADDITIONAL_LAPACK_LIBRARY}>;$<LINK_ONLY:${PTHREAD_LINK_NAME}>"
|
227 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES "C")
|
228 |
+
if(EXISTS "${LAPACK_LIBRARY_DEBUG}")
|
229 |
+
set_property(TARGET LAPACK::LAPACK APPEND PROPERTY IMPORTED_CONFIGURATIONS Debug)
|
230 |
+
set_target_properties(LAPACK::LAPACK PROPERTIES
|
231 |
+
IMPORTED_LOCATION_DEBUG "${oLAPACK_LIBRARY_DEBUG}")
|
232 |
+
endif()
|
233 |
+
endif()
|
234 |
+
endif()
|
235 |
+
|
236 |
+
# Preserve backwards compatibility and also register the 'lapack' target
|
237 |
+
if(CLAPACK_FOUND AND NOT TARGET lapack)
|
238 |
+
add_library(lapack ALIAS LAPACK::LAPACK)
|
239 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_linux64.h
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#define IEEE_8087
|
2 |
+
#define Arith_Kind_ASL 1
|
3 |
+
#define Long int
|
4 |
+
#define Intcast (int)(long)
|
5 |
+
#define Double_Align
|
6 |
+
#define X64_bit_pointers
|
7 |
+
#define NO_LONG_LONG
|
8 |
+
#define QNaN0 0x0
|
9 |
+
#define QNaN1 0xfff80000
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_osx.h
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Suitable for macOS on x86_64 and arm64 */
|
2 |
+
/* Not suitable for 32-bit macOS */
|
3 |
+
|
4 |
+
#define IEEE_8087
|
5 |
+
#define Arith_Kind_ASL 1
|
6 |
+
#define Long int
|
7 |
+
#define Intcast (int)(long)
|
8 |
+
#define Double_Align
|
9 |
+
#define X64_bit_pointers
|
10 |
+
#define NANCHECK
|
11 |
+
#define QNaN0 0x0
|
12 |
+
#define QNaN1 0x7ff80000
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_win32.h
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Windows 32-bit */
|
2 |
+
|
3 |
+
#define IEEE_8087
|
4 |
+
#define Arith_Kind_ASL 1
|
5 |
+
#define Double_Align
|
6 |
+
#define NANCHECK
|
7 |
+
#define QNaN0 0x0
|
8 |
+
#define QNaN1 0x7ff80000
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/arith_win64.h
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Windows 64-bit */
|
2 |
+
|
3 |
+
#define IEEE_8087
|
4 |
+
#define Arith_Kind_ASL 1
|
5 |
+
#define Double_Align
|
6 |
+
#define X64_bit_pointers
|
7 |
+
#define NANCHECK
|
8 |
+
#define QNaN0 0x0
|
9 |
+
#define QNaN1 0x7ff80000
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/fix-ConfigFile.patch
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/clapack-config.cmake.in b/clapack-config.cmake.in
|
2 |
+
index cd19f1d..49af4f0 100644
|
3 |
+
--- a/clapack-config.cmake.in
|
4 |
+
+++ b/clapack-config.cmake.in
|
5 |
+
@@ -1 +1 @@
|
6 |
+
-include("@CLAPACK_BINARY_DIR@/clapack-targets.cmake")
|
7 |
+
+include("${CMAKE_CURRENT_LIST_DIR}/clapack-targets.cmake")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/fix-install.patch
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 414ac8e..db58b4e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -19,7 +19,7 @@ include_directories(${CLAPACK_SOURCE_DIR}/INCLUDE)
|
6 |
+
add_subdirectory(F2CLIBS)
|
7 |
+
add_subdirectory(SRC)
|
8 |
+
set(CLAPACK_VERSION 3.2.1)
|
9 |
+
-export(TARGETS f2c lapack FILE ${CMAKE_INSTALL_PREFIX}/share/clapack/clapack-targets.cmake)
|
10 |
+
+install(EXPORT clapack-targets FILE clapack-targets.cmake DESTINATION share/clapack)
|
11 |
+
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config-version.cmake.in
|
12 |
+
${CMAKE_INSTALL_PREFIX}/share/clapack/clapack-config-version.cmake @ONLY)
|
13 |
+
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config.cmake.in
|
14 |
+
diff --git a/F2CLIBS/libf2c/CMakeLists.txt b/F2CLIBS/libf2c/CMakeLists.txt
|
15 |
+
index 6fa3598..c855e38 100644
|
16 |
+
--- a/F2CLIBS/libf2c/CMakeLists.txt
|
17 |
+
+++ b/F2CLIBS/libf2c/CMakeLists.txt
|
18 |
+
@@ -63,8 +63,9 @@ set_property(TARGET f2c PROPERTY PREFIX lib)
|
19 |
+
if(UNIX)
|
20 |
+
target_link_libraries(f2c m)
|
21 |
+
endif()
|
22 |
+
-install(TARGETS f2c
|
23 |
+
+install(TARGETS f2c EXPORT clapack-targets
|
24 |
+
RUNTIME DESTINATION bin
|
25 |
+
LIBRARY DESTINATION lib
|
26 |
+
- ARCHIVE DESTINATION lib)
|
27 |
+
+ ARCHIVE DESTINATION lib
|
28 |
+
+ INCLUDES DESTINATION include)
|
29 |
+
|
30 |
+
diff --git a/SRC/CMakeLists.txt b/SRC/CMakeLists.txt
|
31 |
+
index 07dc8c7..2355225 100644
|
32 |
+
--- a/SRC/CMakeLists.txt
|
33 |
+
+++ b/SRC/CMakeLists.txt
|
34 |
+
@@ -377,8 +377,9 @@ if(BUILD_COMPLEX16)
|
35 |
+
endif()
|
36 |
+
add_library(lapack ${ALLOBJ} ${ALLXOBJ})
|
37 |
+
target_link_libraries(lapack ${BLAS_LIBRARIES} f2c)
|
38 |
+
-install(TARGETS lapack
|
39 |
+
+install(TARGETS lapack EXPORT clapack-targets
|
40 |
+
RUNTIME DESTINATION bin
|
41 |
+
LIBRARY DESTINATION lib
|
42 |
+
- ARCHIVE DESTINATION lib)
|
43 |
+
+ ARCHIVE DESTINATION lib
|
44 |
+
+ INCLUDES DESTINATION include)
|
45 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/portfile.cmake
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if(EXISTS "${CURRENT_INSTALLED_DIR}/share/lapack-reference/copyright")
|
2 |
+
message(FATAL_ERROR "Can't build ${PORT} if lapack-reference is installed. Please remove lapack-reference:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
|
3 |
+
endif()
|
4 |
+
|
5 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
6 |
+
|
7 |
+
vcpkg_download_distfile(ARCHIVE
|
8 |
+
URLS "https://www.netlib.org/clapack/clapack-3.2.1-CMAKE.tgz"
|
9 |
+
FILENAME "clapack-3.2.1.tgz"
|
10 |
+
SHA512 cf19c710291ddff3f6ead7d86bdfdeaebca21291d9df094bf0a8ef599546b007757fb2dbb19b56511bb53ef7456eac0c73973b9627bf4d02982c856124428b49
|
11 |
+
)
|
12 |
+
|
13 |
+
vcpkg_extract_source_archive_ex(
|
14 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
15 |
+
ARCHIVE ${ARCHIVE}
|
16 |
+
PATCHES
|
17 |
+
remove_internal_blas.patch
|
18 |
+
fix-ConfigFile.patch
|
19 |
+
fix-install.patch
|
20 |
+
support-uwp.patch
|
21 |
+
)
|
22 |
+
|
23 |
+
set(ARITH_PATH)
|
24 |
+
if(DEFINED CLAPACK_ARITH_PATH)
|
25 |
+
set(ARITH_PATH "-DARITH_PATH=${CLAPACK_ARITH_PATH}")
|
26 |
+
elseif(NOT TARGET_TRIPLET STREQUAL HOST_TRIPLET)
|
27 |
+
if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
|
28 |
+
if(VCPKG_TARGET_ARCHITECTURE MATCHES "^x64$|^arm64$")
|
29 |
+
set(ARITH_PATH "-DARITH_PATH=${CMAKE_CURRENT_LIST_DIR}/arith_win64.h")
|
30 |
+
else()
|
31 |
+
set(ARITH_PATH "-DARITH_PATH=${CMAKE_CURRENT_LIST_DIR}/arith_win32.h")
|
32 |
+
endif()
|
33 |
+
elseif(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_IOS)
|
34 |
+
set(ARITH_PATH "-DARITH_PATH=${CMAKE_CURRENT_LIST_DIR}/arith_osx.h")
|
35 |
+
elseif(VCPKG_TARGET_IS_LINUX AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
36 |
+
set(ARITH_PATH "-DARITH_PATH=${CMAKE_CURRENT_LIST_DIR}/arith_linux64.h")
|
37 |
+
else()
|
38 |
+
message(WARNING
|
39 |
+
"Unable to cross-compile clapack for ${VCPKG_TARGET_ARCHITECTURE}-${VCPKG_CMAKE_SYSTEM_NAME}.
|
40 |
+
No arith.h is available and arithchk must be executed for the target.
|
41 |
+
To fix this issue, define CLAPACK_ARITH_PATH in your triplet to the location of a pre-generated arith.h file.
|
42 |
+
|
43 |
+
Continuing with trying to run arithchk anyway.")
|
44 |
+
endif()
|
45 |
+
endif()
|
46 |
+
|
47 |
+
vcpkg_configure_cmake(
|
48 |
+
SOURCE_PATH ${SOURCE_PATH}
|
49 |
+
PREFER_NINJA
|
50 |
+
OPTIONS
|
51 |
+
-DCMAKE_DEBUG_POSTFIX=d
|
52 |
+
${ARITH_PATH}
|
53 |
+
)
|
54 |
+
|
55 |
+
vcpkg_install_cmake()
|
56 |
+
vcpkg_copy_pdbs()
|
57 |
+
|
58 |
+
#TODO: fix the official exported targets, since they are broken (luckily it seems that no-one uses them for now)
|
59 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/clapack)
|
60 |
+
|
61 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
62 |
+
|
63 |
+
# Install clapack wrappers.
|
64 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/lapack)
|
65 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/FindLAPACK.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/lapack)
|
66 |
+
# Handle copyright
|
67 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/remove_internal_blas.patch
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 320ccc6..414ac8e 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -1,7 +1,6 @@
|
6 |
+
cmake_minimum_required(VERSION 2.6)
|
7 |
+
project(CLAPACK C)
|
8 |
+
-enable_testing()
|
9 |
+
-include(CTest)
|
10 |
+
+find_package(BLAS REQUIRED)
|
11 |
+
|
12 |
+
if(WIN32 AND NOT CYGWIN)
|
13 |
+
set(SECOND_SRC ${CLAPACK_SOURCE_DIR}/INSTALL/winsecond.c)
|
14 |
+
@@ -11,7 +10,6 @@ else()
|
15 |
+
set(SECOND_SRC ${CLAPACK_SOURCE_DIR}/INSTALL/second.c)
|
16 |
+
set(DSECOND_SRC ${CLAPACK_SOURCE_DIR}/INSTALL/dsecnd.c)
|
17 |
+
endif()
|
18 |
+
-enable_testing()
|
19 |
+
option(USE_BLAS_WRAP "pre-pend f2c_ to each function in blas" OFF)
|
20 |
+
if(NOT USE_BLAS_WRAP)
|
21 |
+
# _zrotg_ seems to be missing in the wrap header
|
22 |
+
@@ -19,16 +17,15 @@ if(NOT USE_BLAS_WRAP)
|
23 |
+
endif()
|
24 |
+
include_directories(${CLAPACK_SOURCE_DIR}/INCLUDE)
|
25 |
+
add_subdirectory(F2CLIBS)
|
26 |
+
-add_subdirectory(BLAS)
|
27 |
+
add_subdirectory(SRC)
|
28 |
+
-add_subdirectory(TESTING)
|
29 |
+
set(CLAPACK_VERSION 3.2.1)
|
30 |
+
-set(CPACK_PACKAGE_VERSION_MAJOR 3)
|
31 |
+
-set(CPACK_PACKAGE_VERSION_MINOR 2)
|
32 |
+
-set(CPACK_PACKAGE_VERSION_PATCH 1)
|
33 |
+
-include(CPack)
|
34 |
+
-export(TARGETS f2c blas lapack FILE clapack-targets.cmake)
|
35 |
+
+export(TARGETS f2c lapack FILE ${CMAKE_INSTALL_PREFIX}/share/clapack/clapack-targets.cmake)
|
36 |
+
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config-version.cmake.in
|
37 |
+
- ${CLAPACK_BINARY_DIR}/clapack-config-version.cmake @ONLY)
|
38 |
+
+ ${CMAKE_INSTALL_PREFIX}/share/clapack/clapack-config-version.cmake @ONLY)
|
39 |
+
configure_file(${CLAPACK_SOURCE_DIR}/clapack-config.cmake.in
|
40 |
+
- ${CLAPACK_BINARY_DIR}/clapack-config.cmake @ONLY)
|
41 |
+
+ ${CMAKE_INSTALL_PREFIX}/share/clapack/clapack-config.cmake @ONLY)
|
42 |
+
+install(FILES
|
43 |
+
+ ${CMAKE_CURRENT_LIST_DIR}/INCLUDE/clapack.h
|
44 |
+
+ ${CMAKE_CURRENT_LIST_DIR}/INCLUDE/f2c.h
|
45 |
+
+ DESTINATION include)
|
46 |
+
+
|
47 |
+
diff --git a/F2CLIBS/libf2c/CMakeLists.txt b/F2CLIBS/libf2c/CMakeLists.txt
|
48 |
+
index 43d7b3f..6fa3598 100644
|
49 |
+
--- a/F2CLIBS/libf2c/CMakeLists.txt
|
50 |
+
+++ b/F2CLIBS/libf2c/CMakeLists.txt
|
51 |
+
@@ -60,3 +60,11 @@ include_directories(${CLAPACK_SOURCE_DIR}/F2CLIBS/libf2c)
|
52 |
+
include_directories(${CLAPACK_BINARY_DIR}/F2CLIBS/libf2c)
|
53 |
+
add_library(f2c ${OFILES} ${CMAKE_CURRENT_BINARY_DIR}/arith.h)
|
54 |
+
set_property(TARGET f2c PROPERTY PREFIX lib)
|
55 |
+
+if(UNIX)
|
56 |
+
+ target_link_libraries(f2c m)
|
57 |
+
+endif()
|
58 |
+
+install(TARGETS f2c
|
59 |
+
+ RUNTIME DESTINATION bin
|
60 |
+
+ LIBRARY DESTINATION lib
|
61 |
+
+ ARCHIVE DESTINATION lib)
|
62 |
+
+
|
63 |
+
diff --git a/SRC/CMakeLists.txt b/SRC/CMakeLists.txt
|
64 |
+
index ac4cce3..07dc8c7 100644
|
65 |
+
--- a/SRC/CMakeLists.txt
|
66 |
+
+++ b/SRC/CMakeLists.txt
|
67 |
+
@@ -376,5 +376,9 @@ if(BUILD_COMPLEX16)
|
68 |
+
set(ALLOBJ ${ZLASRC} ${ALLAUX} ${DZLAUX})
|
69 |
+
endif()
|
70 |
+
add_library(lapack ${ALLOBJ} ${ALLXOBJ})
|
71 |
+
-target_link_libraries(lapack blas)
|
72 |
+
+target_link_libraries(lapack ${BLAS_LIBRARIES} f2c)
|
73 |
+
+install(TARGETS lapack
|
74 |
+
+ RUNTIME DESTINATION bin
|
75 |
+
+ LIBRARY DESTINATION lib
|
76 |
+
+ ARCHIVE DESTINATION lib)
|
77 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/support-uwp.patch
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index db58b4e..0fb61a0 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -15,6 +15,9 @@ if(NOT USE_BLAS_WRAP)
|
6 |
+
# _zrotg_ seems to be missing in the wrap header
|
7 |
+
add_definitions(-DNO_BLAS_WRAP)
|
8 |
+
endif()
|
9 |
+
+if (MSVC)
|
10 |
+
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE)
|
11 |
+
+endif()
|
12 |
+
include_directories(${CLAPACK_SOURCE_DIR}/INCLUDE)
|
13 |
+
add_subdirectory(F2CLIBS)
|
14 |
+
add_subdirectory(SRC)
|
15 |
+
diff --git a/F2CLIBS/libf2c/CMakeLists.txt b/F2CLIBS/libf2c/CMakeLists.txt
|
16 |
+
index 094614a..e5b40ab 100644
|
17 |
+
--- a/F2CLIBS/libf2c/CMakeLists.txt
|
18 |
+
+++ b/F2CLIBS/libf2c/CMakeLists.txt
|
19 |
+
@@ -44,12 +44,19 @@ if(UNIX)
|
20 |
+
endif()
|
21 |
+
set_target_properties(arithchk PROPERTIES COMPILE_DEFINITIONS
|
22 |
+
"NO_FPINIT;NO_LONG_LONG")
|
23 |
+
+
|
24 |
+
+if (ARITH_PATH)
|
25 |
+
+configure_file(
|
26 |
+
+ "${ARITH_PATH}"
|
27 |
+
+ "${CMAKE_CURRENT_BINARY_DIR}/arith.h"
|
28 |
+
+ COPYONLY)
|
29 |
+
+else()
|
30 |
+
ADD_CUSTOM_COMMAND(
|
31 |
+
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/arith.h
|
32 |
+
COMMAND arithchk > ${CMAKE_CURRENT_BINARY_DIR}/arith.h
|
33 |
+
DEPENDS arithchk
|
34 |
+
)
|
35 |
+
-
|
36 |
+
+endif()
|
37 |
+
|
38 |
+
set(OFILES ${MISC} ${POW} ${CX} ${DCX} ${REAL} ${DBL} ${INT}
|
39 |
+
${HALF} ${CMP} ${EFL} ${CHAR} ${I77} ${TIME})
|
40 |
+
diff --git a/F2CLIBS/libf2c/inquire.c b/F2CLIBS/libf2c/inquire.c
|
41 |
+
index 5936a67..4846d41 100644
|
42 |
+
--- a/F2CLIBS/libf2c/inquire.c
|
43 |
+
+++ b/F2CLIBS/libf2c/inquire.c
|
44 |
+
@@ -32,7 +32,7 @@ integer f_inqu(inlist *a)
|
45 |
+
{ byfile=1;
|
46 |
+
g_char(a->infile,a->infilen,buf);
|
47 |
+
#ifdef NON_UNIX_STDIO
|
48 |
+
- x = access(buf,0) ? -1 : 0;
|
49 |
+
+ x = _access(buf,0) ? -1 : 0;
|
50 |
+
for(i=0,p=NULL;i<MXUNIT;i++)
|
51 |
+
if(f__units[i].ufd != NULL
|
52 |
+
&& f__units[i].ufnm != NULL
|
53 |
+
diff --git a/F2CLIBS/libf2c/open.c b/F2CLIBS/libf2c/open.c
|
54 |
+
index a06428d..9d08cf7 100644
|
55 |
+
--- a/F2CLIBS/libf2c/open.c
|
56 |
+
+++ b/F2CLIBS/libf2c/open.c
|
57 |
+
@@ -48,7 +48,7 @@ f__bufadj(int n, int c)
|
58 |
+
#endif
|
59 |
+
{
|
60 |
+
unsigned int len;
|
61 |
+
- char *nbuf, *s, *t, *te;
|
62 |
+
+ char *nbuf = NULL, *s = NULL, *t = NULL, *te = NULL;
|
63 |
+
|
64 |
+
if (f__buf == f__buf0)
|
65 |
+
f__buflen = 1024;
|
66 |
+
diff --git a/F2CLIBS/libf2c/rsne.c b/F2CLIBS/libf2c/rsne.c
|
67 |
+
index e8e9dae..4d65436 100644
|
68 |
+
--- a/F2CLIBS/libf2c/rsne.c
|
69 |
+
+++ b/F2CLIBS/libf2c/rsne.c
|
70 |
+
@@ -103,7 +103,7 @@ mk_hashtab(Namelist *nl)
|
71 |
+
Vardesc *v, **vd, **vde;
|
72 |
+
hashentry *he;
|
73 |
+
|
74 |
+
- hashtab **x, **x0, *y;
|
75 |
+
+ hashtab **x = NULL, **x0 = NULL, *y = NULL;
|
76 |
+
for(x = &nl_cache; y = *x; x0 = x, x = &y->next)
|
77 |
+
if (nl == y->nl)
|
78 |
+
return y;
|
79 |
+
@@ -308,7 +308,7 @@ x_rsne(cilist *a)
|
80 |
+
char buf[64];
|
81 |
+
hashtab *ht;
|
82 |
+
Vardesc *v;
|
83 |
+
- dimen *dn, *dn0, *dn1;
|
84 |
+
+ dimen *dn = NULL, *dn0 = NULL, *dn1;
|
85 |
+
ftnlen *dims, *dims1;
|
86 |
+
ftnlen b, b0, b1, ex, no, nomax, size, span;
|
87 |
+
ftnint no1, no2, type;
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/clapack/vcpkg-cmake-wrapper.cmake
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
message(STATUS "Using VCPKG FindLAPACK from package 'clapack'")
|
2 |
+
set(LAPACK_PREV_MODULE_PATH ${CMAKE_MODULE_PATH})
|
3 |
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
4 |
+
|
5 |
+
list(REMOVE_ITEM ARGS "NO_MODULE")
|
6 |
+
list(REMOVE_ITEM ARGS "CONFIG")
|
7 |
+
list(REMOVE_ITEM ARGS "MODULE")
|
8 |
+
|
9 |
+
_find_package(${ARGS})
|
10 |
+
|
11 |
+
set(CMAKE_MODULE_PATH ${LAPACK_PREV_MODULE_PATH})
|