Skip to content

Commit 37b5d25

Browse files
hmeldertriplef
authored andcommitted
Add libcurl phase
1 parent 6284bed commit 37b5d25

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

phases/19-libcurl.bat

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
@echo off
2+
setlocal
3+
4+
set PROJECT=libcurl
5+
set GITHUB_REPO=curl/curl
6+
7+
:: get the latest release tag from GitHub
8+
::
9+
:: note: The curl project tags a release different.
10+
cd %~dp0
11+
for /f "usebackq delims=" %%i in (`call %BASH% '../scripts/get-latest-github-release-tag.sh %GITHUB_REPO% curl'`) do (
12+
set TAG=%%i
13+
)
14+
15+
:: load environment and prepare project
16+
call "%~dp0\..\scripts\common.bat" prepare_project || exit /b 1
17+
18+
cd "%SRCROOT%\%PROJECT%" || exit \b 1
19+
20+
:: Generates the tool_hugehelp.c file
21+
call "buildconf.bat" || exit \b 1
22+
23+
set BUILD_DIR="%SRCROOT%\%PROJECT%\build-%ARCH%-%BUILD_TYPE%"
24+
if exist "%BUILD_DIR%" (rmdir /S /Q "%BUILD_DIR%" || exit /b 1)
25+
mkdir "%BUILD_DIR%" || exit /b 1
26+
cd "%BUILD_DIR%" || exit /b 1
27+
28+
29+
echo.
30+
echo ### Running cmake
31+
cmake .. %CMAKE_OPTIONS% ^
32+
-D BUILD_SHARED_LIBS=NO ^
33+
-D BUILD_CURL_EXE=NO ^
34+
|| exit /b 1
35+
36+
echo.
37+
echo ### Building
38+
ninja || exit /b 1
39+
40+
echo.
41+
echo ### Installing
42+
ninja install || exit /b 1
43+
44+
ren "%INSTALL_PREFIX%\lib\libcurl-d.lib" "%INSTALL_PREFIX%\lib\curl.lib"

0 commit comments

Comments
 (0)