Spaces:
Sleeping
Sleeping
ee6b339a9c6c7bb58f93698d13b39534ce1416a63eda23e04dacd3f22dd4d371
Browse files- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/portfile.cmake +42 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/vcpkg.json +11 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/0001-nethost-cmakelists.patch +58 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/0002-settings-cmake.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/portfile.cmake +66 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/usage +6 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/compile.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/fix-InstallLibPath.patch +36 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/flags.patch +13 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/hogweed-x64.def +288 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/hogweed-x86.def +281 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/libname-windows.patch +67 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/nettle-x64.def +509 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/nettle-x86.def +496 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/portfile.cmake +116 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/remove_gmpd.patch +44 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/vcpkg.json +22 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/yasm.patch +96 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/networkdirect-sdk/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/networkdirect-sdk/vcpkg.json +8 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nghttp2/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nghttp2/vcpkg.json +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/Fix-C2065.patch +170 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/portfile.cmake +92 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/remove-64-in-codemodel-name.patch +131 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/remove-post-build.patch +230 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/use-winbison-sharedspice.patch +19 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/use-winbison-vngspice.patch +50 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifly/portfile.cmake +23 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifly/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifticlib/portfile.cmake +48 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifticlib/vcpkg.json +35 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifticlib/zlib_include.patch +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-fifo-map/CMakeLists.txt +30 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-fifo-map/portfile.cmake +27 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-fifo-map/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-json/portfile.cmake +45 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-json/usage +12 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-json/vcpkg.json +17 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlopt/portfile.cmake +31 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlopt/vcpkg.json +7 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/fix-msvc-prj.patch +0 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/fix-snprintf.patch +39 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/fix-ssize_t.patch +16 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/portfile.cmake +120 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/usage +5 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/vcpkg.json +25 -0
- third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmslib/portfile.cmake +39 -0
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/portfile.cmake
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" HDF5_USE_STATIC_LIBRARIES)
|
2 |
+
|
3 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
4 |
+
|
5 |
+
vcpkg_from_github(
|
6 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
7 |
+
REPO Unidata/netcdf-cxx4
|
8 |
+
REF f8882188267488ef801691e69ad072e3eb217ad8 # v4.3.1
|
9 |
+
SHA512 9816acf221d196e21af19d4c3d85484934916e7c018e9b2c96aab9f5660b2f08c5db9cd8254ba3fa5f0aa5f5c5ad7bd3a3aaba559e5e640c5349d44e07a20ed3
|
10 |
+
HEAD_REF master
|
11 |
+
PATCHES
|
12 |
+
fix-dependecy-hdf5.patch
|
13 |
+
export-cmake-targets.patch
|
14 |
+
)
|
15 |
+
|
16 |
+
#Provided by upstream https://github.com/Unidata/netcdf-cxx4/blob/master/netCDFCxxConfig.cmake.in
|
17 |
+
file(COPY ${CMAKE_CURRENT_LIST_DIR}/netCDFCxxConfig.cmake.in DESTINATION ${SOURCE_PATH})
|
18 |
+
|
19 |
+
vcpkg_configure_cmake(
|
20 |
+
SOURCE_PATH ${SOURCE_PATH}
|
21 |
+
PREFER_NINJA
|
22 |
+
OPTIONS
|
23 |
+
-DNCXX_ENABLE_TESTS=OFF
|
24 |
+
-DCMAKE_INSTALL_CMAKECONFIGDIR=share/netCDFCxx
|
25 |
+
-DHDF5_USE_STATIC_LIBRARIES=${HDF5_USE_STATIC_LIBRARIES}
|
26 |
+
# OPTIONS_RELEASE -DOPTIMIZE=1
|
27 |
+
# OPTIONS_DEBUG -DDEBUGGABLE=1
|
28 |
+
)
|
29 |
+
|
30 |
+
vcpkg_install_cmake()
|
31 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/netCDFCxx TARGET_PATH share/netCDFCxx)
|
32 |
+
vcpkg_copy_pdbs()
|
33 |
+
|
34 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
35 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
36 |
+
|
37 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
38 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
39 |
+
endif()
|
40 |
+
|
41 |
+
# Handle copyright
|
42 |
+
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/netcdf-cxx4/vcpkg.json
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "netcdf-cxx4",
|
3 |
+
"version-string": "4.3.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "a set of machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.",
|
6 |
+
"homepage": "https://github.com/Unidata/netcdf-cxx4",
|
7 |
+
"dependencies": [
|
8 |
+
"hdf5",
|
9 |
+
"netcdf-c"
|
10 |
+
]
|
11 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/0001-nethost-cmakelists.patch
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/installer/corehost/cli/common.cmake b/src/installer/corehost/cli/common.cmake
|
2 |
+
index 63e7306..639c90e 100644
|
3 |
+
--- a/src/installer/corehost/cli/common.cmake
|
4 |
+
+++ b/src/installer/corehost/cli/common.cmake
|
5 |
+
@@ -5,9 +5,6 @@
|
6 |
+
project(${DOTNET_PROJECT_NAME})
|
7 |
+
|
8 |
+
if(WIN32)
|
9 |
+
- add_compile_options($<$<CONFIG:RelWithDebInfo>:/MT>)
|
10 |
+
- add_compile_options($<$<CONFIG:Release>:/MT>)
|
11 |
+
- add_compile_options($<$<CONFIG:Debug>:/MTd>)
|
12 |
+
else()
|
13 |
+
add_compile_options(-fvisibility=hidden)
|
14 |
+
endif()
|
15 |
+
diff --git a/src/installer/corehost/cli/nethost/CMakeLists.txt b/src/installer/corehost/cli/nethost/CMakeLists.txt
|
16 |
+
index 7473958..49c664f 100644
|
17 |
+
--- a/src/installer/corehost/cli/nethost/CMakeLists.txt
|
18 |
+
+++ b/src/installer/corehost/cli/nethost/CMakeLists.txt
|
19 |
+
@@ -2,12 +2,14 @@
|
20 |
+
# The .NET Foundation licenses this file to you under the MIT license.
|
21 |
+
# See the LICENSE file in the project root for more information.
|
22 |
+
|
23 |
+
-cmake_minimum_required (VERSION 2.6)
|
24 |
+
+cmake_minimum_required (VERSION 3.14)
|
25 |
+
project(nethost)
|
26 |
+
|
27 |
+
set(DOTNET_PROJECT_NAME "nethost")
|
28 |
+
|
29 |
+
# Include directories
|
30 |
+
+include(../../../settings.cmake)
|
31 |
+
+include(../../../functions.cmake)
|
32 |
+
include_directories(../fxr)
|
33 |
+
|
34 |
+
# CMake does not recommend using globbing since it messes with the freshness checks
|
35 |
+
@@ -22,13 +24,18 @@ if(WIN32)
|
36 |
+
Exports.def)
|
37 |
+
endif()
|
38 |
+
|
39 |
+
+if(BUILD_SHARED_LIBS)
|
40 |
+
include(../lib.cmake)
|
41 |
+
+else()
|
42 |
+
include(../lib_static.cmake)
|
43 |
+
+endif()
|
44 |
+
|
45 |
+
add_definitions(-DFEATURE_LIBHOST=1)
|
46 |
+
add_definitions(-DNETHOST_EXPORT)
|
47 |
+
|
48 |
+
-install(FILES nethost.h DESTINATION corehost)
|
49 |
+
-install(TARGETS nethost DESTINATION corehost)
|
50 |
+
-install(TARGETS libnethost DESTINATION corehost)
|
51 |
+
-install_symbols(nethost corehost)
|
52 |
+
|
53 |
+
+install(FILES nethost.h ../coreclr_delegates.h ../hostfxr.h DESTINATION include)
|
54 |
+
+if(BUILD_SHARED_LIBS)
|
55 |
+
+install(TARGETS nethost)
|
56 |
+
+else()
|
57 |
+
+install(TARGETS libnethost)
|
58 |
+
+endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/0002-settings-cmake.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/src/installer/settings.cmake b/src/installer/settings.cmake
|
2 |
+
index 29d57b44..6ea63902 100644
|
3 |
+
--- a/src/installer/settings.cmake
|
4 |
+
+++ b/src/installer/settings.cmake
|
5 |
+
@@ -114,7 +114,7 @@ endfunction()
|
6 |
+
|
7 |
+
function(install_symbols targetName destination_path)
|
8 |
+
if(WIN32)
|
9 |
+
- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/${targetName}.pdb DESTINATION ${destination_path})
|
10 |
+
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${targetName}.pdb DESTINATION ${destination_path})
|
11 |
+
else()
|
12 |
+
strip_symbols(${targetName} strip_destination_file)
|
13 |
+
install(FILES ${strip_destination_file} DESTINATION ${destination_path})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/portfile.cmake
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
set(COMMIT_HASH 188427d7e18102c45fc6d0e20c135e226f215992)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO dotnet/runtime
|
6 |
+
REF ${COMMIT_HASH}
|
7 |
+
SHA512 5a93c66c87e2113f733702d938efd39456c99fb74b383097b8d877df21536fcbcba901606aa70db6c8f1a16421ea8f06822c5b0ab1d882631b6daecbed8d03cc
|
8 |
+
HEAD_REF master
|
9 |
+
PATCHES
|
10 |
+
0001-nethost-cmakelists.patch
|
11 |
+
0002-settings-cmake.patch
|
12 |
+
)
|
13 |
+
|
14 |
+
set(PRODUCT_VERSION "5.0.0")
|
15 |
+
|
16 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
17 |
+
set(RID_PLAT "win")
|
18 |
+
elseif(VCPKG_TARGET_IS_OSX)
|
19 |
+
set(RID_PLAT "osx")
|
20 |
+
elseif(VCPKG_TARGET_IS_LINUX)
|
21 |
+
set(RID_PLAT "linux")
|
22 |
+
else()
|
23 |
+
message(FATAL_ERROR "Unsupported platform")
|
24 |
+
endif()
|
25 |
+
|
26 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
27 |
+
set(RID_ARCH "x86")
|
28 |
+
set(ARCH_NAME "I386")
|
29 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
30 |
+
set(RID_ARCH "x64")
|
31 |
+
set(ARCH_NAME "AMD64")
|
32 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
|
33 |
+
set(RID_ARCH "arm")
|
34 |
+
set(ARCH_NAME "ARM")
|
35 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
36 |
+
set(RID_ARCH "arm64")
|
37 |
+
set(ARCH_NAME "ARM64")
|
38 |
+
else()
|
39 |
+
message(FATAL_ERROR "Unsupported architecture")
|
40 |
+
endif()
|
41 |
+
|
42 |
+
set(BASE_RID "${RID_PLAT}-${RID_ARCH}")
|
43 |
+
|
44 |
+
vcpkg_configure_cmake(
|
45 |
+
SOURCE_PATH ${SOURCE_PATH}/src/installer/corehost/cli/nethost
|
46 |
+
PREFER_NINJA
|
47 |
+
OPTIONS
|
48 |
+
"-DSKIP_VERSIONING=1"
|
49 |
+
"-DCLI_CMAKE_HOST_POLICY_VER:STRING=${PRODUCT_VERSION}"
|
50 |
+
"-DCLI_CMAKE_HOST_FXR_VER:STRING=${PRODUCT_VERSION}"
|
51 |
+
"-DCLI_CMAKE_HOST_VER:STRING=${PRODUCT_VERSION}"
|
52 |
+
"-DCLI_CMAKE_COMMON_HOST_VER:STRING=${PRODUCT_VERSION}"
|
53 |
+
"-DCLI_CMAKE_PKG_RID:STRING=${BASE_RID}"
|
54 |
+
"-DCLI_CMAKE_COMMIT_HASH:STRING=${COMMIT_HASH}"
|
55 |
+
"-DCLI_CMAKE_PLATFORM_ARCH_${ARCH_NAME}=1"
|
56 |
+
"-DCMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION=10.0"
|
57 |
+
)
|
58 |
+
|
59 |
+
vcpkg_install_cmake()
|
60 |
+
|
61 |
+
vcpkg_copy_pdbs()
|
62 |
+
|
63 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
64 |
+
|
65 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.TXT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
66 |
+
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/usage
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package nethost can be used via CMake:
|
2 |
+
|
3 |
+
find_path(NETHOST_INCLUDE_DIRS nethost.h)
|
4 |
+
find_library(NETHOST_LIBRARY NAMES libnethost nethost)
|
5 |
+
target_include_directories(main PRIVATE ${NETHOST_INCLUDE_DIRS})
|
6 |
+
target_link_libraries(main PRIVATE ${NETHOST_LIBRARY})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nethost/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nethost",
|
3 |
+
"version-date": "2019-12-21",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Provides a set of APIs that can be used to host .NET Core (dotnet)",
|
6 |
+
"homepage": "https://github.com/dotnet/runtime/tree/master/src/installer/corehost/cli/nethost",
|
7 |
+
"supports": "!uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/compile.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/examples/Makefile.in b/examples/Makefile.in
|
2 |
+
index eb6a81790..1d927079c 100644
|
3 |
+
--- a/examples/Makefile.in
|
4 |
+
+++ b/examples/Makefile.in
|
5 |
+
@@ -11,7 +11,7 @@ PRE_CPPFLAGS = -I.. -I$(top_srcdir)
|
6 |
+
PRE_LDFLAGS = -L..
|
7 |
+
|
8 |
+
OPENSSL_LIBFLAGS = @OPENSSL_LIBFLAGS@
|
9 |
+
-BENCH_LIBS = @BENCH_LIBS@ -lm
|
10 |
+
+BENCH_LIBS = @BENCH_LIBS@
|
11 |
+
|
12 |
+
HOGWEED_TARGETS = rsa-keygen$(EXEEXT) rsa-sign$(EXEEXT) \
|
13 |
+
rsa-verify$(EXEEXT) rsa-encrypt$(EXEEXT) rsa-decrypt$(EXEEXT) \
|
14 |
+
diff --git a/streebog.c b/streebog.c
|
15 |
+
index 7ad619d5e..85609a473 100644
|
16 |
+
--- a/streebog.c
|
17 |
+
+++ b/streebog.c
|
18 |
+
@@ -1233,7 +1233,7 @@ streebog512_compress (struct streebog512_ctx *ctx, const uint8_t *input, uint64_
|
19 |
+
static void
|
20 |
+
streebog_final (struct streebog512_ctx *ctx)
|
21 |
+
{
|
22 |
+
- uint64_t Z[8] = {};
|
23 |
+
+ uint64_t Z[8] = {0,0,0,0,0,0,0,0};
|
24 |
+
unsigned int i;
|
25 |
+
|
26 |
+
/* PAD. It does not count towards message length */
|
27 |
+
diff --git a/Makefile.in b/Makefile.in
|
28 |
+
index b65ff4960..3887d0c8f 100644
|
29 |
+
--- a/Makefile.in
|
30 |
+
+++ b/Makefile.in
|
31 |
+
@@ -322,7 +322,7 @@ $(LIBHOGWEED_FORLINK): $(hogweed_OBJS) $(LIBNETTLE_FORLINK)
|
32 |
+
|
33 |
+
# For building the various *data.c programs. -lm needed for shadata.
|
34 |
+
%$(EXEEXT_FOR_BUILD): %.c
|
35 |
+
- $(CC_FOR_BUILD) $< $(CFLAGS) -lm -o $@
|
36 |
+
+ $(CC_FOR_BUILD) $< $(CFLAGS) -o $@
|
37 |
+
|
38 |
+
# Explicit dependency.
|
39 |
+
eccdata$(EXEEXT_FOR_BUILD): mini-gmp.c mini-gmp.h
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/fix-InstallLibPath.patch
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/configure.ac b/configure.ac
|
2 |
+
index 90ea1ea..58cfe88 100644
|
3 |
+
--- a/configure.ac
|
4 |
+
+++ b/configure.ac
|
5 |
+
@@ -354,25 +354,25 @@ if test "x$ABI" != xstandard ; then
|
6 |
+
else
|
7 |
+
# The dash builtin pwd tries to be "helpful" and remember
|
8 |
+
# symlink names. Use -P option, and hope it's portable enough.
|
9 |
+
- test -d /usr/lib${ABI} \
|
10 |
+
- && (cd /usr/lib${ABI} && pwd -P | grep >/dev/null "/lib${ABI}"'$') \
|
11 |
+
- && libdir='${exec_prefix}/'"lib${ABI}"
|
12 |
+
+ test -d /usr/lib \
|
13 |
+
+ && (cd /usr/lib && pwd -P | grep >/dev/null "/lib"'$') \
|
14 |
+
+ && libdir='${exec_prefix}/'"lib"
|
15 |
+
fi
|
16 |
+
;;
|
17 |
+
# On freebsd, it seems 32-bit libraries are in lib32,
|
18 |
+
# and 64-bit in lib. Don't know about "kfreebsd", does
|
19 |
+
# it follow the Linux fhs conventions?
|
20 |
+
*:freebsd*:32)
|
21 |
+
- libdir='${exec_prefix}/lib32'
|
22 |
+
+ libdir='${exec_prefix}/lib'
|
23 |
+
;;
|
24 |
+
*:freebsd*:64)
|
25 |
+
libdir='${exec_prefix}/lib'
|
26 |
+
;;
|
27 |
+
*:irix*:32)
|
28 |
+
- libdir='${exec_prefix}/lib32'
|
29 |
+
+ libdir='${exec_prefix}/lib'
|
30 |
+
;;
|
31 |
+
*:irix*:64)
|
32 |
+
- libdir='${exec_prefix}/lib64'
|
33 |
+
+ libdir='${exec_prefix}/lib'
|
34 |
+
;;
|
35 |
+
*)
|
36 |
+
AC_MSG_WARN([Don't know where to install $ABI-bit libraries on this system.]); dnl '
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/flags.patch
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Makefile.in b/Makefile.in
|
2 |
+
index e5ccfc7..922aa0c 100644
|
3 |
+
--- a/Makefile.in
|
4 |
+
+++ b/Makefile.in
|
5 |
+
@@ -309,7 +309,7 @@ $(LIBHOGWEED_FORLINK): $(hogweed_OBJS) $(LIBNETTLE_FORLINK)
|
6 |
+
|
7 |
+
# For building the various *data.c programs. -lm needed for shadata.
|
8 |
+
%$(EXEEXT_FOR_BUILD): %.c
|
9 |
+
- $(CC_FOR_BUILD) $< -lm -o $@
|
10 |
+
+ $(CC_FOR_BUILD) $< $(CFLAGS) -lm -o $@
|
11 |
+
|
12 |
+
# Explicit dependency.
|
13 |
+
eccdata$(EXEEXT_FOR_BUILD): mini-gmp.c mini-gmp.h
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/hogweed-x64.def
ADDED
@@ -0,0 +1,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
_nettle_ecc_curve448_modp
|
3 |
+
_nettle_ecc_curve25519_modp
|
4 |
+
_nettle_ecc_secp521r1_modp
|
5 |
+
_nettle_ecc_secp384r1_modp
|
6 |
+
_nettle_ecc_secp256r1_redc
|
7 |
+
_nettle_ecc_secp224r1_modp
|
8 |
+
_nettle_ecc_secp192r1_modp
|
9 |
+
nettle_ed448_shake256_verify
|
10 |
+
nettle_ed448_shake256_sign
|
11 |
+
nettle_ed448_shake256_public_key
|
12 |
+
_nettle_ed448_shake256
|
13 |
+
nettle_ed25519_sha512_verify
|
14 |
+
nettle_ed25519_sha512_sign
|
15 |
+
nettle_ed25519_sha512_public_key
|
16 |
+
_nettle_ed25519_sha512
|
17 |
+
_nettle_eddsa_verify
|
18 |
+
_nettle_eddsa_verify_itch
|
19 |
+
_nettle_eddsa_sign
|
20 |
+
_nettle_eddsa_sign_itch
|
21 |
+
_nettle_eddsa_public_key
|
22 |
+
_nettle_eddsa_public_key_itch
|
23 |
+
_nettle_eddsa_hash
|
24 |
+
_nettle_eddsa_expand_key
|
25 |
+
_nettle_eddsa_decompress
|
26 |
+
_nettle_eddsa_decompress_itch
|
27 |
+
_nettle_eddsa_compress
|
28 |
+
_nettle_eddsa_compress_itch
|
29 |
+
_nettle_curve448_eh_to_x
|
30 |
+
nettle_curve448_mul
|
31 |
+
nettle_curve448_mul_g
|
32 |
+
_nettle_curve25519_eh_to_x
|
33 |
+
nettle_curve25519_mul
|
34 |
+
nettle_curve25519_mul_g
|
35 |
+
nettle_gostdsa_vko
|
36 |
+
nettle_gostdsa_verify
|
37 |
+
nettle_ecc_gostdsa_verify
|
38 |
+
nettle_ecc_gostdsa_verify_itch
|
39 |
+
nettle_gostdsa_sign
|
40 |
+
nettle_ecc_gostdsa_sign
|
41 |
+
nettle_ecc_gostdsa_sign_itch
|
42 |
+
nettle_ecdsa_generate_keypair
|
43 |
+
nettle_ecdsa_verify
|
44 |
+
nettle_ecc_ecdsa_verify
|
45 |
+
nettle_ecc_ecdsa_verify_itch
|
46 |
+
nettle_ecdsa_sign
|
47 |
+
nettle_ecc_ecdsa_sign
|
48 |
+
nettle_ecc_ecdsa_sign_itch
|
49 |
+
nettle_ecc_point_mul_g
|
50 |
+
nettle_ecc_point_mul
|
51 |
+
nettle_ecc_scalar_clear
|
52 |
+
nettle_ecc_scalar_get
|
53 |
+
nettle_ecc_scalar_init
|
54 |
+
nettle_ecc_scalar_set
|
55 |
+
nettle_ecc_point_clear
|
56 |
+
nettle_ecc_point_get
|
57 |
+
nettle_ecc_point_init
|
58 |
+
nettle_ecc_point_set
|
59 |
+
_nettle_ecc_mod_random
|
60 |
+
nettle_ecc_scalar_random
|
61 |
+
_nettle_ecc_hash
|
62 |
+
_nettle_gost_hash
|
63 |
+
_nettle_ecc_mul_a
|
64 |
+
_nettle_ecc_mul_g
|
65 |
+
_nettle_ecc_mul_m
|
66 |
+
_nettle_ecc_mul_a_eh
|
67 |
+
_nettle_ecc_mul_g_eh
|
68 |
+
_nettle_ecc_add_thh
|
69 |
+
_nettle_ecc_add_th
|
70 |
+
_nettle_ecc_dup_th
|
71 |
+
_nettle_ecc_add_ehh
|
72 |
+
_nettle_ecc_add_eh
|
73 |
+
_nettle_ecc_dup_eh
|
74 |
+
_nettle_ecc_eh_to_a
|
75 |
+
_nettle_ecc_add_jjj
|
76 |
+
_nettle_ecc_add_jja
|
77 |
+
_nettle_ecc_dup_jj
|
78 |
+
_nettle_ecc_a_to_j
|
79 |
+
_nettle_ecc_j_to_a
|
80 |
+
nettle_ecc_bit_size
|
81 |
+
nettle_ecc_size
|
82 |
+
nettle_ecc_size_a
|
83 |
+
nettle_ecc_size_j
|
84 |
+
_nettle_secp_521r1
|
85 |
+
nettle_get_secp_521r1
|
86 |
+
_nettle_secp_384r1
|
87 |
+
nettle_get_secp_384r1
|
88 |
+
_nettle_secp_256r1
|
89 |
+
nettle_get_secp_256r1
|
90 |
+
_nettle_secp_224r1
|
91 |
+
nettle_get_secp_224r1
|
92 |
+
_nettle_secp_192r1
|
93 |
+
nettle_get_secp_192r1
|
94 |
+
_nettle_gost_gc512a
|
95 |
+
nettle_get_gost_gc512a
|
96 |
+
_nettle_gost_gc256b
|
97 |
+
nettle_get_gost_gc256b
|
98 |
+
_nettle_curve448
|
99 |
+
_nettle_curve25519
|
100 |
+
_nettle_ecc_pm1_redc
|
101 |
+
_nettle_ecc_pp1_redc
|
102 |
+
_nettle_ecc_mod_add
|
103 |
+
_nettle_ecc_mod_addmul_1
|
104 |
+
_nettle_ecc_mod_mul
|
105 |
+
_nettle_ecc_mod_mul_1
|
106 |
+
_nettle_ecc_mod_mul_canonical
|
107 |
+
_nettle_ecc_mod_pow_2k
|
108 |
+
_nettle_ecc_mod_pow_2k_mul
|
109 |
+
_nettle_ecc_mod_sqr
|
110 |
+
_nettle_ecc_mod_sqr_canonical
|
111 |
+
_nettle_ecc_mod_sub
|
112 |
+
_nettle_ecc_mod_submul_1
|
113 |
+
_nettle_ecc_mod_inv
|
114 |
+
_nettle_ecc_mod
|
115 |
+
_nettle_cnd_copy
|
116 |
+
_nettle_gmp_alloc
|
117 |
+
_nettle_gmp_alloc_limbs
|
118 |
+
_nettle_gmp_free
|
119 |
+
_nettle_gmp_free_limbs
|
120 |
+
_nettle_mpn_get_base256
|
121 |
+
_nettle_mpn_get_base256_le
|
122 |
+
_nettle_mpn_set_base256
|
123 |
+
_nettle_mpn_set_base256_le
|
124 |
+
_nettle_mpz_limbs_cmp
|
125 |
+
_nettle_mpz_limbs_copy
|
126 |
+
_nettle_mpz_limbs_read_n
|
127 |
+
_nettle_mpz_set_n
|
128 |
+
_nettle_sec_tabselect
|
129 |
+
_nettle_sec_sub_1
|
130 |
+
_nettle_sec_add_1
|
131 |
+
nettle_dsa_openssl_private_key_from_der_iterator
|
132 |
+
nettle_dsa_params_from_der_iterator
|
133 |
+
nettle_dsa_public_key_from_der_iterator
|
134 |
+
nettle_openssl_provate_key_from_der
|
135 |
+
nettle_rsa_keypair_from_der
|
136 |
+
nettle_rsa_private_key_from_der_iterator
|
137 |
+
nettle_rsa_public_key_from_der_iterator
|
138 |
+
nettle_asn1_der_decode_bitstring
|
139 |
+
nettle_asn1_der_decode_bitstring_last
|
140 |
+
nettle_asn1_der_decode_constructed
|
141 |
+
nettle_asn1_der_decode_constructed_last
|
142 |
+
nettle_asn1_der_get_bignum
|
143 |
+
nettle_asn1_der_get_uint32
|
144 |
+
nettle_asn1_der_iterator_first
|
145 |
+
nettle_asn1_der_iterator_next
|
146 |
+
nettle_rsa_keypair_to_openpgp
|
147 |
+
nettle_pgp_armor
|
148 |
+
nettle_pgp_crc24
|
149 |
+
nettle_pgp_put_header
|
150 |
+
nettle_pgp_put_header_length
|
151 |
+
nettle_pgp_put_length
|
152 |
+
nettle_pgp_put_mpi
|
153 |
+
nettle_pgp_put_public_rsa_key
|
154 |
+
nettle_pgp_put_rsa_sha1_signature
|
155 |
+
nettle_pgp_put_string
|
156 |
+
nettle_pgp_put_sub_packet
|
157 |
+
nettle_pgp_put_uint16
|
158 |
+
nettle_pgp_put_uint32
|
159 |
+
nettle_pgp_put_userid
|
160 |
+
nettle_pgp_sub_packet_end
|
161 |
+
nettle_pgp_sub_packet_start
|
162 |
+
nettle_dsa_keypair_from_sexp_alist
|
163 |
+
nettle_dsa_sha1_keypair_from_sexp
|
164 |
+
nettle_dsa_sha256_keypair_from_sexp
|
165 |
+
nettle_dsa_signature_from_sexp
|
166 |
+
nettle_dsa_keypair_to_sexp
|
167 |
+
nettle_dsa_sha256_verify
|
168 |
+
nettle_dsa_sha256_verify_digest
|
169 |
+
nettle_dsa_sha256_sign
|
170 |
+
nettle_dsa_sha256_sign_digest
|
171 |
+
nettle_dsa_sha1_verify
|
172 |
+
nettle_dsa_sha1_verify_digest
|
173 |
+
nettle_dsa_sha1_sign
|
174 |
+
nettle_dsa_sha1_sign_digest
|
175 |
+
_nettle_dsa_hash
|
176 |
+
nettle_dsa_generate_keypair
|
177 |
+
nettle_dsa_verify
|
178 |
+
nettle_dsa_sign
|
179 |
+
nettle_dsa_generate_params
|
180 |
+
nettle_dsa_compat_generate_keypair
|
181 |
+
nettle_dsa_private_key_clear
|
182 |
+
nettle_dsa_private_key_init
|
183 |
+
nettle_dsa_public_key_clear
|
184 |
+
nettle_dsa_public_key_init
|
185 |
+
nettle_dsa_params_clear
|
186 |
+
nettle_dsa_params_init
|
187 |
+
nettle_dsa_signature_clear
|
188 |
+
nettle_dsa_signature_init
|
189 |
+
nettle_rsa_keypair_from_sexp
|
190 |
+
nettle_rsa_keypair_from_sexp_alist
|
191 |
+
nettle_rsa_keypair_to_sexp
|
192 |
+
_nettle_rsa_blind
|
193 |
+
_nettle_rsa_unblind
|
194 |
+
nettle_rsa_generate_keypair
|
195 |
+
nettle_rsa_decrypt_tr
|
196 |
+
nettle_rsa_sec_decrypt
|
197 |
+
nettle_rsa_decrypt
|
198 |
+
nettle_rsa_encrypt
|
199 |
+
nettle_rsa_pss_sha384_verify_digest
|
200 |
+
nettle_rsa_pss_sha512_verify_digest
|
201 |
+
nettle_rsa_pss_sha384_sign_digest_tr
|
202 |
+
nettle_rsa_pss_sha512_sign_digest_tr
|
203 |
+
nettle_rsa_pss_sha256_verify_digest
|
204 |
+
nettle_rsa_pss_sha256_sign_digest_tr
|
205 |
+
nettle_rsa_sha512_verify
|
206 |
+
nettle_rsa_sha512_verify_digest
|
207 |
+
nettle_rsa_sha512_sign_digest_tr
|
208 |
+
nettle_rsa_sha512_sign_tr
|
209 |
+
nettle_rsa_sha512_sign
|
210 |
+
nettle_rsa_sha512_sign_digest
|
211 |
+
nettle_rsa_sha256_verify
|
212 |
+
nettle_rsa_sha256_verify_digest
|
213 |
+
nettle_rsa_sha256_sign_digest_tr
|
214 |
+
nettle_rsa_sha256_sign_tr
|
215 |
+
nettle_rsa_sha256_sign
|
216 |
+
nettle_rsa_sha256_sign_digest
|
217 |
+
nettle_rsa_sha1_verify
|
218 |
+
nettle_rsa_sha1_verify_digest
|
219 |
+
nettle_rsa_sha1_sign_digest_tr
|
220 |
+
nettle_rsa_sha1_sign_tr
|
221 |
+
nettle_rsa_sha1_sign
|
222 |
+
nettle_rsa_sha1_sign_digest
|
223 |
+
nettle_rsa_md5_verify
|
224 |
+
nettle_rsa_md5_verify_digest
|
225 |
+
nettle_rsa_md5_sign_digest_tr
|
226 |
+
nettle_rsa_md5_sign_tr
|
227 |
+
nettle_rsa_md5_sign
|
228 |
+
nettle_rsa_md5_sign_digest
|
229 |
+
nettle_rsa_pkcs1_verify
|
230 |
+
nettle_rsa_pkcs1_sign_tr
|
231 |
+
nettle_rsa_pkcs1_sign
|
232 |
+
_nettle_rsa_sec_compute_root
|
233 |
+
_nettle_rsa_sec_compute_root_itch
|
234 |
+
_nettle_rsa_verify
|
235 |
+
_nettle_rsa_verify_recover
|
236 |
+
_nettle_rsa_sec_compute_root_tr
|
237 |
+
nettle_rsa_compute_root_tr
|
238 |
+
nettle_rsa_compute_root
|
239 |
+
nettle_rsa_private_key_clear
|
240 |
+
nettle_rsa_private_key_init
|
241 |
+
nettle_rsa_private_key_prepare
|
242 |
+
_nettle_rsa_check_size
|
243 |
+
nettle_rsa_public_key_clear
|
244 |
+
nettle_rsa_public_key_init
|
245 |
+
nettle_rsa_public_key_prepare
|
246 |
+
nettle_pss_mgf1
|
247 |
+
nettle_pss_encode_mgf1
|
248 |
+
nettle_pss_verify_mgf1
|
249 |
+
nettle_pkcs1_rsa_sha512_encode
|
250 |
+
nettle_pkcs1_rsa_sha512_encode_digest
|
251 |
+
nettle_pkcs1_rsa_sha256_encode
|
252 |
+
nettle_pkcs1_rsa_sha256_encode_digest
|
253 |
+
nettle_pkcs1_rsa_sha1_encode
|
254 |
+
nettle_pkcs1_rsa_sha1_encode_digest
|
255 |
+
nettle_pkcs1_rsa_md5_encode
|
256 |
+
nettle_pkcs1_rsa_md5_encode_digest
|
257 |
+
nettle_pkcs1_rsa_digest_encode
|
258 |
+
_nettle_pkcs1_sec_decrypt
|
259 |
+
_nettle_pkcs1_sec_decrypt_variable
|
260 |
+
nettle_pkcs1_decrypt
|
261 |
+
nettle_pkcs1_encrypt
|
262 |
+
_nettle_pkcs1_signature_prefix
|
263 |
+
nettle_mpz_set_sexp
|
264 |
+
_nettle_generate_pocklington_prime
|
265 |
+
nettle_random_prime
|
266 |
+
nettle_mpz_random
|
267 |
+
nettle_mpz_random_size
|
268 |
+
nettle_mpz_get_str_256
|
269 |
+
nettle_mpz_init_set_str_256_s
|
270 |
+
nettle_mpz_init_set_str_256_u
|
271 |
+
nettle_mpz_set_str_256_s
|
272 |
+
nettle_mpz_set_str_256_u
|
273 |
+
nettle_mpz_sizeinbase_256_s
|
274 |
+
nettle_mpz_sizeinbase_256_u
|
275 |
+
nettle_sexp_transport_format
|
276 |
+
nettle_sexp_transport_vformat
|
277 |
+
nettle_sexp_transport_iterator_first
|
278 |
+
nettle_sexp_format
|
279 |
+
nettle_sexp_vformat
|
280 |
+
nettle_sexp_iterator_assoc
|
281 |
+
nettle_sexp_iterator_check_type
|
282 |
+
nettle_sexp_iterator_check_types
|
283 |
+
nettle_sexp_iterator_enter_list
|
284 |
+
nettle_sexp_iterator_exit_list
|
285 |
+
nettle_sexp_iterator_first
|
286 |
+
nettle_sexp_iterator_get_uint32
|
287 |
+
nettle_sexp_iterator_next
|
288 |
+
nettle_sexp_iterator_subexpr
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/hogweed-x86.def
ADDED
@@ -0,0 +1,281 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
nettle_ed448_shake256_verify
|
3 |
+
nettle_ed448_shake256_sign
|
4 |
+
nettle_ed448_shake256_public_key
|
5 |
+
_nettle_ed448_shake256
|
6 |
+
nettle_ed25519_sha512_verify
|
7 |
+
nettle_ed25519_sha512_sign
|
8 |
+
nettle_ed25519_sha512_public_key
|
9 |
+
_nettle_ed25519_sha512
|
10 |
+
_nettle_eddsa_verify
|
11 |
+
_nettle_eddsa_verify_itch
|
12 |
+
_nettle_eddsa_sign
|
13 |
+
_nettle_eddsa_sign_itch
|
14 |
+
_nettle_eddsa_public_key
|
15 |
+
_nettle_eddsa_public_key_itch
|
16 |
+
_nettle_eddsa_hash
|
17 |
+
_nettle_eddsa_expand_key
|
18 |
+
_nettle_eddsa_decompress
|
19 |
+
_nettle_eddsa_decompress_itch
|
20 |
+
_nettle_eddsa_compress
|
21 |
+
_nettle_eddsa_compress_itch
|
22 |
+
_nettle_curve448_eh_to_x
|
23 |
+
nettle_curve448_mul
|
24 |
+
nettle_curve448_mul_g
|
25 |
+
_nettle_curve25519_eh_to_x
|
26 |
+
nettle_curve25519_mul
|
27 |
+
nettle_curve25519_mul_g
|
28 |
+
nettle_gostdsa_vko
|
29 |
+
nettle_gostdsa_verify
|
30 |
+
nettle_ecc_gostdsa_verify
|
31 |
+
nettle_ecc_gostdsa_verify_itch
|
32 |
+
nettle_gostdsa_sign
|
33 |
+
nettle_ecc_gostdsa_sign
|
34 |
+
nettle_ecc_gostdsa_sign_itch
|
35 |
+
nettle_ecdsa_generate_keypair
|
36 |
+
nettle_ecdsa_verify
|
37 |
+
nettle_ecc_ecdsa_verify
|
38 |
+
nettle_ecc_ecdsa_verify_itch
|
39 |
+
nettle_ecdsa_sign
|
40 |
+
nettle_ecc_ecdsa_sign
|
41 |
+
nettle_ecc_ecdsa_sign_itch
|
42 |
+
nettle_ecc_point_mul_g
|
43 |
+
nettle_ecc_point_mul
|
44 |
+
nettle_ecc_scalar_clear
|
45 |
+
nettle_ecc_scalar_get
|
46 |
+
nettle_ecc_scalar_init
|
47 |
+
nettle_ecc_scalar_set
|
48 |
+
nettle_ecc_point_clear
|
49 |
+
nettle_ecc_point_get
|
50 |
+
nettle_ecc_point_init
|
51 |
+
nettle_ecc_point_set
|
52 |
+
_nettle_ecc_mod_random
|
53 |
+
nettle_ecc_scalar_random
|
54 |
+
_nettle_ecc_hash
|
55 |
+
_nettle_gost_hash
|
56 |
+
_nettle_ecc_mul_a
|
57 |
+
_nettle_ecc_mul_g
|
58 |
+
_nettle_ecc_mul_m
|
59 |
+
_nettle_ecc_mul_a_eh
|
60 |
+
_nettle_ecc_mul_g_eh
|
61 |
+
_nettle_ecc_add_thh
|
62 |
+
_nettle_ecc_add_th
|
63 |
+
_nettle_ecc_dup_th
|
64 |
+
_nettle_ecc_add_ehh
|
65 |
+
_nettle_ecc_add_eh
|
66 |
+
_nettle_ecc_dup_eh
|
67 |
+
_nettle_ecc_eh_to_a
|
68 |
+
_nettle_ecc_add_jjj
|
69 |
+
_nettle_ecc_add_jja
|
70 |
+
_nettle_ecc_dup_jj
|
71 |
+
_nettle_ecc_a_to_j
|
72 |
+
_nettle_ecc_j_to_a
|
73 |
+
nettle_ecc_bit_size
|
74 |
+
nettle_ecc_size
|
75 |
+
nettle_ecc_size_a
|
76 |
+
nettle_ecc_size_j
|
77 |
+
_nettle_secp_521r1
|
78 |
+
nettle_get_secp_521r1
|
79 |
+
_nettle_secp_384r1
|
80 |
+
nettle_get_secp_384r1
|
81 |
+
_nettle_secp_256r1
|
82 |
+
nettle_get_secp_256r1
|
83 |
+
_nettle_secp_224r1
|
84 |
+
nettle_get_secp_224r1
|
85 |
+
_nettle_secp_192r1
|
86 |
+
nettle_get_secp_192r1
|
87 |
+
_nettle_gost_gc512a
|
88 |
+
nettle_get_gost_gc512a
|
89 |
+
_nettle_gost_gc256b
|
90 |
+
nettle_get_gost_gc256b
|
91 |
+
_nettle_curve448
|
92 |
+
_nettle_curve25519
|
93 |
+
_nettle_ecc_pm1_redc
|
94 |
+
_nettle_ecc_pp1_redc
|
95 |
+
_nettle_ecc_mod_add
|
96 |
+
_nettle_ecc_mod_addmul_1
|
97 |
+
_nettle_ecc_mod_mul
|
98 |
+
_nettle_ecc_mod_mul_1
|
99 |
+
_nettle_ecc_mod_mul_canonical
|
100 |
+
_nettle_ecc_mod_pow_2k
|
101 |
+
_nettle_ecc_mod_pow_2k_mul
|
102 |
+
_nettle_ecc_mod_sqr
|
103 |
+
_nettle_ecc_mod_sqr_canonical
|
104 |
+
_nettle_ecc_mod_sub
|
105 |
+
_nettle_ecc_mod_submul_1
|
106 |
+
_nettle_ecc_mod_inv
|
107 |
+
_nettle_ecc_mod
|
108 |
+
_nettle_cnd_copy
|
109 |
+
_nettle_gmp_alloc
|
110 |
+
_nettle_gmp_alloc_limbs
|
111 |
+
_nettle_gmp_free
|
112 |
+
_nettle_gmp_free_limbs
|
113 |
+
_nettle_mpn_get_base256
|
114 |
+
_nettle_mpn_get_base256_le
|
115 |
+
_nettle_mpn_set_base256
|
116 |
+
_nettle_mpn_set_base256_le
|
117 |
+
_nettle_mpz_limbs_cmp
|
118 |
+
_nettle_mpz_limbs_copy
|
119 |
+
_nettle_mpz_limbs_read_n
|
120 |
+
_nettle_mpz_set_n
|
121 |
+
_nettle_sec_tabselect
|
122 |
+
_nettle_sec_sub_1
|
123 |
+
_nettle_sec_add_1
|
124 |
+
nettle_dsa_openssl_private_key_from_der_iterator
|
125 |
+
nettle_dsa_params_from_der_iterator
|
126 |
+
nettle_dsa_public_key_from_der_iterator
|
127 |
+
nettle_openssl_provate_key_from_der
|
128 |
+
nettle_rsa_keypair_from_der
|
129 |
+
nettle_rsa_private_key_from_der_iterator
|
130 |
+
nettle_rsa_public_key_from_der_iterator
|
131 |
+
nettle_asn1_der_decode_bitstring
|
132 |
+
nettle_asn1_der_decode_bitstring_last
|
133 |
+
nettle_asn1_der_decode_constructed
|
134 |
+
nettle_asn1_der_decode_constructed_last
|
135 |
+
nettle_asn1_der_get_bignum
|
136 |
+
nettle_asn1_der_get_uint32
|
137 |
+
nettle_asn1_der_iterator_first
|
138 |
+
nettle_asn1_der_iterator_next
|
139 |
+
nettle_rsa_keypair_to_openpgp
|
140 |
+
nettle_pgp_armor
|
141 |
+
nettle_pgp_crc24
|
142 |
+
nettle_pgp_put_header
|
143 |
+
nettle_pgp_put_header_length
|
144 |
+
nettle_pgp_put_length
|
145 |
+
nettle_pgp_put_mpi
|
146 |
+
nettle_pgp_put_public_rsa_key
|
147 |
+
nettle_pgp_put_rsa_sha1_signature
|
148 |
+
nettle_pgp_put_string
|
149 |
+
nettle_pgp_put_sub_packet
|
150 |
+
nettle_pgp_put_uint16
|
151 |
+
nettle_pgp_put_uint32
|
152 |
+
nettle_pgp_put_userid
|
153 |
+
nettle_pgp_sub_packet_end
|
154 |
+
nettle_pgp_sub_packet_start
|
155 |
+
nettle_dsa_keypair_from_sexp_alist
|
156 |
+
nettle_dsa_sha1_keypair_from_sexp
|
157 |
+
nettle_dsa_sha256_keypair_from_sexp
|
158 |
+
nettle_dsa_signature_from_sexp
|
159 |
+
nettle_dsa_keypair_to_sexp
|
160 |
+
nettle_dsa_sha256_verify
|
161 |
+
nettle_dsa_sha256_verify_digest
|
162 |
+
nettle_dsa_sha256_sign
|
163 |
+
nettle_dsa_sha256_sign_digest
|
164 |
+
nettle_dsa_sha1_verify
|
165 |
+
nettle_dsa_sha1_verify_digest
|
166 |
+
nettle_dsa_sha1_sign
|
167 |
+
nettle_dsa_sha1_sign_digest
|
168 |
+
_nettle_dsa_hash
|
169 |
+
nettle_dsa_generate_keypair
|
170 |
+
nettle_dsa_verify
|
171 |
+
nettle_dsa_sign
|
172 |
+
nettle_dsa_generate_params
|
173 |
+
nettle_dsa_compat_generate_keypair
|
174 |
+
nettle_dsa_private_key_clear
|
175 |
+
nettle_dsa_private_key_init
|
176 |
+
nettle_dsa_public_key_clear
|
177 |
+
nettle_dsa_public_key_init
|
178 |
+
nettle_dsa_params_clear
|
179 |
+
nettle_dsa_params_init
|
180 |
+
nettle_dsa_signature_clear
|
181 |
+
nettle_dsa_signature_init
|
182 |
+
nettle_rsa_keypair_from_sexp
|
183 |
+
nettle_rsa_keypair_from_sexp_alist
|
184 |
+
nettle_rsa_keypair_to_sexp
|
185 |
+
_nettle_rsa_blind
|
186 |
+
_nettle_rsa_unblind
|
187 |
+
nettle_rsa_generate_keypair
|
188 |
+
nettle_rsa_decrypt_tr
|
189 |
+
nettle_rsa_sec_decrypt
|
190 |
+
nettle_rsa_decrypt
|
191 |
+
nettle_rsa_encrypt
|
192 |
+
nettle_rsa_pss_sha384_verify_digest
|
193 |
+
nettle_rsa_pss_sha512_verify_digest
|
194 |
+
nettle_rsa_pss_sha384_sign_digest_tr
|
195 |
+
nettle_rsa_pss_sha512_sign_digest_tr
|
196 |
+
nettle_rsa_pss_sha256_verify_digest
|
197 |
+
nettle_rsa_pss_sha256_sign_digest_tr
|
198 |
+
nettle_rsa_sha512_verify
|
199 |
+
nettle_rsa_sha512_verify_digest
|
200 |
+
nettle_rsa_sha512_sign_digest_tr
|
201 |
+
nettle_rsa_sha512_sign_tr
|
202 |
+
nettle_rsa_sha512_sign
|
203 |
+
nettle_rsa_sha512_sign_digest
|
204 |
+
nettle_rsa_sha256_verify
|
205 |
+
nettle_rsa_sha256_verify_digest
|
206 |
+
nettle_rsa_sha256_sign_digest_tr
|
207 |
+
nettle_rsa_sha256_sign_tr
|
208 |
+
nettle_rsa_sha256_sign
|
209 |
+
nettle_rsa_sha256_sign_digest
|
210 |
+
nettle_rsa_sha1_verify
|
211 |
+
nettle_rsa_sha1_verify_digest
|
212 |
+
nettle_rsa_sha1_sign_digest_tr
|
213 |
+
nettle_rsa_sha1_sign_tr
|
214 |
+
nettle_rsa_sha1_sign
|
215 |
+
nettle_rsa_sha1_sign_digest
|
216 |
+
nettle_rsa_md5_verify
|
217 |
+
nettle_rsa_md5_verify_digest
|
218 |
+
nettle_rsa_md5_sign_digest_tr
|
219 |
+
nettle_rsa_md5_sign_tr
|
220 |
+
nettle_rsa_md5_sign
|
221 |
+
nettle_rsa_md5_sign_digest
|
222 |
+
nettle_rsa_pkcs1_verify
|
223 |
+
nettle_rsa_pkcs1_sign_tr
|
224 |
+
nettle_rsa_pkcs1_sign
|
225 |
+
_nettle_rsa_sec_compute_root
|
226 |
+
_nettle_rsa_sec_compute_root_itch
|
227 |
+
_nettle_rsa_verify
|
228 |
+
_nettle_rsa_verify_recover
|
229 |
+
_nettle_rsa_sec_compute_root_tr
|
230 |
+
nettle_rsa_compute_root_tr
|
231 |
+
nettle_rsa_compute_root
|
232 |
+
nettle_rsa_private_key_clear
|
233 |
+
nettle_rsa_private_key_init
|
234 |
+
nettle_rsa_private_key_prepare
|
235 |
+
_nettle_rsa_check_size
|
236 |
+
nettle_rsa_public_key_clear
|
237 |
+
nettle_rsa_public_key_init
|
238 |
+
nettle_rsa_public_key_prepare
|
239 |
+
nettle_pss_mgf1
|
240 |
+
nettle_pss_encode_mgf1
|
241 |
+
nettle_pss_verify_mgf1
|
242 |
+
nettle_pkcs1_rsa_sha512_encode
|
243 |
+
nettle_pkcs1_rsa_sha512_encode_digest
|
244 |
+
nettle_pkcs1_rsa_sha256_encode
|
245 |
+
nettle_pkcs1_rsa_sha256_encode_digest
|
246 |
+
nettle_pkcs1_rsa_sha1_encode
|
247 |
+
nettle_pkcs1_rsa_sha1_encode_digest
|
248 |
+
nettle_pkcs1_rsa_md5_encode
|
249 |
+
nettle_pkcs1_rsa_md5_encode_digest
|
250 |
+
nettle_pkcs1_rsa_digest_encode
|
251 |
+
_nettle_pkcs1_sec_decrypt
|
252 |
+
_nettle_pkcs1_sec_decrypt_variable
|
253 |
+
nettle_pkcs1_decrypt
|
254 |
+
nettle_pkcs1_encrypt
|
255 |
+
_nettle_pkcs1_signature_prefix
|
256 |
+
nettle_mpz_set_sexp
|
257 |
+
_nettle_generate_pocklington_prime
|
258 |
+
nettle_random_prime
|
259 |
+
nettle_mpz_random
|
260 |
+
nettle_mpz_random_size
|
261 |
+
nettle_mpz_get_str_256
|
262 |
+
nettle_mpz_init_set_str_256_s
|
263 |
+
nettle_mpz_init_set_str_256_u
|
264 |
+
nettle_mpz_set_str_256_s
|
265 |
+
nettle_mpz_set_str_256_u
|
266 |
+
nettle_mpz_sizeinbase_256_s
|
267 |
+
nettle_mpz_sizeinbase_256_u
|
268 |
+
nettle_sexp_transport_format
|
269 |
+
nettle_sexp_transport_vformat
|
270 |
+
nettle_sexp_transport_iterator_first
|
271 |
+
nettle_sexp_format
|
272 |
+
nettle_sexp_vformat
|
273 |
+
nettle_sexp_iterator_assoc
|
274 |
+
nettle_sexp_iterator_check_type
|
275 |
+
nettle_sexp_iterator_check_types
|
276 |
+
nettle_sexp_iterator_enter_list
|
277 |
+
nettle_sexp_iterator_exit_list
|
278 |
+
nettle_sexp_iterator_first
|
279 |
+
nettle_sexp_iterator_get_uint32
|
280 |
+
nettle_sexp_iterator_next
|
281 |
+
nettle_sexp_iterator_subexpr
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/libname-windows.patch
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Makefile.in b/Makefile.in
|
2 |
+
index b65ff4960..3887d0c8f 100644
|
3 |
+
--- a/Makefile.in
|
4 |
+
+++ b/Makefile.in
|
5 |
+
@@ -27,7 +27,7 @@ PRE_CPPFLAGS = -I.
|
6 |
+
EXTRA_CFLAGS = $(CCPIC)
|
7 |
+
|
8 |
+
# FIXME: Add configuration of LIBEXT?
|
9 |
+
-LIBTARGETS = @IF_STATIC@ libnettle.a @IF_HOGWEED@ libhogweed.a
|
10 |
+
+LIBTARGETS = @IF_STATIC@ $(LIBNETTLE_FILE) @IF_HOGWEED@ $(LIBHOGWEED_FILE)
|
11 |
+
SHLIBTARGETS = @IF_SHARED@ $(LIBNETTLE_FORLINK) @IF_HOGWEED@ $(LIBHOGWEED_FORLINK)
|
12 |
+
|
13 |
+
getopt_SOURCES = getopt.c getopt1.c
|
14 |
+
@@ -277,13 +277,13 @@ nettle_OBJS = $(nettle_SOURCES:.c=.$(OBJEXT)) \
|
15 |
+
hogweed_OBJS = $(hogweed_SOURCES:.c=.$(OBJEXT)) \
|
16 |
+
$(OPT_HOGWEED_OBJS) @IF_MINI_GMP@ mini-gmp.$(OBJEXT)
|
17 |
+
|
18 |
+
-libnettle.a: $(nettle_OBJS)
|
19 |
+
+$(LIBNETTLE_FILE): $(nettle_OBJS)
|
20 |
+
-rm -f $@
|
21 |
+
$(AR) $(ARFLAGS) $@ $(nettle_OBJS)
|
22 |
+
$(RANLIB) $@
|
23 |
+
echo nettle > libnettle.stamp
|
24 |
+
|
25 |
+
-libhogweed.a: $(hogweed_OBJS)
|
26 |
+
+$(LIBHOGWEED_FILE): $(hogweed_OBJS)
|
27 |
+
-rm -f $@
|
28 |
+
$(AR) $(ARFLAGS) $@ $(hogweed_OBJS)
|
29 |
+
$(RANLIB) $@
|
30 |
+
diff --git a/configure.ac b/configure.ac
|
31 |
+
index e95f1c825..1d7ef36bb 100644
|
32 |
+
--- a/configure.ac
|
33 |
+
+++ b/configure.ac
|
34 |
+
@@ -662,8 +665,8 @@ case "$host_os" in
|
35 |
+
# linking to the DLL, is installed into the lib dir.
|
36 |
+
case "$host_os" in
|
37 |
+
mingw32*)
|
38 |
+
- LIBNETTLE_FORLINK='libnettle-$(LIBNETTLE_MAJOR).dll'
|
39 |
+
- LIBHOGWEED_FORLINK='libhogweed-$(LIBHOGWEED_MAJOR).dll'
|
40 |
+
+ LIBNETTLE_FORLINK='nettle-$(LIBNETTLE_MAJOR).dll'
|
41 |
+
+ LIBHOGWEED_FORLINK='hogweed-$(LIBHOGWEED_MAJOR).dll'
|
42 |
+
;;
|
43 |
+
cygwin*)
|
44 |
+
LIBNETTLE_FORLINK='cygnettle-$(LIBNETTLE_MAJOR).dll'
|
45 |
+
@@ -684,16 +687,16 @@ case "$host_os" in
|
46 |
+
W64_ABI=yes
|
47 |
+
fi
|
48 |
+
LIBNETTLE_SONAME=''
|
49 |
+
- LIBNETTLE_FILE='libnettle.dll.a'
|
50 |
+
+ LIBNETTLE_FILE='nettle.lib'
|
51 |
+
LIBNETTLE_FILE_SRC='$(LIBNETTLE_FILE)'
|
52 |
+
- LIBNETTLE_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBNETTLE_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
|
53 |
+
+ LIBNETTLE_LINK='$(CC) $(CPPFLAGS) -Wl,$(LDFLAGS) -Wl,-DLL -Wl,-IMPLIB:$(LIBNETTLE_FILE) -Wl,-DEF:nettle.def'
|
54 |
+
- LIBNETTLE_LIBS='-Wl,--no-whole-archive $(LIBS)'
|
55 |
+
+ LIBNETTLE_LIBS='$(LIBS)'
|
56 |
+
|
57 |
+
LIBHOGWEED_SONAME=''
|
58 |
+
- LIBHOGWEED_FILE='libhogweed.dll.a'
|
59 |
+
+ LIBHOGWEED_FILE='hogweed.lib'
|
60 |
+
LIBHOGWEED_FILE_SRC='$(LIBHOGWEED_FILE)'
|
61 |
+
- LIBHOGWEED_LINK='$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,--out-implib=$(LIBHOGWEED_FILE) -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--whole-archive'
|
62 |
+
+ LIBHOGWEED_LINK='$(CC) $(CPPFLAGS) -Wl,$(LDFLAGS) -Wl,-DLL -Wl,-IMPLIB:$(LIBHOGWEED_FILE) -Wl,-DEF:hogweed.def'
|
63 |
+
- LIBHOGWEED_LIBS='-Wl,--no-whole-archive $(LIBS) libnettle.dll.a'
|
64 |
+
+ LIBHOGWEED_LIBS='$(LIBS) $(LIBNETTLE_FILE)'
|
65 |
+
IF_DLL=''
|
66 |
+
;;
|
67 |
+
darwin*)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/nettle-x64.def
ADDED
@@ -0,0 +1,509 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
_nettle_sha256_compress_sha_ni
|
3 |
+
_nettle_sha1_compress_sha_ni
|
4 |
+
_nettle_salsa20_2core
|
5 |
+
_nettle_memxor_sse2
|
6 |
+
_nettle_aes_decrypt_aesni
|
7 |
+
_nettle_aes_encrypt_aesni
|
8 |
+
_nettle_cpuid
|
9 |
+
_nettle_gcm_hash8
|
10 |
+
_nettle_aes_decrypt
|
11 |
+
_nettle_aes_encrypt
|
12 |
+
_nettle_sha256_compress
|
13 |
+
nettle_memxor
|
14 |
+
nettle_sha1_compress
|
15 |
+
nettle_xts_aes256_decrypt_message
|
16 |
+
nettle_xts_aes256_encrypt_message
|
17 |
+
nettle_xts_aes256_set_decrypt_key
|
18 |
+
nettle_xts_aes256_set_encrypt_key
|
19 |
+
nettle_xts_aes128_decrypt_message
|
20 |
+
nettle_xts_aes128_encrypt_message
|
21 |
+
nettle_xts_aes128_set_decrypt_key
|
22 |
+
nettle_xts_aes128_set_encrypt_key
|
23 |
+
nettle_xts_decrypt_message
|
24 |
+
nettle_xts_encrypt_message
|
25 |
+
nettle_yarrow_key_event_estimate
|
26 |
+
nettle_yarrow_key_event_init
|
27 |
+
nettle_yarrow256_fast_reseed
|
28 |
+
nettle_yarrow256_init
|
29 |
+
nettle_yarrow256_is_seeded
|
30 |
+
nettle_yarrow256_needed_sources
|
31 |
+
nettle_yarrow256_random
|
32 |
+
nettle_yarrow256_seed
|
33 |
+
nettle_yarrow256_slow_reseed
|
34 |
+
nettle_yarrow256_update
|
35 |
+
_nettle_write_le64
|
36 |
+
_nettle_write_le32
|
37 |
+
_nettle_write_be32
|
38 |
+
nettle_version_major
|
39 |
+
nettle_version_minor
|
40 |
+
nettle_umac128_digest
|
41 |
+
nettle_umac128_set_key
|
42 |
+
nettle_umac128_set_nonce
|
43 |
+
nettle_umac128_update
|
44 |
+
nettle_umac96_digest
|
45 |
+
nettle_umac96_set_key
|
46 |
+
nettle_umac96_set_nonce
|
47 |
+
nettle_umac96_update
|
48 |
+
nettle_umac64_digest
|
49 |
+
nettle_umac64_set_key
|
50 |
+
nettle_umac64_set_nonce
|
51 |
+
nettle_umac64_update
|
52 |
+
nettle_umac32_digest
|
53 |
+
nettle_umac32_set_key
|
54 |
+
nettle_umac32_set_nonce
|
55 |
+
nettle_umac32_update
|
56 |
+
_nettle_umac_set_key
|
57 |
+
_nettle_umac_poly128
|
58 |
+
_nettle_umac_poly64
|
59 |
+
_nettle_umac_l3
|
60 |
+
_nettle_umac_l3_init
|
61 |
+
_nettle_umac_l2
|
62 |
+
_nettle_umac_l2_final
|
63 |
+
_nettle_umac_l2_init
|
64 |
+
_nettle_umac_nh_n
|
65 |
+
_nettle_umac_nh
|
66 |
+
nettle_twofish128
|
67 |
+
nettle_twofish192
|
68 |
+
nettle_twofish256
|
69 |
+
nettle_twofish128_set_key
|
70 |
+
nettle_twofish192_set_key
|
71 |
+
nettle_twofish256_set_key
|
72 |
+
nettle_twofish_decrypt
|
73 |
+
nettle_twofish_encrypt
|
74 |
+
nettle_twofish_set_key
|
75 |
+
nettle_streebog256
|
76 |
+
nettle_streebog512
|
77 |
+
nettle_streebog256_digest
|
78 |
+
nettle_streebog256_init
|
79 |
+
nettle_streebog512_digest
|
80 |
+
nettle_streebog512_init
|
81 |
+
nettle_streebog512_update
|
82 |
+
nettle_serpent128
|
83 |
+
nettle_serpent192
|
84 |
+
nettle_serpent256
|
85 |
+
nettle_serpent_decrypt
|
86 |
+
nettle_serpent_encrypt
|
87 |
+
nettle_serpent128_set_key
|
88 |
+
nettle_serpent192_set_key
|
89 |
+
nettle_serpent256_set_key
|
90 |
+
nettle_serpent_set_key
|
91 |
+
nettle_sha3_256_shake
|
92 |
+
nettle_sha3_512
|
93 |
+
nettle_sha3_512_digest
|
94 |
+
nettle_sha3_512_init
|
95 |
+
nettle_sha3_512_update
|
96 |
+
nettle_sha3_384
|
97 |
+
nettle_sha3_384_digest
|
98 |
+
nettle_sha3_384_init
|
99 |
+
nettle_sha3_384_update
|
100 |
+
nettle_sha3_256
|
101 |
+
nettle_sha3_256_digest
|
102 |
+
nettle_sha3_256_init
|
103 |
+
nettle_sha3_256_update
|
104 |
+
nettle_sha3_224
|
105 |
+
nettle_sha3_224_digest
|
106 |
+
nettle_sha3_224_init
|
107 |
+
nettle_sha3_224_update
|
108 |
+
nettle_sha3_permute
|
109 |
+
_nettle_sha3_pad
|
110 |
+
_nettle_sha3_update
|
111 |
+
nettle_sha512_256
|
112 |
+
nettle_sha512_224
|
113 |
+
nettle_sha512
|
114 |
+
nettle_sha384
|
115 |
+
_nettle_sha512_compress
|
116 |
+
nettle_sha384_digest
|
117 |
+
nettle_sha384_init
|
118 |
+
nettle_sha512_224_digest
|
119 |
+
nettle_sha512_224_init
|
120 |
+
nettle_sha512_256_digest
|
121 |
+
nettle_sha512_256_init
|
122 |
+
nettle_sha512_digest
|
123 |
+
nettle_sha512_init
|
124 |
+
nettle_sha512_update
|
125 |
+
nettle_sha256
|
126 |
+
nettle_sha224
|
127 |
+
_nettle_sha256_compress_x86_64
|
128 |
+
nettle_sha224_digest
|
129 |
+
nettle_sha224_init
|
130 |
+
nettle_sha256_digest
|
131 |
+
nettle_sha256_init
|
132 |
+
nettle_sha256_update
|
133 |
+
nettle_sha1
|
134 |
+
_nettle_sha1_compress_x86_64
|
135 |
+
nettle_sha1_digest
|
136 |
+
nettle_sha1_init
|
137 |
+
nettle_sha1_update
|
138 |
+
nettle_salsa20_256_set_key
|
139 |
+
nettle_salsa20_128_set_key
|
140 |
+
nettle_salsa20_set_nonce
|
141 |
+
nettle_salsa20_set_key
|
142 |
+
nettle_salsa20r12_crypt
|
143 |
+
nettle_salsa20_crypt
|
144 |
+
_nettle_salsa20_crypt
|
145 |
+
_nettle_salsa20_core
|
146 |
+
nettle_ripemd160
|
147 |
+
_nettle_ripemd160_compress
|
148 |
+
nettle_ripemd160_digest
|
149 |
+
nettle_ripemd160_init
|
150 |
+
nettle_ripemd160_update
|
151 |
+
nettle_realloc
|
152 |
+
nettle_xrealloc
|
153 |
+
_nettle_poly1305_block
|
154 |
+
_nettle_poly1305_digest
|
155 |
+
_nettle_poly1305_set_key
|
156 |
+
nettle_poly1305_aes_digest
|
157 |
+
nettle_poly1305_aes_set_key
|
158 |
+
nettle_poly1305_aes_set_nonce
|
159 |
+
nettle_poly1305_aes_update
|
160 |
+
nettle_pbkdf2_hmac_sha512
|
161 |
+
nettle_pbkdf2_hmac_sha384
|
162 |
+
nettle_pbkdf2_hmac_sha256
|
163 |
+
nettle_pbkdf2_hmac_sha1
|
164 |
+
nettle_pbkdf2_hmac_gosthash94cp
|
165 |
+
nettle_pbkdf2
|
166 |
+
_nettle_macs
|
167 |
+
nettle_get_macs
|
168 |
+
_nettle_hashes
|
169 |
+
nettle_get_hashes
|
170 |
+
_nettle_ciphers
|
171 |
+
nettle_get_ciphers
|
172 |
+
_nettle_armors
|
173 |
+
nettle_get_armors
|
174 |
+
_nettle_aeads
|
175 |
+
nettle_get_aeads
|
176 |
+
nettle_lookup_hash
|
177 |
+
nettle_memxor3
|
178 |
+
_nettle_memxor_x86_64
|
179 |
+
nettle_memeql_sec
|
180 |
+
nettle_md5
|
181 |
+
nettle_MD5Final
|
182 |
+
nettle_MD5Init
|
183 |
+
nettle_MD5Update
|
184 |
+
nettle_md5_compress
|
185 |
+
nettle_md5_digest
|
186 |
+
nettle_md5_init
|
187 |
+
nettle_md5_update
|
188 |
+
nettle_md4
|
189 |
+
nettle_md4_digest
|
190 |
+
nettle_md4_init
|
191 |
+
nettle_md4_update
|
192 |
+
nettle_md2
|
193 |
+
nettle_md2_digest
|
194 |
+
nettle_md2_init
|
195 |
+
nettle_md2_update
|
196 |
+
nettle_hkdf_expand
|
197 |
+
nettle_hkdf_extract
|
198 |
+
nettle_knuth_lfib_get
|
199 |
+
nettle_knuth_lfib_get_array
|
200 |
+
nettle_knuth_lfib_init
|
201 |
+
nettle_knuth_lfib_random
|
202 |
+
nettle_hmac_streebog256
|
203 |
+
nettle_hmac_streebog512
|
204 |
+
nettle_hmac_sha512
|
205 |
+
nettle_hmac_sha384
|
206 |
+
nettle_hmac_sha256
|
207 |
+
nettle_hmac_sha224
|
208 |
+
nettle_hmac_sha1
|
209 |
+
nettle_hmac_ripemd160
|
210 |
+
nettle_hmac_md5
|
211 |
+
nettle_hmac_streebog256_digest
|
212 |
+
nettle_hmac_streebog256_set_key
|
213 |
+
nettle_hmac_streebog512_digest
|
214 |
+
nettle_hmac_streebog512_set_key
|
215 |
+
nettle_hmac_streebog512_update
|
216 |
+
nettle_hmac_sha512_digest
|
217 |
+
nettle_hmac_sha512_set_key
|
218 |
+
nettle_hmac_sha512_update
|
219 |
+
nettle_hmac_sha384_digest
|
220 |
+
nettle_hmac_sha384_set_key
|
221 |
+
nettle_hmac_sha256_digest
|
222 |
+
nettle_hmac_sha256_set_key
|
223 |
+
nettle_hmac_sha256_update
|
224 |
+
nettle_hmac_sha224_digest
|
225 |
+
nettle_hmac_sha224_set_key
|
226 |
+
nettle_hmac_sha1_digest
|
227 |
+
nettle_hmac_sha1_set_key
|
228 |
+
nettle_hmac_sha1_update
|
229 |
+
nettle_hmac_ripemd160_digest
|
230 |
+
nettle_hmac_ripemd160_set_key
|
231 |
+
nettle_hmac_ripemd160_update
|
232 |
+
nettle_hmac_md5_digest
|
233 |
+
nettle_hmac_md5_set_key
|
234 |
+
nettle_hmac_md5_update
|
235 |
+
nettle_hmac_gosthash94_digest
|
236 |
+
nettle_hmac_gosthash94_set_key
|
237 |
+
nettle_hmac_gosthash94_update
|
238 |
+
nettle_hmac_gosthash94cp_digest
|
239 |
+
nettle_hmac_gosthash94cp_set_key
|
240 |
+
nettle_hmac_gosthash94cp_update
|
241 |
+
nettle_hmac_digest
|
242 |
+
nettle_hmac_set_key
|
243 |
+
nettle_hmac_update
|
244 |
+
nettle_gosthash94
|
245 |
+
nettle_gosthash94cp
|
246 |
+
nettle_gosthash94_digest
|
247 |
+
nettle_gosthash94_init
|
248 |
+
nettle_gosthash94_update
|
249 |
+
nettle_gosthash94cp_digest
|
250 |
+
nettle_gosthash94cp_update
|
251 |
+
_nettle_gost28147_encrypt_block
|
252 |
+
_nettle_gost28147_param_CryptoPro_3411
|
253 |
+
_nettle_gost28147_param_test_3411
|
254 |
+
nettle_cmac_des3
|
255 |
+
nettle_cmac_aes256
|
256 |
+
nettle_cmac_aes128
|
257 |
+
nettle_cmac_des3_digest
|
258 |
+
nettle_cmac_des3_set_key
|
259 |
+
nettle_cmac_des3_update
|
260 |
+
nettle_cmac_aes256_digest
|
261 |
+
nettle_cmac_aes256_set_key
|
262 |
+
nettle_cmac_aes256_update
|
263 |
+
nettle_cmac_aes128_digest
|
264 |
+
nettle_cmac_aes128_set_key
|
265 |
+
nettle_cmac_aes128_update
|
266 |
+
nettle_cmac64_digest
|
267 |
+
nettle_cmac64_init
|
268 |
+
nettle_cmac64_set_key
|
269 |
+
nettle_cmac64_update
|
270 |
+
nettle_cmac128_digest
|
271 |
+
nettle_cmac128_init
|
272 |
+
nettle_cmac128_set_key
|
273 |
+
nettle_cmac128_update
|
274 |
+
nettle_gcm_camellia256
|
275 |
+
nettle_gcm_camellia256_decrypt
|
276 |
+
nettle_gcm_camellia256_digest
|
277 |
+
nettle_gcm_camellia256_encrypt
|
278 |
+
nettle_gcm_camellia256_set_iv
|
279 |
+
nettle_gcm_camellia256_set_key
|
280 |
+
nettle_gcm_camellia256_update
|
281 |
+
nettle_gcm_camellia128
|
282 |
+
nettle_gcm_camellia128_decrypt
|
283 |
+
nettle_gcm_camellia128_digest
|
284 |
+
nettle_gcm_camellia128_encrypt
|
285 |
+
nettle_gcm_camellia128_set_iv
|
286 |
+
nettle_gcm_camellia128_set_key
|
287 |
+
nettle_gcm_camellia128_update
|
288 |
+
nettle_gcm_aes256
|
289 |
+
nettle_gcm_aes256_decrypt
|
290 |
+
nettle_gcm_aes256_digest
|
291 |
+
nettle_gcm_aes256_encrypt
|
292 |
+
nettle_gcm_aes256_set_iv
|
293 |
+
nettle_gcm_aes256_set_key
|
294 |
+
nettle_gcm_aes256_update
|
295 |
+
nettle_gcm_aes192
|
296 |
+
nettle_gcm_aes192_decrypt
|
297 |
+
nettle_gcm_aes192_digest
|
298 |
+
nettle_gcm_aes192_encrypt
|
299 |
+
nettle_gcm_aes192_set_iv
|
300 |
+
nettle_gcm_aes192_set_key
|
301 |
+
nettle_gcm_aes192_update
|
302 |
+
nettle_gcm_aes128
|
303 |
+
nettle_gcm_aes128_decrypt
|
304 |
+
nettle_gcm_aes128_digest
|
305 |
+
nettle_gcm_aes128_encrypt
|
306 |
+
nettle_gcm_aes128_set_iv
|
307 |
+
nettle_gcm_aes128_set_key
|
308 |
+
nettle_gcm_aes128_update
|
309 |
+
nettle_gcm_aes_decrypt
|
310 |
+
nettle_gcm_aes_digest
|
311 |
+
nettle_gcm_aes_encrypt
|
312 |
+
nettle_gcm_aes_set_iv
|
313 |
+
nettle_gcm_aes_set_key
|
314 |
+
nettle_gcm_aes_update
|
315 |
+
nettle_gcm_decrypt
|
316 |
+
nettle_gcm_digest
|
317 |
+
nettle_gcm_encrypt
|
318 |
+
nettle_gcm_set_iv
|
319 |
+
nettle_gcm_set_key
|
320 |
+
nettle_gcm_update
|
321 |
+
nettle_eax_aes128
|
322 |
+
nettle_eax_aes128_decrypt
|
323 |
+
nettle_eax_aes128_digest
|
324 |
+
nettle_eax_aes128_encrypt
|
325 |
+
nettle_eax_aes128_set_key
|
326 |
+
nettle_eax_aes128_set_nonce
|
327 |
+
nettle_eax_aes128_update
|
328 |
+
nettle_eax_decrypt
|
329 |
+
nettle_eax_digest
|
330 |
+
nettle_eax_encrypt
|
331 |
+
nettle_eax_set_key
|
332 |
+
nettle_eax_set_nonce
|
333 |
+
nettle_eax_update
|
334 |
+
nettle_des3_decrypt
|
335 |
+
nettle_des3_encrypt
|
336 |
+
nettle_des3_set_key
|
337 |
+
nettle_des_check_parity
|
338 |
+
nettle_des_decrypt
|
339 |
+
nettle_des_encrypt
|
340 |
+
nettle_des_fix_parity
|
341 |
+
nettle_des_set_key
|
342 |
+
_nettle_ctr_crypt16
|
343 |
+
nettle_ctr_crypt
|
344 |
+
nettle_chacha_set_counter
|
345 |
+
nettle_chacha_set_counter32
|
346 |
+
nettle_chacha_set_nonce
|
347 |
+
nettle_chacha_set_nonce96
|
348 |
+
nettle_chacha_set_key
|
349 |
+
nettle_chacha_poly1305
|
350 |
+
nettle_chacha_poly1305_decrypt
|
351 |
+
nettle_chacha_poly1305_digest
|
352 |
+
nettle_chacha_poly1305_encrypt
|
353 |
+
nettle_chacha_poly1305_set_key
|
354 |
+
nettle_chacha_poly1305_set_nonce
|
355 |
+
nettle_chacha_poly1305_update
|
356 |
+
_nettle_chacha_core
|
357 |
+
nettle_chacha_crypt
|
358 |
+
nettle_chacha_crypt32
|
359 |
+
nettle_cnd_memcpy
|
360 |
+
nettle_siv_cmac_aes256_decrypt_message
|
361 |
+
nettle_siv_cmac_aes256_encrypt_message
|
362 |
+
nettle_siv_cmac_aes256_set_key
|
363 |
+
nettle_siv_cmac_aes128_decrypt_message
|
364 |
+
nettle_siv_cmac_aes128_encrypt_message
|
365 |
+
nettle_siv_cmac_aes128_set_key
|
366 |
+
nettle_siv_cmac_decrypt_message
|
367 |
+
nettle_siv_cmac_encrypt_message
|
368 |
+
nettle_siv_cmac_set_key
|
369 |
+
nettle_cfb8_decrypt
|
370 |
+
nettle_cfb8_encrypt
|
371 |
+
nettle_cfb_decrypt
|
372 |
+
nettle_cfb_encrypt
|
373 |
+
nettle_ccm_aes256_decrypt
|
374 |
+
nettle_ccm_aes256_decrypt_message
|
375 |
+
nettle_ccm_aes256_digest
|
376 |
+
nettle_ccm_aes256_encrypt
|
377 |
+
nettle_ccm_aes256_encrypt_message
|
378 |
+
nettle_ccm_aes256_set_key
|
379 |
+
nettle_ccm_aes256_set_nonce
|
380 |
+
nettle_ccm_aes256_update
|
381 |
+
nettle_ccm_aes192_decrypt
|
382 |
+
nettle_ccm_aes192_decrypt_message
|
383 |
+
nettle_ccm_aes192_digest
|
384 |
+
nettle_ccm_aes192_encrypt
|
385 |
+
nettle_ccm_aes192_encrypt_message
|
386 |
+
nettle_ccm_aes192_set_key
|
387 |
+
nettle_ccm_aes192_set_nonce
|
388 |
+
nettle_ccm_aes192_update
|
389 |
+
nettle_ccm_aes128_decrypt
|
390 |
+
nettle_ccm_aes128_decrypt_message
|
391 |
+
nettle_ccm_aes128_digest
|
392 |
+
nettle_ccm_aes128_encrypt
|
393 |
+
nettle_ccm_aes128_encrypt_message
|
394 |
+
nettle_ccm_aes128_set_key
|
395 |
+
nettle_ccm_aes128_set_nonce
|
396 |
+
nettle_ccm_aes128_update
|
397 |
+
nettle_ccm_decrypt
|
398 |
+
nettle_ccm_decrypt_message
|
399 |
+
nettle_ccm_digest
|
400 |
+
nettle_ccm_encrypt
|
401 |
+
nettle_ccm_encrypt_message
|
402 |
+
nettle_ccm_set_nonce
|
403 |
+
nettle_ccm_update
|
404 |
+
nettle_cbc_decrypt
|
405 |
+
nettle_cbc_encrypt
|
406 |
+
nettle_cast128
|
407 |
+
nettle_cast128_decrypt
|
408 |
+
nettle_cast128_encrypt
|
409 |
+
nettle_cast128_set_key
|
410 |
+
nettle_cast5_set_key
|
411 |
+
nettle_camellia256
|
412 |
+
nettle_camellia192_set_decrypt_key
|
413 |
+
nettle_camellia256_invert_key
|
414 |
+
nettle_camellia256_set_decrypt_key
|
415 |
+
nettle_camellia256_crypt
|
416 |
+
nettle_camellia192_set_encrypt_key
|
417 |
+
nettle_camellia256_set_encrypt_key
|
418 |
+
nettle_camellia192
|
419 |
+
nettle_camellia128
|
420 |
+
nettle_camellia128_invert_key
|
421 |
+
nettle_camellia_set_decrypt_key
|
422 |
+
nettle_camellia128_crypt
|
423 |
+
nettle_camellia128_set_encrypt_key
|
424 |
+
_nettle_camellia_invert_key
|
425 |
+
_nettle_camellia_absorb
|
426 |
+
_nettle_camellia_table
|
427 |
+
_nettle_camellia_crypt
|
428 |
+
nettle_buffer_init
|
429 |
+
nettle_buffer_clear
|
430 |
+
nettle_buffer_copy
|
431 |
+
nettle_buffer_grow
|
432 |
+
nettle_buffer_init_realloc
|
433 |
+
nettle_buffer_init_size
|
434 |
+
nettle_buffer_reset
|
435 |
+
nettle_buffer_space
|
436 |
+
nettle_buffer_write
|
437 |
+
nettle_base64url
|
438 |
+
nettle_base64url_decode_init
|
439 |
+
nettle_base64url_encode_init
|
440 |
+
nettle_base64
|
441 |
+
nettle_base64_decode_final
|
442 |
+
nettle_base64_decode_init
|
443 |
+
nettle_base64_decode_single
|
444 |
+
nettle_base64_decode_update
|
445 |
+
nettle_base64_encode_final
|
446 |
+
nettle_base64_encode_group
|
447 |
+
nettle_base64_encode_init
|
448 |
+
nettle_base64_encode_raw
|
449 |
+
nettle_base64_encode_single
|
450 |
+
nettle_base64_encode_update
|
451 |
+
nettle_base16
|
452 |
+
nettle_base16_decode_final
|
453 |
+
nettle_base16_decode_init
|
454 |
+
nettle_base16_decode_single
|
455 |
+
nettle_base16_decode_update
|
456 |
+
nettle_base16_encode_single
|
457 |
+
nettle_base16_encode_update
|
458 |
+
nettle_blowfish_bcrypt_hash
|
459 |
+
nettle_blowfish_bcrypt_verify
|
460 |
+
_nettle_blowfish_encround
|
461 |
+
_nettle_blowfish_initial_ctx
|
462 |
+
nettle_blowfish128_set_key
|
463 |
+
nettle_blowfish_decrypt
|
464 |
+
nettle_blowfish_encrypt
|
465 |
+
nettle_blowfish_set_key
|
466 |
+
nettle_arctwo128
|
467 |
+
nettle_arctwo40
|
468 |
+
nettle_arctwo64
|
469 |
+
nettle_arctwo_gutmann128
|
470 |
+
nettle_arctwo128_set_key
|
471 |
+
nettle_arctwo128_set_key_gutmann
|
472 |
+
nettle_arctwo40_set_key
|
473 |
+
nettle_arctwo64_set_key
|
474 |
+
nettle_arctwo_decrypt
|
475 |
+
nettle_arctwo_encrypt
|
476 |
+
nettle_arctwo_set_key
|
477 |
+
nettle_arctwo_set_key_ekb
|
478 |
+
nettle_arctwo_set_key_gutmann
|
479 |
+
nettle_arcfour_crypt
|
480 |
+
nettle_arcfour128_set_key
|
481 |
+
nettle_arcfour_set_key
|
482 |
+
nettle_aes256
|
483 |
+
nettle_aes256_invert_key
|
484 |
+
nettle_aes256_set_decrypt_key
|
485 |
+
nettle_aes256_set_encrypt_key
|
486 |
+
nettle_aes192
|
487 |
+
nettle_aes192_invert_key
|
488 |
+
nettle_aes192_set_decrypt_key
|
489 |
+
nettle_aes192_set_encrypt_key
|
490 |
+
nettle_aes128
|
491 |
+
nettle_aes128_invert_key
|
492 |
+
nettle_aes128_set_decrypt_key
|
493 |
+
nettle_aes128_set_encrypt_key
|
494 |
+
nettle_aes_invert_key
|
495 |
+
nettle_aes_set_decrypt_key
|
496 |
+
nettle_aes_set_encrypt_key
|
497 |
+
_nettle_aes_set_key
|
498 |
+
_nettle_aes_invert
|
499 |
+
_nettle_aes_encrypt_table
|
500 |
+
nettle_aes128_encrypt
|
501 |
+
nettle_aes192_encrypt
|
502 |
+
nettle_aes256_encrypt
|
503 |
+
nettle_aes_encrypt
|
504 |
+
_nettle_aes_encrypt_x86_64
|
505 |
+
nettle_aes128_decrypt
|
506 |
+
nettle_aes192_decrypt
|
507 |
+
nettle_aes256_decrypt
|
508 |
+
nettle_aes_decrypt
|
509 |
+
_nettle_aes_decrypt_x86_64
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/nettle-x86.def
ADDED
@@ -0,0 +1,496 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
EXPORTS
|
2 |
+
nettle_xts_aes256_decrypt_message
|
3 |
+
nettle_xts_aes256_encrypt_message
|
4 |
+
nettle_xts_aes256_set_decrypt_key
|
5 |
+
nettle_xts_aes256_set_encrypt_key
|
6 |
+
nettle_xts_aes128_decrypt_message
|
7 |
+
nettle_xts_aes128_encrypt_message
|
8 |
+
nettle_xts_aes128_set_decrypt_key
|
9 |
+
nettle_xts_aes128_set_encrypt_key
|
10 |
+
nettle_xts_decrypt_message
|
11 |
+
nettle_xts_encrypt_message
|
12 |
+
nettle_yarrow_key_event_estimate
|
13 |
+
nettle_yarrow_key_event_init
|
14 |
+
nettle_yarrow256_fast_reseed
|
15 |
+
nettle_yarrow256_init
|
16 |
+
nettle_yarrow256_is_seeded
|
17 |
+
nettle_yarrow256_needed_sources
|
18 |
+
nettle_yarrow256_random
|
19 |
+
nettle_yarrow256_seed
|
20 |
+
nettle_yarrow256_slow_reseed
|
21 |
+
nettle_yarrow256_update
|
22 |
+
_nettle_write_le64
|
23 |
+
_nettle_write_le32
|
24 |
+
_nettle_write_be32
|
25 |
+
nettle_version_major
|
26 |
+
nettle_version_minor
|
27 |
+
nettle_umac128_digest
|
28 |
+
nettle_umac128_set_key
|
29 |
+
nettle_umac128_set_nonce
|
30 |
+
nettle_umac128_update
|
31 |
+
nettle_umac96_digest
|
32 |
+
nettle_umac96_set_key
|
33 |
+
nettle_umac96_set_nonce
|
34 |
+
nettle_umac96_update
|
35 |
+
nettle_umac64_digest
|
36 |
+
nettle_umac64_set_key
|
37 |
+
nettle_umac64_set_nonce
|
38 |
+
nettle_umac64_update
|
39 |
+
nettle_umac32_digest
|
40 |
+
nettle_umac32_set_key
|
41 |
+
nettle_umac32_set_nonce
|
42 |
+
nettle_umac32_update
|
43 |
+
_nettle_umac_set_key
|
44 |
+
_nettle_umac_poly128
|
45 |
+
_nettle_umac_poly64
|
46 |
+
_nettle_umac_l3
|
47 |
+
_nettle_umac_l3_init
|
48 |
+
_nettle_umac_l2
|
49 |
+
_nettle_umac_l2_final
|
50 |
+
_nettle_umac_l2_init
|
51 |
+
_nettle_umac_nh_n
|
52 |
+
_nettle_umac_nh
|
53 |
+
nettle_twofish128
|
54 |
+
nettle_twofish192
|
55 |
+
nettle_twofish256
|
56 |
+
nettle_twofish128_set_key
|
57 |
+
nettle_twofish192_set_key
|
58 |
+
nettle_twofish256_set_key
|
59 |
+
nettle_twofish_decrypt
|
60 |
+
nettle_twofish_encrypt
|
61 |
+
nettle_twofish_set_key
|
62 |
+
nettle_streebog256
|
63 |
+
nettle_streebog512
|
64 |
+
nettle_streebog256_digest
|
65 |
+
nettle_streebog256_init
|
66 |
+
nettle_streebog512_digest
|
67 |
+
nettle_streebog512_init
|
68 |
+
nettle_streebog512_update
|
69 |
+
nettle_serpent128
|
70 |
+
nettle_serpent192
|
71 |
+
nettle_serpent256
|
72 |
+
nettle_serpent_decrypt
|
73 |
+
nettle_serpent_encrypt
|
74 |
+
nettle_serpent128_set_key
|
75 |
+
nettle_serpent192_set_key
|
76 |
+
nettle_serpent256_set_key
|
77 |
+
nettle_serpent_set_key
|
78 |
+
nettle_sha3_256_shake
|
79 |
+
nettle_sha3_512
|
80 |
+
nettle_sha3_512_digest
|
81 |
+
nettle_sha3_512_init
|
82 |
+
nettle_sha3_512_update
|
83 |
+
nettle_sha3_384
|
84 |
+
nettle_sha3_384_digest
|
85 |
+
nettle_sha3_384_init
|
86 |
+
nettle_sha3_384_update
|
87 |
+
nettle_sha3_256
|
88 |
+
nettle_sha3_256_digest
|
89 |
+
nettle_sha3_256_init
|
90 |
+
nettle_sha3_256_update
|
91 |
+
nettle_sha3_224
|
92 |
+
nettle_sha3_224_digest
|
93 |
+
nettle_sha3_224_init
|
94 |
+
nettle_sha3_224_update
|
95 |
+
nettle_sha3_permute
|
96 |
+
_nettle_sha3_pad
|
97 |
+
_nettle_sha3_update
|
98 |
+
nettle_sha512_256
|
99 |
+
nettle_sha512_224
|
100 |
+
nettle_sha512
|
101 |
+
nettle_sha384
|
102 |
+
_nettle_sha512_compress
|
103 |
+
nettle_sha384_digest
|
104 |
+
nettle_sha384_init
|
105 |
+
nettle_sha512_224_digest
|
106 |
+
nettle_sha512_224_init
|
107 |
+
nettle_sha512_256_digest
|
108 |
+
nettle_sha512_256_init
|
109 |
+
nettle_sha512_digest
|
110 |
+
nettle_sha512_init
|
111 |
+
nettle_sha512_update
|
112 |
+
nettle_sha256
|
113 |
+
nettle_sha224
|
114 |
+
_nettle_sha256_compress
|
115 |
+
nettle_sha224_digest
|
116 |
+
nettle_sha224_init
|
117 |
+
nettle_sha256_digest
|
118 |
+
nettle_sha256_init
|
119 |
+
nettle_sha256_update
|
120 |
+
nettle_sha1
|
121 |
+
nettle_sha1_compress
|
122 |
+
nettle_sha1_digest
|
123 |
+
nettle_sha1_init
|
124 |
+
nettle_sha1_update
|
125 |
+
nettle_salsa20_256_set_key
|
126 |
+
nettle_salsa20_128_set_key
|
127 |
+
nettle_salsa20_set_nonce
|
128 |
+
nettle_salsa20_set_key
|
129 |
+
nettle_salsa20r12_crypt
|
130 |
+
nettle_salsa20_crypt
|
131 |
+
_nettle_salsa20_crypt
|
132 |
+
_nettle_salsa20_core
|
133 |
+
nettle_ripemd160
|
134 |
+
_nettle_ripemd160_compress
|
135 |
+
nettle_ripemd160_digest
|
136 |
+
nettle_ripemd160_init
|
137 |
+
nettle_ripemd160_update
|
138 |
+
nettle_realloc
|
139 |
+
nettle_xrealloc
|
140 |
+
_nettle_poly1305_block
|
141 |
+
_nettle_poly1305_digest
|
142 |
+
_nettle_poly1305_set_key
|
143 |
+
nettle_poly1305_aes_digest
|
144 |
+
nettle_poly1305_aes_set_key
|
145 |
+
nettle_poly1305_aes_set_nonce
|
146 |
+
nettle_poly1305_aes_update
|
147 |
+
nettle_pbkdf2_hmac_sha512
|
148 |
+
nettle_pbkdf2_hmac_sha384
|
149 |
+
nettle_pbkdf2_hmac_sha256
|
150 |
+
nettle_pbkdf2_hmac_sha1
|
151 |
+
nettle_pbkdf2_hmac_gosthash94cp
|
152 |
+
nettle_pbkdf2
|
153 |
+
_nettle_macs
|
154 |
+
nettle_get_macs
|
155 |
+
_nettle_hashes
|
156 |
+
nettle_get_hashes
|
157 |
+
_nettle_ciphers
|
158 |
+
nettle_get_ciphers
|
159 |
+
_nettle_armors
|
160 |
+
nettle_get_armors
|
161 |
+
_nettle_aeads
|
162 |
+
nettle_get_aeads
|
163 |
+
nettle_lookup_hash
|
164 |
+
nettle_memxor3
|
165 |
+
nettle_memxor
|
166 |
+
nettle_memeql_sec
|
167 |
+
nettle_md5
|
168 |
+
nettle_MD5Final
|
169 |
+
nettle_MD5Init
|
170 |
+
nettle_MD5Update
|
171 |
+
nettle_md5_compress
|
172 |
+
nettle_md5_digest
|
173 |
+
nettle_md5_init
|
174 |
+
nettle_md5_update
|
175 |
+
nettle_md4
|
176 |
+
nettle_md4_digest
|
177 |
+
nettle_md4_init
|
178 |
+
nettle_md4_update
|
179 |
+
nettle_md2
|
180 |
+
nettle_md2_digest
|
181 |
+
nettle_md2_init
|
182 |
+
nettle_md2_update
|
183 |
+
nettle_hkdf_expand
|
184 |
+
nettle_hkdf_extract
|
185 |
+
nettle_knuth_lfib_get
|
186 |
+
nettle_knuth_lfib_get_array
|
187 |
+
nettle_knuth_lfib_init
|
188 |
+
nettle_knuth_lfib_random
|
189 |
+
nettle_hmac_streebog256
|
190 |
+
nettle_hmac_streebog512
|
191 |
+
nettle_hmac_sha512
|
192 |
+
nettle_hmac_sha384
|
193 |
+
nettle_hmac_sha256
|
194 |
+
nettle_hmac_sha224
|
195 |
+
nettle_hmac_sha1
|
196 |
+
nettle_hmac_ripemd160
|
197 |
+
nettle_hmac_md5
|
198 |
+
nettle_hmac_streebog256_digest
|
199 |
+
nettle_hmac_streebog256_set_key
|
200 |
+
nettle_hmac_streebog512_digest
|
201 |
+
nettle_hmac_streebog512_set_key
|
202 |
+
nettle_hmac_streebog512_update
|
203 |
+
nettle_hmac_sha512_digest
|
204 |
+
nettle_hmac_sha512_set_key
|
205 |
+
nettle_hmac_sha512_update
|
206 |
+
nettle_hmac_sha384_digest
|
207 |
+
nettle_hmac_sha384_set_key
|
208 |
+
nettle_hmac_sha256_digest
|
209 |
+
nettle_hmac_sha256_set_key
|
210 |
+
nettle_hmac_sha256_update
|
211 |
+
nettle_hmac_sha224_digest
|
212 |
+
nettle_hmac_sha224_set_key
|
213 |
+
nettle_hmac_sha1_digest
|
214 |
+
nettle_hmac_sha1_set_key
|
215 |
+
nettle_hmac_sha1_update
|
216 |
+
nettle_hmac_ripemd160_digest
|
217 |
+
nettle_hmac_ripemd160_set_key
|
218 |
+
nettle_hmac_ripemd160_update
|
219 |
+
nettle_hmac_md5_digest
|
220 |
+
nettle_hmac_md5_set_key
|
221 |
+
nettle_hmac_md5_update
|
222 |
+
nettle_hmac_gosthash94_digest
|
223 |
+
nettle_hmac_gosthash94_set_key
|
224 |
+
nettle_hmac_gosthash94_update
|
225 |
+
nettle_hmac_gosthash94cp_digest
|
226 |
+
nettle_hmac_gosthash94cp_set_key
|
227 |
+
nettle_hmac_gosthash94cp_update
|
228 |
+
nettle_hmac_digest
|
229 |
+
nettle_hmac_set_key
|
230 |
+
nettle_hmac_update
|
231 |
+
nettle_gosthash94
|
232 |
+
nettle_gosthash94cp
|
233 |
+
nettle_gosthash94_digest
|
234 |
+
nettle_gosthash94_init
|
235 |
+
nettle_gosthash94_update
|
236 |
+
nettle_gosthash94cp_digest
|
237 |
+
nettle_gosthash94cp_update
|
238 |
+
_nettle_gost28147_encrypt_block
|
239 |
+
_nettle_gost28147_param_CryptoPro_3411
|
240 |
+
_nettle_gost28147_param_test_3411
|
241 |
+
nettle_cmac_des3
|
242 |
+
nettle_cmac_aes256
|
243 |
+
nettle_cmac_aes128
|
244 |
+
nettle_cmac_des3_digest
|
245 |
+
nettle_cmac_des3_set_key
|
246 |
+
nettle_cmac_des3_update
|
247 |
+
nettle_cmac_aes256_digest
|
248 |
+
nettle_cmac_aes256_set_key
|
249 |
+
nettle_cmac_aes256_update
|
250 |
+
nettle_cmac_aes128_digest
|
251 |
+
nettle_cmac_aes128_set_key
|
252 |
+
nettle_cmac_aes128_update
|
253 |
+
nettle_cmac64_digest
|
254 |
+
nettle_cmac64_init
|
255 |
+
nettle_cmac64_set_key
|
256 |
+
nettle_cmac64_update
|
257 |
+
nettle_cmac128_digest
|
258 |
+
nettle_cmac128_init
|
259 |
+
nettle_cmac128_set_key
|
260 |
+
nettle_cmac128_update
|
261 |
+
nettle_gcm_camellia256
|
262 |
+
nettle_gcm_camellia256_decrypt
|
263 |
+
nettle_gcm_camellia256_digest
|
264 |
+
nettle_gcm_camellia256_encrypt
|
265 |
+
nettle_gcm_camellia256_set_iv
|
266 |
+
nettle_gcm_camellia256_set_key
|
267 |
+
nettle_gcm_camellia256_update
|
268 |
+
nettle_gcm_camellia128
|
269 |
+
nettle_gcm_camellia128_decrypt
|
270 |
+
nettle_gcm_camellia128_digest
|
271 |
+
nettle_gcm_camellia128_encrypt
|
272 |
+
nettle_gcm_camellia128_set_iv
|
273 |
+
nettle_gcm_camellia128_set_key
|
274 |
+
nettle_gcm_camellia128_update
|
275 |
+
nettle_gcm_aes256
|
276 |
+
nettle_gcm_aes256_decrypt
|
277 |
+
nettle_gcm_aes256_digest
|
278 |
+
nettle_gcm_aes256_encrypt
|
279 |
+
nettle_gcm_aes256_set_iv
|
280 |
+
nettle_gcm_aes256_set_key
|
281 |
+
nettle_gcm_aes256_update
|
282 |
+
nettle_gcm_aes192
|
283 |
+
nettle_gcm_aes192_decrypt
|
284 |
+
nettle_gcm_aes192_digest
|
285 |
+
nettle_gcm_aes192_encrypt
|
286 |
+
nettle_gcm_aes192_set_iv
|
287 |
+
nettle_gcm_aes192_set_key
|
288 |
+
nettle_gcm_aes192_update
|
289 |
+
nettle_gcm_aes128
|
290 |
+
nettle_gcm_aes128_decrypt
|
291 |
+
nettle_gcm_aes128_digest
|
292 |
+
nettle_gcm_aes128_encrypt
|
293 |
+
nettle_gcm_aes128_set_iv
|
294 |
+
nettle_gcm_aes128_set_key
|
295 |
+
nettle_gcm_aes128_update
|
296 |
+
nettle_gcm_aes_decrypt
|
297 |
+
nettle_gcm_aes_digest
|
298 |
+
nettle_gcm_aes_encrypt
|
299 |
+
nettle_gcm_aes_set_iv
|
300 |
+
nettle_gcm_aes_set_key
|
301 |
+
nettle_gcm_aes_update
|
302 |
+
nettle_gcm_decrypt
|
303 |
+
nettle_gcm_digest
|
304 |
+
nettle_gcm_encrypt
|
305 |
+
nettle_gcm_set_iv
|
306 |
+
nettle_gcm_set_key
|
307 |
+
nettle_gcm_update
|
308 |
+
nettle_eax_aes128
|
309 |
+
nettle_eax_aes128_decrypt
|
310 |
+
nettle_eax_aes128_digest
|
311 |
+
nettle_eax_aes128_encrypt
|
312 |
+
nettle_eax_aes128_set_key
|
313 |
+
nettle_eax_aes128_set_nonce
|
314 |
+
nettle_eax_aes128_update
|
315 |
+
nettle_eax_decrypt
|
316 |
+
nettle_eax_digest
|
317 |
+
nettle_eax_encrypt
|
318 |
+
nettle_eax_set_key
|
319 |
+
nettle_eax_set_nonce
|
320 |
+
nettle_eax_update
|
321 |
+
nettle_des3_decrypt
|
322 |
+
nettle_des3_encrypt
|
323 |
+
nettle_des3_set_key
|
324 |
+
nettle_des_check_parity
|
325 |
+
nettle_des_decrypt
|
326 |
+
nettle_des_encrypt
|
327 |
+
nettle_des_fix_parity
|
328 |
+
nettle_des_set_key
|
329 |
+
_nettle_ctr_crypt16
|
330 |
+
nettle_ctr_crypt
|
331 |
+
nettle_chacha_set_counter
|
332 |
+
nettle_chacha_set_counter32
|
333 |
+
nettle_chacha_set_nonce
|
334 |
+
nettle_chacha_set_nonce96
|
335 |
+
nettle_chacha_set_key
|
336 |
+
nettle_chacha_poly1305
|
337 |
+
nettle_chacha_poly1305_decrypt
|
338 |
+
nettle_chacha_poly1305_digest
|
339 |
+
nettle_chacha_poly1305_encrypt
|
340 |
+
nettle_chacha_poly1305_set_key
|
341 |
+
nettle_chacha_poly1305_set_nonce
|
342 |
+
nettle_chacha_poly1305_update
|
343 |
+
_nettle_chacha_core
|
344 |
+
nettle_chacha_crypt
|
345 |
+
nettle_chacha_crypt32
|
346 |
+
nettle_cnd_memcpy
|
347 |
+
nettle_siv_cmac_aes256_decrypt_message
|
348 |
+
nettle_siv_cmac_aes256_encrypt_message
|
349 |
+
nettle_siv_cmac_aes256_set_key
|
350 |
+
nettle_siv_cmac_aes128_decrypt_message
|
351 |
+
nettle_siv_cmac_aes128_encrypt_message
|
352 |
+
nettle_siv_cmac_aes128_set_key
|
353 |
+
nettle_siv_cmac_decrypt_message
|
354 |
+
nettle_siv_cmac_encrypt_message
|
355 |
+
nettle_siv_cmac_set_key
|
356 |
+
nettle_cfb8_decrypt
|
357 |
+
nettle_cfb8_encrypt
|
358 |
+
nettle_cfb_decrypt
|
359 |
+
nettle_cfb_encrypt
|
360 |
+
nettle_ccm_aes256_decrypt
|
361 |
+
nettle_ccm_aes256_decrypt_message
|
362 |
+
nettle_ccm_aes256_digest
|
363 |
+
nettle_ccm_aes256_encrypt
|
364 |
+
nettle_ccm_aes256_encrypt_message
|
365 |
+
nettle_ccm_aes256_set_key
|
366 |
+
nettle_ccm_aes256_set_nonce
|
367 |
+
nettle_ccm_aes256_update
|
368 |
+
nettle_ccm_aes192_decrypt
|
369 |
+
nettle_ccm_aes192_decrypt_message
|
370 |
+
nettle_ccm_aes192_digest
|
371 |
+
nettle_ccm_aes192_encrypt
|
372 |
+
nettle_ccm_aes192_encrypt_message
|
373 |
+
nettle_ccm_aes192_set_key
|
374 |
+
nettle_ccm_aes192_set_nonce
|
375 |
+
nettle_ccm_aes192_update
|
376 |
+
nettle_ccm_aes128_decrypt
|
377 |
+
nettle_ccm_aes128_decrypt_message
|
378 |
+
nettle_ccm_aes128_digest
|
379 |
+
nettle_ccm_aes128_encrypt
|
380 |
+
nettle_ccm_aes128_encrypt_message
|
381 |
+
nettle_ccm_aes128_set_key
|
382 |
+
nettle_ccm_aes128_set_nonce
|
383 |
+
nettle_ccm_aes128_update
|
384 |
+
nettle_ccm_decrypt
|
385 |
+
nettle_ccm_decrypt_message
|
386 |
+
nettle_ccm_digest
|
387 |
+
nettle_ccm_encrypt
|
388 |
+
nettle_ccm_encrypt_message
|
389 |
+
nettle_ccm_set_nonce
|
390 |
+
nettle_ccm_update
|
391 |
+
nettle_cbc_decrypt
|
392 |
+
nettle_cbc_encrypt
|
393 |
+
nettle_cast128
|
394 |
+
nettle_cast128_decrypt
|
395 |
+
nettle_cast128_encrypt
|
396 |
+
nettle_cast128_set_key
|
397 |
+
nettle_cast5_set_key
|
398 |
+
nettle_camellia256
|
399 |
+
nettle_camellia192_set_decrypt_key
|
400 |
+
nettle_camellia256_invert_key
|
401 |
+
nettle_camellia256_set_decrypt_key
|
402 |
+
nettle_camellia256_crypt
|
403 |
+
nettle_camellia192_set_encrypt_key
|
404 |
+
nettle_camellia256_set_encrypt_key
|
405 |
+
nettle_camellia192
|
406 |
+
nettle_camellia128
|
407 |
+
nettle_camellia128_invert_key
|
408 |
+
nettle_camellia_set_decrypt_key
|
409 |
+
nettle_camellia128_crypt
|
410 |
+
nettle_camellia128_set_encrypt_key
|
411 |
+
_nettle_camellia_invert_key
|
412 |
+
_nettle_camellia_absorb
|
413 |
+
_nettle_camellia_table
|
414 |
+
_nettle_camellia_crypt
|
415 |
+
nettle_buffer_init
|
416 |
+
nettle_buffer_clear
|
417 |
+
nettle_buffer_copy
|
418 |
+
nettle_buffer_grow
|
419 |
+
nettle_buffer_init_realloc
|
420 |
+
nettle_buffer_init_size
|
421 |
+
nettle_buffer_reset
|
422 |
+
nettle_buffer_space
|
423 |
+
nettle_buffer_write
|
424 |
+
nettle_base64url
|
425 |
+
nettle_base64url_decode_init
|
426 |
+
nettle_base64url_encode_init
|
427 |
+
nettle_base64
|
428 |
+
nettle_base64_decode_final
|
429 |
+
nettle_base64_decode_init
|
430 |
+
nettle_base64_decode_single
|
431 |
+
nettle_base64_decode_update
|
432 |
+
nettle_base64_encode_final
|
433 |
+
nettle_base64_encode_group
|
434 |
+
nettle_base64_encode_init
|
435 |
+
nettle_base64_encode_raw
|
436 |
+
nettle_base64_encode_single
|
437 |
+
nettle_base64_encode_update
|
438 |
+
nettle_base16
|
439 |
+
nettle_base16_decode_final
|
440 |
+
nettle_base16_decode_init
|
441 |
+
nettle_base16_decode_single
|
442 |
+
nettle_base16_decode_update
|
443 |
+
nettle_base16_encode_single
|
444 |
+
nettle_base16_encode_update
|
445 |
+
nettle_blowfish_bcrypt_hash
|
446 |
+
nettle_blowfish_bcrypt_verify
|
447 |
+
_nettle_blowfish_encround
|
448 |
+
_nettle_blowfish_initial_ctx
|
449 |
+
nettle_blowfish128_set_key
|
450 |
+
nettle_blowfish_decrypt
|
451 |
+
nettle_blowfish_encrypt
|
452 |
+
nettle_blowfish_set_key
|
453 |
+
nettle_arctwo128
|
454 |
+
nettle_arctwo40
|
455 |
+
nettle_arctwo64
|
456 |
+
nettle_arctwo_gutmann128
|
457 |
+
nettle_arctwo128_set_key
|
458 |
+
nettle_arctwo128_set_key_gutmann
|
459 |
+
nettle_arctwo40_set_key
|
460 |
+
nettle_arctwo64_set_key
|
461 |
+
nettle_arctwo_decrypt
|
462 |
+
nettle_arctwo_encrypt
|
463 |
+
nettle_arctwo_set_key
|
464 |
+
nettle_arctwo_set_key_ekb
|
465 |
+
nettle_arctwo_set_key_gutmann
|
466 |
+
nettle_arcfour_crypt
|
467 |
+
nettle_arcfour128_set_key
|
468 |
+
nettle_arcfour_set_key
|
469 |
+
nettle_aes256
|
470 |
+
nettle_aes256_invert_key
|
471 |
+
nettle_aes256_set_decrypt_key
|
472 |
+
nettle_aes256_set_encrypt_key
|
473 |
+
nettle_aes192
|
474 |
+
nettle_aes192_invert_key
|
475 |
+
nettle_aes192_set_decrypt_key
|
476 |
+
nettle_aes192_set_encrypt_key
|
477 |
+
nettle_aes128
|
478 |
+
nettle_aes128_invert_key
|
479 |
+
nettle_aes128_set_decrypt_key
|
480 |
+
nettle_aes128_set_encrypt_key
|
481 |
+
nettle_aes_invert_key
|
482 |
+
nettle_aes_set_decrypt_key
|
483 |
+
nettle_aes_set_encrypt_key
|
484 |
+
_nettle_aes_set_key
|
485 |
+
_nettle_aes_invert
|
486 |
+
_nettle_aes_encrypt_table
|
487 |
+
nettle_aes128_encrypt
|
488 |
+
nettle_aes192_encrypt
|
489 |
+
nettle_aes256_encrypt
|
490 |
+
nettle_aes_encrypt
|
491 |
+
_nettle_aes_encrypt
|
492 |
+
nettle_aes128_decrypt
|
493 |
+
nettle_aes192_decrypt
|
494 |
+
nettle_aes256_decrypt
|
495 |
+
nettle_aes_decrypt
|
496 |
+
_nettle_aes_decrypt
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/portfile.cmake
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_list(SET patches)
|
2 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
3 |
+
vcpkg_list(SET patches
|
4 |
+
yasm.patch # the asm changes are a downgrade to an older version
|
5 |
+
compile.patch
|
6 |
+
libname-windows.patch # Apply common libtool rules for lib naming.
|
7 |
+
)
|
8 |
+
endif()
|
9 |
+
|
10 |
+
vcpkg_from_gitlab(
|
11 |
+
GITLAB_URL https://git.lysator.liu.se/
|
12 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
13 |
+
REPO nettle/nettle
|
14 |
+
REF 52bacacaf4339fd78289f58919732f1f35bea1c1 #v3.7.3
|
15 |
+
SHA512 0130d14195274eeec11e8299793e3037f4b84d8fb4b5c5c9392b63ee693ed5713434070744b1a44e14a6a5090d655917c1dd296e2011cd99e3c316ef5d8ee395
|
16 |
+
HEAD_REF master
|
17 |
+
PATCHES
|
18 |
+
fix-InstallLibPath.patch
|
19 |
+
flags.patch
|
20 |
+
${patches}
|
21 |
+
)
|
22 |
+
|
23 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
24 |
+
vcpkg_list(SET OPTIONS --disable-static)
|
25 |
+
else()
|
26 |
+
vcpkg_list(SET OPTIONS --disable-shared)
|
27 |
+
endif()
|
28 |
+
|
29 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
30 |
+
set(ENV{CCAS} "${CURRENT_HOST_INSTALLED_DIR}/tools/yasm/yasm${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
31 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
32 |
+
set(asmflag win64)
|
33 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
34 |
+
set(asmflag win32)
|
35 |
+
endif()
|
36 |
+
set(ENV{ASMFLAGS} "-Xvc -f ${asmflag} -pgas -rraw")
|
37 |
+
vcpkg_list(APPEND OPTIONS
|
38 |
+
ac_cv_func_memset=yes
|
39 |
+
nettle_cv_asm_type_percent_function=no
|
40 |
+
nettle_cv_asm_align_log=no
|
41 |
+
)
|
42 |
+
endif()
|
43 |
+
|
44 |
+
if(VCPKG_CROSSCOMPILING)
|
45 |
+
# Silly trick to make configure accept CC_FOR_BUILD but in reallity CC_FOR_BUILD is deactivated.
|
46 |
+
set(ENV{CC_FOR_BUILD} "touch a.out | touch conftest${VCPKG_HOST_EXECUTABLE_SUFFIX} | true")
|
47 |
+
endif()
|
48 |
+
|
49 |
+
vcpkg_configure_make(
|
50 |
+
SOURCE_PATH ${SOURCE_PATH}
|
51 |
+
AUTOCONFIG
|
52 |
+
OPTIONS
|
53 |
+
--disable-documentation
|
54 |
+
--disable-openssl
|
55 |
+
${OPTIONS}
|
56 |
+
)
|
57 |
+
|
58 |
+
set(tool_names des ecc) # aes gcm sha twofish?
|
59 |
+
list(TRANSFORM tool_names APPEND "data")
|
60 |
+
list(TRANSFORM tool_names APPEND "${VCPKG_HOST_EXECUTABLE_SUFFIX}")
|
61 |
+
|
62 |
+
if(VCPKG_CROSSCOMPILING)
|
63 |
+
list(TRANSFORM tool_names PREPEND "${CURRENT_HOST_INSTALLED_DIR}/manual-tools/${PORT}/")
|
64 |
+
file(COPY ${tool_names} DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/")
|
65 |
+
if(NOT VCPKG_BUILD_TYPE)
|
66 |
+
file(COPY ${tool_names} DESTINATION "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/")
|
67 |
+
endif()
|
68 |
+
endif()
|
69 |
+
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
70 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
71 |
+
# def files are created by running 'llvm-nm <libname> | findstr /R /C:"[RT] _*nettle_"' on the static build and replacing '00[0-9abcdef]+ [RT]' with spaces
|
72 |
+
# please update the defs if the version is bumped
|
73 |
+
set(build_dir "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/")
|
74 |
+
configure_file(
|
75 |
+
"${CURRENT_PORT_DIR}/nettle-${VCPKG_TARGET_ARCHITECTURE}.def"
|
76 |
+
"${build_dir}/nettle.def"
|
77 |
+
COPYONLY
|
78 |
+
)
|
79 |
+
configure_file(
|
80 |
+
"${CURRENT_PORT_DIR}/hogweed-${VCPKG_TARGET_ARCHITECTURE}.def"
|
81 |
+
"${build_dir}/hogweed.def"
|
82 |
+
COPYONLY
|
83 |
+
)
|
84 |
+
if(NOT VCPKG_BUILD_TYPE)
|
85 |
+
set(build_dir "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg/")
|
86 |
+
configure_file(
|
87 |
+
"${CURRENT_PORT_DIR}/nettle-${VCPKG_TARGET_ARCHITECTURE}.def"
|
88 |
+
"${build_dir}/nettle.def"
|
89 |
+
COPYONLY
|
90 |
+
)
|
91 |
+
configure_file("${CURRENT_PORT_DIR}/hogweed-${VCPKG_TARGET_ARCHITECTURE}.def"
|
92 |
+
"${build_dir}/hogweed.def"
|
93 |
+
COPYONLY
|
94 |
+
)
|
95 |
+
endif()
|
96 |
+
endif()
|
97 |
+
endif()
|
98 |
+
vcpkg_install_make()
|
99 |
+
|
100 |
+
if(NOT VCPKG_CROSSCOMPILING)
|
101 |
+
list(TRANSFORM tool_names PREPEND "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/")
|
102 |
+
file(COPY ${tool_names} DESTINATION "${CURRENT_PACKAGES_DIR}/manual-tools/${PORT}")
|
103 |
+
endif()
|
104 |
+
|
105 |
+
vcpkg_fixup_pkgconfig()
|
106 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share/")
|
107 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
108 |
+
|
109 |
+
file(INSTALL "${SOURCE_PATH}/COPYINGv3"
|
110 |
+
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
|
111 |
+
RENAME copyright
|
112 |
+
)
|
113 |
+
|
114 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static" OR VCPKG_TARGET_IS_LINUX)
|
115 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
116 |
+
endif()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/remove_gmpd.patch
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/SMP/libnettle.vcxproj b/SMP/libnettle.vcxproj
|
2 |
+
index 51fa24113..5d418b53e 100644
|
3 |
+
--- a/SMP/libnettle.vcxproj
|
4 |
+
+++ b/SMP/libnettle.vcxproj
|
5 |
+
@@ -245,7 +245,7 @@ del /f /q $(OutDir)\licenses\nettle.txt
|
6 |
+
</ClCompile>
|
7 |
+
<Link>
|
8 |
+
<ModuleDefinitionFile>libnettle.def</ModuleDefinitionFile>
|
9 |
+
- <AdditionalDependencies>gmpd.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
10 |
+
+ <AdditionalDependencies>gmp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
11 |
+
</Link>
|
12 |
+
<PostBuildEvent>
|
13 |
+
<Command>mkdir "$(OutDir)"\include
|
14 |
+
@@ -359,7 +359,7 @@ del /f /q $(OutDir)\licenses\nettle.txt
|
15 |
+
</ClCompile>
|
16 |
+
<Link>
|
17 |
+
<ModuleDefinitionFile>libnettle.def</ModuleDefinitionFile>
|
18 |
+
- <AdditionalDependencies>gmpd.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
19 |
+
+ <AdditionalDependencies>gmp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
20 |
+
</Link>
|
21 |
+
<PostBuildEvent>
|
22 |
+
<Command>mkdir "$(OutDir)"\include
|
23 |
+
diff --git a/SMP/libhogweed.vcxproj b/SMP/libhogweed.vcxproj
|
24 |
+
index 8f2f433bc..dae3458d8 100644
|
25 |
+
--- a/SMP/libhogweed.vcxproj
|
26 |
+
+++ b/SMP/libhogweed.vcxproj
|
27 |
+
@@ -247,7 +247,7 @@ del /f /q $(OutDir)\licenses\nettle.txt
|
28 |
+
</ClCompile>
|
29 |
+
<Link>
|
30 |
+
<ModuleDefinitionFile>libhogweed.def</ModuleDefinitionFile>
|
31 |
+
- <AdditionalDependencies>nettled.lib;gmpd.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
32 |
+
+ <AdditionalDependencies>nettled.lib;gmp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
33 |
+
<AdditionalOptions>/IGNORE:4006,4221,4078 %(AdditionalOptions)</AdditionalOptions>
|
34 |
+
</Link>
|
35 |
+
<PostBuildEvent>
|
36 |
+
@@ -362,7 +362,7 @@ del /f /q $(OutDir)\licenses\nettle.txt
|
37 |
+
</ClCompile>
|
38 |
+
<Link>
|
39 |
+
<ModuleDefinitionFile>libhogweed.def</ModuleDefinitionFile>
|
40 |
+
- <AdditionalDependencies>nettled.lib;gmpd.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
41 |
+
+ <AdditionalDependencies>nettled.lib;gmp.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
42 |
+
<AdditionalOptions>/IGNORE:4006,4221,4078 %(AdditionalOptions)</AdditionalOptions>
|
43 |
+
</Link>
|
44 |
+
<PostBuildEvent>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/vcpkg.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nettle",
|
3 |
+
"version": "3.7.3",
|
4 |
+
"description": "Nettle is a low-level cryptographic library that is designed to fit easily in more or less any context: In crypto toolkits for object-oriented languages (C++, Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.",
|
5 |
+
"homepage": "https://git.lysator.liu.se/nettle/nettle",
|
6 |
+
"license": null,
|
7 |
+
"dependencies": [
|
8 |
+
"gmp",
|
9 |
+
{
|
10 |
+
"name": "nettle",
|
11 |
+
"host": true
|
12 |
+
},
|
13 |
+
{
|
14 |
+
"name": "yasm",
|
15 |
+
"host": true,
|
16 |
+
"features": [
|
17 |
+
"tools"
|
18 |
+
],
|
19 |
+
"platform": "windows"
|
20 |
+
}
|
21 |
+
]
|
22 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nettle/yasm.patch
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/Makefile.in b/Makefile.in
|
2 |
+
index b65ff4960..3887d0c8f 100644
|
3 |
+
--- a/Makefile.in
|
4 |
+
+++ b/Makefile.in
|
5 |
+
@@ -291,7 +291,7 @@ libhogweed.a: $(hogweed_OBJS)
|
6 |
+
|
7 |
+
%.$(OBJEXT): %.asm $(srcdir)/m4-utils.m4 $(srcdir)/asm.m4 config.m4 machine.m4
|
8 |
+
$(M4) $(srcdir)/m4-utils.m4 $(srcdir)/asm.m4 config.m4 machine.m4 $< >$*.s
|
9 |
+
- $(COMPILE) -c $*.s
|
10 |
+
+ $(COMPILE_AS) -o $*.$(OBJEXT) $*.s
|
11 |
+
|
12 |
+
%.$(OBJEXT): %.c
|
13 |
+
$(COMPILE) -c $< \
|
14 |
+
diff --git a/config.make.in b/config.make.in
|
15 |
+
index f8e1f74ef..3ae593385 100644
|
16 |
+
--- a/config.make.in
|
17 |
+
+++ b/config.make.in
|
18 |
+
@@ -73,6 +73,7 @@ TEST_SHLIB_DIR = ${abs_top_builddir}/.lib
|
19 |
+
# flags before CPPFLAGS and LDFLAGS. While EXTRA_CFLAGS are added at the end.
|
20 |
+
|
21 |
+
COMPILE = $(CC) $(PRE_CPPFLAGS) $(CPPFLAGS) $(DEFS) $(CFLAGS) $(EXTRA_CFLAGS) $(DEP_FLAGS)
|
22 |
+
+COMPILE_AS = $(CCAS) $(PRE_CPPFLAGS) $(CPPFLAGS) $(DEFS) $(ASMFLAGS) $(DEP_FLAGS)
|
23 |
+
COMPILE_CXX = $(CXX) $(PRE_CPPFLAGS) $(CPPFLAGS) $(DEFS) $(CXXFLAGS) $(DEP_FLAGS)
|
24 |
+
LINK = $(CC) $(CFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
|
25 |
+
LINK_CXX = $(CXX) $(CXXFLAGS) $(PRE_LDFLAGS) $(LDFLAGS)
|
26 |
+
diff --git a/configure.ac b/configure.ac
|
27 |
+
index e95f1c825..1d7ef36bb 100644
|
28 |
+
--- a/configure.ac
|
29 |
+
+++ b/configure.ac
|
30 |
+
@@ -118,6 +118,9 @@ LSH_RPATH_INIT([`echo $with_lib_path | sed 's/:/ /g'` \
|
31 |
+
|
32 |
+
# Checks for programs.
|
33 |
+
AC_PROG_CC
|
34 |
+
+# Copied from gmp
|
35 |
+
+test -n "$CCAS" || CCAS="$CC -c"
|
36 |
+
+AC_SUBST(CCAS)
|
37 |
+
|
38 |
+
NETTLE_CHECK_IFUNC
|
39 |
+
|
40 |
+
@@ -302,7 +305,7 @@ ABI=standard
|
41 |
+
case "$host_cpu" in
|
42 |
+
[x86_64 | amd64])
|
43 |
+
AC_TRY_COMPILE([
|
44 |
+
-#if defined(__x86_64__) || defined(__arch64__)
|
45 |
+
+#if defined(__x86_64__) || defined(__arch64__) || defined(_M_AMD64)
|
46 |
+
#error 64-bit x86
|
47 |
+
#endif
|
48 |
+
], [], [
|
49 |
+
diff --git a/x86_64/aes.m4 b/x86_64/aes.m4
|
50 |
+
index 3bec9eae2..85cafc046 100644
|
51 |
+
--- a/x86_64/aes.m4
|
52 |
+
+++ b/x86_64/aes.m4
|
53 |
+
@@ -77,9 +77,9 @@ define(`AES_STORE', `
|
54 |
+
dnl AES_ROUND(table,a,b,c,d,out,ptr)
|
55 |
+
dnl Computes one word of the AES round. Leaves result in $6.
|
56 |
+
define(`AES_ROUND', `
|
57 |
+
- movzb LREG($2), $7
|
58 |
+
+ movzbq LREG($2), $7
|
59 |
+
movl AES_TABLE0 ($1, $7, 4),$6
|
60 |
+
- movzb HREG($3), XREG($7)
|
61 |
+
+ movzbq HREG($3), XREG($7)
|
62 |
+
xorl AES_TABLE1 ($1, $7, 4),$6
|
63 |
+
movl $4,XREG($7)
|
64 |
+
shr `$'16,$7
|
65 |
+
@@ -94,7 +94,7 @@ dnl Computes one word of the final round. Leaves result in $6. Also
|
66 |
+
dnl performs the first substitution step, on the least significant
|
67 |
+
dnl byte, and rotates 8 bits.
|
68 |
+
define(`AES_FINAL_ROUND', `
|
69 |
+
- movzb LREG($1),$7
|
70 |
+
+ movzbq LREG($1),$7
|
71 |
+
movzbl ($5, $7), $6
|
72 |
+
movl $2,XREG($7)
|
73 |
+
andl `$'0x0000ff00,XREG($7)
|
74 |
+
@@ -113,18 +113,18 @@ dnl each of eax, ebx, ecx and edx, and also rotates
|
75 |
+
dnl the words one byte to the left.
|
76 |
+
dnl Uses that AES_SBOX == 0
|
77 |
+
define(`AES_SUBST_BYTE', `
|
78 |
+
- movzb LREG($1),$6
|
79 |
+
+ movzbq LREG($1),$6
|
80 |
+
movb ($5, $6),LREG($1)
|
81 |
+
roll `$'8,$1
|
82 |
+
|
83 |
+
- movzb LREG($2),$6
|
84 |
+
+ movzbq LREG($2),$6
|
85 |
+
movb ($5, $6),LREG($2)
|
86 |
+
roll `$'8,$2
|
87 |
+
|
88 |
+
- movzb LREG($3),$6
|
89 |
+
+ movzbq LREG($3),$6
|
90 |
+
movb ($5, $6),LREG($3)
|
91 |
+
roll `$'8,$3
|
92 |
+
|
93 |
+
- movzb LREG($4),$6
|
94 |
+
+ movzbq LREG($4),$6
|
95 |
+
movb ($5, $6),LREG($4)
|
96 |
+
roll `$'8,$4')dnl
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/networkdirect-sdk/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_download_distfile(ARCHIVE
|
4 |
+
URLS "https://www.nuget.org/api/v2/package/NetworkDirect/2.0.1"
|
5 |
+
FILENAME "networkDirect-2.0.1.zip"
|
6 |
+
SHA512 97e48ab293c164a80a3ed9e51f1f9f5ae85c07ee91c49950a76b486567d2e50346a2379b8284ffcb9d7d2fe70f76eff9455dce740cf9d3e0c1b83100e25168a8
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_download_distfile(LICENSE
|
10 |
+
URLS "https://raw.githubusercontent.com/microsoft/NetworkDirect/master/LICENSE.txt"
|
11 |
+
FILENAME "networkingDirect_license.txt"
|
12 |
+
SHA512 7d79aae4c9beb85811a3e122a2b12aad231f519dd12a461ac49d52864a735a6b05a263d433c11ede1406d2e49b6dc62dd38487eb7bd8c079d7198a20cf85fc4d
|
13 |
+
)
|
14 |
+
|
15 |
+
vcpkg_extract_source_archive_ex(
|
16 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
17 |
+
ARCHIVE ${ARCHIVE}
|
18 |
+
NO_REMOVE_ONE_LEVEL
|
19 |
+
)
|
20 |
+
|
21 |
+
file(COPY ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR}/ )
|
22 |
+
|
23 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
|
24 |
+
file(COPY ${SOURCE_PATH}/lib/x64/ndutil.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib/)
|
25 |
+
file(COPY ${SOURCE_PATH}/lib/x64/ndutil.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/)
|
26 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
27 |
+
file(COPY ${SOURCE_PATH}/lib/Win32/ndutil.lib DESTINATION ${CURRENT_PACKAGES_DIR}/lib/)
|
28 |
+
file(COPY ${SOURCE_PATH}/lib/Win32/ndutil.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/)
|
29 |
+
endif()
|
30 |
+
|
31 |
+
file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/networkdirect-sdk/vcpkg.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "networkdirect-sdk",
|
3 |
+
"version": "2.0.1",
|
4 |
+
"port-version": 3,
|
5 |
+
"description": "The Network Direct architecture allows hardware vendors to expose the advanced capabilities of their networking devices.",
|
6 |
+
"homepage": "https://www.nuget.org/packages/NetworkDirect",
|
7 |
+
"supports": "windows & (x64 | x86) & !uwp"
|
8 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nghttp2/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO nghttp2/nghttp2
|
4 |
+
REF 7af0c508be9cbec407268e2f546f597d268c104e # v1.46.0
|
5 |
+
SHA512 e25e8a43d0f9523f654d9136c2b9db30cfa5e8086da3fe3e9bcf68ff8c034383550ca17d89d31cd14e23b5886a0a948d777b4e182d0a042ccfe9a8083410de93
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" ENABLE_STATIC_CRT)
|
10 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC_LIB)
|
11 |
+
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED_LIB)
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
15 |
+
OPTIONS
|
16 |
+
-DENABLE_LIB_ONLY=ON
|
17 |
+
-DENABLE_ASIO_LIB=OFF
|
18 |
+
"-DENABLE_STATIC_CRT=${ENABLE_STATIC_CRT}"
|
19 |
+
"-DENABLE_STATIC_LIB=${ENABLE_STATIC_LIB}"
|
20 |
+
"-DENABLE_SHARED_LIB=${ENABLE_SHARED_LIB}"
|
21 |
+
)
|
22 |
+
vcpkg_cmake_install()
|
23 |
+
vcpkg_copy_pdbs()
|
24 |
+
vcpkg_fixup_pkgconfig()
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE
|
27 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
28 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
29 |
+
"${CURRENT_PACKAGES_DIR}/share/man"
|
30 |
+
"${CURRENT_PACKAGES_DIR}/share/doc"
|
31 |
+
)
|
32 |
+
|
33 |
+
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
34 |
+
file(REMOVE_RECURSE
|
35 |
+
"${CURRENT_PACKAGES_DIR}/bin"
|
36 |
+
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
37 |
+
)
|
38 |
+
file(APPEND "${CURRENT_PACKAGES_DIR}/include/nghttp2/nghttp2ver.h" [[
|
39 |
+
#ifndef NGHTTP2_STATICLIB
|
40 |
+
# define NGHTTP2_STATICLIB
|
41 |
+
#endif
|
42 |
+
]])
|
43 |
+
endif()
|
44 |
+
|
45 |
+
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nghttp2/vcpkg.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nghttp2",
|
3 |
+
"version": "1.46.0",
|
4 |
+
"description": "Implementation of the Hypertext Transfer Protocol version 2 in C",
|
5 |
+
"homepage": "https://github.com/nghttp2/nghttp2",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "vcpkg-cmake",
|
9 |
+
"host": true
|
10 |
+
}
|
11 |
+
]
|
12 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/Fix-C2065.patch
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/visualc/sharedspice.vcxproj b/visualc/sharedspice.vcxproj
|
2 |
+
index 51a5725..6f41ea1 100644
|
3 |
+
--- a/visualc/sharedspice.vcxproj
|
4 |
+
+++ b/visualc/sharedspice.vcxproj
|
5 |
+
@@ -113,7 +113,7 @@
|
6 |
+
<ClCompile>
|
7 |
+
<Optimization>Disabled</Optimization>
|
8 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;..\src\spicelib\parser;src\include;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
9 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;SHARED_MODULE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
10 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;SHARED_MODULE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
11 |
+
<PreprocessToFile>false</PreprocessToFile>
|
12 |
+
<PreprocessSuppressLineNumbers>false</PreprocessSuppressLineNumbers>
|
13 |
+
<MinimalRebuild>false</MinimalRebuild>
|
14 |
+
@@ -157,7 +157,7 @@
|
15 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
16 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
17 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;..\src\spicelib\parser;src\include;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
18 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;SHARED_MODULE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
19 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;SHARED_MODULE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
20 |
+
<MinimalRebuild>false</MinimalRebuild>
|
21 |
+
<ExceptionHandling />
|
22 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
23 |
+
@@ -199,7 +199,7 @@
|
24 |
+
<ClCompile>
|
25 |
+
<Optimization>Disabled</Optimization>
|
26 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;..\src\spicelib\parser;src\include;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
27 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;SHARED_MODULE;CONFIG64;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
28 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;SHARED_MODULE;CONFIG64;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
29 |
+
<PreprocessToFile>false</PreprocessToFile>
|
30 |
+
<PreprocessSuppressLineNumbers>false</PreprocessSuppressLineNumbers>
|
31 |
+
<MinimalRebuild>false</MinimalRebuild>
|
32 |
+
@@ -248,7 +248,7 @@
|
33 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
34 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
35 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;..\src\spicelib\parser;src\include;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
36 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;SHARED_MODULE;CONFIG64;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
37 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;SHARED_MODULE;CONFIG64;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
38 |
+
<MinimalRebuild>false</MinimalRebuild>
|
39 |
+
<ExceptionHandling>
|
40 |
+
</ExceptionHandling>
|
41 |
+
@@ -292,7 +292,7 @@
|
42 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
43 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
44 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;..\src\spicelib\parser;src\include;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
45 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;SHARED_MODULE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
46 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;SHARED_MODULE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
47 |
+
<MinimalRebuild>false</MinimalRebuild>
|
48 |
+
<ExceptionHandling />
|
49 |
+
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
50 |
+
@@ -337,7 +337,7 @@
|
51 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
52 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
53 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;..\src\spicelib\parser;src\include;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
54 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;SHARED_MODULE;CONFIG64;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
55 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;SHARED_MODULE;CONFIG64;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
56 |
+
<MinimalRebuild>false</MinimalRebuild>
|
57 |
+
<ExceptionHandling>
|
58 |
+
</ExceptionHandling>
|
59 |
+
diff --git a/visualc/vngspice.vcxproj b/visualc/vngspice.vcxproj
|
60 |
+
index a9d916e..393a128 100644
|
61 |
+
--- a/visualc/vngspice.vcxproj
|
62 |
+
+++ b/visualc/vngspice.vcxproj
|
63 |
+
@@ -212,7 +212,7 @@
|
64 |
+
<ClCompile>
|
65 |
+
<Optimization>Disabled</Optimization>
|
66 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
67 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
68 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
69 |
+
<MinimalRebuild>false</MinimalRebuild>
|
70 |
+
<ExceptionHandling>
|
71 |
+
</ExceptionHandling>
|
72 |
+
@@ -259,7 +259,7 @@
|
73 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
74 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
75 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
76 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
77 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
78 |
+
<MinimalRebuild>false</MinimalRebuild>
|
79 |
+
<ExceptionHandling>
|
80 |
+
</ExceptionHandling>
|
81 |
+
@@ -310,7 +310,7 @@
|
82 |
+
<ClCompile>
|
83 |
+
<Optimization>Disabled</Optimization>
|
84 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
85 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
86 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
87 |
+
<MinimalRebuild>false</MinimalRebuild>
|
88 |
+
<ExceptionHandling>
|
89 |
+
</ExceptionHandling>
|
90 |
+
@@ -361,7 +361,7 @@
|
91 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
92 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
93 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
94 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
95 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
96 |
+
<MinimalRebuild>false</MinimalRebuild>
|
97 |
+
<ExceptionHandling>
|
98 |
+
</ExceptionHandling>
|
99 |
+
@@ -411,7 +411,7 @@
|
100 |
+
<ClCompile>
|
101 |
+
<Optimization>Disabled</Optimization>
|
102 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
103 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
104 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
105 |
+
<MinimalRebuild>false</MinimalRebuild>
|
106 |
+
<ExceptionHandling>
|
107 |
+
</ExceptionHandling>
|
108 |
+
@@ -458,7 +458,7 @@
|
109 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
110 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
111 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
112 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
113 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
114 |
+
<MinimalRebuild>false</MinimalRebuild>
|
115 |
+
<ExceptionHandling>
|
116 |
+
</ExceptionHandling>
|
117 |
+
@@ -508,7 +508,7 @@
|
118 |
+
<ClCompile>
|
119 |
+
<Optimization>Disabled</Optimization>
|
120 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
121 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;CONSOLE;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
122 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);NGDEBUG;CONSOLE;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
123 |
+
<MinimalRebuild>false</MinimalRebuild>
|
124 |
+
<ExceptionHandling>
|
125 |
+
</ExceptionHandling>
|
126 |
+
@@ -559,7 +559,7 @@
|
127 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
128 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
129 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
130 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
131 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
132 |
+
<MinimalRebuild>false</MinimalRebuild>
|
133 |
+
<ExceptionHandling>
|
134 |
+
</ExceptionHandling>
|
135 |
+
@@ -610,7 +610,7 @@
|
136 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
137 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
138 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
139 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
140 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
141 |
+
<MinimalRebuild>false</MinimalRebuild>
|
142 |
+
<ExceptionHandling>
|
143 |
+
</ExceptionHandling>
|
144 |
+
@@ -664,7 +664,7 @@
|
145 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
146 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
147 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
148 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
149 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);USE_OMP;CONFIG64;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
150 |
+
<MinimalRebuild>false</MinimalRebuild>
|
151 |
+
<ExceptionHandling>
|
152 |
+
</ExceptionHandling>
|
153 |
+
@@ -718,7 +718,7 @@
|
154 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
155 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
156 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
157 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
158 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
159 |
+
<MinimalRebuild>false</MinimalRebuild>
|
160 |
+
<ExceptionHandling>
|
161 |
+
</ExceptionHandling>
|
162 |
+
@@ -772,7 +772,7 @@
|
163 |
+
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
164 |
+
<WholeProgramOptimization>true</WholeProgramOptimization>
|
165 |
+
<AdditionalIncludeDirectories>..\src\maths\poly;..\src\frontend;..\src\spicelib\devices;tmp-bison;src\include;..\src\spicelib\parser;..\src\include;..\src\include\cppduals;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
|
166 |
+
- <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;CONFIG64;USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
167 |
+
+ <PreprocessorDefinitions>_CRT_SECURE_NO_DEPRECATE;__STDC_LIMIT_MACROS;SIMULATOR;XSPICE;_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion);CONSOLE;CONFIG64;USE_OMP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
168 |
+
<MinimalRebuild>false</MinimalRebuild>
|
169 |
+
<ExceptionHandling>
|
170 |
+
</ExceptionHandling>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/portfile.cmake
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
2 |
+
|
3 |
+
# ngspice produces self-contained DLLs
|
4 |
+
set(VCPKG_CRT_LINKAGE static)
|
5 |
+
|
6 |
+
vcpkg_from_sourceforge(
|
7 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
8 |
+
REPO ngspice/ng-spice-rework
|
9 |
+
REF 35
|
10 |
+
FILENAME "ngspice-35.tar.gz"
|
11 |
+
SHA512 2f9b0f951e3ca8d52692beadb895b352311f67b8760f99d0e2f4718fce4b497dd68e2b933029eeacb4ed57551e959bc6e3747e64feb4722a4f841e734f5a664b
|
12 |
+
PATCHES
|
13 |
+
use-winbison-sharedspice.patch
|
14 |
+
use-winbison-vngspice.patch
|
15 |
+
remove-post-build.patch
|
16 |
+
remove-64-in-codemodel-name.patch
|
17 |
+
Fix-C2065.patch
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_find_acquire_program(BISON)
|
21 |
+
|
22 |
+
get_filename_component(BISON_DIR "${BISON}" DIRECTORY)
|
23 |
+
vcpkg_add_to_path(PREPEND "${BISON_DIR}")
|
24 |
+
|
25 |
+
# Sadly, vcpkg globs .libs inside install_msbuild and whines that the 47 year old SPICE format isn't a MSVC lib ;)
|
26 |
+
# We need to kill them off first before the source tree is copied to a tmp location by install_msbuild
|
27 |
+
|
28 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/contrib")
|
29 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/examples")
|
30 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/man")
|
31 |
+
file(REMOVE_RECURSE "${SOURCE_PATH}/tests")
|
32 |
+
|
33 |
+
# this builds the main dll
|
34 |
+
vcpkg_install_msbuild(
|
35 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
36 |
+
INCLUDES_SUBPATH /src/include
|
37 |
+
LICENSE_SUBPATH COPYING
|
38 |
+
# install_msbuild swaps x86 for win32(bad) if we dont force our own setting
|
39 |
+
PLATFORM ${TRIPLET_SYSTEM_ARCH}
|
40 |
+
PROJECT_SUBPATH visualc/sharedspice.sln
|
41 |
+
TARGET Build
|
42 |
+
)
|
43 |
+
|
44 |
+
if("codemodels" IN_LIST FEATURES)
|
45 |
+
# vngspice generates "codemodels" to enhance simulation capabilities
|
46 |
+
# we cannot use install_msbuild as they output with ".cm" extensions on purpose
|
47 |
+
set(BUILDTREE_PATH "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}")
|
48 |
+
file(REMOVE_RECURSE "${BUILDTREE_PATH}")
|
49 |
+
file(COPY "${SOURCE_PATH}/" DESTINATION "${BUILDTREE_PATH}")
|
50 |
+
|
51 |
+
vcpkg_build_msbuild(
|
52 |
+
PROJECT_PATH "${BUILDTREE_PATH}/visualc/vngspice.sln"
|
53 |
+
# build_msbuild swaps x86 for win32(bad) if we dont force our own setting
|
54 |
+
PLATFORM ${TRIPLET_SYSTEM_ARCH}
|
55 |
+
TARGET Build
|
56 |
+
)
|
57 |
+
|
58 |
+
# ngspice oddly has solution configs of x64 and x86 but
|
59 |
+
# output folders of x64 and win32
|
60 |
+
if(VCPKG_TARGET_ARCHITECTURE STREQUAL x64)
|
61 |
+
set(OUT_ARCH x64)
|
62 |
+
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL x86)
|
63 |
+
set(OUT_ARCH Win32)
|
64 |
+
else()
|
65 |
+
message(FATAL_ERROR "Unsupported target architecture")
|
66 |
+
endif()
|
67 |
+
|
68 |
+
#put the code models in the intended location
|
69 |
+
file(GLOB NGSPICE_CODEMODELS_DEBUG
|
70 |
+
"${BUILDTREE_PATH}/visualc/codemodels/${OUT_ARCH}/Debug/*.cm"
|
71 |
+
)
|
72 |
+
file(COPY ${NGSPICE_CODEMODELS_DEBUG} DESTINATION "${CURRENT_PACKAGES_DIR}/debug/lib/ngspice")
|
73 |
+
|
74 |
+
file(GLOB NGSPICE_CODEMODELS_RELEASE
|
75 |
+
"${BUILDTREE_PATH}/visualc/codemodels/${OUT_ARCH}/Release/*.cm"
|
76 |
+
)
|
77 |
+
file(COPY ${NGSPICE_CODEMODELS_RELEASE} DESTINATION "${CURRENT_PACKAGES_DIR}/lib/ngspice")
|
78 |
+
|
79 |
+
|
80 |
+
# copy over spinit (spice init)
|
81 |
+
file(RENAME "${BUILDTREE_PATH}/visualc/spinit_all" "${BUILDTREE_PATH}/visualc/spinit")
|
82 |
+
file(COPY "${BUILDTREE_PATH}/visualc/spinit" DESTINATION "${CURRENT_PACKAGES_DIR}/share/ngspice")
|
83 |
+
endif()
|
84 |
+
|
85 |
+
vcpkg_copy_pdbs()
|
86 |
+
|
87 |
+
# Unforunately install_msbuild isn't able to dual include directories that effectively layer
|
88 |
+
file(GLOB NGSPICE_INCLUDES "${SOURCE_PATH}/visualc/src/include/ngspice/*")
|
89 |
+
file(COPY ${NGSPICE_INCLUDES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/ngspice")
|
90 |
+
|
91 |
+
# This gets copied by install_msbuild but should not be shared
|
92 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/cppduals")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/remove-64-in-codemodel-name.patch
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From dc6b6c0aa4205047e9fd052c401f3f357d83ef57 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Marek Roszko <[email protected]>
|
3 |
+
Date: Thu, 12 Aug 2021 22:26:43 -0400
|
4 |
+
Subject: [PATCH] Remove 64 in filename output of codemodels
|
5 |
+
|
6 |
+
---
|
7 |
+
visualc/xspice/analog.vcxproj | 4 ++--
|
8 |
+
visualc/xspice/digital.vcxproj | 4 ++--
|
9 |
+
visualc/xspice/spice2poly.vcxproj | 4 ++--
|
10 |
+
visualc/xspice/table.vcxproj | 4 ++--
|
11 |
+
visualc/xspice/xtradev.vcxproj | 4 ++--
|
12 |
+
visualc/xspice/xtraevt.vcxproj | 4 ++--
|
13 |
+
6 files changed, 12 insertions(+), 12 deletions(-)
|
14 |
+
|
15 |
+
diff --git a/visualc/xspice/analog.vcxproj b/visualc/xspice/analog.vcxproj
|
16 |
+
index cf65a37..8b320ce 100644
|
17 |
+
--- a/visualc/xspice/analog.vcxproj
|
18 |
+
+++ b/visualc/xspice/analog.vcxproj
|
19 |
+
@@ -77,12 +77,12 @@
|
20 |
+
<GenerateManifest>false</GenerateManifest>
|
21 |
+
</PropertyGroup>
|
22 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
23 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
24 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
25 |
+
<GenerateManifest>true</GenerateManifest>
|
26 |
+
<LinkIncremental>false</LinkIncremental>
|
27 |
+
</PropertyGroup>
|
28 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
29 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
30 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
31 |
+
<GenerateManifest>false</GenerateManifest>
|
32 |
+
</PropertyGroup>
|
33 |
+
<ItemDefinitionGroup>
|
34 |
+
diff --git a/visualc/xspice/digital.vcxproj b/visualc/xspice/digital.vcxproj
|
35 |
+
index 87f4802..7722ce6 100644
|
36 |
+
--- a/visualc/xspice/digital.vcxproj
|
37 |
+
+++ b/visualc/xspice/digital.vcxproj
|
38 |
+
@@ -77,12 +77,12 @@
|
39 |
+
<GenerateManifest>false</GenerateManifest>
|
40 |
+
</PropertyGroup>
|
41 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
42 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
43 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
44 |
+
<GenerateManifest>true</GenerateManifest>
|
45 |
+
<LinkIncremental>false</LinkIncremental>
|
46 |
+
</PropertyGroup>
|
47 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
48 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
49 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
50 |
+
<GenerateManifest>false</GenerateManifest>
|
51 |
+
</PropertyGroup>
|
52 |
+
<ItemDefinitionGroup>
|
53 |
+
diff --git a/visualc/xspice/spice2poly.vcxproj b/visualc/xspice/spice2poly.vcxproj
|
54 |
+
index c92471b..786ff7e 100644
|
55 |
+
--- a/visualc/xspice/spice2poly.vcxproj
|
56 |
+
+++ b/visualc/xspice/spice2poly.vcxproj
|
57 |
+
@@ -77,12 +77,12 @@
|
58 |
+
<GenerateManifest>false</GenerateManifest>
|
59 |
+
</PropertyGroup>
|
60 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
61 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
62 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
63 |
+
<GenerateManifest>true</GenerateManifest>
|
64 |
+
<LinkIncremental>false</LinkIncremental>
|
65 |
+
</PropertyGroup>
|
66 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
67 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
68 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
69 |
+
<GenerateManifest>false</GenerateManifest>
|
70 |
+
</PropertyGroup>
|
71 |
+
<ItemDefinitionGroup>
|
72 |
+
diff --git a/visualc/xspice/table.vcxproj b/visualc/xspice/table.vcxproj
|
73 |
+
index fb4791c..ad3ee03 100644
|
74 |
+
--- a/visualc/xspice/table.vcxproj
|
75 |
+
+++ b/visualc/xspice/table.vcxproj
|
76 |
+
@@ -77,12 +77,12 @@
|
77 |
+
<GenerateManifest>false</GenerateManifest>
|
78 |
+
</PropertyGroup>
|
79 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
80 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
81 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
82 |
+
<GenerateManifest>true</GenerateManifest>
|
83 |
+
<LinkIncremental>false</LinkIncremental>
|
84 |
+
</PropertyGroup>
|
85 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
86 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
87 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
88 |
+
<GenerateManifest>false</GenerateManifest>
|
89 |
+
</PropertyGroup>
|
90 |
+
<ItemDefinitionGroup>
|
91 |
+
diff --git a/visualc/xspice/xtradev.vcxproj b/visualc/xspice/xtradev.vcxproj
|
92 |
+
index 6f0197f..53975b0 100644
|
93 |
+
--- a/visualc/xspice/xtradev.vcxproj
|
94 |
+
+++ b/visualc/xspice/xtradev.vcxproj
|
95 |
+
@@ -77,12 +77,12 @@
|
96 |
+
<GenerateManifest>false</GenerateManifest>
|
97 |
+
</PropertyGroup>
|
98 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
99 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
100 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
101 |
+
<GenerateManifest>true</GenerateManifest>
|
102 |
+
<LinkIncremental>false</LinkIncremental>
|
103 |
+
</PropertyGroup>
|
104 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
105 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
106 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
107 |
+
<GenerateManifest>false</GenerateManifest>
|
108 |
+
</PropertyGroup>
|
109 |
+
<ItemDefinitionGroup>
|
110 |
+
diff --git a/visualc/xspice/xtraevt.vcxproj b/visualc/xspice/xtraevt.vcxproj
|
111 |
+
index d5741e7..3177a91 100644
|
112 |
+
--- a/visualc/xspice/xtraevt.vcxproj
|
113 |
+
+++ b/visualc/xspice/xtraevt.vcxproj
|
114 |
+
@@ -77,12 +77,12 @@
|
115 |
+
<GenerateManifest>false</GenerateManifest>
|
116 |
+
</PropertyGroup>
|
117 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
118 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
119 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
120 |
+
<GenerateManifest>true</GenerateManifest>
|
121 |
+
<LinkIncremental>false</LinkIncremental>
|
122 |
+
</PropertyGroup>
|
123 |
+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
124 |
+
- <TargetName>$(ProjectName)64</TargetName>
|
125 |
+
+ <TargetName>$(ProjectName)</TargetName>
|
126 |
+
<GenerateManifest>false</GenerateManifest>
|
127 |
+
</PropertyGroup>
|
128 |
+
<ItemDefinitionGroup>
|
129 |
+
--
|
130 |
+
2.32.0.windows.2
|
131 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/remove-post-build.patch
ADDED
@@ -0,0 +1,230 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
From 363737b9e0e5c2f9de85a0caf641204e638115e3 Mon Sep 17 00:00:00 2001
|
2 |
+
From: Marek Roszko <[email protected]>
|
3 |
+
Date: Thu, 12 Aug 2021 22:09:34 -0400
|
4 |
+
Subject: [PATCH] Remove post build events that copy files out of the tree
|
5 |
+
|
6 |
+
---
|
7 |
+
visualc/vngspice-fftw.vcxproj | 24 ------------------------
|
8 |
+
visualc/vngspice.vcxproj | 17 +++++------------
|
9 |
+
2 files changed, 5 insertions(+), 36 deletions(-)
|
10 |
+
|
11 |
+
diff --git a/visualc/vngspice-fftw.vcxproj b/visualc/vngspice-fftw.vcxproj
|
12 |
+
index 14773c8..178aa73 100644
|
13 |
+
--- a/visualc/vngspice-fftw.vcxproj
|
14 |
+
+++ b/visualc/vngspice-fftw.vcxproj
|
15 |
+
@@ -238,8 +238,6 @@ lib /machine:x86 /def:..\..\fftw-3.3-dll32\libfftw3-3.def /out:$(IntDir)libfftw3
|
16 |
+
</Link>
|
17 |
+
<PostBuildEvent>
|
18 |
+
<Command>
|
19 |
+
- copy /y "..\..\fftw-3.3-dll32\libfftw3-3.dll" "$(OutDir)"
|
20 |
+
- make-install-vngspiced.bat $(OutDir) fftw
|
21 |
+
</Command>
|
22 |
+
</PostBuildEvent>
|
23 |
+
</ItemDefinitionGroup>
|
24 |
+
@@ -289,8 +287,6 @@ lib /machine:x86 /def:..\..\fftw-3.3-dll32\libfftw3-3.def /out:$(IntDir)libfftw3
|
25 |
+
</Link>
|
26 |
+
<PostBuildEvent>
|
27 |
+
<Command>
|
28 |
+
- copy /y "..\..\fftw-3.3-dll32\libfftw3-3.dll" "$(OutDir)"
|
29 |
+
- make-install-vngspice.bat $(OutDir) fftw
|
30 |
+
</Command>
|
31 |
+
</PostBuildEvent>
|
32 |
+
</ItemDefinitionGroup>
|
33 |
+
@@ -337,8 +333,6 @@ lib /machine:x64 /def:..\..\fftw-3.3-dll64\libfftw3-3.def /out:$(IntDir)libfftw3
|
34 |
+
</Link>
|
35 |
+
<PostBuildEvent>
|
36 |
+
<Command>
|
37 |
+
- copy /y "..\..\fftw-3.3-dll64\libfftw3-3.dll" "$(OutDir)"
|
38 |
+
- make-install-vngspiced.bat $(OutDir) fftw 64
|
39 |
+
</Command>
|
40 |
+
</PostBuildEvent>
|
41 |
+
</ItemDefinitionGroup>
|
42 |
+
@@ -393,8 +387,6 @@ lib /machine:x64 /def:..\..\fftw-3.3-dll64\libfftw3-3.def /out:$(IntDir)libfftw3
|
43 |
+
</Link>
|
44 |
+
<PostBuildEvent>
|
45 |
+
<Command>
|
46 |
+
- copy /y "..\..\fftw-3.3-dll64\libfftw3-3.dll" "$(OutDir)"
|
47 |
+
- make-install-vngspice.bat $(OutDir) fftw 64
|
48 |
+
</Command>
|
49 |
+
</PostBuildEvent>
|
50 |
+
</ItemDefinitionGroup>
|
51 |
+
@@ -438,8 +430,6 @@ lib /machine:x86 /def:..\..\fftw-3.3-dll32\libfftw3-3.def /out:$(IntDir)libfftw3
|
52 |
+
</Link>
|
53 |
+
<PostBuildEvent>
|
54 |
+
<Command>
|
55 |
+
- copy /y "..\..\fftw-3.3-dll32\libfftw3-3.dll" "$(OutDir)"
|
56 |
+
- make-install-vngspiced.bat $(OutDir) fftw
|
57 |
+
</Command>
|
58 |
+
</PostBuildEvent>
|
59 |
+
</ItemDefinitionGroup>
|
60 |
+
@@ -489,8 +479,6 @@ lib /machine:x86 /def:..\..\fftw-3.3-dll32\libfftw3-3.def /out:$(IntDir)libfftw3
|
61 |
+
</Link>
|
62 |
+
<PostBuildEvent>
|
63 |
+
<Command>
|
64 |
+
- copy /y "..\..\fftw-3.3-dll32\libfftw3-3.dll" "$(OutDir)"
|
65 |
+
- make-install-vngspice.bat $(OutDir) fftw
|
66 |
+
</Command>
|
67 |
+
</PostBuildEvent>
|
68 |
+
</ItemDefinitionGroup>
|
69 |
+
@@ -537,8 +525,6 @@ lib /machine:x64 /def:..\..\fftw-3.3-dll64\libfftw3-3.def /out:$(IntDir)libfftw3
|
70 |
+
</Link>
|
71 |
+
<PostBuildEvent>
|
72 |
+
<Command>
|
73 |
+
- copy /y "..\..\fftw-3.3-dll64\libfftw3-3.dll" "$(OutDir)"
|
74 |
+
- make-install-vngspiced.bat $(OutDir) fftw 64
|
75 |
+
</Command>
|
76 |
+
</PostBuildEvent>
|
77 |
+
</ItemDefinitionGroup>
|
78 |
+
@@ -591,8 +577,6 @@ lib /machine:x64 /def:..\..\fftw-3.3-dll64\libfftw3-3.def /out:$(IntDir)libfftw3
|
79 |
+
</Link>
|
80 |
+
<PostBuildEvent>
|
81 |
+
<Command>
|
82 |
+
- copy /y "..\..\fftw-3.3-dll64\libfftw3-3.dll" "$(OutDir)"
|
83 |
+
- make-install-vngspice.bat $(OutDir) fftw 64
|
84 |
+
</Command>
|
85 |
+
</PostBuildEvent>
|
86 |
+
</ItemDefinitionGroup>
|
87 |
+
@@ -643,8 +627,6 @@ lib /machine:x86 /def:..\..\fftw-3.3-dll32\libfftw3-3.def /out:$(IntDir)libfftw3
|
88 |
+
</Link>
|
89 |
+
<PostBuildEvent>
|
90 |
+
<Command>
|
91 |
+
- copy /y "..\..\fftw-3.3-dll32\libfftw3-3.dll" "$(OutDir)"
|
92 |
+
- make-install-vngspice.bat $(OutDir) fftw
|
93 |
+
</Command>
|
94 |
+
</PostBuildEvent>
|
95 |
+
</ItemDefinitionGroup>
|
96 |
+
@@ -700,8 +682,6 @@ lib /machine:x64 /def:..\..\fftw-3.3-dll64\libfftw3-3.def /out:$(IntDir)libfftw3
|
97 |
+
</Link>
|
98 |
+
<PostBuildEvent>
|
99 |
+
<Command>
|
100 |
+
- copy /y "..\..\fftw-3.3-dll64\libfftw3-3.dll" "$(OutDir)"
|
101 |
+
- make-install-vngspice.bat $(OutDir) fftw 64
|
102 |
+
</Command>
|
103 |
+
</PostBuildEvent>
|
104 |
+
</ItemDefinitionGroup>
|
105 |
+
@@ -752,8 +732,6 @@ lib /machine:x86 /def:..\..\fftw-3.3-dll32\libfftw3-3.def /out:$(IntDir)libfftw3
|
106 |
+
</Link>
|
107 |
+
<PostBuildEvent>
|
108 |
+
<Command>
|
109 |
+
- copy /y "..\..\fftw-3.3-dll32\libfftw3-3.dll" "$(OutDir)"
|
110 |
+
- make-install-vngspice.bat $(OutDir) fftw
|
111 |
+
</Command>
|
112 |
+
</PostBuildEvent>
|
113 |
+
</ItemDefinitionGroup>
|
114 |
+
@@ -807,8 +785,6 @@ lib /machine:x64 /def:..\..\fftw-3.3-dll64\libfftw3-3.def /out:$(IntDir)libfftw3
|
115 |
+
</Link>
|
116 |
+
<PostBuildEvent>
|
117 |
+
<Command>
|
118 |
+
- copy /y "..\..\fftw-3.3-dll64\libfftw3-3.dll" "$(OutDir)"
|
119 |
+
- make-install-vngspice.bat $(OutDir) fftw 64
|
120 |
+
</Command>
|
121 |
+
</PostBuildEvent>
|
122 |
+
</ItemDefinitionGroup>
|
123 |
+
diff --git a/visualc/vngspice.vcxproj b/visualc/vngspice.vcxproj
|
124 |
+
index 7b6ac0b..7190c1e 100644
|
125 |
+
--- a/visualc/vngspice.vcxproj
|
126 |
+
+++ b/visualc/vngspice.vcxproj
|
127 |
+
@@ -242,7 +242,7 @@
|
128 |
+
<LargeAddressAware>true</LargeAddressAware>
|
129 |
+
</Link>
|
130 |
+
<PostBuildEvent>
|
131 |
+
- <Command>make-install-vngspiced.bat $(OutDir)</Command>
|
132 |
+
+ <Command></Command>
|
133 |
+
</PostBuildEvent>
|
134 |
+
<Manifest>
|
135 |
+
<AdditionalManifestFiles>$(ProjectDir)ngspice-x86.exe.manifest</AdditionalManifestFiles>
|
136 |
+
@@ -293,7 +293,6 @@
|
137 |
+
</Link>
|
138 |
+
<PostBuildEvent>
|
139 |
+
<Command>
|
140 |
+
- make-install-vngspice.bat $(OutDir)
|
141 |
+
</Command>
|
142 |
+
</PostBuildEvent>
|
143 |
+
<Manifest>
|
144 |
+
@@ -342,7 +341,6 @@
|
145 |
+
</Link>
|
146 |
+
<PostBuildEvent>
|
147 |
+
<Command>
|
148 |
+
- make-install-vngspiced.bat $(OutDir) 64
|
149 |
+
</Command>
|
150 |
+
</PostBuildEvent>
|
151 |
+
<Manifest>
|
152 |
+
@@ -399,7 +397,6 @@
|
153 |
+
</Link>
|
154 |
+
<PostBuildEvent>
|
155 |
+
<Command>
|
156 |
+
- make-install-vngspice.bat $(OutDir) 64
|
157 |
+
</Command>
|
158 |
+
</PostBuildEvent>
|
159 |
+
<Manifest>
|
160 |
+
@@ -444,7 +441,7 @@
|
161 |
+
<LargeAddressAware>true</LargeAddressAware>
|
162 |
+
</Link>
|
163 |
+
<PostBuildEvent>
|
164 |
+
- <Command>make-install-vngspiced.bat $(OutDir)</Command>
|
165 |
+
+ <Command></Command>
|
166 |
+
</PostBuildEvent>
|
167 |
+
<Manifest>
|
168 |
+
<AdditionalManifestFiles>$(ProjectDir)ngspice-x86.exe.manifest</AdditionalManifestFiles>
|
169 |
+
@@ -494,7 +491,7 @@
|
170 |
+
<LargeAddressAware>true</LargeAddressAware>
|
171 |
+
</Link>
|
172 |
+
<PostBuildEvent>
|
173 |
+
- <Command>make-install-vngspice.bat $(OutDir)</Command>
|
174 |
+
+ <Command></Command>
|
175 |
+
</PostBuildEvent>
|
176 |
+
<Manifest>
|
177 |
+
<AdditionalManifestFiles>$(ProjectDir)ngspice-x86.exe.manifest</AdditionalManifestFiles>
|
178 |
+
@@ -542,7 +539,6 @@
|
179 |
+
</Link>
|
180 |
+
<PostBuildEvent>
|
181 |
+
<Command>
|
182 |
+
- make-install-vngspiced.bat $(OutDir) 64
|
183 |
+
</Command>
|
184 |
+
</PostBuildEvent>
|
185 |
+
<Manifest>
|
186 |
+
@@ -597,7 +593,6 @@
|
187 |
+
</Link>
|
188 |
+
<PostBuildEvent>
|
189 |
+
<Command>
|
190 |
+
- make-install-vngspice.bat $(OutDir) 64
|
191 |
+
</Command>
|
192 |
+
</PostBuildEvent>
|
193 |
+
<Manifest>
|
194 |
+
@@ -649,7 +644,7 @@
|
195 |
+
<LargeAddressAware>true</LargeAddressAware>
|
196 |
+
</Link>
|
197 |
+
<PostBuildEvent>
|
198 |
+
- <Command>make-install-vngspice.bat $(OutDir)</Command>
|
199 |
+
+ <Command></Command>
|
200 |
+
</PostBuildEvent>
|
201 |
+
<Manifest>
|
202 |
+
<AdditionalManifestFiles>$(ProjectDir)ngspice-x86.exe.manifest</AdditionalManifestFiles>
|
203 |
+
@@ -706,7 +701,6 @@
|
204 |
+
</Link>
|
205 |
+
<PostBuildEvent>
|
206 |
+
<Command>
|
207 |
+
- make-install-vngspice.bat $(OutDir) 64
|
208 |
+
</Command>
|
209 |
+
</PostBuildEvent>
|
210 |
+
<Manifest>
|
211 |
+
@@ -758,7 +752,7 @@
|
212 |
+
<LargeAddressAware>true</LargeAddressAware>
|
213 |
+
</Link>
|
214 |
+
<PostBuildEvent>
|
215 |
+
- <Command>make-install-vngspice.bat $(OutDir)</Command>
|
216 |
+
+ <Command></Command>
|
217 |
+
</PostBuildEvent>
|
218 |
+
<Manifest>
|
219 |
+
<AdditionalManifestFiles>$(ProjectDir)ngspice-x86.exe.manifest</AdditionalManifestFiles>
|
220 |
+
@@ -813,7 +807,6 @@
|
221 |
+
</Link>
|
222 |
+
<PostBuildEvent>
|
223 |
+
<Command>
|
224 |
+
- make-install-vngspice.bat $(OutDir) 64
|
225 |
+
</Command>
|
226 |
+
</PostBuildEvent>
|
227 |
+
<Manifest>
|
228 |
+
--
|
229 |
+
2.32.0.windows.2
|
230 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/use-winbison-sharedspice.patch
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/visualc/sharedspice.vcxproj b/visualc/sharedspice.vcxproj
|
2 |
+
index 4ff0dfc..57b0c35 100644
|
3 |
+
--- a/visualc/sharedspice.vcxproj
|
4 |
+
+++ b/visualc/sharedspice.vcxproj
|
5 |
+
@@ -2223,12 +2223,12 @@
|
6 |
+
<ItemGroup>
|
7 |
+
<CustomBuild Include="..\src\frontend\parse-bison.y">
|
8 |
+
<Message>invoke win_bison.exe for %(Identity)</Message>
|
9 |
+
- <Command>..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
10 |
+
+ <Command>win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
11 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
12 |
+
</CustomBuild>
|
13 |
+
<CustomBuild Include="..\src\spicelib\parser\inpptree-parser.y">
|
14 |
+
<Message>invoke win_bison.exe for %(Identity)</Message>
|
15 |
+
- <Command>..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
16 |
+
+ <Command>win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
17 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
18 |
+
</CustomBuild>
|
19 |
+
</ItemGroup>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/use-winbison-vngspice.patch
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/visualc/vngspice.vcxproj b/visualc/vngspice.vcxproj
|
2 |
+
index 2d1aa81..cf0f0c7 100644
|
3 |
+
--- a/visualc/vngspice.vcxproj
|
4 |
+
+++ b/visualc/vngspice.vcxproj
|
5 |
+
@@ -2681,12 +2681,12 @@
|
6 |
+
<ItemGroup>
|
7 |
+
<CustomBuild Include="..\src\frontend\parse-bison.y">
|
8 |
+
<Message>invoke win_bison.exe for %(Identity)</Message>
|
9 |
+
- <Command>..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
10 |
+
+ <Command>win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
11 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
12 |
+
</CustomBuild>
|
13 |
+
<CustomBuild Include="..\src\spicelib\parser\inpptree-parser.y">
|
14 |
+
<Message>invoke win_bison.exe for %(Identity)</Message>
|
15 |
+
- <Command>..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
16 |
+
+ <Command>win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
17 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
18 |
+
</CustomBuild>
|
19 |
+
</ItemGroup>
|
20 |
+
diff --git a/visualc/xspice/cmpp/cmpp.vcxproj b/visualc/xspice/cmpp/cmpp.vcxproj
|
21 |
+
index 78607a3..7bcc1a4 100644
|
22 |
+
--- a/visualc/xspice/cmpp/cmpp.vcxproj
|
23 |
+
+++ b/visualc/xspice/cmpp/cmpp.vcxproj
|
24 |
+
@@ -157,22 +157,22 @@
|
25 |
+
<ItemGroup>
|
26 |
+
<CustomBuild Include="..\..\..\src\xspice\cmpp\ifs_lex.l">
|
27 |
+
<Message>invoke win_flex.exe for %(Identity)</Message>
|
28 |
+
- <Command>..\..\..\..\flex-bison\win_flex.exe --outfile=.\tmp-bison\%(Filename).c --header-file=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
29 |
+
+ <Command>win_flex.exe --outfile=.\tmp-bison\%(Filename).c --header-file=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
30 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
31 |
+
</CustomBuild>
|
32 |
+
<CustomBuild Include="..\..\..\src\xspice\cmpp\ifs_yacc.y">
|
33 |
+
<Message>invoke win_bison.exe for %(Identity)</Message>
|
34 |
+
- <Command>..\..\..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
35 |
+
+ <Command>win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
36 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
37 |
+
</CustomBuild>
|
38 |
+
<CustomBuild Include="..\..\..\src\xspice\cmpp\mod_lex.l">
|
39 |
+
<Message>invoke win_flex.exe for %(Identity)</Message>
|
40 |
+
- <Command>..\..\..\..\flex-bison\win_flex.exe --outfile=.\tmp-bison\%(Filename).c --header-file=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
41 |
+
+ <Command>win_flex.exe --outfile=.\tmp-bison\%(Filename).c --header-file=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
42 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
43 |
+
</CustomBuild>
|
44 |
+
<CustomBuild Include="..\..\..\src\xspice\cmpp\mod_yacc.y">
|
45 |
+
<Message>invoke win_bison.exe for %(Identity)</Message>
|
46 |
+
- <Command>..\..\..\..\flex-bison\win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
47 |
+
+ <Command>win_bison.exe --output=.\tmp-bison\%(Filename).c --defines=.\tmp-bison\%(Filename).h %(Identity) || exit 1</Command>
|
48 |
+
<Outputs>.\tmp-bison\%(Filename).c;.\tmp-bison\%(Filename).h</Outputs>
|
49 |
+
</CustomBuild>
|
50 |
+
<None Include="..\src\xspice\icm\objects.inc" />
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/ngspice/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "ngspice",
|
3 |
+
"version": "35",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "Ngspice is a mixed-level/mixed-signal electronic circuit simulator. It is a successor of the latest stable release of Berkeley SPICE",
|
6 |
+
"homepage": "http://ngspice.sourceforge.net/",
|
7 |
+
"license": "CC-BY-SA-4.0",
|
8 |
+
"supports": "!(linux | osx | arm | uwp)",
|
9 |
+
"default-features": [
|
10 |
+
"codemodels"
|
11 |
+
],
|
12 |
+
"features": {
|
13 |
+
"codemodels": {
|
14 |
+
"description": "Adds optional code models for XSPICE, ADMS (verilog integration) and B-/E-/G- sources."
|
15 |
+
}
|
16 |
+
}
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifly/portfile.cmake
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
vcpkg_from_github(
|
3 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
4 |
+
REPO ousnius/nifly
|
5 |
+
REF 680a3c0435ff78f8189c46de410d0c8aa9c18a06
|
6 |
+
SHA512 b1bb4a194f95e7bcd66280e1b796d0813cd0b4dc292dae5b168092c2d529f89c966a0f11b364787dfa906556181326b30517b7f734fe85246cde4016e3a1d55b
|
7 |
+
HEAD_REF main
|
8 |
+
)
|
9 |
+
|
10 |
+
vcpkg_cmake_configure(
|
11 |
+
SOURCE_PATH "${SOURCE_PATH}"
|
12 |
+
OPTIONS
|
13 |
+
-DBUILD_TESTING=OFF
|
14 |
+
)
|
15 |
+
vcpkg_cmake_install()
|
16 |
+
vcpkg_cmake_config_fixup(CONFIG_PATH "cmake/")
|
17 |
+
|
18 |
+
file(REMOVE_RECURSE
|
19 |
+
"${CURRENT_PACKAGES_DIR}/debug/include"
|
20 |
+
"${CURRENT_PACKAGES_DIR}/debug/share"
|
21 |
+
)
|
22 |
+
|
23 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifly/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nifly",
|
3 |
+
"version": "1.0.0",
|
4 |
+
"description": "A C++ library for working with the NIF file format",
|
5 |
+
"homepage": "https://github.com/ousnius/nifly",
|
6 |
+
"supports": "!uwp",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifticlib/portfile.cmake
ADDED
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO NIFTI-Imaging/nifti_clib
|
4 |
+
REF 65f801b9c2f1f15f4de4a19d45e6595c25765632
|
5 |
+
SHA512 be03cdc6cf17fd9ff74c5ecc1f6b2132121bb4b7973a731da334af2a8428d1f0dbbf7b94b2511d1ff7e515b8cc4cf3316d62b189566fb6ffc88c6146eebd48ff
|
6 |
+
HEAD_REF master
|
7 |
+
PATCHES zlib_include.patch
|
8 |
+
)
|
9 |
+
|
10 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
11 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
12 |
+
endif()
|
13 |
+
|
14 |
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
15 |
+
"cifti" USE_CIFTI_CODE
|
16 |
+
"fsl" USE_FSL_CODE
|
17 |
+
"nifti2" USE_NIFTI2_CODE
|
18 |
+
"nifticdf" USE_NIFTICDF_CODE
|
19 |
+
"tools" NIFTI_BUILD_APPLICATIONS
|
20 |
+
"tests" BUILD_TESTING
|
21 |
+
)
|
22 |
+
set(TOOL_NAMES)
|
23 |
+
if("tools" IN_LIST FEATURES)
|
24 |
+
list(APPEND TOOL_NAMES nifti_stats nifti_tool nifti1_tool)
|
25 |
+
endif()
|
26 |
+
if("tests" IN_LIST FEATURES)
|
27 |
+
list(APPEND TOOL_NAMES nifit_test)
|
28 |
+
endif()
|
29 |
+
|
30 |
+
vcpkg_configure_cmake(
|
31 |
+
SOURCE_PATH ${SOURCE_PATH}
|
32 |
+
PREFER_NINJA
|
33 |
+
OPTIONS
|
34 |
+
${FEATURE_OPTIONS}
|
35 |
+
)
|
36 |
+
|
37 |
+
vcpkg_install_cmake()
|
38 |
+
vcpkg_copy_pdbs()
|
39 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake TARGET_PATH share)
|
40 |
+
|
41 |
+
if(TOOL_NAMES)
|
42 |
+
vcpkg_copy_tools(TOOL_NAMES ${TOOL_NAMES} AUTO_CLEAN)
|
43 |
+
endif()
|
44 |
+
|
45 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
46 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
47 |
+
|
48 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifticlib/vcpkg.json
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nifticlib",
|
3 |
+
"version-string": "2020-04-30",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "Nifticlib is a C I/O library for reading and writing files in the nifti-1 data format.",
|
6 |
+
"homepage": "NIFTI-Imaging/nifti_clib",
|
7 |
+
"supports": "!uwp",
|
8 |
+
"dependencies": [
|
9 |
+
"zlib"
|
10 |
+
],
|
11 |
+
"default-features": [
|
12 |
+
"nifti2",
|
13 |
+
"nifticdf"
|
14 |
+
],
|
15 |
+
"features": {
|
16 |
+
"cifti": {
|
17 |
+
"description": "Build cifti libraries and tools"
|
18 |
+
},
|
19 |
+
"fsl": {
|
20 |
+
"description": "Build fsl libraries and tools"
|
21 |
+
},
|
22 |
+
"nifti2": {
|
23 |
+
"description": "Build nifti2 libraries and tools"
|
24 |
+
},
|
25 |
+
"nifticdf": {
|
26 |
+
"description": "Build nifticdf libraries and tools"
|
27 |
+
},
|
28 |
+
"tests": {
|
29 |
+
"description": "Build tests"
|
30 |
+
},
|
31 |
+
"tools": {
|
32 |
+
"description": "Build tools"
|
33 |
+
}
|
34 |
+
}
|
35 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nifticlib/zlib_include.patch
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2 |
+
index 54150d739..c3ca8fe50 100644
|
3 |
+
--- a/CMakeLists.txt
|
4 |
+
+++ b/CMakeLists.txt
|
5 |
+
@@ -77,6 +77,7 @@ set_if_not_defined(ZNZ_COMPILE_DEF "")
|
6 |
+
if(NOT NIFTI_ZLIB_LIBRARIES) # If using a custom zlib library, skip the find package
|
7 |
+
### USE AS STAND ALONE PACKAGE
|
8 |
+
find_package(ZLIB REQUIRED)
|
9 |
+
+ include_directories(${ZLIB_INCLUDE_DIRS})
|
10 |
+
set(NIFTI_ZLIB_LIBRARIES ${ZLIB_LIBRARIES})
|
11 |
+
endif()
|
12 |
+
#message(STATUS "---------------------ZLIB -${NIFTI_ZLIB_LIBRARIES}--")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-fifo-map/CMakeLists.txt
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
cmake_minimum_required(VERSION 3.1)
|
2 |
+
project(nlohmann-fifo-map LANGUAGES CXX)
|
3 |
+
|
4 |
+
include(GNUInstallDirs)
|
5 |
+
|
6 |
+
set(NLOHMANN_FIFO_MAP_TARGET_NAME ${PROJECT_NAME})
|
7 |
+
set(NLOHMANN_FIFO_MAP_INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/nlohmann")
|
8 |
+
set(NLOHMANN_FIFO_MAP_CONFIG_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/share/nlohmann-fifo-map")
|
9 |
+
set(NLOHMANN_FIFO_MAP_CONFIG_EXPORT_NAME "${PROJECT_NAME}-config")
|
10 |
+
set(NLOHMANN_FIFO_MAP_INCLUDE_BUILD_DIR "${CMAKE_SOURCE_DIR}/src/")
|
11 |
+
|
12 |
+
add_library(${NLOHMANN_FIFO_MAP_TARGET_NAME} INTERFACE)
|
13 |
+
add_library(${PROJECT_NAME}::${NLOHMANN_FIFO_MAP_TARGET_NAME} ALIAS ${NLOHMANN_FIFO_MAP_TARGET_NAME})
|
14 |
+
|
15 |
+
install(
|
16 |
+
DIRECTORY ${NLOHMANN_FIFO_MAP_INCLUDE_BUILD_DIR}
|
17 |
+
DESTINATION ${NLOHMANN_FIFO_MAP_INCLUDE_INSTALL_DIR}
|
18 |
+
)
|
19 |
+
|
20 |
+
install(
|
21 |
+
TARGETS ${NLOHMANN_FIFO_MAP_TARGET_NAME} EXPORT ${NLOHMANN_FIFO_MAP_CONFIG_EXPORT_NAME}
|
22 |
+
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
23 |
+
)
|
24 |
+
|
25 |
+
install(
|
26 |
+
EXPORT ${NLOHMANN_FIFO_MAP_CONFIG_EXPORT_NAME}
|
27 |
+
DESTINATION ${NLOHMANN_FIFO_MAP_CONFIG_INSTALL_DIR}
|
28 |
+
NAMESPACE ${PROJECT_NAME}::
|
29 |
+
)
|
30 |
+
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-fifo-map/portfile.cmake
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO nlohmann/fifo_map
|
4 |
+
REF 0dfbf5dacbb15a32c43f912a7e66a54aae39d0f9
|
5 |
+
SHA512 1e515d02ff49684dc8439ee1f3b9fbece3c727b6f669ee9a251eae8d8bf33eff0a36ab58829956a698cd9bfb757f9c6ade227d601197aa7b824c0584f48e181d
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
#make sure we don't use any integrated pre-built library nor any unnecessary CMake module
|
10 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/test)
|
11 |
+
file(REMOVE ${SOURCE_PATH}/CMakeLists.txt)
|
12 |
+
|
13 |
+
file(COPY ${CURRENT_PORT_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
14 |
+
|
15 |
+
vcpkg_configure_cmake(
|
16 |
+
SOURCE_PATH ${SOURCE_PATH}
|
17 |
+
PREFER_NINJA
|
18 |
+
)
|
19 |
+
|
20 |
+
vcpkg_install_cmake()
|
21 |
+
vcpkg_fixup_cmake_targets()
|
22 |
+
|
23 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
|
24 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib)
|
25 |
+
|
26 |
+
# Handle copyright
|
27 |
+
file(INSTALL ${SOURCE_PATH}/LICENSE.MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-fifo-map/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nlohmann-fifo-map",
|
3 |
+
"version-string": "2018.05.07",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "a FIFO-ordered associative container for C++",
|
6 |
+
"homepage": "https://github.com/nlohmann/fifo_map"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-json/portfile.cmake
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO nlohmann/json
|
4 |
+
REF v3.10.5
|
5 |
+
SHA512 4a9d6416f383e76bf95425fc02a4e12c605fcbcae910b704e354396a493454cf8a1ffbecba11f231e020ffd2842908df7e67dbc09f62d1202d40b6815c24cfd2
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
if(NOT DEFINED nlohmann-json_IMPLICIT_CONVERSIONS)
|
10 |
+
set(nlohmann-json_IMPLICIT_CONVERSIONS ON)
|
11 |
+
endif()
|
12 |
+
|
13 |
+
vcpkg_cmake_configure(
|
14 |
+
SOURCE_PATH ${SOURCE_PATH}
|
15 |
+
OPTIONS
|
16 |
+
-DJSON_Install=ON
|
17 |
+
-DJSON_MultipleHeaders=ON
|
18 |
+
-DJSON_BuildTests=OFF
|
19 |
+
-DJSON_ImplicitConversions=${nlohmann-json_IMPLICIT_CONVERSIONS}
|
20 |
+
)
|
21 |
+
vcpkg_cmake_install()
|
22 |
+
vcpkg_cmake_config_fixup(PACKAGE_NAME "nlohmann_json" CONFIG_PATH "lib/cmake/nlohmann_json")
|
23 |
+
vcpkg_fixup_pkgconfig()
|
24 |
+
|
25 |
+
vcpkg_replace_string(
|
26 |
+
"${CURRENT_PACKAGES_DIR}/share/nlohmann_json/nlohmann_jsonTargets.cmake"
|
27 |
+
"{_IMPORT_PREFIX}/nlohmann_json.natvis"
|
28 |
+
"{_IMPORT_PREFIX}/share/nlohmann_json/nlohmann_json.natvis"
|
29 |
+
)
|
30 |
+
if(EXISTS ${CURRENT_PACKAGES_DIR}/nlohmann_json.natvis)
|
31 |
+
file(RENAME
|
32 |
+
"${CURRENT_PACKAGES_DIR}/nlohmann_json.natvis"
|
33 |
+
"${CURRENT_PACKAGES_DIR}/share/nlohmann_json/nlohmann_json.natvis"
|
34 |
+
)
|
35 |
+
endif()
|
36 |
+
|
37 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
38 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
39 |
+
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/nlohmann_json.natvis")
|
40 |
+
|
41 |
+
# Handle copyright
|
42 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE.MIT" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
43 |
+
|
44 |
+
# Handle usage
|
45 |
+
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-json/usage
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package nlohmann-json provides CMake targets:
|
2 |
+
|
3 |
+
find_package(nlohmann_json CONFIG REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE nlohmann_json::nlohmann_json)
|
5 |
+
|
6 |
+
The package nlohmann-json can be configured to not provide implicit conversions via a custom triplet file:
|
7 |
+
|
8 |
+
set(nlohmann-json_IMPLICIT_CONVERSIONS OFF)
|
9 |
+
|
10 |
+
For more information, see the docs here:
|
11 |
+
|
12 |
+
https://json.nlohmann.me/features/macros/#json_use_implicit_conversions
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlohmann-json/vcpkg.json
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nlohmann-json",
|
3 |
+
"version-semver": "3.10.5",
|
4 |
+
"port-version": 2,
|
5 |
+
"description": "JSON for Modern C++",
|
6 |
+
"homepage": "https://github.com/nlohmann/json",
|
7 |
+
"dependencies": [
|
8 |
+
{
|
9 |
+
"name": "vcpkg-cmake",
|
10 |
+
"host": true
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"name": "vcpkg-cmake-config",
|
14 |
+
"host": true
|
15 |
+
}
|
16 |
+
]
|
17 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlopt/portfile.cmake
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_from_github(
|
2 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
3 |
+
REPO stevengj/nlopt
|
4 |
+
REF v2.7.0
|
5 |
+
SHA512 3c41cab357b50adf50fe2d6225409ade8c5e8ee3576e3680ab29dded29ed7d328bc3d51d3a50054630159c319dca69e47ff08dc5df891b180b7d7e8fcbc27694
|
6 |
+
HEAD_REF master
|
7 |
+
)
|
8 |
+
|
9 |
+
vcpkg_configure_cmake(
|
10 |
+
SOURCE_PATH ${SOURCE_PATH}
|
11 |
+
PREFER_NINJA
|
12 |
+
OPTIONS
|
13 |
+
-DNLOPT_FORTRAN=OFF
|
14 |
+
-DNLOPT_PYTHON=OFF
|
15 |
+
-DNLOPT_OCTAVE=OFF
|
16 |
+
-DNLOPT_MATLAB=OFF
|
17 |
+
-DNLOPT_GUILE=OFF
|
18 |
+
-DNLOPT_SWIG=OFF
|
19 |
+
)
|
20 |
+
|
21 |
+
vcpkg_install_cmake()
|
22 |
+
vcpkg_copy_pdbs()
|
23 |
+
|
24 |
+
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/nlopt)
|
25 |
+
|
26 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
27 |
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
28 |
+
|
29 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
30 |
+
|
31 |
+
vcpkg_fixup_pkgconfig()
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nlopt/vcpkg.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nlopt",
|
3 |
+
"version-string": "2.7.0",
|
4 |
+
"port-version": 1,
|
5 |
+
"description": "a library for nonlinear local and global optimization, for functions with and without gradient information.",
|
6 |
+
"homepage": "https://github.com/stevengj/nlopt"
|
7 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/fix-msvc-prj.patch
ADDED
The diff for this file is too large to render.
See raw diff
|
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/fix-snprintf.patch
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libdnet-stripped/include/dnet_winconfig.h b/libdnet-stripped/include/dnet_winconfig.h
|
2 |
+
index e41907c..82bc595 100644
|
3 |
+
--- a/libdnet-stripped/include/dnet_winconfig.h
|
4 |
+
+++ b/libdnet-stripped/include/dnet_winconfig.h
|
5 |
+
@@ -277,7 +277,7 @@ int strlcpy(char *, const char *, int);
|
6 |
+
char *strsep(char **, const char *);
|
7 |
+
#endif
|
8 |
+
|
9 |
+
-#define snprintf _snprintf
|
10 |
+
+//#define snprintf _snprintf
|
11 |
+
|
12 |
+
/* Without this, Windows will give us all sorts of crap about using functions
|
13 |
+
like strcpy() even if they are done safely */
|
14 |
+
diff --git a/nbase/nbase.h b/nbase/nbase.h
|
15 |
+
index 0ecd9bc..c0eb395 100644
|
16 |
+
--- a/nbase/nbase.h
|
17 |
+
+++ b/nbase/nbase.h
|
18 |
+
@@ -359,7 +359,7 @@ extern "C" int vsnprintf (char *, size_t, const char *, va_list);
|
19 |
+
#define putenv _putenv
|
20 |
+
|
21 |
+
#if !defined(__GNUC__)
|
22 |
+
-#define snprintf _snprintf
|
23 |
+
+//#define snprintf _snprintf
|
24 |
+
#endif
|
25 |
+
|
26 |
+
#define strcasecmp _stricmp
|
27 |
+
diff --git a/nse_libssh2.cc b/nse_libssh2.cc
|
28 |
+
index bf721b6..1fafe7f 100644
|
29 |
+
--- a/nse_libssh2.cc
|
30 |
+
+++ b/nse_libssh2.cc
|
31 |
+
@@ -58,7 +58,7 @@ struct ssh_userdata {
|
32 |
+
|
33 |
+
|
34 |
+
#if defined(_MSC_VER) && _MSC_VER < 1900
|
35 |
+
-#define snprintf c99_snprintf
|
36 |
+
+//#define snprintf c99_snprintf
|
37 |
+
#define vsnprintf c99_vsnprintf
|
38 |
+
|
39 |
+
__inline int c99_vsnprintf(char *outBuf, size_t size, const char *format, va_list ap) {
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/fix-ssize_t.patch
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
diff --git a/libdnet-stripped/include/dnet/os.h b/libdnet-stripped/include/dnet/os.h
|
2 |
+
index 55a21b9..544ebd8 100644
|
3 |
+
--- a/libdnet-stripped/include/dnet/os.h
|
4 |
+
+++ b/libdnet-stripped/include/dnet/os.h
|
5 |
+
@@ -23,7 +23,11 @@
|
6 |
+
typedef u_short uint16_t;
|
7 |
+
typedef u_int uint32_t;
|
8 |
+
# ifndef __CYGWIN__
|
9 |
+
+#ifdef _WIN64
|
10 |
+
+ typedef __int64 ssize_t;
|
11 |
+
+#else
|
12 |
+
typedef long ssize_t;
|
13 |
+
+#endif
|
14 |
+
# endif
|
15 |
+
#else
|
16 |
+
# include <sys/param.h>
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/portfile.cmake
ADDED
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# nmap is a tools, so ignor POST_CHECK
|
2 |
+
SET(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
3 |
+
|
4 |
+
vcpkg_download_distfile(ARCHIVE
|
5 |
+
URLS "https://nmap.org/dist/nmap-7.70.tar.bz2"
|
6 |
+
FILENAME "nmap-7.70.tar.bz2"
|
7 |
+
SHA512 084c148b022ff6550e269d976d0077f7932a10e2ef218236fe13aa3a70b4eb6506df03329868fc68cb3ce78e4360b200f5a7a491d3145028fed679ef1c9ecae5
|
8 |
+
)
|
9 |
+
|
10 |
+
if(VCPKG_TARGET_IS_WINDOWS)
|
11 |
+
vcpkg_extract_source_archive_ex(
|
12 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
13 |
+
ARCHIVE ${ARCHIVE}
|
14 |
+
PATCHES
|
15 |
+
fix-snprintf.patch
|
16 |
+
fix-ssize_t.patch
|
17 |
+
fix-msvc-prj.patch
|
18 |
+
)
|
19 |
+
list(APPEND DEL_PROJS "libpcap" "libpcre" "libssh2" "libz")
|
20 |
+
foreach (DEL_PROJ ${DEL_PROJS})
|
21 |
+
file(REMOVE_RECURSE ${SOURCE_PATH}/${DEL_PROJ})
|
22 |
+
endforeach()
|
23 |
+
|
24 |
+
# Clear
|
25 |
+
vcpkg_execute_required_process(
|
26 |
+
COMMAND "devenv.exe"
|
27 |
+
"nmap.sln"
|
28 |
+
/Clean
|
29 |
+
WORKING_DIRECTORY ${SOURCE_PATH}/mswin32
|
30 |
+
)
|
31 |
+
|
32 |
+
# Uprade
|
33 |
+
message(STATUS "Upgrade solution...")
|
34 |
+
vcpkg_execute_required_process(
|
35 |
+
COMMAND "devenv.exe"
|
36 |
+
"nmap.sln"
|
37 |
+
/Upgrade
|
38 |
+
WORKING_DIRECTORY ${SOURCE_PATH}/mswin32
|
39 |
+
LOGNAME upgrade-Packet-${TARGET_TRIPLET}
|
40 |
+
)
|
41 |
+
# Build
|
42 |
+
vcpkg_build_msbuild(
|
43 |
+
PROJECT_PATH ${SOURCE_PATH}/mswin32/nmap.vcxproj
|
44 |
+
PLATFORM ${MSBUILD_PLATFORM}
|
45 |
+
USE_VCPKG_INTEGRATION
|
46 |
+
)
|
47 |
+
|
48 |
+
# Install
|
49 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL Release)
|
50 |
+
file(INSTALL ${SOURCE_PATH}/mswin32/Release/nmap.exe
|
51 |
+
${SOURCE_PATH}/mswin32/Release/nmap.pdb
|
52 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
53 |
+
endif()
|
54 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL Debug)
|
55 |
+
file(INSTALL ${SOURCE_PATH}/mswin32/Debug/nmap.exe
|
56 |
+
${SOURCE_PATH}/mswin32/Debug/nmap.pdb
|
57 |
+
DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
58 |
+
endif()
|
59 |
+
else()
|
60 |
+
set(ENV{LDFLAGS} "$ENV{LDFLAGS} -pthread")
|
61 |
+
set(OPTIONS --without-nmap-update --with-openssl=${CURRENT_INSTALLED_DIR} --with-libssh2=${CURRENT_INSTALLED_DIR} --with-libz=${CURRENT_INSTALLED_DIR} --with-libpcre=${CURRENT_INSTALLED_DIR})
|
62 |
+
message(STATUS "Building Options: ${OPTIONS}")
|
63 |
+
|
64 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL Release)
|
65 |
+
# Since nmap makefile has strong relationshop with codes, copy codes to obj path
|
66 |
+
message(STATUS "Configuring ${TARGET_TRIPLET}-rel")
|
67 |
+
vcpkg_extract_source_archive(source_path_release
|
68 |
+
ARCHIVE "${ARCHIVE}"
|
69 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
70 |
+
)
|
71 |
+
|
72 |
+
vcpkg_execute_required_process(
|
73 |
+
COMMAND "./configure" ${OPTIONS}
|
74 |
+
WORKING_DIRECTORY "${source_path_release}"
|
75 |
+
LOGNAME config-${TARGET_TRIPLET}-rel
|
76 |
+
)
|
77 |
+
|
78 |
+
message(STATUS "Building ${TARGET_TRIPLET}-rel")
|
79 |
+
vcpkg_execute_required_process(
|
80 |
+
COMMAND make
|
81 |
+
WORKING_DIRECTORY "${source_path_release}"
|
82 |
+
LOGNAME build-${TARGET_TRIPLET}-rel
|
83 |
+
)
|
84 |
+
|
85 |
+
message(STATUS "Installing ${TARGET_TRIPLET}-rel")
|
86 |
+
file(INSTALL ${source_path_release}/nmap DESTINATION ${CURRENT_PACKAGES_DIR}/tools)
|
87 |
+
endif()
|
88 |
+
|
89 |
+
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL Debug)
|
90 |
+
# Since nmap makefile has strong relationshop with codes, copy codes to obj path
|
91 |
+
message(STATUS "Configuring ${TARGET_TRIPLET}-dbg")
|
92 |
+
vcpkg_extract_source_archive(source_path_debug
|
93 |
+
ARCHIVE "${ARCHIVE}"
|
94 |
+
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel"
|
95 |
+
)
|
96 |
+
|
97 |
+
vcpkg_execute_required_process(
|
98 |
+
COMMAND "./configure" ${OPTIONS}
|
99 |
+
WORKING_DIRECTORY ${source_path_debug}
|
100 |
+
LOGNAME config-${TARGET_TRIPLET}-dbg
|
101 |
+
)
|
102 |
+
|
103 |
+
message(STATUS "Building ${TARGET_TRIPLET}-dbg")
|
104 |
+
vcpkg_execute_required_process(
|
105 |
+
COMMAND make
|
106 |
+
WORKING_DIRECTORY ${source_path_debug}
|
107 |
+
LOGNAME build-${TARGET_TRIPLET}-dbg
|
108 |
+
)
|
109 |
+
|
110 |
+
message(STATUS "Installing ${TARGET_TRIPLET}-dbg")
|
111 |
+
file(INSTALL ${source_path_release}/nmap DESTINATION ${CURRENT_PACKAGES_DIR}/debug/tools)
|
112 |
+
endif()
|
113 |
+
|
114 |
+
set(SOURCE_PATH "${source_path_release}")
|
115 |
+
endif()
|
116 |
+
|
117 |
+
vcpkg_copy_pdbs()
|
118 |
+
|
119 |
+
# Handle copyright
|
120 |
+
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/usage
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
The package curl is compatible with built-in CMake targets:
|
2 |
+
|
3 |
+
find_package(NMAP REQUIRED)
|
4 |
+
target_link_libraries(main PRIVATE ${NMAP_LIBRARIES})
|
5 |
+
target_include_directories(main PRIVATE ${NMAP_INCLUDE_DIRS})
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmap/vcpkg.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "nmap",
|
3 |
+
"version": "7.70",
|
4 |
+
"port-version": 5,
|
5 |
+
"description": "A library for scanning network ports.",
|
6 |
+
"dependencies": [
|
7 |
+
{
|
8 |
+
"name": "libpcap",
|
9 |
+
"platform": "!windows"
|
10 |
+
},
|
11 |
+
"libssh2",
|
12 |
+
"lua",
|
13 |
+
"openssl",
|
14 |
+
"pcre",
|
15 |
+
{
|
16 |
+
"name": "python2",
|
17 |
+
"platform": "windows"
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"name": "winpcap",
|
21 |
+
"platform": "windows"
|
22 |
+
},
|
23 |
+
"zlib"
|
24 |
+
]
|
25 |
+
}
|
third-party/DPVO/Pangolin/scripts/vcpkg/ports/nmslib/portfile.cmake
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2 |
+
|
3 |
+
vcpkg_from_github(
|
4 |
+
OUT_SOURCE_PATH SOURCE_PATH
|
5 |
+
REPO nmslib/nmslib
|
6 |
+
REF v2.1.1
|
7 |
+
SHA512 62BBB965EA4BF1D416ED78231B1BA4B41C0F46327D7BE16D1F98095DB63EF0E0D893B70040009711BC9C68555B1B8C4038F5032ABD66B759E955E2CBB0553EC3
|
8 |
+
HEAD_REF master
|
9 |
+
)
|
10 |
+
|
11 |
+
# TODO: check SSE and AVX availability and set corresponding tags
|
12 |
+
vcpkg_cmake_configure(
|
13 |
+
SOURCE_PATH "${SOURCE_PATH}/similarity_search"
|
14 |
+
)
|
15 |
+
|
16 |
+
vcpkg_cmake_install()
|
17 |
+
vcpkg_copy_pdbs()
|
18 |
+
|
19 |
+
# Move headers into separate folder
|
20 |
+
set(SUBFOLDERS factory method space)
|
21 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include/nmslib")
|
22 |
+
foreach(SUBFOLDER ${SUBFOLDERS})
|
23 |
+
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/include/nmslib/${SUBFOLDER}")
|
24 |
+
endforeach()
|
25 |
+
|
26 |
+
file(GLOB HEADERS "${CURRENT_PACKAGES_DIR}/include/*.h" "${CURRENT_PACKAGES_DIR}/include/*/*.h")
|
27 |
+
foreach(HEADER ${HEADERS})
|
28 |
+
string(REPLACE "${CURRENT_PACKAGES_DIR}/include" "${CURRENT_PACKAGES_DIR}/include/nmslib" MOVED_HEADER "${HEADER}")
|
29 |
+
file(RENAME "${HEADER}" "${MOVED_HEADER}")
|
30 |
+
endforeach(HEADER ${HEADERS})
|
31 |
+
|
32 |
+
foreach(SUBFOLDER ${SUBFOLDERS})
|
33 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/${SUBFOLDER}/")
|
34 |
+
endforeach()
|
35 |
+
|
36 |
+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
37 |
+
|
38 |
+
# Put the license file where vcpkg expects it
|
39 |
+
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|