gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 31/219: build-openssl.bat: Move the build step into


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 31/219: build-openssl.bat: Move the build step into a separate function
Date: Wed, 22 May 2019 19:16:10 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit ac690c42854e00deca7581a189119e9e5053fcdf
Author: Steve Holme <address@hidden>
AuthorDate: Thu Feb 8 22:05:31 2018 +0000

    build-openssl.bat: Move the build step into a separate function
---
 projects/build-openssl.bat | 38 ++++++++++++++++++++++++++------------
 1 file changed, 26 insertions(+), 12 deletions(-)

diff --git a/projects/build-openssl.bat b/projects/build-openssl.bat
index b976507a7..46cbd7eb2 100644
--- a/projects/build-openssl.bat
+++ b/projects/build-openssl.bat
@@ -240,9 +240,7 @@ rem 
***************************************************************************
   call :configure x64 debug
 
   rem Perform the build
-  call ms\do_win64a
-  nmake -f ms\nt.mak
-  nmake -f ms\ntdll.mak
+  call :build x64
 
   rem Move the output directories
   if exist "%OUTDIR%\LIB Debug" (
@@ -273,9 +271,7 @@ rem 
***************************************************************************
   call :configure x64 release
 
   rem Perform the build
-  call ms\do_win64a
-  nmake -f ms\nt.mak
-  nmake -f ms\ntdll.mak
+  call :build x64
 
   rem Move the output directories
   if exist "%OUTDIR%\LIB Release" (
@@ -313,9 +309,7 @@ rem 
***************************************************************************
   call :configure x86 debug
 
   rem Perform the build
-  call ms\do_ms
-  nmake -f ms\nt.mak
-  nmake -f ms\ntdll.mak
+  call :build x86
 
   rem Move the output directories
   if exist "%OUTDIR%\LIB Debug" (
@@ -346,9 +340,7 @@ rem 
***************************************************************************
   call :configure x86 release
 
   rem Perform the build
-  call ms\do_ms
-  nmake -f ms\nt.mak
-  nmake -f ms\ntdll.mak
+  call :build x86
 
   rem Move the output directories
   if exist "%OUTDIR%\LIB Release" (
@@ -414,6 +406,28 @@ rem
 
   exit /B %ERRORLEVEL
 
+rem Main build function.
+rem
+rem %1 - Platform (x86 or x64)
+rem
+:build
+  setlocal
+
+  if "%1" == "" exit /B 1
+
+  if "%1" == "x86" (
+    call ms\do_ms.bat
+  ) else if "%1" == "x64" (
+    call ms\do_win64a.bat
+  ) else (
+    exit /B 1
+  )
+
+  nmake -f ms\nt.mak
+  nmake -f ms\ntdll.mak
+
+  exit /B 0
+
 :syntax
   rem Display the help
   echo.

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]