From 38058450ce20c4ceed02e864a231bcbe798536c9 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 6 Jun 2022 19:33:35 -0400 Subject: [PATCH] Revise Windows build to VS2022. --- ext/installfiles/windows/ZeroTier One.aip | 11 +++++----- windows-clean.bat | 7 ++++-- windows/ZeroTierOne/ZeroTierOne.vcxproj | 26 +++++++++++------------ zeroidc/.cargo/config.toml | 8 +++---- zeroidc/Cargo.toml | 5 +---- zeroidc/zeroidc.vcxproj | 12 +++++------ 6 files changed, 35 insertions(+), 34 deletions(-) diff --git a/ext/installfiles/windows/ZeroTier One.aip b/ext/installfiles/windows/ZeroTier One.aip index 17bec1042..875bc02bf 100644 --- a/ext/installfiles/windows/ZeroTier One.aip +++ b/ext/installfiles/windows/ZeroTier One.aip @@ -1,5 +1,5 @@ - + @@ -9,6 +9,7 @@ + @@ -30,10 +31,10 @@ - + - + @@ -68,7 +69,7 @@ - + @@ -530,7 +531,7 @@ - + diff --git a/windows-clean.bat b/windows-clean.bat index 09e5e28b3..96bc563a5 100644 --- a/windows-clean.bat +++ b/windows-clean.bat @@ -1,9 +1,12 @@ DEL "ZeroTier One.msi" DEL zt1_update*.exe RMDIR /Q /S windows\Build +RMDIR /Q /S windows\x64 +RMDIR /Q /S windows\ARM64 +RMDIR /Q /S windows\Release RMDIR /Q /S windows\copyutil\bin RMDIR /Q /S windows\copyutil\obj -RMDIR /Q /S windows\WinUI\bin -RMDIR /Q /S windows\WinUI\obj RMDIR /Q /S windows\ZeroTierOne\Release RMDIR /Q /S windows\ZeroTierOne\x64 +RMDIR /Q /S zeroidc\x64 +RMDIR /Q /S zeroidc\target diff --git a/windows/ZeroTierOne/ZeroTierOne.vcxproj b/windows/ZeroTierOne/ZeroTierOne.vcxproj index b21d3f6bf..bb1c0888a 100644 --- a/windows/ZeroTierOne/ZeroTierOne.vcxproj +++ b/windows/ZeroTierOne/ZeroTierOne.vcxproj @@ -261,61 +261,61 @@ Application true - v142 + v143 MultiByte Application true - v142 + v143 MultiByte Application true - v142 + v143 MultiByte false Application true - v142 + v143 MultiByte false Application true - v142 + v143 MultiByte Application true - v142 + v143 MultiByte Application false - v142 + v143 true MultiByte - Static + false Application false - v142 + v143 true MultiByte - Static + false Application false - v142 + v143 true MultiByte Static @@ -547,7 +547,7 @@ true $(SolutionDir)\..\ext;$(SolutionDir)\..\zeroidc\target;%(AdditionalIncludeDirectories) ZT_SSO_ENABLED=1;ZT_EXPORT;FD_SETSIZE=1024;STATICLIB;ZT_SALSA20_SSE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;WIN32;NOMINMAX;ZT_SOFTWARE_UPDATE_DEFAULT="apply";ZT_BUILD_PLATFORM=2;ZT_BUILD_ARCHITECTURE=1;%(PreprocessorDefinitions) - MultiThreaded + MultiThreadedDLL true AnySuitable Speed @@ -583,7 +583,7 @@ true $(SolutionDir)\..\ext;$(SolutionDir)\..\zeroidc\target;%(AdditionalIncludeDirectories) ZT_SSO_ENABLED=1;ZT_EXPORT;FD_SETSIZE=1024;STATICLIB;ZT_SOFTWARE_UPDATE_DEFAULT="apply";ZT_SALSA20_SSE;ZT_USE_MINIUPNPC;MINIUPNP_STATICLIB;WIN32;NOMINMAX;ZT_BUILD_PLATFORM=2;ZT_BUILD_ARCHITECTURE=2;%(PreprocessorDefinitions) - MultiThreaded + MultiThreadedDLL NotSet true AnySuitable diff --git a/zeroidc/.cargo/config.toml b/zeroidc/.cargo/config.toml index 5326b3647..b09fcf6e6 100644 --- a/zeroidc/.cargo/config.toml +++ b/zeroidc/.cargo/config.toml @@ -4,8 +4,8 @@ rustflags=["-C", "link-arg=-mmacosx-version-min=10.13"] [target.aarch64-apple-darwin] rustflags=["-C", "link-arg=-mmacosx-version-min=10.13"] -[target.x86_64-pc-windows-msvc] -rustflags = ["-C", "target-feature=+crt-static"] +#[target.x86_64-pc-windows-msvc] +#rustflags = ["-C", "target-feature=+crt-static"] -[target.i686-pc-windows-msvc] -rustflags = ["-C", "target-feature=+crt-static"] +#[target.i686-pc-windows-msvc] +#rustflags = ["-C", "target-feature=+crt-static"] diff --git a/zeroidc/Cargo.toml b/zeroidc/Cargo.toml index 68fa99488..7633d2afb 100644 --- a/zeroidc/Cargo.toml +++ b/zeroidc/Cargo.toml @@ -1,16 +1,13 @@ [package] name = "zeroidc" version = "0.1.0" -edition = "2018" +edition = "2021" build = "build.rs" publish = false [lib] crate-type = ["staticlib","rlib"] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] openidconnect = { version = "2.2", default-features = false, features = ["reqwest", "native-tls", "accept-rfc3339-timestamps"] } base64 = "0.13" diff --git a/zeroidc/zeroidc.vcxproj b/zeroidc/zeroidc.vcxproj index d0b06945f..39f89a6d1 100644 --- a/zeroidc/zeroidc.vcxproj +++ b/zeroidc/zeroidc.vcxproj @@ -35,32 +35,32 @@ Makefile true - v142 + v143 Makefile false - v142 + v143 Makefile true - v142 + v143 Makefile true - v142 + v143 Makefile false - v142 + v143 Makefile false - v142 + v143