From 495119e23f682fd77ad87025a33d237dac39d9be Mon Sep 17 00:00:00 2001 From: Yanbing Date: Fri, 17 Nov 2017 13:07:54 -0800 Subject: [PATCH] Remove two properties from projects (#240) --- contrib/win32/openssh/OpenSSHBuildHelper.psm1 | 13 +++++++++++++ contrib/win32/openssh/config.vcxproj | 2 -- contrib/win32/openssh/keygen.vcxproj | 2 -- contrib/win32/openssh/libssh.vcxproj | 2 -- contrib/win32/openssh/openbsd_compat.vcxproj | 2 -- contrib/win32/openssh/scp.vcxproj | 2 -- contrib/win32/openssh/sftp-server.vcxproj | 2 -- contrib/win32/openssh/sftp.vcxproj | 4 +--- contrib/win32/openssh/ssh-add.vcxproj | 2 -- contrib/win32/openssh/ssh-agent.vcxproj | 2 -- contrib/win32/openssh/ssh-keyscan.vcxproj | 2 -- contrib/win32/openssh/ssh-shellhost.vcxproj | 2 -- contrib/win32/openssh/ssh.vcxproj | 2 -- contrib/win32/openssh/sshd.vcxproj | 2 -- contrib/win32/openssh/unittest-bitmap.vcxproj | 2 -- contrib/win32/openssh/unittest-hostkeys.vcxproj | 2 -- contrib/win32/openssh/unittest-kex.vcxproj | 2 -- contrib/win32/openssh/unittest-match.vcxproj | 2 -- contrib/win32/openssh/unittest-sshbuf.vcxproj | 2 -- contrib/win32/openssh/unittest-sshkey.vcxproj | 2 -- contrib/win32/openssh/unittest-win32compat.vcxproj | 2 -- contrib/win32/openssh/win32iocompat.vcxproj | 2 -- 22 files changed, 14 insertions(+), 43 deletions(-) diff --git a/contrib/win32/openssh/OpenSSHBuildHelper.psm1 b/contrib/win32/openssh/OpenSSHBuildHelper.psm1 index fae83c843..273eaa798 100644 --- a/contrib/win32/openssh/OpenSSHBuildHelper.psm1 +++ b/contrib/win32/openssh/OpenSSHBuildHelper.psm1 @@ -500,6 +500,19 @@ function Start-OpenSSHBuild $win10SDKVer = Get-Windows10SDKVersion [XML]$xml = Get-Content $PathTargets $xml.Project.PropertyGroup.WindowsSDKVersion = $win10SDKVer.ToString() + $arch = $NativeHostArch.ToUpper() + $nodeName = "WindowsSDKDesktop$($arch)Support" + $node = $xml.Project.PropertyGroup.ChildNodes | where {$_.Name -eq $nodeName} + if($node -eq $null) + { + $newElement =$xml.CreateElement($nodeName, $xml.Project.xmlns) + $newNode = $xml.Project.PropertyGroup.AppendChild($newElement) + $null = $newNode.AppendChild($xml.CreateTextNode("true")) + } + else + { + $node.InnerText = "true" + } $xml.Save($PathTargets) } diff --git a/contrib/win32/openssh/config.vcxproj b/contrib/win32/openssh/config.vcxproj index 51fd95441..03acae403 100644 --- a/contrib/win32/openssh/config.vcxproj +++ b/contrib/win32/openssh/config.vcxproj @@ -44,8 +44,6 @@ config $(WindowsSDKVersion) config - true - true diff --git a/contrib/win32/openssh/keygen.vcxproj b/contrib/win32/openssh/keygen.vcxproj index 3cf2b6122..68b8bffa9 100644 --- a/contrib/win32/openssh/keygen.vcxproj +++ b/contrib/win32/openssh/keygen.vcxproj @@ -41,8 +41,6 @@ keygen $(WindowsSDKVersion) ssh-keygen - true - true diff --git a/contrib/win32/openssh/libssh.vcxproj b/contrib/win32/openssh/libssh.vcxproj index 38e795fc1..3b0d93a26 100644 --- a/contrib/win32/openssh/libssh.vcxproj +++ b/contrib/win32/openssh/libssh.vcxproj @@ -40,8 +40,6 @@ Win32Proj libssh $(WindowsSDKVersion) - true - true diff --git a/contrib/win32/openssh/openbsd_compat.vcxproj b/contrib/win32/openssh/openbsd_compat.vcxproj index 5667162b6..58096ccbd 100644 --- a/contrib/win32/openssh/openbsd_compat.vcxproj +++ b/contrib/win32/openssh/openbsd_compat.vcxproj @@ -140,8 +140,6 @@ Win32Proj openbsd_compat $(WindowsSDKVersion) - true - true diff --git a/contrib/win32/openssh/scp.vcxproj b/contrib/win32/openssh/scp.vcxproj index b61161589..4bc3ece67 100644 --- a/contrib/win32/openssh/scp.vcxproj +++ b/contrib/win32/openssh/scp.vcxproj @@ -49,8 +49,6 @@ keygen $(WindowsSDKVersion) scp - true - true diff --git a/contrib/win32/openssh/sftp-server.vcxproj b/contrib/win32/openssh/sftp-server.vcxproj index 402a0b322..67e8395d0 100644 --- a/contrib/win32/openssh/sftp-server.vcxproj +++ b/contrib/win32/openssh/sftp-server.vcxproj @@ -50,8 +50,6 @@ keygen $(WindowsSDKVersion) sftp-server - true - true diff --git a/contrib/win32/openssh/sftp.vcxproj b/contrib/win32/openssh/sftp.vcxproj index d8fdcbddc..49c2fffe6 100644 --- a/contrib/win32/openssh/sftp.vcxproj +++ b/contrib/win32/openssh/sftp.vcxproj @@ -52,9 +52,7 @@ Win32Proj keygen $(WindowsSDKVersion) - sftp - true - true + sftp diff --git a/contrib/win32/openssh/ssh-add.vcxproj b/contrib/win32/openssh/ssh-add.vcxproj index 3b3080e59..ba1de60c1 100644 --- a/contrib/win32/openssh/ssh-add.vcxproj +++ b/contrib/win32/openssh/ssh-add.vcxproj @@ -51,8 +51,6 @@ keygen $(WindowsSDKVersion) ssh-add - true - true diff --git a/contrib/win32/openssh/ssh-agent.vcxproj b/contrib/win32/openssh/ssh-agent.vcxproj index 5ef22ed5b..d3e4c0c73 100644 --- a/contrib/win32/openssh/ssh-agent.vcxproj +++ b/contrib/win32/openssh/ssh-agent.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) ssh-agent - true - true diff --git a/contrib/win32/openssh/ssh-keyscan.vcxproj b/contrib/win32/openssh/ssh-keyscan.vcxproj index 4dec876a0..7f7e24555 100644 --- a/contrib/win32/openssh/ssh-keyscan.vcxproj +++ b/contrib/win32/openssh/ssh-keyscan.vcxproj @@ -41,8 +41,6 @@ sshkeyscan $(WindowsSDKVersion) ssh-keyscan - true - true diff --git a/contrib/win32/openssh/ssh-shellhost.vcxproj b/contrib/win32/openssh/ssh-shellhost.vcxproj index c305ae2cb..8ec6d7ac9 100644 --- a/contrib/win32/openssh/ssh-shellhost.vcxproj +++ b/contrib/win32/openssh/ssh-shellhost.vcxproj @@ -48,8 +48,6 @@ shellhost $(WindowsSDKVersion) ssh-shellhost - true - true diff --git a/contrib/win32/openssh/ssh.vcxproj b/contrib/win32/openssh/ssh.vcxproj index 25e8eec17..fb007f068 100644 --- a/contrib/win32/openssh/ssh.vcxproj +++ b/contrib/win32/openssh/ssh.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) ssh - true - true diff --git a/contrib/win32/openssh/sshd.vcxproj b/contrib/win32/openssh/sshd.vcxproj index e88870aba..013505fc4 100644 --- a/contrib/win32/openssh/sshd.vcxproj +++ b/contrib/win32/openssh/sshd.vcxproj @@ -41,8 +41,6 @@ keygen $(WindowsSDKVersion) sshd - true - true diff --git a/contrib/win32/openssh/unittest-bitmap.vcxproj b/contrib/win32/openssh/unittest-bitmap.vcxproj index 7102700e2..705a2b51d 100644 --- a/contrib/win32/openssh/unittest-bitmap.vcxproj +++ b/contrib/win32/openssh/unittest-bitmap.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) unittest-bitmap - true - true diff --git a/contrib/win32/openssh/unittest-hostkeys.vcxproj b/contrib/win32/openssh/unittest-hostkeys.vcxproj index 6c05f1436..02ca03473 100644 --- a/contrib/win32/openssh/unittest-hostkeys.vcxproj +++ b/contrib/win32/openssh/unittest-hostkeys.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) unittest-hostkeys - true - true diff --git a/contrib/win32/openssh/unittest-kex.vcxproj b/contrib/win32/openssh/unittest-kex.vcxproj index e2452b1c4..a1ca33f81 100644 --- a/contrib/win32/openssh/unittest-kex.vcxproj +++ b/contrib/win32/openssh/unittest-kex.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) unittest-kex - true - true diff --git a/contrib/win32/openssh/unittest-match.vcxproj b/contrib/win32/openssh/unittest-match.vcxproj index c16ae5759..69e6a7a02 100644 --- a/contrib/win32/openssh/unittest-match.vcxproj +++ b/contrib/win32/openssh/unittest-match.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) unittest-match - true - true diff --git a/contrib/win32/openssh/unittest-sshbuf.vcxproj b/contrib/win32/openssh/unittest-sshbuf.vcxproj index 1a405abc9..8da93cf3b 100644 --- a/contrib/win32/openssh/unittest-sshbuf.vcxproj +++ b/contrib/win32/openssh/unittest-sshbuf.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) unittest-sshbuf - true - true diff --git a/contrib/win32/openssh/unittest-sshkey.vcxproj b/contrib/win32/openssh/unittest-sshkey.vcxproj index 42f60061a..48524e639 100644 --- a/contrib/win32/openssh/unittest-sshkey.vcxproj +++ b/contrib/win32/openssh/unittest-sshkey.vcxproj @@ -41,8 +41,6 @@ Win32OpenSSH $(WindowsSDKVersion) unittest-sshkey - true - true diff --git a/contrib/win32/openssh/unittest-win32compat.vcxproj b/contrib/win32/openssh/unittest-win32compat.vcxproj index d5db5ea19..dbf52c95d 100644 --- a/contrib/win32/openssh/unittest-win32compat.vcxproj +++ b/contrib/win32/openssh/unittest-win32compat.vcxproj @@ -70,8 +70,6 @@ Win32OpenSSH $(WindowsSDKVersion) unittest-win32compat - true - true diff --git a/contrib/win32/openssh/win32iocompat.vcxproj b/contrib/win32/openssh/win32iocompat.vcxproj index 3a3628c0c..add16886c 100644 --- a/contrib/win32/openssh/win32iocompat.vcxproj +++ b/contrib/win32/openssh/win32iocompat.vcxproj @@ -41,8 +41,6 @@ Win32Proj $(WindowsSDKVersion) posix_compat - true - true