mirror of
https://github.com/curl/curl.git
synced 2026-06-08 01:24:15 +03:00
- vtls: fix unused variable and symbols. - ftp: fix unused variable. - http: fix unused variables. - smtp: fix unsued variable. - wolfssl: fix unused variable with !proxy. - libssh: fix unused argument. - curl_trc: sync guards between declaration and definition. - curl_trc: add missing guard for `Curl_trc_ssls` when !verbose. - curl_trc: fix errors with !http + http3. - curl_trc: fix missing function with !http + nghttp2. - cf-h2-proxy: disable when !http + nghttp2, to avoid calling undeclared functions. - sha256: fix missing declaration in rare configs. - md4: fix symbol conflict when building GnuTLS together with AWS-LC or wolfSSL. By prioritizing the latter two. AWS-LC has no option to disable the clashing symbol. wolfSSL does, but the most seamless is to skip including GnuTLS's standalone `md4.h` to avoid the clash. - build: fix errors with !http + nghttp2. - build: catch !ssl + ssls-export combination in source. Convert build-level errors to warnings. - build: fix errors with !http + http3. - build: fix building curl tool and unit1302 in rare combinations. By always compiling base64 curlx functions. - cmake: add `_CURL_SKIP_BUILD_CERTS` internal option. To disable automatically building certs with the testdeps target. To improve performance when testing builds. (used locally to find the failing builds fixed in this PR.) Closes #17962
49 lines
1.9 KiB
CMake
49 lines
1.9 KiB
CMake
#***************************************************************************
|
|
# _ _ ____ _
|
|
# Project ___| | | | _ \| |
|
|
# / __| | | | |_) | |
|
|
# | (__| |_| | _ <| |___
|
|
# \___|\___/|_| \_\_____|
|
|
#
|
|
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
#
|
|
# This software is licensed as described in the file COPYING, which
|
|
# you should have received as part of this distribution. The terms
|
|
# are also available at https://curl.se/docs/copyright.html.
|
|
#
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
#
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
# KIND, either express or implied.
|
|
#
|
|
# SPDX-License-Identifier: curl
|
|
#
|
|
###########################################################################
|
|
# Get CERTCONFIG_CA, CERTCONFIGS, GENERATEDCERTS, SRPFILES variables
|
|
curl_transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
|
include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
|
|
|
|
add_custom_command(OUTPUT ${GENERATEDCERTS}
|
|
COMMAND "${PERL_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/genserv.pl" "test" ${CERTCONFIGS}
|
|
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/genserv.pl" ${CERTCONFIG_CA} ${CERTCONFIGS}
|
|
VERBATIM
|
|
)
|
|
add_custom_target(build-certs DEPENDS ${GENERATEDCERTS})
|
|
|
|
option(_CURL_SKIP_BUILD_CERTS "Skip building certs with testdeps" OFF) # Internal option to increase perf for build tests
|
|
if(NOT _CURL_SKIP_BUILD_CERTS)
|
|
add_dependencies(testdeps build-certs)
|
|
endif()
|
|
|
|
add_custom_target(clean-certs
|
|
COMMAND ${CMAKE_COMMAND} -E remove ${GENERATEDCERTS}
|
|
"test-*.csr"
|
|
"test-*.der"
|
|
"test-*.keyenc"
|
|
"test-ca.cnt*"
|
|
"test-ca.db*"
|
|
"test-ca.raw*"
|
|
"test-ca.srl"
|
|
)
|