aboutsummaryrefslogtreecommitdiffhomepage
path: root/vsprojects/coapp
diff options
context:
space:
mode:
authorGravatar Hongyu Chen <hongyu@google.com>2015-12-11 11:08:35 -0800
committerGravatar Hongyu Chen <hongyu@google.com>2015-12-11 11:08:35 -0800
commitaa28ccc92291acc2ff527db72a9389ac2bd2034a (patch)
treefd7992b402380fdb01d5e193a7d3d8993876565b /vsprojects/coapp
parent0504a4443fb973f8cb3bc43f05bc1a73680fab59 (diff)
parent12fa8c83aff22c84ee92ea00c79b2f6236c93d26 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'vsprojects/coapp')
-rw-r--r--vsprojects/coapp/openssl/README.md1
-rw-r--r--vsprojects/coapp/openssl/buildall.bat16
-rw-r--r--vsprojects/coapp/openssl/grpc.dependencies.openssl.autopkg23
-rw-r--r--vsprojects/coapp/openssl/libeay32.vcxproj8
-rw-r--r--vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.props12
-rw-r--r--vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.targets31
-rw-r--r--vsprojects/coapp/openssl/packages.config4
-rw-r--r--vsprojects/coapp/openssl/ssleay32.vcxproj8
-rw-r--r--vsprojects/coapp/openssl/version.inc2
-rw-r--r--vsprojects/coapp/zlib/.gitignore5
-rw-r--r--vsprojects/coapp/zlib/README.md1
-rw-r--r--vsprojects/coapp/zlib/buildall.bat48
-rw-r--r--vsprojects/coapp/zlib/grpc.dependencies.zlib.autopkg18
-rw-r--r--vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.props13
-rw-r--r--vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.targets33
-rw-r--r--vsprojects/coapp/zlib/version.inc2
16 files changed, 151 insertions, 74 deletions
diff --git a/vsprojects/coapp/openssl/README.md b/vsprojects/coapp/openssl/README.md
index e15831c67f..a0a4deaa86 100644
--- a/vsprojects/coapp/openssl/README.md
+++ b/vsprojects/coapp/openssl/README.md
@@ -6,6 +6,7 @@ Uses [CoApp](http://coapp.org/) project to build the zlib package.
Prerequisites
-------------
Multiple versions of VS installed to be able to build all the targets:
+* Visual Studio 2015
* Visual Studio 2013
* Visual Studio 2010 (you might need SP1 to prevent LNK1123 error)
diff --git a/vsprojects/coapp/openssl/buildall.bat b/vsprojects/coapp/openssl/buildall.bat
index 70a7d1602d..2bf1c87077 100644
--- a/vsprojects/coapp/openssl/buildall.bat
+++ b/vsprojects/coapp/openssl/buildall.bat
@@ -14,6 +14,18 @@ mkdir inc32\openssl
mkdir tmp32
nmake -f ms\nt.mak headers || goto :eof
endlocal
+
+setlocal
+call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
+call :build x64 Release v140 || goto :eof
+call :build x64 Debug v140 || goto :eof
+endlocal
+
+setlocal
+call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
+call :build Win32 Release v140 || goto :eof
+call :build Win32 Debug v140 || goto :eof
+endlocal
setlocal
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
@@ -52,8 +64,8 @@ call :build Win32 Debug v100 || goto :eof
endlocal
:build
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=dynamic /P:ConfigurationType=DynamicLibrary .\openssl.sln || goto :eof
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=static /P:ConfigurationType=StaticLibrary .\openssl.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=dynamic /P:ConfigurationType=DynamicLibrary .\openssl.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=static /P:ConfigurationType=StaticLibrary .\openssl.sln || goto :eof
goto :eof
diff --git a/vsprojects/coapp/openssl/grpc.dependencies.openssl.autopkg b/vsprojects/coapp/openssl/grpc.dependencies.openssl.autopkg
index 00ee825f3c..1f4762d155 100644
--- a/vsprojects/coapp/openssl/grpc.dependencies.openssl.autopkg
+++ b/vsprojects/coapp/openssl/grpc.dependencies.openssl.autopkg
@@ -1,5 +1,15 @@
@import @"version.inc";
+configurations
+{
+ // See https://github.com/coapp/coapp.powershell/issues/112
+ Toolset
+ {
+ key : "PlatformToolset"; // this is CoApp pre-defined key
+ choices: { v140, v120, v110, v100 };
+ };
+}
+
#define {
package-id = "grpc.dependencies.openssl";
}
@@ -19,7 +29,7 @@ nuget {
summary: "An OpenSSL library";
description: @"Native OpenSSL library.
OpenSSL homepage: http://www.openssl.org";
- releaseNotes: "Release of OpenSSL 1.0.2a libraries.";
+ releaseNotes: "Release of OpenSSL 1.0.2d libraries.";
copyright: Copyright 2015;
tags: { openssl, native, CoApp };
@@ -27,7 +37,7 @@ nuget {
dependencies {
packages : {
- grpc.dependencies.zlib/1.2.8.9
+ grpc.dependencies.zlib/1.2.8.10
};
}
@@ -40,9 +50,8 @@ nuget {
#output {
package = redist;
};
- #destination = \build\portable-net45;
+ #destination = "\build\portable-net45+netcore45+wpa81+wp8";
"managed_targets\${package-id}.redist.targets";
- "managed_targets\${package-id}.redist.props";
};
nestedInclude: {
@@ -54,7 +63,7 @@ nuget {
// TODO(jtattermusch): Visual Studio 2010 and 2012 Express (v100 and v110 toolsets) don't support x64,
// so while generating the package, you will get a warning that corresponding files are missing
// (and the resulting package will be somewhat incomplete).
- ("v100,v120", "Win32,x64", "release,debug", "Dynamic,Static") => {
+ ("v100,v120,v140", "Win32,x64", "release,debug", "Dynamic,Static") => {
[${0},${1},${2},${3}] {
lib: { .\output\${0}\${1}\${2}\${3}\libeay32.lib;
.\output\${0}\${1}\${2}\${3}\ssleay32.lib };
@@ -65,7 +74,7 @@ nuget {
};
};
};
- ("v100,v120", "Win32,x64", "release,debug", "Dynamic") => {
+ ("v100,v120,v140", "Win32,x64", "release,debug", "Dynamic") => {
[${0},${1},${2},${3}] {
bin: { .\output\${0}\${1}\${2}\${3}\libeay32.dll;
.\output\${0}\${1}\${2}\${3}\ssleay32.dll };
@@ -90,7 +99,7 @@ nuget {
Includes += ${pkg_root}${d_include};
// Defines += HAS_ZLIB;
- ("v100,v110,v120", "Win32,x64", "release,debug", "Dynamic,Static") => {
+ ("v100,v110,v120,v140", "Win32,x64", "release,debug", "Dynamic,Static") => {
[${0},${1},${2},${3}] {
Includes += ${pkg_root}${d_include};
};
diff --git a/vsprojects/coapp/openssl/libeay32.vcxproj b/vsprojects/coapp/openssl/libeay32.vcxproj
index 0ee97262d5..ea63162110 100644
--- a/vsprojects/coapp/openssl/libeay32.vcxproj
+++ b/vsprojects/coapp/openssl/libeay32.vcxproj
@@ -38,8 +38,8 @@
</PropertyGroup>
<Import Project="$(CoAppEtcDirectory)vcxproj.inc" Condition="Exists('$(CoAppEtcDirectory)vcxproj.inc')" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.props')" Project=".\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.props" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.props')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.props" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.props')" Project=".\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.props" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.props')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.props" />
<ImportGroup Label="ExtensionSettings" />
<ImportGroup Label="PropertySheets">
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" />
@@ -780,8 +780,8 @@
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.targets')" Project=".\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.targets" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.targets')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.targets" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.targets')" Project=".\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.targets" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.targets')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.targets" />
<ImportGroup Label="ExtensionTargets" />
<PropertyGroup>
<Build-Perl-zlib Condition="'$(Linkage-zlib)'=='dynamic'">zlib-dynamic</Build-Perl-zlib>
diff --git a/vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.props b/vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.props
deleted file mode 100644
index 63d23be3da..0000000000
--- a/vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.props
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <!-- Whether or not copy native dependencies to output directory after building -->
- <CopyNativeDependencies Condition=" '$(CopyNativeDependencies)' == '' ">true</CopyNativeDependencies>
-
- <!-- Set defaults for native dependencies if not already set. Properties can be overriden in the project files. -->
- <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' ">v120</NativeDependenciesToolset>
- <NativeDependenciesPlatform Condition=" '$(NativeDependenciesPlatform)' == '' ">Win32</NativeDependenciesPlatform>
- <NativeDependenciesConfiguration Condition=" '$(NativeDependenciesConfiguration)' == '' ">Debug</NativeDependenciesConfiguration>
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.targets b/vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.targets
index 1eb63f3fc4..6ee46ba3bc 100644
--- a/vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.targets
+++ b/vsprojects/coapp/openssl/managed_targets/grpc.dependencies.openssl.redist.targets
@@ -1,9 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <!--
+ Whether or not to copy native dependencies to output directory as part of build.
+ If not explicitly specified in the project file, this defaults to true on Windows
+ and false on Unix systems.
+ -->
+ <CopyNativeDependencies Condition=" '$(CopyNativeDependencies)' == '' And '$(OS)' != 'Unix' ">true</CopyNativeDependencies>
+ <CopyNativeDependencies Condition=" '$(CopyNativeDependencies)' == '' And '$(OS)' == 'Unix' ">false</CopyNativeDependencies>
+
+ <!--
+ Select which platform toolset of native dependencies to use based on VS version (v120 is the default).
+ Value can be explicitly specified in the project file.
+ -->
+ <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' And '$(VisualStudioVersion)' == '14.0' ">v140</NativeDependenciesToolset>
+ <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' And '$(VisualStudioVersion)' == '10.0' ">v100</NativeDependenciesToolset>
+ <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' ">v120</NativeDependenciesToolset>
+
+ <!-- Select which platform of native dependencies to use. Value can be explicitly specified in the project file. -->
+ <NativeDependenciesPlatform Condition=" '$(NativeDependenciesPlatform)' == '' ">Win32</NativeDependenciesPlatform>
+
+ <!--
+ Select which configuration of native dependencies to use. Uses release build if project configuration is Release,
+ otherwise defaults to Debug. Value can be explicitly specified in the project file.
+ -->
+ <NativeDependenciesConfiguration Condition=" '$(NativeDependenciesConfiguration)' == '' And '$(Configuration)' == 'Release' ">Release</NativeDependenciesConfiguration>
+ <NativeDependenciesConfiguration Condition=" '$(NativeDependenciesConfiguration)' == '' ">Debug</NativeDependenciesConfiguration>
+ </PropertyGroup>
<Choose>
<!-- Under older versions of Monodevelop, Choose is not supported and is just ignored, which gives us the desired effect. -->
- <When Condition=" '$(OS)' != 'Unix' ">
- <ItemGroup Condition=" '$(CopyNativeDependencies)' == 'true' ">
+ <When Condition=" '$(CopyNativeDependencies)' == 'true' ">
+ <ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)..\..\build\native\bin\$(NativeDependenciesToolset)\$(NativeDependenciesPlatform)\$(NativeDependenciesConfiguration)\dynamic\libeay32.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
diff --git a/vsprojects/coapp/openssl/packages.config b/vsprojects/coapp/openssl/packages.config
index e1f8f360da..2d4749d069 100644
--- a/vsprojects/coapp/openssl/packages.config
+++ b/vsprojects/coapp/openssl/packages.config
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
- <package id="grpc.dependencies.zlib" version="1.2.8.9" targetFramework="Native" />
- <package id="grpc.dependencies.zlib.redist" version="1.2.8.9" targetFramework="Native" />
+ <package id="grpc.dependencies.zlib" version="1.2.8.10" targetFramework="Native" />
+ <package id="grpc.dependencies.zlib.redist" version="1.2.8.10" targetFramework="Native" />
</packages> \ No newline at end of file
diff --git a/vsprojects/coapp/openssl/ssleay32.vcxproj b/vsprojects/coapp/openssl/ssleay32.vcxproj
index 4cc2436b44..3ed1361d99 100644
--- a/vsprojects/coapp/openssl/ssleay32.vcxproj
+++ b/vsprojects/coapp/openssl/ssleay32.vcxproj
@@ -36,8 +36,8 @@
</PropertyGroup>
<Import Project="$(CoAppEtcDirectory)vcxproj.inc" Condition="Exists('$(CoAppEtcDirectory)vcxproj.inc')" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.props')" Project=".\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.props" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.props')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.props" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.props')" Project=".\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.props" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.props')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.props" />
<ImportGroup Label="ExtensionSettings" />
<ImportGroup Label="PropertySheets">
<Import Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" />
@@ -212,8 +212,8 @@
<ResourceCompile Include="$(OpenSslPath)\ms\version32.rc" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.targets')" Project=".\packages\grpc.dependencies.zlib.1.2.8.9\build\native\grpc.dependencies.zlib.targets" />
- <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.targets')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.9\build\native\grpc.dependencies.zlib.redist.targets" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.targets')" Project=".\packages\grpc.dependencies.zlib.1.2.8.10\build\native\grpc.dependencies.zlib.targets" />
+ <Import Condition="exists('.\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.targets')" Project=".\packages\grpc.dependencies.zlib.redist.1.2.8.10\build\native\grpc.dependencies.zlib.redist.targets" />
<ImportGroup Label="ExtensionTargets" />
<PropertyGroup>
<Build-Perl-zlib Condition="'$(Linkage-zlib)'=='dynamic'">zlib-dynamic</Build-Perl-zlib>
diff --git a/vsprojects/coapp/openssl/version.inc b/vsprojects/coapp/openssl/version.inc
index f27552bba3..aa801bea5b 100644
--- a/vsprojects/coapp/openssl/version.inc
+++ b/vsprojects/coapp/openssl/version.inc
@@ -1 +1 @@
-#define { package-version: 1.0.2.2; }
+#define { package-version: 1.0.204.1; }
diff --git a/vsprojects/coapp/zlib/.gitignore b/vsprojects/coapp/zlib/.gitignore
new file mode 100644
index 0000000000..7c93b345a3
--- /dev/null
+++ b/vsprojects/coapp/zlib/.gitignore
@@ -0,0 +1,5 @@
+*.nupkg
+/nuget.exe
+/Intermediate
+/Output
+
diff --git a/vsprojects/coapp/zlib/README.md b/vsprojects/coapp/zlib/README.md
index c81a57a48b..d62e9030ed 100644
--- a/vsprojects/coapp/zlib/README.md
+++ b/vsprojects/coapp/zlib/README.md
@@ -6,6 +6,7 @@ Uses [CoApp](http://coapp.org/) project to build the zlib package.
Prerequisites
-------------
Multiple versions of VS installed to be able to build all the targets:
+* Visual Studio 2015
* Visual Studio 2013
* Visual Studio 2010 (you might need SP1 to prevent LNK1123 error)
diff --git a/vsprojects/coapp/zlib/buildall.bat b/vsprojects/coapp/zlib/buildall.bat
index a71e56f4ae..840410a5a2 100644
--- a/vsprojects/coapp/zlib/buildall.bat
+++ b/vsprojects/coapp/zlib/buildall.bat
@@ -1,6 +1,30 @@
@echo off
setlocal
+REM setlocal
+REM call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
+REM call :build x64 Release v100 || goto :eof
+REM call :build x64 Debug v100 || goto :eof
+REM endlocal
+
+setlocal
+call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
+call :build Win32 Release v100 || goto :eof
+call :build Win32 Debug v100 || goto :eof
+endlocal
+
+setlocal
+call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
+call :build x64 Release v140 || goto :eof
+call :build x64 Debug v140 || goto :eof
+endlocal
+
+setlocal
+call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
+call :build Win32 Release v140 || goto :eof
+call :build Win32 Debug v140 || goto :eof
+endlocal
+
setlocal
call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
call :build x64 Release v120 || goto :eof
@@ -25,27 +49,15 @@ REM call :build Win32 Release v110 || goto :eof
REM call :build Win32 Debug v110 || goto :eof
REM endlocal
-REM setlocal
-REM call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
-REM call :build x64 Release v100 || goto :eof
-REM call :build x64 Debug v100 || goto :eof
-REM endlocal
-
-setlocal
-call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
-call :build Win32 Release v100 || goto :eof
-call :build Win32 Debug v100 || goto :eof
-endlocal
-
goto :eof
:build
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Dynamic /P:CallingConvention=cdecl .\zlib.sln || goto :eof
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Dynamic /P:CallingConvention=stdcall .\zlib.sln || goto :eof
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Static /P:CallingConvention=cdecl .\zlib.sln || goto :eof
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Static /P:CallingConvention=stdcall .\zlib.sln || goto :eof
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=ltcg /P:CallingConvention=cdecl .\zlib.sln || goto :eof
-msbuild /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=ltcg /P:CallingConvention=stdcall .\zlib.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Dynamic /P:CallingConvention=cdecl .\zlib.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Dynamic /P:CallingConvention=stdcall .\zlib.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Static /P:CallingConvention=cdecl .\zlib.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=Static /P:CallingConvention=stdcall .\zlib.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=ltcg /P:CallingConvention=cdecl .\zlib.sln || goto :eof
+msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=ltcg /P:CallingConvention=stdcall .\zlib.sln || goto :eof
goto :eof
diff --git a/vsprojects/coapp/zlib/grpc.dependencies.zlib.autopkg b/vsprojects/coapp/zlib/grpc.dependencies.zlib.autopkg
index da0455d4c7..9dcc43aef3 100644
--- a/vsprojects/coapp/zlib/grpc.dependencies.zlib.autopkg
+++ b/vsprojects/coapp/zlib/grpc.dependencies.zlib.autopkg
@@ -1,7 +1,14 @@
@import @"version.inc";
-configurations {
-};
+configurations
+{
+ // See https://github.com/coapp/coapp.powershell/issues/112
+ Toolset
+ {
+ key : "PlatformToolset"; // this is CoApp pre-defined key
+ choices: { v140, v120, v110, v100 };
+ };
+}
#define {
package-id = "grpc.dependencies.zlib";
@@ -36,8 +43,7 @@ nuget {
#output {
package = redist;
};
- #destination = "\build\portable-net45";
- "managed_targets\${package-id}.redist.props";
+ #destination = "\build\portable-net45+netcore45+wpa81+wp8";
"managed_targets\${package-id}.redist.targets";
};
@@ -74,14 +80,14 @@ nuget {
"..\..\..\third_party\zlib\zutil.h",
"..\..\..\third_party\zlib\contrib\masmx64\inffas8664.c",
};
- ("v100,v120", "Win32,x64", "Release,Debug", "Dynamic", "cdecl,stdcall", "MultiByte") => {
+ ("v100,v120,v140", "Win32,x64", "Release,Debug", "Dynamic", "cdecl,stdcall", "MultiByte") => {
[${0},${1},${2},${3},${4}] {
lib: { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.lib };
bin: { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.dll };
symbols: { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.pdb };
};
};
- ("v100,v120", "Win32,x64", "Release,Debug", "Static,ltcg", "cdecl,stdcall", "MultiByte") => {
+ ("v100,v120,v140", "Win32,x64", "Release,Debug", "Static,ltcg", "cdecl,stdcall", "MultiByte") => {
[${0},${1},${2},${3},${4}] {
lib: { .\output\${0}\${1}\${2}\${3}\${4}\${5}\*.lib };
};
diff --git a/vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.props b/vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.props
deleted file mode 100644
index bcb37de0f7..0000000000
--- a/vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.props
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <PropertyGroup>
- <!-- Whether or not copy native dependencies to output directory after building -->
- <CopyNativeDependencies Condition=" '$(CopyNativeDependencies)' == '' ">true</CopyNativeDependencies>
-
- <!-- Set defaults for native dependencies if not already set. Properties can be overriden in the project files. -->
- <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' ">v120</NativeDependenciesToolset>
- <NativeDependenciesPlatform Condition=" '$(NativeDependenciesPlatform)' == '' ">Win32</NativeDependenciesPlatform>
- <NativeDependenciesConfiguration Condition=" '$(NativeDependenciesConfiguration)' == '' ">Debug</NativeDependenciesConfiguration>
- <ZlibCallingConvention Condition=" '$(ZlibCallingConvention)' == '' ">cdecl</ZlibCallingConvention>
- </PropertyGroup>
-</Project> \ No newline at end of file
diff --git a/vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.targets b/vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.targets
index f00d97dc36..03002d0727 100644
--- a/vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.targets
+++ b/vsprojects/coapp/zlib/managed_targets/grpc.dependencies.zlib.redist.targets
@@ -1,9 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <!--
+ Whether or not to copy native dependencies to output directory as part of build.
+ If not explicitly specified in the project file, this defaults to true on Windows
+ and false on Unix systems.
+ -->
+ <CopyNativeDependencies Condition=" '$(CopyNativeDependencies)' == '' And '$(OS)' != 'Unix' ">true</CopyNativeDependencies>
+ <CopyNativeDependencies Condition=" '$(CopyNativeDependencies)' == '' And '$(OS)' == 'Unix' ">false</CopyNativeDependencies>
+
+ <!--
+ Select which platform toolset of native dependencies to use based on VS version (v120 is the default).
+ Value can be explicitly specified in the project file.
+ -->
+ <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' And '$(VisualStudioVersion)' == '14.0' ">v140</NativeDependenciesToolset>
+ <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' And '$(VisualStudioVersion)' == '10.0' ">v100</NativeDependenciesToolset>
+ <NativeDependenciesToolset Condition=" '$(NativeDependenciesToolset)' == '' ">v120</NativeDependenciesToolset>
+
+ <!-- Select which platform of native dependencies to use. Value can be explicitly specified in the project file. -->
+ <NativeDependenciesPlatform Condition=" '$(NativeDependenciesPlatform)' == '' ">Win32</NativeDependenciesPlatform>
+
+ <!--
+ Select which configuration of native dependencies to use. Uses release build if project configuration is Release,
+ otherwise defaults to Debug. Value can be explicitly specified in the project file.
+ -->
+ <NativeDependenciesConfiguration Condition=" '$(NativeDependenciesConfiguration)' == '' And '$(Configuration)' == 'Release' ">Release</NativeDependenciesConfiguration>
+ <NativeDependenciesConfiguration Condition=" '$(NativeDependenciesConfiguration)' == '' ">Debug</NativeDependenciesConfiguration>
+
+ <ZlibCallingConvention Condition=" '$(ZlibCallingConvention)' == '' ">cdecl</ZlibCallingConvention>
+ </PropertyGroup>
<Choose>
<!-- Under older versions of Monodevelop, Choose is not supported and is just ignored, which gives us the desired effect. -->
- <When Condition=" '$(OS)' != 'Unix' ">
- <ItemGroup Condition=" '$(CopyNativeDependencies)' == 'true' ">
+ <When Condition=" '$(CopyNativeDependencies)' == 'true' ">
+ <ItemGroup>
<Content Include="$(MSBuildThisFileDirectory)..\..\build\native\bin\$(NativeDependenciesToolset)\$(NativeDependenciesPlatform)\$(NativeDependenciesConfiguration)\dynamic\$(ZlibCallingConvention)\zlib.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
diff --git a/vsprojects/coapp/zlib/version.inc b/vsprojects/coapp/zlib/version.inc
index 1f893a4951..fd1a8cf773 100644
--- a/vsprojects/coapp/zlib/version.inc
+++ b/vsprojects/coapp/zlib/version.inc
@@ -1 +1 @@
-#define { package-version : 1.2.8.9; }
+#define { package-version : 1.2.8.10; }