From 672ff597e500e38cda87aee60de655acbbc22ed7 Mon Sep 17 00:00:00 2001 From: Thomas Gamper Date: Sun, 16 Jun 2019 15:38:13 +0200 Subject: winbuild: use WITH_PREFIX if given Closes #4031 --- winbuild/BUILD.WINDOWS.txt | 1 + winbuild/Makefile.vc | 6 +++++- winbuild/MakefileBuild.vc | 9 +++++++-- 3 files changed, 13 insertions(+), 3 deletions(-) (limited to 'winbuild') diff --git a/winbuild/BUILD.WINDOWS.txt b/winbuild/BUILD.WINDOWS.txt index c75b15c4e..1ede14f01 100644 --- a/winbuild/BUILD.WINDOWS.txt +++ b/winbuild/BUILD.WINDOWS.txt @@ -86,6 +86,7 @@ where is one or many of: WITH_CARES= - Enable c-ares support, DLL or static WITH_ZLIB= - Enable zlib support, DLL or static WITH_SSH2= - Enable libSSH2 support, DLL or static + WITH_PREFIX= - Where to install the build ENABLE_SSPI= - Enable SSPI support, defaults to yes ENABLE_IPV6= - Enable IPv6, defaults to yes ENABLE_IDN= - Enable use of Windows IDN APIs, defaults to yes diff --git a/winbuild/Makefile.vc b/winbuild/Makefile.vc index 26ab90693..f5c0c7b00 100644 --- a/winbuild/Makefile.vc +++ b/winbuild/Makefile.vc @@ -39,9 +39,13 @@ CFGSET=true !MESSAGE where is one or many of: !MESSAGE VC=<6,7,8,9,10,11,12,14,15> - VC versions !MESSAGE WITH_DEVEL= - Paths for the development files (SSL, zlib, etc.) -!MESSAGE Defaults to sibbling directory deps: ../deps +!MESSAGE Defaults to curl's sibling directory deps: ../deps !MESSAGE Libraries can be fetched at https://windows.php.net/downloads/php-sdk/deps/ !MESSAGE Uncompress them into the deps folder. +!MESSAGE WITH_PREFIX= - Installation directory path +!MESSAGE Defaults to a configuration dependent (SSL, zlib, etc.) +!MESSAGE directory inside curl's subdirectory builds: ./builds +!MESSAGE Use backslashes as path separator !MESSAGE WITH_SSL= - Enable OpenSSL support, DLL or static !MESSAGE WITH_NGHTTP2= - Enable HTTP/2 support, DLL or static !MESSAGE WITH_CARES= - Enable c-ares support, DLL or static diff --git a/winbuild/MakefileBuild.vc b/winbuild/MakefileBuild.vc index 8d942b759..993ab38bc 100644 --- a/winbuild/MakefileBuild.vc +++ b/winbuild/MakefileBuild.vc @@ -486,8 +486,13 @@ CFLAGS = $(CFLAGS) /DCURL_WITH_MULTI_SSL !ENDIF LIB_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-lib -CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl -DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\ +CURL_DIROBJ = ..\builds\$(CONFIG_NAME_LIB)-obj-curl + +!IFDEF WITH_PREFIX +DIRDIST = $(WITH_PREFIX) +!ELSE +DIRDIST = ..\builds\$(CONFIG_NAME_LIB)\ +!ENDIF # # curl.exe -- cgit v1.2.3