libcurl
The multiprotocol file transfer library.
Add to xmake.lua
add_requires("libcurl")Learn how to add and link packages with Xmake →
Information
- License
- MIT
- Recipe updated
- 2026-08-04T04:51:47.000Z
Platforms
- wasm: wasm32, wasm64
- mingw: i386, x86_64, arm, arm64
- windows: x86, x64, arm, arm64, arm64ec
- linux: i386, x86_64, armv7, armv7s, arm64, mips, mips64, mipsel, mips64el, loong64, riscv64, s390x, ppc, ppc64, ppc64el, sparc64
- bsd: i386, x86_64, arm, arm64, ppc, ppc64, ppc64el, riscv64, sparc64
- cross: i386, x86_64, arm, armv7, arm64, mips, mips64, mips64el, riscv, riscv64, loong64, s390x, ppc, ppc64, ppc64el, sh4, sparc64
- android: armeabi, armeabi-v7a, arm64-v8a, riscv64, x86, x86_64, mips, mip64
- iphoneos: arm64, x86_64
- macosx: x86_64, arm64
Options
brotli- Enable brotli support. · Type: boolean · Default: false
cares- Enable c-ares support. · Type: boolean · Default: false
libidn2- Use Libidn2 for IDN support. · Type: boolean · Default: false
libpsl- Use libpsl library. · Type: boolean · Default: false
libssh2- Use libSSH2 library. · Type: boolean · Default: false
mbedtls- Enable mbedTLS for SSL/TLS. · Type: boolean
nghttp2- Use Nghttp2 library. · Type: boolean · Default: false
openldap- Use OpenLDAP library. · Type: boolean · Default: false
openssl- Enable OpenSSL for SSL/TLS. · Type: boolean
openssl3- Enable OpenSSL-3 for SSL/TLS. · Type: boolean
zlib- Enable zlib support. · Type: boolean · Default: false
zstd- Enable zstd support. · Type: boolean · Default: false
Versions
No versions listed.
Dependencies
No dependencies declared.
Used by (16)
Packages declaring this dependency; requirements can vary by platform and configuration.
Show 4 more
Install with xrepo
Install the package independently of a project and inspect its available configuration.
install
xrepo install "libcurl"show info
xrepo info "libcurl"Link a library to your target
Declare the requirement, then attach the library to the target that uses it.
xmake.lua
add_requires("libcurl")
target("demo")
set_kind("binary")
add_files("src/*.cpp")
add_packages("libcurl")Open a package environment
Open a shell with the environment exported by this package. Use the executable names documented by the package.
enter shell
xrepo env -b "libcurl" shell