Skip to content

Commit

Permalink
Update curl-unixbuild.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
rdw-software committed Jan 10, 2025
1 parent 021f39f commit c4c6525
Showing 1 changed file with 61 additions and 10 deletions.
71 changes: 61 additions & 10 deletions deps/curl-unixbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,86 @@ OUT_DIR=$(pwd)/ninjabuild-unix

# TBD: ENABLE_UNICODE (Win32 only),-DWIN32_LEAN_AND_MEAN, CURL_LTO

# Found OpenSSL: /usr/lib/libcrypto.so (found version "3.4.0")
# -- Found libbrotlicommon, version 1.1.0
# -- Found libbrotlidec, version 1.1.0
# -- Checking for module 'libzstd'
# -- Found Libssh2 (via pkg-config): /usr/include (found version "1.11.1")
# -- Found Libpsl (via pkg-config): /usr/include (found version "0.21.5")
# -- Found Libidn2 (via pkg-config): /usr/include (found version "2.3.7")
# -- Found LDAP (via pkg-config): /usr/include (found version "2.6.9")
# -- Found NGHTTP2 (via pkg-config): /usr/include (found version "1.64.0")
# -- Found Perl: /usr/bin/perl (found version "5.40.0")

# -- Found Brotli (via pkg-config): /usr/include (found version "1.1.0")
# -- Found libbrotlicommon, version 1.1.0
# -- Found libbrotlidec, version 1.1.0
#CURL_BROTLI
# BROTLI_INCLUDE_DIR
# BROTLICOMMON_LIBRARY
# BROTLIDEC_LIBRARY

# -- Found Zstd (via pkg-config): /usr/include (found version "1.5.6")
# -- Found NGHTTP2 (via pkg-config): /usr/include (found version "1.64.0")
# -- Found LDAP (via pkg-config): /usr/include (found version "2.6.9")
# -- Found Libidn2 (via pkg-config): /usr/include (found version "2.3.7")
# -- Found Libpsl (via pkg-config): /usr/include (found version "0.21.5")
# -- Found Libssh2 (via pkg-config): /usr/include (found version "1.11.1")

#CURL_BROTLI
#CURL_ZLIB
#CURL_ZSTD
# ENABLE_ARES
# USE_LIBIDN2
# CARES_INCLUDE_DIR
# CARES_LIBRARY

# LDAP_LIBRARY
# LDAP_LBER_LIBRARY
# LDAP_INCLUDE_DIR

# CURL_ZSTD
# ZSTD_INCLUDE_DIR
# ZSTD_LIBRARY

# QUICHE_INCLUDE_DIR
# QUICHE_LIBRARY

# - `CARES_INCLUDE_DIR`: The c-ares include directory.
# - `CARES_LIBRARY`: Path to `cares` library.
# - `DL_LIBRARY`: Path to `dl` library. (for Rustls)
# - `GSS_ROOT_DIR`: Set this variable to the root installation of GSS. (also supported as environment)
# - `LDAP_LIBRARY`: Name or full path to `ldap` library. Default: `ldap`
# - `LDAP_LBER_LIBRARY`: Name or full path to `lber` library. Default: `lber`
# - `LDAP_INCLUDE_DIR`: Path to LDAP include directory.

# `LIBGSASL_INCLUDE_DIR`: The libgsasl include directory.
# - `LIBGSASL_LIBRARY`: Path to `libgsasl` library.
# - `LIBIDN2_INCLUDE_DIR`: The libidn2 include directory.
# - `LIBIDN2_LIBRARY`: Path to `libidn2` library.
# - `LIBPSL_INCLUDE_DIR`: The libpsl include directory.
# - `LIBPSL_LIBRARY`: Path to `libpsl` library.
# - `LIBRTMP_INCLUDE_DIR`: The librtmp include directory.
# - `LIBRTMP_LIBRARY`: Path to `librtmp` library.
# - `LIBSSH_INCLUDE_DIR`: The libssh include directory.
# - `LIBSSH_LIBRARY`: Path to `libssh` library.
# - `LIBSSH2_INCLUDE_DIR`: The libssh2 include directory.
# - `LIBSSH2_LIBRARY`: Path to `libssh2` library.
# - `LIBUV_INCLUDE_DIR`: The libuv include directory.
# - `LIBUV_LIBRARY`: Path to `libuv` library.
# - `MATH_LIBRARY`: Path to `m` library. (for Rustls, wolfSSL)
# - `MBEDTLS_INCLUDE_DIR`: The mbedTLS include directory.
# - `MBEDTLS_LIBRARY`: Path to `mbedtls` library.
# - `MBEDX509_LIBRARY`: Path to `mbedx509` library.
# - `MBEDCRYPTO_LIBRARY`: Path to `mbedcrypto` library.
# - `MSH3_INCLUDE_DIR`: The msh3 include directory.
# - `MSH3_LIBRARY`: Path to `msh3` library.
# - `NGHTTP2_INCLUDE_DIR`: The nghttp2 include directory.
# - `NGHTTP2_LIBRARY`: Path to `nghttp2` library.
# - `NGHTTP3_INCLUDE_DIR`: The nghttp3 include directory.
# - `NGHTTP3_LIBRARY`: Path to `nghttp3` library.
# - `NGTCP2_INCLUDE_DIR`: The ngtcp2 include directory.
# - `NGTCP2_LIBRARY`: Path to `ngtcp2` library.
# - `NETTLE_INCLUDE_DIR`: The nettle include directory.
# - `NETTLE_LIBRARY`: Path to `nettle` library.


# - `CURL_ZLIB`: Use zlib (`ON`, `OFF` or `AUTO`). Default: `AUTO`
# - `CURL_ZSTD`: Use zstd (`ON`, `OFF` or `AUTO`). Default: `AUTO`
# - `ENABLE_ARES`: Enable c-ares support. Default: `OFF`
# - `USE_APPLE_IDN`: Use Apple built-in IDN support. Default: `OFF`
# USE_LIBIDN2
# - `USE_LIBIDN2`: Use libidn2 for IDN support. Default: `ON`
# - `USE_LIBRTMP`: Enable librtmp from rtmpdump. Default: `OFF`
# - `USE_MSH3`: Use msh3/msquic library for HTTP/3 support. Default: `OFF`
Expand All @@ -55,7 +106,7 @@ LIBCURL_OPENSSL_FLAGS=" -DCURL_USE_OPENSSL=ON -DOPENSSL_INCLUDE_DIR=$OPENSSL_INC

ZLIB_INCLUDE_DIR=$(pwd)/deps/madler/zlib
ZLIB_LIBRARY=$OUT_DIR/zlibstatic.a
LIBCURL_ZLIB_FLAGS="-DZLIB_INCLUDE_DIR=$ZLIB_INCLUDE_DIR -DZLIB_LIBRARY=$ZLIB_LIBRARY"
LIBCURL_ZLIB_FLAGS="-DCURL_ZLIB=ON -DZLIB_INCLUDE_DIR=$ZLIB_INCLUDE_DIR -DZLIB_LIBRARY=$ZLIB_LIBRARY"

LIBCURL_DISABLED_FLAGS="-DBUILD_CURL_EXE=OFF -DBUILD_SHARED_LIBS=OFF -DCURL_DISABLE_INSTALL=ON -DBUILD_LIBCURL_DOCS=OFF -DENABLE_CURL_MANUAL=OFF -DBUILD_MISC_DOCS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DCURL_USE_PKGCONFIG=OFF"
LIBCURL_ENABLED_FLAGS="-DBUILD_STATIC_CURL=ON $LIBCURL_OPENSSL_FLAGS $LIBCURL_ZLIB_FLAGS"
Expand Down

0 comments on commit c4c6525

Please sign in to comment.