mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Added scripts for fetching and building curl
This commit is contained in:
39
Common/3dParty/curl/build.bat
Normal file
39
Common/3dParty/curl/build.bat
Normal file
@ -0,0 +1,39 @@
|
||||
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 ..\..
|
||||
6
Common/3dParty/curl/fetch.bat
Normal file
6
Common/3dParty/curl/fetch.bat
Normal file
@ -0,0 +1,6 @@
|
||||
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 ..
|
||||
7
Common/3dParty/curl/fetch.sh
Normal file
7
Common/3dParty/curl/fetch.sh
Normal file
@ -0,0 +1,7 @@
|
||||
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 ..
|
||||
Reference in New Issue
Block a user