bind9/win32utils/BuildSetup.bat
Evan Hunt f42c0dcca8 [master] win32 fixes
3605.	[port]		win32: Addressed several compatibility issues
			with newer versions of Visual Studio. [RT #33916]

Squashed commit of the following:

commit 4127af15f85da90cf2bd3a0c5a558daae89e833a
Author: Francis Dupont <fdupont@isc.org>
Date:   Tue Jun 25 22:41:53 2013 +0200

    make the last change to be text

commit 21ef4891b9ee3e3aefb45d4c80d5cb7ec78f264f
Author: Curtis Blackburn <ckb@isc.org>
Date:   Tue Jun 25 12:35:08 2013 -0500

    [rt33916] re-worded for easier reading

commit 83828e47e62fea4070441e645ba8fed338255ceb
Author: Francis Dupont <fdupont@isc.org>
Date:   Mon Jun 24 16:08:11 2013 +0200

    introduce a VCRedistPath env var

commit 0337f2554f168993a65945e78c2879e9bfca5293
Author: Francis Dupont <fdupont@isc.org>
Date:   Sun Jun 23 01:23:26 2013 +0200

    _adjust_fdiv for VS < 2010

commit 375fdd5c06be276b0ff0ad589c0e22b809339fe9
Author: Francis Dupont <fdupont@isc.org>
Date:   Thu Jun 20 16:27:04 2013 +0200

    move to MSVC v1600 as it still breaks on VS 2010

commit bfcaf72071e9d8df1d0ce0c5f05b69acd51bf698
Author: Francis Dupont <fdupont@isc.org>
Date:   Thu Jun 20 15:57:35 2013 +0200

    WIN32: avoid addrinfo redef

commit 18504c3e50b11e66a0b573c7cb3d61094bfa5b52
Author: Francis Dupont <fdupont@isc.org>
Date:   Thu Jun 20 15:54:38 2013 +0200

    WIN32: fseek/ftell

commit f9a4fdccc5ab1c74c64412fb76da7dfd161787b2
Author: Francis Dupont <fdupont@isc.org>
Date:   Thu Jun 20 15:13:01 2013 +0200

    fix WIN32 error redefs in net.h (isc ad lwres libs)
2013-06-26 14:38:35 -07:00

155 lines
4.3 KiB
Batchfile

echo off
rem
rem Copyright (C) 2004,2005 Internet Systems Consortium, Inc. ("ISC")
rem Copyright (C) 2001-2002 Internet Software Consortium.
rem
rem Permission to use, copy, modify, and distribute this software for any
rem purpose with or without fee is hereby granted, provided that the above
rem copyright notice and this permission notice appear in all copies.
rem
rem THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
rem REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
rem AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
rem INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
rem LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
rem OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
rem PERFORMANCE OF THIS SOFTWARE.
rem BuildSetup.bat
rem This script sets up the files necessary ready to build BIND 9.
rem This requires perl to be installed on the system.
rem Set up the configuration file
cd ..
copy config.h.win32 config.h
cd win32utils
rem Get and update for the latest build of the openssl and libxml libraries
perl updateopenssl.pl
perl updatelibxml2.pl
rem Generate the version information
perl makeversion.pl
rem Generate the SRCID information
perl makesrcid.pl
rem Generate header files for lib/dns
call dnsheadergen.bat
rem Make sure that the Build directories are there.
if NOT Exist ..\Build mkdir ..\Build
if NOT Exist ..\Build\Release mkdir ..\Build\Release
if NOT Exist ..\Build\Debug mkdir ..\Build\Debug
echo Copying the ARM and the Installation Notes.
copy ..\COPYRIGHT ..\Build\Release
copy ..\README ..\Build\Release
copy ..\HISTORY ..\Build\Release
copy readme1st.txt ..\Build\Release
copy index.html ..\Build\Release
copy ..\doc\arm\*.html ..\Build\Release
copy ..\doc\arm\Bv9ARM.pdf ..\Build\Release
copy ..\CHANGES ..\Build\Release
copy ..\FAQ ..\Build\Release
echo Copying the standalone manual pages.
copy ..\bin\named\named.html ..\Build\Release
copy ..\bin\rndc\*.html ..\Build\Release
copy ..\bin\confgen\*.html ..\Build\Release
copy ..\bin\dig\*.html ..\Build\Release
copy ..\bin\nsupdate\*.html ..\Build\Release
copy ..\bin\check\*.html ..\Build\Release
copy ..\bin\dnssec\dnssec-keygen.html ..\Build\Release
copy ..\bin\dnssec\dnssec-signzone.html ..\Build\Release
copy ..\bin\dnssec\dnssec-dsfromkey.html ..\Build\Release
copy ..\bin\dnssec\dnssec-keyfromlabel.html ..\Build\Release
copy ..\bin\dnssec\dnssec-settime.html ..\Build\Release
copy ..\bin\dnssec\dnssec-revoke.html ..\Build\Release
copy ..\bin\dnssec\dnssec-verify.html ..\Build\Release
copy ..\bin\pkcs11\pkcs11-keygen.html ..\Build\Release
copy ..\bin\pkcs11\pkcs11-list.html ..\Build\Release
copy ..\bin\pkcs11\pkcs11-destroy.html ..\Build\Release
echo Copying the migration notes.
copy ..\doc\misc\migration ..\Build\Release
copy ..\doc\misc\migration-4to9 ..\Build\Release
call SetupLibs.bat
rem
rem try to find vcredist_x86.exe upper
rem
if Not Defined VCRedistPath (
if Exist ..\..\vcredist_x86.exe set VCRedistPath=..\..\vcredist_x86.exe
)
rem
rem get vcredist where someone said it should be
rem
if Defined VCRedistPath (
if Exist "%VCRedistPath%" (
echo Copying Visual C x86 Redistributable Installer
rem
rem Use /Y so we allways have the current version of the installer.
rem
copy /Y "%VCRedistPath%" ..\Build\Release\
copy /Y "%VCRedistPath%" ..\Build\Debug\
) else (
echo "**** %VCRedistPath% not found ****"
)
) else (
rem
rem set vcredist here so that it is correctly expanded in the if body
rem
set vcredist=BootStrapper\Packages\vcredist_x86\vcredist_x86.exe
if Defined FrameworkSDKDir (
rem
rem vcredist_x86.exe path relative to FrameworkSDKDir
rem
if Exist "%FrameworkSDKDir%\%vcredist%" (
echo Copying Visual C x86 Redistributable Installer
rem
rem Use /Y so we allways have the current version of the installer.
rem
copy /Y "%FrameworkSDKDir%\%vcredist%" ..\Build\Release\
copy /Y "%FrameworkSDKDir%\%vcredist%" ..\Build\Debug\
) else (
echo "**** %FrameworkSDKDir%\%vcredist% not found ****"
)
) else (
if NOT Defined FrameworkDir (
echo "**** Warning FrameworkSDKDir not defined ****"
echo "**** Run vsvars32.bat ****"
) else (
echo "**** vcredist_x86.exe not found ****"
echo "**** please set VCRedistPath ****"
)
)
)
echo Running Message Compiler
cd ..\lib\win32\bindevt
mc bindevt.mc
cd ..\..\..\win32utils
rem Done