Lines Matching +full:amiga +full:- +full:gcc
21 # SPDX-License-Identifier: curl
28 # the case that both CURL and its dependency are included as sub-projects
32 # https://cmake.org/cmake/help/latest/module/FetchContent.html#integrating-with-find-package
49 # Collect command-line arguments for buildinfo.txt.
64 set(_cmake_args "${_cmake_args} -D${_cache_var}${_cache_var_type}=\"${_cache_var_value}\"")
78 string(REGEX MATCH "#define LIBCURL_VERSION_NUM 0x[0-9a-fA-F]+" _curl_version_num ${_curl_version_h…
84 string(REGEX REPLACE "([0-9]+\.[0-9]+\.[0-9]+).+" "\\1" _curl_version_sem "${_curl_version}")
91 # CMake (as of v3.31.2) gets confused and applies the MSVC rc.exe command-line
92 …# template to windres. Reset it to the windres template via 'Modules/Platform/Windows-windres.cmak…
93 …set(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff <DEFINES> <INCLUDES> <FLAGS> <SOURCE> <OB…
101 # Fill platform level variable when using CMake's built-in Android configuration
117 set(_target_flags "${_target_flags} ANDROID-${ANDROID_PLATFORM_LEVEL}")
134 if(AMIGA)
135 set(_target_flags "${_target_flags} AMIGA")
138 set(_target_flags "${_target_flags} GCC")
144 set(_target_flags "${_target_flags} MSVC-${MSVC_VERSION}")
155 message(STATUS "Cross-compiling: "
156 "${CMAKE_HOST_SYSTEM_NAME}/${CMAKE_HOST_SYSTEM_PROCESSOR} -> "
174 # non-existing features. This happens by default when using 'ios.toolchain.cmake'.
189 option(ENABLE_ARES "Enable c-ares support" OFF)
196 set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -MT")
197 set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -MTd")
205 add_definitions("-DUNICODE" "-D_UNICODE")
207 add_compile_options("-municode")
211 list(APPEND CMAKE_REQUIRED_DEFINITIONS "-DWIN32_LEAN_AND_MEAN") # Apply to all feature checks
215 add_definitions("-D_WIN32_WINNT=${CURL_TARGET_WINDOWS_VERSION}")
216 …list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_WIN32_WINNT=${CURL_TARGET_WINDOWS_VERSION}") # Apply t…
222 string(REGEX MATCH "_WIN32_WINNT=0x[0-9a-fA-F]+" CURL_TEST_OUTPUT "${CURL_TEST_OUTPUT}")
224 …string(REGEX REPLACE "0x([0-9a-f][0-9a-f][0-9a-f])$" "0x0\\1" CURL_TEST_OUTPUT "${CURL_TEST_OUTPUT…
234 string(REGEX MATCH "MINGW64_VERSION=[0-9]+\.[0-9]+" CURL_TEST_OUTPUT "${CURL_TEST_OUTPUT}")
240 elseif(DOS OR AMIGA)
246 if(NOT DOS AND NOT AMIGA)
247 # if c-ares is used, default the threaded resolver to OFF
259 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE") # Required for sendmmsg()
264 message(WARNING "This curl build is Debug-enabled, do not use in production.")
280 option(CURL_CLANG_TIDY "Run the build through clang-tidy" OFF)
284 list(APPEND _tidy_checks "-clang-analyzer-security.insecureAPI.strcpy")
285 list(APPEND _tidy_checks "-clang-analyzer-optin.performance.Padding")
286 list(APPEND _tidy_checks "-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling")
288 find_program(CLANG_TIDY NAMES "clang-tidy" REQUIRED)
289 set(CMAKE_C_CLANG_TIDY "${CLANG_TIDY}" "-checks=${_tidy_checks}" "-quiet")
292 list(APPEND CMAKE_C_CLANG_TIDY "--warnings-as-errors=*")
299 # For debug libs and exes, add "-d" postfix
301 set(CMAKE_DEBUG_POSTFIX "-d")
330 # Override to force-disable or force-enable the use of pkg-config.
338 option(CURL_USE_PKGCONFIG "Enable pkg-config to detect dependencies" ${_curl_use_pkgconfig_default})
340 # Initialize variables collecting dependency libs, paths, pkg-config names.
362 option(CURL_DISABLE_ALTSVC "Disable alt-svc support" OFF)
364 option(CURL_DISABLE_SRP "Disable TLS-SRP support" OFF)
378 option(CURL_DISABLE_AWS "Disable aws-sigv4" OFF)
382 option(CURL_DISABLE_DOH "Disable DNS-over-HTTPS" OFF)
392 option(CURL_DISABLE_HEADERS_API "Disable headers-api support" OFF)
406 option(CURL_DISABLE_LIBCURL_OPTION "Disable --libcurl option from the curl tool" OFF)
410 cmake_dependent_option(CURL_DISABLE_FORM_API "Disable form-api"
426 option(CURL_DISABLE_PROGRESS_METER "Disable built-in progress meter" OFF)
434 option(CURL_DISABLE_SHA512_256 "Disable SHA-512/256 hash algorithm" OFF)
493 if(NOT DOS AND NOT AMIGA)
508 list(APPEND CURL_LIBS "-framework SystemConfiguration")
518 add_custom_target(curl-ca-bundle
519 COMMENT "Generating a fresh ca-bundle.crt" VERBATIM USES_TERMINAL
520 …COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/mk-ca-bundle.pl" -b -l -u "lib/ca-bund…
521 DEPENDS "${PROJECT_SOURCE_DIR}/scripts/mk-ca-bundle.pl"
523 add_custom_target(curl-ca-firefox
524 COMMENT "generating a fresh ca-bundle.crt" VERBATIM USES_TERMINAL
525 … COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/firefox-db2pem.sh" "lib/ca-bundle.crt"
526 DEPENDS "${PROJECT_SOURCE_DIR}/scripts/firefox-db2pem.sh"
531 option(BUILD_MISC_DOCS "Build misc man pages (e.g. curl-config and mk-ca-bundle)" ON)
532 option(ENABLE_CURL_MANUAL "Build the man page for curl and enable its -M/--manual option" ON)
545 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-")
550 add_definitions("-D_ALL_SOURCE")
556 elseif(AMIGA)
573 include("${CMAKE_CURRENT_SOURCE_DIR}/CMake/win32-cache.cmake")
575 # Fast-track predictable feature detections
579 elseif(AMIGA)
582 if(DOS OR AMIGA)
606 message(FATAL_ERROR "Set WATT_ROOT variable to the root installation of Watt-32.")
608 elseif(AMIGA)
707 list(APPEND CURL_LIBS "-framework Security")
712 if(CURL_DEFAULT_SSL_BACKEND AND CURL_DEFAULT_SSL_BACKEND STREQUAL "secure-transport")
725 list(APPEND CURL_LIBS "-framework CoreFoundation")
732 list(APPEND CURL_LIBS "-framework CoreServices")
773 set(_openssl "AWS-LC")
944 # Check symbol in an OpenSSL-like TLS backend.
969 …list(APPEND CMAKE_REQUIRED_DEFINITIONS "-DHAVE_UINTPTR_T") # to pull in stdint.h (as of wolfSSL v…
987 message(FATAL_ERROR "QUIC support is missing in OpenSSL fork. Try setting -DOPENSSL_ROOT_DIR")
1025 message(FATAL_ERROR "ECH support missing in OpenSSL/BoringSSL/AWS-LC/wolfSSL")
1033 message(FATAL_ERROR "ECH requires ECH-enablded OpenSSL, BoringSSL, AWS-LC or wolfSSL")
1207 list(APPEND CMAKE_REQUIRED_DEFINITIONS "-DLDAP_DEPRECATED=1")
1218 add_definitions("-DLDAP_DEPRECATED=1")
1249 option(USE_APPLE_IDN "Use Apple built-in IDN support" OFF)
1429 option(CURL_USE_LIBUV "Use libuv for event-based tests" OFF)
1477 …STRING "Path to the CA bundle. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'au…
1479 BOOL "Use built-in CA store of TLS backend. Defaults to OFF")
1481 …STRING "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults …
1514 # Skip auto-detection of unset CA path because CA bundle is set explicitly
1516 # Skip auto-detection of unset CA bundle because CA path is set explicitly
1518 # First try auto-detecting a CA bundle, then a CA path
1522 "/etc/ssl/certs/ca-certificates.crt"
1523 "/etc/pki/tls/certs/ca-bundle.crt"
1524 "/usr/share/ssl/certs/ca-bundle.crt"
1525 "/usr/local/share/certs/ca-root-nss.crt"
1530 …STRING "Path to the CA bundle. Set 'none' to disable or 'auto' for auto-detection. Defaults to 'au…
1539 …OB _curl_ca_files_found "${_search_ca_path}/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-…
1544 …STRING "Location of default CA path. Set 'none' to disable or 'auto' for auto-detection. Defaults …
1577 # Pre-fill detection results based on target OS version
1620 check_include_file_concat_curl("net/if.h" HAVE_NET_IF_H) # sys/select.h (e.g. MS-DOS/Watt-…
1637 if(AMIGA)
1653 set(CURL_TEST_DEFINES "${CURL_TEST_DEFINES} -D${_variable}")
1755 if(AMIGA)
1819 list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D_FILE_OFFSET_BITS=64")
1842 cmake_pop_check_state() # pop -D_FILE_OFFSET_BITS=64
1845 # On non-Windows and not cross-compiling, check for writable argv[]
1861 time_t t = -1;
1909 check_c_compiler_flag("-Wno-long-double" HAVE_C_FLAG_Wno_long_double)
1911 # The Mac version of GCC warns about use of long double. Disable it.
1914 set(_mprintf_compile_flags "${_mprintf_compile_flags} -Wno-long-double")
1916 set(_mprintf_compile_flags "-Wno-long-double")
1930 add_definitions("-DHAVE_CONFIG_H")
1939 set(CMAKE_RC_FLAGS "${CMAKE_RC_FLAGS} -DCURL_EMBED_MANIFEST")
1954 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -MANIFEST:NO")
1956 if(CMAKE_C_FLAGS MATCHES "[/-]W[0-4]")
1957 string(REGEX REPLACE "[/-]W[0-4]" "-W4" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
1959 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W4")
1964 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -MP")
1970 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -WX")
1972 # This assumes clang or gcc style options
1973 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
2002 …string(REGEX REPLACE "([a-zA-Z_][a-zA-Z0-9_]*)[\t ]*=[\t ]*([^\n]*)" "set(\\1 \\2)" _makefile_inc_…
2006 …string(REGEX REPLACE "\\$\\(([a-zA-Z_][a-zA-Z0-9_]*)\\)" "\${\\1}" _makefile_inc_text ${_makefile_…
2008 …string(REGEX REPLACE "@([a-zA-Z_][a-zA-Z0-9_]*)@" "\${\\1}" _makefile_inc_text ${_makefile_inc_tex…
2030 set(CURL_MANPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.1")
2031 set(CURL_ASCIIPAGE "${PROJECT_BINARY_DIR}/docs/cmdline-opts/curl.txt")
2125 curl_add_if("asyn-rr" USE_ARES AND ENABLE_THREADED_RESOLVER)
2132 curl_add_if("GSS-API" HAVE_GSSAPI)
2133 curl_add_if("alt-svc" NOT CURL_DISABLE_ALTSVC)
2141 curl_add_if("TLS-SRP" USE_TLS_SRP)
2145 curl_add_if("HTTPS-proxy" _ssl_enabled AND (USE_OPENSSL OR USE_GNUTLS
2159 curl_add_if("SSLS-EXPORT" _ssl_enabled AND USE_SSLS_EXPORT)
2198 # curl-config needs the following options to be set.
2200 # TODO: probably put a -D... options here?
2224 string(REGEX REPLACE " +-([^ \\t;]*)" ";-\\1" _custom_ldflags "${_custom_ldflags}")
2229 if(_flag MATCHES "^-l")
2230 string(REGEX REPLACE "^-l" "" _flag "${_flag}")
2232 elseif(_flag MATCHES "^-framework|^-F")
2234 elseif(_flag MATCHES "^-L")
2235 string(REGEX REPLACE "^-L" "" _flag "${_flag}")
2237 elseif(_flag MATCHES "^--library-path=")
2238 string(REGEX REPLACE "^--library-path=" "" _flag "${_flag}")
2243 # Avoid getting unnecessary -L options for known system directories.
2265 list(APPEND _ldflags "-L${_libdir}")
2279 # Reading the LOCATION property on non-imported target will error out.
2289 if(_lib MATCHES "^-") # '-framework <name>'
2299 list(APPEND _ldflags "-L${_libdir}")
2302 list(APPEND LIBCURL_PC_LIBS_PRIVATE "-l${_libname}")
2307 list(APPEND LIBCURL_PC_LIBS_PRIVATE "-l${_lib}")
2325 set(LIBCURL_PC_CFLAGS_PRIVATE "-DCURL_STATICLIB")
2327 # Merge pkg-config private fields into public ones when static-only
2345 # Generate a "curl-config" matching this config.
2366 "${PROJECT_SOURCE_DIR}/curl-config.in"
2367 "${PROJECT_BINARY_DIR}/curl-config" @ONLY)
2368 install(FILES "${PROJECT_BINARY_DIR}/curl-config"
2375 # Generate a pkg-config file matching this config.
2392 # https://people.freedesktop.org/~dbn/pkg-config-guide.html
2393 # https://manpages.debian.org/unstable/pkgconf/pkg-config.1.en.html
2394 # https://manpages.debian.org/unstable/pkg-config/pkg-config.1.en.html
2429 configure_package_config_file("CMake/curl-config.cmake.in"
2450 COMMAND ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_BINARY_DIR}/CMake/cmake_uninstall.cmake")
2453 install(FILES "${PROJECT_SOURCE_DIR}/scripts/mk-ca-bundle.pl"
2460 # The `-DEV` part is important
2461 …string(REGEX REPLACE "([0-9]+\.[0-9]+)\.([0-9]+.*)" "\\2" CPACK_PACKAGE_VERSION_PATCH "${_curl_ver…