Commit 429729b9 authored by Alexey.Golubev's avatar Alexey.Golubev

remade build.bat

parent d7096529
SET SCRIPTPATH=%~dp0 SET SCRIPTPATH=%~dp0
CD /D %~dp0 CD /D %~dp0
SET PLATFORM=win_32 SET MACHINE=x86
if defined ProgramFiles(x86) ( if defined ProgramFiles(x86) (
SET PLATFORM=win_64 SET MACHINE=x64
)
if defined TARGET (
SET PLATFORM=%TARGET%
) )
if "%TARGET%" == "win-32" ( if "%TARGET%" == "win-32" (
SET PLATFORM=x86 SET MACHINE=x86
) )
if "%TARGET%" == "win-64" ( if "%TARGET%" == "win-64" (
SET PLATFORM=x64 SET MACHINE=x64
) )
if "%PLATFORM%" == "win_32" ( if "%MACHINE%" == "x86" (
SET MACHINE=x86 SET OUTPUT=win_32
) )
if "%PLATFORM%" == "win_64" ( if "%MACHINE%" == "x64" (
SET MACHINE=x64 SET OUTPUT=win_64
) )
SET VC="%ProgramFiles%\Microsoft Visual Studio 12.0\VC" SET VC=%ProgramFiles%\Microsoft Visual Studio 12.0\VC
SET VC64="%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC" SET VC64=%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC
if exist %VC64% ( if exist %VC64% (
SET VC=%VC64% SET VC=%VC64%
) )
call %VC%\vcvarsall.bat %MACHINE% call "%VC%\vcvarsall.bat %MACHINE%"
cd curl cd curl
call buildconf.bat call buildconf.bat
cd winbuild cd winbuild
nmake /f Makefile.vc mode=static ENABLE_WINSSL=yes MACHINE=%MACHINE% VC=12 nmake /f Makefile.vc mode=static ENABLE_WINSSL=yes MACHINE=%MACHINE% VC=12
if not exist "%SCRIPTPATH%%PLATFORM%" ( if not exist "%SCRIPTPATH%%OUTPUT%" (
md %SCRIPTPATH%%PLATFORM%\build md %SCRIPTPATH%%OUTPUT%\build
xcopy /Y /S ..\builds\libcurl-vc12-%MACHINE%-release-static-ipv6-sspi-winssl\lib\libcurl_a.lib %SCRIPTPATH%%PLATFORM%\build\ xcopy /Y /S ..\builds\libcurl-vc12-%MACHINE%-release-static-ipv6-sspi-winssl\lib\libcurl_a.lib %SCRIPTPATH%%OUTPUT%\build\
mv %SCRIPTPATH%%PLATFORM%\build\libcurl_a.lib %SCRIPTPATH%%PLATFORM%\build\curl.lib mv %SCRIPTPATH%%OUTPUT%\build\libcurl_a.lib %SCRIPTPATH%%OUTPUT%\build\curl.lib
) )
cd ..\.. cd ..\..
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment