blob: f5797abb219510b764701aa0bdbc5dd40556bdf1 [file] [log] [blame]
Jan Tattermuschf551edf2016-05-13 10:49:17 -07001@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 Tattermuschbbfa1d52015-10-22 15:50:08 -070029
30rem Restore using NuGet dependencies (Download NuGet from nuget.org and put it in this directory first)
31nuget restore || goto eof:
32
33
34setlocal
Jan Tattermuscha7fab602015-10-22 16:10:40 -070035rem First do a bit of hacking to make sure we have headers ready in openssl's inc32 directory
36cd ..\..\..\third_party\openssl
Jan Tattermuschbbfa1d52015-10-22 15:50:08 -070037call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
38perl Configure no-asm VC-WIN32 || goto :eof
39perl util\mkfiles.pl >MINFO || goto :eof
40perl util\mk1mf.pl no-asm VC-WIN32 >ms\nt.mak || goto :eof
41mkdir inc32\openssl
42mkdir tmp32
43nmake -f ms\nt.mak headers || goto :eof
44endlocal
Jan Tattermuschef292c32015-11-30 14:18:35 -080045
46setlocal
47call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
48call :build x64 Release v140 || goto :eof
49call :build x64 Debug v140 || goto :eof
50endlocal
51
52setlocal
53call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86
54call :build Win32 Release v140 || goto :eof
55call :build Win32 Debug v140 || goto :eof
56endlocal
Jan Tattermuschbbfa1d52015-10-22 15:50:08 -070057
58setlocal
59call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
60call :build x64 Release v120 || goto :eof
61call :build x64 Debug v120 || goto :eof
62endlocal
63
64setlocal
65call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86
66call :build Win32 Release v120 || goto :eof
67call :build Win32 Debug v120 || goto :eof
68endlocal
69
70rem setlocal
71rem call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" amd64
72rem call :build x64 Release v110 || goto :eof
73rem call :build x64 Debug v110 || goto :eof
74rem endlocal
75
76rem setlocal
77rem call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\vcvarsall.bat" x86
78rem call :build Win32 Release v110 || goto :eof
79rem call :build Win32 Debug v110 || goto :eof
80rem endlocal
81
82rem setlocal
83rem call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
84rem call :build x64 Release v100 || goto :eof
85rem call :build x64 Debug v100 || goto :eof
86rem endlocal
87
88setlocal
89call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" x86
90call :build Win32 Release v100 || goto :eof
91call :build Win32 Debug v100 || goto :eof
92endlocal
93
94:build
Jan Tattermuschef292c32015-11-30 14:18:35 -080095msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=dynamic /P:ConfigurationType=DynamicLibrary .\openssl.sln || goto :eof
96msbuild /m:4 /P:Platform=%1 /P:Configuration=%2 /P:PlatformToolset=%3 /P:UsesConfigurationType=static /P:ConfigurationType=StaticLibrary .\openssl.sln || goto :eof
Jan Tattermuschbbfa1d52015-10-22 15:50:08 -070097goto :eof
98
99