OLD | NEW |
(Empty) | |
| 1 @import @"version.inc"; |
| 2 |
| 3 configurations |
| 4 { |
| 5 // See https://github.com/coapp/coapp.powershell/issues/112 |
| 6 Toolset |
| 7 { |
| 8 key : "PlatformToolset"; // this is CoApp pre-defined key |
| 9 choices: { v140, v120, v110, v100 }; |
| 10 }; |
| 11 } |
| 12 |
| 13 #define { |
| 14 package-id = "grpc.dependencies.openssl"; |
| 15 } |
| 16 |
| 17 nuget { |
| 18 // the nuspec file metadata. Gets created/updated on build |
| 19 nuspec { |
| 20 id = ${package-id}; |
| 21 version : ${package-version}; |
| 22 title: gRPC Native Dependency: OpenSSL; |
| 23 authors: {Mark J. Cox, Ralf S. Engelschall, Dr. Stephen Henson,
Ben Laurie, Garrett Serack, Tim Rogers}; |
| 24 owners: {Jan Tattermusch}; |
| 25 licenseUrl: "http://www.openssl.org/source/license.html"; |
| 26 projectUrl: "http://github.com/grpc/grpc"; |
| 27 iconUrl: "http://openssl.com/images/openssl-logo.png"; |
| 28 requireLicenseAcceptance:false; |
| 29 summary: "An OpenSSL library"; |
| 30 description: @"Native OpenSSL library. |
| 31 OpenSSL homepage: http://www.openssl.org"; |
| 32 releaseNotes: "Release of OpenSSL 1.0.2d libraries."; |
| 33 copyright: Copyright 2015; |
| 34 tags: { openssl, native, CoApp }; |
| 35 |
| 36 }; |
| 37 |
| 38 dependencies { |
| 39 packages : { |
| 40 grpc.dependencies.zlib/1.2.8.10 |
| 41 }; |
| 42 } |
| 43 |
| 44 // the files that go into the content folders |
| 45 // (inserted into the nuspec file) |
| 46 files { |
| 47 |
| 48 // .targets file that are applied when redist package is installed f
rom a managed project. |
| 49 managed_build: { |
| 50 #output { |
| 51 package = redist; |
| 52 }; |
| 53 #destination = "\build\portable-net45+netcore45+wpa81+wp8"; |
| 54 "managed_targets\${package-id}.redist.targets"; |
| 55 }; |
| 56 |
| 57 nestedInclude: { |
| 58 #destination = "${d_include}\openssl"; |
| 59 #excludes : { ..\..\..\third_party\openssl\inc32\openssl
\opensslconf.h }; |
| 60 "..\..\..\third_party\openssl\inc32\openssl\*"; |
| 61 }; |
| 62 |
| 63 // TODO(jtattermusch): Visual Studio 2010 and 2012 Express (v100
and v110 toolsets) don't support x64, |
| 64 // so while generating the package, you will get a warning that correspo
nding files are missing |
| 65 // (and the resulting package will be somewhat incomplete). |
| 66 ("v100,v120,v140", "Win32,x64", "release,debug", "Dynamic,Static
") => { |
| 67 [${0},${1},${2},${3}] { |
| 68 lib: { .\output\${0}\${1}\${2}\${3}\libe
ay32.lib; |
| 69 .\output\${0}\${1}\${2}\${3}\ssle
ay32.lib }; |
| 70 |
| 71 source: { |
| 72 #destination = ${d_src}\
openssl; |
| 73 .\output\${0}\${1}\${2}\
${3}\include\openssl\opensslconf.h |
| 74 }; |
| 75 }; |
| 76 }; |
| 77 ("v100,v120,v140", "Win32,x64", "release,debug", "Dynamic") => { |
| 78 [${0},${1},${2},${3}] { |
| 79 bin: { .\output\${0}\${1}\${2}\${3}\libeay32
.dll; |
| 80 .\output\${0}\${1}\${2}\${3}\ssleay32.dll }; |
| 81 symbols: { .\output\${0}\${1}\${2}\${3}\libeay32
.pdb; |
| 82 .\output\${0}\${1}\${2}\${3}\ssleay32.pdb }; |
| 83 }; |
| 84 }; |
| 85 |
| 86 }; |
| 87 |
| 88 // the VC++ .props file that gets generated and inserted into the ${d_co
ntent} folder |
| 89 props { |
| 90 PropertyGroup { |
| 91 CallingConvention-zlib = cdecl; |
| 92 } |
| 93 |
| 94 }; |
| 95 |
| 96 // the VC++ .targets file that gets generated and inserted into the ${d_
content} folder |
| 97 targets { |
| 98 // every configuration needs to reference the include directorie
s. |
| 99 Includes += ${pkg_root}${d_include}; |
| 100 // Defines += HAS_ZLIB; |
| 101 |
| 102 ("v100,v110,v120,v140", "Win32,x64", "release,debug", "Dynamic,Static")
=> { |
| 103 [${0},${1},${2},${3}] { |
| 104 Includes += ${pkg_root}${d_include}; |
| 105 }; |
| 106 }; |
| 107 |
| 108 }; |
| 109 } |
| 110 |
OLD | NEW |