summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@qt.io>2021-06-16 11:18:34 +0200
committerJoerg Bornemann <joerg.bornemann@qt.io>2021-06-18 17:52:36 +0200
commit05ca0b37413295063701beea19e4421419d99a91 (patch)
tree062ea585ba211a2f4b5b64b16abce8c2c93be493 /src
parent8ab5a7283295ede0619e26f959d2b69f93260b70 (diff)
Remove old configure-related files
Remove the configure.json and configure.pri files that were used for the qmake-based configure. Remove the .prev_*.cmake files that were a by-product of configurejson2cmake.py. Task-number: QTBUG-89536 Change-Id: Ie827562f7fd2513d59f69234d77b8b93124ea78e Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 7155e4f62060c3d9f36e748135bd57776f40b4b2)
Diffstat (limited to 'src')
-rw-r--r--src/corelib/.prev_configure.cmake965
-rw-r--r--src/corelib/configure.json1065
-rw-r--r--src/gui/.prev_configure.cmake1225
-rw-r--r--src/gui/configure.json1847
-rw-r--r--src/network/.prev_configure.cmake433
-rw-r--r--src/network/configure.json484
-rw-r--r--src/plugins/sqldrivers/.prev_configure.cmake77
-rw-r--r--src/plugins/sqldrivers/configure.json201
-rw-r--r--src/printsupport/configure.json102
-rw-r--r--src/sql/configure.json22
-rw-r--r--src/testlib/configure.json34
-rw-r--r--src/widgets/configure.json647
-rw-r--r--src/xml/configure.json16
13 files changed, 0 insertions, 7118 deletions
diff --git a/src/corelib/.prev_configure.cmake b/src/corelib/.prev_configure.cmake
deleted file mode 100644
index 893acda953..0000000000
--- a/src/corelib/.prev_configure.cmake
+++ /dev/null
@@ -1,965 +0,0 @@
-
-
-#### Inputs
-
-# input doubleconversion
-set(INPUT_doubleconversion "undefined" CACHE STRING "")
-set_property(CACHE INPUT_doubleconversion PROPERTY STRINGS undefined no qt system)
-
-# input libb2
-set(INPUT_libb2 "undefined" CACHE STRING "")
-set_property(CACHE INPUT_libb2 PROPERTY STRINGS undefined no qt system)
-
-
-
-#### Libraries
-
-if((UNIX) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(WrapBacktrace PROVIDED_TARGETS WrapBacktrace::WrapBacktrace MODULE_NAME core QMAKE_LIB backtrace)
-endif()
-qt_find_package(WrapDoubleConversion PROVIDED_TARGETS WrapDoubleConversion::WrapDoubleConversion MODULE_NAME core QMAKE_LIB doubleconversion)
-qt_find_package(GLIB2 PROVIDED_TARGETS GLIB2::GLIB2 MODULE_NAME core QMAKE_LIB glib)
-qt_find_package(ICU COMPONENTS i18n uc data PROVIDED_TARGETS ICU::i18n ICU::uc ICU::data MODULE_NAME core QMAKE_LIB icu)
-if(QT_FEATURE_dlopen)
- qt_add_qmake_lib_dependency(icu libdl)
-endif()
-qt_find_package(Libsystemd PROVIDED_TARGETS PkgConfig::Libsystemd MODULE_NAME core QMAKE_LIB journald)
-qt_find_package(WrapAtomic PROVIDED_TARGETS WrapAtomic::WrapAtomic MODULE_NAME core QMAKE_LIB libatomic)
-qt_find_package(Libb2 PROVIDED_TARGETS Libb2::Libb2 MODULE_NAME core QMAKE_LIB libb2)
-qt_find_package(WrapRt PROVIDED_TARGETS WrapRt::WrapRt MODULE_NAME core QMAKE_LIB librt)
-qt_find_package(LTTngUST PROVIDED_TARGETS LTTng::UST MODULE_NAME core QMAKE_LIB lttng-ust)
-qt_add_qmake_lib_dependency(lttng-ust libdl)
-qt_find_package(WrapSystemPCRE2 10.20 PROVIDED_TARGETS WrapSystemPCRE2::WrapSystemPCRE2 MODULE_NAME core QMAKE_LIB pcre2)
-set_package_properties(WrapPCRE2 PROPERTIES TYPE REQUIRED)
-if((QNX) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(PPS PROVIDED_TARGETS PPS::PPS MODULE_NAME core QMAKE_LIB pps)
-endif()
-qt_find_package(Slog2 PROVIDED_TARGETS Slog2::Slog2 MODULE_NAME core QMAKE_LIB slog2)
-
-
-#### Tests
-
-# atomicfptr
-qt_config_compile_test(atomicfptr
- LABEL "working std::atomic for function pointers"
- CODE
-"#include <atomic>
-typedef void (*fptr)(int);
-typedef std::atomic<fptr> atomicfptr;
-void testfunction(int) { }
-void test(volatile atomicfptr &a)
-{
- fptr v = a.load(std::memory_order_acquire);
- while (!a.compare_exchange_strong(v, &testfunction,
- std::memory_order_acq_rel,
- std::memory_order_acquire)) {
- v = a.exchange(&testfunction);
- }
- a.store(&testfunction, std::memory_order_release);
-}
-
-int main(void)
-{
- /* BEGIN TEST: */
-atomicfptr fptr(testfunction);
-test(fptr);
- /* END TEST: */
- return 0;
-}
-")
-
-# clock-monotonic
-qt_config_compile_test(clock_monotonic
- LABEL "POSIX monotonic clock"
- LIBRARIES
- WrapRt::WrapRt
- CODE
-"#include <unistd.h>
-#include <time.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-#if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK-0 >= 0)
-timespec ts;
-clock_gettime(CLOCK_MONOTONIC, &ts);
-#else
-# error Feature _POSIX_MONOTONIC_CLOCK not available
-#endif
- /* END TEST: */
- return 0;
-}
-")
-
-# cloexec
-qt_config_compile_test(cloexec
- LABEL "O_CLOEXEC"
- CODE
-"#define _GNU_SOURCE 1
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-int pipes[2];
-(void) pipe2(pipes, O_CLOEXEC | O_NONBLOCK);
-(void) fcntl(0, F_DUPFD_CLOEXEC, 0);
-(void) dup3(0, 3, O_CLOEXEC);
-#if defined(__NetBSD__)
-(void) paccept(0, 0, 0, NULL, SOCK_CLOEXEC | SOCK_NONBLOCK);
-#else
-(void) accept4(0, 0, 0, SOCK_CLOEXEC | SOCK_NONBLOCK);
-#endif
- /* END TEST: */
- return 0;
-}
-")
-
-# cxx11_future
-qt_config_compile_test(cxx11_future
- LABEL "C++11 <future>"
- CODE
-"#include <future>
-
-int main(void)
-{
- /* BEGIN TEST: */
-std::future<int> f = std::async([]() { return 42; });
-(void)f.get();
- /* END TEST: */
- return 0;
-}
-"# FIXME: qmake: unix:!android:LIBS += -lpthread
-)
-
-# cxx11_random
-qt_config_compile_test(cxx11_random
- LABEL "C++11 <random>"
- CODE
-"#include <random>
-
-int main(void)
-{
- /* BEGIN TEST: */
-std::mt19937 mt(0);
- /* END TEST: */
- return 0;
-}
-")
-
-# cxx17_filesystem
-qt_config_compile_test(cxx17_filesystem
- LABEL "C++17 <filesystem>"
- CODE
-"#include <filesystem>
-
-int main(void)
-{
- /* BEGIN TEST: */
-std::filesystem::copy(
- std::filesystem::path(\"./file\"),
- std::filesystem::path(\"./other\"));
- /* END TEST: */
- return 0;
-}
-"# FIXME: qmake: CONFIG += c++17
-)
-
-# eventfd
-qt_config_compile_test(eventfd
- LABEL "eventfd"
- CODE
-"#include <sys/eventfd.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-eventfd_t value;
-int fd = eventfd(0, EFD_CLOEXEC);
-eventfd_read(fd, &value);
-eventfd_write(fd, value);
- /* END TEST: */
- return 0;
-}
-")
-
-# futimens
-qt_config_compile_test(futimens
- LABEL "futimens()"
- CODE
-"#include <sys/stat.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-futimens(-1, 0);
- /* END TEST: */
- return 0;
-}
-"# FIXME: qmake: ["# Block futimens() on Apple platforms unless it's available on ALL", '# deployment targets. This simplifies the logic at the call site', "# dramatically, as it isn't strictly needed compared to futimes().", 'darwin: QMAKE_CXXFLAGS += -Werror=unguarded-availability -Werror=unguarded-availability-new', 'CONFIG += warn_on']
-)
-
-# futimes
-qt_config_compile_test(futimes
- LABEL "futimes()"
- CODE
-"#include <sys/time.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-futimes(-1, 0);
- /* END TEST: */
- return 0;
-}
-")
-
-# getauxval
-qt_config_compile_test(getauxval
- LABEL "getauxval()"
- CODE
-"#include <sys/auxv.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-(void) getauxval(AT_NULL);
- /* END TEST: */
- return 0;
-}
-")
-
-# getentropy
-qt_config_compile_test(getentropy
- LABEL "getentropy()"
- CODE
-"#include <unistd.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-char buf[32];
-(void) getentropy(buf, sizeof(buf));
- /* END TEST: */
- return 0;
-}
-")
-
-# glibc
-qt_config_compile_test(glibc
- LABEL "GNU libc"
- CODE
-"#include <stdlib.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-return __GLIBC__;
- /* END TEST: */
- return 0;
-}
-")
-
-# inotify
-qt_config_compile_test(inotify
- LABEL "inotify"
- CODE
-"#include <sys/inotify.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-inotify_init();
-inotify_add_watch(0, \"foobar\", IN_ACCESS);
-inotify_rm_watch(0, 1);
- /* END TEST: */
- return 0;
-}
-")
-
-# ipc_sysv
-qt_config_compile_test(ipc_sysv
- LABEL "SysV IPC"
- CODE
-"#include <sys/types.h>
-#include <sys/ipc.h>
-#include <sys/sem.h>
-#include <sys/shm.h>
-#include <fcntl.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-key_t unix_key = ftok(\"test\", 'Q');
-semctl(semget(unix_key, 1, 0666 | IPC_CREAT | IPC_EXCL), 0, IPC_RMID, 0);
-shmget(unix_key, 0, 0666 | IPC_CREAT | IPC_EXCL);
-shmctl(0, 0, (struct shmid_ds *)(0));
- /* END TEST: */
- return 0;
-}
-")
-
-# ipc_posix
-if (LINUX)
- set(ipc_posix_TEST_LIBRARIES pthread rt)
-endif()
-qt_config_compile_test(ipc_posix
- LABEL "POSIX IPC"
- LIBRARIES
- "${ipc_posix_TEST_LIBRARIES}"
- CODE
-"#include <sys/types.h>
-#include <sys/mman.h>
-#include <semaphore.h>
-#include <fcntl.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-sem_close(sem_open(\"test\", O_CREAT | O_EXCL, 0666, 0));
-shm_open(\"test\", O_RDWR | O_CREAT | O_EXCL, 0666);
-shm_unlink(\"test\");
- /* END TEST: */
- return 0;
-}
-")
-
-# linkat
-qt_config_compile_test(linkat
- LABEL "linkat()"
- CODE
-"#define _ATFILE_SOURCE 1
-#include <fcntl.h>
-#include <unistd.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-linkat(AT_FDCWD, \"foo\", AT_FDCWD, \"bar\", AT_SYMLINK_FOLLOW);
- /* END TEST: */
- return 0;
-}
-")
-
-# ppoll
-qt_config_compile_test(ppoll
- LABEL "ppoll()"
- CODE
-"#include <signal.h>
-#include <poll.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-struct pollfd pfd;
-struct timespec ts;
-sigset_t sig;
-ppoll(&pfd, 1, &ts, &sig);
- /* END TEST: */
- return 0;
-}
-")
-
-# pollts
-qt_config_compile_test(pollts
- LABEL "pollts()"
- CODE
-"#include <poll.h>
-#include <signal.h>
-#include <time.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-struct pollfd pfd;
-struct timespec ts;
-sigset_t sig;
-pollts(&pfd, 1, &ts, &sig);
- /* END TEST: */
- return 0;
-}
-")
-
-# poll
-qt_config_compile_test(poll
- LABEL "poll()"
- CODE
-"#include <poll.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-struct pollfd pfd;
-poll(&pfd, 1, 0);
- /* END TEST: */
- return 0;
-}
-")
-
-# renameat2
-qt_config_compile_test(renameat2
- LABEL "renameat2()"
- CODE
-"#define _ATFILE_SOURCE 1
-#include <fcntl.h>
-#include <stdio.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);
- /* END TEST: */
- return 0;
-}
-")
-
-# statx
-qt_config_compile_test(statx
- LABEL "statx() in libc"
- CODE
-"#define _ATFILE_SOURCE 1
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <fcntl.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-struct statx statxbuf;
-unsigned int mask = STATX_BASIC_STATS;
-return statx(AT_FDCWD, \"\", AT_STATX_SYNC_AS_STAT, mask, &statxbuf);
- /* END TEST: */
- return 0;
-}
-")
-
-# syslog
-qt_config_compile_test(syslog
- LABEL "syslog"
- CODE
-"#include <syslog.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-openlog(\"qt\", 0, LOG_USER);
-syslog(LOG_INFO, \"configure\");
-closelog();
- /* END TEST: */
- return 0;
-}
-")
-
-# xlocalescanprint
-qt_config_compile_test(xlocalescanprint
- LABEL "xlocale.h (or equivalents)"
- CODE
-"#define QT_BEGIN_NAMESPACE
-#define QT_END_NAMESPACE
-
-#ifdef _MSVC_VER
-#define Q_CC_MSVC _MSVC_VER
-#endif
-
-#define QT_NO_DOUBLECONVERSION
-
-#include QDSP_P_H
-
-int main(void)
-{
- /* BEGIN TEST: */
-#ifdef _MSVC_VER
-_locale_t invalidLocale = NULL;
-#else
-locale_t invalidLocale = NULL;
-#endif
-double a = 3.4;
-qDoubleSnprintf(argv[0], 1, invalidLocale, \"invalid format\", a);
-qDoubleSscanf(argv[0], invalidLocale, \"invalid format\", &a, &argc);
- /* END TEST: */
- return 0;
-}
-"# FIXME: qmake: DEFINES += QDSP_P_H=$$shell_quote(\"@PWD@/text/qdoublescanprint_p.h\")
-)
-
-
-
-#### Features
-
-qt_feature("clock-gettime" PRIVATE
- LABEL "clock_gettime()"
- CONDITION UNIX AND WrapRt_FOUND
-)
-qt_feature("clock-monotonic" PUBLIC
- LABEL "POSIX monotonic clock"
- CONDITION QT_FEATURE_clock_gettime AND TEST_clock_monotonic
-)
-qt_feature_definition("clock-monotonic" "QT_NO_CLOCK_MONOTONIC" NEGATE VALUE "1")
-qt_feature("doubleconversion" PUBLIC PRIVATE
- LABEL "DoubleConversion"
-)
-qt_feature_definition("doubleconversion" "QT_NO_DOUBLECONVERSION" NEGATE VALUE "1")
-qt_feature("system-doubleconversion" PRIVATE
- LABEL " Using system DoubleConversion"
- CONDITION QT_FEATURE_doubleconversion AND WrapDoubleConversion_FOUND
- ENABLE INPUT_doubleconversion STREQUAL 'system'
- DISABLE INPUT_doubleconversion STREQUAL 'qt'
-)
-qt_feature("cxx11_future" PUBLIC
- LABEL "C++11 <future>"
- CONDITION TEST_cxx11_future
-)
-qt_feature("cxx17_filesystem" PUBLIC
- LABEL "C++17 <filesystem>"
- CONDITION TEST_cxx17_filesystem
-)
-qt_feature("eventfd" PUBLIC
- LABEL "eventfd"
- CONDITION NOT WASM AND TEST_eventfd
-)
-qt_feature_definition("eventfd" "QT_NO_EVENTFD" NEGATE VALUE "1")
-qt_feature("futimens" PRIVATE
- LABEL "futimens()"
- CONDITION NOT WIN32 AND TEST_futimens
-)
-qt_feature("futimes" PRIVATE
- LABEL "futimes()"
- CONDITION NOT WIN32 AND NOT QT_FEATURE_futimens AND TEST_futimes
-)
-qt_feature("getauxval" PRIVATE
- LABEL "getauxval()"
- CONDITION LINUX AND TEST_getauxval
-)
-qt_feature("getentropy" PRIVATE
- LABEL "getentropy()"
- CONDITION UNIX AND TEST_getentropy
-)
-qt_feature("glib" PUBLIC PRIVATE
- LABEL "GLib"
- AUTODETECT NOT WIN32
- CONDITION GLIB2_FOUND
-)
-qt_feature_definition("glib" "QT_NO_GLIB" NEGATE VALUE "1")
-qt_feature("glibc" PRIVATE
- LABEL "GNU libc"
- AUTODETECT LINUX
- CONDITION TEST_glibc
-)
-qt_feature("icu" PRIVATE
- LABEL "ICU"
- AUTODETECT NOT WIN32
- CONDITION ICU_FOUND
-)
-qt_feature("inotify" PUBLIC PRIVATE
- LABEL "inotify"
- CONDITION TEST_inotify
-)
-qt_feature_definition("inotify" "QT_NO_INOTIFY" NEGATE VALUE "1")
-qt_feature("ipc_posix"
- LABEL "Using POSIX IPC"
- AUTODETECT NOT WIN32
- CONDITION NOT TEST_ipc_sysv AND TEST_ipc_posix
-)
-qt_feature_definition("ipc_posix" "QT_POSIX_IPC")
-qt_feature("journald" PRIVATE
- LABEL "journald"
- AUTODETECT OFF
- CONDITION Libsystemd_FOUND
-)
-# Used by QCryptographicHash for the BLAKE2 hashing algorithms
-qt_feature("system-libb2" PRIVATE
- LABEL "Using system libb2"
- CONDITION Libb2_FOUND
- ENABLE INPUT_libb2 STREQUAL 'system'
- DISABLE INPUT_libb2 STREQUAL 'no' OR INPUT_libb2 STREQUAL 'qt'
-)
-# Currently only used by QTemporaryFile; linkat() exists on Android, but hardlink creation fails due to security rules
-qt_feature("linkat" PRIVATE
- LABEL "linkat()"
- AUTODETECT LINUX AND NOT ANDROID
- CONDITION TEST_linkat
-)
-qt_feature("std-atomic64" PUBLIC
- LABEL "64 bit atomic operations"
- CONDITION WrapAtomic_FOUND
-)
-qt_feature("mimetype" PUBLIC
- SECTION "Utilities"
- LABEL "Mimetype handling"
- PURPOSE "Provides MIME type handling."
-)
-qt_feature_definition("mimetype" "QT_NO_MIMETYPE" NEGATE VALUE "1")
-qt_feature("mimetype-database" PRIVATE
- LABEL "Built-in copy of the MIME database"
- CONDITION QT_FEATURE_mimetype
-)
-qt_feature("pcre2"
- LABEL "PCRE2"
- ENABLE INPUT_pcre STREQUAL 'qt' OR QT_FEATURE_system_pcre2
- DISABLE INPUT_pcre STREQUAL 'no'
-)
-qt_feature_config("pcre2" QMAKE_PRIVATE_CONFIG)
-qt_feature("system-pcre2" PRIVATE
- LABEL " Using system PCRE2"
- CONDITION WrapSystemPCRE2_FOUND
- ENABLE INPUT_pcre STREQUAL 'system'
- DISABLE INPUT_pcre STREQUAL 'no' OR INPUT_pcre STREQUAL 'qt'
-)
-qt_feature("poll_ppoll" PRIVATE
- LABEL "Native ppoll()"
- CONDITION NOT WASM AND TEST_ppoll
- EMIT_IF NOT WIN32
-)
-qt_feature("poll_pollts" PRIVATE
- LABEL "Native pollts()"
- CONDITION NOT QT_FEATURE_poll_ppoll AND TEST_pollts
- EMIT_IF NOT WIN32
-)
-qt_feature("poll_poll" PRIVATE
- LABEL "Native poll()"
- CONDITION NOT QT_FEATURE_poll_ppoll AND NOT QT_FEATURE_poll_pollts AND TEST_poll
- EMIT_IF NOT WIN32
-)
-qt_feature("poll_select" PRIVATE
- LABEL "Emulated poll()"
- CONDITION NOT QT_FEATURE_poll_ppoll AND NOT QT_FEATURE_poll_pollts AND NOT QT_FEATURE_poll_poll
- EMIT_IF NOT WIN32
-)
-qt_feature_definition("poll_select" "QT_NO_NATIVE_POLL")
-qt_feature("qqnx_pps" PRIVATE
- LABEL "PPS"
- CONDITION PPS_FOUND
- EMIT_IF QNX
-)
-qt_feature("renameat2" PRIVATE
- LABEL "renameat2()"
- CONDITION LINUX AND TEST_renameat2
-)
-qt_feature("slog2" PRIVATE
- LABEL "slog2"
- CONDITION Slog2_FOUND
-)
-qt_feature("statx" PRIVATE
- LABEL "statx() in libc"
- CONDITION LINUX AND TEST_statx
-)
-qt_feature("syslog" PRIVATE
- LABEL "syslog"
- AUTODETECT OFF
- CONDITION TEST_syslog
-)
-qt_feature("threadsafe-cloexec"
- LABEL "Threadsafe pipe creation"
- CONDITION TEST_cloexec
-)
-qt_feature_definition("threadsafe-cloexec" "QT_THREADSAFE_CLOEXEC" VALUE "1")
-qt_feature_config("threadsafe-cloexec" QMAKE_PUBLIC_QT_CONFIG)
-qt_feature("properties" PUBLIC
- SECTION "Kernel"
- LABEL "Properties"
- PURPOSE "Supports scripting Qt-based applications."
-)
-qt_feature_definition("properties" "QT_NO_PROPERTIES" NEGATE VALUE "1")
-qt_feature("regularexpression" PUBLIC
- SECTION "Kernel"
- LABEL "QRegularExpression"
- PURPOSE "Provides an API to Perl-compatible regular expressions."
- CONDITION QT_FEATURE_system_pcre2 OR QT_FEATURE_pcre2
-)
-qt_feature_definition("regularexpression" "QT_NO_REGULAREXPRESSION" NEGATE VALUE "1")
-qt_feature("backtrace" PRIVATE
- LABEL "backtrace"
- CONDITION UNIX AND QT_FEATURE_regularexpression AND WrapBacktrace_FOUND
-)
-qt_feature("sharedmemory" PUBLIC
- SECTION "Kernel"
- LABEL "QSharedMemory"
- PURPOSE "Provides access to a shared memory segment."
- CONDITION ( ANDROID OR WIN32 OR ( NOT VXWORKS AND ( TEST_ipc_sysv OR TEST_ipc_posix ) ) )
-)
-qt_feature_definition("sharedmemory" "QT_NO_SHAREDMEMORY" NEGATE VALUE "1")
-qt_feature("shortcut" PUBLIC
- SECTION "Kernel"
- LABEL "QShortcut"
- PURPOSE "Provides keyboard accelerators and shortcuts."
-)
-qt_feature_definition("shortcut" "QT_NO_SHORTCUT" NEGATE VALUE "1")
-qt_feature("systemsemaphore" PUBLIC
- SECTION "Kernel"
- LABEL "QSystemSemaphore"
- PURPOSE "Provides a general counting system semaphore."
- CONDITION ( NOT INTEGRITY AND NOT VXWORKS AND NOT rtems ) AND ( ANDROID OR WIN32 OR TEST_ipc_sysv OR TEST_ipc_posix )
-)
-qt_feature_definition("systemsemaphore" "QT_NO_SYSTEMSEMAPHORE" NEGATE VALUE "1")
-qt_feature("xmlstream" PUBLIC
- SECTION "Kernel"
- LABEL "XML Streaming APIs"
- PURPOSE "Provides a simple streaming API for XML."
-)
-qt_feature_definition("xmlstream" "QT_NO_XMLSTREAM" NEGATE VALUE "1")
-qt_feature("xmlstreamreader" PUBLIC
- SECTION "Kernel"
- LABEL "QXmlStreamReader"
- PURPOSE "Provides a well-formed XML parser with a simple streaming API."
- CONDITION QT_FEATURE_xmlstream
-)
-qt_feature_definition("xmlstreamreader" "QT_NO_XMLSTREAMREADER" NEGATE VALUE "1")
-qt_feature("xmlstreamwriter" PUBLIC
- SECTION "Kernel"
- LABEL "QXmlStreamWriter"
- PURPOSE "Provides a XML writer with a simple streaming API."
- CONDITION QT_FEATURE_xmlstream
-)
-qt_feature_definition("xmlstreamwriter" "QT_NO_XMLSTREAMWRITER" NEGATE VALUE "1")
-qt_feature("textdate" PUBLIC
- SECTION "Data structures"
- LABEL "Text Date"
- PURPOSE "Supports month and day names in dates."
-)
-qt_feature_definition("textdate" "QT_NO_TEXTDATE" NEGATE VALUE "1")
-qt_feature("datestring" PUBLIC
- SECTION "Data structures"
- LABEL "QDate/QTime/QDateTime"
- PURPOSE "Provides conversion between dates and strings."
- CONDITION QT_FEATURE_textdate
-)
-qt_feature_definition("datestring" "QT_NO_DATESTRING" NEGATE VALUE "1")
-qt_feature("process" PUBLIC
- SECTION "File I/O"
- LABEL "QProcess"
- PURPOSE "Supports external process invocation."
- CONDITION QT_FEATURE_processenvironment AND ( QT_FEATURE_thread OR NOT UNIX ) AND NOT UIKIT AND NOT INTEGRITY AND NOT VXWORKS AND NOT rtems
-)
-qt_feature_definition("process" "QT_NO_PROCESS" NEGATE VALUE "1")
-qt_feature("processenvironment" PUBLIC
- SECTION "File I/O"
- LABEL "QProcessEnvironment"
- PURPOSE "Provides a higher-level abstraction of environment variables."
- CONDITION NOT INTEGRITY AND NOT rtems
-)
-qt_feature("temporaryfile" PUBLIC
- SECTION "File I/O"
- LABEL "QTemporaryFile"
- PURPOSE "Provides an I/O device that operates on temporary files."
-)
-qt_feature_definition("temporaryfile" "QT_NO_TEMPORARYFILE" NEGATE VALUE "1")
-qt_feature("library" PUBLIC
- SECTION "File I/O"
- LABEL "QLibrary"
- PURPOSE "Provides a wrapper for dynamically loaded libraries."
- CONDITION WIN32 OR HPUX OR ( NOT NACL AND QT_FEATURE_dlopen )
-)
-qt_feature_definition("library" "QT_NO_LIBRARY" NEGATE VALUE "1")
-qt_feature("settings" PUBLIC
- SECTION "File I/O"
- LABEL "QSettings"
- PURPOSE "Provides persistent application settings."
-)
-qt_feature_definition("settings" "QT_NO_SETTINGS" NEGATE VALUE "1")
-qt_feature("filesystemwatcher" PUBLIC
- SECTION "File I/O"
- LABEL "QFileSystemWatcher"
- PURPOSE "Provides an interface for monitoring files and directories for modifications."
-)
-qt_feature_definition("filesystemwatcher" "QT_NO_FILESYSTEMWATCHER" NEGATE VALUE "1")
-qt_feature("filesystemiterator" PUBLIC
- SECTION "File I/O"
- LABEL "QFileSystemIterator"
- PURPOSE "Provides fast file system iteration."
-)
-qt_feature_definition("filesystemiterator" "QT_NO_FILESYSTEMITERATOR" NEGATE VALUE "1")
-qt_feature("itemmodel" PUBLIC
- SECTION "ItemViews"
- LABEL "Qt Item Model"
- PURPOSE "Provides the item model for item views"
-)
-qt_feature_definition("itemmodel" "QT_NO_ITEMMODEL" NEGATE VALUE "1")
-qt_feature("proxymodel" PUBLIC
- SECTION "ItemViews"
- LABEL "QAbstractProxyModel"
- PURPOSE "Supports processing of data passed between another model and a view."
- CONDITION QT_FEATURE_itemmodel
-)
-qt_feature_definition("proxymodel" "QT_NO_PROXYMODEL" NEGATE VALUE "1")
-qt_feature("sortfilterproxymodel" PUBLIC
- SECTION "ItemViews"
- LABEL "QSortFilterProxyModel"
- PURPOSE "Supports sorting and filtering of data passed between another model and a view."
- CONDITION QT_FEATURE_proxymodel AND QT_FEATURE_regularexpression
-)
-qt_feature_definition("sortfilterproxymodel" "QT_NO_SORTFILTERPROXYMODEL" NEGATE VALUE "1")
-qt_feature("identityproxymodel" PUBLIC
- SECTION "ItemViews"
- LABEL "QIdentityProxyModel"
- PURPOSE "Supports proxying a source model unmodified."
- CONDITION QT_FEATURE_proxymodel
-)
-qt_feature_definition("identityproxymodel" "QT_NO_IDENTITYPROXYMODEL" NEGATE VALUE "1")
-qt_feature("transposeproxymodel" PUBLIC
- SECTION "ItemViews"
- LABEL "QTransposeProxyModel"
- PURPOSE "Provides a proxy to swap rows and columns of a model."
- CONDITION QT_FEATURE_proxymodel
-)
-qt_feature_definition("transposeproxymodel" "QT_NO_TRANSPOSEPROXYMODEL" NEGATE VALUE "1")
-qt_feature("concatenatetablesproxymodel" PUBLIC
- SECTION "ItemViews"
- LABEL "QConcatenateTablesProxyModel"
- PURPOSE "Supports concatenating source models."
- CONDITION QT_FEATURE_proxymodel
-)
-qt_feature_definition("concatenatetablesproxymodel" "QT_NO_CONCATENATETABLESPROXYMODEL" NEGATE VALUE "1")
-qt_feature("stringlistmodel" PUBLIC
- SECTION "ItemViews"
- LABEL "QStringListModel"
- PURPOSE "Provides a model that supplies strings to views."
- CONDITION QT_FEATURE_itemmodel
-)
-qt_feature_definition("stringlistmodel" "QT_NO_STRINGLISTMODEL" NEGATE VALUE "1")
-qt_feature("translation" PUBLIC
- SECTION "Internationalization"
- LABEL "Translation"
- PURPOSE "Supports translations using QObject::tr()."
-)
-qt_feature_definition("translation" "QT_NO_TRANSLATION" NEGATE VALUE "1")
-qt_feature("easingcurve" PUBLIC
- SECTION "Utilities"
- LABEL "Easing curve"
- PURPOSE "Provides easing curve."
-)
-qt_feature("animation" PUBLIC
- SECTION "Utilities"
- LABEL "Animation"
- PURPOSE "Provides a framework for animations."
- CONDITION QT_FEATURE_properties AND QT_FEATURE_easingcurve
-)
-qt_feature_definition("animation" "QT_NO_ANIMATION" NEGATE VALUE "1")
-qt_feature("gestures" PUBLIC
- SECTION "Utilities"
- LABEL "Gesture"
- PURPOSE "Provides a framework for gestures."
-)
-qt_feature_definition("gestures" "QT_NO_GESTURES" NEGATE VALUE "1")
-qt_feature("sha3-fast" PRIVATE
- SECTION "Utilities"
- LABEL "Speed optimized SHA3"
- PURPOSE "Optimizes SHA3 for speed instead of size."
-)
-qt_feature("jalalicalendar" PUBLIC
- SECTION "Utilities"
- LABEL "QJalaliCalendar"
- PURPOSE "Support the Jalali (Persian) calendar"
-)
-qt_feature("hijricalendar" PRIVATE
- SECTION "Utilities"
- LABEL "QHijriCalendar"
- PURPOSE "Generic basis for Islamic calendars, providing shared locale data"
-)
-qt_feature("islamiccivilcalendar" PUBLIC
- SECTION "Utilities"
- LABEL "QIslamicCivilCalendar"
- PURPOSE "Support the Islamic Civil calendar"
- CONDITION QT_FEATURE_hijricalendar
-)
-qt_feature("timezone" PUBLIC
- SECTION "Utilities"
- LABEL "QTimeZone"
- PURPOSE "Provides support for time-zone handling."
-)
-qt_feature("datetimeparser" PRIVATE
- SECTION "Utilities"
- LABEL "QDateTimeParser"
- PURPOSE "Provides support for parsing date-time texts."
- CONDITION QT_FEATURE_datestring
-)
-qt_feature("commandlineparser" PUBLIC
- SECTION "Utilities"
- LABEL "QCommandlineParser"
- PURPOSE "Provides support for command line parsing."
-)
-qt_feature("lttng" PRIVATE
- LABEL "LTTNG"
- AUTODETECT OFF
- CONDITION LINUX AND LTTNGUST_FOUND
- ENABLE INPUT_trace STREQUAL 'lttng' OR ( INPUT_trace STREQUAL 'yes' AND LINUX )
- DISABLE INPUT_trace STREQUAL 'etw' OR INPUT_trace STREQUAL 'no'
-)
-qt_feature("etw" PRIVATE
- LABEL "ETW"
- AUTODETECT OFF
- CONDITION WIN32
- ENABLE INPUT_trace STREQUAL 'etw' OR ( INPUT_trace STREQUAL 'yes' AND WIN32 )
- DISABLE INPUT_trace STREQUAL 'lttng' OR INPUT_trace STREQUAL 'no'
-)
-qt_feature("forkfd_pidfd" PRIVATE
- LABEL "CLONE_PIDFD support in forkfd"
- CONDITION LINUX
-)
-qt_feature("cborstreamreader" PUBLIC
- SECTION "Utilities"
- LABEL "CBOR stream reading"
- PURPOSE "Provides support for reading the CBOR binary format. Note that this is required for plugin loading. Qt GUI needs QPA plugins for basic operation."
-)
-qt_feature("cborstreamwriter" PUBLIC
- SECTION "Utilities"
- LABEL "CBOR stream writing"
- PURPOSE "Provides support for writing the CBOR binary format."
-)
-qt_configure_add_summary_section(NAME "Qt Core")
-qt_configure_add_summary_entry(ARGS "backtrace")
-qt_configure_add_summary_entry(ARGS "doubleconversion")
-qt_configure_add_summary_entry(ARGS "system-doubleconversion")
-qt_configure_add_summary_entry(ARGS "glib")
-qt_configure_add_summary_entry(ARGS "icu")
-qt_configure_add_summary_entry(ARGS "system-libb2")
-qt_configure_add_summary_entry(ARGS "mimetype-database")
-qt_configure_add_summary_entry(
- TYPE "firstAvailableFeature"
- ARGS "etw lttng"
- MESSAGE "Tracing backend"
-)
-qt_configure_add_summary_section(NAME "Logging backends")
-qt_configure_add_summary_entry(ARGS "journald")
-qt_configure_add_summary_entry(ARGS "syslog")
-qt_configure_add_summary_entry(ARGS "slog2")
-qt_configure_end_summary_section() # end of "Logging backends" section
-qt_configure_add_summary_entry(
- ARGS "qqnx_pps"
- CONDITION QNX
-)
-qt_configure_add_summary_entry(ARGS "pcre2")
-qt_configure_add_summary_entry(ARGS "system-pcre2")
-qt_configure_add_summary_entry(
- ARGS "forkfd_pidfd"
- CONDITION LINUX
-)
-qt_configure_end_summary_section() # end of "Qt Core" section
-qt_configure_add_report_entry(
- TYPE NOTE
- MESSAGE "journald, syslog or slog2 integration is enabled. If your users intend to develop applications against this build, ensure that the IDEs they use either set QT_FORCE_STDERR_LOGGING to 1 or are able to read the logged output from journald, syslog or slog2."
- CONDITION QT_FEATURE_journald OR QT_FEATURE_syslog OR ( QNX AND QT_FEATURE_slog2 )
-)
-qt_configure_add_report_entry(
- TYPE ERROR
- MESSAGE "C++11 <random> is required and is missing or failed to compile."
- CONDITION NOT TEST_cxx11_random
-)
-qt_configure_add_report_entry(
- TYPE ERROR
- MESSAGE "Your C library does not provide sscanf_l or snprintf_l. You need to use libdouble-conversion for double/string conversion."
- CONDITION INPUT_doubleconversion STREQUAL 'no' AND NOT TEST_xlocalescanprint
-)
-qt_configure_add_report_entry(
- TYPE ERROR
- MESSAGE "detected a std::atomic implementation that fails for function pointers. Please apply the patch corresponding to your Standard Library vendor, found in qtbase/config.tests/atomicfptr"
- CONDITION NOT TEST_atomicfptr
-)
-qt_configure_add_report_entry(
- TYPE ERROR
- MESSAGE "Qt requires poll(), ppoll(), poll_ts() or select() on this platform"
- CONDITION ( UNIX OR INTEGRITY ) AND ( NOT QT_FEATURE_poll_ppoll ) AND ( NOT QT_FEATURE_poll_pollts ) AND ( NOT QT_FEATURE_poll_poll ) AND ( NOT QT_FEATURE_poll_select )
-)
diff --git a/src/corelib/configure.json b/src/corelib/configure.json
deleted file mode 100644
index 4643531135..0000000000
--- a/src/corelib/configure.json
+++ /dev/null
@@ -1,1065 +0,0 @@
-{
- "module": "core",
- "testDir": "../../config.tests",
-
- "commandline": {
- "options": {
- "doubleconversion": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "eventfd": "boolean",
- "glib": "boolean",
- "icu": "boolean",
- "inotify": "boolean",
- "journald": "boolean",
- "libb2": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "mimetype-database": "boolean",
- "pcre": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "posix-ipc": { "type": "boolean", "name": "ipc_posix" },
- "pps": { "type": "boolean", "name": "qqnx_pps" },
- "slog2": "boolean",
- "syslog": "boolean",
- "trace": { "type": "optionalString", "values": [ "etw", "lttng", "no", "yes" ] }
- }
- },
-
- "libraries": {
- "backtrace": {
- "label": "backtrace",
- "test": {
- "main":
- [ "void *buffer[100];",
- "int nptrs = backtrace(buffer, 100);"
- ]
- },
- "headers": "execinfo.h",
- "sources": [ "-lexecinfo" ]
- },
- "doubleconversion": {
- "label": "DoubleConversion",
- "test": {
- "main": "(void) double_conversion::StringToDoubleConverter::NO_FLAGS;"
- },
- "headers": "double-conversion/double-conversion.h",
- "sources": [
- "-ldouble-conversion"
- ]
- },
- "glib": {
- "label": "GLib",
- "test": {
- "head": "typedef struct _GMainContext GMainContext;",
- "main": [
- "g_thread_init(NULL);",
- "(void) g_main_context_default();",
- "(void) g_source_new(0, 0);",
- "g_source_add_poll(NULL, NULL);"
- ]
- },
- "headers": "glib.h",
- "sources": [
- { "type": "pkgConfig", "args": "glib-2.0 gthread-2.0" }
- ]
- },
- "icu": {
- "label": "ICU",
- "test": {
- "main": [
- "UErrorCode status = U_ZERO_ERROR;",
- "UCollator *collator = ucol_open(\"ru_RU\", &status);",
- "if (!U_FAILURE(status))",
- " ucol_close(collator);"
- ]
- },
- "headers": [ "unicode/utypes.h", "unicode/ucol.h", "unicode/ustring.h" ],
- "sources": [
- {
- "builds": {
- "debug": "-lsicuind -lsicuucd -lsicudtd",
- "release": "-lsicuin -lsicuuc -lsicudt"
- },
- "condition": "config.win32 && !features.shared"
- },
- { "libs": "-licuin -licuuc -licudt", "condition": "config.win32 && features.shared" },
- { "libs": "-licui18n -licuuc -licudata", "condition": "!config.win32" }
- ],
- "use": [
- { "lib": "libdl", "condition": "features.dlopen" }
- ]
- },
- "journald": {
- "label": "journald",
- "test": {
- "main": "sd_journal_send(\"PRIORITY=%i\", LOG_INFO, NULL);"
- },
- "headers": [ "systemd/sd-journal.h", "syslog.h" ],
- "sources": [
- { "type": "pkgConfig", "args": "libsystemd" },
- { "type": "pkgConfig", "args": "libsystemd-journal" }
- ]
- },
- "libatomic": {
- "label": "64 bit atomics",
- "test": {
- "tail": [
- "void test(volatile std::atomic<std::int64_t> &a)",
- "{",
- " std::int64_t v = a.load(std::memory_order_acquire);",
- " while (!a.compare_exchange_strong(v, v + 1,",
- " std::memory_order_acq_rel,",
- " std::memory_order_acquire)) {",
- " v = a.exchange(v - 1);",
- " }",
- " a.store(v + 1, std::memory_order_release);",
- "}"
- ],
- "main": [
- "void *ptr = (void*)0xffffffc0; // any random pointer",
- "test(*reinterpret_cast<std::atomic<std::int64_t> *>(ptr));"
- ],
- "qmake": "CONFIG += c++11"
- },
- "headers": [ "atomic", "cstdint" ],
- "sources": [
- "",
- "-latomic"
- ]
- },
- "libb2": {
- "label": "libb2",
- "test": {
- "main": "BLAKE2B_BLOCKBYTES;"
- },
- "headers": "blake2.h",
- "sources": [
- { "type": "pkgConfig", "args": "libb2" },
- "-lb2"
- ]
- },
- "librt": {
- "label": "clock_gettime()",
- "test": {
- "main": "timespec ts; clock_gettime(CLOCK_REALTIME, &ts);"
- },
- "headers": [ "unistd.h", "time.h" ],
- "sources": [
- "",
- "-lrt"
- ]
- },
- "lttng-ust": {
- "label": "lttng-ust",
- "test": {
- "main": "lttng_session_destroy(nullptr);"
- },
- "headers": "lttng/ust-events.h",
- "sources": [
- { "type": "pkgConfig", "args": "lttng-ust" },
- "-llttng-ust"
- ],
- "use": "libdl"
- },
- "pcre2": {
- "label": "PCRE2",
- "test": {
- "head": "#define PCRE2_CODE_UNIT_WIDTH 16",
- "tail": [
- "#if (PCRE2_MAJOR < 10) || ((PCRE2_MAJOR == 10) && (PCRE2_MINOR < 20))",
- "# error This PCRE version is not supported",
- "#endif"
- ]
- },
- "headers": "pcre2.h",
- "sources": [
- { "type": "pkgConfig", "args": "libpcre2-16" },
- "-lpcre2-16"
- ]
- },
- "pps": {
- "label": "PPS",
- "test": {
- "main": [
- "pps_decoder_t decoder;",
- "pps_decoder_initialize(&decoder, NULL);"
- ]
- },
- "headers": "sys/pps.h",
- "sources": [
- "-lpps"
- ]
- },
- "slog2": {
- "label": "slog2",
- "test": {
- "main": "slog2_set_default_buffer((slog2_buffer_t)-1);"
- },
- "export": "",
- "headers": "sys/slog2.h",
- "sources": [
- "-lslog2"
- ]
- }
- },
-
- "tests": {
- "atomicfptr": {
- "label": "working std::atomic for function pointers",
- "type": "compile",
- "test": {
- "include": "atomic",
- "tail": [
- "typedef void (*fptr)(int);",
- "typedef std::atomic<fptr> atomicfptr;",
- "void testfunction(int) { }",
- "void test(volatile atomicfptr &a)",
- "{",
- " fptr v = a.load(std::memory_order_acquire);",
- " while (!a.compare_exchange_strong(v, &testfunction,",
- " std::memory_order_acq_rel,",
- " std::memory_order_acquire)) {",
- " v = a.exchange(&testfunction);",
- " }",
- " a.store(&testfunction, std::memory_order_release);",
- "}"
- ],
- "main": [
- "atomicfptr fptr(testfunction);",
- "test(fptr);"
- ],
- "qmake": "CONFIG += c++11"
- }
- },
- "clock-monotonic": {
- "label": "POSIX monotonic clock",
- "type": "compile",
- "test": {
- "include": [ "unistd.h", "time.h" ],
- "main": [
- "#if defined(_POSIX_MONOTONIC_CLOCK) && (_POSIX_MONOTONIC_CLOCK-0 >= 0)",
- "timespec ts;",
- "clock_gettime(CLOCK_MONOTONIC, &ts);",
- "#else",
- "# error Feature _POSIX_MONOTONIC_CLOCK not available",
- "#endif"
- ]
- },
- "use": "librt"
- },
- "cloexec": {
- "label": "O_CLOEXEC",
- "type": "compile",
- "test": {
- "head": "#define _GNU_SOURCE 1",
- "include": [ "sys/types.h", "sys/socket.h", "fcntl.h", "unistd.h" ],
- "main": [
- "int pipes[2];",
- "(void) pipe2(pipes, O_CLOEXEC | O_NONBLOCK);",
- "(void) fcntl(0, F_DUPFD_CLOEXEC, 0);",
- "(void) dup3(0, 3, O_CLOEXEC);",
- "#if defined(__NetBSD__)",
- "(void) paccept(0, 0, 0, NULL, SOCK_CLOEXEC | SOCK_NONBLOCK);",
- "#else",
- "(void) accept4(0, 0, 0, SOCK_CLOEXEC | SOCK_NONBLOCK);",
- "#endif"
- ]
- }
- },
- "cxx11_future": {
- "label": "C++11 <future>",
- "type": "compile",
- "test": {
- "include": "future",
- "main": [
- "std::future<int> f = std::async([]() { return 42; });",
- "(void)f.get();"
- ],
- "qmake": "unix:!android:LIBS += -lpthread"
- }
- },
- "cxx11_random": {
- "label": "C++11 <random>",
- "type": "compile",
- "test": {
- "include": "random",
- "main": "std::mt19937 mt(0);"
- }
- },
- "cxx17_filesystem": {
- "label": "C++17 <filesystem>",
- "type": "compile",
- "test": {
- "include": "filesystem",
- "main": [
- "std::filesystem::copy(",
- " std::filesystem::path(\"./file\"),",
- " std::filesystem::path(\"./other\"));"
- ],
- "qmake": "CONFIG += c++17"
- }
- },
- "eventfd": {
- "label": "eventfd",
- "type": "compile",
- "test": {
- "include": "sys/eventfd.h",
- "main": [
- "eventfd_t value;",
- "int fd = eventfd(0, EFD_CLOEXEC);",
- "eventfd_read(fd, &value);",
- "eventfd_write(fd, value);"
- ]
- }
- },
- "futimens": {
- "label": "futimens()",
- "type": "compile",
- "test": {
- "include": "sys/stat.h",
- "main": "futimens(-1, 0);",
- "qmake": [
- "# Block futimens() on Apple platforms unless it's available on ALL",
- "# deployment targets. This simplifies the logic at the call site",
- "# dramatically, as it isn't strictly needed compared to futimes().",
- "darwin: QMAKE_CXXFLAGS += -Werror=unguarded-availability -Werror=unguarded-availability-new",
- "CONFIG += warn_on"
- ]
- }
- },
- "futimes": {
- "label": "futimes()",
- "type": "compile",
- "test": {
- "include": "sys/time.h",
- "main": "futimes(-1, 0);"
- }
- },
- "getauxval": {
- "label": "getauxval()",
- "type": "compile",
- "test": {
- "include": "sys/auxv.h",
- "main": "(void) getauxval(AT_NULL);"
- }
- },
- "getentropy": {
- "label": "getentropy()",
- "type": "compile",
- "test": {
- "include": "unistd.h",
- "main": [
- "char buf[32];",
- "(void) getentropy(buf, sizeof(buf));"
- ]
- }
- },
- "glibc": {
- "label": "GNU libc",
- "type": "compile",
- "test": {
- "include": "stdlib.h",
- "main": [
- "return __GLIBC__;"
- ]
- }
- },
- "inotify": {
- "label": "inotify",
- "type": "compile",
- "test": {
- "include": "sys/inotify.h",
- "main": [
- "inotify_init();",
- "inotify_add_watch(0, \"foobar\", IN_ACCESS);",
- "inotify_rm_watch(0, 1);"
- ]
- }
- },
- "ipc_sysv": {
- "label": "SysV IPC",
- "type": "compile",
- "test": {
- "include": [ "sys/types.h", "sys/ipc.h", "sys/sem.h", "sys/shm.h", "fcntl.h" ],
- "main": [
- "key_t unix_key = ftok(\"test\", 'Q');",
- "semctl(semget(unix_key, 1, 0666 | IPC_CREAT | IPC_EXCL), 0, IPC_RMID, 0);",
- "shmget(unix_key, 0, 0666 | IPC_CREAT | IPC_EXCL);",
- "shmctl(0, 0, (struct shmid_ds *)(0));"
- ]
- }
- },
- "ipc_posix": {
- "label": "POSIX IPC",
- "type": "compile",
- "test": {
- "include": [ "sys/types.h", "sys/mman.h", "semaphore.h", "fcntl.h" ],
- "main": [
- "sem_close(sem_open(\"test\", O_CREAT | O_EXCL, 0666, 0));",
- "shm_open(\"test\", O_RDWR | O_CREAT | O_EXCL, 0666);",
- "shm_unlink(\"test\");"
- ],
- "qmake": "linux: LIBS += -lpthread -lrt"
- }
- },
- "linkat": {
- "label": "linkat()",
- "type": "compile",
- "test": {
- "head": "#define _ATFILE_SOURCE 1",
- "include": [ "fcntl.h", "unistd.h" ],
- "main": "linkat(AT_FDCWD, \"foo\", AT_FDCWD, \"bar\", AT_SYMLINK_FOLLOW);"
- }
- },
- "ppoll": {
- "label": "ppoll()",
- "type": "compile",
- "test": {
- "include": [ "signal.h", "poll.h" ],
- "main": [
- "struct pollfd pfd;",
- "struct timespec ts;",
- "sigset_t sig;",
- "ppoll(&pfd, 1, &ts, &sig);"
- ]
- }
- },
- "pollts": {
- "label": "pollts()",
- "type": "compile",
- "test": {
- "include": [ "poll.h", "signal.h", "time.h" ],
- "main": [
- "struct pollfd pfd;",
- "struct timespec ts;",
- "sigset_t sig;",
- "pollts(&pfd, 1, &ts, &sig);"
- ]
- }
- },
- "poll": {
- "label": "poll()",
- "type": "compile",
- "test": {
- "include": "poll.h",
- "main": [
- "struct pollfd pfd;",
- "poll(&pfd, 1, 0);"
- ]
- }
- },
- "renameat2": {
- "label": "renameat2()",
- "type": "compile",
- "test": {
- "head": "#define _ATFILE_SOURCE 1",
- "include": [ "fcntl.h", "stdio.h" ],
- "main": "renameat2(AT_FDCWD, argv[1], AT_FDCWD, argv[2], RENAME_NOREPLACE | RENAME_WHITEOUT);"
- }
- },
- "statx": {
- "label": "statx() in libc",
- "type": "compile",
- "test": {
- "head": "#define _ATFILE_SOURCE 1",
- "include": [ "sys/types.h", "sys/stat.h", "unistd.h", "fcntl.h" ],
- "main": [
- "struct statx statxbuf;",
- "unsigned int mask = STATX_BASIC_STATS;",
- "return statx(AT_FDCWD, \"\", AT_STATX_SYNC_AS_STAT, mask, &statxbuf);"
- ]
- }
- },
- "syslog": {
- "label": "syslog",
- "type": "compile",
- "test": {
- "include": "syslog.h",
- "main": [
- "openlog(\"qt\", 0, LOG_USER);",
- "syslog(LOG_INFO, \"configure\");",
- "closelog();"
- ]
- }
- },
- "xlocalescanprint": {
- "label": "xlocale.h (or equivalents)",
- "type": "compile",
- "test": {
- "files": {
- "qglobal.h": [
- "#ifndef QGLOBAL_H",
- "#define QGLOBAL_H",
- "#endif"
- ]
- },
- "tail": [
- "#define QT_BEGIN_NAMESPACE",
- "#define QT_END_NAMESPACE",
- "",
- "#ifdef _MSVC_VER",
- "#define Q_CC_MSVC _MSVC_VER",
- "#endif",
- "",
- "#define QT_NO_DOUBLECONVERSION",
- "",
- "#include QDSP_P_H"
- ],
- "main": [
- "#ifdef _MSVC_VER",
- "_locale_t invalidLocale = NULL;",
- "#else",
- "locale_t invalidLocale = NULL;",
- "#endif",
- "double a = 3.4;",
- "qDoubleSnprintf(argv[0], 1, invalidLocale, \"invalid format\", a);",
- "qDoubleSscanf(argv[0], invalidLocale, \"invalid format\", &a, &argc);"
- ],
- "qmake": "DEFINES += QDSP_P_H=$$shell_quote(\\\"@PWD@/text/qdoublescanprint_p.h\\\")"
- }
- }
- },
-
- "features": {
- "clock-gettime": {
- "label": "clock_gettime()",
- "condition": "config.unix && libs.librt",
- "output": [ "privateFeature" ]
- },
- "clock-monotonic": {
- "label": "POSIX monotonic clock",
- "condition": "features.clock-gettime && tests.clock-monotonic",
- "output": [ "feature" ]
- },
- "doubleconversion": {
- "label": "DoubleConversion",
- "output": [ "privateFeature", "feature" ]
- },
- "system-doubleconversion": {
- "label": " Using system DoubleConversion",
- "enable": "input.doubleconversion == 'system'",
- "disable": "input.doubleconversion == 'qt'",
- "condition": "features.doubleconversion && libs.doubleconversion",
- "output": [ "privateFeature" ]
- },
- "cxx11_future": {
- "label": "C++11 <future>",
- "condition": "tests.cxx11_future",
- "output": [ "publicFeature" ]
- },
- "cxx17_filesystem": {
- "label": "C++17 <filesystem>",
- "condition": "tests.cxx17_filesystem",
- "output": [
- "publicFeature"
- ]
- },
- "eventfd": {
- "label": "eventfd",
- "condition": "!config.wasm && tests.eventfd",
- "output": [ "feature" ]
- },
- "futimens": {
- "label": "futimens()",
- "condition": "!config.win32 && tests.futimens",
- "output": [ "privateFeature" ]
- },
- "futimes": {
- "label": "futimes()",
- "condition": "!config.win32 && !features.futimens && tests.futimes",
- "output": [ "privateFeature" ]
- },
- "getauxval": {
- "label": "getauxval()",
- "condition": "config.linux && tests.getauxval",
- "output": [ "privateFeature" ]
- },
- "getentropy": {
- "label": "getentropy()",
- "condition": "config.unix && tests.getentropy",
- "output": [ "privateFeature" ]
- },
- "glib": {
- "label": "GLib",
- "autoDetect": "!config.win32",
- "condition": "libs.glib",
- "output": [ "privateFeature", "feature" ]
- },
- "glibc": {
- "label": "GNU libc",
- "autoDetect": "config.linux",
- "condition": "tests.glibc",
- "output": [ "privateFeature" ]
- },
- "icu": {
- "label": "ICU",
- "autoDetect": "!config.win32",
- "condition": "libs.icu",
- "output": [ "privateFeature" ]
- },
- "inotify": {
- "label": "inotify",
- "condition": "tests.inotify",
- "output": [ "privateFeature", "feature" ]
- },
- "ipc_posix": {
- "label": "Using POSIX IPC",
- "autoDetect": "!config.win32",
- "condition": "!tests.ipc_sysv && tests.ipc_posix",
- "output": [ { "type": "define", "name": "QT_POSIX_IPC" } ]
- },
- "journald": {
- "label": "journald",
- "autoDetect": false,
- "condition": "libs.journald",
- "output": [ "privateFeature" ]
- },
- "system-libb2": {
- "label": "Using system libb2",
- "comment": "Used by QCryptographicHash for the BLAKE2 hashing algorithms",
- "disable": "input.libb2 == 'no' || input.libb2 == 'qt'",
- "enable": "input.libb2 == 'system'",
- "condition": "libs.libb2",
- "output": [ "privateFeature" ]
- },
- "linkat": {
- "label": "linkat()",
- "comment": "Currently only used by QTemporaryFile; linkat() exists on Android, but hardlink creation fails due to security rules",
- "autoDetect": "config.linux && !config.android",
- "condition": "tests.linkat",
- "output": [ "privateFeature" ]
- },
- "std-atomic64": {
- "label": "64 bit atomic operations",
- "condition": "libs.libatomic",
- "output": [ "publicFeature" ]
- },
- "mimetype": {
- "label": "Mimetype handling",
- "purpose": "Provides MIME type handling.",
- "section": "Utilities",
- "output": [ "publicFeature", "feature" ]
- },
- "mimetype-database": {
- "label": "Built-in copy of the MIME database",
- "condition": "features.mimetype",
- "output": [ "privateFeature" ]
- },
- "pcre2": {
- "label": "PCRE2",
- "disable": "input.pcre == 'no'",
- "enable": "input.pcre == 'qt' || features.system-pcre2",
- "output": [ "privateConfig" ]
- },
- "system-pcre2": {
- "label": " Using system PCRE2",
- "disable": "input.pcre == 'no' || input.pcre == 'qt'",
- "enable": "input.pcre == 'system'",
- "condition": "libs.pcre2",
- "output": [ "privateFeature" ]
- },
- "poll_ppoll": {
- "label": "Native ppoll()",
- "emitIf": "!config.win32",
- "condition": "!config.wasm && tests.ppoll",
- "output": [ "privateFeature" ]
- },
- "poll_pollts": {
- "label": "Native pollts()",
- "emitIf": "!config.win32",
- "condition": "!features.poll_ppoll && tests.pollts",
- "output": [ "privateFeature" ]
- },
- "poll_poll": {
- "label": "Native poll()",
- "emitIf": "!config.win32",
- "condition": "!features.poll_ppoll && !features.poll_pollts && tests.poll",
- "output": [ "privateFeature" ]
- },
- "poll_select": {
- "label": "Emulated poll()",
- "emitIf": "!config.win32",
- "condition": "!features.poll_ppoll && !features.poll_pollts && !features.poll_poll",
- "output": [
- "privateFeature",
- { "type": "define", "name": "QT_NO_NATIVE_POLL" }
- ]
- },
- "qqnx_pps": {
- "label": "PPS",
- "emitIf": "config.qnx",
- "condition": "libs.pps",
- "output": [ "privateFeature" ]
- },
- "renameat2": {
- "label": "renameat2()",
- "condition": "config.linux && tests.renameat2",
- "output": [ "privateFeature" ]
- },
- "slog2": {
- "label": "slog2",
- "condition": "libs.slog2",
- "output": [ "privateFeature" ]
- },
- "statx": {
- "label": "statx() in libc",
- "condition": "config.linux && tests.statx",
- "output": [ "privateFeature" ]
- },
- "syslog": {
- "label": "syslog",
- "autoDetect": false,
- "condition": "tests.syslog",
- "output": [ "privateFeature" ]
- },
- "threadsafe-cloexec": {
- "label": "Threadsafe pipe creation",
- "condition": "tests.cloexec",
- "output": [
- "publicQtConfig",
- { "type": "define", "name": "QT_THREADSAFE_CLOEXEC", "value": 1 }
- ]
- },
- "properties": {
- "label": "Properties",
- "purpose": "Supports scripting Qt-based applications.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "regularexpression": {
- "label": "QRegularExpression",
- "purpose": "Provides an API to Perl-compatible regular expressions.",
- "section": "Kernel",
- "condition": "features.system-pcre2 || features.pcre2",
- "output": [ "publicFeature", "feature" ]
- },
- "backtrace": {
- "label": "backtrace",
- "condition": "config.unix && features.regularexpression && libs.backtrace",
- "output": [ "privateFeature" ]
- },
- "sharedmemory": {
- "label": "QSharedMemory",
- "purpose": "Provides access to a shared memory segment.",
- "section": "Kernel",
- "condition": [
- "config.android || config.win32 || (!config.vxworks && (tests.ipc_sysv || tests.ipc_posix))"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "shortcut": {
- "label": "QShortcut",
- "purpose": "Provides keyboard accelerators and shortcuts.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "systemsemaphore": {
- "label": "QSystemSemaphore",
- "purpose": "Provides a general counting system semaphore.",
- "section": "Kernel",
- "condition": [
- "!config.integrity && !config.vxworks && !config.rtems",
- "config.android || config.win32 || tests.ipc_sysv || tests.ipc_posix"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "xmlstream": {
- "label": "XML Streaming APIs",
- "purpose": "Provides a simple streaming API for XML.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "xmlstreamreader": {
- "label": "QXmlStreamReader",
- "purpose": "Provides a well-formed XML parser with a simple streaming API.",
- "section": "Kernel",
- "condition": "features.xmlstream",
- "output": [ "publicFeature", "feature" ]
- },
- "xmlstreamwriter": {
- "label": "QXmlStreamWriter",
- "purpose": "Provides a XML writer with a simple streaming API.",
- "section": "Kernel",
- "condition": "features.xmlstream",
- "output": [ "publicFeature", "feature" ]
- },
- "textdate": {
- "label": "Text Date",
- "purpose": "Supports month and day names in dates.",
- "section": "Data structures",
- "output": [ "publicFeature", "feature" ]
- },
- "datestring": {
- "label": "QDate/QTime/QDateTime",
- "purpose": "Provides conversion between dates and strings.",
- "section": "Data structures",
- "condition": "features.textdate",
- "output": [ "publicFeature", "feature" ]
- },
- "process": {
- "label": "QProcess",
- "purpose": "Supports external process invocation.",
- "section": "File I/O",
- "condition": "features.processenvironment && (features.thread || !config.unix) && !config.uikit && !config.integrity && !config.vxworks && !config.rtems",
- "output": [ "publicFeature", "feature" ]
- },
- "processenvironment": {
- "label": "QProcessEnvironment",
- "purpose": "Provides a higher-level abstraction of environment variables.",
- "section": "File I/O",
- "condition": "!config.integrity && !config.rtems",
- "output": [ "publicFeature" ]
- },
- "temporaryfile": {
- "label": "QTemporaryFile",
- "purpose": "Provides an I/O device that operates on temporary files.",
- "section": "File I/O",
- "output": [ "publicFeature", "feature" ]
- },
- "library": {
- "label": "QLibrary",
- "purpose": "Provides a wrapper for dynamically loaded libraries.",
- "section": "File I/O",
- "condition": "config.win32 || config.hpux || (!config.nacl && features.dlopen)",
- "output": [ "publicFeature", "feature" ]
- },
- "settings": {
- "label": "QSettings",
- "purpose": "Provides persistent application settings.",
- "section": "File I/O",
- "output": [ "publicFeature", "feature" ]
- },
- "filesystemwatcher": {
- "label": "QFileSystemWatcher",
- "purpose": "Provides an interface for monitoring files and directories for modifications.",
- "section": "File I/O",
- "output": [ "publicFeature", "feature" ]
- },
- "filesystemiterator": {
- "label": "QFileSystemIterator",
- "purpose": "Provides fast file system iteration.",
- "section": "File I/O",
- "output": [ "publicFeature", "feature" ]
- },
- "itemmodel": {
- "label": "Qt Item Model",
- "purpose": "Provides the item model for item views",
- "section": "ItemViews",
- "output": [ "publicFeature", "feature" ]
- },
- "proxymodel": {
- "label": "QAbstractProxyModel",
- "purpose": "Supports processing of data passed between another model and a view.",
- "section": "ItemViews",
- "condition": "features.itemmodel",
- "output": [ "publicFeature", "feature" ]
- },
- "sortfilterproxymodel": {
- "label": "QSortFilterProxyModel",
- "purpose": "Supports sorting and filtering of data passed between another model and a view.",
- "section": "ItemViews",
- "condition": "features.proxymodel && features.regularexpression",
- "output": [ "publicFeature", "feature" ]
- },
- "identityproxymodel": {
- "label": "QIdentityProxyModel",
- "purpose": "Supports proxying a source model unmodified.",
- "section": "ItemViews",
- "condition": "features.proxymodel",
- "output": [ "publicFeature", "feature" ]
- },
- "transposeproxymodel": {
- "label": "QTransposeProxyModel",
- "purpose": "Provides a proxy to swap rows and columns of a model.",
- "section": "ItemViews",
- "condition": "features.proxymodel",
- "output": [ "publicFeature", "feature" ]
- },
- "concatenatetablesproxymodel": {
- "label": "QConcatenateTablesProxyModel",
- "purpose": "Supports concatenating source models.",
- "section": "ItemViews",
- "condition": "features.proxymodel",
- "output": [ "publicFeature", "feature" ]
- },
- "stringlistmodel": {
- "label": "QStringListModel",
- "purpose": "Provides a model that supplies strings to views.",
- "section": "ItemViews",
- "condition": "features.itemmodel",
- "output": [ "publicFeature", "feature" ]
- },
- "translation": {
- "label": "Translation",
- "purpose": "Supports translations using QObject::tr().",
- "section": "Internationalization",
- "output": [ "publicFeature", "feature" ]
- },
- "easingcurve": {
- "label": "Easing curve",
- "purpose": "Provides easing curve.",
- "section": "Utilities",
- "output": [ "publicFeature" ]
- },
- "animation": {
- "label": "Animation",
- "purpose": "Provides a framework for animations.",
- "section": "Utilities",
- "condition": "features.properties && features.easingcurve",
- "output": [ "publicFeature", "feature" ]
- },
- "gestures": {
- "label": "Gesture",
- "purpose": "Provides a framework for gestures.",
- "section": "Utilities",
- "output": [ "publicFeature", "feature" ]
- },
- "sha3-fast": {
- "label": "Speed optimized SHA3",
- "purpose": "Optimizes SHA3 for speed instead of size.",
- "section": "Utilities",
- "output": [ "privateFeature" ]
- },
- "jalalicalendar": {
- "label": "QJalaliCalendar",
- "purpose": "Support the Jalali (Persian) calendar",
- "section": "Utilities",
- "output": [ "publicFeature" ]
- },
- "hijricalendar": {
- "label": "QHijriCalendar",
- "purpose": "Generic basis for Islamic calendars, providing shared locale data",
- "section": "Utilities",
- "output": [ "privateFeature" ]
- },
- "islamiccivilcalendar": {
- "label": "QIslamicCivilCalendar",
- "purpose": "Support the Islamic Civil calendar",
- "section": "Utilities",
- "condition": "features.hijricalendar",
- "output": [ "publicFeature" ]
- },
- "timezone": {
- "label": "QTimeZone",
- "purpose": "Provides support for time-zone handling.",
- "section": "Utilities",
- "output": [ "publicFeature" ]
- },
- "datetimeparser": {
- "label": "QDateTimeParser",
- "purpose": "Provides support for parsing date-time texts.",
- "section": "Utilities",
- "condition": "features.datestring",
- "output": [ "privateFeature" ]
- },
- "commandlineparser": {
- "label": "QCommandlineParser",
- "purpose": "Provides support for command line parsing.",
- "section": "Utilities",
- "output": [ "publicFeature" ]
- },
- "lttng": {
- "label": "LTTNG",
- "autoDetect": false,
- "enable": "input.trace == 'lttng' || (input.trace =='yes' && config.linux)",
- "disable": "input.trace == 'etw' || input.trace =='no'",
- "condition": "config.linux && libs.lttng-ust",
- "output": [ "privateFeature" ]
- },
- "etw": {
- "label": "ETW",
- "autoDetect": false,
- "enable": "input.trace == 'etw' || (input.trace == 'yes' && config.win32)",
- "disable": "input.trace == 'lttng' || input.trace == 'no'",
- "condition": "config.win32",
- "output": [ "privateFeature" ]
- },
- "forkfd_pidfd": {
- "label": "CLONE_PIDFD support in forkfd",
- "condition": "config.linux",
- "output": [ "privateFeature" ]
- },
- "cborstreamreader": {
- "label": "CBOR stream reading",
- "purpose": "Provides support for reading the CBOR binary format.
-
-Note that this is required for plugin loading. Qt GUI needs QPA plugins for basic operation.",
- "section": "Utilities",
- "output": [ "publicFeature" ]
- },
- "cborstreamwriter": {
- "label": "CBOR stream writing",
- "purpose": "Provides support for writing the CBOR binary format.",
- "section": "Utilities",
- "output": [ "publicFeature" ]
- }
- },
-
- "report": [
- {
- "type": "note",
- "condition": "features.journald || features.syslog || (config.qnx && features.slog2)",
- "message": "journald, syslog or slog2 integration is enabled. If your users intend to develop applications against this build, ensure that the IDEs they use either set QT_FORCE_STDERR_LOGGING to 1 or are able to read the logged output from journald, syslog or slog2."
- },
- {
- "type": "error",
- "condition": "!tests.cxx11_random",
- "message": "C++11 <random> is required and is missing or failed to compile."
- },
- {
- "type": "error",
- "condition": "input.doubleconversion == 'no' && !tests.xlocalescanprint",
- "message": "Your C library does not provide sscanf_l or snprintf_l. You need to use libdouble-conversion for double/string conversion."
- },
- {
- "type": "error",
- "condition": "!tests.atomicfptr",
- "message": "detected a std::atomic implementation that fails for function pointers. Please apply the patch corresponding to your Standard Library vendor, found in qtbase/config.tests/atomicfptr"
- },
- {
- "type": "error",
- "condition": [
- "config.unix || config.integrity",
- "!features.poll_ppoll",
- "!features.poll_pollts",
- "!features.poll_poll",
- "!features.poll_select"
- ],
- "message": "Qt requires poll(), ppoll(), poll_ts() or select() on this platform"
- }
- ],
-
- "summary": [
- {
- "section": "Qt Core",
- "entries": [
- "backtrace",
- "doubleconversion",
- "system-doubleconversion",
- "glib",
- "icu",
- "system-libb2",
- "mimetype-database",
- {
- "message": "Tracing backend",
- "type": "firstAvailableFeature",
- "args": "etw lttng"
- },
- {
- "section": "Logging backends",
- "entries": [
- "journald", "syslog", "slog2"
- ]
- },
- {
- "type": "feature",
- "args": "qqnx_pps",
- "condition": "config.qnx"
- },
- "pcre2",
- "system-pcre2",
- {
- "type": "feature",
- "args": "forkfd_pidfd",
- "condition": "config.linux"
- }
- ]
- }
- ]
-}
diff --git a/src/gui/.prev_configure.cmake b/src/gui/.prev_configure.cmake
deleted file mode 100644
index 85d9778056..0000000000
--- a/src/gui/.prev_configure.cmake
+++ /dev/null
@@ -1,1225 +0,0 @@
-
-
-#### Inputs
-
-# input freetype
-set(INPUT_freetype "undefined" CACHE STRING "")
-set_property(CACHE INPUT_freetype PROPERTY STRINGS undefined no qt system)
-
-# input harfbuzz
-set(INPUT_harfbuzz "undefined" CACHE STRING "")
-set_property(CACHE INPUT_harfbuzz PROPERTY STRINGS undefined no qt system)
-
-# input libjpeg
-set(INPUT_libjpeg "undefined" CACHE STRING "")
-set_property(CACHE INPUT_libjpeg PROPERTY STRINGS undefined no qt system)
-
-# input libmd4c
-set(INPUT_libmd4c "undefined" CACHE STRING "")
-set_property(CACHE INPUT_libmd4c PROPERTY STRINGS undefined no qt system)
-
-# input libpng
-set(INPUT_libpng "undefined" CACHE STRING "")
-set_property(CACHE INPUT_libpng PROPERTY STRINGS undefined no qt system)
-
-
-
-#### Libraries
-
-qt_find_package(ATSPI2 PROVIDED_TARGETS PkgConfig::ATSPI2 MODULE_NAME gui QMAKE_LIB atspi)
-qt_find_package(DirectFB PROVIDED_TARGETS PkgConfig::DirectFB MODULE_NAME gui QMAKE_LIB directfb)
-qt_find_package(Libdrm PROVIDED_TARGETS Libdrm::Libdrm MODULE_NAME gui QMAKE_LIB drm)
-qt_find_package(EGL PROVIDED_TARGETS EGL::EGL MODULE_NAME gui QMAKE_LIB egl)
-qt_find_package(WrapSystemFreetype 2.2.0 PROVIDED_TARGETS WrapSystemFreetype::WrapSystemFreetype MODULE_NAME gui QMAKE_LIB freetype)
-set_package_properties(WrapFreetype PROPERTIES TYPE REQUIRED)
-if(QT_FEATURE_system_zlib)
- qt_add_qmake_lib_dependency(freetype zlib)
-endif()
-qt_find_package(Fontconfig PROVIDED_TARGETS Fontconfig::Fontconfig MODULE_NAME gui QMAKE_LIB fontconfig)
-qt_add_qmake_lib_dependency(fontconfig freetype)
-qt_find_package(gbm PROVIDED_TARGETS gbm::gbm MODULE_NAME gui QMAKE_LIB gbm)
-qt_find_package(WrapSystemHarfbuzz 2.6.0 PROVIDED_TARGETS WrapSystemHarfbuzz::WrapSystemHarfbuzz MODULE_NAME gui QMAKE_LIB harfbuzz)
-qt_find_package(Libinput PROVIDED_TARGETS Libinput::Libinput MODULE_NAME gui QMAKE_LIB libinput)
-qt_find_package(JPEG PROVIDED_TARGETS JPEG::JPEG MODULE_NAME gui QMAKE_LIB libjpeg)
-qt_find_package(WrapSystemPNG PROVIDED_TARGETS WrapSystemPNG::WrapSystemPNG MODULE_NAME gui QMAKE_LIB libpng)
-if(QT_FEATURE_system_zlib)
- qt_add_qmake_lib_dependency(libpng zlib)
-endif()
-qt_find_package(Mtdev PROVIDED_TARGETS PkgConfig::Mtdev MODULE_NAME gui QMAKE_LIB mtdev)
-qt_find_package(WrapOpenGL PROVIDED_TARGETS WrapOpenGL::WrapOpenGL MODULE_NAME gui QMAKE_LIB opengl)
-qt_find_package(GLESv2 PROVIDED_TARGETS GLESv2::GLESv2 MODULE_NAME gui QMAKE_LIB opengl_es2)
-qt_find_package(Tslib PROVIDED_TARGETS PkgConfig::Tslib MODULE_NAME gui QMAKE_LIB tslib)
-qt_find_package(Vulkan PROVIDED_TARGETS Vulkan::Vulkan MODULE_NAME gui QMAKE_LIB vulkan)
-if((LINUX) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(Wayland PROVIDED_TARGETS Wayland::Server MODULE_NAME gui QMAKE_LIB wayland_server)
-endif()
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(X11 PROVIDED_TARGETS X11::X11 MODULE_NAME gui QMAKE_LIB xlib)
-endif()
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(X11 PROVIDED_TARGETS ${X11_SM_LIB} ${X11_ICE_LIB} MODULE_NAME gui QMAKE_LIB x11sm)
-endif()
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB 1.11 PROVIDED_TARGETS XCB::XCB MODULE_NAME gui QMAKE_LIB xcb)
-endif()
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB 0.3.9 COMPONENTS ICCCM PROVIDED_TARGETS XCB::ICCCM MODULE_NAME gui QMAKE_LIB xcb_icccm)
-endif()
-qt_add_qmake_lib_dependency(xcb_icccm xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB 0.3.9 COMPONENTS IMAGE PROVIDED_TARGETS XCB::IMAGE MODULE_NAME gui QMAKE_LIB xcb_image)
-endif()
-qt_add_qmake_lib_dependency(xcb_image xcb_shm xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB 0.3.9 COMPONENTS KEYSYMS PROVIDED_TARGETS XCB::KEYSYMS MODULE_NAME gui QMAKE_LIB xcb_keysyms)
-endif()
-qt_add_qmake_lib_dependency(xcb_keysyms xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB 0.3.9 COMPONENTS RENDERUTIL PROVIDED_TARGETS XCB::RENDERUTIL MODULE_NAME gui QMAKE_LIB xcb_renderutil)
-endif()
-qt_add_qmake_lib_dependency(xcb_renderutil xcb xcb_render)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS RANDR PROVIDED_TARGETS XCB::RANDR MODULE_NAME gui QMAKE_LIB xcb_randr)
-endif()
-qt_add_qmake_lib_dependency(xcb_randr xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS SHAPE PROVIDED_TARGETS XCB::SHAPE MODULE_NAME gui QMAKE_LIB xcb_shape)
-endif()
-qt_add_qmake_lib_dependency(xcb_shape xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS SHM PROVIDED_TARGETS XCB::SHM MODULE_NAME gui QMAKE_LIB xcb_shm)
-endif()
-qt_add_qmake_lib_dependency(xcb_shm xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS SYNC PROVIDED_TARGETS XCB::SYNC MODULE_NAME gui QMAKE_LIB xcb_sync)
-endif()
-qt_add_qmake_lib_dependency(xcb_sync xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS XFIXES PROVIDED_TARGETS XCB::XFIXES MODULE_NAME gui QMAKE_LIB xcb_xfixes)
-endif()
-qt_add_qmake_lib_dependency(xcb_xfixes xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(X11_XCB PROVIDED_TARGETS X11::XCB MODULE_NAME gui QMAKE_LIB xcb_xlib)
-endif()
-qt_add_qmake_lib_dependency(xcb_xlib xcb xlib)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS XKB PROVIDED_TARGETS XCB::XKB MODULE_NAME gui QMAKE_LIB xcb_xkb)
-endif()
-qt_add_qmake_lib_dependency(xcb_xkb xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS RENDER PROVIDED_TARGETS XCB::RENDER MODULE_NAME gui QMAKE_LIB xcb_render)
-endif()
-qt_add_qmake_lib_dependency(xcb_render xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB COMPONENTS GLX PROVIDED_TARGETS XCB::GLX MODULE_NAME gui QMAKE_LIB xcb_glx)
-endif()
-qt_add_qmake_lib_dependency(xcb_glx xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XCB 1.12 COMPONENTS XINPUT PROVIDED_TARGETS XCB::XINPUT MODULE_NAME gui QMAKE_LIB xcb_xinput)
-endif()
-qt_add_qmake_lib_dependency(xcb_xinput xcb)
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XKB 0.5.0 PROVIDED_TARGETS XKB::XKB MODULE_NAME gui QMAKE_LIB xkbcommon)
-endif()
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XKB_COMMON_X11 0.5.0 PROVIDED_TARGETS PkgConfig::XKB_COMMON_X11 MODULE_NAME gui QMAKE_LIB xkbcommon_x11)
-endif()
-if((X11_SUPPORTED) OR QT_FIND_ALL_PACKAGES_ALWAYS)
- qt_find_package(XRender 0.6 PROVIDED_TARGETS PkgConfig::XRender MODULE_NAME gui QMAKE_LIB xrender)
-endif()
-qt_add_qmake_lib_dependency(xrender xlib)
-
-
-#### Tests
-
-# drm_atomic
-qt_config_compile_test(drm_atomic
- LABEL "DRM Atomic API"
- LIBRARIES
- Libdrm::Libdrm
- CODE
-"#include <stdlib.h>
-#include <stdint.h>
-extern \"C\" {
-#include <xf86drmMode.h>
-#include <xf86drm.h>
-}
-
-int main(void)
-{
- /* BEGIN TEST: */
-drmModeAtomicReq *request;
- /* END TEST: */
- return 0;
-}
-")
-
-# egl-x11
-qt_config_compile_test(egl_x11
- LABEL "EGL on X11"
- LIBRARIES
- EGL::EGL
- X11::X11
- CODE
-"// Check if EGL is compatible with X. Some EGL implementations, typically on
-// embedded devices, are not intended to be used together with X. EGL support
-// has to be disabled in plugins like xcb in this case since the native display,
-// window and pixmap types will be different than what an X-based platform
-// plugin would expect.
-#include <EGL/egl.h>
-#include <X11/Xlib.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-Display *dpy = EGL_DEFAULT_DISPLAY;
-EGLNativeDisplayType egldpy = XOpenDisplay(\"\");
-dpy = egldpy;
-EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
-XDestroyWindow(dpy, w);
-XCloseDisplay(dpy);
- /* END TEST: */
- return 0;
-}
-")
-
-# egl-brcm
-qt_config_compile_test(egl_brcm
- LABEL "Broadcom EGL (Raspberry Pi)"
- LIBRARIES
- EGL::EGL
- CODE
-"#include <EGL/egl.h>
-#include <bcm_host.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-vc_dispmanx_display_open(0);
- /* END TEST: */
- return 0;
-}
-"# FIXME: use: unmapped library: bcm_host
-)
-
-# egl-egldevice
-qt_config_compile_test(egl_egldevice
- LABEL "EGLDevice"
- LIBRARIES
- EGL::EGL
- CODE
-"#include <EGL/egl.h>
-#include <EGL/eglext.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-EGLDeviceEXT device = 0;
-EGLStreamKHR stream = 0;
-EGLOutputLayerEXT layer = 0;
-(void) EGL_DRM_CRTC_EXT;
- /* END TEST: */
- return 0;
-}
-")
-
-# egl-mali
-qt_config_compile_test(egl_mali
- LABEL "Mali EGL"
- LIBRARIES
- EGL::EGL
- CODE
-"#include <EGL/fbdev_window.h>
-#include <EGL/egl.h>
-#include <GLES2/gl2.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-fbdev_window *w = 0;
- /* END TEST: */
- return 0;
-}
-")
-
-# egl-mali-2
-qt_config_compile_test(egl_mali_2
- LABEL "Mali 2 EGL"
- LIBRARIES
- EGL::EGL
- CODE
-"#include <EGL/egl.h>
-#include <GLES2/gl2.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-mali_native_window *w = 0;
- /* END TEST: */
- return 0;
-}
-")
-
-# egl-viv
-qt_config_compile_test(egl_viv
- LABEL "i.Mx6 EGL"
- LIBRARIES
- EGL::EGL
- CODE
-"#include <EGL/egl.h>
-#include <EGL/eglvivante.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-#ifdef __INTEGRITY
-fbGetDisplay();
-#else
-// Do not rely on fbGetDisplay(), since the signature has changed over time.
-// Stick to fbGetDisplayByIndex().
-fbGetDisplayByIndex(0);
-#endif
- /* END TEST: */
- return 0;
-}
-"# FIXME: qmake: ['DEFINES += EGL_API_FB=1', '!integrity: DEFINES += LINUX=1']
-)
-
-# egl-openwfd
-qt_config_compile_test(egl_openwfd
- LABEL "OpenWFD EGL"
- LIBRARIES
- EGL::EGL
- CODE
-"#include <wfd.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-wfdEnumerateDevices(nullptr, 0, nullptr);
- /* END TEST: */
- return 0;
-}
-")
-
-# egl-rcar
-qt_config_compile_test(egl_rcar
- LABEL "RCAR EGL"
- LIBRARIES
- EGL::EGL
- GLESv2::GLESv2
- CODE
-"#include <EGL/egl.h>
-extern \"C\" {
-extern unsigned long PVRGrfxServerInit(void);
-}
-
-int main(void)
-{
- /* BEGIN TEST: */
-PVRGrfxServerInit();
- /* END TEST: */
- return 0;
-}
-")
-
-# evdev
-qt_config_compile_test(evdev
- LABEL "evdev"
- CODE
-"#if defined(__FreeBSD__)
-# include <dev/evdev/input.h>
-#else
-# include <linux/input.h>
-# include <linux/kd.h>
-#endif
-enum {
- e1 = ABS_PRESSURE,
- e2 = ABS_X,
- e3 = REL_X,
- e4 = SYN_REPORT,
-};
-
-int main(void)
-{
- /* BEGIN TEST: */
-input_event buf[32];
-(void) buf;
- /* END TEST: */
- return 0;
-}
-")
-
-# integrityfb
-qt_config_compile_test(integrityfb
- LABEL "INTEGRITY framebuffer"
- CODE
-"#include <device/fbdriver.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-FBDriver *driver = 0;
- /* END TEST: */
- return 0;
-}
-")
-
-# linuxfb
-qt_config_compile_test(linuxfb
- LABEL "LinuxFB"
- CODE
-"#include <linux/fb.h>
-#include <sys/kd.h>
-#include <sys/ioctl.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-fb_fix_screeninfo finfo;
-fb_var_screeninfo vinfo;
-int fd = 3;
-ioctl(fd, FBIOGET_FSCREENINFO, &finfo);
-ioctl(fd, FBIOGET_VSCREENINFO, &vinfo);
- /* END TEST: */
- return 0;
-}
-")
-
-# opengles3
-qt_config_compile_test(opengles3
- LABEL "OpenGL ES 3.0"
- LIBRARIES
- GLESv2::GLESv2
- CODE
-"#ifdef __APPLE__
-# include <OpenGLES/ES3/gl.h>
-#else
-# define GL_GLEXT_PROTOTYPES
-# include <GLES3/gl3.h>
-#endif
-
-int main(void)
-{
- /* BEGIN TEST: */
-static GLfloat f[6];
-glGetStringi(GL_EXTENSIONS, 0);
-glReadBuffer(GL_COLOR_ATTACHMENT1);
-glUniformMatrix2x3fv(0, 0, GL_FALSE, f);
-glMapBufferRange(GL_ARRAY_BUFFER, 0, 0, GL_MAP_READ_BIT);
- /* END TEST: */
- return 0;
-}
-")
-
-# opengles31
-qt_config_compile_test(opengles31
- LABEL "OpenGL ES 3.1"
- LIBRARIES
- GLESv2::GLESv2
- CODE
-"#include <GLES3/gl31.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-glDispatchCompute(1, 1, 1);
-glProgramUniform1i(0, 0, 0);
- /* END TEST: */
- return 0;
-}
-")
-
-# opengles32
-qt_config_compile_test(opengles32
- LABEL "OpenGL ES 3.2"
- LIBRARIES
- GLESv2::GLESv2
- CODE
-"#include <GLES3/gl32.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-glFramebufferTexture(GL_TEXTURE_2D, GL_DEPTH_STENCIL_ATTACHMENT, 1, 0);
- /* END TEST: */
- return 0;
-}
-")
-
-# xcb_syslibs
-qt_config_compile_test(xcb_syslibs
- LABEL "XCB (extensions)"
- LIBRARIES
- XCB::ICCCM
- XCB::IMAGE
- XCB::KEYSYMS
- XCB::RANDR
- XCB::RENDER
- XCB::RENDERUTIL
- XCB::SHAPE
- XCB::SHM
- XCB::SYNC
- XCB::XFIXES
- XCB::XKB
- XCB::XCB
- CODE
-"// xkb.h is using a variable called 'explicit', which is a reserved keyword in C++
-#define explicit dont_use_cxx_explicit
-#include <xcb/xcb.h>
-#include <xcb/xcb_image.h>
-#include <xcb/xcb_keysyms.h>
-#include <xcb/randr.h>
-#include <xcb/render.h>
-#include <xcb/shape.h>
-#include <xcb/shm.h>
-#include <xcb/sync.h>
-#include <xcb/xfixes.h>
-#include <xcb/xcb_icccm.h>
-#include <xcb/xcb_renderutil.h>
-#include <xcb/xkb.h>
-#undef explicit
-
-int main(void)
-{
- /* BEGIN TEST: */
-int primaryScreen = 0;
-xcb_connection_t *c = xcb_connect(\"\", &primaryScreen);
-/* RENDER */
-xcb_generic_error_t *error = nullptr;
-xcb_render_query_pict_formats_cookie_t formatsCookie =
- xcb_render_query_pict_formats(c);
-xcb_render_query_pict_formats_reply_t *formatsReply =
- xcb_render_query_pict_formats_reply(c, formatsCookie, &error);
-/* RENDERUTIL: xcb_renderutil.h include won't compile unless version >= 0.3.9 */
-xcb_render_util_find_standard_format(nullptr, XCB_PICT_STANDARD_ARGB_32);
-/* XKB: This takes more arguments in xcb-xkb < 1.11 */
-xcb_xkb_get_kbd_by_name_replies_key_names_value_list_sizeof(nullptr, 0, 0, 0, 0, 0, 0, 0, 0);
- /* END TEST: */
- return 0;
-}
-")
-
-
-
-#### Features
-
-qt_feature("accessibility-atspi-bridge" PUBLIC PRIVATE
- LABEL "ATSPI Bridge"
- CONDITION QT_FEATURE_accessibility AND QT_FEATURE_xcb AND QT_FEATURE_dbus AND ATSPI2_FOUND
-)
-qt_feature_definition("accessibility-atspi-bridge" "QT_NO_ACCESSIBILITY_ATSPI_BRIDGE" NEGATE VALUE "1")
-qt_feature("directfb" PRIVATE
- SECTION "Platform plugins"
- LABEL "DirectFB"
- AUTODETECT OFF
- CONDITION DirectFB_FOUND
-)
-qt_feature("directwrite" PRIVATE
- LABEL "DirectWrite"
- CONDITION libs.dwrite_2 OR FIXME
- EMIT_IF WIN32
-)
-qt_feature("directwrite3" PRIVATE
- LABEL "DirectWrite 3"
- CONDITION QT_FEATURE_directwrite AND libs.dwrite_3 OR FIXME
- EMIT_IF WIN32
-)
-qt_feature("direct2d" PRIVATE
- LABEL "Direct 2D"
- CONDITION WIN32 AND libs.d2d1 OR FIXME
-)
-qt_feature("direct2d1_1" PRIVATE
- LABEL "Direct 2D 1.1"
- CONDITION QT_FEATURE_direct2d AND libs.d2d1_1 OR FIXME
-)
-qt_feature("evdev" PRIVATE
- LABEL "evdev"
- CONDITION QT_FEATURE_thread AND TEST_evdev
-)
-qt_feature("freetype" PUBLIC PRIVATE
- SECTION "Fonts"
- LABEL "FreeType"
- PURPOSE "Supports the FreeType 2 font engine (and its supported font formats)."
-)
-qt_feature_definition("freetype" "QT_NO_FREETYPE" NEGATE VALUE "1")
-qt_feature("system-freetype" PRIVATE
- LABEL " Using system FreeType"
- AUTODETECT NOT MSVC
- CONDITION QT_FEATURE_freetype AND WrapSystemFreetype_FOUND
- ENABLE INPUT_freetype STREQUAL 'system'
- DISABLE INPUT_freetype STREQUAL 'qt'
-)
-qt_feature("fontconfig" PUBLIC PRIVATE
- LABEL "Fontconfig"
- AUTODETECT NOT APPLE
- CONDITION NOT WIN32 AND QT_FEATURE_system_freetype AND FONTCONFIG_FOUND
-)
-qt_feature_definition("fontconfig" "QT_NO_FONTCONFIG" NEGATE VALUE "1")
-qt_feature("gbm"
- LABEL "GBM"
- CONDITION gbm_FOUND
-)
-qt_feature_config("gbm" QMAKE_PUBLIC_QT_CONFIG)
-qt_feature("harfbuzz" PUBLIC PRIVATE
- LABEL "HarfBuzz"
-)
-qt_feature_definition("harfbuzz" "QT_NO_HARFBUZZ" NEGATE VALUE "1")
-qt_feature("system-harfbuzz" PRIVATE
- LABEL " Using system HarfBuzz"
- AUTODETECT NOT APPLE AND NOT WIN32
- CONDITION QT_FEATURE_harfbuzz AND WrapSystemHarfbuzz_FOUND
- ENABLE INPUT_harfbuzz STREQUAL 'system'
- DISABLE INPUT_harfbuzz STREQUAL 'qt'
-)
-qt_feature("qqnx_imf" PRIVATE
- LABEL "IMF"
- CONDITION libs.imf OR FIXME
- EMIT_IF QNX
-)
-qt_feature("integrityfb" PRIVATE
- SECTION "Platform plugins"
- LABEL "INTEGRITY framebuffer"
- CONDITION INTEGRITY AND TEST_integrityfb
-)
-qt_feature("kms" PRIVATE
- LABEL "KMS"
- CONDITION Libdrm_FOUND
-)
-qt_feature_config("kms" QMAKE_PUBLIC_QT_CONFIG)
-qt_feature("drm_atomic" PRIVATE
- LABEL "DRM Atomic API"
- CONDITION Libdrm_FOUND AND TEST_drm_atomic
-)
-qt_feature("libinput" PRIVATE
- LABEL "libinput"
- CONDITION QT_FEATURE_libudev AND Libinput_FOUND
-)
-qt_feature("integrityhid" PRIVATE
- LABEL "INTEGRITY HID"
- CONDITION INTEGRITY AND libs.integrityhid OR FIXME
-)
-qt_feature("libinput-axis-api" PRIVATE
- LABEL "axis API in libinput"
- CONDITION QT_FEATURE_libinput AND ON
-)
-qt_feature("lgmon"
- LABEL "lgmon"
- CONDITION libs.lgmon OR FIXME
- EMIT_IF QNX
-)
-qt_feature_config("lgmon" QMAKE_PRIVATE_CONFIG)
-qt_feature("linuxfb" PRIVATE
- SECTION "Platform plugins"
- LABEL "LinuxFB"
- CONDITION TEST_linuxfb AND QT_FEATURE_regularexpression
-)
-qt_feature("vsp2" PRIVATE
- LABEL "VSP2"
- AUTODETECT OFF
- CONDITION libs.v4l2 OR FIXME
-)
-qt_feature("vnc" PRIVATE
- SECTION "Platform plugins"
- LABEL "VNC"
- CONDITION ( UNIX AND NOT ANDROID AND NOT APPLE AND NOT WASM ) AND ( QT_FEATURE_regularexpression AND QT_FEATURE_network )
-)
-qt_feature("mtdev" PRIVATE
- LABEL "mtdev"
- CONDITION Mtdev_FOUND
-)
-qt_feature("opengles2" PUBLIC
- LABEL "OpenGL ES 2.0"
- CONDITION NOT WIN32 AND NOT WATCHOS AND NOT QT_FEATURE_opengl_desktop AND GLESv2_FOUND
- ENABLE INPUT_opengl STREQUAL 'es2'
- DISABLE INPUT_opengl STREQUAL 'desktop' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no'
-)
-qt_feature_config("opengles2" QMAKE_PUBLIC_QT_CONFIG)
-qt_feature("opengles3" PUBLIC
- LABEL "OpenGL ES 3.0"
- CONDITION QT_FEATURE_opengles2 AND TEST_opengles3
-)
-qt_feature("opengles31" PUBLIC
- LABEL "OpenGL ES 3.1"
- CONDITION QT_FEATURE_opengles3 AND TEST_opengles31
-)
-qt_feature("opengles32" PUBLIC
- LABEL "OpenGL ES 3.2"
- CONDITION QT_FEATURE_opengles31 AND TEST_opengles32
-)
-qt_feature("opengl-desktop"
- LABEL "Desktop OpenGL"
- AUTODETECT NOT WIN32
- CONDITION ( WIN32 AND ( MSVC OR WrapOpenGL_FOUND ) ) OR ( NOT WATCHOS AND NOT WIN32 AND NOT WASM AND WrapOpenGL_FOUND )
- ENABLE INPUT_opengl STREQUAL 'desktop'
- DISABLE INPUT_opengl STREQUAL 'es2' OR INPUT_opengl STREQUAL 'dynamic' OR INPUT_opengl STREQUAL 'no'
-)
-qt_feature("opengl-dynamic"
- LABEL "Dynamic OpenGL"
- CONDITION WIN32
- DISABLE INPUT_opengl STREQUAL 'no' OR INPUT_opengl STREQUAL 'desktop'
-)
-qt_feature("dynamicgl" PUBLIC
- LABEL "Dynamic OpenGL: dynamicgl"
- CONDITION QT_FEATURE_opengl_dynamic
- DISABLE INPUT_opengl STREQUAL 'no' OR INPUT_opengl STREQUAL 'desktop'
-)
-qt_feature_definition("opengl-dynamic" "QT_OPENGL_DYNAMIC")
-qt_feature("opengl" PUBLIC
- LABEL "OpenGL"
- CONDITION QT_FEATURE_opengl_desktop OR QT_FEATURE_opengl_dynamic OR QT_FEATURE_opengles2
-)
-qt_feature_definition("opengl" "QT_NO_OPENGL" NEGATE VALUE "1")
-qt_feature("vkgen" PRIVATE
- LABEL "vkgen"
- CONDITION QT_FEATURE_xmlstreamreader
-)
-qt_feature("vulkan" PUBLIC
- LABEL "Vulkan"
- CONDITION QT_FEATURE_library AND QT_FEATURE_vkgen AND Vulkan_FOUND
-)
-qt_feature("openvg" PUBLIC
- LABEL "OpenVG"
- CONDITION libs.openvg OR FIXME
-)
-qt_feature("egl" PUBLIC
- LABEL "EGL"
- CONDITION ( QT_FEATURE_opengl OR QT_FEATURE_openvg ) AND EGL_FOUND AND ( QT_FEATURE_dlopen OR NOT UNIX OR INTEGRITY )
-)
-qt_feature_definition("egl" "QT_NO_EGL" NEGATE VALUE "1")
-qt_feature("egl_x11" PRIVATE
- LABEL "EGL on X11"
- CONDITION QT_FEATURE_thread AND QT_FEATURE_egl AND TEST_egl_x11
-)
-qt_feature("eglfs" PRIVATE
- SECTION "Platform plugins"
- LABEL "EGLFS"
- CONDITION NOT ANDROID AND NOT APPLE AND NOT WIN32 AND NOT WASM AND QT_FEATURE_egl
-)
-qt_feature("eglfs_brcm" PRIVATE
- LABEL "EGLFS Raspberry Pi"
- CONDITION QT_FEATURE_eglfs AND TEST_egl_brcm
-)
-qt_feature("eglfs_egldevice" PRIVATE
- LABEL "EGLFS EGLDevice"
- CONDITION QT_FEATURE_eglfs AND TEST_egl_egldevice AND QT_FEATURE_kms
-)
-qt_feature("eglfs_gbm" PRIVATE
- LABEL "EGLFS GBM"
- CONDITION QT_FEATURE_eglfs AND gbm_FOUND AND QT_FEATURE_kms
-)
-qt_feature("eglfs_vsp2" PRIVATE
- LABEL "EGLFS VSP2"
- CONDITION QT_FEATURE_eglfs AND gbm_FOUND AND QT_FEATURE_kms AND QT_FEATURE_vsp2
-)
-qt_feature("eglfs_mali" PRIVATE
- LABEL "EGLFS Mali"
- CONDITION QT_FEATURE_eglfs AND ( TEST_egl_mali OR TEST_egl_mali_2 )
-)
-qt_feature("eglfs_viv" PRIVATE
- LABEL "EGLFS i.Mx6"
- CONDITION QT_FEATURE_eglfs AND TEST_egl_viv
-)
-qt_feature("eglfs_rcar" PRIVATE
- LABEL "EGLFS RCAR"
- CONDITION INTEGRITY AND QT_FEATURE_eglfs AND TEST_egl_rcar
-)
-qt_feature("eglfs_viv_wl" PRIVATE
- LABEL "EGLFS i.Mx6 Wayland"
- CONDITION QT_FEATURE_eglfs_viv AND Wayland_FOUND
-)
-qt_feature("eglfs_openwfd" PRIVATE
- LABEL "EGLFS OpenWFD"
- CONDITION INTEGRITY AND QT_FEATURE_eglfs AND TEST_egl_openwfd
-)
-qt_feature("eglfs_x11" PRIVATE
- LABEL "EGLFS X11"
- CONDITION QT_FEATURE_eglfs AND QT_FEATURE_xcb_xlib AND QT_FEATURE_egl_x11
-)
-qt_feature("gif" PRIVATE
- LABEL "GIF"
- CONDITION QT_FEATURE_imageformatplugin
-)
-qt_feature_definition("gif" "QT_NO_IMAGEFORMAT_GIF" NEGATE)
-qt_feature("ico" PUBLIC PRIVATE
- LABEL "ICO"
- CONDITION QT_FEATURE_imageformatplugin
-)
-qt_feature_definition("ico" "QT_NO_ICO" NEGATE VALUE "1")
-qt_feature("jpeg" PRIVATE
- LABEL "JPEG"
- CONDITION QT_FEATURE_imageformatplugin
- DISABLE INPUT_libjpeg STREQUAL 'no'
-)
-qt_feature_definition("jpeg" "QT_NO_IMAGEFORMAT_JPEG" NEGATE)
-qt_feature("system-jpeg" PRIVATE
- LABEL " Using system libjpeg"
- CONDITION QT_FEATURE_jpeg AND JPEG_FOUND
- ENABLE INPUT_libjpeg STREQUAL 'system'
- DISABLE INPUT_libjpeg STREQUAL 'qt'
-)
-qt_feature("png" PRIVATE
- LABEL "PNG"
- DISABLE INPUT_libpng STREQUAL 'no'
-)
-qt_feature_definition("png" "QT_NO_IMAGEFORMAT_PNG" NEGATE)
-qt_feature("system-png" PRIVATE
- LABEL " Using system libpng"
- AUTODETECT QT_FEATURE_system_zlib
- CONDITION QT_FEATURE_png AND WrapSystemPNG_FOUND
- ENABLE INPUT_libpng STREQUAL 'system'
- DISABLE INPUT_libpng STREQUAL 'qt'
-)
-qt_feature("imageio-text-loading" PRIVATE
- LABEL "Image Text section loading"
-)
-qt_feature_definition("imageio-text-loading" "QT_NO_IMAGEIO_TEXT_LOADING" NEGATE)
-qt_feature("sessionmanager" PUBLIC
- SECTION "Kernel"
- LABEL "Session Management"
- PURPOSE "Provides an interface to the windowing system's session management."
-)
-qt_feature_definition("sessionmanager" "QT_NO_SESSIONMANAGER" NEGATE VALUE "1")
-qt_feature("tslib" PRIVATE
- LABEL "tslib"
- CONDITION Tslib_FOUND
-)
-qt_feature("tuiotouch" PRIVATE
- LABEL "TuioTouch"
- PURPOSE "Provides the TuioTouch input plugin."
- CONDITION QT_FEATURE_network AND QT_FEATURE_udpsocket
-)
-qt_feature("xcb" PRIVATE
- SECTION "Platform plugins"
- LABEL "XCB"
- AUTODETECT NOT APPLE
- CONDITION QT_FEATURE_thread AND TARGET XCB::XCB AND TEST_xcb_syslibs AND QT_FEATURE_xkbcommon_x11
-)
-qt_feature("xcb-glx-plugin" PUBLIC
- LABEL "GLX Plugin"
- CONDITION QT_FEATURE_xcb_xlib AND QT_FEATURE_opengl AND NOT QT_FEATURE_opengles2
- EMIT_IF QT_FEATURE_xcb
-)
-qt_feature("xcb-glx" PRIVATE
- LABEL " XCB GLX"
- CONDITION XCB_GLX_FOUND
- EMIT_IF QT_FEATURE_xcb AND QT_FEATURE_xcb_glx_plugin
-)
-qt_feature("xcb-egl-plugin" PRIVATE
- LABEL "EGL-X11 Plugin"
- CONDITION QT_FEATURE_egl_x11 AND QT_FEATURE_opengl
- EMIT_IF QT_FEATURE_xcb
-)
-qt_feature("xcb-native-painting" PRIVATE
- LABEL "Native painting (experimental)"
- AUTODETECT OFF
- CONDITION QT_FEATURE_xcb_xlib AND QT_FEATURE_fontconfig AND XRender_FOUND
- EMIT_IF QT_FEATURE_xcb
-)
-qt_feature("xrender" PRIVATE
- LABEL "XRender for native painting"
- CONDITION QT_FEATURE_xcb_native_painting
- EMIT_IF QT_FEATURE_xcb AND QT_FEATURE_xcb_native_painting
-)
-qt_feature("xcb-xlib" PRIVATE
- LABEL "XCB Xlib"
- CONDITION QT_FEATURE_xlib AND X11_XCB_FOUND
-)
-qt_feature("xcb-sm" PRIVATE
- LABEL "xcb-sm"
- CONDITION QT_FEATURE_sessionmanager AND X11_SM_FOUND
- EMIT_IF QT_FEATURE_xcb
-)
-qt_feature("system-xcb-xinput" PRIVATE
- LABEL "Using system-provided xcb-xinput"
- CONDITION XCB_XINPUT_FOUND
- ENABLE INPUT_bundled_xcb_xinput STREQUAL 'no'
- DISABLE INPUT_bundled_xcb_xinput STREQUAL 'yes'
- EMIT_IF QT_FEATURE_xcb
-)
-qt_feature("xkbcommon" PRIVATE
- LABEL "xkbcommon"
- CONDITION XKB_FOUND
-)
-qt_feature("xkbcommon-x11" PRIVATE
- LABEL "xkbcommon-x11"
- CONDITION QT_FEATURE_xkbcommon AND XKB_COMMON_X11_FOUND
-)
-qt_feature("xlib" PRIVATE
- LABEL "XLib"
- AUTODETECT NOT APPLE OR QT_FEATURE_xcb
- CONDITION X11_FOUND
-)
-qt_feature("texthtmlparser" PUBLIC
- SECTION "Kernel"
- LABEL "HtmlParser"
- PURPOSE "Provides a parser for HTML."
-)
-qt_feature_definition("texthtmlparser" "QT_NO_TEXTHTMLPARSER" NEGATE VALUE "1")
-qt_feature("textmarkdownreader" PUBLIC
- SECTION "Kernel"
- LABEL "MarkdownReader"
- PURPOSE "Provides a Markdown (CommonMark and GitHub) reader"
- ENABLE INPUT_libmd4c STREQUAL 'system' OR INPUT_libmd4c STREQUAL 'qt' OR INPUT_libmd4c STREQUAL 'yes'
- DISABLE INPUT_libmd4c STREQUAL 'no'
-)
-qt_feature("system-textmarkdownreader" PUBLIC
- SECTION "Kernel"
- LABEL " Using system libmd4c"
- CONDITION libs.libmd4c OR FIXME
- ENABLE INPUT_libmd4c STREQUAL 'system'
- DISABLE INPUT_libmd4c STREQUAL 'qt'
-)
-qt_feature("textmarkdownwriter" PUBLIC
- SECTION "Kernel"
- LABEL "MarkdownWriter"
- PURPOSE "Provides a Markdown (CommonMark) writer"
-)
-qt_feature("textodfwriter" PUBLIC
- SECTION "Kernel"
- LABEL "OdfWriter"
- PURPOSE "Provides an ODF writer."
- CONDITION QT_FEATURE_xmlstreamwriter
-)
-qt_feature_definition("textodfwriter" "QT_NO_TEXTODFWRITER" NEGATE VALUE "1")
-qt_feature("cssparser" PUBLIC
- SECTION "Kernel"
- LABEL "CssParser"
- PURPOSE "Provides a parser for Cascading Style Sheets."
-)
-qt_feature_definition("cssparser" "QT_NO_CSSPARSER" NEGATE VALUE "1")
-qt_feature("draganddrop" PUBLIC
- SECTION "Kernel"
- LABEL "Drag and Drop"
- PURPOSE "Supports the drag and drop mechansim."
- CONDITION QT_FEATURE_imageformat_xpm
-)
-qt_feature_definition("draganddrop" "QT_NO_DRAGANDDROP" NEGATE VALUE "1")
-qt_feature("action" PUBLIC
- SECTION "Kernel"
- LABEL "Q(Gui)Action(Group)"
- PURPOSE "Provides abstract user interface actions."
-)
-qt_feature_definition("action" "QT_NO_ACTION" NEGATE VALUE "1")
-qt_feature("cursor" PUBLIC
- SECTION "Kernel"
- LABEL "QCursor"
- PURPOSE "Provides mouse cursors."
-)
-qt_feature_definition("cursor" "QT_NO_CURSOR" NEGATE VALUE "1")
-qt_feature("clipboard" PUBLIC
- SECTION "Kernel"
- LABEL "QClipboard"
- PURPOSE "Provides cut and paste operations."
- CONDITION NOT INTEGRITY AND NOT QNX AND NOT rtems
-)
-qt_feature_definition("clipboard" "QT_NO_CLIPBOARD" NEGATE VALUE "1")
-qt_feature("wheelevent" PUBLIC
- SECTION "Kernel"
- LABEL "QWheelEvent"
- PURPOSE "Supports wheel events."
-)
-qt_feature_definition("wheelevent" "QT_NO_WHEELEVENT" NEGATE VALUE "1")
-qt_feature("tabletevent" PUBLIC
- SECTION "Kernel"
- LABEL "QTabletEvent"
- PURPOSE "Supports tablet events."
-)
-qt_feature_definition("tabletevent" "QT_NO_TABLETEVENT" NEGATE VALUE "1")
-qt_feature("im" PUBLIC
- SECTION "Kernel"
- LABEL "QInputContext"
- PURPOSE "Provides complex input methods."
- CONDITION QT_FEATURE_library
-)
-qt_feature_definition("im" "QT_NO_IM" NEGATE VALUE "1")
-qt_feature("highdpiscaling" PUBLIC
- SECTION "Kernel"
- LABEL "High DPI Scaling"
- PURPOSE "Provides automatic scaling of DPI-unaware applications on high-DPI displays."
-)
-qt_feature_definition("highdpiscaling" "QT_NO_HIGHDPISCALING" NEGATE VALUE "1")
-qt_feature("validator" PUBLIC
- SECTION "Widgets"
- LABEL "QValidator"
- PURPOSE "Supports validation of input text."
-)
-qt_feature_definition("validator" "QT_NO_VALIDATOR" NEGATE VALUE "1")
-qt_feature("standarditemmodel" PUBLIC
- SECTION "ItemViews"
- LABEL "QStandardItemModel"
- PURPOSE "Provides a generic model for storing custom data."
- CONDITION QT_FEATURE_itemmodel
-)
-qt_feature_definition("standarditemmodel" "QT_NO_STANDARDITEMMODEL" NEGATE VALUE "1")
-qt_feature("filesystemmodel" PUBLIC
- SECTION "File I/O"
- LABEL "QFileSystemModel"
- PURPOSE "Provides a data model for the local filesystem."
- CONDITION QT_FEATURE_itemmodel
-)
-qt_feature_definition("filesystemmodel" "QT_NO_FILESYSTEMMODEL" NEGATE VALUE "1")
-qt_feature("imageformatplugin" PUBLIC
- SECTION "Images"
- LABEL "QImageIOPlugin"
- PURPOSE "Provides a base for writing a image format plugins."
-)
-qt_feature_definition("imageformatplugin" "QT_NO_IMAGEFORMATPLUGIN" NEGATE VALUE "1")
-qt_feature("movie" PUBLIC
- SECTION "Images"
- LABEL "QMovie"
- PURPOSE "Supports animated images."
-)
-qt_feature_definition("movie" "QT_NO_MOVIE" NEGATE VALUE "1")
-qt_feature("imageformat_bmp" PUBLIC
- SECTION "Images"
- LABEL "BMP Image Format"
- PURPOSE "Supports Microsoft's Bitmap image file format."
-)
-qt_feature_definition("imageformat_bmp" "QT_NO_IMAGEFORMAT_BMP" NEGATE VALUE "1")
-qt_feature("imageformat_ppm" PUBLIC
- SECTION "Images"
- LABEL "PPM Image Format"
- PURPOSE "Supports the Portable Pixmap image file format."
-)
-qt_feature_definition("imageformat_ppm" "QT_NO_IMAGEFORMAT_PPM" NEGATE VALUE "1")
-qt_feature("imageformat_xbm" PUBLIC
- SECTION "Images"
- LABEL "XBM Image Format"
- PURPOSE "Supports the X11 Bitmap image file format."
-)
-qt_feature_definition("imageformat_xbm" "QT_NO_IMAGEFORMAT_XBM" NEGATE VALUE "1")
-qt_feature("imageformat_xpm" PUBLIC
- SECTION "Images"
- LABEL "XPM Image Format"
- PURPOSE "Supports the X11 Pixmap image file format."
-)
-qt_feature_definition("imageformat_xpm" "QT_NO_IMAGEFORMAT_XPM" NEGATE VALUE "1")
-qt_feature("imageformat_png" PUBLIC
- SECTION "Images"
- LABEL "PNG Image Format"
- PURPOSE "Supports the Portable Network Graphics image file format."
-)
-qt_feature_definition("imageformat_png" "QT_NO_IMAGEFORMAT_PNG" NEGATE VALUE "1")
-qt_feature("imageformat_jpeg" PUBLIC
- SECTION "Images"
- LABEL "JPEG Image Format"
- PURPOSE "Supports the Joint Photographic Experts Group image file format."
-)
-qt_feature_definition("imageformat_jpeg" "QT_NO_IMAGEFORMAT_JPEG" NEGATE VALUE "1")
-qt_feature("image_heuristic_mask" PUBLIC
- SECTION "Images"
- LABEL "QImage::createHeuristicMask()"
- PURPOSE "Supports creating a 1-bpp heuristic mask for images."
-)
-qt_feature_definition("image_heuristic_mask" "QT_NO_IMAGE_HEURISTIC_MASK" NEGATE VALUE "1")
-qt_feature("image_text" PUBLIC
- SECTION "Images"
- LABEL "Image Text"
- PURPOSE "Supports image file text strings."
-)
-qt_feature_definition("image_text" "QT_NO_IMAGE_TEXT" NEGATE VALUE "1")
-qt_feature("picture" PUBLIC
- SECTION "Painting"
- LABEL "QPicture"
- PURPOSE "Supports recording and replaying QPainter commands."
-)
-qt_feature_definition("picture" "QT_NO_PICTURE" NEGATE VALUE "1")
-qt_feature("colornames" PUBLIC
- SECTION "Painting"
- LABEL "Color Names"
- PURPOSE "Supports color names such as \"red\", used by QColor and by some HTML documents."
-)
-qt_feature_definition("colornames" "QT_NO_COLORNAMES" NEGATE VALUE "1")
-qt_feature("pdf" PUBLIC
- SECTION "Painting"
- LABEL "QPdf"
- PURPOSE "Provides a PDF backend for QPainter."
- CONDITION QT_FEATURE_temporaryfile
-)
-qt_feature_definition("pdf" "QT_NO_PDF" NEGATE VALUE "1")
-qt_feature("desktopservices" PUBLIC
- SECTION "Utilities"
- LABEL "QDesktopServices"
- PURPOSE "Provides methods for accessing common desktop services."
-)
-qt_feature_definition("desktopservices" "QT_NO_DESKTOPSERVICES" NEGATE VALUE "1")
-qt_feature("systemtrayicon" PUBLIC
- SECTION "Utilities"
- LABEL "QSystemTrayIcon"
- PURPOSE "Provides an icon for an application in the system tray."
- CONDITION QT_FEATURE_temporaryfile
-)
-qt_feature_definition("systemtrayicon" "QT_NO_SYSTEMTRAYICON" NEGATE VALUE "1")
-qt_feature("accessibility" PUBLIC
- SECTION "Utilities"
- LABEL "Accessibility"
- PURPOSE "Provides accessibility support."
- CONDITION QT_FEATURE_properties
-)
-qt_feature_definition("accessibility" "QT_NO_ACCESSIBILITY" NEGATE VALUE "1")
-qt_feature("multiprocess" PRIVATE
- SECTION "Utilities"
- LABEL "Multi process"
- PURPOSE "Provides support for detecting the desktop environment, launching external processes and opening URLs."
- CONDITION NOT INTEGRITY AND NOT rtems
-)
-qt_feature("whatsthis" PUBLIC
- SECTION "Widget Support"
- LABEL "QWhatsThis"
- PURPOSE "Supports displaying \"What's this\" help."
-)
-qt_feature_definition("whatsthis" "QT_NO_WHATSTHIS" NEGATE VALUE "1")
-qt_feature("raster-64bit" PRIVATE
- SECTION "Painting"
- LABEL "QPainter - 64 bit raster"
- PURPOSE "Internal painting support for 64 bit (16 bpc) rasterization."
-)
-qt_feature("undocommand" PUBLIC
- SECTION "Utilities"
- LABEL "QUndoCommand"
- PURPOSE "Applies (redo or) undo of a single change in a document."
-)
-qt_feature_definition("undocommand" "QT_NO_UNDOCOMMAND" NEGATE VALUE "1")
-qt_feature("undostack" PUBLIC
- SECTION "Utilities"
- LABEL "QUndoStack"
- PURPOSE "Provides the ability to (redo or) undo a list of changes in a document."
- CONDITION QT_FEATURE_undocommand
-)
-qt_feature_definition("undostack" "QT_NO_UNDOSTACK" NEGATE VALUE "1")
-qt_feature("undogroup" PUBLIC
- SECTION "Utilities"
- LABEL "QUndoGroup"
- PURPOSE "Provides the ability to cluster QUndoCommands."
- CONDITION QT_FEATURE_undostack
-)
-qt_feature_definition("undogroup" "QT_NO_UNDOGROUP" NEGATE VALUE "1")
-qt_configure_add_summary_section(NAME "Qt Gui")
-qt_configure_add_summary_entry(ARGS "accessibility")
-qt_configure_add_summary_entry(ARGS "freetype")
-qt_configure_add_summary_entry(ARGS "system-freetype")
-qt_configure_add_summary_entry(ARGS "harfbuzz")
-qt_configure_add_summary_entry(ARGS "system-harfbuzz")
-qt_configure_add_summary_entry(ARGS "fontconfig")
-qt_configure_add_summary_section(NAME "Image formats")
-qt_configure_add_summary_entry(ARGS "gif")
-qt_configure_add_summary_entry(ARGS "ico")
-qt_configure_add_summary_entry(ARGS "jpeg")
-qt_configure_add_summary_entry(ARGS "system-jpeg")
-qt_configure_add_summary_entry(ARGS "png")
-qt_configure_add_summary_entry(ARGS "system-png")
-qt_configure_end_summary_section() # end of "Image formats" section
-qt_configure_add_summary_section(NAME "Text formats")
-qt_configure_add_summary_entry(ARGS "texthtmlparser")
-qt_configure_add_summary_entry(ARGS "cssparser")
-qt_configure_add_summary_entry(ARGS "textodfwriter")
-qt_configure_add_summary_entry(ARGS "textmarkdownreader")
-qt_configure_add_summary_entry(ARGS "system-textmarkdownreader")
-qt_configure_add_summary_entry(ARGS "textmarkdownwriter")
-qt_configure_end_summary_section() # end of "Text formats" section
-qt_configure_add_summary_entry(ARGS "egl")
-qt_configure_add_summary_entry(ARGS "openvg")
-qt_configure_add_summary_section(NAME "OpenGL")
-qt_configure_add_summary_entry(ARGS "opengl-desktop")
-qt_configure_add_summary_entry(
- ARGS "opengl-dynamic"
- CONDITION WIN32
-)
-qt_configure_add_summary_entry(ARGS "opengles2")
-qt_configure_add_summary_entry(ARGS "opengles3")
-qt_configure_add_summary_entry(ARGS "opengles31")
-qt_configure_add_summary_entry(ARGS "opengles32")
-qt_configure_end_summary_section() # end of "OpenGL" section
-qt_configure_add_summary_entry(ARGS "vulkan")
-qt_configure_add_summary_entry(ARGS "sessionmanager")
-qt_configure_end_summary_section() # end of "Qt Gui" section
-qt_configure_add_summary_section(NAME "Features used by QPA backends")
-qt_configure_add_summary_entry(ARGS "evdev")
-qt_configure_add_summary_entry(ARGS "libinput")
-qt_configure_add_summary_entry(ARGS "integrityhid")
-qt_configure_add_summary_entry(ARGS "mtdev")
-qt_configure_add_summary_entry(ARGS "tslib")
-qt_configure_add_summary_entry(ARGS "xkbcommon")
-qt_configure_add_summary_section(NAME "X11 specific")
-qt_configure_add_summary_entry(ARGS "xlib")
-qt_configure_add_summary_entry(ARGS "xcb-xlib")
-qt_configure_add_summary_entry(ARGS "egl_x11")
-qt_configure_add_summary_entry(ARGS "xkbcommon-x11")
-qt_configure_end_summary_section() # end of "X11 specific" section
-qt_configure_end_summary_section() # end of "Features used by QPA backends" section
-qt_configure_add_summary_section(NAME "QPA backends")
-qt_configure_add_summary_entry(ARGS "directfb")
-qt_configure_add_summary_entry(ARGS "eglfs")
-qt_configure_add_summary_section(NAME "EGLFS details")
-qt_configure_add_summary_entry(ARGS "eglfs_openwfd")
-qt_configure_add_summary_entry(ARGS "eglfs_viv")
-qt_configure_add_summary_entry(ARGS "eglfs_viv_wl")
-qt_configure_add_summary_entry(ARGS "eglfs_rcar")
-qt_configure_add_summary_entry(ARGS "eglfs_egldevice")
-qt_configure_add_summary_entry(ARGS "eglfs_gbm")
-qt_configure_add_summary_entry(ARGS "eglfs_vsp2")
-qt_configure_add_summary_entry(ARGS "eglfs_mali")
-qt_configure_add_summary_entry(ARGS "eglfs_brcm")
-qt_configure_add_summary_entry(ARGS "eglfs_x11")
-qt_configure_end_summary_section() # end of "EGLFS details" section
-qt_configure_add_summary_entry(ARGS "linuxfb")
-qt_configure_add_summary_entry(ARGS "vnc")
-qt_configure_add_summary_entry(
- ARGS "integrityfb"
- CONDITION INTEGRITY
-)
-qt_configure_add_summary_section(NAME "QNX")
-qt_configure_add_summary_entry(ARGS "lgmon")
-qt_configure_add_summary_entry(ARGS "qqnx_imf")
-qt_configure_end_summary_section() # end of "QNX" section
-qt_configure_add_summary_section(NAME "XCB")
-qt_configure_add_summary_entry(ARGS "system-xcb-xinput")
-qt_configure_add_summary_entry(ARGS "xcb-native-painting")
-qt_configure_add_summary_section(NAME "GL integrations")
-qt_configure_add_summary_entry(ARGS "xcb-glx-plugin")
-qt_configure_add_summary_entry(ARGS "xcb-glx")
-qt_configure_add_summary_entry(ARGS "xcb-egl-plugin")
-qt_configure_end_summary_section() # end of "GL integrations" section
-qt_configure_end_summary_section() # end of "XCB" section
-qt_configure_add_summary_section(NAME "Windows")
-qt_configure_add_summary_entry(ARGS "direct2d")
-qt_configure_add_summary_entry(ARGS "directwrite")
-qt_configure_add_summary_entry(ARGS "directwrite3")
-qt_configure_end_summary_section() # end of "Windows" section
-qt_configure_end_summary_section() # end of "QPA backends" section
-qt_configure_add_report_entry(
- TYPE NOTE
- MESSAGE "XCB support on macOS is minimal and untested. Some features will not work properly or at all (e.g. OpenGL, desktop services or accessibility), or may depend on your system and XQuartz setup."
- CONDITION QT_FEATURE_xcb AND APPLE
-)
-qt_configure_add_report_entry(
- TYPE NOTE
- MESSAGE "Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing."
- CONDITION QT_FEATURE_accessibility AND QT_FEATURE_xcb AND NOT QT_FEATURE_accessibility_atspi_bridge
-)
-qt_configure_add_report_entry(
- TYPE WARNING
- MESSAGE "No QPA platform plugin enabled! This will produce a Qt that cannot run GUI applications. See \"Platform backends\" in the output of --help."
- CONDITION QT_FEATURE_gui AND LINUX AND NOT ANDROID AND NOT QT_FEATURE_xcb AND NOT QT_FEATURE_eglfs AND NOT QT_FEATURE_directfb AND NOT QT_FEATURE_linuxfb
-)
-qt_configure_add_report_entry(
- TYPE WARNING
- MESSAGE "On OS X, AAT is supported only with -qt-harfbuzz."
- CONDITION APPLE AND QT_FEATURE_system_harfbuzz
-)
-qt_configure_add_report_entry(
- TYPE ERROR
- MESSAGE "The OpenGL functionality tests failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform."
- CONDITION QT_FEATURE_gui AND NOT WATCHOS AND ( NOT INPUT_opengl STREQUAL 'no' ) AND NOT QT_FEATURE_opengl_desktop AND NOT QT_FEATURE_opengles2 AND NOT QT_FEATURE_opengl_dynamic
-)
-qt_configure_add_report_entry(
- TYPE WARNING
- MESSAGE "Accessibility disabled. This configuration of Qt is unsupported."
- CONDITION NOT QT_FEATURE_accessibility
-)
-qt_configure_add_report_entry(
- TYPE ERROR
- MESSAGE "XCB plugin requires xkbcommon and xkbcommon-x11, but -no-xkbcommon was provided."
- CONDITION ( NOT INPUT_xcb STREQUAL '' ) AND ( NOT INPUT_xcb STREQUAL 'no' ) AND INPUT_xkbcommon STREQUAL 'no'
-)
diff --git a/src/gui/configure.json b/src/gui/configure.json
deleted file mode 100644
index 8e3d647df6..0000000000
--- a/src/gui/configure.json
+++ /dev/null
@@ -1,1847 +0,0 @@
-{
- "module": "gui",
- "depends": [
- "core-private",
- "network"
- ],
- "testDir": "../../config.tests",
-
- "commandline": {
- "options": {
- "accessibility": "boolean",
- "direct2d": "boolean",
- "directfb": "boolean",
- "directwrite": "boolean",
- "egl": "boolean",
- "eglfs": "boolean",
- "evdev": "boolean",
- "fontconfig": "boolean",
- "freetype": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "gbm": "boolean",
- "gif": "boolean",
- "harfbuzz": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "ico": "boolean",
- "imf": { "type": "boolean", "name": "qqnx_imf" },
- "kms": "boolean",
- "lgmon": "boolean",
- "libinput": "boolean",
- "libjpeg": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "libmd4c": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "libpng": { "type": "enum", "values": [ "no", "qt", "system" ] },
- "linuxfb": "boolean",
- "mtdev": "boolean",
- "opengl": { "type": "optionalString", "values": [ "no", "yes", "desktop", "es2", "dynamic" ] },
- "opengl-es-2": { "type": "void", "name": "opengl", "value": "es2" },
- "opengles3": "boolean",
- "openvg": "boolean",
- "qpa": { "type": "string", "name": "qpa_default_platform" },
- "sm": { "type": "boolean", "name": "sessionmanager" },
- "tslib": "boolean",
- "vulkan": "boolean",
- "xcb": "boolean",
- "bundled-xcb-xinput": "boolean",
- "xcb-native-painting": "boolean",
- "xcb-xlib": "boolean",
- "xkbcommon": "boolean"
- }
- },
-
- "libraries": {
- "atspi": {
- "label": "atspi",
- "sources": [
- { "type": "pkgConfig", "args": "atspi-2" }
- ]
- },
- "bcm_host": {
- "export": "",
- "headers": ["bcm_host.h"],
- "sources": [
- { "type": "pkgConfig", "args": "bcm_host" },
- { "type": "makeSpec", "spec": "BCM_HOST" }
- ]
- },
- "d2d1": {
- "label": "Direct2D 1",
- "headers": [ "d2d1.h", "d2d1helper.h" ],
- "sources": [
- "-ld2d1"
- ]
- },
- "d2d1_1": {
- "label": "Direct2D 1.1",
- "test": {
- "main": [
- "ID2D1Factory1 *d2dFactory;",
- "D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, &d2dFactory);"
- ]
- },
- "headers": [ "d2d1_1.h", "d2d1_1helper.h" ],
- "sources": [
- "-ld2d1"
- ]
- },
- "directfb": {
- "label": "DirectFB",
- "test": {
- "tail": [
- "#ifdef __typeof__",
- "# error DirectFB headers are unclean and cannot compile",
- "#endif"
- ]
- },
- "headers": "directfb.h",
- "sources": [
- { "type": "pkgConfig", "args": "directfb" }
- ]
- },
- "dwrite_2": {
- "label": "DirectWrite 2",
- "test": {
- "main": [
- "IUnknown *factory = 0;",
- "(void)(size_t(DWRITE_E_NOCOLOR) + sizeof(IDWriteFontFace2));",
- "DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory2),",
- " &factory);"
- ]
- },
- "headers": "dwrite_2.h",
- "sources": [
- "-ldwrite"
- ]
- },
- "dwrite_3": {
- "label": "DirectWrite 3",
- "test": {
- "main": [
- "IUnknown *factory = 0;",
- "DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, __uuidof(IDWriteFactory3),",
- " &factory);"
- ]
- },
- "headers": "dwrite_3.h",
- "sources": [
- "-ldwrite"
- ]
- },
- "drm": {
- "label": "KMS",
- "test": {
- "head": [
- "#include <stdlib.h>",
- "#include <stdint.h>",
- "extern \"C\" {"
- ],
- "tail": [
- "}"
- ],
- "main": "(void) drmModeGetCrtc(0, 0);"
- },
- "headers": [ "xf86drmMode.h", "xf86drm.h" ],
- "sources": [
- { "type": "pkgConfig", "args": "libdrm" },
- { "libs": "-ldrm", "condition": "!config.integrity" },
- { "libs": "-ldrm-nvdc -lposix -livfs -lnvll -lnvdc -lnvrm -lnvrm_graphics -lnvos -lnvtegrahv", "condition": "config.integrity" }
- ]
- },
- "egl": {
- "label": "EGL",
- "test": {
- "main": [
- "EGLint x = 0; EGLDisplay dpy = 0; EGLContext ctx = 0;",
- "eglDestroyContext(dpy, ctx);"
- ]
- },
- "headers": "EGL/egl.h",
- "sources": [
- { "type": "pkgConfig", "args": "egl" },
- { "type": "makeSpec", "spec": "EGL" }
- ]
- },
- "freetype": {
- "label": "FreeType",
- "test": {
- "tail": [
- "#include FT_FREETYPE_H",
- "#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) < 20200)",
- "# error This version of freetype is too old.",
- "#endif"
- ],
- "main": [
- "FT_Face face = 0;"
- ]
- },
- "headers": "ft2build.h",
- "sources": [
- { "type": "pkgConfig", "args": "freetype2" },
- { "type": "freetype", "libs": "-lfreetype", "condition": "!config.wasm" },
- { "libs": "-s USE_FREETYPE=1", "condition": "config.wasm" },
- { "libs": "-lfreetype" }
- ],
- "use": [
- { "lib": "zlib", "condition": "features.system-zlib" }
- ]
- },
- "fontconfig": {
- "label": "Fontconfig",
- "test": {
- "tail": [
- "#ifndef FC_RGBA_UNKNOWN",
- "# error This version of fontconfig is too old, it is missing the FC_RGBA_UNKNOWN define",
- "#endif"
- ],
- "main": [
- "FcPattern *pattern = 0;"
- ]
- },
- "headers": "fontconfig/fontconfig.h",
- "sources": [
- { "type": "pkgConfig", "args": "fontconfig" },
- { "type": "freetype", "libs": "-lfontconfig" }
- ],
- "use": "freetype"
- },
- "gbm": {
- "label": "GBM",
- "test": {
- "head": [
- "#include <stdlib.h>",
- "#include <stdint.h>",
- "extern \"C\" {"
- ],
- "tail": [
- "}"
- ],
- "main": "gbm_surface *surface = 0;"
- },
- "headers": "gbm.h",
- "sources": [
- { "type": "pkgConfig", "args": "gbm" }
- ]
- },
- "harfbuzz": {
- "label": "HarfBuzz",
- "test": {
- "tail": [
- "#if !HB_VERSION_ATLEAST(2, 6, 0)",
- "# error This version of harfbuzz is too old.",
- "#endif"
- ],
- "main": [
- "hb_buffer_t *buffer = hb_buffer_create();",
- "const uint16_t string[] = { 'A', 'b', 'c' };",
- "hb_buffer_add_utf16(buffer, string, 3, 0, 3);",
- "hb_buffer_guess_segment_properties(buffer);",
- "hb_buffer_set_flags(buffer, hb_buffer_flags_t(HB_BUFFER_FLAG_PRESERVE_DEFAULT_IGNORABLES));",
- "hb_buffer_destroy(buffer);"
- ]
- },
- "headers": "hb.h",
- "sources": [
- "-lharfbuzz"
- ]
- },
- "imf": {
- "label": "IMF",
- "export": "",
- "test": {
- "main": "imf_client_init();"
- },
- "headers": "imf/imf_client.h",
- "sources": [
- "-linput_client"
- ]
- },
- "lgmon": {
- "label": "lgmon",
- "test": {
- "main": "lgmon_supported(getpid());"
- },
- "headers": "lgmon.h",
- "sources": [
- "-llgmon"
- ]
- },
- "libinput": {
- "label": "libinput",
- "test": {
- "main": "libinput_udev_create_context(NULL, NULL, NULL);"
- },
- "headers": "libinput.h",
- "sources": [
- { "type": "pkgConfig", "args": "libinput" }
- ]
- },
- "integrityhid": {
- "label": "integrityhid",
- "test": {
- "head": [
- "#include <stdlib.h>",
- "#include <stdint.h>"
- ],
- "main": [
- "HIDDriver *driver;",
- "uintptr_t devicecontext;",
- "uint32_t device_id;",
- "gh_hid_enum_devices(driver, &device_id, &devicecontext);"
- ]
- },
- "headers": "device/hiddriver.h",
- "sources": [
- { "libs": "-lhiddev -lusbhid -lusb" }
- ]
- },
- "libjpeg": {
- "label": "libjpeg",
- "test": {
- "head": [
- "#include <sys/types.h>",
- "#include <stdio.h>",
- "extern \"C\" {"
- ],
- "tail": [
- "}",
- "",
- "j_compress_ptr cinfo;"
- ],
- "main": "jpeg_create_compress(cinfo);"
- },
- "headers": "jpeglib.h",
- "sources": [
- { "type": "pkgConfig", "args": "libjpeg" },
- { "libs": "-llibjpeg", "condition": "config.msvc" },
- "-ljpeg"
- ]
- },
- "libmd4c": {
- "label": "libmd4c",
- "test": {
- "main": "md_parse(\"hello\", 5, nullptr, nullptr);"
- },
- "headers": "md4c.h",
- "sources": [
- { "type": "pkgConfig", "args": "md4c" },
- { "libs": "-lmd4c" }
- ]
- },
- "libpng": {
- "label": "libpng",
- "test": {
- "main": "(void) png_create_read_struct(PNG_LIBPNG_VER_STRING,0,0,0);"
- },
- "headers": "png.h",
- "sources": [
- { "type": "pkgConfig", "args": "libpng" },
- { "libs": "-llibpng16", "condition": "config.msvc" },
- { "libs": "-llibpng", "condition": "config.msvc" },
- { "libs": "-lpng16", "condition": "!config.msvc" },
- { "libs": "-lpng", "condition": "!config.msvc" },
- { "libs": "-s USE_LIBPNG=1", "condition": "config.wasm" }
- ],
- "use": [
- { "lib": "zlib", "condition": "features.system-zlib" }
- ]
- },
- "mtdev": {
- "label": "mtdev",
- "test": {
- "main": [
- "mtdev m;",
- "mtdev_open(&m, 0);"
- ]
- },
- "headers": "mtdev.h",
- "sources": [
- { "type": "pkgConfig", "args": "mtdev" }
- ]
- },
- "opengl": {
- "label": "Desktop OpenGL",
- "test": {
- "head": [
- "#ifdef __APPLE__",
- "# include <OpenGL/gl.h>",
- "#else",
- "# define GL_GLEXT_PROTOTYPES",
- "# include <GL/gl.h>",
- "#endif"
- ],
- "main": [
- "glBegin(GL_TRIANGLES);",
- " glVertex2f(20.0f, 10.0f);",
- " glVertex2f(10.0f, 30.0f);",
- " glVertex2f(20.0f, 50.0f);",
- "glEnd();"
- ]
- },
- "sources": [
- { "type": "pkgConfig", "args": "gl", "condition": "!config.darwin" },
- { "type": "makeSpec", "spec": "OPENGL" }
- ]
- },
- "opengl_es2": {
- "label": "OpenGL ES 2.0",
- "test": {
- "head": [
- "#ifdef __APPLE__",
- "# include <OpenGLES/ES2/gl.h>",
- "#else",
- "# define GL_GLEXT_PROTOTYPES",
- "# include <GLES2/gl2.h>",
- "#endif"
- ],
- "main": [
- "glUniform1f(1, GLfloat(1.0));",
- "glClear(GL_COLOR_BUFFER_BIT);"
- ]
- },
- "sources": [
- { "type": "pkgConfig", "args": "glesv2", "condition": "!config.darwin" },
- { "type": "makeSpec", "spec": "OPENGL_ES2" }
- ]
- },
- "openvg": {
- "label": "OpenVG",
- "test": {
- "main": "VGint i = 2; vgFlush();"
- },
- "headers": "VG/openvg.h",
- "sources": [
- { "type": "pkgConfig", "args": "vg" },
- { "type": "makeSpec", "spec": "OPENVG" }
- ]
- },
- "tslib": {
- "label": "tslib",
- "test": {
- "main": "ts_setup(nullptr, 0);"
- },
- "headers": "tslib.h",
- "sources": [
- "-lts"
- ]
- },
- "v4l2": {
- "label": "V4L2",
- "test": {
- "head": [
- "#include <cstddef>",
- "extern \"C\" {"
- ],
- "tail": [
- "}"
- ],
- "main": [
- "v4l2_format fmt;",
- "media_pad *pad = nullptr;",
- "media_device *device = media_device_new(\"/dev/media\");",
- "v4l2_subdev_set_format(nullptr, nullptr, 0, V4L2_SUBDEV_FORMAT_ACTIVE);"
- ]
- },
- "headers": [ "mediactl/mediactl.h", "mediactl/v4l2subdev.h" ],
- "sources": [
- { "type": "pkgConfig", "args": "libv4l2 libmediactl" },
- "-lmediactl -lv4l2 -lv4l2subdev"
- ]
- },
- "vulkan": {
- "label": "Vulkan",
- "test": {
- "comment": "Note: Qt does not rely on linking to a Vulkan library directly.",
- "tail": [
- "// The pData parameter has changed from uint32_t* to void* at some point.",
- "// Ensure the headers have the updated one to prevent compile errors later on.",
- "PFN_vkCmdUpdateBuffer cmdUpdBuf;",
- "void testUpdateBuffer(VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const void* pData)",
- "{",
- " cmdUpdBuf(commandBuffer, dstBuffer, dstOffset, dataSize, pData);",
- "}"
- ],
- "main": [
- "VkInstanceCreateInfo info;",
- "testUpdateBuffer(0, 0, 0, 0, 0);"
- ]
- },
- "headers": "vulkan/vulkan.h",
- "sources": [
- { "type": "pkgConfig", "args": "vulkan" },
- { "type": "makeSpec", "spec": "VULKAN" }
- ]
- },
- "wayland_server": {
- "label": "Wayland Server",
- "test": {
- "main": "wl_display_create();"
- },
- "headers": "wayland-server.h",
- "sources": [
- { "type": "pkgConfig", "args": "wayland-server" }
- ]
- },
- "xlib": {
- "label": "XLib",
- "test": {
- "main": [
- "Display *d = XOpenDisplay(NULL);",
- "XCloseDisplay(d);"
- ]
- },
- "headers": "X11/Xlib.h",
- "sources": [
- { "type": "makeSpec", "spec": "X11" }
- ]
- },
- "x11sm": {
- "label": "X11 session management",
- "sources": [
- { "type": "pkgConfig", "args": "sm ice" }
- ]
- },
- "xcb": {
- "label": "XCB >= 1.11",
- "test": {
- "main": [
- "int primaryScreen = 0;",
- "(void)xcb_connect(\"\", &primaryScreen);",
- "/* XCB_PACKED define was added in libxcb 1.11 */",
- "#ifdef XCB_PACKED",
- " return 0;",
- "#else",
- " return -1;",
- "#endif"
- ]
- },
- "headers": "xcb/xcb.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb >= 1.11" },
- "-lxcb"
- ]
- },
- "xcb_icccm": {
- "label": "XCB ICCCM >= 0.3.9",
- "headers": "xcb/xcb_icccm.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-icccm >= 0.3.9" },
- "-lxcb-icccm"
- ],
- "use": "xcb"
- },
- "xcb_image": {
- "label": "XCB Image >= 0.3.9",
- "headers": "xcb/xcb_image.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-image >= 0.3.9" },
- "-lxcb-image"
- ],
- "use": "xcb_shm xcb"
- },
- "xcb_keysyms": {
- "label": "XCB Keysyms >= 0.3.9",
- "headers": "xcb/xcb_keysyms.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-keysyms >= 0.3.9" },
- "-lxcb-keysyms"
- ],
- "use": "xcb"
- },
- "xcb_renderutil": {
- "label": "XCB Renderutil >= 0.3.9",
- "headers": "xcb/xcb_renderutil.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-renderutil >= 0.3.9" },
- "-lxcb-render-util"
- ],
- "use": "xcb xcb_render"
- },
- "xcb_randr": {
- "label": "XCB RandR",
- "headers": "xcb/randr.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-randr" },
- "-lxcb-randr"
- ],
- "use": "xcb"
- },
- "xcb_shape": {
- "label": "XCB Shape",
- "headers": "xcb/shape.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-shape" },
- "-lxcb-shape"
- ],
- "use": "xcb"
- },
- "xcb_shm": {
- "label": "XCB SHM",
- "headers": "xcb/shm.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-shm" },
- "-lxcb-shm"
- ],
- "use": "xcb"
- },
- "xcb_sync": {
- "label": "XCB Sync",
- "headers": "xcb/sync.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-sync" },
- "-lxcb-sync"
- ],
- "use": "xcb"
- },
- "xcb_xfixes": {
- "label": "XCB Xfixes",
- "headers": "xcb/xfixes.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-xfixes" },
- "-lxcb-xfixes"
- ],
- "use": "xcb"
- },
- "xcb_xlib": {
- "label": "XCB Xlib",
- "test": {
- "main": "(void) XGetXCBConnection((Display *)0);"
- },
- "headers": "X11/Xlib-xcb.h",
- "sources": [
- { "type": "pkgConfig", "args": "x11-xcb" },
- "-lX11-xcb"
- ],
- "use": "xcb xlib"
- },
- "xcb_xkb": {
- "label": "XCB XKB",
- "headers": "xcb/xkb.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-xkb" },
- "-lxcb-xkb"
- ],
- "use": "xcb"
- },
- "xcb_render": {
- "label": "XCB XRender",
- "headers": "xcb/render.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-render" },
- "-lxcb-render"
- ],
- "use": "xcb"
- },
- "xcb_glx": {
- "label": "XCB GLX",
- "test": {
- "main": [
- "xcb_connection_t *connection = 0;",
- "xcb_generic_error_t *error = 0;",
- "xcb_glx_query_version_cookie_t xglx_query_cookie = xcb_glx_query_version(",
- " connection, XCB_GLX_MAJOR_VERSION, XCB_GLX_MINOR_VERSION);",
- "xcb_glx_query_version_reply(connection, xglx_query_cookie, &error);"
- ]
- },
- "headers": "xcb/glx.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-glx" },
- "-lxcb-glx"
- ],
- "use": "xcb"
- },
- "xcb_xinput": {
- "label": "XCB XInput",
- "test": {
- "main": [
- "xcb_connection_t *connection = 0;",
- "xcb_generic_error_t *error = 0;",
- "xcb_input_xi_query_version_cookie_t xinput_query_cookie = xcb_input_xi_query_version(",
- " connection, XCB_INPUT_MAJOR_VERSION, XCB_INPUT_MINOR_VERSION);",
- "xcb_input_xi_query_version_reply(connection, xinput_query_cookie, &error);"
- ]
- },
- "headers": "xcb/xinput.h",
- "sources": [
- { "type": "pkgConfig", "args": "xcb-xinput >= 1.12" },
- "-lxcb-xinput"
- ],
- "use": "xcb"
- },
- "xkbcommon": {
- "label": "xkbcommon >= 0.5.0",
- "test": {
- "main": "xkb_context_new(XKB_CONTEXT_NO_FLAGS);"
- },
- "headers": [ "xkbcommon/xkbcommon.h" ],
- "sources": [
- { "type": "pkgConfig", "args": "xkbcommon >= 0.5.0" },
- "-lxkbcommon"
- ]
- },
- "xkbcommon_x11": {
- "label": "xkbcommon-x11",
- "test": {
- "main": "xkb_x11_setup_xkb_extension_flags flag = XKB_X11_SETUP_XKB_EXTENSION_NO_FLAGS;"
- },
- "headers": [ "xkbcommon/xkbcommon-x11.h" ],
- "sources": [
- { "type": "pkgConfig", "args": "xkbcommon-x11" },
- "-lxkbcommon -lxkbcommon-x11"
- ]
- },
- "xrender": {
- "label": "XRender for native painting",
- "test": {
- "tail": [
- "#if RENDER_MAJOR == 0 && RENDER_MINOR < 5",
- "# error Required Xrender version 0.6 not found.",
- "#endif"
- ],
- "main": "XRenderPictFormat *format = 0;"
- },
- "headers": "X11/extensions/Xrender.h",
- "sources": [
- "-lXrender"
- ],
- "use": "xlib"
- }
- },
-
- "tests": {
- "drm_atomic": {
- "label": "DRM Atomic API",
- "type": "compile",
- "test": {
- "head": [
- "#include <stdlib.h>",
- "#include <stdint.h>",
- "extern \"C\" {"
- ],
- "include": [
- "xf86drmMode.h",
- "xf86drm.h"
- ],
- "tail": [
- "}"
- ],
- "main": "drmModeAtomicReq *request;"
- },
- "use": "drm"
- },
- "egl-x11": {
- "label": "EGL on X11",
- "type": "compile",
- "test": {
- "head": [
- "// Check if EGL is compatible with X. Some EGL implementations, typically on",
- "// embedded devices, are not intended to be used together with X. EGL support",
- "// has to be disabled in plugins like xcb in this case since the native display,",
- "// window and pixmap types will be different than what an X-based platform",
- "// plugin would expect."
- ],
- "include": [ "EGL/egl.h", "X11/Xlib.h" ],
- "main": [
- "Display *dpy = EGL_DEFAULT_DISPLAY;",
- "EGLNativeDisplayType egldpy = XOpenDisplay(\"\");",
- "dpy = egldpy;",
- "EGLNativeWindowType w = XCreateWindow(dpy, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);",
- "XDestroyWindow(dpy, w);",
- "XCloseDisplay(dpy);"
- ]
- },
- "use": "egl xlib"
- },
- "egl-brcm": {
- "label": "Broadcom EGL (Raspberry Pi)",
- "type": "compile",
- "test": {
- "include": [ "EGL/egl.h", "bcm_host.h" ],
- "main": "vc_dispmanx_display_open(0);"
- },
- "use": "egl bcm_host"
- },
- "egl-egldevice": {
- "label": "EGLDevice",
- "type": "compile",
- "test": {
- "include": [ "EGL/egl.h", "EGL/eglext.h" ],
- "main": [
- "EGLDeviceEXT device = 0;",
- "EGLStreamKHR stream = 0;",
- "EGLOutputLayerEXT layer = 0;",
- "(void) EGL_DRM_CRTC_EXT;"
- ]
- },
- "use": "egl"
- },
- "egl-mali": {
- "label": "Mali EGL",
- "type": "compile",
- "test": {
- "include": [ "EGL/fbdev_window.h", "EGL/egl.h", "GLES2/gl2.h" ],
- "main": "fbdev_window *w = 0;"
- },
- "use": "egl"
- },
- "egl-mali-2": {
- "label": "Mali 2 EGL",
- "type": "compile",
- "test": {
- "include": [ "EGL/egl.h", "GLES2/gl2.h" ],
- "main": "mali_native_window *w = 0;"
- },
- "use": "egl"
- },
- "egl-viv": {
- "label": "i.Mx6 EGL",
- "type": "compile",
- "test": {
- "include": [ "EGL/egl.h", "EGL/eglvivante.h" ],
- "main": [
- "#ifdef __INTEGRITY",
- "fbGetDisplay();",
- "#else",
- "// Do not rely on fbGetDisplay(), since the signature has changed over time.",
- "// Stick to fbGetDisplayByIndex().",
- "fbGetDisplayByIndex(0);",
- "#endif"
- ],
- "qmake": [
- "DEFINES += EGL_API_FB=1",
- "!integrity: DEFINES += LINUX=1"
- ]
- },
- "use": "egl"
- },
- "egl-openwfd": {
- "label": "OpenWFD EGL",
- "type": "compile",
- "test": {
- "include": [ "wfd.h" ],
- "main": [
- "wfdEnumerateDevices(nullptr, 0, nullptr);"
- ]
- },
- "use": "egl"
- },
- "egl-rcar": {
- "label": "RCAR EGL",
- "type": "compile",
- "test": {
- "include": [ "EGL/egl.h" ],
- "tail": [
- "extern \"C\" {",
- "extern unsigned long PVRGrfxServerInit(void);",
- "}"
- ],
- "main": [
- "PVRGrfxServerInit();"
- ]
- },
- "use": "egl opengl_es2"
- },
- "evdev": {
- "label": "evdev",
- "type": "compile",
- "test": {
- "head": [
- "#if defined(__FreeBSD__)",
- "# include <dev/evdev/input.h>",
- "#else",
- "# include <linux/input.h>",
- "# include <linux/kd.h>",
- "#endif",
- "enum {",
- " e1 = ABS_PRESSURE,",
- " e2 = ABS_X,",
- " e3 = REL_X,",
- " e4 = SYN_REPORT,",
- "};"
- ],
- "main": [
- "input_event buf[32];",
- "(void) buf;"
- ]
- }
- },
- "integrityfb": {
- "label": "INTEGRITY framebuffer",
- "type": "compile",
- "test": {
- "include": "device/fbdriver.h",
- "main": "FBDriver *driver = 0;"
- }
- },
- "libinput_axis_api": {
- "label": "axis API in libinput",
- "type": "compile",
- "test": {
- "include": "libinput.h",
- "main": "libinput_event_pointer_has_axis(nullptr, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL);"
- },
- "use": "libinput"
- },
- "linuxfb": {
- "label": "LinuxFB",
- "type": "compile",
- "test": {
- "include": [ "linux/fb.h", "sys/kd.h", "sys/ioctl.h" ],
- "main": [
- "fb_fix_screeninfo finfo;",
- "fb_var_screeninfo vinfo;",
- "int fd = 3;",
- "ioctl(fd, FBIOGET_FSCREENINFO, &finfo);",
- "ioctl(fd, FBIOGET_VSCREENINFO, &vinfo);"
- ]
- }
- },
- "opengles3": {
- "label": "OpenGL ES 3.0",
- "type": "compile",
- "test": {
- "head": [
- "#ifdef __APPLE__",
- "# include <OpenGLES/ES3/gl.h>",
- "#else",
- "# define GL_GLEXT_PROTOTYPES",
- "# include <GLES3/gl3.h>",
- "#endif"
- ],
- "main": [
- "static GLfloat f[6];",
- "glGetStringi(GL_EXTENSIONS, 0);",
- "glReadBuffer(GL_COLOR_ATTACHMENT1);",
- "glUniformMatrix2x3fv(0, 0, GL_FALSE, f);",
- "glMapBufferRange(GL_ARRAY_BUFFER, 0, 0, GL_MAP_READ_BIT);"
- ]
- },
- "comment": [
- "The library is expected to be the same as in ES 2.0 (libGLESv2).",
- "The difference is the header and the presence of the functions in",
- "the library."
- ],
- "use": "opengl_es2"
- },
- "opengles31": {
- "label": "OpenGL ES 3.1",
- "type": "compile",
- "test": {
- "include": "GLES3/gl31.h",
- "main": [
- "glDispatchCompute(1, 1, 1);",
- "glProgramUniform1i(0, 0, 0);"
- ]
- },
- "use": "opengl_es2"
- },
- "opengles32": {
- "label": "OpenGL ES 3.2",
- "type": "compile",
- "test": {
- "include": "GLES3/gl32.h",
- "main": "glFramebufferTexture(GL_TEXTURE_2D, GL_DEPTH_STENCIL_ATTACHMENT, 1, 0);"
- },
- "use": "opengl_es2"
- },
- "qpa_default_platform": {
- "label": "default QPA platform",
- "type": "qpaDefaultPlatform",
- "log": "value"
- },
- "xcb_syslibs": {
- "label": "XCB (extensions)",
- "type": "compile",
- "test": {
- "head": [
- "// xkb.h is using a variable called 'explicit', which is a reserved keyword in C++",
- "#define explicit dont_use_cxx_explicit"
- ],
- "tail": "#undef explicit",
- "include": [
- "xcb/xcb.h",
- "xcb/xcb_image.h",
- "xcb/xcb_keysyms.h",
- "xcb/randr.h",
- "xcb/render.h",
- "xcb/shape.h",
- "xcb/shm.h",
- "xcb/sync.h",
- "xcb/xfixes.h",
- "xcb/xcb_icccm.h",
- "xcb/xcb_renderutil.h",
- "xcb/xkb.h"
- ],
- "main": [
- "int primaryScreen = 0;",
- "xcb_connection_t *c = xcb_connect(\"\", &primaryScreen);",
-
- "/* RENDER */",
- "xcb_generic_error_t *error = nullptr;",
- "xcb_render_query_pict_formats_cookie_t formatsCookie =",
- " xcb_render_query_pict_formats(c);",
- "xcb_render_query_pict_formats_reply_t *formatsReply =",
- " xcb_render_query_pict_formats_reply(c, formatsCookie, &error);",
-
- "/* RENDERUTIL: xcb_renderutil.h include won't compile unless version >= 0.3.9 */",
- "xcb_render_util_find_standard_format(nullptr, XCB_PICT_STANDARD_ARGB_32);",
-
- "/* XKB: This takes more arguments in xcb-xkb < 1.11 */",
- "xcb_xkb_get_kbd_by_name_replies_key_names_value_list_sizeof(nullptr, 0, 0, 0, 0, 0, 0, 0, 0);"
- ]
- },
- "use": "xcb_icccm xcb_image xcb_keysyms xcb_randr xcb_render xcb_renderutil xcb_shape xcb_shm xcb_sync xcb_xfixes xcb_xkb xcb"
- },
- "x11prefix": {
- "label": "X11 prefix",
- "type": "getPkgConfigVariable",
- "pkg-config-args": "x11",
- "pkg-config-variable": "prefix",
- "value": "/usr",
- "log": "value"
- }
- },
-
- "features": {
- "accessibility-atspi-bridge": {
- "label": "ATSPI Bridge",
- "condition": "features.accessibility && features.xcb && features.dbus && libs.atspi",
- "output": [ "privateFeature", "feature" ]
- },
- "directfb": {
- "label": "DirectFB",
- "section": "Platform plugins",
- "autoDetect": false,
- "condition": "libs.directfb",
- "output": [ "privateFeature" ]
- },
- "directwrite": {
- "label": "DirectWrite",
- "emitIf": "config.win32",
- "condition": "libs.dwrite_2",
- "output": [ "privateFeature" ]
- },
- "directwrite3": {
- "label": "DirectWrite 3",
- "emitIf": "config.win32",
- "condition": "features.directwrite && libs.dwrite_3",
- "output": [ "privateFeature" ]
- },
- "direct2d": {
- "label": "Direct 2D",
- "condition": "config.win32 && libs.d2d1",
- "output": [ "privateFeature" ]
- },
- "direct2d1_1": {
- "label": "Direct 2D 1.1",
- "condition": "features.direct2d && libs.d2d1_1",
- "output": [ "privateFeature" ]
- },
- "evdev": {
- "label": "evdev",
- "condition": "features.thread && tests.evdev",
- "output": [ "privateFeature" ]
- },
- "freetype": {
- "label": "FreeType",
- "purpose": "Supports the FreeType 2 font engine (and its supported font formats).",
- "section": "Fonts",
- "output": [ "privateFeature", "feature" ]
- },
- "system-freetype": {
- "label": " Using system FreeType",
- "enable": "input.freetype == 'system'",
- "disable": "input.freetype == 'qt'",
- "autoDetect": "!config.msvc",
- "condition": "features.freetype && libs.freetype",
- "output": [ "privateFeature" ]
- },
- "fontconfig": {
- "label": "Fontconfig",
- "autoDetect": "!config.darwin",
- "condition": "!config.win32 && features.system-freetype && libs.fontconfig",
- "output": [ "privateFeature", "feature" ]
- },
- "gbm": {
- "label": "GBM",
- "condition": "libs.gbm",
- "output": [ "publicQtConfig" ]
- },
- "harfbuzz": {
- "label": "HarfBuzz",
- "output": [ "privateFeature", "feature" ]
- },
- "system-harfbuzz": {
- "label": " Using system HarfBuzz",
- "enable": "input.harfbuzz == 'system'",
- "disable": "input.harfbuzz == 'qt'",
- "autoDetect": "!config.darwin && !config.win32",
- "condition": "features.harfbuzz && libs.harfbuzz",
- "output": [ "privateFeature" ]
- },
- "qqnx_imf": {
- "label": "IMF",
- "emitIf": "config.qnx",
- "condition": "libs.imf",
- "output": [ "privateFeature" ]
- },
- "integrityfb": {
- "label": "INTEGRITY framebuffer",
- "section": "Platform plugins",
- "condition": "config.integrity && tests.integrityfb",
- "output": [ "privateFeature" ]
- },
- "kms": {
- "label": "KMS",
- "condition": "libs.drm",
- "output": [ "publicQtConfig", "privateFeature" ]
- },
- "drm_atomic": {
- "label": "DRM Atomic API",
- "condition": "libs.drm && tests.drm_atomic",
- "output": [ "privateFeature" ]
- },
- "libinput": {
- "label": "libinput",
- "condition": "features.libudev && libs.libinput",
- "output": [ "privateFeature" ]
- },
- "integrityhid": {
- "label": "INTEGRITY HID",
- "condition": "config.integrity && libs.integrityhid",
- "output": [ "privateFeature" ]
- },
- "libinput-axis-api": {
- "label": "axis API in libinput",
- "condition": "features.libinput && tests.libinput_axis_api",
- "output": [ "privateFeature" ]
- },
- "lgmon": {
- "label": "lgmon",
- "emitIf": "config.qnx",
- "condition": "libs.lgmon",
- "output": [ "privateConfig" ]
- },
- "linuxfb": {
- "label": "LinuxFB",
- "section": "Platform plugins",
- "condition": "tests.linuxfb && features.regularexpression",
- "output": [ "privateFeature" ]
- },
- "vsp2": {
- "label": "VSP2",
- "condition": "libs.v4l2",
- "autoDetect": false,
- "output": [ "privateFeature" ]
- },
- "vnc": {
- "label": "VNC",
- "section": "Platform plugins",
- "condition": [
- "config.unix && !config.android && !config.darwin && !config.wasm",
- "features.regularexpression && features.network"
- ],
- "output": [ "privateFeature" ]
- },
- "mtdev": {
- "label": "mtdev",
- "condition": "libs.mtdev",
- "output": [ "privateFeature" ]
- },
- "opengles2": {
- "label": "OpenGL ES 2.0",
- "enable": "input.opengl == 'es2'",
- "disable": "input.opengl == 'desktop' || input.opengl == 'dynamic' || input.opengl == 'no'",
- "condition": "!config.win32 && !config.watchos && !features.opengl-desktop && libs.opengl_es2",
- "output": [
- "publicFeature",
- "publicQtConfig"
- ]
- },
- "opengles3": {
- "label": "OpenGL ES 3.0",
- "condition": "features.opengles2 && tests.opengles3",
- "output": [
- "publicFeature"
- ]
- },
- "opengles31": {
- "label": "OpenGL ES 3.1",
- "condition": "features.opengles3 && tests.opengles31",
- "output": [
- "publicFeature"
- ]
- },
- "opengles32": {
- "label": "OpenGL ES 3.2",
- "condition": "features.opengles31 && tests.opengles32",
- "output": [
- "publicFeature"
- ]
- },
- "opengl-desktop": {
- "label": "Desktop OpenGL",
- "autoDetect": "!config.win32",
- "enable": "input.opengl == 'desktop'",
- "disable": "input.opengl == 'es2' || input.opengl == 'dynamic' || input.opengl == 'no'",
- "condition": "(config.win32 && (config.msvc || libs.opengl)) || (!config.watchos && !config.win32 && !config.wasm && libs.opengl)"
- },
- "opengl-dynamic": {
- "label": "Dynamic OpenGL",
- "disable": "input.opengl == 'no' || input.opengl == 'desktop'",
- "condition": "config.win32",
- "output": [
- { "type": "publicFeature", "name": "dynamicgl" },
- { "type": "define", "name": "QT_OPENGL_DYNAMIC" }
- ]
- },
- "opengl": {
- "label": "OpenGL",
- "condition": "features.opengl-desktop || features.opengl-dynamic || features.opengles2",
- "output": [ "publicFeature", "feature" ]
- },
- "vkgen": {
- "label": "vkgen",
- "condition": "features.xmlstreamreader",
- "output": [ "privateFeature" ]
- },
- "vulkan": {
- "label": "Vulkan",
- "condition": "features.library && features.vkgen && libs.vulkan",
- "output": [ "publicFeature" ]
- },
- "openvg": {
- "label": "OpenVG",
- "condition": "libs.openvg",
- "output": [ "publicFeature" ]
- },
- "egl": {
- "label": "EGL",
- "condition": "(features.opengl || features.openvg) && libs.egl && (features.dlopen || !config.unix || config.integrity)",
- "output": [ "publicFeature", "feature" ]
- },
- "egl_x11": {
- "label": "EGL on X11",
- "condition": "features.thread && features.egl && tests.egl-x11",
- "output": [ "privateFeature" ]
- },
- "eglfs": {
- "label": "EGLFS",
- "section": "Platform plugins",
- "condition": "!config.android && !config.darwin && !config.win32 && !config.wasm && features.egl",
- "output": [ "privateFeature" ]
- },
- "eglfs_brcm": {
- "label": "EGLFS Raspberry Pi",
- "condition": "features.eglfs && tests.egl-brcm",
- "output": [ "privateFeature" ]
- },
- "eglfs_egldevice": {
- "label": "EGLFS EGLDevice",
- "condition": "features.eglfs && tests.egl-egldevice && features.kms",
- "output": [ "privateFeature" ]
- },
- "eglfs_gbm": {
- "label": "EGLFS GBM",
- "condition": "features.eglfs && features.gbm && features.kms",
- "output": [ "privateFeature" ]
- },
- "eglfs_vsp2": {
- "label": "EGLFS VSP2",
- "condition": "features.eglfs && features.gbm && features.kms && features.vsp2",
- "output": [ "privateFeature" ]
- },
- "eglfs_mali": {
- "label": "EGLFS Mali",
- "condition": "features.eglfs && (tests.egl-mali || tests.egl-mali-2)",
- "output": [ "privateFeature" ]
- },
- "eglfs_viv": {
- "label": "EGLFS i.Mx6",
- "condition": "features.eglfs && tests.egl-viv",
- "output": [ "privateFeature" ]
- },
- "eglfs_rcar": {
- "label": "EGLFS RCAR",
- "condition": "config.integrity && features.eglfs && tests.egl-rcar",
- "output": [ "privateFeature" ]
- },
- "eglfs_viv_wl": {
- "label": "EGLFS i.Mx6 Wayland",
- "condition": "features.eglfs_viv && libs.wayland_server",
- "output": [ "privateFeature" ]
- },
- "eglfs_openwfd": {
- "label": "EGLFS OpenWFD",
- "condition": "config.integrity && features.eglfs && tests.egl-openwfd",
- "output": [ "privateFeature" ]
- },
- "eglfs_x11": {
- "label": "EGLFS X11",
- "condition": "features.eglfs && features.xcb-xlib && features.egl_x11",
- "output": [ "privateFeature" ]
- },
- "gif": {
- "label": "GIF",
- "condition": "features.imageformatplugin",
- "output": [
- "privateFeature",
- { "type": "define", "negative": true, "name": "QT_NO_IMAGEFORMAT_GIF" }
- ]
- },
- "ico": {
- "label": "ICO",
- "condition": "features.imageformatplugin",
- "output": [ "privateFeature", "feature" ]
- },
- "jpeg": {
- "label": "JPEG",
- "disable": "input.libjpeg == 'no'",
- "condition": "features.imageformatplugin",
- "output": [
- "privateFeature",
- { "type": "define", "negative": true, "name": "QT_NO_IMAGEFORMAT_JPEG" }
- ]
- },
- "system-jpeg": {
- "label": " Using system libjpeg",
- "disable": "input.libjpeg == 'qt'",
- "enable": "input.libjpeg == 'system'",
- "condition": "features.jpeg && libs.libjpeg",
- "output": [ "privateFeature" ]
- },
- "png": {
- "label": "PNG",
- "disable": "input.libpng == 'no'",
- "output": [
- "privateFeature",
- { "type": "define", "negative": true, "name": "QT_NO_IMAGEFORMAT_PNG" }
- ]
- },
- "system-png": {
- "label": " Using system libpng",
- "disable": "input.libpng == 'qt'",
- "enable": "input.libpng == 'system'",
- "autoDetect": "features.system-zlib",
- "condition": "features.png && libs.libpng",
- "output": [ "privateFeature" ]
- },
- "imageio-text-loading": {
- "label": "Image Text section loading",
- "output": [
- "privateFeature",
- { "type": "define", "negative": true, "name": "QT_NO_IMAGEIO_TEXT_LOADING" }
- ]
- },
- "qpa_default_platform": {
- "label": "QPA default platform",
- "condition": "features.gui",
- "output": [
- { "type": "define", "name": "QT_QPA_DEFAULT_PLATFORM_NAME", "value": "tests.qpa_default_platform.name" },
- { "type": "varAssign", "public": true, "name": "QT_DEFAULT_QPA_PLUGIN", "value": "tests.qpa_default_platform.plugin",
- "condition": "!features.shared" }
- ]
- },
- "sessionmanager": {
- "label": "Session Management",
- "purpose": "Provides an interface to the windowing system's session management.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "tslib": {
- "label": "tslib",
- "condition": "libs.tslib",
- "output": [ "privateFeature" ]
- },
- "tuiotouch": {
- "label": "TuioTouch",
- "purpose": "Provides the TuioTouch input plugin.",
- "condition": "features.network && features.udpsocket",
- "output": [ "privateFeature" ]
- },
- "xcb": {
- "label": "XCB",
- "section": "Platform plugins",
- "autoDetect": "!config.darwin",
- "condition": "features.thread && libs.xcb && tests.xcb_syslibs && features.xkbcommon-x11",
- "output": [ "privateFeature" ]
- },
- "x11-prefix": {
- "label": "X11 prefix",
- "emitIf": "features.xcb",
- "output": [ { "type": "varAssign", "name": "QMAKE_X11_PREFIX", "value": "tests.x11prefix.value" } ]
- },
- "xcb-glx-plugin": {
- "label": "GLX Plugin",
- "emitIf": "features.xcb",
- "condition": "features.xcb-xlib && features.opengl && !features.opengles2",
- "output": [ "publicFeature" ]
- },
- "xcb-glx": {
- "label": " XCB GLX",
- "emitIf": "features.xcb && features.xcb-glx-plugin",
- "condition": "libs.xcb_glx",
- "output": [ "privateFeature" ]
- },
- "xcb-egl-plugin": {
- "label": "EGL-X11 Plugin",
- "emitIf": "features.xcb",
- "condition": "features.egl_x11 && features.opengl",
- "output": [ "privateFeature" ]
- },
- "xcb-native-painting": {
- "label": "Native painting (experimental)",
- "autoDetect": false,
- "emitIf": "features.xcb",
- "condition": "features.xcb-xlib && features.fontconfig && libs.xrender",
- "output": [ "privateFeature" ]
- },
- "xrender": {
- "label": "XRender for native painting",
- "emitIf": "features.xcb && features.xcb-native-painting",
- "condition": "features.xcb-native-painting",
- "output": [ "privateFeature" ]
- },
- "xcb-xlib": {
- "label": "XCB Xlib",
- "condition": "features.xlib && libs.xcb_xlib",
- "output": [ "privateFeature" ]
- },
- "xcb-sm": {
- "label": "xcb-sm",
- "emitIf": "features.xcb",
- "condition": "features.sessionmanager && libs.x11sm",
- "output": [ "privateFeature" ]
- },
- "system-xcb-xinput": {
- "label": "Using system-provided xcb-xinput",
- "emitIf": "features.xcb",
- "disable": "input.bundled-xcb-xinput == 'yes'",
- "enable": "input.bundled-xcb-xinput == 'no'",
- "condition": "libs.xcb_xinput",
- "output": [ "privateFeature" ]
- },
- "xkbcommon": {
- "label": "xkbcommon",
- "condition": "libs.xkbcommon",
- "output": [ "privateFeature" ]
- },
- "xkbcommon-x11": {
- "label": "xkbcommon-x11",
- "condition": "features.xkbcommon && libs.xkbcommon_x11",
- "output": [ "privateFeature" ]
- },
- "xlib": {
- "label": "XLib",
- "autoDetect": "!config.darwin || features.xcb",
- "condition": "libs.xlib",
- "output": [ "privateFeature" ]
- },
- "texthtmlparser": {
- "label": "HtmlParser",
- "purpose": "Provides a parser for HTML.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "textmarkdownreader": {
- "label": "MarkdownReader",
- "disable": "input.libmd4c == 'no'",
- "enable": "input.libmd4c == 'system' || input.libmd4c == 'qt' || input.libmd4c == 'yes'",
- "purpose": "Provides a Markdown (CommonMark and GitHub) reader",
- "section": "Kernel",
- "output": [ "publicFeature" ]
- },
- "system-textmarkdownreader": {
- "label": " Using system libmd4c",
- "disable": "input.libmd4c == 'qt'",
- "enable": "input.libmd4c == 'system'",
- "section": "Kernel",
- "condition": "features.textmarkdownreader && libs.libmd4c",
- "output": [ "publicFeature" ]
- },
- "textmarkdownwriter": {
- "label": "MarkdownWriter",
- "purpose": "Provides a Markdown (CommonMark) writer",
- "section": "Kernel",
- "output": [ "publicFeature" ]
- },
- "textodfwriter": {
- "label": "OdfWriter",
- "purpose": "Provides an ODF writer.",
- "section": "Kernel",
- "condition": "features.xmlstreamwriter",
- "output": [ "publicFeature", "feature" ]
- },
- "cssparser": {
- "label": "CssParser",
- "purpose": "Provides a parser for Cascading Style Sheets.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "draganddrop": {
- "label": "Drag and Drop",
- "purpose": "Supports the drag and drop mechansim.",
- "section": "Kernel",
- "condition": "features.imageformat_xpm",
- "output": [ "publicFeature", "feature" ]
- },
- "action": {
- "label": "Q(Gui)Action(Group)",
- "purpose": "Provides abstract user interface actions.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "cursor": {
- "label": "QCursor",
- "purpose": "Provides mouse cursors.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "clipboard": {
- "label": "QClipboard",
- "purpose": "Provides cut and paste operations.",
- "section": "Kernel",
- "condition": "!config.integrity && !config.qnx && !config.rtems",
- "output": [ "publicFeature", "feature" ]
- },
- "wheelevent": {
- "label": "QWheelEvent",
- "purpose": "Supports wheel events.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "tabletevent": {
- "label": "QTabletEvent",
- "purpose": "Supports tablet events.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "im": {
- "label": "QInputContext",
- "purpose": "Provides complex input methods.",
- "section": "Kernel",
- "condition": "features.library",
- "output": [ "publicFeature", "feature" ]
- },
- "highdpiscaling": {
- "label": "High DPI Scaling",
- "purpose": "Provides automatic scaling of DPI-unaware applications on high-DPI displays.",
- "section": "Kernel",
- "output": [ "publicFeature", "feature" ]
- },
- "validator": {
- "label": "QValidator",
- "purpose": "Supports validation of input text.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "standarditemmodel": {
- "label": "QStandardItemModel",
- "purpose": "Provides a generic model for storing custom data.",
- "section": "ItemViews",
- "condition": "features.itemmodel",
- "output": [ "publicFeature", "feature" ]
- },
- "filesystemmodel": {
- "label": "QFileSystemModel",
- "purpose": "Provides a data model for the local filesystem.",
- "section": "File I/O",
- "condition": "features.itemmodel",
- "output": [ "publicFeature", "feature" ]
- },
- "imageformatplugin": {
- "label": "QImageIOPlugin",
- "purpose": "Provides a base for writing a image format plugins.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "movie": {
- "label": "QMovie",
- "purpose": "Supports animated images.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "imageformat_bmp": {
- "label": "BMP Image Format",
- "purpose": "Supports Microsoft's Bitmap image file format.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "imageformat_ppm": {
- "label": "PPM Image Format",
- "purpose": "Supports the Portable Pixmap image file format.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "imageformat_xbm": {
- "label": "XBM Image Format",
- "purpose": "Supports the X11 Bitmap image file format.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "imageformat_xpm": {
- "label": "XPM Image Format",
- "purpose": "Supports the X11 Pixmap image file format.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "imageformat_png": {
- "label": "PNG Image Format",
- "purpose": "Supports the Portable Network Graphics image file format.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "imageformat_jpeg": {
- "label": "JPEG Image Format",
- "purpose": "Supports the Joint Photographic Experts Group image file format.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "image_heuristic_mask": {
- "label": "QImage::createHeuristicMask()",
- "purpose": "Supports creating a 1-bpp heuristic mask for images.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "image_text": {
- "label": "Image Text",
- "purpose": "Supports image file text strings.",
- "section": "Images",
- "output": [ "publicFeature", "feature" ]
- },
- "picture": {
- "label": "QPicture",
- "purpose": "Supports recording and replaying QPainter commands.",
- "section": "Painting",
- "output": [ "publicFeature", "feature" ]
- },
- "colornames": {
- "label": "Color Names",
- "purpose": "Supports color names such as \"red\", used by QColor and by some HTML documents.",
- "section": "Painting",
- "output": [ "publicFeature", "feature" ]
- },
- "pdf": {
- "label": "QPdf",
- "purpose": "Provides a PDF backend for QPainter.",
- "section": "Painting",
- "condition": "features.temporaryfile",
- "output": [ "publicFeature", "feature" ]
- },
- "desktopservices": {
- "label": "QDesktopServices",
- "purpose": "Provides methods for accessing common desktop services.",
- "section": "Utilities",
- "output": [ "publicFeature", "feature" ]
- },
- "systemtrayicon": {
- "label": "QSystemTrayIcon",
- "purpose": "Provides an icon for an application in the system tray.",
- "section": "Utilities",
- "condition": "features.temporaryfile",
- "output": [ "publicFeature", "feature" ]
- },
- "accessibility": {
- "label": "Accessibility",
- "purpose": "Provides accessibility support.",
- "section": "Utilities",
- "condition": "features.properties",
- "output": [ "publicFeature", "feature" ]
- },
- "multiprocess": {
- "label": "Multi process",
- "purpose": "Provides support for detecting the desktop environment, launching external processes and opening URLs.",
- "section": "Utilities",
- "condition": "!config.integrity && !config.rtems",
- "output": [ "privateFeature" ]
- },
- "whatsthis": {
- "label": "QWhatsThis",
- "purpose": "Supports displaying \"What's this\" help.",
- "section": "Widget Support",
- "output": [ "publicFeature", "feature" ]
- },
- "raster-64bit": {
- "label": "QPainter - 64 bit raster",
- "purpose": "Internal painting support for 64 bit (16 bpc) rasterization.",
- "section": "Painting",
- "output": [ "privateFeature" ]
- },
- "raster-fp": {
- "label": "QPainter - floating point raster",
- "purpose": "Internal painting support for floating point rasterization.",
- "section": "Painting",
- "output": [ "privateFeature" ]
- },
- "undocommand": {
- "label": "QUndoCommand",
- "purpose": "Applies (redo or) undo of a single change in a document.",
- "section": "Utilities",
- "output": [ "publicFeature", "feature" ]
- },
- "undostack": {
- "label": "QUndoStack",
- "purpose": "Provides the ability to (redo or) undo a list of changes in a document.",
- "section": "Utilities",
- "condition": "features.undocommand",
- "output": [ "publicFeature", "feature" ]
- },
- "undogroup": {
- "label": "QUndoGroup",
- "purpose": "Provides the ability to cluster QUndoCommands.",
- "section": "Utilities",
- "condition": "features.undostack",
- "output": [ "publicFeature", "feature" ]
- }
- },
-
- "earlyReport": [
- {
- "type": "error",
- "condition": "input.xcb != '' && input.xcb != 'no' && input.xkbcommon == 'no'",
- "message": "XCB plugin requires xkbcommon and xkbcommon-x11, but -no-xkbcommon was provided."
- }
- ],
-
- "report": [
- {
- "type": "note",
- "condition": "features.xcb && config.darwin",
- "message": "XCB support on macOS is minimal and untested. Some features will not work properly or at all (e.g. OpenGL, desktop services or accessibility), or may depend on your system and XQuartz setup."
- },
- {
- "type": "note",
- "condition": "features.accessibility && features.xcb && !features.accessibility-atspi-bridge",
- "message": "Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing."
- },
- {
- "type": "warning",
- "condition": "features.gui && config.linux && !config.android && !features.xcb && !features.eglfs && !features.directfb && !features.linuxfb",
- "message": "No QPA platform plugin enabled! This will produce a Qt that cannot run GUI applications. See \"Platform backends\" in the output of --help."
- },
- {
- "type": "warning",
- "condition": "config.darwin && features.system-harfbuzz",
- "message": "On OS X, AAT is supported only with -qt-harfbuzz."
- },
- {
- "type": "error",
- "condition": "features.gui && !config.watchos && input.opengl != 'no' && !features.opengl-desktop && !features.opengles2 && !features.opengl-dynamic",
- "message": "The OpenGL functionality tests failed! You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2], QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform."
- },
- {
- "type": "warning",
- "condition": "!features.accessibility",
- "message": "Accessibility disabled. This configuration of Qt is unsupported."
- }
- ],
-
- "summary": [
- {
- "section": "Qt Gui",
- "entries": [
- "accessibility",
- "freetype",
- "system-freetype",
- "harfbuzz",
- "system-harfbuzz",
- "fontconfig",
- {
- "section": "Image formats",
- "entries": [
- "gif", "ico", "jpeg", "system-jpeg", "png", "system-png"
- ]
- },
- {
- "section": "Text formats",
- "entries": [
- "texthtmlparser", "cssparser", "textodfwriter", "textmarkdownreader", "system-textmarkdownreader", "textmarkdownwriter"
- ]
- },
- "egl",
- "openvg",
- {
- "section": "OpenGL",
- "entries": [
- "opengl-desktop",
- {
- "type": "feature",
- "args": "opengl-dynamic",
- "condition": "config.win32"
- },
- "opengles2",
- "opengles3",
- "opengles31",
- "opengles32"
- ]
- },
- "vulkan",
- "sessionmanager"
- ]
- },
- {
- "section": "Features used by QPA backends",
- "entries": [
- "evdev",
- "libinput",
- "integrityhid",
- "mtdev",
- "tslib",
- "xkbcommon",
- {
- "section": "X11 specific",
- "entries": [
- "xlib",
- "xcb-xlib",
- "egl_x11",
- "xkbcommon-x11"
- ]
- }
- ]
- },
- {
- "section": "QPA backends",
- "entries": [
- "directfb", "eglfs",
- {
- "section": "EGLFS details",
- "condition": "features.eglfs",
- "entries": [
- "eglfs_openwfd", "eglfs_viv", "eglfs_viv_wl", "eglfs_rcar", "eglfs_egldevice", "eglfs_gbm", "eglfs_vsp2", "eglfs_mali", "eglfs_brcm", "eglfs_x11"
- ]
- },
- "linuxfb", "vnc",
- {
- "type": "feature",
- "condition": "config.integrity",
- "args": "integrityfb"
- },
- {
- "section": "QNX",
- "condition": "config.qnx",
- "entries": [
- "lgmon", "qqnx_imf"
- ]
- },
- {
- "section": "XCB",
- "condition": "features.xcb",
- "entries": [
- "system-xcb-xinput", "xcb-native-painting",
- {
- "section": "GL integrations",
- "entries": [
- "xcb-glx-plugin",
- "xcb-glx",
- "xcb-egl-plugin"
- ]
- }
- ]
- },
- {
- "section": "Windows",
- "condition": "config.win32",
- "entries": [
- "direct2d", "directwrite", "directwrite3"
- ]
- }
- ]
- }
- ]
-}
diff --git a/src/network/.prev_configure.cmake b/src/network/.prev_configure.cmake
deleted file mode 100644
index 4cb10dea70..0000000000
--- a/src/network/.prev_configure.cmake
+++ /dev/null
@@ -1,433 +0,0 @@
-
-
-#### Inputs
-
-
-
-#### Libraries
-
-qt_find_package(WrapBrotli PROVIDED_TARGETS WrapBrotli::WrapBrotliDec MODULE_NAME network QMAKE_LIB brotli)
-qt_find_package(Libproxy PROVIDED_TARGETS PkgConfig::Libproxy MODULE_NAME network QMAKE_LIB libproxy)
-qt_find_package(WrapOpenSSLHeaders PROVIDED_TARGETS WrapOpenSSLHeaders::WrapOpenSSLHeaders MODULE_NAME network QMAKE_LIB openssl/nolink)
-# openssl_headers
-qt_config_compile_test(openssl_headers
- LIBRARIES
- WrapOpenSSLHeaders::WrapOpenSSLHeaders
- CODE
-"#include <openssl/ssl.h>
-#include <openssl/opensslv.h>
-#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10101000L
-# error OpenSSL >= 1.1.1 is required
-#endif
-#if !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES)
-# error OpenSSL was reported as >= 1.1.1 but is missing required features, possibly it is libressl which is unsupported
-#endif
-
-int main(void)
-{
- /* BEGIN TEST: */
- /* END TEST: */
- return 0;
-}
-")
-
-qt_find_package(WrapOpenSSL PROVIDED_TARGETS WrapOpenSSL::WrapOpenSSL MODULE_NAME network QMAKE_LIB openssl)
-# openssl
-qt_config_compile_test(openssl
- LIBRARIES
- WrapOpenSSL::WrapOpenSSL
- CODE
-"#include <openssl/ssl.h>
-#include <openssl/opensslv.h>
-#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10101000L
-# error OpenSSL >= 1.1.1 is required
-#endif
-#if !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES)
-# error OpenSSL was reported as >= 1.1.1 but is missing required features, possibly it is libressl which is unsupported
-#endif
-
-int main(void)
-{
- /* BEGIN TEST: */
-SSL_free(SSL_new(0));
- /* END TEST: */
- return 0;
-}
-")
-
-qt_find_package(GSSAPI PROVIDED_TARGETS GSSAPI::GSSAPI MODULE_NAME network QMAKE_LIB gssapi)
-
-
-#### Tests
-
-# getifaddrs
-qt_config_compile_test(getifaddrs
- LABEL "getifaddrs()"
- CODE
-"#include <sys/types.h>
-#include <sys/socket.h>
-#include <net/if.h>
-#include <ifaddrs.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-ifaddrs *list;
-getifaddrs(&list);
-freeifaddrs(list);
- /* END TEST: */
- return 0;
-}
-"# FIXME: use: unmapped library: network
-)
-
-# ifr_index
-qt_config_compile_test(ifr_index
- LABEL "ifr_index"
- CODE
-"#include <net/if.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-struct ifreq req;
-req.ifr_index = 0;
- /* END TEST: */
- return 0;
-}
-")
-
-# ipv6ifname
-qt_config_compile_test(ipv6ifname
- LABEL "IPv6 ifname"
- CODE
-"#include <sys/types.h>
-#include <sys/socket.h>
-#include <net/if.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-char buf[IFNAMSIZ];
-if_nametoindex(\"eth0\");
-if_indextoname(1, buf);
-if_freenameindex(if_nameindex());
- /* END TEST: */
- return 0;
-}
-"# FIXME: use: unmapped library: network
-)
-
-# linux-netlink
-qt_config_compile_test(linux_netlink
- LABEL "Linux AF_NETLINK sockets"
- CODE
-"#include <asm/types.h>
-#include <linux/netlink.h>
-#include <linux/rtnetlink.h>
-#include <sys/socket.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-struct rtattr rta = { };
-struct ifinfomsg ifi = {};
-struct ifaddrmsg ifa = {};
-struct ifa_cacheinfo ci;
-ci.ifa_prefered = ci.ifa_valid = 0;
-(void)RTM_NEWLINK; (void)RTM_NEWADDR;
-(void)IFLA_ADDRESS; (void)IFLA_IFNAME;
-(void)IFA_ADDRESS; (void)IFA_LABEL; (void)IFA_CACHEINFO;
-(void)(IFA_F_SECONDARY | IFA_F_DEPRECATED | IFA_F_PERMANENT | IFA_F_MANAGETEMPADDR);
- /* END TEST: */
- return 0;
-}
-")
-
-# sctp
-qt_config_compile_test(sctp
- LABEL "SCTP support"
- CODE
-"#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netinet/sctp.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-sctp_initmsg sctpInitMsg;
-socklen_t sctpInitMsgSize = sizeof(sctpInitMsg);
-(void) socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP);
-(void) getsockopt(-1, SOL_SCTP, SCTP_INITMSG, &sctpInitMsg, &sctpInitMsgSize);
- /* END TEST: */
- return 0;
-}
-"# FIXME: use: unmapped library: network
-)
-
-# dtls
-qt_config_compile_test(dtls
- LABEL "DTLS support in OpenSSL"
- LIBRARIES
- WrapOpenSSLHeaders::WrapOpenSSLHeaders
- CODE
-"#include <openssl/ssl.h>
-#if defined(OPENSSL_NO_DTLS) || !defined(DTLS1_2_VERSION)
-# error OpenSSL without DTLS support
-#endif
-
-int main(void)
-{
- /* BEGIN TEST: */
- /* END TEST: */
- return 0;
-}
-")
-
-# ocsp
-qt_config_compile_test(ocsp
- LABEL "OCSP stapling support in OpenSSL"
- LIBRARIES
- WrapOpenSSLHeaders::WrapOpenSSLHeaders
- CODE
-"#include <openssl/ssl.h>
-#include <openssl/ocsp.h>
-#if defined(OPENSSL_NO_OCSP) || defined(OPENSSL_NO_TLSEXT)
-# error OpenSSL without OCSP stapling
-#endif
-
-int main(void)
-{
- /* BEGIN TEST: */
- /* END TEST: */
- return 0;
-}
-")
-
-# networklistmanager
-qt_config_compile_test(networklistmanager
- LABEL "Network List Manager"
- CODE
-"#include <netlistmgr.h>
-#include <wrl/client.h>
-
-int main(void)
-{
- /* BEGIN TEST: */
-using namespace Microsoft::WRL;
-ComPtr<INetworkListManager> networkListManager;
-ComPtr<IConnectionPoint> connectionPoint;
-ComPtr<IConnectionPointContainer> connectionPointContainer;
-networkListManager.As(&connectionPointContainer);
-connectionPointContainer->FindConnectionPoint(IID_INetworkConnectionEvents, &connectionPoint);
- /* END TEST: */
- return 0;
-}
-"# FIXME: qmake: LIBS += -lOle32
-)
-
-
-
-#### Features
-
-qt_feature("getifaddrs" PUBLIC
- LABEL "getifaddrs()"
- CONDITION TEST_getifaddrs
-)
-qt_feature_definition("getifaddrs" "QT_NO_GETIFADDRS" NEGATE VALUE "1")
-qt_feature("ifr_index" PRIVATE
- LABEL "ifr_index"
- CONDITION TEST_ifr_index
-)
-qt_feature("ipv6ifname" PUBLIC
- LABEL "IPv6 ifname"
- CONDITION TEST_ipv6ifname
-)
-qt_feature_definition("ipv6ifname" "QT_NO_IPV6IFNAME" NEGATE VALUE "1")
-qt_feature("libproxy" PRIVATE
- LABEL "libproxy"
- AUTODETECT OFF
- CONDITION Libproxy_FOUND
-)
-qt_feature("linux-netlink" PRIVATE
- LABEL "Linux AF_NETLINK"
- CONDITION LINUX AND NOT ANDROID AND TEST_linux_netlink
-)
-qt_feature("openssl" PRIVATE
- LABEL "OpenSSL"
- CONDITION QT_FEATURE_openssl_runtime OR QT_FEATURE_openssl_linked
- ENABLE false
-)
-qt_feature_definition("openssl" "QT_NO_OPENSSL" NEGATE)
-qt_feature_config("openssl" QMAKE_PUBLIC_QT_CONFIG)
-qt_feature("openssl-runtime"
- AUTODETECT NOT WASM
- CONDITION TEST_openssl_headers
- ENABLE INPUT_openssl STREQUAL 'yes' OR INPUT_openssl STREQUAL 'runtime'
- DISABLE INPUT_openssl STREQUAL 'no' OR INPUT_openssl STREQUAL 'linked' OR INPUT_ssl STREQUAL 'no'
-)
-qt_feature("openssl-linked" PRIVATE
- LABEL " Qt directly linked to OpenSSL"
- AUTODETECT OFF
- CONDITION TEST_openssl
- ENABLE INPUT_openssl STREQUAL 'linked'
-)
-qt_feature_definition("openssl-linked" "QT_LINKED_OPENSSL")
-qt_feature("securetransport" PUBLIC
- LABEL "SecureTransport"
- CONDITION APPLE
- DISABLE INPUT_ssl STREQUAL 'no'
-)
-qt_feature_definition("securetransport" "QT_SECURETRANSPORT")
-qt_feature("schannel" PUBLIC
- LABEL "Schannel"
- CONDITION WIN32
- DISABLE INPUT_ssl STREQUAL 'no'
-)
-qt_feature_definition("schannel" "QT_SCHANNEL")
-qt_feature("ssl" PUBLIC
- LABEL "SSL"
- CONDITION QT_FEATURE_securetransport OR QT_FEATURE_openssl OR QT_FEATURE_schannel
-)
-qt_feature_definition("ssl" "QT_NO_SSL" NEGATE VALUE "1")
-qt_feature("dtls" PUBLIC
- SECTION "Networking"
- LABEL "DTLS"
- PURPOSE "Provides a DTLS implementation"
- CONDITION QT_FEATURE_openssl AND QT_FEATURE_udpsocket AND TEST_dtls
-)
-qt_feature("ocsp" PUBLIC
- SECTION "Networking"
- LABEL "OCSP-stapling"
- PURPOSE "Provides OCSP stapling support"
- CONDITION QT_FEATURE_opensslv11 AND TEST_ocsp
-)
-qt_feature("opensslv11" PUBLIC
- LABEL "OpenSSL 1.1"
- CONDITION QT_FEATURE_openssl
-)
-qt_feature("sctp" PUBLIC
- LABEL "SCTP"
- AUTODETECT OFF
- CONDITION TEST_sctp
-)
-qt_feature_definition("sctp" "QT_NO_SCTP" NEGATE VALUE "1")
-qt_feature("system-proxies" PRIVATE
- LABEL "Use system proxies"
-)
-qt_feature("http" PUBLIC
- SECTION "Networking"
- LABEL "HTTP"
- PURPOSE "Provides support for the Hypertext Transfer Protocol in QNetworkAccessManager."
- CONDITION QT_FEATURE_thread
-)
-qt_feature_definition("http" "QT_NO_HTTP" NEGATE VALUE "1")
-qt_feature("udpsocket" PUBLIC
- SECTION "Networking"
- LABEL "QUdpSocket"
- PURPOSE "Provides access to UDP sockets."
-)
-qt_feature_definition("udpsocket" "QT_NO_UDPSOCKET" NEGATE VALUE "1")
-qt_feature("networkproxy" PUBLIC
- SECTION "Networking"
- LABEL "QNetworkProxy"
- PURPOSE "Provides network proxy support."
-)
-qt_feature_definition("networkproxy" "QT_NO_NETWORKPROXY" NEGATE VALUE "1")
-qt_feature("socks5" PUBLIC
- SECTION "Networking"
- LABEL "SOCKS5"
- PURPOSE "Provides SOCKS5 support in QNetworkProxy."
- CONDITION QT_FEATURE_networkproxy
-)
-qt_feature_definition("socks5" "QT_NO_SOCKS5" NEGATE VALUE "1")
-qt_feature("networkinterface" PUBLIC
- SECTION "Networking"
- LABEL "QNetworkInterface"
- PURPOSE "Supports enumerating a host's IP addresses and network interfaces."
- CONDITION NOT WASM
-)
-qt_feature_definition("networkinterface" "QT_NO_NETWORKINTERFACE" NEGATE VALUE "1")
-qt_feature("networkdiskcache" PUBLIC
- SECTION "Networking"
- LABEL "QNetworkDiskCache"
- PURPOSE "Provides a disk cache for network resources."
- CONDITION QT_FEATURE_temporaryfile
-)
-qt_feature_definition("networkdiskcache" "QT_NO_NETWORKDISKCACHE" NEGATE VALUE "1")
-qt_feature("brotli" PUBLIC
- SECTION "Networking"
- LABEL "Brotli Decompression Support"
- PURPOSE "Support for downloading and decompressing resources compressed with Brotli through QNetworkAccessManager."
- CONDITION WrapBrotli_FOUND
-)
-qt_feature_definition("brotli" "QT_NO_BROTLI" NEGATE VALUE "1")
-qt_feature("localserver" PUBLIC
- SECTION "Networking"
- LABEL "QLocalServer"
- PURPOSE "Provides a local socket based server."
- CONDITION QT_FEATURE_temporaryfile
-)
-qt_feature_definition("localserver" "QT_NO_LOCALSERVER" NEGATE VALUE "1")
-qt_feature("dnslookup" PUBLIC
- SECTION "Networking"
- LABEL "QDnsLookup"
- PURPOSE "Provides API for DNS lookups."
-)
-qt_feature("gssapi" PUBLIC
- SECTION "Networking"
- LABEL "GSSAPI"
- PURPOSE "Enable SPNEGO authentication through GSSAPI"
- CONDITION NOT WIN32 AND GSSAPI_FOUND
-)
-qt_feature_definition("gssapi" "QT_NO_GSSAPI" NEGATE VALUE "1")
-qt_feature("sspi" PUBLIC
- SECTION "Networking"
- LABEL "SSPI"
- PURPOSE "Enable NTLM/SPNEGO authentication through SSPI"
- CONDITION WIN32
-)
-qt_feature_definition("sspi" "QT_NO_SSPI" NEGATE VALUE "1")
-qt_feature("networklistmanager" PRIVATE
- SECTION "Networking"
- LABEL "Network List Manager"
- PURPOSE "Use Network List Manager to keep track of network connectivity"
- CONDITION WIN32 AND TEST_networklistmanager
-)
-qt_feature("topleveldomain" PUBLIC
- SECTION "Networking"
- LABEL "qTopLevelDomain()"
- PURPOSE "Provides support for extracting the top level domain from URLs. If enabled, a binary dump of the Public Suffix List (http://www.publicsuffix.org, Mozilla License) is included. The data is then also used in QNetworkCookieJar::validateCookie."
-)
-qt_configure_add_summary_section(NAME "Qt Network")
-qt_configure_add_summary_entry(ARGS "getifaddrs")
-qt_configure_add_summary_entry(ARGS "ipv6ifname")
-qt_configure_add_summary_entry(ARGS "libproxy")
-qt_configure_add_summary_entry(
- ARGS "linux-netlink"
- CONDITION LINUX
-)
-qt_configure_add_summary_entry(
- ARGS "securetransport"
- CONDITION APPLE
-)
-qt_configure_add_summary_entry(
- ARGS "schannel"
- CONDITION WIN32
-)
-qt_configure_add_summary_entry(ARGS "openssl")
-qt_configure_add_summary_entry(ARGS "openssl-linked")
-qt_configure_add_summary_entry(ARGS "opensslv11")
-qt_configure_add_summary_entry(ARGS "dtls")
-qt_configure_add_summary_entry(ARGS "ocsp")
-qt_configure_add_summary_entry(ARGS "sctp")
-qt_configure_add_summary_entry(ARGS "system-proxies")
-qt_configure_add_summary_entry(ARGS "gssapi")
-qt_configure_add_summary_entry(ARGS "brotli")
-qt_configure_end_summary_section() # end of "Qt Network" section
-qt_configure_add_report_entry(
- TYPE NOTE
- MESSAGE "When linking against OpenSSL, you can override the default library names through OPENSSL_LIBS. For example: OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked"
- CONDITION QT_FEATURE_openssl_linked AND ( NOT TEST_openssl.source EQUAL 0 ) AND INPUT_openssl.prefix STREQUAL '' AND INPUT_openssl.libs STREQUAL '' AND INPUT_openssl.libs.debug STREQUAL '' OR FIXME
-)
diff --git a/src/network/configure.json b/src/network/configure.json
deleted file mode 100644
index 54a323eb7a..0000000000
--- a/src/network/configure.json
+++ /dev/null
@@ -1,484 +0,0 @@
-{
- "module": "network",
- "depends": [
- "core"
- ],
- "testDir": "../../config.tests",
-
- "commandline": {
- "assignments": {
- "OPENSSL_PATH": "openssl.prefix"
- },
- "options": {
- "libproxy": "boolean",
- "openssl": { "type": "optionalString", "values": [ "no", "yes", "linked", "runtime" ] },
- "openssl-linked": { "type": "void", "name": "openssl", "value": "linked" },
- "openssl-runtime": { "type": "void", "name": "openssl", "value": "runtime" },
- "dtls": "boolean",
- "ocsp": "boolean",
- "sctp": "boolean",
- "securetransport": "boolean",
- "schannel": "boolean",
- "ssl": "boolean",
- "system-proxies": "boolean"
- }
- },
-
- "libraries": {
- "brotli": {
- "label": "Brotli Decompression",
- "test": {
- "main": [
- "BrotliDecoderState *state = BrotliDecoderCreateInstance(nullptr, nullptr, nullptr);"
- ]
- },
- "headers": [
- "brotli/decode.h"
- ],
- "sources": [
- { "type": "pkgConfig", "args": "libbrotlidec" },
- "-lbrotlidec"
- ]
- },
- "network": {
- "sources": [
- { "type": "makeSpec", "spec": "NETWORK" }
- ]
- },
- "libproxy": {
- "label": "libproxy",
- "test": {
- "main": [
- "pxProxyFactory *factory = px_proxy_factory_new();",
- "px_proxy_factory_get_proxies(factory, \"http://qt-project.org\");",
- "px_proxy_factory_free(factory);"
- ]
- },
- "headers": "proxy.h",
- "sources": [
- "-lproxy"
- ]
- },
- "openssl_headers": {
- "label": "OpenSSL Headers",
- "export": "openssl",
- "test": {
- "tail": [
- "#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10101000L",
- "# error OpenSSL >= 1.1.1 is required",
- "#endif",
- "#if !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES)",
- "# error OpenSSL was reported as >= 1.1.1 but is missing required features, possibly it is libressl which is unsupported",
- "#endif"
- ]
- },
- "headers": [ "openssl/ssl.h", "openssl/opensslv.h" ],
- "sources": [
- {
- "comment": "placeholder for OPENSSL_PATH",
- "libs": ""
- }
- ]
- },
- "openssl": {
- "label": "OpenSSL",
- "test": {
- "inherit": "openssl_headers",
- "main": "SSL_free(SSL_new(0));"
- },
- "sources": [
- { "type": "openssl" },
- {
- "libs": "-lssleay32 -llibeay32 -luser32 -lws2_32 -ladvapi32 -lgdi32",
- "condition": "config.win32"
- },
- {
- "libs": "-llibssl -llibcrypto -luser32 -lws2_32 -ladvapi32 -lcrypt32",
- "condition": "config.msvc"
- },
- {
- "libs": "-lssl -lcrypto",
- "condition": "!config.msvc"
- }
- ]
- },
- "gssapi": {
- "label": "KRB5 GSSAPI Support",
- "test": {
- "head": [
- "#if defined(__APPLE__) && (defined(__GNUC__) || defined(__xlC__) || defined(__xlc__))",
- "# include <TargetConditionals.h>",
- "# if defined(TARGET_OS_MAC) && TARGET_OS_MAC",
- "# include <GSS/GSS.h>",
- "# endif",
- "#else",
- "# include <gssapi/gssapi.h>",
- "#endif"
- ],
- "main": [
- "gss_ctx_id_t ctx;",
- "gss_context_time(nullptr, ctx, nullptr);"
- ]
- },
- "sources": [
- { "libs": "-framework GSS", "condition": "config.darwin" },
- { "type": "pkgConfig", "args": "krb5-gssapi" },
- "-lgssapi_krb5"
- ]
- }
- },
-
- "tests": {
- "getifaddrs": {
- "label": "getifaddrs()",
- "type": "compile",
- "test": {
- "include": [ "sys/types.h", "sys/socket.h", "net/if.h", "ifaddrs.h" ],
- "main": [
- "ifaddrs *list;",
- "getifaddrs(&list);",
- "freeifaddrs(list);"
- ]
- },
- "use": "network"
- },
- "ifr_index": {
- "label": "ifr_index",
- "type": "compile",
- "test": {
- "include": "net/if.h",
- "main": [
- "struct ifreq req;",
- "req.ifr_index = 0;"
- ]
- }
- },
- "ipv6ifname": {
- "label": "IPv6 ifname",
- "type": "compile",
- "test": {
- "include": [ "sys/types.h", "sys/socket.h", "net/if.h" ],
- "main": [
- "char buf[IFNAMSIZ];",
- "if_nametoindex(\"eth0\");",
- "if_indextoname(1, buf);",
- "if_freenameindex(if_nameindex());"
- ]
- },
- "use": "network"
- },
- "linux-netlink": {
- "label": "Linux AF_NETLINK sockets",
- "type": "compile",
- "test": {
- "include": [ "asm/types.h", "linux/netlink.h", "linux/rtnetlink.h", "sys/socket.h" ],
- "main": [
- "struct rtattr rta = { };",
- "struct ifinfomsg ifi = {};",
- "struct ifaddrmsg ifa = {};",
- "struct ifa_cacheinfo ci;",
- "ci.ifa_prefered = ci.ifa_valid = 0;",
- "(void)RTM_NEWLINK; (void)RTM_NEWADDR;",
- "(void)IFLA_ADDRESS; (void)IFLA_IFNAME;",
- "(void)IFA_ADDRESS; (void)IFA_LABEL; (void)IFA_CACHEINFO;",
- "(void)(IFA_F_SECONDARY | IFA_F_DEPRECATED | IFA_F_PERMANENT | IFA_F_MANAGETEMPADDR);"
- ]
- }
- },
- "sctp": {
- "label": "SCTP support",
- "type": "compile",
- "test": {
- "include": [ "sys/types.h", "sys/socket.h", "netinet/in.h", "netinet/sctp.h" ],
- "main": [
- "sctp_initmsg sctpInitMsg;",
- "socklen_t sctpInitMsgSize = sizeof(sctpInitMsg);",
- "(void) socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP);",
- "(void) getsockopt(-1, SOL_SCTP, SCTP_INITMSG, &sctpInitMsg, &sctpInitMsgSize);"
- ]
- },
- "use": "network"
- },
- "dtls": {
- "label": "DTLS support in OpenSSL",
- "type": "compile",
- "test": {
- "include": "openssl/ssl.h",
- "tail": [
- "#if defined(OPENSSL_NO_DTLS) || !defined(DTLS1_2_VERSION)",
- "# error OpenSSL without DTLS support",
- "#endif"
- ]
- },
- "use": "openssl"
- },
- "ocsp": {
- "label": "OCSP stapling support in OpenSSL",
- "type": "compile",
- "test": {
- "include": ["openssl/ssl.h", "openssl/ocsp.h"],
- "tail": [
- "#if defined(OPENSSL_NO_OCSP) || defined(OPENSSL_NO_TLSEXT)",
- "# error OpenSSL without OCSP stapling",
- "#endif"
- ]
- },
- "use": "openssl"
- },
- "networklistmanager": {
- "label": "Network List Manager",
- "type": "compile",
- "test": {
- "include": [ "netlistmgr.h", "wrl/client.h" ],
- "main": [
- "using namespace Microsoft::WRL;",
- "ComPtr<INetworkListManager> networkListManager;",
- "ComPtr<IConnectionPoint> connectionPoint;",
- "ComPtr<IConnectionPointContainer> connectionPointContainer;",
- "networkListManager.As(&connectionPointContainer);",
- "connectionPointContainer->FindConnectionPoint(IID_INetworkConnectionEvents, &connectionPoint);"
- ],
- "qmake": "LIBS += -lOle32"
- }
- }
- },
-
- "features": {
- "getifaddrs": {
- "label": "getifaddrs()",
- "condition": "tests.getifaddrs",
- "output": [ "feature" ]
- },
- "ifr_index": {
- "label": "ifr_index",
- "condition": "tests.ifr_index",
- "output": [ "privateFeature" ]
- },
- "ipv6ifname": {
- "label": "IPv6 ifname",
- "condition": "tests.ipv6ifname",
- "output": [ "feature" ]
- },
- "libproxy": {
- "label": "libproxy",
- "autoDetect": false,
- "condition": "libs.libproxy",
- "output": [ "privateFeature" ]
- },
- "linux-netlink": {
- "label": "Linux AF_NETLINK",
- "condition": "config.linux && !config.android && tests.linux-netlink",
- "output": [ "privateFeature" ]
- },
- "openssl": {
- "label": "OpenSSL",
- "enable": "false",
- "condition": "features.openssl-runtime || features.openssl-linked",
- "output": [
- "privateFeature",
- { "type": "publicQtConfig", "condition": "!features.openssl-linked" },
- { "type": "define", "negative": true, "name": "QT_NO_OPENSSL" }
- ]
- },
- "openssl-runtime": {
- "autoDetect": "!config.wasm",
- "enable": "input.openssl == 'yes' || input.openssl == 'runtime'",
- "disable": "input.openssl == 'no' || input.openssl == 'linked' || input.ssl == 'no'",
- "condition": "libs.openssl_headers"
- },
- "openssl-linked": {
- "label": " Qt directly linked to OpenSSL",
- "autoDetect": false,
- "enable": "input.openssl == 'linked'",
- "condition": "libs.openssl",
- "output": [
- "privateFeature",
- { "type": "define", "name": "QT_LINKED_OPENSSL" }
- ]
- },
- "securetransport": {
- "label": "SecureTransport",
- "disable": "input.ssl == 'no'",
- "condition": "config.darwin",
- "output": [
- "publicFeature",
- { "type": "define", "name": "QT_SECURETRANSPORT" }
- ]
- },
- "schannel": {
- "label": "Schannel",
- "disable": "input.ssl == 'no'",
- "condition": "config.win32",
- "output": [
- "publicFeature",
- { "type": "define", "name": "QT_SCHANNEL" }
- ]
- },
- "ssl": {
- "label": "SSL",
- "condition": "features.securetransport || features.openssl || features.schannel",
- "output": [ "publicFeature", "feature" ]
- },
- "dtls": {
- "label": "DTLS",
- "purpose": "Provides a DTLS implementation",
- "section": "Networking",
- "condition": "features.openssl && features.udpsocket && tests.dtls",
- "output": [ "publicFeature" ]
- },
- "ocsp": {
- "label": "OCSP-stapling",
- "purpose": "Provides OCSP stapling support",
- "section": "Networking",
- "condition": "features.opensslv11 && tests.ocsp",
- "output": [ "publicFeature" ]
- },
- "opensslv11": {
- "label": "OpenSSL 1.1",
- "condition": "features.openssl",
- "output": [ "publicFeature" ]
- },
- "sctp": {
- "label": "SCTP",
- "autoDetect": false,
- "condition": "tests.sctp",
- "output": [ "publicFeature", "feature" ]
- },
- "system-proxies": {
- "label": "Use system proxies",
- "output": [ "privateFeature" ]
- },
- "http": {
- "label": "HTTP",
- "purpose": "Provides support for the Hypertext Transfer Protocol in QNetworkAccessManager.",
- "section": "Networking",
- "condition": "features.thread",
- "output": [ "publicFeature", "feature" ]
- },
- "udpsocket": {
- "label": "QUdpSocket",
- "purpose": "Provides access to UDP sockets.",
- "section": "Networking",
- "output": [ "publicFeature", "feature" ]
- },
- "networkproxy": {
- "label": "QNetworkProxy",
- "purpose": "Provides network proxy support.",
- "section": "Networking",
- "output": [ "publicFeature", "feature" ]
- },
- "socks5": {
- "label": "SOCKS5",
- "purpose": "Provides SOCKS5 support in QNetworkProxy.",
- "section": "Networking",
- "condition": "features.networkproxy",
- "output": [ "publicFeature", "feature" ]
- },
- "networkinterface": {
- "label": "QNetworkInterface",
- "purpose": "Supports enumerating a host's IP addresses and network interfaces.",
- "condition": "!config.wasm",
- "section": "Networking",
- "output": [ "publicFeature", "feature" ]
- },
- "networkdiskcache": {
- "label": "QNetworkDiskCache",
- "purpose": "Provides a disk cache for network resources.",
- "section": "Networking",
- "condition": "features.temporaryfile",
- "output": [ "publicFeature", "feature" ]
- },
- "brotli": {
- "label": "Brotli Decompression Support",
- "purpose": "Support for downloading and decompressing resources compressed with Brotli through QNetworkAccessManager.",
- "section": "Networking",
- "condition": "libs.brotli",
- "output": [ "publicFeature", "feature" ]
- },
- "localserver": {
- "label": "QLocalServer",
- "purpose": "Provides a local socket based server.",
- "section": "Networking",
- "condition": "features.temporaryfile",
- "output": [ "publicFeature", "feature" ]
- },
- "dnslookup": {
- "label": "QDnsLookup",
- "purpose": "Provides API for DNS lookups.",
- "section": "Networking",
- "output": [ "publicFeature" ]
- },
- "gssapi": {
- "label": "GSSAPI",
- "purpose": "Enable SPNEGO authentication through GSSAPI",
- "section": "Networking",
- "condition": "!config.win32 && libs.gssapi",
- "output": [ "publicFeature", "feature" ]
- },
- "sspi": {
- "label": "SSPI",
- "purpose": "Enable NTLM/SPNEGO authentication through SSPI",
- "section": "Networking",
- "condition": "config.win32",
- "output": [ "publicFeature", "feature" ]
- },
- "networklistmanager": {
- "label": "Network List Manager",
- "purpose": "Use Network List Manager to keep track of network connectivity",
- "section": "Networking",
- "condition": "config.win32 && tests.networklistmanager",
- "output": [ "privateFeature" ]
- },
- "topleveldomain": {
- "label": "qTopLevelDomain()",
- "purpose": "Provides support for extracting the top level domain from URLs. If enabled, a binary dump of the Public Suffix List (http://www.publicsuffix.org, Mozilla License) is included. The data is then also used in QNetworkCookieJar::validateCookie.",
- "section": "Networking",
- "output": [ "publicFeature" ]
- }
- },
-
- "report": [
- {
- "type": "note",
- "condition": "features.openssl-linked && libs.openssl.source != 0
- && input.openssl.prefix == '' && input.openssl.libs == '' && input.openssl.libs.debug == ''",
- "message": "When linking against OpenSSL, you can override the default
-library names through OPENSSL_LIBS.
-For example:
- OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked"
- }
- ],
-
- "summary": [
- {
- "section": "Qt Network",
- "entries": [
- "getifaddrs", "ipv6ifname", "libproxy",
- {
- "type": "feature",
- "args": "linux-netlink",
- "condition": "config.linux"
- },
- {
- "type": "feature",
- "args": "securetransport",
- "condition": "config.darwin"
- },
- {
- "type": "feature",
- "args": "schannel",
- "condition": "config.win32"
- },
- "openssl",
- "openssl-linked",
- "opensslv11",
- "dtls",
- "ocsp",
- "sctp",
- "system-proxies",
- "gssapi",
- "brotli"
- ]
- }
- ]
-}
diff --git a/src/plugins/sqldrivers/.prev_configure.cmake b/src/plugins/sqldrivers/.prev_configure.cmake
deleted file mode 100644
index d742018b9f..0000000000
--- a/src/plugins/sqldrivers/.prev_configure.cmake
+++ /dev/null
@@ -1,77 +0,0 @@
-
-
-#### Inputs
-
-# input sqlite
-set(INPUT_sqlite "undefined" CACHE STRING "")
-set_property(CACHE INPUT_sqlite PROPERTY STRINGS undefined qt system)
-
-
-
-#### Libraries
-
-qt_find_package(DB2 PROVIDED_TARGETS DB2::DB2 MODULE_NAME sqldrivers QMAKE_LIB db2)
-qt_find_package(MySQL PROVIDED_TARGETS MySQL::MySQL MODULE_NAME sqldrivers QMAKE_LIB mysql)
-qt_find_package(PostgreSQL PROVIDED_TARGETS PostgreSQL::PostgreSQL MODULE_NAME sqldrivers QMAKE_LIB psql)
-qt_find_package(Oracle PROVIDED_TARGETS Oracle::OCI MODULE_NAME sqldrivers QMAKE_LIB oci)
-qt_find_package(ODBC PROVIDED_TARGETS ODBC::ODBC MODULE_NAME sqldrivers QMAKE_LIB odbc)
-qt_find_package(SQLite3 PROVIDED_TARGETS SQLite::SQLite3 MODULE_NAME sqldrivers QMAKE_LIB sqlite3)
-if(NOT WIN32 AND QT_FEATURE_system_zlib)
- qt_add_qmake_lib_dependency(sqlite3 zlib)
-endif()
-
-
-#### Tests
-
-
-
-#### Features
-
-qt_feature("sql-db2" PRIVATE
- LABEL "DB2 (IBM)"
- CONDITION DB2_FOUND
-)
-qt_feature("sql-ibase" PRIVATE
- LABEL "InterBase"
- CONDITION libs.ibase OR FIXME
-)
-qt_feature("sql-mysql" PRIVATE
- LABEL "MySql"
- CONDITION MySQL_FOUND
-)
-qt_feature("sql-oci" PRIVATE
- LABEL "OCI (Oracle)"
- CONDITION Oracle_FOUND
-)
-qt_feature("sql-odbc" PRIVATE
- LABEL "ODBC"
- CONDITION QT_FEATURE_datestring AND ODBC_FOUND
-)
-qt_feature("sql-psql" PRIVATE
- LABEL "PostgreSQL"
- CONDITION PostgreSQL_FOUND
-)
-qt_feature("sql-sqlite" PRIVATE
- LABEL "SQLite"
- CONDITION QT_FEATURE_datestring
-)
-qt_feature("system-sqlite" PRIVATE
- LABEL " Using system provided SQLite"
- AUTODETECT OFF
- CONDITION QT_FEATURE_sql_sqlite AND SQLite3_FOUND
-)
-qt_configure_add_summary_section(NAME "Qt Sql Drivers")
-qt_configure_add_summary_entry(ARGS "sql-db2")
-qt_configure_add_summary_entry(ARGS "sql-ibase")
-qt_configure_add_summary_entry(ARGS "sql-mysql")
-qt_configure_add_summary_entry(ARGS "sql-oci")
-qt_configure_add_summary_entry(ARGS "sql-odbc")
-qt_configure_add_summary_entry(ARGS "sql-psql")
-qt_configure_add_summary_entry(ARGS "sql-sqlite")
-qt_configure_add_summary_entry(ARGS "system-sqlite")
-qt_configure_end_summary_section() # end of "Qt Sql Drivers" section
-qt_configure_add_report_entry(
- TYPE WARNING
- MESSAGE "Qt does not support compiling the Oracle database driver with MinGW, due to lack of such support from Oracle. Consider disabling the Oracle driver, as the current build will most likely fail."
- CONDITION WIN32 AND NOT MSVC AND QT_FEATURE_sql_oci
-)
diff --git a/src/plugins/sqldrivers/configure.json b/src/plugins/sqldrivers/configure.json
deleted file mode 100644
index f738e58a00..0000000000
--- a/src/plugins/sqldrivers/configure.json
+++ /dev/null
@@ -1,201 +0,0 @@
-{
- "module": "sqldrivers",
- "depends": [
- "core"
- ],
- "testDir": "../../../config.tests",
-
- "commandline": {
- "assignments": {
- "MYSQL_PATH": "mysql.prefix"
- },
- "options": {
- "mysql_config": "string",
- "psql_config": "string",
- "sqlite": { "type": "enum", "name": "system-sqlite", "values": { "qt": "no", "system": "yes" } },
- "sql-db2": "boolean",
- "sql-ibase": "boolean",
- "sql-mysql": "boolean",
- "sql-oci": "boolean",
- "sql-odbc": "boolean",
- "sql-psql": "boolean",
- "sql-sqlite": "boolean",
- "plugin-sql-db2": { "type": "void", "name": "sql-db2" },
- "plugin-sql-ibase": { "type": "void", "name": "sql-ibase" },
- "plugin-sql-mysql": { "type": "void", "name": "sql-mysql" },
- "plugin-sql-oci": { "type": "void", "name": "sql-oci" },
- "plugin-sql-odbc": { "type": "void", "name": "sql-odbc" },
- "plugin-sql-psql": { "type": "void", "name": "sql-psql" },
- "plugin-sql-sqlite": { "type": "void", "name": "sql-sqlite" }
- }
- },
-
- "libraries": {
- "db2": {
- "label": "DB2 (IBM)",
- "test": {},
- "headers": [ "sqlcli.h", "sqlcli1.h" ],
- "sources": [
- { "libs": "-ldb2cli", "condition": "config.win32" },
- { "libs": "-ldb2", "condition": "!config.win32" }
- ]
- },
- "ibase": {
- "label": "InterBase",
- "test": {},
- "headers": "ibase.h",
- "sources": [
- { "libs": "-lgds32_ms", "condition": "config.win32" },
- { "libs": "-lgds", "condition": "!config.win32" }
- ]
- },
- "mysql": {
- "label": "MySQL",
- "test": {
- "head": [
- "#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__)",
- "# include <windows.h>",
- "#endif"
- ],
- "main": "mysql_get_client_version();"
- },
- "headers": "mysql.h",
- "sources": [
- { "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": true },
- { "type": "mysqlConfig", "query": "--libs", "cleanlibs": true },
- { "type": "mysqlConfig", "query": "--libs_r", "cleanlibs": false },
- { "type": "mysqlConfig", "query": "--libs", "cleanlibs": false },
- { "libs": "-lmysqlclient_r", "condition": "!config.win32" },
- { "libs": "-llibmariadb", "condition": "config.win32" },
- { "libs": "-llibmysql", "condition": "config.win32" },
- { "libs": "-lmariadb", "condition": "!config.win32" },
- { "libs": "-lmysqlclient", "condition": "!config.win32" }
- ]
- },
- "psql": {
- "label": "PostgreSQL",
- "test": {
- "main": [
- "PQescapeBytea(0, 0, 0);",
- "PQunescapeBytea(0, 0);"
- ]
- },
- "headers": "libpq-fe.h",
- "sources": [
- { "type": "pkgConfig", "args": "libpq" },
- { "type": "psqlConfig" },
- { "type": "psqlEnv", "libs": "-llibpq -lws2_32 -ladvapi32", "condition": "config.win32" },
- { "type": "psqlEnv", "libs": "-lpq", "condition": "!config.win32" }
- ]
- },
- "oci": {
- "label": "OCI (Oracle)",
- "test": {},
- "headers": "oci.h",
- "sources": [
- { "libs": "-loci", "condition": "config.win32" },
- { "libs": "-lclntsh", "condition": "!config.win32" }
- ]
- },
- "odbc": {
- "label": "ODBC",
- "test": {
- "head": [
- "#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__)",
- "# include <windows.h>",
- "#endif"
- ],
- "main": [
- "SQLHANDLE env;",
- "SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &env);"
- ]
- },
- "headers": [ "sql.h", "sqlext.h" ],
- "sources": [
- { "libs": "-lodbc32", "condition": "config.win32" },
- { "libs": "-liodbc", "condition": "config.darwin" },
- { "libs": "-lodbc", "condition": "!config.win32 && !config.darwin" }
- ]
- },
- "sqlite3": {
- "label": "SQLite (version 3)",
- "export": "sqlite",
- "test": {
- "main": "sqlite3_open_v2(0, 0, 0, 0);"
- },
- "headers": "sqlite3.h",
- "sources": [
- { "type": "pkgConfig", "args": "sqlite3" },
- "-lsqlite3"
- ],
- "use": [
- { "lib": "zlib", "condition": "!config.win32 && features.system-zlib" }
- ]
- }
- },
-
- "tests": {
- },
-
- "features": {
- "sql-db2": {
- "label": "DB2 (IBM)",
- "condition": "libs.db2",
- "output": [ "privateFeature" ]
- },
- "sql-ibase": {
- "label": "InterBase",
- "condition": "libs.ibase",
- "output": [ "privateFeature" ]
- },
- "sql-mysql": {
- "label": "MySql",
- "condition": "libs.mysql",
- "output": [ "privateFeature" ]
- },
- "sql-oci": {
- "label": "OCI (Oracle)",
- "condition": "libs.oci",
- "output": [ "privateFeature" ]
- },
- "sql-odbc": {
- "label": "ODBC",
- "condition": "features.datestring && libs.odbc",
- "output": [ "privateFeature" ]
- },
- "sql-psql": {
- "label": "PostgreSQL",
- "condition": "libs.psql",
- "output": [ "privateFeature" ]
- },
- "sql-sqlite": {
- "label": "SQLite",
- "condition": "features.datestring",
- "output": [ "privateFeature" ]
- },
- "system-sqlite": {
- "label": " Using system provided SQLite",
- "autoDetect": false,
- "condition": "features.sql-sqlite && libs.sqlite3",
- "output": [ "privateFeature" ]
- }
- },
-
- "report": [
- {
- "type": "warning",
- "condition": "config.win32 && !config.msvc && features.sql-oci",
- "message": "Qt does not support compiling the Oracle database driver with MinGW, due to lack of such support from Oracle. Consider disabling the Oracle driver, as the current build will most likely fail."
- }
- ],
-
- "summary": [
- {
- "section": "Qt Sql Drivers",
- "entries": [
- "sql-db2", "sql-ibase", "sql-mysql", "sql-oci", "sql-odbc", "sql-psql",
- "sql-sqlite", "system-sqlite"
- ]
- }
- ]
-}
diff --git a/src/printsupport/configure.json b/src/printsupport/configure.json
deleted file mode 100644
index 9bd85b0707..0000000000
--- a/src/printsupport/configure.json
+++ /dev/null
@@ -1,102 +0,0 @@
-{
- "module": "printsupport",
- "depends": [
- "core",
- "gui",
- "widgets"
- ],
- "testDir": "../../config.tests",
-
- "commandline": {
- "options": {
- "cups": "boolean"
- }
- },
-
- "libraries": {
- "cups": {
- "label": "CUPS",
- "test": {
- "main": "cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL); // CUPS 1.4 test"
- },
- "headers": "cups/cups.h",
- "sources": [
- "-lcups"
- ]
- }
- },
-
- "features": {
- "cups": {
- "label": "CUPS",
- "purpose": "Provides support for the Common Unix Printing System.",
- "section": "Painting",
- "condition": "libs.cups && features.printer && features.datestring",
- "output": [ "privateFeature", "feature" ]
- },
- "cupsjobwidget": {
- "label": "CUPS job control widget",
- "section": "Widgets",
- "condition": [
- "features.buttongroup",
- "features.calendarwidget",
- "features.checkbox",
- "features.combobox",
- "features.cups",
- "features.datetimeedit",
- "features.groupbox",
- "features.tablewidget"
- ],
- "output": [ "privateFeature", "feature" ]
- },
- "printer": {
- "label": "QPrinter",
- "purpose": "Provides a printer backend of QPainter.",
- "section": "Painting",
- "condition": "!config.uikit && features.picture && features.temporaryfile && features.pdf",
- "output": [ "publicFeature", "feature" ]
- },
- "printpreviewwidget": {
- "label": "QPrintPreviewWidget",
- "purpose": "Provides a widget for previewing page layouts for printer output.",
- "section": "Widgets",
- "condition": "features.graphicsview && features.printer && features.mainwindow",
- "output": [ "publicFeature", "feature" ]
- },
- "printdialog": {
- "label": "QPrintDialog",
- "purpose": "Provides a dialog widget for specifying printer configuration.",
- "section": "Dialogs",
- "condition": [
- "features.buttongroup",
- "features.checkbox",
- "features.combobox",
- "features.dialog",
- "features.datetimeedit",
- "features.dialogbuttonbox",
- "features.printer",
- "features.radiobutton",
- "features.spinbox",
- "features.tabwidget",
- "features.treeview"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "printpreviewdialog": {
- "label": "QPrintPreviewDialog",
- "purpose": "Provides a dialog for previewing and configuring page layouts for printer output.",
- "section": "Dialogs",
- "condition": "features.printpreviewwidget && features.printdialog && features.toolbar && features.formlayout",
- "output": [ "publicFeature", "feature" ]
- }
- },
-
- "summary": [
- {
- "section": "Qt PrintSupport",
- "entries": [
- "cups"
- ]
- }
- ]
-}
diff --git a/src/sql/configure.json b/src/sql/configure.json
deleted file mode 100644
index 8fdc27e3a2..0000000000
--- a/src/sql/configure.json
+++ /dev/null
@@ -1,22 +0,0 @@
-{
- "module": "sql",
- "depends": [
- "core"
- ],
-
- "features": {
- "sqlmodel": {
- "label": "SQL item models",
- "purpose": "Provides item model classes backed by SQL databases.",
- "condition": "features.itemmodel",
- "output": [ "publicFeature" ]
- }
- },
-
- "summary": [
- {
- "section": "Qt Sql",
- "entries": [ "sqlmodel" ]
- }
- ]
-}
diff --git a/src/testlib/configure.json b/src/testlib/configure.json
deleted file mode 100644
index 726f614ee5..0000000000
--- a/src/testlib/configure.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "module": "testlib",
- "depends": [
- "core"
- ],
-
- "features": {
- "testlib_selfcover": {
- "label": "Coverage testing of testlib itself",
- "purpose": "Gauges how thoroughly testlib's selftest exercises testlib's code",
- "autoDetect": false,
- "output": [ "publicFeature" ]
- },
- "itemmodeltester": {
- "label": "Tester for item models",
- "purpose": "Provides a utility to test item models.",
- "condition": "features.itemmodel",
- "output": [ "publicFeature" ]
- },
- "valgrind": {
- "label": "Valgrind",
- "purpose": "Profiling support with callgrind.",
- "condition": "(config.linux || config.darwin) && features.process && features.regularexpression",
- "output": [ "publicFeature" ]
- }
- },
-
- "summary": [
- {
- "section": "Qt Testlib",
- "entries": [ "itemmodeltester" ]
- }
- ]
-}
diff --git a/src/widgets/configure.json b/src/widgets/configure.json
deleted file mode 100644
index 99b487ef0f..0000000000
--- a/src/widgets/configure.json
+++ /dev/null
@@ -1,647 +0,0 @@
-{
- "module": "widgets",
- "depends": [
- "core-private",
- "gui"
- ],
- "testDir": "../../config.tests",
-
- "commandline": {
- "options": {
- "gtk": { "type": "boolean", "name": "gtk3" },
- "style-windows": "boolean",
- "style-windowsvista": "boolean",
- "style-fusion": "boolean",
- "style-mac": "boolean",
- "style-android": "boolean"
- }
- },
-
- "libraries": {
- "gtk3": {
- "label": "GTK+ >= 3.6",
- "sources": [
- { "type": "pkgConfig", "args": "gtk+-3.0 >= 3.6" }
- ]
- }
- },
-
- "features": {
- "gtk3": {
- "label": "GTK+",
- "autoDetect": "!config.darwin",
- "condition": "features.glib && libs.gtk3",
- "output": [ "privateFeature" ]
- },
- "style-fusion": {
- "label": "Fusion",
- "output": [ "privateFeature", "styles" ]
- },
- "style-mac": {
- "label": "macOS",
- "condition": "config.osx && features.animation",
- "output": [ "privateFeature", "styles" ]
- },
- "style-windows": {
- "label": "Windows",
- "output": [ "privateFeature", "styles" ]
- },
- "style-windowsvista": {
- "label": "WindowsVista",
- "condition": "features.style-windows && features.animation && config.win32",
- "output": [ "privateFeature", "styles" ]
- },
- "style-android": {
- "label": "Android",
- "autoDetect": "config.android",
- "output": [ "privateFeature", "styles" ]
- },
- "style-stylesheet": {
- "label": "QStyleSheetStyle",
- "purpose": "Provides a widget style which is configurable via CSS.",
- "section": "Styles",
- "condition": "features.style-windows && features.properties && features.cssparser",
- "output": [ "publicFeature", "feature" ]
- },
- "effects": {
- "label": "Effects",
- "purpose": "Provides special widget effects (e.g. fading and scrolling).",
- "section": "Kernel",
- "output": [ "privateFeature" ]
- },
- "itemviews": {
- "label": "The Model/View Framework",
- "purpose": "Provides the model/view architecture managing the relationship between data and the way it is presented to the user.",
- "section": "ItemViews",
- "condition": "features.itemmodel && features.scrollarea",
- "output": [ "publicFeature", "feature" ]
- },
- "treewidget": {
- "label": "QTreeWidget",
- "purpose": "Provides views using tree models.",
- "section": "Widgets",
- "condition": "features.treeview",
- "output": [ "publicFeature", "feature" ]
- },
- "listwidget": {
- "label": "QListWidget",
- "purpose": "Provides item-based list widgets.",
- "section": "Widgets",
- "condition": "features.listview",
- "output": [ "publicFeature", "feature" ]
- },
- "tablewidget": {
- "label": "QTableWidget",
- "purpose": "Provides item-based table views.",
- "section": "Widgets",
- "condition": "features.tableview",
- "output": [ "publicFeature", "feature" ]
- },
- "abstractbutton": {
- "label": "QAbstractButton",
- "purpose": "Abstract base class of button widgets, providing functionality common to buttons.",
- "section": "Widgets",
- "output": [ "publicFeature" ]
- },
- "commandlinkbutton": {
- "label": "QCommandLinkButton",
- "purpose": "Provides a Vista style command link button.",
- "section": "Widgets",
- "condition": "features.pushbutton",
- "output": [ "publicFeature" ]
- },
- "datetimeedit": {
- "label": "QDateTimeEdit",
- "purpose": "Supports editing dates and times.",
- "section": "Widgets",
- "condition": "features.calendarwidget && features.datetimeparser",
- "output": [ "publicFeature", "feature" ]
- },
- "stackedwidget": {
- "label": "QStackedWidget",
- "purpose": "Provides stacked widgets.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "textbrowser": {
- "label": "QTextBrowser",
- "purpose": "Supports HTML document browsing.",
- "section": "Widgets",
- "condition": "features.textedit",
- "output": [ "publicFeature", "feature" ]
- },
- "splashscreen": {
- "label": "QSplashScreen",
- "purpose": "Supports splash screens that can be shown during application startup.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "splitter": {
- "label": "QSplitter",
- "purpose": "Provides user controlled splitter widgets.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "widgettextcontrol": {
- "label": "QWidgetTextControl",
- "purpose": "Provides text control functionality to other widgets.",
- "section": "Widgets",
- "output": [ "privateFeature" ]
- },
- "label": {
- "label": "QLabel",
- "purpose": "Provides a text or image display.",
- "section": "Widgets",
- "condition": "features.widgettextcontrol",
- "output": [ "publicFeature" ]
- },
- "formlayout": {
- "label": "QFormLayout",
- "purpose": "Manages forms of input widgets and their associated labels.",
- "section": "Widgets",
- "condition": "features.label",
- "output": [ "publicFeature" ]
- },
- "lcdnumber": {
- "label": "QLCDNumber",
- "purpose": "Provides LCD-like digits.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "menu": {
- "label": "QMenu",
- "purpose": "Provides popup-menus.",
- "section": "Widgets",
- "condition": "features.action && features.pushbutton",
- "output": [ "publicFeature", "feature" ]
- },
- "lineedit": {
- "label": "QLineEdit",
- "purpose": "Provides single-line edits.",
- "section": "Widgets",
- "condition": "features.widgettextcontrol",
- "output": [ "publicFeature", "feature" ]
- },
- "radiobutton": {
- "label": "QRadioButton",
- "purpose": "Provides a radio button with a text label.",
- "section": "Widgets",
- "condition": "features.abstractbutton",
- "output": [ "publicFeature" ]
- },
- "spinbox": {
- "label": "QSpinBox",
- "purpose": "Provides spin boxes handling integers and discrete sets of values.",
- "section": "Widgets",
- "condition": "features.lineedit && features.validator",
- "output": [ "publicFeature", "feature" ]
- },
- "tabbar": {
- "label": "QTabBar",
- "purpose": "Provides tab bars, e.g., for use in tabbed dialogs.",
- "section": "Widgets",
- "condition": "features.toolbutton",
- "output": [ "publicFeature", "feature" ]
- },
- "tabwidget": {
- "label": "QTabWidget",
- "purpose": "Supports stacking tabbed widgets.",
- "section": "Widgets",
- "condition": "features.tabbar && features.stackedwidget",
- "output": [ "publicFeature", "feature" ]
- },
- "combobox": {
- "label": "QComboBox",
- "purpose": "Provides drop-down boxes presenting a list of options to the user.",
- "section": "Widgets",
- "condition": "features.lineedit && features.standarditemmodel && features.listview",
- "output": [ "publicFeature", "feature" ]
- },
- "fontcombobox": {
- "label": "QFontComboBox",
- "purpose": "Provides a combobox that lets the user select a font family.",
- "section": "Widgets",
- "condition": "features.combobox && features.stringlistmodel",
- "output": [ "publicFeature", "feature" ]
- },
- "checkbox": {
- "label": "QCheckBox(",
- "purpose": "Provides a checkbox with a text label.",
- "section": "Widgets",
- "condition": "features.abstractbutton",
- "output": [ "publicFeature" ]
- },
- "pushbutton": {
- "label": "QPushButton",
- "purpose": "Provides a command button.",
- "section": "Widgets",
- "condition": "features.abstractbutton && features.action",
- "output": [ "publicFeature" ]
- },
- "toolbutton": {
- "label": "QToolButton",
- "purpose": "Provides quick-access buttons to commands and options.",
- "section": "Widgets",
- "condition": "features.abstractbutton && features.action",
- "output": [ "publicFeature", "feature" ]
- },
- "toolbar": {
- "label": "QToolBar",
- "purpose": "Provides movable panels containing a set of controls.",
- "section": "Widgets",
- "condition": "features.mainwindow",
- "output": [ "publicFeature", "feature" ]
- },
- "toolbox": {
- "label": "QToolBox",
- "purpose": "Provides columns of tabbed widget items.",
- "section": "Widgets",
- "condition": "features.toolbutton && features.scrollarea",
- "output": [ "publicFeature", "feature" ]
- },
- "groupbox": {
- "label": "QGroupBox",
- "purpose": "Provides widget grouping boxes with frames.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "buttongroup": {
- "label": "QButtonGroup",
- "purpose": "Supports organizing groups of button widgets.",
- "section": "Widgets",
- "condition": "features.abstractbutton && features.groupbox",
- "output": [ "publicFeature", "feature" ]
- },
- "mainwindow": {
- "label": "QMainWindow",
- "purpose": "Provides main application windows.",
- "section": "Widgets",
- "condition": "features.menu && features.resizehandler && features.toolbutton",
- "output": [ "publicFeature", "feature" ]
- },
- "dockwidget": {
- "label": "QDockwidget",
- "purpose": "Supports docking widgets inside a QMainWindow or floated as a top-level window on the desktop.",
- "section": "Widgets",
- "condition": "features.mainwindow",
- "output": [ "publicFeature", "feature" ]
- },
- "mdiarea": {
- "label": "QMdiArea",
- "purpose": "Provides an area in which MDI windows are displayed.",
- "section": "Widgets",
- "condition": "features.scrollarea",
- "output": [ "publicFeature", "feature" ]
- },
- "resizehandler": {
- "label": "QWidgetResizeHandler",
- "purpose": "Provides an internal resize handler for dock widgets.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "statusbar": {
- "label": "QStatusBar",
- "purpose": "Supports presentation of status information.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "menubar": {
- "label": "QMenuBar",
- "purpose": "Provides pull-down menu items.",
- "section": "Widgets",
- "condition": "features.menu && features.toolbutton",
- "output": [ "publicFeature", "feature" ]
- },
- "contextmenu": {
- "label": "Context menus",
- "purpose": "Adds pop-up menus on right mouse click to numerous widgets.",
- "section": "Widgets",
- "condition": "features.menu",
- "output": [ "publicFeature", "feature" ]
- },
- "progressbar": {
- "label": "QProgressBar",
- "purpose": "Supports presentation of operation progress.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "abstractslider": {
- "label": "QAbstractSlider",
- "purpose": "Common super class for widgets like QScrollBar, QSlider and QDial.",
- "section": "Widgets",
- "output": [ "publicFeature" ]
- },
- "slider": {
- "label": "QSlider",
- "purpose": "Provides sliders controlling a bounded value.",
- "section": "Widgets",
- "condition": "features.abstractslider",
- "output": [ "publicFeature", "feature" ]
- },
- "scrollbar": {
- "label": "QScrollBar",
- "purpose": "Provides scrollbars allowing the user access parts of a document that is larger than the widget used to display it.",
- "section": "Widgets",
- "condition": "features.slider",
- "output": [ "publicFeature", "feature" ]
- },
- "dial": {
- "label": "QDial",
- "purpose": "Provides a rounded range control, e.g., like a speedometer.",
- "section": "Widgets",
- "condition": "features.slider",
- "output": [ "publicFeature", "feature" ]
- },
- "scrollarea": {
- "label": "QScrollArea",
- "purpose": "Supports scrolling views onto widgets.",
- "section": "Widgets",
- "condition": "features.scrollbar",
- "output": [ "publicFeature", "feature" ]
- },
- "scroller": {
- "label": "QScroller",
- "purpose": "Enables kinetic scrolling for any scrolling widget or graphics item.",
- "section": "Widgets",
- "condition": "features.easingcurve",
- "output": [ "publicFeature" ]
- },
- "graphicsview": {
- "label": "QGraphicsView",
- "purpose": "Provides a canvas/sprite framework.",
- "section": "Widgets",
- "condition": "features.scrollarea && features.widgettextcontrol",
- "output": [ "publicFeature", "feature" ]
- },
- "graphicseffect": {
- "label": "QGraphicsEffect",
- "purpose": "Provides various graphics effects.",
- "section": "Widgets",
- "condition": "features.graphicsview",
- "output": [ "publicFeature", "feature" ]
- },
- "textedit": {
- "label": "QTextEdit",
- "purpose": "Supports rich text editing.",
- "section": "Widgets",
- "condition": "features.scrollarea && features.properties && features.widgettextcontrol",
- "output": [ "publicFeature", "feature" ]
- },
- "syntaxhighlighter": {
- "label": "QSyntaxHighlighter",
- "purpose": "Supports custom syntax highlighting.",
- "section": "Widgets",
- "condition": "features.textedit",
- "output": [ "publicFeature", "feature" ]
- },
- "rubberband": {
- "label": "QRubberBand",
- "purpose": "Supports using rubberbands to indicate selections and boundaries.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "tooltip": {
- "label": "QToolTip",
- "purpose": "Supports presentation of tooltips.",
- "section": "Widgets",
- "condition": "features.label",
- "output": [ "publicFeature", "feature" ]
- },
- "statustip": {
- "label": "Status Tip",
- "purpose": "Supports status tip functionality and events.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "sizegrip": {
- "label": "QSizeGrip",
- "purpose": "Provides corner-grips for resizing top-level windows.",
- "section": "Widgets",
- "output": [ "publicFeature", "feature" ]
- },
- "calendarwidget": {
- "label": "QCalendarWidget",
- "purpose": "Provides a monthly based calendar widget allowing the user to select a date.",
- "section": "Widgets",
- "condition": [
- "features.label",
- "features.menu",
- "features.pushbutton",
- "features.spinbox",
- "features.tableview",
- "features.textdate",
- "features.toolbutton"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "keysequenceedit": {
- "label": "QKeySequenceEdit",
- "purpose": "Provides a widget for editing QKeySequences.",
- "section": "Widgets",
- "condition": "features.lineedit && features.shortcut",
- "output": [ "publicFeature", "feature" ]
- },
- "dialog" : {
- "label": "QDialog",
- "purpose": "Base class of dialog windows.",
- "section": "Dialogs",
- "output": [ "publicFeature" ]
- },
- "dialogbuttonbox": {
- "label": "QDialogButtonBox",
- "purpose": "Presents buttons in a layout that is appropriate for the current widget style.",
- "section": "Dialogs",
- "condition": "features.dialog && features.pushbutton",
- "output": [ "publicFeature" ]
- },
- "messagebox": {
- "label": "QMessageBox",
- "purpose": "Provides message boxes displaying informative messages and simple questions.",
- "section": "Dialogs",
- "condition" : [
- "features.checkbox",
- "features.dialog",
- "features.dialogbuttonbox",
- "features.label",
- "features.pushbutton"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "colordialog": {
- "label": "QColorDialog",
- "purpose": "Provides a dialog widget for specifying colors.",
- "section": "Dialogs",
- "condition": [
- "features.dialog",
- "features.dialogbuttonbox",
- "features.label",
- "features.pushbutton",
- "features.spinbox"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "filedialog": {
- "label": "QFileDialog",
- "purpose": "Provides a dialog widget for selecting files or directories.",
- "section": "Dialogs",
- "condition": [
- "features.buttongroup",
- "features.combobox",
- "features.dialog",
- "features.dialogbuttonbox",
- "features.filesystemmodel",
- "features.label",
- "features.proxymodel",
- "features.splitter",
- "features.stackedwidget",
- "features.treeview",
- "features.toolbutton"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "fontdialog": {
- "label": "QFontDialog",
- "purpose": "Provides a dialog widget for selecting fonts.",
- "section": "Dialogs",
- "condition": [
- "features.checkbox",
- "features.combobox",
- "features.dialog",
- "features.dialogbuttonbox",
- "features.groupbox",
- "features.label",
- "features.pushbutton",
- "features.stringlistmodel",
- "features.validator"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "progressdialog": {
- "label": "QProgressDialog",
- "purpose": "Provides feedback on the progress of a slow operation.",
- "section": "Dialogs",
- "condition": [
- "features.dialog",
- "features.label",
- "features.pushbutton",
- "features.progressbar"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "inputdialog": {
- "label": "QInputDialog",
- "purpose": "Provides a simple convenience dialog to get a single value from the user.",
- "section": "Dialogs",
- "condition": [
- "features.combobox",
- "features.dialog",
- "features.dialogbuttonbox",
- "features.label",
- "features.pushbutton",
- "features.spinbox",
- "features.stackedwidget",
- "features.textedit"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "errormessage": {
- "label": "QErrorMessage",
- "purpose": "Provides an error message display dialog.",
- "section": "Dialogs",
- "condition": [
- "features.checkbox",
- "features.dialog",
- "features.textedit",
- "features.label",
- "features.pushbutton",
- "features.textedit"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "wizard": {
- "label": "QWizard",
- "purpose": "Provides a framework for multi-page click-through dialogs.",
- "section": "Dialogs",
- "condition": [
- "features.dialog",
- "features.pushbutton",
- "features.properties",
- "features.label"
- ],
- "output": [ "publicFeature", "feature" ]
- },
- "listview": {
- "label": "QListView",
- "purpose": "Provides a list or icon view onto a model.",
- "section": "ItemViews",
- "condition": "features.itemviews",
- "output": [ "publicFeature", "feature" ]
- },
- "tableview": {
- "label": "QTableView",
- "purpose": "Provides a default model/view implementation of a table view.",
- "section": "ItemViews",
- "condition": "features.itemviews",
- "output": [ "publicFeature", "feature" ]
- },
- "treeview": {
- "label": "QTreeView",
- "purpose": "Provides a default model/view implementation of a tree view.",
- "section": "ItemViews",
- "condition": "features.itemviews",
- "output": [ "publicFeature", "feature" ]
- },
- "datawidgetmapper": {
- "label": "QDataWidgetMapper",
- "purpose": "Provides mapping between a section of a data model to widgets.",
- "section": "ItemViews",
- "condition": "features.itemviews && features.properties",
- "output": [ "publicFeature", "feature" ]
- },
- "columnview": {
- "label": "QColumnView",
- "purpose": "Provides a model/view implementation of a column view.",
- "section": "ItemViews",
- "condition": "features.listview",
- "output": [ "publicFeature", "feature" ]
- },
- "completer": {
- "label": "QCompleter",
- "purpose": "Provides completions based on an item model.",
- "section": "Utilities",
- "condition": "features.proxymodel && features.itemviews",
- "output": [ "publicFeature", "feature" ]
- },
- "fscompleter": {
- "label": "QFSCompleter",
- "purpose": "Provides file name completion in QFileDialog.",
- "section": "Utilities",
- "condition": "features.filesystemmodel && features.completer",
- "output": [ "publicFeature", "feature" ]
- },
- "undoview": {
- "label": "QUndoView",
- "purpose": "Provides a widget which shows the contents of an undo stack.",
- "section": "Utilities",
- "condition": "features.undostack && features.listview",
- "output": [ "publicFeature", "feature" ]
- }
- },
-
- "report": [
- ],
-
- "summary": [
- {
- "section": "Qt Widgets",
- "entries": [
- "gtk3",
- {
- "message": "Styles",
- "type": "featureList",
- "args": "style-fusion style-mac style-windows style-windowsvista style-android"
- }
- ]
- }
- ]
-}
diff --git a/src/xml/configure.json b/src/xml/configure.json
deleted file mode 100644
index 345eb8544b..0000000000
--- a/src/xml/configure.json
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- "module": "xml",
- "depends": [
- "core"
- ],
- "testDir": "../../config.tests",
-
- "features": {
- "dom": {
- "label": "DOM",
- "purpose": "Supports the Document Object Model.",
- "section": "File I/O",
- "output": [ "publicFeature", "feature" ]
- }
- }
-}