summaryrefslogtreecommitdiff
path: root/build.bat
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2020-02-09 22:46:32 -0700
committerEduardo Chappa <chappa@washington.edu>2020-02-09 22:46:32 -0700
commit8781af1dfc9fdc1fbc08b281cc418bee8dde604d (patch)
treec252c33b49b9d1d9f2d4b783095e5b2adac863da /build.bat
parent58e78a3c43f352b3ac1e2e133c0b41930e38cedb (diff)
downloadalpine-8781af1dfc9fdc1fbc08b281cc418bee8dde604d.tar.xz
* Creation of port wxp to build Alpine in Windows XP. At the time
of this writing, the port w32 is the same as the port wxp, but it is intended to target other 32 bit operating systems.
Diffstat (limited to 'build.bat')
-rwxr-xr-xbuild.bat29
1 files changed, 23 insertions, 6 deletions
diff --git a/build.bat b/build.bat
index 6f43f0a9..ad288fcc 100755
--- a/build.bat
+++ b/build.bat
@@ -11,8 +11,15 @@ rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem ========================================================================
+rem These are the default values, which we might override below
+rem by setting them to older versions
+set CRYPTO_VERSION=45
+set SSL_VERSION=47
+set TLS_VERSION=19
+
if "%1"=="" goto blank
if "%1"=="wnt" goto wnt
+if "%1"=="wxp" goto wxp
if "%1"=="w32" goto w32
if "%1"=="w2k" goto w2k
if "%1"=="clean" goto clean
@@ -24,22 +31,27 @@ echo Must specify build command!
echo usage: BUILD cmd
echo where "cmd" is one of either:
echo wnt -- Windows
-echo w32 -- Windows 32 bits (e.g. XP)
+echo w32 -- Windows 32 bits (not Windows XP)
+echo wxp -- Windows XP
echo w2k -- Windows with Win2k Kerb
echo clean -- to remove obj, lib, and exe files from source
goto fini
-:w32
+:wxp
set CRYPTO_VERSION=41
set SSL_VERSION=43
set TLS_VERSION=15
set BIT=32
-set windows32build=-DW32BITSBUILD
+set windows32build=-DWXPBUILD -D__MINGW_USE_VC2005_COMPAT
+goto wntbuild
+
+:w32
+rem this port uses the default values for libcrypto and friends.
+set BIT=32
+set windows32build=-DW32BITSBUILD -D__MINGW_USE_VC2005_COMPAT
goto wntbuild
:wnt
-set CRYPTO_VERSION=45
-set SSL_VERSION=47
-set TLS_VERSION=19
+rem this port uses the default values for libcrypto and friends.
set BIT=64
set windows32build=
:wntbuild
@@ -164,6 +176,11 @@ rem del garbageout.txt
if not exist mailutil mkdir mailutil
copy /Y "%ALPINE_IMAP%"\src\mailutil\* mailutil\ > garbageout.txt
del garbageout.txt
+if defined ALPINE_LIBRESSL del /Q libressl\x86\lib*.lib
+if defined ALPINE_LIBRESSL del /Q alpine\lib*.dll
+if defined ALPINE_LIBRESSL copy /Y libressl\x86\"%1%"\* libressl\x86\ > garbageout.txt
+if defined ALPINE_LIBRESSL copy /Y alpine\DLL\"%1%"\* alpine\ > garbageout.txt
+if defined ALPINE_LIBRESSL del garbageout.txt
goto build
:build