Simplify wxUSE_WEBREQUEST_XXX logic
Remove automatic definition of wxUSE_WEBREQUEST depending on whether wxUSE_WEBREQUEST_XXX are defined and follow the same approach as with wxUSE_GRAPHICS_XXX, i.e. define wxUSE_WEBREQUEST_XXX as wxUSE_WEBREQUEST by default instead. Move wxUSE_WEBREQUEST_WINHTTP to wxMSW-specific file, it doesn't need to be in common one (unfortunately this can't be done for the Mac-specific wxUSE_WEBREQUEST_URLSESSION yet, because macOS-specific settings are not injected into setup.h.in currently). Also fix test for winhttp.h availability: it seems to be present in all MinGW64 distributions, but not in MinGW32, so test for this and not for gcc version. Finally remove the now unnecessary test for macOS 10.9, as we only support 10.10+ anyhow by now.
This commit is contained in:
@@ -294,31 +294,15 @@
|
|||||||
|
|
||||||
#cmakedefine01 wxUSE_MIMETYPE
|
#cmakedefine01 wxUSE_MIMETYPE
|
||||||
|
|
||||||
|
#cmakedefine01 wxUSE_WEBREQUEST
|
||||||
|
|
||||||
#if defined(_MSC_VER) || \
|
#ifdef __APPLE__
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST_WINHTTP
|
|
||||||
#else
|
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST_WINHTTP
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST_URLSESSION
|
|
||||||
#else
|
#else
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST_URLSESSION
|
#cmakedefine01 wxUSE_WEBREQUEST_URLSESSION
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST_CURL
|
#cmakedefine01 wxUSE_WEBREQUEST_CURL
|
||||||
#else
|
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST_CURL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST
|
|
||||||
#else
|
|
||||||
#cmakedefine01 wxUSE_WEBREQUEST
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#cmakedefine01 wxUSE_PROTOCOL
|
#cmakedefine01 wxUSE_PROTOCOL
|
||||||
|
|
||||||
@@ -707,6 +691,12 @@
|
|||||||
#cmakedefine01 wxUSE_GRAPHICS_DIRECT2D
|
#cmakedefine01 wxUSE_GRAPHICS_DIRECT2D
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||||
|
#cmakedefine01 wxUSE_WEBREQUEST_WINHTTP
|
||||||
|
#else
|
||||||
|
#cmakedefine01 wxUSE_WEBREQUEST_WINHTTP
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#cmakedefine01 wxUSE_OLE
|
#cmakedefine01 wxUSE_OLE
|
||||||
|
|
||||||
|
@@ -632,53 +632,37 @@
|
|||||||
// wxMimeTypesManager class
|
// wxMimeTypesManager class
|
||||||
#define wxUSE_MIMETYPE 1
|
#define wxUSE_MIMETYPE 1
|
||||||
|
|
||||||
// wxWebRequest backend based on WinHTTP
|
// wxWebRequest allows usage of system libraries for HTTP(S) requests.
|
||||||
|
//
|
||||||
|
// Note that for wxWebRequest to be built, at least one of its backends must be
|
||||||
|
// available. Under MSW and macOS this will always be the case unless
|
||||||
|
// explicitly disabled.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on Windows
|
// Recommended setting: 1, setting it to 0 may be useful to avoid dependencies
|
||||||
|
// on libcurl on Unix systems.
|
||||||
// Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION()
|
#define wxUSE_WEBREQUEST 1
|
||||||
// here as this file is included from wx/platform.h before they're defined.
|
|
||||||
#if defined(_MSC_VER) || \
|
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest backend based on NSURLSession
|
// wxWebRequest backend based on NSURLSession
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1 under macOS.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on macOS 10.9+
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
// otherwise wxWebRequest won't be available at all under Mac.
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 1
|
#ifdef __APPLE__
|
||||||
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 0 for MSW and macOS, detected automatically when using configure.
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
||||||
// for wxWebRequest to be available at all.
|
// for wxWebRequest to be available at all.
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest and related classes: This will allow usage of system libraries
|
|
||||||
// for HTTP(S) requests
|
|
||||||
//
|
|
||||||
// Default is 1
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
||||||
// or wxURL you need to set this to 1.
|
// or wxURL you need to set this to 1.
|
||||||
|
@@ -633,53 +633,37 @@
|
|||||||
// wxMimeTypesManager class
|
// wxMimeTypesManager class
|
||||||
#define wxUSE_MIMETYPE 1
|
#define wxUSE_MIMETYPE 1
|
||||||
|
|
||||||
// wxWebRequest backend based on WinHTTP
|
// wxWebRequest allows usage of system libraries for HTTP(S) requests.
|
||||||
|
//
|
||||||
|
// Note that for wxWebRequest to be built, at least one of its backends must be
|
||||||
|
// available. Under MSW and macOS this will always be the case unless
|
||||||
|
// explicitly disabled.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on Windows
|
// Recommended setting: 1, setting it to 0 may be useful to avoid dependencies
|
||||||
|
// on libcurl on Unix systems.
|
||||||
// Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION()
|
#define wxUSE_WEBREQUEST 1
|
||||||
// here as this file is included from wx/platform.h before they're defined.
|
|
||||||
#if defined(_MSC_VER) || \
|
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest backend based on NSURLSession
|
// wxWebRequest backend based on NSURLSession
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1 under macOS.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on macOS 10.9+
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
// otherwise wxWebRequest won't be available at all under Mac.
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 1
|
#ifdef __APPLE__
|
||||||
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 0 for MSW and macOS, detected automatically when using configure.
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
||||||
// for wxWebRequest to be available at all.
|
// for wxWebRequest to be available at all.
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest and related classes: This will allow usage of system libraries
|
|
||||||
// for HTTP(S) requests
|
|
||||||
//
|
|
||||||
// Default is 1
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
||||||
// or wxURL you need to set this to 1.
|
// or wxURL you need to set this to 1.
|
||||||
@@ -1630,7 +1614,7 @@
|
|||||||
|
|
||||||
/* --- start MSW options --- */
|
/* --- start MSW options --- */
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Graphics backends choices for Windows
|
// Windows-specific backends choices
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// The options here are only taken into account if wxUSE_GRAPHICS_CONTEXT is 1.
|
// The options here are only taken into account if wxUSE_GRAPHICS_CONTEXT is 1.
|
||||||
@@ -1658,6 +1642,20 @@
|
|||||||
#define wxUSE_GRAPHICS_DIRECT2D 0
|
#define wxUSE_GRAPHICS_DIRECT2D 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// wxWebRequest backend based on WinHTTP.
|
||||||
|
//
|
||||||
|
// This is only taken into account if wxUSE_WEBREQUEST==1.
|
||||||
|
//
|
||||||
|
// Default is 1 if supported by the compiler (MSVS or MinGW64).
|
||||||
|
//
|
||||||
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
|
// otherwise wxWebRequest won't be available at all.
|
||||||
|
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 1
|
||||||
|
#else
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Windows-only settings
|
// Windows-only settings
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -633,53 +633,37 @@
|
|||||||
// wxMimeTypesManager class
|
// wxMimeTypesManager class
|
||||||
#define wxUSE_MIMETYPE 1
|
#define wxUSE_MIMETYPE 1
|
||||||
|
|
||||||
// wxWebRequest backend based on WinHTTP
|
// wxWebRequest allows usage of system libraries for HTTP(S) requests.
|
||||||
|
//
|
||||||
|
// Note that for wxWebRequest to be built, at least one of its backends must be
|
||||||
|
// available. Under MSW and macOS this will always be the case unless
|
||||||
|
// explicitly disabled.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on Windows
|
// Recommended setting: 1, setting it to 0 may be useful to avoid dependencies
|
||||||
|
// on libcurl on Unix systems.
|
||||||
// Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION()
|
#define wxUSE_WEBREQUEST 1
|
||||||
// here as this file is included from wx/platform.h before they're defined.
|
|
||||||
#if defined(_MSC_VER) || \
|
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest backend based on NSURLSession
|
// wxWebRequest backend based on NSURLSession
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1 under macOS.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on macOS 10.9+
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
// otherwise wxWebRequest won't be available at all under Mac.
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 1
|
#ifdef __APPLE__
|
||||||
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 0 for MSW and macOS, detected automatically when using configure.
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
||||||
// for wxWebRequest to be available at all.
|
// for wxWebRequest to be available at all.
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest and related classes: This will allow usage of system libraries
|
|
||||||
// for HTTP(S) requests
|
|
||||||
//
|
|
||||||
// Default is 1
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
||||||
// or wxURL you need to set this to 1.
|
// or wxURL you need to set this to 1.
|
||||||
|
@@ -633,53 +633,37 @@
|
|||||||
// wxMimeTypesManager class
|
// wxMimeTypesManager class
|
||||||
#define wxUSE_MIMETYPE 1
|
#define wxUSE_MIMETYPE 1
|
||||||
|
|
||||||
// wxWebRequest backend based on WinHTTP
|
// wxWebRequest allows usage of system libraries for HTTP(S) requests.
|
||||||
|
//
|
||||||
|
// Note that for wxWebRequest to be built, at least one of its backends must be
|
||||||
|
// available. Under MSW and macOS this will always be the case unless
|
||||||
|
// explicitly disabled.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on Windows
|
// Recommended setting: 1, setting it to 0 may be useful to avoid dependencies
|
||||||
|
// on libcurl on Unix systems.
|
||||||
// Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION()
|
#define wxUSE_WEBREQUEST 1
|
||||||
// here as this file is included from wx/platform.h before they're defined.
|
|
||||||
#if defined(_MSC_VER) || \
|
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest backend based on NSURLSession
|
// wxWebRequest backend based on NSURLSession
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1 under macOS.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on macOS 10.9+
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
// otherwise wxWebRequest won't be available at all under Mac.
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 1
|
#ifdef __APPLE__
|
||||||
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 0 for MSW and macOS, detected automatically when using configure.
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
||||||
// for wxWebRequest to be available at all.
|
// for wxWebRequest to be available at all.
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest and related classes: This will allow usage of system libraries
|
|
||||||
// for HTTP(S) requests
|
|
||||||
//
|
|
||||||
// Default is 1
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
||||||
// or wxURL you need to set this to 1.
|
// or wxURL you need to set this to 1.
|
||||||
@@ -1630,7 +1614,7 @@
|
|||||||
|
|
||||||
/* --- start MSW options --- */
|
/* --- start MSW options --- */
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Graphics backends choices for Windows
|
// Windows-specific backends choices
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// The options here are only taken into account if wxUSE_GRAPHICS_CONTEXT is 1.
|
// The options here are only taken into account if wxUSE_GRAPHICS_CONTEXT is 1.
|
||||||
@@ -1658,6 +1642,20 @@
|
|||||||
#define wxUSE_GRAPHICS_DIRECT2D 0
|
#define wxUSE_GRAPHICS_DIRECT2D 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// wxWebRequest backend based on WinHTTP.
|
||||||
|
//
|
||||||
|
// This is only taken into account if wxUSE_WEBREQUEST==1.
|
||||||
|
//
|
||||||
|
// Default is 1 if supported by the compiler (MSVS or MinGW64).
|
||||||
|
//
|
||||||
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
|
// otherwise wxWebRequest won't be available at all.
|
||||||
|
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 1
|
||||||
|
#else
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Windows-only settings
|
// Windows-only settings
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Graphics backends choices for Windows
|
// Windows-specific backends choices
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// The options here are only taken into account if wxUSE_GRAPHICS_CONTEXT is 1.
|
// The options here are only taken into account if wxUSE_GRAPHICS_CONTEXT is 1.
|
||||||
@@ -36,6 +36,20 @@
|
|||||||
#define wxUSE_GRAPHICS_DIRECT2D 0
|
#define wxUSE_GRAPHICS_DIRECT2D 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// wxWebRequest backend based on WinHTTP.
|
||||||
|
//
|
||||||
|
// This is only taken into account if wxUSE_WEBREQUEST==1.
|
||||||
|
//
|
||||||
|
// Default is 1 if supported by the compiler (MSVS or MinGW64).
|
||||||
|
//
|
||||||
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
|
// otherwise wxWebRequest won't be available at all.
|
||||||
|
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 1
|
||||||
|
#else
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// Windows-only settings
|
// Windows-only settings
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -639,53 +639,37 @@
|
|||||||
// wxMimeTypesManager class
|
// wxMimeTypesManager class
|
||||||
#define wxUSE_MIMETYPE 1
|
#define wxUSE_MIMETYPE 1
|
||||||
|
|
||||||
// wxWebRequest backend based on WinHTTP
|
// wxWebRequest allows usage of system libraries for HTTP(S) requests.
|
||||||
|
//
|
||||||
|
// Note that for wxWebRequest to be built, at least one of its backends must be
|
||||||
|
// available. Under MSW and macOS this will always be the case unless
|
||||||
|
// explicitly disabled.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on Windows
|
// Recommended setting: 1, setting it to 0 may be useful to avoid dependencies
|
||||||
|
// on libcurl on Unix systems.
|
||||||
// Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION()
|
#define wxUSE_WEBREQUEST 1
|
||||||
// here as this file is included from wx/platform.h before they're defined.
|
|
||||||
#if defined(_MSC_VER) || \
|
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest backend based on NSURLSession
|
// wxWebRequest backend based on NSURLSession
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1 under macOS.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on macOS 10.9+
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
// otherwise wxWebRequest won't be available at all under Mac.
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 1
|
#ifdef __APPLE__
|
||||||
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 0 for MSW and macOS, detected automatically when using configure.
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
||||||
// for wxWebRequest to be available at all.
|
// for wxWebRequest to be available at all.
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest and related classes: This will allow usage of system libraries
|
|
||||||
// for HTTP(S) requests
|
|
||||||
//
|
|
||||||
// Default is 1
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
||||||
// or wxURL you need to set this to 1.
|
// or wxURL you need to set this to 1.
|
||||||
|
@@ -629,53 +629,37 @@
|
|||||||
// wxMimeTypesManager class
|
// wxMimeTypesManager class
|
||||||
#define wxUSE_MIMETYPE 1
|
#define wxUSE_MIMETYPE 1
|
||||||
|
|
||||||
// wxWebRequest backend based on WinHTTP
|
// wxWebRequest allows usage of system libraries for HTTP(S) requests.
|
||||||
|
//
|
||||||
|
// Note that for wxWebRequest to be built, at least one of its backends must be
|
||||||
|
// available. Under MSW and macOS this will always be the case unless
|
||||||
|
// explicitly disabled.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on Windows
|
// Recommended setting: 1, setting it to 0 may be useful to avoid dependencies
|
||||||
|
// on libcurl on Unix systems.
|
||||||
// Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION()
|
#define wxUSE_WEBREQUEST 1
|
||||||
// here as this file is included from wx/platform.h before they're defined.
|
|
||||||
#if defined(_MSC_VER) || \
|
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest backend based on NSURLSession
|
// wxWebRequest backend based on NSURLSession
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1 under macOS.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on macOS 10.9+
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
// otherwise wxWebRequest won't be available at all under Mac.
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 1
|
#ifdef __APPLE__
|
||||||
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 0 for MSW and macOS, detected automatically when using configure.
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
||||||
// for wxWebRequest to be available at all.
|
// for wxWebRequest to be available at all.
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest and related classes: This will allow usage of system libraries
|
|
||||||
// for HTTP(S) requests
|
|
||||||
//
|
|
||||||
// Default is 1
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
||||||
// or wxURL you need to set this to 1.
|
// or wxURL you need to set this to 1.
|
||||||
|
@@ -632,53 +632,37 @@
|
|||||||
// wxMimeTypesManager class
|
// wxMimeTypesManager class
|
||||||
#define wxUSE_MIMETYPE 1
|
#define wxUSE_MIMETYPE 1
|
||||||
|
|
||||||
// wxWebRequest backend based on WinHTTP
|
// wxWebRequest allows usage of system libraries for HTTP(S) requests.
|
||||||
|
//
|
||||||
|
// Note that for wxWebRequest to be built, at least one of its backends must be
|
||||||
|
// available. Under MSW and macOS this will always be the case unless
|
||||||
|
// explicitly disabled.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on Windows
|
// Recommended setting: 1, setting it to 0 may be useful to avoid dependencies
|
||||||
|
// on libcurl on Unix systems.
|
||||||
// Notice that we can't use wxCHECK_VISUALC_VERSION() nor wxCHECK_GCC_VERSION()
|
#define wxUSE_WEBREQUEST 1
|
||||||
// here as this file is included from wx/platform.h before they're defined.
|
|
||||||
#if defined(_MSC_VER) || \
|
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest backend based on NSURLSession
|
// wxWebRequest backend based on NSURLSession
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 1 under macOS.
|
||||||
//
|
//
|
||||||
// Recommended setting: 1 on macOS 10.9+
|
// Recommended setting: 1, can be set to 0 if wxUSE_WEBREQUEST_CURL==1,
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
// otherwise wxWebRequest won't be available at all under Mac.
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 1
|
#ifdef __APPLE__
|
||||||
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
// wxWebRequest backend based on libcurl, can be used under all platforms.
|
||||||
//
|
//
|
||||||
// Default is 1
|
// Default is 0 for MSW and macOS, detected automatically when using configure.
|
||||||
//
|
//
|
||||||
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
// Recommended setting: 0 on Windows and macOS, otherwise 1 as it is required
|
||||||
// for wxWebRequest to be available at all.
|
// for wxWebRequest to be available at all.
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxWebRequest and related classes: This will allow usage of system libraries
|
|
||||||
// for HTTP(S) requests
|
|
||||||
//
|
|
||||||
// Default is 1
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 1
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
// wxProtocol and related classes: if you want to use either of wxFTP, wxHTTP
|
||||||
// or wxURL you need to set this to 1.
|
// or wxURL you need to set this to 1.
|
||||||
|
28
setup.h.in
28
setup.h.in
@@ -294,31 +294,15 @@
|
|||||||
|
|
||||||
#define wxUSE_MIMETYPE 0
|
#define wxUSE_MIMETYPE 0
|
||||||
|
|
||||||
|
#define wxUSE_WEBREQUEST 0
|
||||||
|
|
||||||
#if defined(_MSC_VER) || \
|
#ifdef __APPLE__
|
||||||
(defined(__MINGW32__) && (__GNUC__ > 4 || __GNUC_MINOR__ >= 8))
|
#define wxUSE_WEBREQUEST_URLSESSION wxUSE_WEBREQUEST
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_WINHTTP 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(__APPLE__) && defined(MAC_OS_X_VERSION_10_9) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_9
|
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
|
||||||
#else
|
#else
|
||||||
#define wxUSE_WEBREQUEST_URLSESSION 0
|
#define wxUSE_WEBREQUEST_URLSESSION 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WINDOWS__) || defined(__APPLE__)
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
#define wxUSE_WEBREQUEST_CURL 0
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST_CURL 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if wxUSE_WEBREQUEST_WINHTTP || wxUSE_WEBREQUEST_URLSESSION || wxUSE_WEBREQUEST_CURL
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#else
|
|
||||||
#define wxUSE_WEBREQUEST 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define wxUSE_PROTOCOL 0
|
#define wxUSE_PROTOCOL 0
|
||||||
|
|
||||||
@@ -707,6 +691,12 @@
|
|||||||
#define wxUSE_GRAPHICS_DIRECT2D 0
|
#define wxUSE_GRAPHICS_DIRECT2D 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) || defined(__MINGW64_VERSION_MAJOR)
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 0
|
||||||
|
#else
|
||||||
|
#define wxUSE_WEBREQUEST_WINHTTP 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define wxUSE_OLE 0
|
#define wxUSE_OLE 0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user