Skip to content

Commit 36488ac

Browse files
committed
libcurl: build as shared library with SSL support
1 parent 37b5d25 commit 36488ac

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

phases/19-libcurl.bat

+5-4
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ call "%~dp0\..\scripts\common.bat" prepare_project || exit /b 1
1717

1818
cd "%SRCROOT%\%PROJECT%" || exit \b 1
1919

20-
:: Generates the tool_hugehelp.c file
20+
:: generate build config
2121
call "buildconf.bat" || exit \b 1
2222

2323
set BUILD_DIR="%SRCROOT%\%PROJECT%\build-%ARCH%-%BUILD_TYPE%"
2424
if exist "%BUILD_DIR%" (rmdir /S /Q "%BUILD_DIR%" || exit /b 1)
2525
mkdir "%BUILD_DIR%" || exit /b 1
2626
cd "%BUILD_DIR%" || exit /b 1
2727

28-
2928
echo.
3029
echo ### Running cmake
3130
cmake .. %CMAKE_OPTIONS% ^
32-
-D BUILD_SHARED_LIBS=NO ^
31+
-D BUILD_SHARED_LIBS=YES ^
32+
-D CURL_USE_SCHANNEL=YES ^
3333
-D BUILD_CURL_EXE=NO ^
3434
|| exit /b 1
3535

@@ -41,4 +41,5 @@ echo.
4141
echo ### Installing
4242
ninja install || exit /b 1
4343

44-
ren "%INSTALL_PREFIX%\lib\libcurl-d.lib" "%INSTALL_PREFIX%\lib\curl.lib"
44+
:: rename libcurl-d_imp.lib to curl.lib to allow linking using -lcurl
45+
ren "%INSTALL_PREFIX%\lib\libcurl*.lib" "curl.lib" || exit /b 1

0 commit comments

Comments
 (0)