Commit 3c9a91af authored by Alexey.Golubev's avatar Alexey.Golubev

Added scripts for fetching and building curl

parent 9f06f94c
SET SCRIPTPATH=%~dp0
CD /D %~dp0
SET PLATFORM=win_32
if defined ProgramFiles(x86) (
SET PLATFORM=win_64
)
if defined TARGET (
SET PLATFORM=%TARGET%
)
if "%PLATFORM%" == "win_32" (
SET MACHINE=x86
)
if "%PLATFORM%" == "win_64" (
SET MACHINE=x64
)
SET VC="%ProgramFiles%\Microsoft Visual Studio 12.0\VC"
SET VC64="%ProgramFiles(x86)%\Microsoft Visual Studio 12.0\VC"
if exist %VC64% (
SET VC=%VC64%
)
call %VC%\vcvarsall.bat %MACHINE%
cd curl
call buildconf.bat
cd winbuild
nmake /f Makefile.vc mode=static ENABLE_WINSSL=yes MACHINE=%MACHINE% VC=12
if not exist "%SCRIPTPATH%%PLATFORM%" (
md %SCRIPTPATH%%PLATFORM%\build
xcopy /Y /S ..\builds\libcurl-vc12-%MACHINE%-release-static-ipv6-sspi-winssl\lib\libcurl_a.lib %SCRIPTPATH%%PLATFORM%\build\
mv %SCRIPTPATH%%PLATFORM%\build\libcurl_a.lib %SCRIPTPATH%%PLATFORM%\build\curl.lib
)
cd ..\..
\ No newline at end of file
SET CURL_FOLDER=curl
IF NOT EXIST %CURL_FOLDER% CALL git clone https://github.com/curl/curl.git %CURL_FOLDER%
CD %CURL_FOLDER%
CALL git fetch
CALL git checkout curl-7_54_1
CD ..
\ No newline at end of file
CURL_FOLDER=curl
if [ ! -d ${CURL_FOLDER} ]; then
git clone https://github.com/curl/curl.git ${CURL_FOLDER}
cd ${CURL_FOLDER}
git fetch
git checkout curl-7_54_1
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