Lines Matching +full:curl +full:- +full:examples
13 # are also available at https://curl.se/docs/copyright.html.
22 # SPDX-License-Identifier: curl
27 set -eux; [ -n "${BASH:-}${ZSH_NAME:-}" ] && set -o pipefail
32 openssl_root_win='C:/OpenSSL-v34-Win64'
34 openssl_root_win='C:/OpenSSL-v111-Win64'
40 [[ "${TARGET:-}" = *'ARM64'* ]] && SKIP_RUN='ARM64 architecture'
41 [ -n "${TOOLSET:-}" ] && options+=" -T ${TOOLSET}"
42 [ "${OPENSSL}" = 'ON' ] && options+=" -DOPENSSL_ROOT_DIR=${openssl_root_win}"
43 [ -n "${CURLDEBUG:-}" ] && options+=" -DENABLE_CURLDEBUG=${CURLDEBUG}"
44 [ "${PRJ_CFG}" = 'Debug' ] && options+=' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG='
45 [ "${PRJ_CFG}" = 'Release' ] && options+=' -DCMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE='
46 [[ "${PRJ_GEN}" = *'Visual Studio'* ]] && options+=' -DCMAKE_VS_GLOBALS=TrackFileAccess=false'
48 cmake -B _bld "-G${PRJ_GEN}" ${TARGET:-} ${options} \
49 "-DCURL_USE_OPENSSL=${OPENSSL}" \
50 "-DCURL_USE_SCHANNEL=${SCHANNEL}" \
51 "-DHTTP_ONLY=${HTTP_ONLY}" \
52 "-DBUILD_SHARED_LIBS=${SHARED}" \
53 "-DCMAKE_UNITY_BUILD=${UNITY}" \
54 '-DCURL_TEST_BUNDLES=ON' \
55 '-DCURL_WERROR=ON' \
56 "-DENABLE_DEBUG=${DEBUG}" \
57 "-DENABLE_UNICODE=${ENABLE_UNICODE}" \
58 '-DCMAKE_INSTALL_PREFIX=C:/curl' \
59 "-DCMAKE_BUILD_TYPE=${PRJ_CFG}" \
60 '-DCURL_USE_LIBPSL=OFF'
64 echo 'curl_config.h'; grep -F '#define' _bld/lib/curl_config.h | sort || true
66 cmake --build _bld --config "${PRJ_CFG}" --parallel 2 -- ${BUILD_OPT:-}
69 curl='_bld/src/curl.exe'
74 … msbuild.exe -maxcpucount "-property:Configuration=${PRJ_CFG}" "Windows/${VC_VERSION}/curl-all.sln"
76 curl="build/Win32/${VC_VERSION}/${PRJ_CFG}/curld.exe"
83 …nmake -f Makefile.vc mode=dll VC=14 "SSL_PATH=${openssl_root_win}" WITH_SSL=dll MACHINE=x64 DEBUG=…
88 curl="builds/libcurl-vc14-x64-${PATHPART}-dll-ssl-dll-ipv6-sspi/bin/curl.exe"
94 …nmake -f Makefile.vc mode=dll VC=14.10 "SSL_PATH=${openssl_root_win}" WITH_SSL=dll MACHINE=x64 DEB…
99 curl="builds/libcurl-vc14.10-x64-${PATHPART}-dll-ssl-dll-ipv6-sspi/bin/curl.exe"
102 find . \( -name '*.exe' -o -name '*.dll' -o -name '*.lib' \) -exec file '{}' \;
103 if [ -z "${SKIP_RUN:-}" ]; then
104 "${curl}" --disable --version
106 echo "Skip running curl.exe. Reason: ${SKIP_RUN}"
113 cmake --build _bld --config "${PRJ_CFG}" --parallel 2 --target testdeps
120 if [ -x "$(cygpath "${SYSTEMROOT}/System32/curl.exe")" ]; then
121 TFLAGS+=" -ac $(cygpath "${SYSTEMROOT}/System32/curl.exe")"
122 elif [ -x "$(cygpath 'C:/msys64/usr/bin/curl.exe')" ]; then
123 TFLAGS+=" -ac $(cygpath 'C:/msys64/usr/bin/curl.exe')"
125 TFLAGS+=' -j0'
127 cmake --build _bld --config "${PRJ_CFG}" --target test-ci
130 TFLAGS="-a -p !flaky -r -rm ${TFLAGS}"
137 # build examples
139 if [ "${EXAMPLES}" = 'ON' ] && \
141 cmake --build _bld --config "${PRJ_CFG}" --parallel 2 --target curl-examples