#
# Copyright (c) 2021 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# Enables client to have NRF_CURL in synchronization with client's own flag.
config NRF_CURL_PROMPTLESS
	bool

config NRF_CURL
	bool "Curl" if !NRF_CURL_PROMPTLESS
	depends on POSIX_API && !PTHREAD_IPC && !NET_SOCKETS_POSIX_NAMES && NEWLIB_LIBC
	imply NEWLIB_LIBC_FLOAT_PRINTF
	help
	  Curl support for NRF.

if NRF_CURL
menu "NRF CURL selections"

#invisible configs:
config NRF_CURL_LIB
	bool
	default y

config NRF_CURL_TOOL
	bool
	default y

config NRF_CURL_INTEGRATION
	bool "Curl changes for NRF"
	default y
	help
	  Compile cURL for nRF Connect SDK integration.
	  This setting will enable nRF Connect SDK specific changes in the cURL library.
	  If cURL is planned to be used in nRF Connect SDK context then this setting
	  must be enabled.

# The name of this option is mandated by zephyr_interface_library_named cmake directive.
config APP_LINK_WITH_CURL
	bool "Link 'app' with CURL"
	default y
	help
	  Add CURL header files to the 'app' include path. It may be
	  disabled if the include paths for CURL are causing aliasing
	  issues for 'app'.

endmenu #NRF_CURL
endif #NRF_CURL
