[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 54/178: build-openssl.bat: allow custom paths for V
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 54/178: build-openssl.bat: allow custom paths for VS and perl |
Date: |
Wed, 23 May 2018 12:24:49 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit a65a75e9b3cf0f2d5572105ab54a6a0b96f1d71d
Author: patelvivekv1993 <address@hidden>
AuthorDate: Thu Apr 5 16:36:05 2018 +0530
build-openssl.bat: allow custom paths for VS and perl
Fixes #2430
Closes #2457
---
projects/build-openssl.bat | 90 +++++++++++++++++++++++++++++++++-------------
1 file changed, 66 insertions(+), 24 deletions(-)
diff --git a/projects/build-openssl.bat b/projects/build-openssl.bat
index 21709b76b..f5ff12d5e 100644
--- a/projects/build-openssl.bat
+++ b/projects/build-openssl.bat
@@ -109,6 +109,24 @@ rem
***************************************************************************
goto syntax
) else if /i "%~1" == "-help" (
goto syntax
+ ) else if /i "%~1" == "-VSpath" (
+ if "%~2" == "" (
+ echo.
+ echo Error. Please provide VS Path.
+ goto error
+ ) else (
+ set "ABS_VC_PATH=%~2\VC"
+ shift
+ )
+ ) else if /i "%~1" == "-perlpath" (
+ if "%~2" == "" (
+ echo.
+ echo Error. Please provide Perl root Path.
+ goto error
+ ) else (
+ set "PERL_PATH=%~2"
+ shift
+ )
) else (
if not defined START_DIR (
set START_DIR=%~1%
@@ -126,25 +144,37 @@ rem
***************************************************************************
rem Default the start directory if one isn't specified
if not defined START_DIR set START_DIR=..\..\openssl
- rem Check we have a program files directory
- if not defined PF goto nopf
-
+ if not defined ABS_VC_PATH (
+ rem Check we have a program files directory
+ if not defined PF goto nopf
+ set "ABS_VC_PATH=%PF%\%VC_PATH%"
+ )
+
rem Check we have Visual Studio installed
- if not exist "%PF%\%VC_PATH%" goto novc
-
- rem Check we have Perl in our path
- echo %PATH% | findstr /I /C:"\Perl" 1>nul
- if errorlevel 1 (
- rem It isn't so check we have it installed and set the path if it is
- if exist "%SystemDrive%\Perl" (
- set "PATH=%SystemDrive%\Perl\bin;%PATH%"
- ) else (
- if exist "%SystemDrive%\Perl64" (
- set "PATH=%SystemDrive%\Perl64\bin;%PATH%"
- ) else (
- goto noperl
- )
- )
+ if not exist "%ABS_VC_PATH%" goto novc
+
+
+ if not defined PERL_PATH (
+ rem Check we have Perl in our path
+ rem using !! below as %% was having \Microsoft was unexecpted error.
+ echo !PATH! | findstr /I /C:"\Perl" 1>nul
+ if errorlevel 1 (
+ rem It isn't so check we have it installed and set the path if
it is
+ if exist "%SystemDrive%\Perl" (
+ set "PATH=%SystemDrive%\Perl\bin;%PATH%"
+ ) else (
+ if exist "%SystemDrive%\Perl64" (
+ set "PATH=%SystemDrive%\Perl64\bin;%PATH%"
+ ) else (
+
+
+
+ goto noperl
+ )
+ )
+ )
+ ) else (
+ set "PATH=%PERL_PATH%\Perl\bin;%PATH%"
)
rem Check the start directory exists
@@ -186,15 +216,15 @@ rem
***************************************************************************
set SAVED_PATH=%CD%
if "%VC_VER%" == "6.0" (
- call "%PF%\%VC_PATH%\bin\vcvars32"
+ call "%ABS_VC_PATH%\bin\vcvars32"
) else if "%VC_VER%" == "7.0" (
- call "%PF%\%VC_PATH%\bin\vcvars32"
+ call "%ABS_VC_PATH%\bin\vcvars32"
) else if "%VC_VER%" == "7.1" (
- call "%PF%\%VC_PATH%\bin\vcvars32"
+ call "%ABS_VC_PATH%\bin\vcvars32"
) else if "%VC_VER%" == "15.0" (
- call "%PF%\%VC_PATH%\Auxiliary\Build\vcvarsall" %VCVARS_PLATFORM%
+ call "%ABS_VC_PATH%\Auxiliary\Build\vcvarsall" %VCVARS_PLATFORM%
) else (
- call "%PF%\%VC_PATH%\vcvarsall" %VCVARS_PLATFORM%
+ call "%ABS_VC_PATH%\vcvarsall" %VCVARS_PLATFORM%
)
echo.
@@ -351,7 +381,7 @@ rem
***************************************************************************
:syntax
rem Display the help
echo.
- echo Usage: build-openssl ^<compiler^> [platform] [configuration] [directory]
+ echo Usage: build-openssl ^<compiler^> [platform] [configuration]
[directory] [-VSpath] ["VSpath"] [-perlpath] ["perlpath"]
echo.
echo Compiler:
echo.
@@ -379,6 +409,14 @@ rem
***************************************************************************
echo Other:
echo.
echo directory - Specifies the OpenSSL source directory
+ echo.
+ echo -VSpath - Specify the custom VS path if Visual Studio is installed at
other location
+ echo then "C:/<ProgramFiles>/Microsoft Visual Studio[version]
+ echo For e.g. -VSpath "C:\apps\MVS14"
+ echo.
+ echo -perlpath - Specify the custom perl root path if perl is not located at
"C:\Perl" and it is a
+ echo portable copy of perl and not installed on the win system
+ echo For e.g. -perlpath
"D:\strawberry-perl-5.24.3.1-64bit-portable"
goto error
:unknown
@@ -399,11 +437,15 @@ rem
***************************************************************************
:novc
echo.
echo Error: %VC_DESC% is not installed
+ echo Error: Please check whether Visual compiler is installed at the path
"%ABS_VC_PATH%"
+ echo Error: Please provide proper VS Path by using -VSpath
goto error
:noperl
echo.
echo Error: Perl is not installed
+ echo Error: Please check whether Perl is installed or it is at location
"C:\Perl"
+ echo Error: If Perl is portable please provide perl root path by using
-perlpath
goto error
:nox64
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 60/178: configure: detect sa_family_t, (continued)
- [GNUnet-SVN] [gnurl] 60/178: configure: detect sa_family_t, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 45/178: cookie: store cookies per top-level-domain-specific hash table, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 58/178: hash: calculate sizes with size_t instead of longs, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 53/178: FTP: allow PASV on IPv6 connections when a proxy is being used, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 42/178: docs: fix CURLINFO_*_T examples use of CURL_FORMAT_CURL_OFF_T, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 62/178: curl_setup: provide a CURL_SA_FAMILY_T type if none exists, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 59/178: tool_operate: Fix retry on FTP 4xx to ignore other protocols, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 61/178: build: add picky compiler warning flags for gcc 6 and 7, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 46/178: openssl: fix build with LibreSSL 2.7, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 57/178: RELEASE-NOTES: synced, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 54/178: build-openssl.bat: allow custom paths for VS and perl,
gnunet <=
- [GNUnet-SVN] [gnurl] 50/178: tls: fix mbedTLS 2.7.0 build + handle sha256 failures, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 52/178: file: restore old behavior for file:////foo/bar URLs, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 69/178: travis: use trusty for coverage build, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 70/178: travis: bump to clang 6 and gcc 7, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 85/178: README.md: add backers and sponsors, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 55/178: winbuild: make the clean target work without build-type, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 44/178: cookies: when reading from a file, only remove_expired once, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 68/178: lib: silence null-dereference warnings, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 48/178: cookie: fix and optimize 2nd top level domain name extraction, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 51/178: Revert "openssl: Don't add verify locations when verifypeer==0", gnunet, 2018/05/23