Jan Tattermusch | f551edf | 2016-05-13 10:49:17 -0700 | [diff] [blame] | 1 | @rem Copyright 2016, Google Inc. |
| 2 | @rem All rights reserved. |
| 3 | @rem |
| 4 | @rem Redistribution and use in source and binary forms, with or without |
| 5 | @rem modification, are permitted provided that the following conditions are |
| 6 | @rem met: |
| 7 | @rem |
| 8 | @rem * Redistributions of source code must retain the above copyright |
| 9 | @rem notice, this list of conditions and the following disclaimer. |
| 10 | @rem * Redistributions in binary form must reproduce the above |
| 11 | @rem copyright notice, this list of conditions and the following disclaimer |
| 12 | @rem in the documentation and/or other materials provided with the |
| 13 | @rem distribution. |
| 14 | @rem * Neither the name of Google Inc. nor the names of its |
| 15 | @rem contributors may be used to endorse or promote products derived from |
| 16 | @rem this software without specific prior written permission. |
| 17 | @rem |
| 18 | @rem THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 19 | @rem "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 20 | @rem LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 21 | @rem A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 22 | @rem OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 | @rem SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 | @rem LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 | @rem DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 | @rem THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 | @rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 | @rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Jan Tattermusch | bbfa1d5 | 2015-10-22 15:50:08 -0700 | [diff] [blame] | 29 | |
| 30 | rem Restore using NuGet dependencies (Download NuGet from nuget.org and put it in this directory first) |
| 31 | nuget restore || goto eof: |
| 32 | |
| 33 | |
| 34 | setlocal |
Jan Tattermusch | a7fab60 | 2015-10-22 16:10:40 -0700 | [diff] [blame] | 35 | rem First do a bit of hacking to make sure we have headers ready in openssl's inc32 directory |
| 36 | cd ..\..\..\third_party\openssl |
Jan Tattermusch | bbfa1d5 | 2015-10-22 15:50:08 -0700 | [diff] [blame] | 37 | call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 |
| 38 | perl Configure no-asm VC-WIN32 || goto :eof |
| 39 | perl util\mkfiles.pl >MINFO || goto :eof |
| 40 | perl util\mk1mf.pl no-asm VC-WIN32 >ms\nt.mak || goto :eof |
| 41 | mkdir inc32\openssl |
| 42 | mkdir tmp32 |
| 43 | nmake -f ms\nt.mak headers || goto :eof |
| 44 | endlocal |
Jan Tattermusch | ef292c3 | 2015-11-30 14:18:35 -0800 | [diff] [blame] | 45 | |
| 46 | setlocal |
| 47 | call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 |
| 48 | call :build x64 Release v140 || goto :eof |
| 49 | call :build x64 Debug v140 || goto :eof |
| 50 | endlocal |
| 51 | |
| 52 | setlocal |
| 53 | call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86 |
| 54 | call :build Win32 Release v140 || goto :eof |
| 55 | call :build Win32 Debug v140 || goto :eof |
| 56 | endlocal |
Jan Tattermusch | bbfa1d5 | 2015-10-22 15:50:08 -0700 | [diff] [blame] | 57 | |
| 58 | setlocal |
| 59 | call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64 |
| 60 | call :build x64 Release v120 || goto :eof |
| 61 | call :build x64 Debug v120 || goto :eof |
| 62 | endlocal |
| 63 | |
| 64 | setlocal |
| 65 | call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86 |
| 66 | call :build Win32 Release v120 || goto :eof |
| 67 | call :build Win32 Debug v120 || goto :eof |
| 68 | endlocal |
| 69 | |
| 70 | rem setlocal |
| 71 | rem call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64 |
| 72 | rem call :build x64 Release v110 || goto :eof |
| 73 | rem call :build x64 Debug v110 || goto :eof |
| 74 | rem endlocal |
| 75 | |
| 76 | rem setlocal |
| 77 | rem call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86 |
| 78 | rem call :build Win32 Release v110 || goto :eof |
| 79 | rem call :build Win32 Debug v110 || goto :eof |
| 80 | rem endlocal |
| 81 | |
| 82 | rem setlocal |
| 83 | rem call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64 |
| 84 | rem call :build x64 Release v100 || goto :eof |
| 85 | rem call :build x64 Debug v100 || goto :eof |
| 86 | rem endlocal |
| 87 | |
| 88 | setlocal |
| 89 | call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86 |
| 90 | call :build Win32 Release v100 || goto :eof |
| 91 | call :build Win32 Debug v100 || goto :eof |
| 92 | endlocal |
| 93 | |
| 94 | :build |
Jan Tattermusch | ef292c3 | 2015-11-30 14:18:35 -0800 | [diff] [blame] | 95 | msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=dynamic /P:ConfigurationType=DynamicLibrary .\openssl.sln || goto :eof |
| 96 | msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=static /P:ConfigurationType=StaticLibrary .\openssl.sln || goto :eof |
Jan Tattermusch | bbfa1d5 | 2015-10-22 15:50:08 -0700 | [diff] [blame] | 97 | goto :eof |
| 98 | |
| 99 | |