From 479b2ab55f45f392ee3a9ad36dca25279bac1a8c Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 28 Jul 2017 22:52:05 +0200 Subject: configure: get rid of indirect #defines in gl tests in the gles tests, use #ifdef __APPLE__ directly instead of defining BUILD_ON_MAC. this is consistent with the desktop gl test, less magic, and corresponds with the later usage (which does #ifdef Q_OS_MAC). amends f3d82a89. in the desktop gl test, clean out the dead Q_OS_MAC define from the project file (added in 45dc5852 concurrently to the more direct fix in 864815ef). Change-Id: Ieebad3c7e87218b887f61485c331b93eadfcf406 Reviewed-by: Thiago Macieira Reviewed-by: Laszlo Agocs Reviewed-by: Jake Petroules --- config.tests/unix/opengldesktop/opengldesktop.pro | 2 -- config.tests/unix/opengles2/opengles2.cpp | 2 +- config.tests/unix/opengles2/opengles2.pro | 4 ---- config.tests/unix/opengles3/opengles3.cpp | 2 +- config.tests/unix/opengles3/opengles3.pro | 4 ---- 5 files changed, 2 insertions(+), 12 deletions(-) (limited to 'config.tests') diff --git a/config.tests/unix/opengldesktop/opengldesktop.pro b/config.tests/unix/opengldesktop/opengldesktop.pro index 22c0be247d..7b53aa460d 100644 --- a/config.tests/unix/opengldesktop/opengldesktop.pro +++ b/config.tests/unix/opengldesktop/opengldesktop.pro @@ -1,5 +1,3 @@ SOURCES = opengldesktop.cpp CONFIG -= qt - -mac:DEFINES += Q_OS_MAC diff --git a/config.tests/unix/opengles2/opengles2.cpp b/config.tests/unix/opengles2/opengles2.cpp index a9ad0d6766..39a48dcf29 100644 --- a/config.tests/unix/opengles2/opengles2.cpp +++ b/config.tests/unix/opengles2/opengles2.cpp @@ -37,7 +37,7 @@ ** ****************************************************************************/ -#ifdef BUILD_ON_MAC +#ifdef __APPLE__ #include #else #define GL_GLEXT_PROTOTYPES diff --git a/config.tests/unix/opengles2/opengles2.pro b/config.tests/unix/opengles2/opengles2.pro index c84563f62e..15e4ce3ca0 100644 --- a/config.tests/unix/opengles2/opengles2.pro +++ b/config.tests/unix/opengles2/opengles2.pro @@ -1,7 +1,3 @@ SOURCES = opengles2.cpp CONFIG -= qt - -mac { - DEFINES += BUILD_ON_MAC -} diff --git a/config.tests/unix/opengles3/opengles3.cpp b/config.tests/unix/opengles3/opengles3.cpp index b5bf9b4a80..7bcfc0e4bc 100644 --- a/config.tests/unix/opengles3/opengles3.cpp +++ b/config.tests/unix/opengles3/opengles3.cpp @@ -37,7 +37,7 @@ ** ****************************************************************************/ -#ifdef BUILD_ON_MAC +#ifdef __APPLE__ #include #else #define GL_GLEXT_PROTOTYPES diff --git a/config.tests/unix/opengles3/opengles3.pro b/config.tests/unix/opengles3/opengles3.pro index 956a3bc102..dc62f7856a 100644 --- a/config.tests/unix/opengles3/opengles3.pro +++ b/config.tests/unix/opengles3/opengles3.pro @@ -5,7 +5,3 @@ SOURCES = opengles3.cpp CONFIG -= qt - -mac { - DEFINES += BUILD_ON_MAC -} -- cgit v1.2.3 From aaed0530fd59b9c6c6f10ee4c815d492f0214fa1 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 28 Jul 2017 23:14:33 +0200 Subject: configure: don't force debug build for arch & cpu feature tests amends b4525b3407, which gives no indication for why this was done. judging by other tests, it wasn't cargo-culted. i presume it was just about disabling debug-and-release, and the debug choice was arbitrary. the central system nowadays does the same, just that it uses release. amends 1533bfc5fc, which certainly _was_ cargo-culted from the former. as a side effect, this removes some other CONFIG manipulations which are handled centrally or are wholly ineffective nowadays. Change-Id: Ib9af2837925a2f19af05506e798a26d363635735 Reviewed-by: Thiago Macieira --- config.tests/arch/arch.pro | 2 -- config.tests/common/avx/avx.pro | 2 -- config.tests/common/avx2/avx2.pro | 2 -- config.tests/common/avx512/avx512.pro | 2 -- config.tests/common/f16c/f16c.pro | 2 -- config.tests/common/sse2/sse2.pro | 2 -- config.tests/common/sse3/sse3.pro | 2 -- config.tests/common/sse4_1/sse4_1.pro | 2 -- config.tests/common/sse4_2/sse4_2.pro | 2 -- config.tests/common/ssse3/ssse3.pro | 2 -- 10 files changed, 20 deletions(-) (limited to 'config.tests') diff --git a/config.tests/arch/arch.pro b/config.tests/arch/arch.pro index d89d70b1ee..2ffdb2c889 100644 --- a/config.tests/arch/arch.pro +++ b/config.tests/arch/arch.pro @@ -1,4 +1,2 @@ TARGET = arch SOURCES = arch.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console diff --git a/config.tests/common/avx/avx.pro b/config.tests/common/avx/avx.pro index bf84089883..fde4adaea2 100644 --- a/config.tests/common/avx/avx.pro +++ b/config.tests/common/avx/avx.pro @@ -1,5 +1,3 @@ SOURCES = avx.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_AVX, "var"):error("This compiler does not support AVX") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX diff --git a/config.tests/common/avx2/avx2.pro b/config.tests/common/avx2/avx2.pro index 7ccf66ca28..1963bdb4b9 100644 --- a/config.tests/common/avx2/avx2.pro +++ b/config.tests/common/avx2/avx2.pro @@ -1,5 +1,3 @@ SOURCES = avx2.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_AVX2, "var"):error("This compiler does not support AVX2") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX2 diff --git a/config.tests/common/avx512/avx512.pro b/config.tests/common/avx512/avx512.pro index 96dddb14fd..1edf5e5432 100644 --- a/config.tests/common/avx512/avx512.pro +++ b/config.tests/common/avx512/avx512.pro @@ -1,6 +1,4 @@ SOURCES = avx512.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(AVX512, "var"): error("You must set the AVX512 variable!") diff --git a/config.tests/common/f16c/f16c.pro b/config.tests/common/f16c/f16c.pro index 6b36c99d96..fcab1877c1 100644 --- a/config.tests/common/f16c/f16c.pro +++ b/config.tests/common/f16c/f16c.pro @@ -1,5 +1,3 @@ SOURCES = f16c.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_F16C, "var"):error("This compiler does not support F16C") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_F16C diff --git a/config.tests/common/sse2/sse2.pro b/config.tests/common/sse2/sse2.pro index 0567eba19d..75f5266745 100644 --- a/config.tests/common/sse2/sse2.pro +++ b/config.tests/common/sse2/sse2.pro @@ -1,5 +1,3 @@ SOURCES = sse2.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_SSE2, var): error("This compiler does not support SSE2") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE2 diff --git a/config.tests/common/sse3/sse3.pro b/config.tests/common/sse3/sse3.pro index e2e09bac91..b26b832e22 100644 --- a/config.tests/common/sse3/sse3.pro +++ b/config.tests/common/sse3/sse3.pro @@ -1,5 +1,3 @@ SOURCES = sse3.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_SSE3, "var"):error("This compiler does not support SSE3") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE3 diff --git a/config.tests/common/sse4_1/sse4_1.pro b/config.tests/common/sse4_1/sse4_1.pro index 273c705efc..bee9c12adb 100644 --- a/config.tests/common/sse4_1/sse4_1.pro +++ b/config.tests/common/sse4_1/sse4_1.pro @@ -1,5 +1,3 @@ SOURCES = sse4_1.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_SSE4_1, "var"):error("This compiler does not support SSE4.1") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE4_1 diff --git a/config.tests/common/sse4_2/sse4_2.pro b/config.tests/common/sse4_2/sse4_2.pro index 3816fdeae9..1626ad748c 100644 --- a/config.tests/common/sse4_2/sse4_2.pro +++ b/config.tests/common/sse4_2/sse4_2.pro @@ -1,5 +1,3 @@ SOURCES = sse4_2.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_SSE4_2, "var"):error("This compiler does not support SSE4.2") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE4_2 diff --git a/config.tests/common/ssse3/ssse3.pro b/config.tests/common/ssse3/ssse3.pro index 597b169140..1d3aebf61d 100644 --- a/config.tests/common/ssse3/ssse3.pro +++ b/config.tests/common/ssse3/ssse3.pro @@ -1,5 +1,3 @@ SOURCES = ssse3.cpp -CONFIG -= qt dylib release debug_and_release -CONFIG += debug console !defined(QMAKE_CFLAGS_SSSE3, "var"):error("This compiler does not support SSSE3") else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSSE3 -- cgit v1.2.3 From b56846a43019355a3d302c1c2a03e40a1d61a737 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 28 Jul 2017 23:54:36 +0200 Subject: configure: remove support for obsolete platforms - #error hack for MIPSpro compiler from unix/clock-* - irix exclusions from unix/*iconv - hpux defines from unix/{getifaddrs,ipv6ifname} (the obsolete hpuxi-g++-64 spec would add them automatically anyway) Change-Id: Ib227e5626c0e8c8f6faebf76c312d77955f80b92 Reviewed-by: Thiago Macieira --- config.tests/unix/clock-gettime/clock-gettime.cpp | 2 -- config.tests/unix/clock-monotonic/clock-monotonic.cpp | 2 -- config.tests/unix/getifaddrs/getifaddrs.cpp | 4 ---- config.tests/unix/gnu-libiconv/gnu-libiconv.cpp | 4 ---- config.tests/unix/iconv/iconv.cpp | 4 ---- config.tests/unix/ipv6ifname/ipv6ifname.cpp | 4 ---- 6 files changed, 20 deletions(-) (limited to 'config.tests') diff --git a/config.tests/unix/clock-gettime/clock-gettime.cpp b/config.tests/unix/clock-gettime/clock-gettime.cpp index 486cdc6b38..cef9f6a1ae 100644 --- a/config.tests/unix/clock-gettime/clock-gettime.cpp +++ b/config.tests/unix/clock-gettime/clock-gettime.cpp @@ -47,8 +47,6 @@ int main(int, char **) clock_gettime(CLOCK_REALTIME, &ts); #else # error "Feature _POSIX_TIMERS not available" - // MIPSpro doesn't understand #error, so force a compiler error - force_compiler_error = true; #endif return 0; } diff --git a/config.tests/unix/clock-monotonic/clock-monotonic.cpp b/config.tests/unix/clock-monotonic/clock-monotonic.cpp index 0e75ed5a59..777a6d1c21 100644 --- a/config.tests/unix/clock-monotonic/clock-monotonic.cpp +++ b/config.tests/unix/clock-monotonic/clock-monotonic.cpp @@ -47,8 +47,6 @@ int main(int, char **) clock_gettime(CLOCK_MONOTONIC, &ts); #else # error "Feature _POSIX_MONOTONIC_CLOCK not available" - // MIPSpro doesn't understand #error, so force a compiler error - force_compiler_error = true; #endif return 0; } diff --git a/config.tests/unix/getifaddrs/getifaddrs.cpp b/config.tests/unix/getifaddrs/getifaddrs.cpp index ad1ecc3fb2..a66ce4af37 100644 --- a/config.tests/unix/getifaddrs/getifaddrs.cpp +++ b/config.tests/unix/getifaddrs/getifaddrs.cpp @@ -40,10 +40,6 @@ /* Sample program for configure to test for if_nametoindex support on target platforms. */ -#if defined(__hpux) -#define _HPUX_SOURCE -#endif - #include #include #include diff --git a/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp b/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp index 1276311e08..fe4b87b923 100644 --- a/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp +++ b/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp @@ -37,9 +37,6 @@ ** ****************************************************************************/ -#if defined(__sgi) -#error "iconv not supported on IRIX" -#else #include int main(int, char **) @@ -55,4 +52,3 @@ int main(int, char **) return 0; } -#endif diff --git a/config.tests/unix/iconv/iconv.cpp b/config.tests/unix/iconv/iconv.cpp index 993a12c7ee..be4236436f 100644 --- a/config.tests/unix/iconv/iconv.cpp +++ b/config.tests/unix/iconv/iconv.cpp @@ -37,9 +37,6 @@ ** ****************************************************************************/ -#if defined(__sgi) -#error "iconv not supported on IRIX" -#else #include int main(int, char **) @@ -55,4 +52,3 @@ int main(int, char **) return 0; } -#endif diff --git a/config.tests/unix/ipv6ifname/ipv6ifname.cpp b/config.tests/unix/ipv6ifname/ipv6ifname.cpp index bf2fe6f6ae..fd58e85adb 100644 --- a/config.tests/unix/ipv6ifname/ipv6ifname.cpp +++ b/config.tests/unix/ipv6ifname/ipv6ifname.cpp @@ -40,10 +40,6 @@ /* Sample program for configure to test for if_nametoindex support on target platforms. */ -#if defined(__hpux) -#define _HPUX_SOURCE -#endif - #include #include #include -- cgit v1.2.3 From 245bd9bf789acfd315dedd34e418027a1e6d1c9b Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 29 Jul 2017 10:31:58 +0200 Subject: configure: prune checks for ancient compilers from some tests these would be caught by the central verifyspec test, if we even got that far. Change-Id: I3eda80c4614b94f869d907f0a40166f4914ea692 Reviewed-by: Thiago Macieira --- config.tests/common/sse2/sse2.cpp | 3 --- config.tests/unix/reduce_exports/fvisibility.c | 6 ------ 2 files changed, 9 deletions(-) (limited to 'config.tests') diff --git a/config.tests/common/sse2/sse2.cpp b/config.tests/common/sse2/sse2.cpp index 7ae0eaf4a7..8b4d5334b5 100644 --- a/config.tests/common/sse2/sse2.cpp +++ b/config.tests/common/sse2/sse2.cpp @@ -38,9 +38,6 @@ ****************************************************************************/ #include -#if defined(__GNUC__) && __GNUC__ < 4 && __GNUC_MINOR__ < 3 -#error GCC < 3.2 is known to create internal compiler errors with our MMX code -#endif int main(int, char**) { diff --git a/config.tests/unix/reduce_exports/fvisibility.c b/config.tests/unix/reduce_exports/fvisibility.c index 71af9d99a3..12055ead46 100644 --- a/config.tests/unix/reduce_exports/fvisibility.c +++ b/config.tests/unix/reduce_exports/fvisibility.c @@ -38,14 +38,8 @@ ****************************************************************************/ #if defined(__GNUC__) -# if (__GNUC__ < 4) -# error "GCC3 with backported visibility patch is known to miscompile Qt" -# endif __attribute((visibility("default"))) void blah(); #elif defined(__SUNPRO_CC) -# if (__SUNPRO_CC < 0x0550) -# error "SunStudio 8 or later is required for ELF visibility" -# endif __global void blah(); #else # error "GCC4+ or SunStudio 8+ are required to support ELF visibility" -- cgit v1.2.3 From 799e09a9472493e7f661582d8247a75211df151e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 28 Jul 2017 23:55:05 +0200 Subject: configure: remove check for ancient libpng < 1.0.17 that's just noise nowadays. Change-Id: Ife75ebcc67de45db76265b1a8fb3b8130ff58c0f Reviewed-by: Thiago Macieira --- config.tests/unix/libpng/libpng.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'config.tests') diff --git a/config.tests/unix/libpng/libpng.cpp b/config.tests/unix/libpng/libpng.cpp index 6808b5fcb3..d3f836e49e 100644 --- a/config.tests/unix/libpng/libpng.cpp +++ b/config.tests/unix/libpng/libpng.cpp @@ -39,10 +39,6 @@ #include -#if !defined(PNG_LIBPNG_VER) || PNG_LIBPNG_VER < 10017 -# error "Required libpng version 1.0.17 not found." -#endif - int main(int, char **) { png_structp png_ptr; -- cgit v1.2.3 From 1229558a40d269477a31b39e84cc5522489cf8c9 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Sat, 29 Jul 2017 10:36:28 +0200 Subject: configure: modernize dbus test remove useless define and ifdef/error, and check for a more appropriate function. Change-Id: I1a1622cc157c49ebb6787068ade7b33e45e228ca Reviewed-by: Thiago Macieira --- config.tests/unix/dbus/dbus.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'config.tests') diff --git a/config.tests/unix/dbus/dbus.cpp b/config.tests/unix/dbus/dbus.cpp index 295c904400..8b1e241cd3 100644 --- a/config.tests/unix/dbus/dbus.cpp +++ b/config.tests/unix/dbus/dbus.cpp @@ -37,15 +37,10 @@ ** ****************************************************************************/ -#define DBUS_API_SUBJECT_TO_CHANGE #include -#if DBUS_MAJOR_PROTOCOL_VERSION < 1 -#error Needs at least dbus version 1 -#endif - int main(int, char **) { - dbus_shutdown(); + (void) dbus_bus_get_private(DBUS_BUS_SYSTEM, (DBusError *)NULL); return 0; } -- cgit v1.2.3 From 92ff8a25005f21c36398ab72e6b00a92183338be Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 31 Jul 2017 12:53:50 +0200 Subject: configure: dispose of which.test just use 'which' and be done with it. the script was rather arcane, and worked around deficiencies of cygwin (no longer relevant) and solaris (assumed to be somewhat sane meanwhile). Change-Id: I2e11ea3c87ac06a85604ac8d58d8fee95eae2e15 Reviewed-by: Thiago Macieira --- config.tests/unix/which.test | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100755 config.tests/unix/which.test (limited to 'config.tests') diff --git a/config.tests/unix/which.test b/config.tests/unix/which.test deleted file mode 100755 index 37c858c2f7..0000000000 --- a/config.tests/unix/which.test +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh - -HOME=/dev/null -export HOME - -unset which - -WHICH=`which which 2>/dev/null` -if echo $WHICH | grep 'shell built-in command' >/dev/null 2>&1; then - WHICH=which -elif [ -z "$WHICH" ]; then - if which which >/dev/null 2>&1; then - WHICH=which - else - for a in /usr/ucb /usr/bin /bin /usr/local/bin; do - if [ -x $a/which ]; then - WHICH=$a/which - break; - fi - done - fi -fi - -if [ -z "$WHICH" ]; then - IFS=: - for a in $PATH; do - if [ -x $a/$1 ]; then - echo "$a/$1" - exit 0 - fi - done -else - a=`"$WHICH" "$1" 2>/dev/null` - if [ ! -z "$a" -a -x "$a" ]; then - echo "$a" - exit 0 - fi -fi -exit 1 -- cgit v1.2.3 From 90588d57d71e1eedf6becd3ebf505f3bd67b592b Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 1 Aug 2017 18:40:10 +0200 Subject: configure: remove redundant parts of xcb_xkb test testing the non-xkb xcb parts is unnecessary, as we already did that separately. Change-Id: I452cc746315117a0169f0e0c764fe7e0229437e9 Reviewed-by: Gatis Paeglis --- config.tests/qpa/xcb-xkb/xcb-xkb.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'config.tests') diff --git a/config.tests/qpa/xcb-xkb/xcb-xkb.cpp b/config.tests/qpa/xcb-xkb/xcb-xkb.cpp index 9685649633..f7ec9a7d43 100644 --- a/config.tests/qpa/xcb-xkb/xcb-xkb.cpp +++ b/config.tests/qpa/xcb-xkb/xcb-xkb.cpp @@ -37,8 +37,6 @@ ** ****************************************************************************/ -#include - // This is needed to make Qt compile together with XKB. xkb.h is using a variable // which is called 'explicit', this is a reserved keyword in c++ */ #define explicit dont_use_cxx_explicit @@ -47,15 +45,8 @@ int main(int, char **) { - int primaryScreen = 0; - - xcb_connection_t *connection = xcb_connect("", &primaryScreen); - // This takes more arguments in xcb-xkb < 1.10. xcb_xkb_get_kbd_by_name_unchecked(NULL, 0, 0, 0, 0); - // This won't compile unless libxcb >= 1.5 which defines XCB_ATOM_PRIMARY. - int xcbAtomPrimary = XCB_ATOM_PRIMARY; - return 0; } -- cgit v1.2.3 From f54f7d847099db448223fd630c5416b6fbd84c9e Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 1 Aug 2017 18:30:33 +0200 Subject: configure: Add a feature to write tests in the .json file We're adding a lot of unnecessary files that end up later as cargo-cult, for at most a handful of lines. So instead move the testcases directly into the .json file. The following sources were not inlined, because multiple tests share them, and the inlining infra does not support that (yet): - avx512 - openssl - gnu-libiconv/sun-libiconv (there is also a command line option to select the exact variant, which makes it hard/impossible to properly coalesce the library sources) The following sources were not inlined because of "complications": - verifyspec contains a lengthy function in the project file - stl contains lots of code in the source file - xlocalescanprint includes a private header from the source tree via a relative path, which we can't do, as the test's physical location is variable. - corewlan uses objective c++, which the inline system doesn't support reduce_relocs and reduce_exports now create libraries with main(), which is weird enough, but doesn't hurt. Done-with: Oswald Buddenhagen Change-Id: Ic3a088f9f08a4fd7ae91fffd14ce8a262021cca0 Reviewed-by: Oswald Buddenhagen --- config.tests/common/alloca/alloca.cpp | 56 ----------------- config.tests/common/alloca/alloca.pro | 1 - config.tests/common/atomic64/atomic64.cpp | 60 ------------------ config.tests/common/atomic64/atomic64.pro | 3 - config.tests/common/atomicfptr/atomicfptr.cpp | 64 ------------------- config.tests/common/atomicfptr/atomicfptr.pro | 3 - config.tests/common/avx/avx.cpp | 49 --------------- config.tests/common/avx/avx.pro | 3 - config.tests/common/avx2/avx2.cpp | 53 ---------------- config.tests/common/avx2/avx2.pro | 3 - config.tests/common/c++14/c++14.cpp | 46 -------------- config.tests/common/c++14/c++14.pro | 3 - config.tests/common/c++1z/c++1z.cpp | 48 -------------- config.tests/common/c++1z/c++1z.pro | 3 - config.tests/common/f16c/f16c.cpp | 51 --------------- config.tests/common/f16c/f16c.pro | 3 - config.tests/common/libproxy/libproxy.cpp | 57 ----------------- config.tests/common/libproxy/libproxy.pro | 3 - config.tests/common/sse2/sse2.cpp | 47 -------------- config.tests/common/sse2/sse2.pro | 3 - config.tests/common/sse3/sse3.cpp | 49 --------------- config.tests/common/sse3/sse3.pro | 3 - config.tests/common/sse4_1/sse4_1.cpp | 49 --------------- config.tests/common/sse4_1/sse4_1.pro | 3 - config.tests/common/sse4_2/sse4_2.cpp | 49 --------------- config.tests/common/sse4_2/sse4_2.pro | 3 - config.tests/common/ssse3/ssse3.cpp | 49 --------------- config.tests/common/ssse3/ssse3.pro | 3 - config.tests/qpa/direct2d/direct2d.cpp | 57 ----------------- config.tests/qpa/direct2d/direct2d.pro | 3 - config.tests/qpa/directfb/directfb.cpp | 49 --------------- config.tests/qpa/directfb/directfb.pro | 2 - config.tests/qpa/egl-x11/egl-x11.cpp | 60 ------------------ config.tests/qpa/egl-x11/egl-x11.pro | 3 - config.tests/qpa/egl/egl.cpp | 49 --------------- config.tests/qpa/egl/egl.pro | 3 - config.tests/qpa/eglfs-brcm/eglfs-brcm.cpp | 50 --------------- config.tests/qpa/eglfs-brcm/eglfs-brcm.pro | 3 - .../qpa/eglfs-egldevice/eglfs-egldevice.cpp | 49 --------------- .../qpa/eglfs-egldevice/eglfs-egldevice.pro | 3 - config.tests/qpa/eglfs-mali-2/eglfs-mali-2.cpp | 50 --------------- config.tests/qpa/eglfs-mali-2/eglfs-mali-2.pro | 3 - config.tests/qpa/eglfs-mali/eglfs-mali.cpp | 51 --------------- config.tests/qpa/eglfs-mali/eglfs-mali.pro | 3 - config.tests/qpa/eglfs-viv/eglfs-viv.cpp | 53 ---------------- config.tests/qpa/eglfs-viv/eglfs-viv.pro | 7 --- config.tests/qpa/gbm/gbm.cpp | 50 --------------- config.tests/qpa/gbm/gbm.pro | 2 - config.tests/qpa/integrityfb/integrityfb.cpp | 46 -------------- config.tests/qpa/integrityfb/integrityfb.pro | 3 - config.tests/qpa/integrityhid/integrityhid.cpp | 52 --------------- config.tests/qpa/integrityhid/integrityhid.pro | 2 - config.tests/qpa/kms/kms.cpp | 51 --------------- config.tests/qpa/kms/kms.pro | 2 - config.tests/qpa/linuxfb/linuxfb.cpp | 54 ---------------- config.tests/qpa/linuxfb/linuxfb.pro | 3 - config.tests/qpa/mirclient/mirclient.cpp | 53 ---------------- config.tests/qpa/mirclient/mirclient.pro | 2 - config.tests/qpa/wayland-server/wayland-server.pro | 3 - config.tests/qpa/wayland-server/wl.cpp | 46 -------------- config.tests/qpa/xcb-glx/xcb-glx.cpp | 55 ---------------- config.tests/qpa/xcb-glx/xcb-glx.pro | 2 - config.tests/qpa/xcb-render/xcb-render.cpp | 70 --------------------- config.tests/qpa/xcb-render/xcb-render.pro | 2 - config.tests/qpa/xcb-syslibs/xcb-syslibs.pro | 2 - config.tests/qpa/xcb-syslibs/xcb.cpp | 61 ------------------ config.tests/qpa/xcb-xkb/xcb-xkb.cpp | 52 --------------- config.tests/qpa/xcb-xkb/xcb-xkb.pro | 2 - config.tests/qpa/xcb-xlib/xcb-xlib.cpp | 50 --------------- config.tests/qpa/xcb-xlib/xcb-xlib.pro | 2 - config.tests/qpa/xcb/xcb.cpp | 51 --------------- config.tests/qpa/xcb/xcb.pro | 2 - config.tests/unix/clock-gettime/clock-gettime.cpp | 53 ---------------- config.tests/unix/clock-gettime/clock-gettime.pro | 2 - .../unix/clock-monotonic/clock-monotonic.cpp | 53 ---------------- .../unix/clock-monotonic/clock-monotonic.pro | 2 - config.tests/unix/cloexec/cloexec.cpp | 59 ----------------- config.tests/unix/cloexec/cloexec.pro | 3 - config.tests/unix/cups/cups.cpp | 47 -------------- config.tests/unix/cups/cups.pro | 2 - config.tests/unix/db2/db2.cpp | 46 -------------- config.tests/unix/db2/db2.pro | 2 - config.tests/unix/dbus/dbus.cpp | 46 -------------- config.tests/unix/dbus/dbus.pro | 8 --- config.tests/unix/dlopen/dlopen.cpp | 45 ------------- config.tests/unix/dlopen/dlopen.pro | 2 - .../unix/doubleconversion/doubleconversion.cpp | 46 -------------- .../unix/doubleconversion/doubleconversion.pro | 3 - config.tests/unix/evdev/evdev.cpp | 59 ----------------- config.tests/unix/evdev/evdev.pro | 2 - config.tests/unix/eventfd/eventfd.pro | 2 - config.tests/unix/eventfd/main.cpp | 49 --------------- config.tests/unix/fontconfig/fontconfig.cpp | 59 ----------------- config.tests/unix/fontconfig/fontconfig.pro | 2 - config.tests/unix/freetype/freetype.cpp | 52 --------------- config.tests/unix/freetype/freetype.pro | 2 - config.tests/unix/getaddrinfo/getaddrinfo.pro | 2 - config.tests/unix/getaddrinfo/getaddrinfotest.cpp | 62 ------------------ config.tests/unix/getifaddrs/getifaddrs.cpp | 54 ---------------- config.tests/unix/getifaddrs/getifaddrs.pro | 3 - config.tests/unix/glib/glib.cpp | 56 ----------------- config.tests/unix/glib/glib.pro | 2 - config.tests/unix/harfbuzz/harfbuzz.cpp | 58 ----------------- config.tests/unix/harfbuzz/harfbuzz.pro | 2 - config.tests/unix/ibase/ibase.cpp | 45 ------------- config.tests/unix/ibase/ibase.pro | 2 - config.tests/unix/icu/icu.cpp | 52 --------------- config.tests/unix/icu/icu.pro | 9 --- config.tests/unix/inotify/inotify.pro | 2 - config.tests/unix/inotify/inotifytest.cpp | 48 -------------- config.tests/unix/ipc_posix/ipc.cpp | 55 ---------------- config.tests/unix/ipc_posix/ipc_posix.pro | 4 -- config.tests/unix/ipc_sysv/ipc.cpp | 57 ----------------- config.tests/unix/ipc_sysv/ipc_sysv.pro | 3 - config.tests/unix/ipv6ifname/ipv6ifname.cpp | 53 ---------------- config.tests/unix/ipv6ifname/ipv6ifname.pro | 3 - config.tests/unix/journald/journald.c | 52 --------------- config.tests/unix/journald/journald.pro | 3 - config.tests/unix/lgmon/lgmon.cpp | 47 -------------- config.tests/unix/lgmon/lgmon.pro | 2 - config.tests/unix/libinput/libinput.cpp | 46 -------------- config.tests/unix/libinput/libinput.pro | 2 - .../unix/libinput_axis_api/libinput_axis_api.cpp | 46 -------------- .../unix/libinput_axis_api/libinput_axis_api.pro | 2 - config.tests/unix/libjpeg/libjpeg.cpp | 52 --------------- config.tests/unix/libjpeg/libjpeg.pro | 2 - config.tests/unix/libpng/libpng.cpp | 47 -------------- config.tests/unix/libpng/libpng.pro | 2 - config.tests/unix/libudev/libudev.cpp | 47 -------------- config.tests/unix/libudev/libudev.pro | 2 - config.tests/unix/mtdev/mtdev.cpp | 47 -------------- config.tests/unix/mtdev/mtdev.pro | 3 - config.tests/unix/mysql/mysql.cpp | 49 --------------- config.tests/unix/mysql/mysql.pro | 2 - config.tests/unix/objcopy/objcopy.cpp | 43 ------------- config.tests/unix/objcopy/objcopy.pro | 7 --- config.tests/unix/oci/oci.cpp | 45 ------------- config.tests/unix/oci/oci.pro | 2 - config.tests/unix/odbc/odbc.cpp | 51 --------------- config.tests/unix/odbc/odbc.pro | 2 - config.tests/unix/opengldesktop/opengldesktop.cpp | 55 ---------------- config.tests/unix/opengldesktop/opengldesktop.pro | 3 - config.tests/unix/opengles2/opengles2.cpp | 53 ---------------- config.tests/unix/opengles2/opengles2.pro | 3 - config.tests/unix/opengles3/opengles3.cpp | 56 ----------------- config.tests/unix/opengles3/opengles3.pro | 7 --- config.tests/unix/opengles31/opengles31.cpp | 48 -------------- config.tests/unix/opengles31/opengles31.pro | 7 --- config.tests/unix/openvg/openvg.cpp | 49 --------------- config.tests/unix/openvg/openvg.pro | 3 - config.tests/unix/pcre2/pcre2.cpp | 52 --------------- config.tests/unix/pcre2/pcre2.pro | 2 - config.tests/unix/poll/poll.cpp | 51 --------------- config.tests/unix/poll/poll.pro | 2 - config.tests/unix/pollts/pollts.cpp | 57 ----------------- config.tests/unix/pollts/pollts.pro | 2 - .../unix/posix_fallocate/posix_fallocate.cpp | 49 --------------- .../unix/posix_fallocate/posix_fallocate.pro | 2 - config.tests/unix/ppoll/ppoll.cpp | 56 ----------------- config.tests/unix/ppoll/ppoll.pro | 2 - config.tests/unix/pps/pps.cpp | 48 -------------- config.tests/unix/pps/pps.pro | 2 - config.tests/unix/psql/psql.cpp | 47 -------------- config.tests/unix/psql/psql.pro | 2 - config.tests/unix/qqnx_imf/qqnx_imf.cpp | 46 -------------- config.tests/unix/qqnx_imf/qqnx_imf.pro | 2 - config.tests/unix/reduce_exports/fvisibility.c | 46 -------------- .../unix/reduce_exports/reduce_exports.pro | 5 -- .../unix/reduce_relocs/bsymbolic_functions.c | 44 ------------- config.tests/unix/reduce_relocs/reduce_relocs.pro | 5 -- config.tests/unix/sctp/sctp.cpp | 62 ------------------ config.tests/unix/sctp/sctp.pro | 3 - config.tests/unix/slog2/slog2.cpp | 46 -------------- config.tests/unix/slog2/slog2.pro | 2 - config.tests/unix/sqlite/sqlite.cpp | 46 -------------- config.tests/unix/sqlite/sqlite.pro | 2 - config.tests/unix/sqlite2/sqlite2.cpp | 45 ------------- config.tests/unix/sqlite2/sqlite2.pro | 2 - .../unix/stack-protector/stack-protector.cpp | 52 --------------- .../unix/stack-protector/stack-protector.pro | 2 - config.tests/unix/syslog/syslog.c | 48 -------------- config.tests/unix/syslog/syslog.pro | 3 - config.tests/unix/tds/tds.cpp | 46 -------------- config.tests/unix/tds/tds.pro | 2 - config.tests/unix/tslib/tslib.cpp | 46 -------------- config.tests/unix/tslib/tslib.pro | 2 - config.tests/unix/xkbcommon/xkbcommon.cpp | 48 -------------- config.tests/unix/xkbcommon/xkbcommon.pro | 2 - config.tests/unix/zlib/zlib.cpp | 52 --------------- config.tests/unix/zlib/zlib.pro | 2 - config.tests/win/directwrite/directwrite.cpp | 50 --------------- config.tests/win/directwrite/directwrite.pro | 3 - config.tests/win/directwrite2/directwrite2.cpp | 51 --------------- config.tests/win/directwrite2/directwrite2.pro | 3 - config.tests/x11/xinput2/xinput2.cpp | 73 ---------------------- config.tests/x11/xinput2/xinput2.pro | 3 - config.tests/x11/xlib/xlib.cpp | 48 -------------- config.tests/x11/xlib/xlib.pro | 3 - 198 files changed, 5359 deletions(-) delete mode 100644 config.tests/common/alloca/alloca.cpp delete mode 100644 config.tests/common/alloca/alloca.pro delete mode 100644 config.tests/common/atomic64/atomic64.cpp delete mode 100644 config.tests/common/atomic64/atomic64.pro delete mode 100644 config.tests/common/atomicfptr/atomicfptr.cpp delete mode 100644 config.tests/common/atomicfptr/atomicfptr.pro delete mode 100644 config.tests/common/avx/avx.cpp delete mode 100644 config.tests/common/avx/avx.pro delete mode 100644 config.tests/common/avx2/avx2.cpp delete mode 100644 config.tests/common/avx2/avx2.pro delete mode 100644 config.tests/common/c++14/c++14.cpp delete mode 100644 config.tests/common/c++14/c++14.pro delete mode 100644 config.tests/common/c++1z/c++1z.cpp delete mode 100644 config.tests/common/c++1z/c++1z.pro delete mode 100644 config.tests/common/f16c/f16c.cpp delete mode 100644 config.tests/common/f16c/f16c.pro delete mode 100644 config.tests/common/libproxy/libproxy.cpp delete mode 100644 config.tests/common/libproxy/libproxy.pro delete mode 100644 config.tests/common/sse2/sse2.cpp delete mode 100644 config.tests/common/sse2/sse2.pro delete mode 100644 config.tests/common/sse3/sse3.cpp delete mode 100644 config.tests/common/sse3/sse3.pro delete mode 100644 config.tests/common/sse4_1/sse4_1.cpp delete mode 100644 config.tests/common/sse4_1/sse4_1.pro delete mode 100644 config.tests/common/sse4_2/sse4_2.cpp delete mode 100644 config.tests/common/sse4_2/sse4_2.pro delete mode 100644 config.tests/common/ssse3/ssse3.cpp delete mode 100644 config.tests/common/ssse3/ssse3.pro delete mode 100644 config.tests/qpa/direct2d/direct2d.cpp delete mode 100644 config.tests/qpa/direct2d/direct2d.pro delete mode 100644 config.tests/qpa/directfb/directfb.cpp delete mode 100644 config.tests/qpa/directfb/directfb.pro delete mode 100644 config.tests/qpa/egl-x11/egl-x11.cpp delete mode 100644 config.tests/qpa/egl-x11/egl-x11.pro delete mode 100644 config.tests/qpa/egl/egl.cpp delete mode 100644 config.tests/qpa/egl/egl.pro delete mode 100644 config.tests/qpa/eglfs-brcm/eglfs-brcm.cpp delete mode 100644 config.tests/qpa/eglfs-brcm/eglfs-brcm.pro delete mode 100644 config.tests/qpa/eglfs-egldevice/eglfs-egldevice.cpp delete mode 100644 config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro delete mode 100644 config.tests/qpa/eglfs-mali-2/eglfs-mali-2.cpp delete mode 100644 config.tests/qpa/eglfs-mali-2/eglfs-mali-2.pro delete mode 100644 config.tests/qpa/eglfs-mali/eglfs-mali.cpp delete mode 100644 config.tests/qpa/eglfs-mali/eglfs-mali.pro delete mode 100644 config.tests/qpa/eglfs-viv/eglfs-viv.cpp delete mode 100644 config.tests/qpa/eglfs-viv/eglfs-viv.pro delete mode 100644 config.tests/qpa/gbm/gbm.cpp delete mode 100644 config.tests/qpa/gbm/gbm.pro delete mode 100644 config.tests/qpa/integrityfb/integrityfb.cpp delete mode 100644 config.tests/qpa/integrityfb/integrityfb.pro delete mode 100644 config.tests/qpa/integrityhid/integrityhid.cpp delete mode 100644 config.tests/qpa/integrityhid/integrityhid.pro delete mode 100644 config.tests/qpa/kms/kms.cpp delete mode 100644 config.tests/qpa/kms/kms.pro delete mode 100644 config.tests/qpa/linuxfb/linuxfb.cpp delete mode 100644 config.tests/qpa/linuxfb/linuxfb.pro delete mode 100644 config.tests/qpa/mirclient/mirclient.cpp delete mode 100644 config.tests/qpa/mirclient/mirclient.pro delete mode 100644 config.tests/qpa/wayland-server/wayland-server.pro delete mode 100644 config.tests/qpa/wayland-server/wl.cpp delete mode 100644 config.tests/qpa/xcb-glx/xcb-glx.cpp delete mode 100644 config.tests/qpa/xcb-glx/xcb-glx.pro delete mode 100644 config.tests/qpa/xcb-render/xcb-render.cpp delete mode 100644 config.tests/qpa/xcb-render/xcb-render.pro delete mode 100644 config.tests/qpa/xcb-syslibs/xcb-syslibs.pro delete mode 100644 config.tests/qpa/xcb-syslibs/xcb.cpp delete mode 100644 config.tests/qpa/xcb-xkb/xcb-xkb.cpp delete mode 100644 config.tests/qpa/xcb-xkb/xcb-xkb.pro delete mode 100644 config.tests/qpa/xcb-xlib/xcb-xlib.cpp delete mode 100644 config.tests/qpa/xcb-xlib/xcb-xlib.pro delete mode 100644 config.tests/qpa/xcb/xcb.cpp delete mode 100644 config.tests/qpa/xcb/xcb.pro delete mode 100644 config.tests/unix/clock-gettime/clock-gettime.cpp delete mode 100644 config.tests/unix/clock-gettime/clock-gettime.pro delete mode 100644 config.tests/unix/clock-monotonic/clock-monotonic.cpp delete mode 100644 config.tests/unix/clock-monotonic/clock-monotonic.pro delete mode 100644 config.tests/unix/cloexec/cloexec.cpp delete mode 100644 config.tests/unix/cloexec/cloexec.pro delete mode 100644 config.tests/unix/cups/cups.cpp delete mode 100644 config.tests/unix/cups/cups.pro delete mode 100644 config.tests/unix/db2/db2.cpp delete mode 100644 config.tests/unix/db2/db2.pro delete mode 100644 config.tests/unix/dbus/dbus.cpp delete mode 100644 config.tests/unix/dbus/dbus.pro delete mode 100644 config.tests/unix/dlopen/dlopen.cpp delete mode 100644 config.tests/unix/dlopen/dlopen.pro delete mode 100644 config.tests/unix/doubleconversion/doubleconversion.cpp delete mode 100644 config.tests/unix/doubleconversion/doubleconversion.pro delete mode 100644 config.tests/unix/evdev/evdev.cpp delete mode 100644 config.tests/unix/evdev/evdev.pro delete mode 100644 config.tests/unix/eventfd/eventfd.pro delete mode 100644 config.tests/unix/eventfd/main.cpp delete mode 100644 config.tests/unix/fontconfig/fontconfig.cpp delete mode 100644 config.tests/unix/fontconfig/fontconfig.pro delete mode 100644 config.tests/unix/freetype/freetype.cpp delete mode 100644 config.tests/unix/freetype/freetype.pro delete mode 100644 config.tests/unix/getaddrinfo/getaddrinfo.pro delete mode 100644 config.tests/unix/getaddrinfo/getaddrinfotest.cpp delete mode 100644 config.tests/unix/getifaddrs/getifaddrs.cpp delete mode 100644 config.tests/unix/getifaddrs/getifaddrs.pro delete mode 100644 config.tests/unix/glib/glib.cpp delete mode 100644 config.tests/unix/glib/glib.pro delete mode 100644 config.tests/unix/harfbuzz/harfbuzz.cpp delete mode 100644 config.tests/unix/harfbuzz/harfbuzz.pro delete mode 100644 config.tests/unix/ibase/ibase.cpp delete mode 100644 config.tests/unix/ibase/ibase.pro delete mode 100644 config.tests/unix/icu/icu.cpp delete mode 100644 config.tests/unix/icu/icu.pro delete mode 100644 config.tests/unix/inotify/inotify.pro delete mode 100644 config.tests/unix/inotify/inotifytest.cpp delete mode 100644 config.tests/unix/ipc_posix/ipc.cpp delete mode 100644 config.tests/unix/ipc_posix/ipc_posix.pro delete mode 100644 config.tests/unix/ipc_sysv/ipc.cpp delete mode 100644 config.tests/unix/ipc_sysv/ipc_sysv.pro delete mode 100644 config.tests/unix/ipv6ifname/ipv6ifname.cpp delete mode 100644 config.tests/unix/ipv6ifname/ipv6ifname.pro delete mode 100644 config.tests/unix/journald/journald.c delete mode 100644 config.tests/unix/journald/journald.pro delete mode 100644 config.tests/unix/lgmon/lgmon.cpp delete mode 100644 config.tests/unix/lgmon/lgmon.pro delete mode 100644 config.tests/unix/libinput/libinput.cpp delete mode 100644 config.tests/unix/libinput/libinput.pro delete mode 100644 config.tests/unix/libinput_axis_api/libinput_axis_api.cpp delete mode 100644 config.tests/unix/libinput_axis_api/libinput_axis_api.pro delete mode 100644 config.tests/unix/libjpeg/libjpeg.cpp delete mode 100644 config.tests/unix/libjpeg/libjpeg.pro delete mode 100644 config.tests/unix/libpng/libpng.cpp delete mode 100644 config.tests/unix/libpng/libpng.pro delete mode 100644 config.tests/unix/libudev/libudev.cpp delete mode 100644 config.tests/unix/libudev/libudev.pro delete mode 100644 config.tests/unix/mtdev/mtdev.cpp delete mode 100644 config.tests/unix/mtdev/mtdev.pro delete mode 100644 config.tests/unix/mysql/mysql.cpp delete mode 100644 config.tests/unix/mysql/mysql.pro delete mode 100644 config.tests/unix/objcopy/objcopy.cpp delete mode 100644 config.tests/unix/objcopy/objcopy.pro delete mode 100644 config.tests/unix/oci/oci.cpp delete mode 100644 config.tests/unix/oci/oci.pro delete mode 100644 config.tests/unix/odbc/odbc.cpp delete mode 100644 config.tests/unix/odbc/odbc.pro delete mode 100644 config.tests/unix/opengldesktop/opengldesktop.cpp delete mode 100644 config.tests/unix/opengldesktop/opengldesktop.pro delete mode 100644 config.tests/unix/opengles2/opengles2.cpp delete mode 100644 config.tests/unix/opengles2/opengles2.pro delete mode 100644 config.tests/unix/opengles3/opengles3.cpp delete mode 100644 config.tests/unix/opengles3/opengles3.pro delete mode 100644 config.tests/unix/opengles31/opengles31.cpp delete mode 100644 config.tests/unix/opengles31/opengles31.pro delete mode 100644 config.tests/unix/openvg/openvg.cpp delete mode 100644 config.tests/unix/openvg/openvg.pro delete mode 100644 config.tests/unix/pcre2/pcre2.cpp delete mode 100644 config.tests/unix/pcre2/pcre2.pro delete mode 100644 config.tests/unix/poll/poll.cpp delete mode 100644 config.tests/unix/poll/poll.pro delete mode 100644 config.tests/unix/pollts/pollts.cpp delete mode 100644 config.tests/unix/pollts/pollts.pro delete mode 100644 config.tests/unix/posix_fallocate/posix_fallocate.cpp delete mode 100644 config.tests/unix/posix_fallocate/posix_fallocate.pro delete mode 100644 config.tests/unix/ppoll/ppoll.cpp delete mode 100644 config.tests/unix/ppoll/ppoll.pro delete mode 100644 config.tests/unix/pps/pps.cpp delete mode 100644 config.tests/unix/pps/pps.pro delete mode 100644 config.tests/unix/psql/psql.cpp delete mode 100644 config.tests/unix/psql/psql.pro delete mode 100644 config.tests/unix/qqnx_imf/qqnx_imf.cpp delete mode 100644 config.tests/unix/qqnx_imf/qqnx_imf.pro delete mode 100644 config.tests/unix/reduce_exports/fvisibility.c delete mode 100644 config.tests/unix/reduce_exports/reduce_exports.pro delete mode 100644 config.tests/unix/reduce_relocs/bsymbolic_functions.c delete mode 100644 config.tests/unix/reduce_relocs/reduce_relocs.pro delete mode 100644 config.tests/unix/sctp/sctp.cpp delete mode 100644 config.tests/unix/sctp/sctp.pro delete mode 100644 config.tests/unix/slog2/slog2.cpp delete mode 100644 config.tests/unix/slog2/slog2.pro delete mode 100644 config.tests/unix/sqlite/sqlite.cpp delete mode 100644 config.tests/unix/sqlite/sqlite.pro delete mode 100644 config.tests/unix/sqlite2/sqlite2.cpp delete mode 100644 config.tests/unix/sqlite2/sqlite2.pro delete mode 100644 config.tests/unix/stack-protector/stack-protector.cpp delete mode 100644 config.tests/unix/stack-protector/stack-protector.pro delete mode 100644 config.tests/unix/syslog/syslog.c delete mode 100644 config.tests/unix/syslog/syslog.pro delete mode 100644 config.tests/unix/tds/tds.cpp delete mode 100644 config.tests/unix/tds/tds.pro delete mode 100644 config.tests/unix/tslib/tslib.cpp delete mode 100644 config.tests/unix/tslib/tslib.pro delete mode 100644 config.tests/unix/xkbcommon/xkbcommon.cpp delete mode 100644 config.tests/unix/xkbcommon/xkbcommon.pro delete mode 100644 config.tests/unix/zlib/zlib.cpp delete mode 100644 config.tests/unix/zlib/zlib.pro delete mode 100644 config.tests/win/directwrite/directwrite.cpp delete mode 100644 config.tests/win/directwrite/directwrite.pro delete mode 100644 config.tests/win/directwrite2/directwrite2.cpp delete mode 100644 config.tests/win/directwrite2/directwrite2.pro delete mode 100644 config.tests/x11/xinput2/xinput2.cpp delete mode 100644 config.tests/x11/xinput2/xinput2.pro delete mode 100644 config.tests/x11/xlib/xlib.cpp delete mode 100644 config.tests/x11/xlib/xlib.pro (limited to 'config.tests') diff --git a/config.tests/common/alloca/alloca.cpp b/config.tests/common/alloca/alloca.cpp deleted file mode 100644 index 500bdb9ba2..0000000000 --- a/config.tests/common/alloca/alloca.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if defined(USE_ALLOCA_H) -# include -# ifdef __QNXNTO__ -// extra include needed in QNX7 to define NULL for the alloca() macro -# include -# endif -#elif defined(USE_MALLOC_H) -# include -#else -# include -#endif - -int main(int, char **) -{ - alloca(1); - return 0; -} diff --git a/config.tests/common/alloca/alloca.pro b/config.tests/common/alloca/alloca.pro deleted file mode 100644 index a2d7d45da2..0000000000 --- a/config.tests/common/alloca/alloca.pro +++ /dev/null @@ -1 +0,0 @@ -SOURCES = alloca.cpp diff --git a/config.tests/common/atomic64/atomic64.cpp b/config.tests/common/atomic64/atomic64.cpp deleted file mode 100644 index 3181caf15e..0000000000 --- a/config.tests/common/atomic64/atomic64.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -void test(volatile std::atomic &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); -} - -int main(int, char **) -{ - void *ptr = (void*)0xffffffc0; // any random pointer - test(*reinterpret_cast *>(ptr)); - return 0; -} diff --git a/config.tests/common/atomic64/atomic64.pro b/config.tests/common/atomic64/atomic64.pro deleted file mode 100644 index c9a85817ca..0000000000 --- a/config.tests/common/atomic64/atomic64.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = atomic64.cpp -CONFIG += c++11 console -CONFIG -= qt diff --git a/config.tests/common/atomicfptr/atomicfptr.cpp b/config.tests/common/atomicfptr/atomicfptr.cpp deleted file mode 100644 index a993357127..0000000000 --- a/config.tests/common/atomicfptr/atomicfptr.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the FOO module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -typedef void (*fptr)(int); -typedef std::atomic 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(int, char **) -{ - atomicfptr fptr(testfunction); - test(fptr); - return 0; -} diff --git a/config.tests/common/atomicfptr/atomicfptr.pro b/config.tests/common/atomicfptr/atomicfptr.pro deleted file mode 100644 index 5509862a30..0000000000 --- a/config.tests/common/atomicfptr/atomicfptr.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = atomicfptr.cpp -CONFIG += c++11 console -CONFIG -= qt app_bundle diff --git a/config.tests/common/avx/avx.cpp b/config.tests/common/avx/avx.cpp deleted file mode 100644 index a26f87f157..0000000000 --- a/config.tests/common/avx/avx.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - __m256d a = _mm256_setzero_pd(); - __m256d b = _mm256_set1_pd(42.42); - __m256d result = _mm256_add_pd(a, b); - (void)result; - return 0; -} diff --git a/config.tests/common/avx/avx.pro b/config.tests/common/avx/avx.pro deleted file mode 100644 index fde4adaea2..0000000000 --- a/config.tests/common/avx/avx.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = avx.cpp -!defined(QMAKE_CFLAGS_AVX, "var"):error("This compiler does not support AVX") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX diff --git a/config.tests/common/avx2/avx2.cpp b/config.tests/common/avx2/avx2.cpp deleted file mode 100644 index 2df7e908dd..0000000000 --- a/config.tests/common/avx2/avx2.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - /* AVX */ - _mm256_zeroall(); - __m256i a = _mm256_setzero_si256(); - - /* AVX2 */ - __m256i b = _mm256_and_si256(a, a); - __m256i result = _mm256_add_epi8(a, b); - (void)result; - return 0; -} diff --git a/config.tests/common/avx2/avx2.pro b/config.tests/common/avx2/avx2.pro deleted file mode 100644 index 1963bdb4b9..0000000000 --- a/config.tests/common/avx2/avx2.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = avx2.cpp -!defined(QMAKE_CFLAGS_AVX2, "var"):error("This compiler does not support AVX2") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_AVX2 diff --git a/config.tests/common/c++14/c++14.cpp b/config.tests/common/c++14/c++14.cpp deleted file mode 100644 index 1129213d1f..0000000000 --- a/config.tests/common/c++14/c++14.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if __cplusplus > 201103L -// Compiler claims to support C++14, trust it -#else -# error "__cplusplus must be > 201103L (the value of C++11)" -#endif - -int main(int, char **) { return 0; } diff --git a/config.tests/common/c++14/c++14.pro b/config.tests/common/c++14/c++14.pro deleted file mode 100644 index cbd78ba6fe..0000000000 --- a/config.tests/common/c++14/c++14.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = c++14.cpp -CONFIG += c++11 c++14 console -CONFIG -= qt diff --git a/config.tests/common/c++1z/c++1z.cpp b/config.tests/common/c++1z/c++1z.cpp deleted file mode 100644 index 63c6fb5b8a..0000000000 --- a/config.tests/common/c++1z/c++1z.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if __cplusplus > 201402L -// Compiler claims to support experimental C++1z, trust it -#else -# error "__cplusplus must be > 201402L (the value for C++14)" -#endif - -#include // https://bugs.llvm.org//show_bug.cgi?id=33117 - -int main(int, char **) { return 0; } diff --git a/config.tests/common/c++1z/c++1z.pro b/config.tests/common/c++1z/c++1z.pro deleted file mode 100644 index 3a24946276..0000000000 --- a/config.tests/common/c++1z/c++1z.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = c++1z.cpp -CONFIG += c++11 c++14 c++1z console -CONFIG -= qt diff --git a/config.tests/common/f16c/f16c.cpp b/config.tests/common/f16c/f16c.cpp deleted file mode 100644 index aeeb35eac3..0000000000 --- a/config.tests/common/f16c/f16c.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - __m128i a = _mm_setzero_si128(); - __m128 b = _mm_cvtph_ps(a); - __m256 b256 = _mm256_cvtph_ps(a); - __m128i c = _mm_cvtps_ph(b, 0); - c = _mm256_cvtps_ph(b256, 0); - (void)c; - return 0; -} diff --git a/config.tests/common/f16c/f16c.pro b/config.tests/common/f16c/f16c.pro deleted file mode 100644 index fcab1877c1..0000000000 --- a/config.tests/common/f16c/f16c.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = f16c.cpp -!defined(QMAKE_CFLAGS_F16C, "var"):error("This compiler does not support F16C") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_F16C diff --git a/config.tests/common/libproxy/libproxy.cpp b/config.tests/common/libproxy/libproxy.cpp deleted file mode 100644 index 97a1a94ed7..0000000000 --- a/config.tests/common/libproxy/libproxy.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main(int, char **) -{ - pxProxyFactory *factory = px_proxy_factory_new(); - char **proxies = px_proxy_factory_get_proxies(factory, "http://qt-project.org"); - if (proxies) { - for (int i = 0; proxies[i]; i++) { - printf("%s\n", proxies[i]); - free(proxies[i]); - } - free(proxies); - } - px_proxy_factory_free(factory); - return 0; -} diff --git a/config.tests/common/libproxy/libproxy.pro b/config.tests/common/libproxy/libproxy.pro deleted file mode 100644 index e3183d99e7..0000000000 --- a/config.tests/common/libproxy/libproxy.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = libproxy.cpp -CONFIG -= qt dylib -mac:CONFIG -= app_bundle diff --git a/config.tests/common/sse2/sse2.cpp b/config.tests/common/sse2/sse2.cpp deleted file mode 100644 index 8b4d5334b5..0000000000 --- a/config.tests/common/sse2/sse2.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - __m128i a = _mm_setzero_si128(); - _mm_maskmoveu_si128(a, _mm_setzero_si128(), 0); - return 0; -} diff --git a/config.tests/common/sse2/sse2.pro b/config.tests/common/sse2/sse2.pro deleted file mode 100644 index 75f5266745..0000000000 --- a/config.tests/common/sse2/sse2.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = sse2.cpp -!defined(QMAKE_CFLAGS_SSE2, var): error("This compiler does not support SSE2") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE2 diff --git a/config.tests/common/sse3/sse3.cpp b/config.tests/common/sse3/sse3.cpp deleted file mode 100644 index a1e7694daa..0000000000 --- a/config.tests/common/sse3/sse3.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - __m128d a = _mm_set1_pd(6.28); - __m128d b = _mm_set1_pd(3.14); - __m128d result = _mm_addsub_pd(a, b); - result = _mm_movedup_pd(result); - return 0; -} diff --git a/config.tests/common/sse3/sse3.pro b/config.tests/common/sse3/sse3.pro deleted file mode 100644 index b26b832e22..0000000000 --- a/config.tests/common/sse3/sse3.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = sse3.cpp -!defined(QMAKE_CFLAGS_SSE3, "var"):error("This compiler does not support SSE3") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE3 diff --git a/config.tests/common/sse4_1/sse4_1.cpp b/config.tests/common/sse4_1/sse4_1.cpp deleted file mode 100644 index 7592ac33f4..0000000000 --- a/config.tests/common/sse4_1/sse4_1.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - __m128 a = _mm_setzero_ps(); - _mm_ceil_ps(a); - __m128i result = _mm_mullo_epi32(_mm_set1_epi32(42), _mm_set1_epi32(64)); - (void)result; - return 0; -} diff --git a/config.tests/common/sse4_1/sse4_1.pro b/config.tests/common/sse4_1/sse4_1.pro deleted file mode 100644 index bee9c12adb..0000000000 --- a/config.tests/common/sse4_1/sse4_1.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = sse4_1.cpp -!defined(QMAKE_CFLAGS_SSE4_1, "var"):error("This compiler does not support SSE4.1") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE4_1 diff --git a/config.tests/common/sse4_2/sse4_2.cpp b/config.tests/common/sse4_2/sse4_2.cpp deleted file mode 100644 index 5ad151c96c..0000000000 --- a/config.tests/common/sse4_2/sse4_2.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - __m128i a = _mm_setzero_si128(); - __m128i b = _mm_set1_epi32(42); - __m128i result = _mm_cmpestrm(a, 16, b, 16, 0); - (void)result; - return 0; -} diff --git a/config.tests/common/sse4_2/sse4_2.pro b/config.tests/common/sse4_2/sse4_2.pro deleted file mode 100644 index 1626ad748c..0000000000 --- a/config.tests/common/sse4_2/sse4_2.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = sse4_2.cpp -!defined(QMAKE_CFLAGS_SSE4_2, "var"):error("This compiler does not support SSE4.2") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSE4_2 diff --git a/config.tests/common/ssse3/ssse3.cpp b/config.tests/common/ssse3/ssse3.cpp deleted file mode 100644 index 79c0e2b6b6..0000000000 --- a/config.tests/common/ssse3/ssse3.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char**) -{ - __m128i a = _mm_set1_epi32(42); - _mm_abs_epi8(a); - __m128i result = _mm_sign_epi16(a, _mm_set1_epi32(64)); - (void)result; - return 0; -} diff --git a/config.tests/common/ssse3/ssse3.pro b/config.tests/common/ssse3/ssse3.pro deleted file mode 100644 index 1d3aebf61d..0000000000 --- a/config.tests/common/ssse3/ssse3.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = ssse3.cpp -!defined(QMAKE_CFLAGS_SSSE3, "var"):error("This compiler does not support SSSE3") -else:QMAKE_CXXFLAGS += $$QMAKE_CFLAGS_SSSE3 diff --git a/config.tests/qpa/direct2d/direct2d.cpp b/config.tests/qpa/direct2d/direct2d.cpp deleted file mode 100644 index 87ce1d1dab..0000000000 --- a/config.tests/qpa/direct2d/direct2d.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include -#include -#include -#include - -using Microsoft::WRL::ComPtr; - -int main(int, char**) -{ - ComPtr d2dFactory; - D2D1CreateFactory(D2D1_FACTORY_TYPE_SINGLE_THREADED, d2dFactory.ReleaseAndGetAddressOf()); - ComPtr surface; - (void)surface; // Q_UNUSED - - return 0; -} diff --git a/config.tests/qpa/direct2d/direct2d.pro b/config.tests/qpa/direct2d/direct2d.pro deleted file mode 100644 index 98527b12a7..0000000000 --- a/config.tests/qpa/direct2d/direct2d.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = direct2d.cpp -CONFIG -= qt -CONFIG += console diff --git a/config.tests/qpa/directfb/directfb.cpp b/config.tests/qpa/directfb/directfb.cpp deleted file mode 100644 index 72df1195b0..0000000000 --- a/config.tests/qpa/directfb/directfb.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -#ifdef __typeof__ -#error DirectFB headers are unclean and cannot compile -#endif - -int main(int, char **) -{ - return 0; -} diff --git a/config.tests/qpa/directfb/directfb.pro b/config.tests/qpa/directfb/directfb.pro deleted file mode 100644 index b138fd0109..0000000000 --- a/config.tests/qpa/directfb/directfb.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = directfb.cpp -CONFIG -= qt diff --git a/config.tests/qpa/egl-x11/egl-x11.cpp b/config.tests/qpa/egl-x11/egl-x11.cpp deleted file mode 100644 index 9cda661a47..0000000000 --- a/config.tests/qpa/egl-x11/egl-x11.cpp +++ /dev/null @@ -1,60 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include -#include - -// 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. - -int main(int, char **) -{ - 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); - return 0; -} diff --git a/config.tests/qpa/egl-x11/egl-x11.pro b/config.tests/qpa/egl-x11/egl-x11.pro deleted file mode 100644 index fd8479ba35..0000000000 --- a/config.tests/qpa/egl-x11/egl-x11.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = egl-x11.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/egl/egl.cpp b/config.tests/qpa/egl/egl.cpp deleted file mode 100644 index a4ef1f2f0e..0000000000 --- a/config.tests/qpa/egl/egl.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - EGLint x = 0; - EGLDisplay dpy = 0; - EGLContext ctx = 0; - eglDestroyContext(dpy, ctx); - return 0; -} diff --git a/config.tests/qpa/egl/egl.pro b/config.tests/qpa/egl/egl.pro deleted file mode 100644 index 2c4ae07e64..0000000000 --- a/config.tests/qpa/egl/egl.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = egl.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/eglfs-brcm/eglfs-brcm.cpp b/config.tests/qpa/eglfs-brcm/eglfs-brcm.cpp deleted file mode 100644 index e6ba06f89b..0000000000 --- a/config.tests/qpa/eglfs-brcm/eglfs-brcm.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ - EGLDisplay dpy = 0; - EGLContext ctx = 0; - eglDestroyContext(dpy, ctx); - vc_dispmanx_display_open(0); - return 0; -} diff --git a/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro b/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro deleted file mode 100644 index d4afa460f7..0000000000 --- a/config.tests/qpa/eglfs-brcm/eglfs-brcm.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = eglfs-brcm.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.cpp b/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.cpp deleted file mode 100644 index fa3e9d33f7..0000000000 --- a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ - EGLDeviceEXT device = 0; - EGLStreamKHR stream = 0; - EGLOutputLayerEXT layer = 0; - return EGL_DRM_CRTC_EXT; -} diff --git a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro b/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro deleted file mode 100644 index 2f20d993f5..0000000000 --- a/config.tests/qpa/eglfs-egldevice/eglfs-egldevice.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = eglfs-egldevice.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/eglfs-mali-2/eglfs-mali-2.cpp b/config.tests/qpa/eglfs-mali-2/eglfs-mali-2.cpp deleted file mode 100644 index f8481bb27c..0000000000 --- a/config.tests/qpa/eglfs-mali-2/eglfs-mali-2.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ - EGLDisplay dpy = 0; - EGLContext ctx = 0; - mali_native_window *w = 0; - eglDestroyContext(dpy, ctx); - return 0; -} diff --git a/config.tests/qpa/eglfs-mali-2/eglfs-mali-2.pro b/config.tests/qpa/eglfs-mali-2/eglfs-mali-2.pro deleted file mode 100644 index de6f85f20f..0000000000 --- a/config.tests/qpa/eglfs-mali-2/eglfs-mali-2.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = eglfs-mali-2.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/eglfs-mali/eglfs-mali.cpp b/config.tests/qpa/eglfs-mali/eglfs-mali.cpp deleted file mode 100644 index 13b10fce02..0000000000 --- a/config.tests/qpa/eglfs-mali/eglfs-mali.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main(int, char **) -{ - EGLDisplay dpy = 0; - EGLContext ctx = 0; - fbdev_window *w = 0; - eglDestroyContext(dpy, ctx); - return 0; -} diff --git a/config.tests/qpa/eglfs-mali/eglfs-mali.pro b/config.tests/qpa/eglfs-mali/eglfs-mali.pro deleted file mode 100644 index 80f8282842..0000000000 --- a/config.tests/qpa/eglfs-mali/eglfs-mali.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = eglfs-mali.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/eglfs-viv/eglfs-viv.cpp b/config.tests/qpa/eglfs-viv/eglfs-viv.cpp deleted file mode 100644 index 1f5c5dbf50..0000000000 --- a/config.tests/qpa/eglfs-viv/eglfs-viv.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ -#if defined(__INTEGRITY) - fbGetDisplay(); -#else - // Do not rely on fbGetDisplay() since the signature has changed over time. - // Stick to fbGetDisplayByIndex(). - fbGetDisplayByIndex(0); -#endif - return 0; -} diff --git a/config.tests/qpa/eglfs-viv/eglfs-viv.pro b/config.tests/qpa/eglfs-viv/eglfs-viv.pro deleted file mode 100644 index 2c3dc5cb01..0000000000 --- a/config.tests/qpa/eglfs-viv/eglfs-viv.pro +++ /dev/null @@ -1,7 +0,0 @@ -SOURCES = eglfs-viv.cpp -integrity { - DEFINES += EGL_API_FB=1 -} else { - DEFINES += LINUX=1 EGL_API_FB=1 -} -CONFIG -= qt diff --git a/config.tests/qpa/gbm/gbm.cpp b/config.tests/qpa/gbm/gbm.cpp deleted file mode 100644 index a1f436a7fe..0000000000 --- a/config.tests/qpa/gbm/gbm.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -extern "C" { -#include -} - -int main(int, char **) -{ - gbm_surface *surface = 0; - return 0; -} diff --git a/config.tests/qpa/gbm/gbm.pro b/config.tests/qpa/gbm/gbm.pro deleted file mode 100644 index 1c08eb4e67..0000000000 --- a/config.tests/qpa/gbm/gbm.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = gbm.cpp -CONFIG -= qt diff --git a/config.tests/qpa/integrityfb/integrityfb.cpp b/config.tests/qpa/integrityfb/integrityfb.cpp deleted file mode 100644 index 7f2dd0705f..0000000000 --- a/config.tests/qpa/integrityfb/integrityfb.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - FBDriver *driver = 0; - return 0; -} diff --git a/config.tests/qpa/integrityfb/integrityfb.pro b/config.tests/qpa/integrityfb/integrityfb.pro deleted file mode 100644 index 5da4e77923..0000000000 --- a/config.tests/qpa/integrityfb/integrityfb.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = integrityfb.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/integrityhid/integrityhid.cpp b/config.tests/qpa/integrityhid/integrityhid.cpp deleted file mode 100644 index 1493e7c7e4..0000000000 --- a/config.tests/qpa/integrityhid/integrityhid.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main(int, char **) -{ - HIDDriver *driver; - uintptr_t devicecontext; - uint32_t device_id; - gh_hid_enum_devices(driver, &device_id, &devicecontext); - - return 0; -} diff --git a/config.tests/qpa/integrityhid/integrityhid.pro b/config.tests/qpa/integrityhid/integrityhid.pro deleted file mode 100644 index 87fafde897..0000000000 --- a/config.tests/qpa/integrityhid/integrityhid.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = integrityhid.cpp -CONFIG -= qt diff --git a/config.tests/qpa/kms/kms.cpp b/config.tests/qpa/kms/kms.cpp deleted file mode 100644 index fbd1bf095d..0000000000 --- a/config.tests/qpa/kms/kms.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -extern "C" { -#include -#include -} - -int main(int, char **) -{ - drmModeCrtcPtr currentMode = drmModeGetCrtc(0, 0); - return 0; -} diff --git a/config.tests/qpa/kms/kms.pro b/config.tests/qpa/kms/kms.pro deleted file mode 100644 index c823914308..0000000000 --- a/config.tests/qpa/kms/kms.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = kms.cpp -CONFIG -= qt diff --git a/config.tests/qpa/linuxfb/linuxfb.cpp b/config.tests/qpa/linuxfb/linuxfb.cpp deleted file mode 100644 index ed9f9b242e..0000000000 --- a/config.tests/qpa/linuxfb/linuxfb.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main(int, char **) -{ - fb_fix_screeninfo finfo; - fb_var_screeninfo vinfo; - - int fd = 3; - ioctl(fd, FBIOGET_FSCREENINFO, &finfo); - ioctl(fd, FBIOGET_VSCREENINFO, &vinfo); - - return 0; -} diff --git a/config.tests/qpa/linuxfb/linuxfb.pro b/config.tests/qpa/linuxfb/linuxfb.pro deleted file mode 100644 index 45db4b78dd..0000000000 --- a/config.tests/qpa/linuxfb/linuxfb.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = linuxfb.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/mirclient/mirclient.cpp b/config.tests/qpa/mirclient/mirclient.cpp deleted file mode 100644 index c93f8509ef..0000000000 --- a/config.tests/qpa/mirclient/mirclient.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -static void surfaceCreateCallback(MirSurface*, void*) -{ -} - - -int main(int, char **) -{ - u_application_lifecycle_delegate_new(); - mir_surface_create(0, surfaceCreateCallback, 0); -} diff --git a/config.tests/qpa/mirclient/mirclient.pro b/config.tests/qpa/mirclient/mirclient.pro deleted file mode 100644 index 3e87194e4e..0000000000 --- a/config.tests/qpa/mirclient/mirclient.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = mirclient.cpp -CONFIG -= qt diff --git a/config.tests/qpa/wayland-server/wayland-server.pro b/config.tests/qpa/wayland-server/wayland-server.pro deleted file mode 100644 index 969bc542bb..0000000000 --- a/config.tests/qpa/wayland-server/wayland-server.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = wl.cpp - -CONFIG -= qt diff --git a/config.tests/qpa/wayland-server/wl.cpp b/config.tests/qpa/wayland-server/wl.cpp deleted file mode 100644 index a5ec3b5150..0000000000 --- a/config.tests/qpa/wayland-server/wl.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - wl_display_create(); - return 0; -} diff --git a/config.tests/qpa/xcb-glx/xcb-glx.cpp b/config.tests/qpa/xcb-glx/xcb-glx.cpp deleted file mode 100644 index 3e78941f5c..0000000000 --- a/config.tests/qpa/xcb-glx/xcb-glx.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ - int primaryScreen = 0; - - xcb_connection_t *connection = xcb_connect("", &primaryScreen); - 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); - - return 0; -} diff --git a/config.tests/qpa/xcb-glx/xcb-glx.pro b/config.tests/qpa/xcb-glx/xcb-glx.pro deleted file mode 100644 index 8086e3a388..0000000000 --- a/config.tests/qpa/xcb-glx/xcb-glx.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = xcb-glx.cpp -CONFIG -= qt diff --git a/config.tests/qpa/xcb-render/xcb-render.cpp b/config.tests/qpa/xcb-render/xcb-render.cpp deleted file mode 100644 index d19a9502bc..0000000000 --- a/config.tests/qpa/xcb-render/xcb-render.cpp +++ /dev/null @@ -1,70 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -// 'template' is used as a function argument name in xcb_renderutil.h -#define template template_param -// extern "C" is missing too -extern "C" { -#include -} -#undef template - -int main(int, char **) -{ - int primaryScreen = 0; - xcb_generic_error_t *error = 0; - - xcb_connection_t *connection = xcb_connect("", &primaryScreen); - xcb_render_query_pict_formats_cookie_t formatsCookie = - xcb_render_query_pict_formats(connection); - - xcb_render_query_pict_formats_reply_t *formatsReply = - xcb_render_query_pict_formats_reply( - connection, - formatsCookie, - &error); - - xcb_render_util_find_standard_format(formatsReply, - XCB_PICT_STANDARD_ARGB_32); - - return 0; -} diff --git a/config.tests/qpa/xcb-render/xcb-render.pro b/config.tests/qpa/xcb-render/xcb-render.pro deleted file mode 100644 index 7555fa9b61..0000000000 --- a/config.tests/qpa/xcb-render/xcb-render.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = xcb-render.cpp -CONFIG -= qt diff --git a/config.tests/qpa/xcb-syslibs/xcb-syslibs.pro b/config.tests/qpa/xcb-syslibs/xcb-syslibs.pro deleted file mode 100644 index 6363ae90ee..0000000000 --- a/config.tests/qpa/xcb-syslibs/xcb-syslibs.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = xcb.cpp -CONFIG -= qt diff --git a/config.tests/qpa/xcb-syslibs/xcb.cpp b/config.tests/qpa/xcb-syslibs/xcb.cpp deleted file mode 100644 index 00d0da1b6c..0000000000 --- a/config.tests/qpa/xcb-syslibs/xcb.cpp +++ /dev/null @@ -1,61 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -// FIXME This workaround can be removed for xcb-icccm > 3.8 -#define class class_name -#include -#undef class - -#include -#include -#include -#include -#include -#include - -int main(int, char **) -{ - int primaryScreen = 0; - - xcb_connection_t *connection = xcb_connect("", &primaryScreen); - - return 0; -} diff --git a/config.tests/qpa/xcb-xkb/xcb-xkb.cpp b/config.tests/qpa/xcb-xkb/xcb-xkb.cpp deleted file mode 100644 index f7ec9a7d43..0000000000 --- a/config.tests/qpa/xcb-xkb/xcb-xkb.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -// This is needed to make Qt compile together with XKB. xkb.h is using a variable -// which is called 'explicit', this is a reserved keyword in c++ */ -#define explicit dont_use_cxx_explicit -#include -#undef explicit - -int main(int, char **) -{ - // This takes more arguments in xcb-xkb < 1.10. - xcb_xkb_get_kbd_by_name_unchecked(NULL, 0, 0, 0, 0); - - return 0; -} diff --git a/config.tests/qpa/xcb-xkb/xcb-xkb.pro b/config.tests/qpa/xcb-xkb/xcb-xkb.pro deleted file mode 100644 index 804be7b894..0000000000 --- a/config.tests/qpa/xcb-xkb/xcb-xkb.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = xcb-xkb.cpp -CONFIG -= qt diff --git a/config.tests/qpa/xcb-xlib/xcb-xlib.cpp b/config.tests/qpa/xcb-xlib/xcb-xlib.cpp deleted file mode 100644 index 5a850404e1..0000000000 --- a/config.tests/qpa/xcb-xlib/xcb-xlib.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main(int, char **) -{ - Display *dpy = XOpenDisplay(""); - xcb_connection_t *connection = XGetXCBConnection(dpy); - - return 0; -} diff --git a/config.tests/qpa/xcb-xlib/xcb-xlib.pro b/config.tests/qpa/xcb-xlib/xcb-xlib.pro deleted file mode 100644 index 0e98a00fd0..0000000000 --- a/config.tests/qpa/xcb-xlib/xcb-xlib.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = xcb-xlib.cpp -CONFIG -= qt diff --git a/config.tests/qpa/xcb/xcb.cpp b/config.tests/qpa/xcb/xcb.cpp deleted file mode 100644 index efb4f0ca2e..0000000000 --- a/config.tests/qpa/xcb/xcb.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - int primaryScreen = 0; - xcb_connection_t *t = xcb_connect("", &primaryScreen); - - // This won't compile unless libxcb >= 1.5 which defines XCB_ATOM_PRIMARY. - int xcbAtomPrimary = XCB_ATOM_PRIMARY; - - return 0; -} diff --git a/config.tests/qpa/xcb/xcb.pro b/config.tests/qpa/xcb/xcb.pro deleted file mode 100644 index 6363ae90ee..0000000000 --- a/config.tests/qpa/xcb/xcb.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = xcb.cpp -CONFIG -= qt diff --git a/config.tests/unix/clock-gettime/clock-gettime.cpp b/config.tests/unix/clock-gettime/clock-gettime.cpp deleted file mode 100644 index cef9f6a1ae..0000000000 --- a/config.tests/unix/clock-gettime/clock-gettime.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ -#if (defined(_POSIX_TIMERS) && (_POSIX_TIMERS > 0)) || defined(__OpenBSD__) - timespec ts; - clock_gettime(CLOCK_REALTIME, &ts); -#else -# error "Feature _POSIX_TIMERS not available" -#endif - return 0; -} - diff --git a/config.tests/unix/clock-gettime/clock-gettime.pro b/config.tests/unix/clock-gettime/clock-gettime.pro deleted file mode 100644 index 985b94e3fe..0000000000 --- a/config.tests/unix/clock-gettime/clock-gettime.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = clock-gettime.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/clock-monotonic/clock-monotonic.cpp b/config.tests/unix/clock-monotonic/clock-monotonic.cpp deleted file mode 100644 index 777a6d1c21..0000000000 --- a/config.tests/unix/clock-monotonic/clock-monotonic.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ -#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 - return 0; -} - diff --git a/config.tests/unix/clock-monotonic/clock-monotonic.pro b/config.tests/unix/clock-monotonic/clock-monotonic.pro deleted file mode 100644 index 4c421c2413..0000000000 --- a/config.tests/unix/clock-monotonic/clock-monotonic.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = clock-monotonic.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/cloexec/cloexec.cpp b/config.tests/unix/cloexec/cloexec.cpp deleted file mode 100644 index cc6948a280..0000000000 --- a/config.tests/unix/cloexec/cloexec.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration module of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#define _GNU_SOURCE 1 - -#include -#include -#include -#include - -int 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 - return 0; -} diff --git a/config.tests/unix/cloexec/cloexec.pro b/config.tests/unix/cloexec/cloexec.pro deleted file mode 100644 index bc735f9b1f..0000000000 --- a/config.tests/unix/cloexec/cloexec.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = cloexec.cpp -CONFIG -= qt -QT = diff --git a/config.tests/unix/cups/cups.cpp b/config.tests/unix/cups/cups.cpp deleted file mode 100644 index 20cdd7e969..0000000000 --- a/config.tests/unix/cups/cups.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - // CUPS 1.4 test - cupsGetNamedDest(CUPS_HTTP_DEFAULT, NULL, NULL); - return 0; -} diff --git a/config.tests/unix/cups/cups.pro b/config.tests/unix/cups/cups.pro deleted file mode 100644 index d19ce7d9a6..0000000000 --- a/config.tests/unix/cups/cups.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = cups.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/db2/db2.cpp b/config.tests/unix/db2/db2.cpp deleted file mode 100644 index 98b90f78be..0000000000 --- a/config.tests/unix/db2/db2.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ - return 0; -} diff --git a/config.tests/unix/db2/db2.pro b/config.tests/unix/db2/db2.pro deleted file mode 100644 index ef233fc184..0000000000 --- a/config.tests/unix/db2/db2.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = db2.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/dbus/dbus.cpp b/config.tests/unix/dbus/dbus.cpp deleted file mode 100644 index 8b1e241cd3..0000000000 --- a/config.tests/unix/dbus/dbus.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - (void) dbus_bus_get_private(DBUS_BUS_SYSTEM, (DBusError *)NULL); - return 0; -} diff --git a/config.tests/unix/dbus/dbus.pro b/config.tests/unix/dbus/dbus.pro deleted file mode 100644 index f9d793b867..0000000000 --- a/config.tests/unix/dbus/dbus.pro +++ /dev/null @@ -1,8 +0,0 @@ -SOURCES = dbus.cpp -CONFIG -= qt - -CONFIG += build_all -CONFIG(debug, debug|release): \ - LIBS += $$LIBS_DEBUG -else: \ - LIBS += $$LIBS_RELEASE diff --git a/config.tests/unix/dlopen/dlopen.cpp b/config.tests/unix/dlopen/dlopen.cpp deleted file mode 100644 index 454ca3bf72..0000000000 --- a/config.tests/unix/dlopen/dlopen.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - dlopen(0, 0); -} diff --git a/config.tests/unix/dlopen/dlopen.pro b/config.tests/unix/dlopen/dlopen.pro deleted file mode 100644 index 1d34314332..0000000000 --- a/config.tests/unix/dlopen/dlopen.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = $$PWD/dlopen.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/doubleconversion/doubleconversion.cpp b/config.tests/unix/doubleconversion/doubleconversion.cpp deleted file mode 100644 index c26eef97e5..0000000000 --- a/config.tests/unix/doubleconversion/doubleconversion.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - int flags = double_conversion::StringToDoubleConverter::NO_FLAGS; - return flags; -} diff --git a/config.tests/unix/doubleconversion/doubleconversion.pro b/config.tests/unix/doubleconversion/doubleconversion.pro deleted file mode 100644 index 8253d0c2a5..0000000000 --- a/config.tests/unix/doubleconversion/doubleconversion.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = doubleconversion.cpp -CONFIG -= qt -CONFIG += console diff --git a/config.tests/unix/evdev/evdev.cpp b/config.tests/unix/evdev/evdev.cpp deleted file mode 100644 index b00b1a8141..0000000000 --- a/config.tests/unix/evdev/evdev.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if defined(__FreeBSD__) -#include -#else -#include -#include -#endif - -enum { - e1 = ABS_PRESSURE, - e2 = ABS_X, - e3 = REL_X, - e4 = SYN_REPORT, -}; - -int main() -{ - ::input_event buf[32]; - (void) buf; - return 0; -} diff --git a/config.tests/unix/evdev/evdev.pro b/config.tests/unix/evdev/evdev.pro deleted file mode 100644 index 42db391216..0000000000 --- a/config.tests/unix/evdev/evdev.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = evdev.cpp -CONFIG -= qt diff --git a/config.tests/unix/eventfd/eventfd.pro b/config.tests/unix/eventfd/eventfd.pro deleted file mode 100644 index de99717750..0000000000 --- a/config.tests/unix/eventfd/eventfd.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = main.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/eventfd/main.cpp b/config.tests/unix/eventfd/main.cpp deleted file mode 100644 index 0f65fe7e2b..0000000000 --- a/config.tests/unix/eventfd/main.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main() -{ - eventfd_t value; - int fd = eventfd(0, EFD_CLOEXEC); - eventfd_read(fd, &value); - eventfd_write(fd, value); - return 0; -} diff --git a/config.tests/unix/fontconfig/fontconfig.cpp b/config.tests/unix/fontconfig/fontconfig.cpp deleted file mode 100644 index 49c0d94a1e..0000000000 --- a/config.tests/unix/fontconfig/fontconfig.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include FT_FREETYPE_H -#include - -#ifndef FC_RGBA_UNKNOWN -# error "This version of fontconfig is tool old, it is missing the FC_RGBA_UNKNOWN define" -#endif - -#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) < 20110) -# error "This version of freetype is too old." -#endif - -int main(int, char **) -{ - FT_Face face; - face = 0; - FcPattern *pattern; - pattern = 0; - return 0; -} diff --git a/config.tests/unix/fontconfig/fontconfig.pro b/config.tests/unix/fontconfig/fontconfig.pro deleted file mode 100644 index d6fd00aa3c..0000000000 --- a/config.tests/unix/fontconfig/fontconfig.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = fontconfig.cpp -CONFIG -= qt diff --git a/config.tests/unix/freetype/freetype.cpp b/config.tests/unix/freetype/freetype.cpp deleted file mode 100644 index c051600b02..0000000000 --- a/config.tests/unix/freetype/freetype.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include FT_FREETYPE_H - -#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) < 20200) -# error "This version of freetype is too old." -#endif - -int main(int, char **) -{ - FT_Face face; - face = 0; - return 0; -} diff --git a/config.tests/unix/freetype/freetype.pro b/config.tests/unix/freetype/freetype.pro deleted file mode 100644 index 525b60121b..0000000000 --- a/config.tests/unix/freetype/freetype.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = freetype.cpp -CONFIG -= qt diff --git a/config.tests/unix/getaddrinfo/getaddrinfo.pro b/config.tests/unix/getaddrinfo/getaddrinfo.pro deleted file mode 100644 index 18e40971e5..0000000000 --- a/config.tests/unix/getaddrinfo/getaddrinfo.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = getaddrinfotest.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/getaddrinfo/getaddrinfotest.cpp b/config.tests/unix/getaddrinfo/getaddrinfotest.cpp deleted file mode 100644 index b4deaae91e..0000000000 --- a/config.tests/unix/getaddrinfo/getaddrinfotest.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/* Sample program for configure to test for getaddrinfo on the unix - platform. we check for all structures and functions required. */ - -#include -#include -#ifdef __MINGW32__ -#include -#include -#else -#include -#include -#include -#endif - -int main() -{ - addrinfo *res = 0; - if (getaddrinfo("foo", 0, 0, &res) == 0) - freeaddrinfo(res); - gai_strerror(0); - - return 0; -} diff --git a/config.tests/unix/getifaddrs/getifaddrs.cpp b/config.tests/unix/getifaddrs/getifaddrs.cpp deleted file mode 100644 index a66ce4af37..0000000000 --- a/config.tests/unix/getifaddrs/getifaddrs.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/* Sample program for configure to test for if_nametoindex support -on target platforms. */ - -#include -#include -#include -#include - -int main() -{ - ifaddrs *list; - getifaddrs(&list); - freeifaddrs(list); - return 0; -} diff --git a/config.tests/unix/getifaddrs/getifaddrs.pro b/config.tests/unix/getifaddrs/getifaddrs.pro deleted file mode 100644 index db2956a338..0000000000 --- a/config.tests/unix/getifaddrs/getifaddrs.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = getifaddrs.cpp -CONFIG -= qt -QT = diff --git a/config.tests/unix/glib/glib.cpp b/config.tests/unix/glib/glib.cpp deleted file mode 100644 index 63456c662d..0000000000 --- a/config.tests/unix/glib/glib.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -typedef struct _GMainContext GMainContext; - -#include - -int main(int, char **) -{ - GMainContext *context; - GSource *source; - GPollFD *pollfd = NULL; - if (!g_thread_supported()) - g_thread_init(NULL); - context = g_main_context_default(); - (void)context; - source = g_source_new(0, 0); - g_source_add_poll(source, pollfd); - return 0; -} diff --git a/config.tests/unix/glib/glib.pro b/config.tests/unix/glib/glib.pro deleted file mode 100644 index 15d059df77..0000000000 --- a/config.tests/unix/glib/glib.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = glib.cpp -CONFIG -= qt diff --git a/config.tests/unix/harfbuzz/harfbuzz.cpp b/config.tests/unix/harfbuzz/harfbuzz.cpp deleted file mode 100644 index d1d0530423..0000000000 --- a/config.tests/unix/harfbuzz/harfbuzz.cpp +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -#if !HB_VERSION_ATLEAST(0, 9, 42) -# error "This version of harfbuzz is too old." -#endif - -int main(int, char **) -{ - 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); - - return 0; -} diff --git a/config.tests/unix/harfbuzz/harfbuzz.pro b/config.tests/unix/harfbuzz/harfbuzz.pro deleted file mode 100644 index 71a7c355cb..0000000000 --- a/config.tests/unix/harfbuzz/harfbuzz.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = harfbuzz.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/ibase/ibase.cpp b/config.tests/unix/ibase/ibase.cpp deleted file mode 100644 index c1e2a24b51..0000000000 --- a/config.tests/unix/ibase/ibase.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - return 0; -} diff --git a/config.tests/unix/ibase/ibase.pro b/config.tests/unix/ibase/ibase.pro deleted file mode 100644 index 8c47f66954..0000000000 --- a/config.tests/unix/ibase/ibase.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = ibase.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/icu/icu.cpp b/config.tests/unix/icu/icu.cpp deleted file mode 100644 index e74de43980..0000000000 --- a/config.tests/unix/icu/icu.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main(int, char **) -{ - UErrorCode status = U_ZERO_ERROR; - UCollator *collator = ucol_open("ru_RU", &status); - if (U_FAILURE(status)) - return 0; - ucol_close(collator); - return 0; -} diff --git a/config.tests/unix/icu/icu.pro b/config.tests/unix/icu/icu.pro deleted file mode 100644 index eeed0eaff3..0000000000 --- a/config.tests/unix/icu/icu.pro +++ /dev/null @@ -1,9 +0,0 @@ -SOURCES = icu.cpp -CONFIG += console -CONFIG -= qt dylib - -CONFIG += build_all -CONFIG(debug, debug|release): \ - LIBS += $$LIBS_DEBUG -else: \ - LIBS += $$LIBS_RELEASE diff --git a/config.tests/unix/inotify/inotify.pro b/config.tests/unix/inotify/inotify.pro deleted file mode 100644 index 35880de3c0..0000000000 --- a/config.tests/unix/inotify/inotify.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = inotifytest.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/inotify/inotifytest.cpp b/config.tests/unix/inotify/inotifytest.cpp deleted file mode 100644 index cb43bc81b7..0000000000 --- a/config.tests/unix/inotify/inotifytest.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main() -{ - inotify_init(); - inotify_add_watch(0, "foobar", IN_ACCESS); - inotify_rm_watch(0, 1); - return 0; -} diff --git a/config.tests/unix/ipc_posix/ipc.cpp b/config.tests/unix/ipc_posix/ipc.cpp deleted file mode 100644 index 9d14145ea2..0000000000 --- a/config.tests/unix/ipc_posix/ipc.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include -#include - -int main(int, char **) -{ - sem_t *semaphore = sem_open("test", O_CREAT | O_EXCL, 0666, 0); - if (semaphore != SEM_FAILED) - sem_close(semaphore); - - shm_open("test", O_RDWR | O_CREAT | O_EXCL, 0666); - shm_unlink("test"); - - return 0; -} diff --git a/config.tests/unix/ipc_posix/ipc_posix.pro b/config.tests/unix/ipc_posix/ipc_posix.pro deleted file mode 100644 index a8bcb397bb..0000000000 --- a/config.tests/unix/ipc_posix/ipc_posix.pro +++ /dev/null @@ -1,4 +0,0 @@ -SOURCES = ipc.cpp -CONFIG -= qt dylib -mac:CONFIG -= app_bundle -linux:LIBS += -lpthread -lrt diff --git a/config.tests/unix/ipc_sysv/ipc.cpp b/config.tests/unix/ipc_sysv/ipc.cpp deleted file mode 100644 index deb57622ba..0000000000 --- a/config.tests/unix/ipc_sysv/ipc.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include -#include -#include - -int main(int, char **) -{ - key_t unix_key = ftok("test", 'Q'); - int semaphore = semget(unix_key, 1, 0666 | IPC_CREAT | IPC_EXCL); - if (semaphore != -1) - semctl(semaphore, 0, IPC_RMID, 0); - - shmget(unix_key, 0, 0666 | IPC_CREAT | IPC_EXCL); - shmctl(0, 0, static_cast(0)); - - return 0; -} diff --git a/config.tests/unix/ipc_sysv/ipc_sysv.pro b/config.tests/unix/ipc_sysv/ipc_sysv.pro deleted file mode 100644 index 1b6de0296f..0000000000 --- a/config.tests/unix/ipc_sysv/ipc_sysv.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = ipc.cpp -CONFIG -= qt dylib -mac:CONFIG -= app_bundle diff --git a/config.tests/unix/ipv6ifname/ipv6ifname.cpp b/config.tests/unix/ipv6ifname/ipv6ifname.cpp deleted file mode 100644 index fd58e85adb..0000000000 --- a/config.tests/unix/ipv6ifname/ipv6ifname.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/* Sample program for configure to test for if_nametoindex support -on target platforms. */ - -#include -#include -#include - -int main() -{ - char buf[IFNAMSIZ]; - if_nametoindex("eth0"); - if_indextoname(1, buf); - return 0; -} diff --git a/config.tests/unix/ipv6ifname/ipv6ifname.pro b/config.tests/unix/ipv6ifname/ipv6ifname.pro deleted file mode 100644 index 7574dce180..0000000000 --- a/config.tests/unix/ipv6ifname/ipv6ifname.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = ipv6ifname.cpp -CONFIG -= qt -QT = diff --git a/config.tests/unix/journald/journald.c b/config.tests/unix/journald/journald.c deleted file mode 100644 index 6b14cd7c69..0000000000 --- a/config.tests/unix/journald/journald.c +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2014 Jolla Ltd, author: -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int argc, char **argv) -{ - sd_journal_send("MESSAGE=%s", "test message", - "PRIORITY=%i", LOG_INFO, - "CODE_FUNC=%s", "unknown", - "CODE_LINE=%d", 0, - "CODE_FILE=%s", "foo.c", - NULL); - return 0; -} diff --git a/config.tests/unix/journald/journald.pro b/config.tests/unix/journald/journald.pro deleted file mode 100644 index deb28ae97f..0000000000 --- a/config.tests/unix/journald/journald.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = journald.c - -CONFIG -= qt diff --git a/config.tests/unix/lgmon/lgmon.cpp b/config.tests/unix/lgmon/lgmon.cpp deleted file mode 100644 index 2f3800a422..0000000000 --- a/config.tests/unix/lgmon/lgmon.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/*************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - lgmon_supported(getpid()); - return 0; -} - diff --git a/config.tests/unix/lgmon/lgmon.pro b/config.tests/unix/lgmon/lgmon.pro deleted file mode 100644 index 33633b19f8..0000000000 --- a/config.tests/unix/lgmon/lgmon.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = lgmon.cpp -CONFIG -= qt diff --git a/config.tests/unix/libinput/libinput.cpp b/config.tests/unix/libinput/libinput.cpp deleted file mode 100644 index 87bfe5c889..0000000000 --- a/config.tests/unix/libinput/libinput.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main() -{ - libinput_udev_create_context(NULL, NULL, NULL); - return 0; -} diff --git a/config.tests/unix/libinput/libinput.pro b/config.tests/unix/libinput/libinput.pro deleted file mode 100644 index 941a0b73ef..0000000000 --- a/config.tests/unix/libinput/libinput.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = libinput.cpp -CONFIG -= qt diff --git a/config.tests/unix/libinput_axis_api/libinput_axis_api.cpp b/config.tests/unix/libinput_axis_api/libinput_axis_api.cpp deleted file mode 100644 index d469b8920e..0000000000 --- a/config.tests/unix/libinput_axis_api/libinput_axis_api.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main() -{ - libinput_event_pointer_has_axis(nullptr, LIBINPUT_POINTER_AXIS_SCROLL_VERTICAL); - return 0; -} diff --git a/config.tests/unix/libinput_axis_api/libinput_axis_api.pro b/config.tests/unix/libinput_axis_api/libinput_axis_api.pro deleted file mode 100644 index 7221e62792..0000000000 --- a/config.tests/unix/libinput_axis_api/libinput_axis_api.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = libinput_axis_api.cpp -CONFIG -= qt diff --git a/config.tests/unix/libjpeg/libjpeg.cpp b/config.tests/unix/libjpeg/libjpeg.cpp deleted file mode 100644 index 106043c608..0000000000 --- a/config.tests/unix/libjpeg/libjpeg.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -extern "C" { -#include -} - -j_compress_ptr cinfo; - -int main(int, char **) -{ - jpeg_create_compress(cinfo); - return 0; -} diff --git a/config.tests/unix/libjpeg/libjpeg.pro b/config.tests/unix/libjpeg/libjpeg.pro deleted file mode 100644 index 173249c634..0000000000 --- a/config.tests/unix/libjpeg/libjpeg.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = libjpeg.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/libpng/libpng.cpp b/config.tests/unix/libpng/libpng.cpp deleted file mode 100644 index d3f836e49e..0000000000 --- a/config.tests/unix/libpng/libpng.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - png_structp png_ptr; - png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,0,0,0); - return 0; -} diff --git a/config.tests/unix/libpng/libpng.pro b/config.tests/unix/libpng/libpng.pro deleted file mode 100644 index 72e5e77b06..0000000000 --- a/config.tests/unix/libpng/libpng.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = libpng.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/libudev/libudev.cpp b/config.tests/unix/libudev/libudev.cpp deleted file mode 100644 index 6636f49732..0000000000 --- a/config.tests/unix/libudev/libudev.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main() -{ - udev *u = udev_new(); - udev_unref(u); - return 0; -} diff --git a/config.tests/unix/libudev/libudev.pro b/config.tests/unix/libudev/libudev.pro deleted file mode 100644 index b557e7b17b..0000000000 --- a/config.tests/unix/libudev/libudev.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = libudev.cpp -CONFIG -= qt diff --git a/config.tests/unix/mtdev/mtdev.cpp b/config.tests/unix/mtdev/mtdev.cpp deleted file mode 100644 index bda6b06fda..0000000000 --- a/config.tests/unix/mtdev/mtdev.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 Jolla Ltd, author: -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - mtdev m; - mtdev_open(&m, 0); - return 0; -} diff --git a/config.tests/unix/mtdev/mtdev.pro b/config.tests/unix/mtdev/mtdev.pro deleted file mode 100644 index 14111c6dc6..0000000000 --- a/config.tests/unix/mtdev/mtdev.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = mtdev.cpp - -CONFIG -= qt diff --git a/config.tests/unix/mysql/mysql.cpp b/config.tests/unix/mysql/mysql.cpp deleted file mode 100644 index 3f83cb1e68..0000000000 --- a/config.tests/unix/mysql/mysql.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) -#include -#endif - -#include "mysql.h" - -int main(int, char **) -{ - mysql_get_client_version(); - return 0; -} diff --git a/config.tests/unix/mysql/mysql.pro b/config.tests/unix/mysql/mysql.pro deleted file mode 100644 index 745f9ee0fb..0000000000 --- a/config.tests/unix/mysql/mysql.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = mysql.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/objcopy/objcopy.cpp b/config.tests/unix/objcopy/objcopy.cpp deleted file mode 100644 index 8e8ff43ae9..0000000000 --- a/config.tests/unix/objcopy/objcopy.cpp +++ /dev/null @@ -1,43 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2014 BlackBerry Limited. All rights reserved. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -int main() -{ - return 0; -} diff --git a/config.tests/unix/objcopy/objcopy.pro b/config.tests/unix/objcopy/objcopy.pro deleted file mode 100644 index 3c76ae92ef..0000000000 --- a/config.tests/unix/objcopy/objcopy.pro +++ /dev/null @@ -1,7 +0,0 @@ -SOURCES = objcopy.cpp -CONFIG -= qt -TARGET = objcopytest - -load(resolve_target) - -QMAKE_POST_LINK += $$QMAKE_OBJCOPY --only-keep-debug $$QMAKE_RESOLVED_TARGET objcopytest.debug && $$QMAKE_OBJCOPY --strip-debug $$QMAKE_RESOLVED_TARGET && $$QMAKE_OBJCOPY --add-gnu-debuglink=objcopytest.debug $$QMAKE_RESOLVED_TARGET diff --git a/config.tests/unix/oci/oci.cpp b/config.tests/unix/oci/oci.cpp deleted file mode 100644 index 0a73d06c7c..0000000000 --- a/config.tests/unix/oci/oci.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - return 0; -} diff --git a/config.tests/unix/oci/oci.pro b/config.tests/unix/oci/oci.pro deleted file mode 100644 index c9aec08ee0..0000000000 --- a/config.tests/unix/oci/oci.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = oci.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/odbc/odbc.cpp b/config.tests/unix/odbc/odbc.cpp deleted file mode 100644 index fc36f121c4..0000000000 --- a/config.tests/unix/odbc/odbc.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) -#include -#endif -#include -#include - -int main(int, char **) -{ - SQLHANDLE env; - SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &env); - return 0; -} diff --git a/config.tests/unix/odbc/odbc.pro b/config.tests/unix/odbc/odbc.pro deleted file mode 100644 index 6c72dc7b1c..0000000000 --- a/config.tests/unix/odbc/odbc.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = odbc.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/opengldesktop/opengldesktop.cpp b/config.tests/unix/opengldesktop/opengldesktop.cpp deleted file mode 100644 index 0a5ce4e78c..0000000000 --- a/config.tests/unix/opengldesktop/opengldesktop.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifdef __APPLE__ -#include -#else -#define GL_GLEXT_PROTOTYPES -#include -#endif - -int main(int, char **) -{ - glBegin(GL_TRIANGLES); - glVertex2f(20.0f, 10.0f); - glVertex2f(10.0f, 30.0f); - glVertex2f(20.0f, 50.0f); - glEnd(); - return 0; -} diff --git a/config.tests/unix/opengldesktop/opengldesktop.pro b/config.tests/unix/opengldesktop/opengldesktop.pro deleted file mode 100644 index 7b53aa460d..0000000000 --- a/config.tests/unix/opengldesktop/opengldesktop.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = opengldesktop.cpp - -CONFIG -= qt diff --git a/config.tests/unix/opengles2/opengles2.cpp b/config.tests/unix/opengles2/opengles2.cpp deleted file mode 100644 index 39a48dcf29..0000000000 --- a/config.tests/unix/opengles2/opengles2.cpp +++ /dev/null @@ -1,53 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifdef __APPLE__ - #include -#else - #define GL_GLEXT_PROTOTYPES - #include -#endif - -int main(int, char **) -{ - glUniform1f(1, GLfloat(1.0)); - glClear(GL_COLOR_BUFFER_BIT); - - return 0; -} diff --git a/config.tests/unix/opengles2/opengles2.pro b/config.tests/unix/opengles2/opengles2.pro deleted file mode 100644 index 15e4ce3ca0..0000000000 --- a/config.tests/unix/opengles2/opengles2.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = opengles2.cpp - -CONFIG -= qt diff --git a/config.tests/unix/opengles3/opengles3.cpp b/config.tests/unix/opengles3/opengles3.cpp deleted file mode 100644 index 7bcfc0e4bc..0000000000 --- a/config.tests/unix/opengles3/opengles3.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifdef __APPLE__ - #include -#else - #define GL_GLEXT_PROTOTYPES - #include -#endif - -int main(int, char **) -{ - glGetStringi(GL_EXTENSIONS, 0); - glReadBuffer(GL_COLOR_ATTACHMENT1); - static GLfloat f[6]; - glUniformMatrix2x3fv(0, 0, GL_FALSE, f); - glMapBufferRange(GL_ARRAY_BUFFER, 0, 0, GL_MAP_READ_BIT); - - return 0; -} diff --git a/config.tests/unix/opengles3/opengles3.pro b/config.tests/unix/opengles3/opengles3.pro deleted file mode 100644 index dc62f7856a..0000000000 --- a/config.tests/unix/opengles3/opengles3.pro +++ /dev/null @@ -1,7 +0,0 @@ -# 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. - -SOURCES = opengles3.cpp - -CONFIG -= qt diff --git a/config.tests/unix/opengles31/opengles31.cpp b/config.tests/unix/opengles31/opengles31.cpp deleted file mode 100644 index dbc7eb3b29..0000000000 --- a/config.tests/unix/opengles31/opengles31.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - glDispatchCompute(1, 1, 1); - glProgramUniform1i(0, 0, 0); - - return 0; -} diff --git a/config.tests/unix/opengles31/opengles31.pro b/config.tests/unix/opengles31/opengles31.pro deleted file mode 100644 index 7895be9efc..0000000000 --- a/config.tests/unix/opengles31/opengles31.pro +++ /dev/null @@ -1,7 +0,0 @@ -# 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. - -SOURCES = opengles31.cpp - -CONFIG -= qt diff --git a/config.tests/unix/openvg/openvg.cpp b/config.tests/unix/openvg/openvg.cpp deleted file mode 100644 index f9cf7786ab..0000000000 --- a/config.tests/unix/openvg/openvg.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the documentation of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - - -int main(int, char **) -{ - VGint i; - i = 2; - vgFlush(); - return 0; -} diff --git a/config.tests/unix/openvg/openvg.pro b/config.tests/unix/openvg/openvg.pro deleted file mode 100644 index 1933e3789c..0000000000 --- a/config.tests/unix/openvg/openvg.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES += openvg.cpp - -CONFIG -= qt diff --git a/config.tests/unix/pcre2/pcre2.cpp b/config.tests/unix/pcre2/pcre2.cpp deleted file mode 100644 index 9c94d29999..0000000000 --- a/config.tests/unix/pcre2/pcre2.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#define PCRE2_CODE_UNIT_WIDTH 16 - -#include - -#if (PCRE2_MAJOR < 10) || ((PCRE2_MAJOR == 10) && (PCRE2_MINOR < 20)) -#error This PCRE version is not supported -#endif - -int main(int, char **) -{ - return 0; -} - diff --git a/config.tests/unix/pcre2/pcre2.pro b/config.tests/unix/pcre2/pcre2.pro deleted file mode 100644 index 6a3fc275bc..0000000000 --- a/config.tests/unix/pcre2/pcre2.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = pcre2.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/poll/poll.cpp b/config.tests/unix/poll/poll.cpp deleted file mode 100644 index ad33900a63..0000000000 --- a/config.tests/unix/poll/poll.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main() -{ - struct pollfd pfd; - - pfd.fd = -1; - pfd.events = 0; - pfd.revents = 0; - - return ::poll(&pfd, 1, 0); -} diff --git a/config.tests/unix/poll/poll.pro b/config.tests/unix/poll/poll.pro deleted file mode 100644 index 70121b4586..0000000000 --- a/config.tests/unix/poll/poll.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = poll.cpp -CONFIG -= qt diff --git a/config.tests/unix/pollts/pollts.cpp b/config.tests/unix/pollts/pollts.cpp deleted file mode 100644 index ce5db6a37b..0000000000 --- a/config.tests/unix/pollts/pollts.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main() -{ - struct pollfd pfd; - struct timespec ts; - - pfd.fd = -1; - pfd.events = 0; - pfd.revents = 0; - - ts.tv_sec = 0; - ts.tv_nsec = 0; - - return ::pollts(&pfd, 1, &ts, nullptr); -} diff --git a/config.tests/unix/pollts/pollts.pro b/config.tests/unix/pollts/pollts.pro deleted file mode 100644 index 5109dc33fd..0000000000 --- a/config.tests/unix/pollts/pollts.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = pollts.cpp -CONFIG -= qt diff --git a/config.tests/unix/posix_fallocate/posix_fallocate.cpp b/config.tests/unix/posix_fallocate/posix_fallocate.cpp deleted file mode 100644 index ce1286813a..0000000000 --- a/config.tests/unix/posix_fallocate/posix_fallocate.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -// NetBSD 7 has posix_fallocate, but in unistd.h instead of fcntl.h -#ifdef __NetBSD__ -# include -#endif - -int main(int, char **) -{ - return ::posix_fallocate(0, 0, 0); -} diff --git a/config.tests/unix/posix_fallocate/posix_fallocate.pro b/config.tests/unix/posix_fallocate/posix_fallocate.pro deleted file mode 100644 index f01b15f3d7..0000000000 --- a/config.tests/unix/posix_fallocate/posix_fallocate.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = posix_fallocate.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/ppoll/ppoll.cpp b/config.tests/unix/ppoll/ppoll.cpp deleted file mode 100644 index 9e065afadc..0000000000 --- a/config.tests/unix/ppoll/ppoll.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main() -{ - struct pollfd pfd; - struct timespec ts; - - pfd.fd = -1; - pfd.events = 0; - pfd.revents = 0; - - ts.tv_sec = 0; - ts.tv_nsec = 0; - - return ::ppoll(&pfd, 1, &ts, nullptr); -} diff --git a/config.tests/unix/ppoll/ppoll.pro b/config.tests/unix/ppoll/ppoll.pro deleted file mode 100644 index d08a8a0679..0000000000 --- a/config.tests/unix/ppoll/ppoll.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = ppoll.cpp -CONFIG -= qt diff --git a/config.tests/unix/pps/pps.cpp b/config.tests/unix/pps/pps.cpp deleted file mode 100644 index fba0673bf1..0000000000 --- a/config.tests/unix/pps/pps.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 BlackBerry Limited. All rights reserved. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - pps_decoder_t decoder; - - pps_decoder_initialize(&decoder, NULL); - return 0; -} diff --git a/config.tests/unix/pps/pps.pro b/config.tests/unix/pps/pps.pro deleted file mode 100644 index af9b339f97..0000000000 --- a/config.tests/unix/pps/pps.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = pps.cpp -CONFIG -= qt diff --git a/config.tests/unix/psql/psql.cpp b/config.tests/unix/psql/psql.cpp deleted file mode 100644 index 8d40d84c9e..0000000000 --- a/config.tests/unix/psql/psql.cpp +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "libpq-fe.h" - -int main(int, char **) -{ - PQescapeBytea(0, 0, 0); - PQunescapeBytea(0, 0); - return 0; -} diff --git a/config.tests/unix/psql/psql.pro b/config.tests/unix/psql/psql.pro deleted file mode 100644 index dae7375be5..0000000000 --- a/config.tests/unix/psql/psql.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = psql.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/qqnx_imf/qqnx_imf.cpp b/config.tests/unix/qqnx_imf/qqnx_imf.cpp deleted file mode 100644 index 5af5fb627c..0000000000 --- a/config.tests/unix/qqnx_imf/qqnx_imf.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2013 BlackBerry Limited. All rights reserved. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "imf/imf_client.h" - -int main(int, char **) -{ - imf_client_init(); - return 0; -} diff --git a/config.tests/unix/qqnx_imf/qqnx_imf.pro b/config.tests/unix/qqnx_imf/qqnx_imf.pro deleted file mode 100644 index e1a2d9cecb..0000000000 --- a/config.tests/unix/qqnx_imf/qqnx_imf.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = qqnx_imf.cpp -CONFIG -= qt diff --git a/config.tests/unix/reduce_exports/fvisibility.c b/config.tests/unix/reduce_exports/fvisibility.c deleted file mode 100644 index 12055ead46..0000000000 --- a/config.tests/unix/reduce_exports/fvisibility.c +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if defined(__GNUC__) -__attribute((visibility("default"))) void blah(); -#elif defined(__SUNPRO_CC) -__global void blah(); -#else -# error "GCC4+ or SunStudio 8+ are required to support ELF visibility" -#endif diff --git a/config.tests/unix/reduce_exports/reduce_exports.pro b/config.tests/unix/reduce_exports/reduce_exports.pro deleted file mode 100644 index dc8adc2637..0000000000 --- a/config.tests/unix/reduce_exports/reduce_exports.pro +++ /dev/null @@ -1,5 +0,0 @@ -TEMPLATE = lib -CONFIG += dll hide_symbols -SOURCES = fvisibility.c - -isEmpty(QMAKE_CFLAGS_HIDESYMS): error("Nope") diff --git a/config.tests/unix/reduce_relocs/bsymbolic_functions.c b/config.tests/unix/reduce_relocs/bsymbolic_functions.c deleted file mode 100644 index 36ff410c81..0000000000 --- a/config.tests/unix/reduce_relocs/bsymbolic_functions.c +++ /dev/null @@ -1,44 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if !(defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__) || defined(__amd64)) -# error Symbolic function binding on this architecture may be broken, disabling it (see QTBUG-36129). -#endif - -int main() { return 0; } diff --git a/config.tests/unix/reduce_relocs/reduce_relocs.pro b/config.tests/unix/reduce_relocs/reduce_relocs.pro deleted file mode 100644 index 2f23465a3f..0000000000 --- a/config.tests/unix/reduce_relocs/reduce_relocs.pro +++ /dev/null @@ -1,5 +0,0 @@ -TEMPLATE = lib -CONFIG += dll bsymbolic_functions -SOURCES = bsymbolic_functions.c - -isEmpty(QMAKE_LFLAGS_BSYMBOLIC_FUNC): error("Nope") diff --git a/config.tests/unix/sctp/sctp.cpp b/config.tests/unix/sctp/sctp.cpp deleted file mode 100644 index 61c33d5fc5..0000000000 --- a/config.tests/unix/sctp/sctp.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Alex Trotsenko -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/* - Sample program for configure to test for SCTP sockets support - on target platforms. -*/ - -#include -#include -#include -#include - -int main() -{ - int fd; - sctp_initmsg sctpInitMsg; - socklen_t sctpInitMsgSize = sizeof(sctpInitMsg); - - fd = socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); - if (fd == -1 || getsockopt(fd, SOL_SCTP, SCTP_INITMSG, &sctpInitMsg, - &sctpInitMsgSize) != 0) - return 1; - - return 0; -} diff --git a/config.tests/unix/sctp/sctp.pro b/config.tests/unix/sctp/sctp.pro deleted file mode 100644 index 2138254732..0000000000 --- a/config.tests/unix/sctp/sctp.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = sctp.cpp -CONFIG -= qt -QT = diff --git a/config.tests/unix/slog2/slog2.cpp b/config.tests/unix/slog2/slog2.cpp deleted file mode 100644 index 351829ea99..0000000000 --- a/config.tests/unix/slog2/slog2.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2011 - 2012 Research In Motion -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - slog2_set_default_buffer((slog2_buffer_t)-1); - return 0; -} diff --git a/config.tests/unix/slog2/slog2.pro b/config.tests/unix/slog2/slog2.pro deleted file mode 100644 index 269a88a383..0000000000 --- a/config.tests/unix/slog2/slog2.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = slog2.cpp -CONFIG -= qt diff --git a/config.tests/unix/sqlite/sqlite.cpp b/config.tests/unix/sqlite/sqlite.cpp deleted file mode 100644 index dd17f74101..0000000000 --- a/config.tests/unix/sqlite/sqlite.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - sqlite3_open_v2(0, 0, 0, 0); - return 0; -} diff --git a/config.tests/unix/sqlite/sqlite.pro b/config.tests/unix/sqlite/sqlite.pro deleted file mode 100644 index 4b24e014ba..0000000000 --- a/config.tests/unix/sqlite/sqlite.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = sqlite.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/sqlite2/sqlite2.cpp b/config.tests/unix/sqlite2/sqlite2.cpp deleted file mode 100644 index 1c1058052a..0000000000 --- a/config.tests/unix/sqlite2/sqlite2.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - return 0; -} diff --git a/config.tests/unix/sqlite2/sqlite2.pro b/config.tests/unix/sqlite2/sqlite2.pro deleted file mode 100644 index b1252721dc..0000000000 --- a/config.tests/unix/sqlite2/sqlite2.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = sqlite2.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/stack-protector/stack-protector.cpp b/config.tests/unix/stack-protector/stack-protector.cpp deleted file mode 100644 index 8b3926fe1f..0000000000 --- a/config.tests/unix/stack-protector/stack-protector.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#if defined(__QNXNTO__) -#include - -#if _NTO_VERSION < 700 -#error stack-protector not used (by default) before QNX 7.0.0. -#endif - -#endif - -int main() -{ - return 0; -} diff --git a/config.tests/unix/stack-protector/stack-protector.pro b/config.tests/unix/stack-protector/stack-protector.pro deleted file mode 100644 index ac84d7f148..0000000000 --- a/config.tests/unix/stack-protector/stack-protector.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = stack-protector.cpp -QMAKE_CXXFLAGS += -fstack-protector-strong diff --git a/config.tests/unix/syslog/syslog.c b/config.tests/unix/syslog/syslog.c deleted file mode 100644 index aaf0fe7509..0000000000 --- a/config.tests/unix/syslog/syslog.c +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 Tasuku Suzuki -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int argc, char **argv) -{ - openlog("qt", 0, LOG_USER); - syslog(LOG_INFO, "configure"); - closelog(); - return 0; -} diff --git a/config.tests/unix/syslog/syslog.pro b/config.tests/unix/syslog/syslog.pro deleted file mode 100644 index abe8cc9cd7..0000000000 --- a/config.tests/unix/syslog/syslog.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = syslog.c - -CONFIG -= qt diff --git a/config.tests/unix/tds/tds.cpp b/config.tests/unix/tds/tds.cpp deleted file mode 100644 index 9d595154b7..0000000000 --- a/config.tests/unix/tds/tds.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char **) -{ - return 0; -} diff --git a/config.tests/unix/tds/tds.pro b/config.tests/unix/tds/tds.pro deleted file mode 100644 index f60fc0a602..0000000000 --- a/config.tests/unix/tds/tds.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = tds.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/tslib/tslib.cpp b/config.tests/unix/tslib/tslib.cpp deleted file mode 100644 index 7afb07aa66..0000000000 --- a/config.tests/unix/tslib/tslib.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main() -{ - ts_open("foo", 0); - return 0; -} diff --git a/config.tests/unix/tslib/tslib.pro b/config.tests/unix/tslib/tslib.pro deleted file mode 100644 index 6fc652dd96..0000000000 --- a/config.tests/unix/tslib/tslib.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = tslib.cpp -CONFIG -= qt diff --git a/config.tests/unix/xkbcommon/xkbcommon.cpp b/config.tests/unix/xkbcommon/xkbcommon.cpp deleted file mode 100644 index f13b4f721a..0000000000 --- a/config.tests/unix/xkbcommon/xkbcommon.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -int main() -{ - xkb_context_new(XKB_CONTEXT_NO_FLAGS); - return 0; -} diff --git a/config.tests/unix/xkbcommon/xkbcommon.pro b/config.tests/unix/xkbcommon/xkbcommon.pro deleted file mode 100644 index 4bc6e493b2..0000000000 --- a/config.tests/unix/xkbcommon/xkbcommon.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = xkbcommon.cpp -CONFIG -= qt diff --git a/config.tests/unix/zlib/zlib.cpp b/config.tests/unix/zlib/zlib.cpp deleted file mode 100644 index 3908e59c36..0000000000 --- a/config.tests/unix/zlib/zlib.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - z_streamp stream; - stream = 0; - const char *ver = zlibVersion(); - ver = 0; - // compress2 was added in zlib version 1.0.8 - int res = compress2(0, 0, 0, 0, 1); - res = 0; - return 0; -} diff --git a/config.tests/unix/zlib/zlib.pro b/config.tests/unix/zlib/zlib.pro deleted file mode 100644 index 6a6b324611..0000000000 --- a/config.tests/unix/zlib/zlib.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = zlib.cpp -CONFIG -= qt dylib diff --git a/config.tests/win/directwrite/directwrite.cpp b/config.tests/win/directwrite/directwrite.cpp deleted file mode 100644 index 8380c703ad..0000000000 --- a/config.tests/win/directwrite/directwrite.cpp +++ /dev/null @@ -1,50 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char**) -{ - IDWriteFactory *factory = 0; - DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, - __uuidof(IDWriteFactory), - reinterpret_cast(&factory)); - return 0; -} diff --git a/config.tests/win/directwrite/directwrite.pro b/config.tests/win/directwrite/directwrite.pro deleted file mode 100644 index 88ff6ee2b8..0000000000 --- a/config.tests/win/directwrite/directwrite.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = directwrite.cpp -CONFIG -= qt -CONFIG += console diff --git a/config.tests/win/directwrite2/directwrite2.cpp b/config.tests/win/directwrite2/directwrite2.cpp deleted file mode 100644 index 65fa9d44cd..0000000000 --- a/config.tests/win/directwrite2/directwrite2.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main(int, char**) -{ - IUnknown *factory = 0; - const size_t dummy = size_t(DWRITE_E_NOCOLOR) + sizeof(IDWriteFontFace2); - DWriteCreateFactory(DWRITE_FACTORY_TYPE_SHARED, - __uuidof(IDWriteFactory2), - &factory); - return 0; -} diff --git a/config.tests/win/directwrite2/directwrite2.pro b/config.tests/win/directwrite2/directwrite2.pro deleted file mode 100644 index 5d6fe24a4b..0000000000 --- a/config.tests/win/directwrite2/directwrite2.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = directwrite2.cpp -CONFIG -= qt -CONFIG += console diff --git a/config.tests/x11/xinput2/xinput2.cpp b/config.tests/x11/xinput2/xinput2.cpp deleted file mode 100644 index 4cdac72945..0000000000 --- a/config.tests/x11/xinput2/xinput2.cpp +++ /dev/null @@ -1,73 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include -#include - -#ifndef XInput_2_0 -# error "Missing XInput_2_0 #define" -#endif - -int main(int, char **) -{ - // need XGenericEventCookie for XInput2 to work - Display *dpy = 0; - XEvent xevent; - if (XGetEventData(dpy, &xevent.xcookie)) { - XFreeEventData(dpy, &xevent.xcookie); - } - - XIEvent *xievent; - xievent = 0; - - XIDeviceEvent *xideviceevent; - xideviceevent = 0; - - XIHierarchyEvent *xihierarchyevent; - xihierarchyevent = 0; - - int deviceid = 0; - int len = 0; - Atom *atoms = XIListProperties(dpy, deviceid, &len); - if (atoms) - XFree(atoms); - - return 0; -} diff --git a/config.tests/x11/xinput2/xinput2.pro b/config.tests/x11/xinput2/xinput2.pro deleted file mode 100644 index 4788f0e14b..0000000000 --- a/config.tests/x11/xinput2/xinput2.pro +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG += x11 -CONFIG -= qt -SOURCES = xinput2.cpp diff --git a/config.tests/x11/xlib/xlib.cpp b/config.tests/x11/xlib/xlib.cpp deleted file mode 100644 index 6743847335..0000000000 --- a/config.tests/x11/xlib/xlib.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - Display *d = XOpenDisplay(NULL); - XCloseDisplay(d); - return 0; -} - diff --git a/config.tests/x11/xlib/xlib.pro b/config.tests/x11/xlib/xlib.pro deleted file mode 100644 index 658161ed9d..0000000000 --- a/config.tests/x11/xlib/xlib.pro +++ /dev/null @@ -1,3 +0,0 @@ -CONFIG += x11 -CONFIG -= qt -SOURCES = xlib.cpp -- cgit v1.2.3 From b0060d1056d6d1752d91652261de97db909c7862 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 31 Jul 2017 12:51:38 +0200 Subject: configure: un-namespace remaining non-inline configure tests only few tests remain, and many of these were mis-classified anyway. Change-Id: Ic3bc96928a0c79fe77b9ec10e6508d4822f18df2 Reviewed-by: Thiago Macieira --- config.tests/atomicfptr/icc2016_mac.diff | 18 +++ config.tests/atomicfptr/qnx66.txt | 3 + config.tests/avx512/avx512.cpp | 103 ++++++++++++++ config.tests/avx512/avx512.pro | 10 ++ config.tests/common/atomicfptr/icc2016_mac.diff | 18 --- config.tests/common/atomicfptr/qnx66.txt | 3 - config.tests/common/avx512/avx512.cpp | 103 -------------- config.tests/common/avx512/avx512.pro | 10 -- config.tests/common/verifyspec/verifyspec.cpp | 1 - config.tests/common/verifyspec/verifyspec.pro | 37 ----- config.tests/common/xlocalescanprint/qglobal.h | 43 ------ .../common/xlocalescanprint/xlocalescanprint.cpp | 62 --------- .../common/xlocalescanprint/xlocalescanprint.pro | 3 - config.tests/corewlan/corewlan.pro | 2 + config.tests/corewlan/corewlantest.mm | 47 +++++++ config.tests/gnu-libiconv/gnu-libiconv.cpp | 54 ++++++++ config.tests/gnu-libiconv/gnu-libiconv.pro | 2 + config.tests/iconv/iconv.cpp | 54 ++++++++ config.tests/iconv/iconv.pro | 3 + config.tests/mac/corewlan/corewlan.pro | 2 - config.tests/mac/corewlan/corewlantest.mm | 47 ------- config.tests/openssl/openssl.cpp | 54 ++++++++ config.tests/openssl/openssl.pro | 2 + config.tests/stl/stl.pro | 2 + config.tests/stl/stltest.cpp | 149 +++++++++++++++++++++ config.tests/sun-libiconv/sun-libiconv.pro | 2 + config.tests/unix/gnu-libiconv/gnu-libiconv.cpp | 54 -------- config.tests/unix/gnu-libiconv/gnu-libiconv.pro | 2 - config.tests/unix/iconv/iconv.cpp | 54 -------- config.tests/unix/iconv/iconv.pro | 3 - config.tests/unix/openssl/openssl.cpp | 54 -------- config.tests/unix/openssl/openssl.pro | 2 - config.tests/unix/stl/stl.pro | 2 - config.tests/unix/stl/stltest.cpp | 149 --------------------- config.tests/unix/sun-libiconv/sun-libiconv.pro | 2 - config.tests/verifyspec/verifyspec.cpp | 1 + config.tests/verifyspec/verifyspec.pro | 37 +++++ config.tests/xlocalescanprint/qglobal.h | 43 ++++++ config.tests/xlocalescanprint/xlocalescanprint.cpp | 62 +++++++++ config.tests/xlocalescanprint/xlocalescanprint.pro | 3 + 40 files changed, 651 insertions(+), 651 deletions(-) create mode 100644 config.tests/atomicfptr/icc2016_mac.diff create mode 100644 config.tests/atomicfptr/qnx66.txt create mode 100644 config.tests/avx512/avx512.cpp create mode 100644 config.tests/avx512/avx512.pro delete mode 100644 config.tests/common/atomicfptr/icc2016_mac.diff delete mode 100644 config.tests/common/atomicfptr/qnx66.txt delete mode 100644 config.tests/common/avx512/avx512.cpp delete mode 100644 config.tests/common/avx512/avx512.pro delete mode 100644 config.tests/common/verifyspec/verifyspec.cpp delete mode 100644 config.tests/common/verifyspec/verifyspec.pro delete mode 100644 config.tests/common/xlocalescanprint/qglobal.h delete mode 100644 config.tests/common/xlocalescanprint/xlocalescanprint.cpp delete mode 100644 config.tests/common/xlocalescanprint/xlocalescanprint.pro create mode 100644 config.tests/corewlan/corewlan.pro create mode 100644 config.tests/corewlan/corewlantest.mm create mode 100644 config.tests/gnu-libiconv/gnu-libiconv.cpp create mode 100644 config.tests/gnu-libiconv/gnu-libiconv.pro create mode 100644 config.tests/iconv/iconv.cpp create mode 100644 config.tests/iconv/iconv.pro delete mode 100644 config.tests/mac/corewlan/corewlan.pro delete mode 100644 config.tests/mac/corewlan/corewlantest.mm create mode 100644 config.tests/openssl/openssl.cpp create mode 100644 config.tests/openssl/openssl.pro create mode 100644 config.tests/stl/stl.pro create mode 100644 config.tests/stl/stltest.cpp create mode 100644 config.tests/sun-libiconv/sun-libiconv.pro delete mode 100644 config.tests/unix/gnu-libiconv/gnu-libiconv.cpp delete mode 100644 config.tests/unix/gnu-libiconv/gnu-libiconv.pro delete mode 100644 config.tests/unix/iconv/iconv.cpp delete mode 100644 config.tests/unix/iconv/iconv.pro delete mode 100644 config.tests/unix/openssl/openssl.cpp delete mode 100644 config.tests/unix/openssl/openssl.pro delete mode 100644 config.tests/unix/stl/stl.pro delete mode 100644 config.tests/unix/stl/stltest.cpp delete mode 100644 config.tests/unix/sun-libiconv/sun-libiconv.pro create mode 100644 config.tests/verifyspec/verifyspec.cpp create mode 100644 config.tests/verifyspec/verifyspec.pro create mode 100644 config.tests/xlocalescanprint/qglobal.h create mode 100644 config.tests/xlocalescanprint/xlocalescanprint.cpp create mode 100644 config.tests/xlocalescanprint/xlocalescanprint.pro (limited to 'config.tests') diff --git a/config.tests/atomicfptr/icc2016_mac.diff b/config.tests/atomicfptr/icc2016_mac.diff new file mode 100644 index 0000000000..5de3b6e19a --- /dev/null +++ b/config.tests/atomicfptr/icc2016_mac.diff @@ -0,0 +1,18 @@ +Patch for fixing std::atomic support for function pointers for the Intel +Composer XE 2016 (compiler version 16.0). + +To apply: + cd /opt/intel/compilers_and_libraries_2016/mac/include + sudo patch -p1 < /path-to-this-file/icc2016_mac.diff + +--- include/stdatomic.h.orig 2015-08-28 15:05:13.000000000 -0700 ++++ include/stdatomic.h 2015-08-28 15:19:25.000000000 -0700 +@@ -451,7 +451,7 @@ + } + _STRONG_INLINE atomic() _DEFAULTED + _STRONG_INLINE _CONSTEXPR atomic(T* _Ptr) +- : atomic_address(_Ptr) ++ : atomic_address((void*)_Ptr) + { + } + _STRONG_INLINE T* operator+=(ptrdiff_t _V) volatile diff --git a/config.tests/atomicfptr/qnx66.txt b/config.tests/atomicfptr/qnx66.txt new file mode 100644 index 0000000000..b4ea9d65b5 --- /dev/null +++ b/config.tests/atomicfptr/qnx66.txt @@ -0,0 +1,3 @@ +Patch is available from QNX. Please see + +http://www.qnx.com/download/feature.html?programid=27555 diff --git a/config.tests/avx512/avx512.cpp b/config.tests/avx512/avx512.cpp new file mode 100644 index 0000000000..ca1a5d1357 --- /dev/null +++ b/config.tests/avx512/avx512.cpp @@ -0,0 +1,103 @@ +/**************************************************************************** +** +** Copyright (C) 2016 Intel Corporation. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the configuration of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include + +#ifndef AVX512WANT +# error ".pro file must define AVX512WANT macro to the AVX-512 feature to be tested" +#endif + +// The following checks if __AVXx__ is defined, where x is the value in +// AVX512WANT +#define HAS2(x) __AVX512 ## x ## __ +#define HAS(x) HAS2(x) +#if !HAS(AVX512WANT) +# error "Feature not supported" +#endif + +int main(int, char**argv) +{ + /* AVX512 Foundation */ + __m512i i; + __m512d d; + __m512 f; + __mmask16 m = ~1; + i = _mm512_maskz_loadu_epi32(0, argv); + d = _mm512_loadu_pd((double *)argv + 64); + f = _mm512_loadu_ps((float *)argv + 128); + +#ifdef __AVX512ER__ + /* AVX512 Exponential and Reciprocal */ + f = _mm512_exp2a23_round_ps(f, 8); +#endif +#ifdef __AVX512CD__ + /* AVX512 Conflict Detection */ + i = _mm512_maskz_conflict_epi32(m, i); +#endif +#ifdef __AVX512PF__ + /* AVX512 Prefetch */ + _mm512_mask_prefetch_i64scatter_pd(argv, 0xf, i, 2, 2); +#endif +#ifdef __AVX512DQ__ + /* AVX512 Doubleword and Quadword support */ + m = _mm512_movepi32_mask(i); +#endif +#ifdef __AVX512BW__ + /* AVX512 Byte and Word support */ + i = _mm512_mask_loadu_epi8(i, m, argv - 8); +#endif +#ifdef __AVX512VL__ + /* AVX512 Vector Length */ + __m256i i2 = _mm256_maskz_loadu_epi32(0, argv); + _mm256_mask_storeu_epi32(argv + 1, m, i2); +#endif +#ifdef __AVX512IFMA__ + /* AVX512 Integer Fused Multiply-Add */ + i = _mm512_madd52lo_epu64(i, i, i); +#endif +#ifdef __AVX512VBMI__ + /* AVX512 Vector Byte Manipulation Instructions */ + i = _mm512_permutexvar_epi8(i, i); +#endif + + _mm512_mask_storeu_epi64(argv, m, i); + _mm512_mask_storeu_ps(argv + 64, m, f); + _mm512_mask_storeu_pd(argv + 128, m, d); + return 0; +} diff --git a/config.tests/avx512/avx512.pro b/config.tests/avx512/avx512.pro new file mode 100644 index 0000000000..1edf5e5432 --- /dev/null +++ b/config.tests/avx512/avx512.pro @@ -0,0 +1,10 @@ +SOURCES = avx512.cpp + +!defined(AVX512, "var"): error("You must set the AVX512 variable!") + +varname = QMAKE_CFLAGS_AVX512$$AVX512 +value = $$eval($$varname) +!defined($$varname, "var"): error("This compiler does not support AVX512") + +QMAKE_CXXFLAGS += $$value +DEFINES += AVX512WANT=$$AVX512 diff --git a/config.tests/common/atomicfptr/icc2016_mac.diff b/config.tests/common/atomicfptr/icc2016_mac.diff deleted file mode 100644 index 5de3b6e19a..0000000000 --- a/config.tests/common/atomicfptr/icc2016_mac.diff +++ /dev/null @@ -1,18 +0,0 @@ -Patch for fixing std::atomic support for function pointers for the Intel -Composer XE 2016 (compiler version 16.0). - -To apply: - cd /opt/intel/compilers_and_libraries_2016/mac/include - sudo patch -p1 < /path-to-this-file/icc2016_mac.diff - ---- include/stdatomic.h.orig 2015-08-28 15:05:13.000000000 -0700 -+++ include/stdatomic.h 2015-08-28 15:19:25.000000000 -0700 -@@ -451,7 +451,7 @@ - } - _STRONG_INLINE atomic() _DEFAULTED - _STRONG_INLINE _CONSTEXPR atomic(T* _Ptr) -- : atomic_address(_Ptr) -+ : atomic_address((void*)_Ptr) - { - } - _STRONG_INLINE T* operator+=(ptrdiff_t _V) volatile diff --git a/config.tests/common/atomicfptr/qnx66.txt b/config.tests/common/atomicfptr/qnx66.txt deleted file mode 100644 index b4ea9d65b5..0000000000 --- a/config.tests/common/atomicfptr/qnx66.txt +++ /dev/null @@ -1,3 +0,0 @@ -Patch is available from QNX. Please see - -http://www.qnx.com/download/feature.html?programid=27555 diff --git a/config.tests/common/avx512/avx512.cpp b/config.tests/common/avx512/avx512.cpp deleted file mode 100644 index ca1a5d1357..0000000000 --- a/config.tests/common/avx512/avx512.cpp +++ /dev/null @@ -1,103 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 Intel Corporation. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the configuration of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -#ifndef AVX512WANT -# error ".pro file must define AVX512WANT macro to the AVX-512 feature to be tested" -#endif - -// The following checks if __AVXx__ is defined, where x is the value in -// AVX512WANT -#define HAS2(x) __AVX512 ## x ## __ -#define HAS(x) HAS2(x) -#if !HAS(AVX512WANT) -# error "Feature not supported" -#endif - -int main(int, char**argv) -{ - /* AVX512 Foundation */ - __m512i i; - __m512d d; - __m512 f; - __mmask16 m = ~1; - i = _mm512_maskz_loadu_epi32(0, argv); - d = _mm512_loadu_pd((double *)argv + 64); - f = _mm512_loadu_ps((float *)argv + 128); - -#ifdef __AVX512ER__ - /* AVX512 Exponential and Reciprocal */ - f = _mm512_exp2a23_round_ps(f, 8); -#endif -#ifdef __AVX512CD__ - /* AVX512 Conflict Detection */ - i = _mm512_maskz_conflict_epi32(m, i); -#endif -#ifdef __AVX512PF__ - /* AVX512 Prefetch */ - _mm512_mask_prefetch_i64scatter_pd(argv, 0xf, i, 2, 2); -#endif -#ifdef __AVX512DQ__ - /* AVX512 Doubleword and Quadword support */ - m = _mm512_movepi32_mask(i); -#endif -#ifdef __AVX512BW__ - /* AVX512 Byte and Word support */ - i = _mm512_mask_loadu_epi8(i, m, argv - 8); -#endif -#ifdef __AVX512VL__ - /* AVX512 Vector Length */ - __m256i i2 = _mm256_maskz_loadu_epi32(0, argv); - _mm256_mask_storeu_epi32(argv + 1, m, i2); -#endif -#ifdef __AVX512IFMA__ - /* AVX512 Integer Fused Multiply-Add */ - i = _mm512_madd52lo_epu64(i, i, i); -#endif -#ifdef __AVX512VBMI__ - /* AVX512 Vector Byte Manipulation Instructions */ - i = _mm512_permutexvar_epi8(i, i); -#endif - - _mm512_mask_storeu_epi64(argv, m, i); - _mm512_mask_storeu_ps(argv + 64, m, f); - _mm512_mask_storeu_pd(argv + 128, m, d); - return 0; -} diff --git a/config.tests/common/avx512/avx512.pro b/config.tests/common/avx512/avx512.pro deleted file mode 100644 index 1edf5e5432..0000000000 --- a/config.tests/common/avx512/avx512.pro +++ /dev/null @@ -1,10 +0,0 @@ -SOURCES = avx512.cpp - -!defined(AVX512, "var"): error("You must set the AVX512 variable!") - -varname = QMAKE_CFLAGS_AVX512$$AVX512 -value = $$eval($$varname) -!defined($$varname, "var"): error("This compiler does not support AVX512") - -QMAKE_CXXFLAGS += $$value -DEFINES += AVX512WANT=$$AVX512 diff --git a/config.tests/common/verifyspec/verifyspec.cpp b/config.tests/common/verifyspec/verifyspec.cpp deleted file mode 100644 index bd5560bf02..0000000000 --- a/config.tests/common/verifyspec/verifyspec.cpp +++ /dev/null @@ -1 +0,0 @@ -int main(int, char **) {} diff --git a/config.tests/common/verifyspec/verifyspec.pro b/config.tests/common/verifyspec/verifyspec.pro deleted file mode 100644 index 11a280e4ce..0000000000 --- a/config.tests/common/verifyspec/verifyspec.pro +++ /dev/null @@ -1,37 +0,0 @@ -SOURCES = verifyspec.cpp - -# Provide a function to be used by mkspecs -defineTest(deviceSanityCheckCompiler) { - equals(QMAKE_HOST.os, Windows): \ - sfx = .exe - else: \ - sfx = - - # Build the compiler filename using the first value in QMAKE_CXX in order to - # support tools like ccache, which give QMAKE_CXX values of the form: - # ccache - compiler = $$first(QMAKE_CXX)$$sfx - - # Check if the binary exists with an absolute path. Do this check - # before the CROSS_COMPILE empty check below to allow the mkspec - # to derive the compiler path from other device options. - exists($$compiler): return() - - # Check for possible reasons of failure - # check if CROSS_COMPILE device-option is set - isEmpty(CROSS_COMPILE): \ - error("CROSS_COMPILE needs to be set via -device-option CROSS_COMPILE=") - - # Check if QMAKE_CXX points to an executable. - ensurePathEnv() - for (dir, QMAKE_PATH_ENV) { - exists($$dir/$${compiler}): \ - return() - } - - # QMAKE_CXX does not point to a compiler. - error("Compiler $$QMAKE_CXX not found. Check the value of CROSS_COMPILE -device-option") -} - -defined(qtConfSanitizeMkspec, test): \ - qtConfSanitizeMkspec() diff --git a/config.tests/common/xlocalescanprint/qglobal.h b/config.tests/common/xlocalescanprint/qglobal.h deleted file mode 100644 index 98de822847..0000000000 --- a/config.tests/common/xlocalescanprint/qglobal.h +++ /dev/null @@ -1,43 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef QGLOBAL_H -#define QGLOBAL_H - -#endif diff --git a/config.tests/common/xlocalescanprint/xlocalescanprint.cpp b/config.tests/common/xlocalescanprint/xlocalescanprint.cpp deleted file mode 100644 index 2f1f28f74e..0000000000 --- a/config.tests/common/xlocalescanprint/xlocalescanprint.cpp +++ /dev/null @@ -1,62 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#define QT_BEGIN_NAMESPACE -#define QT_END_NAMESPACE - -#ifdef _MSVC_VER -#define Q_CC_MSVC _MSVC_VER -#endif - -#define QT_NO_DOUBLECONVERSION - -#include "../../../src/corelib/tools/qdoublescanprint_p.h" - -int main(int argc, char **argv) -{ -#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); - return 0; -} diff --git a/config.tests/common/xlocalescanprint/xlocalescanprint.pro b/config.tests/common/xlocalescanprint/xlocalescanprint.pro deleted file mode 100644 index a37a01f227..0000000000 --- a/config.tests/common/xlocalescanprint/xlocalescanprint.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = xlocalescanprint.cpp -CONFIG -= qt -CONFIG += console diff --git a/config.tests/corewlan/corewlan.pro b/config.tests/corewlan/corewlan.pro new file mode 100644 index 0000000000..97e864f476 --- /dev/null +++ b/config.tests/corewlan/corewlan.pro @@ -0,0 +1,2 @@ +OBJECTIVE_SOURCES = corewlantest.mm +CONFIG -= qt diff --git a/config.tests/corewlan/corewlantest.mm b/config.tests/corewlan/corewlantest.mm new file mode 100644 index 0000000000..73b4d0d145 --- /dev/null +++ b/config.tests/corewlan/corewlantest.mm @@ -0,0 +1,47 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include +#include + +int main() +{ + [CWInterface interfaceWithName:@"en2"]; + return 0; +} diff --git a/config.tests/gnu-libiconv/gnu-libiconv.cpp b/config.tests/gnu-libiconv/gnu-libiconv.cpp new file mode 100644 index 0000000000..fe4b87b923 --- /dev/null +++ b/config.tests/gnu-libiconv/gnu-libiconv.cpp @@ -0,0 +1,54 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include + +int main(int, char **) +{ + iconv_t x = iconv_open("", ""); + + const char *inp; + char *outp; + size_t inbytes, outbytes; + iconv(x, &inp, &inbytes, &outp, &outbytes); + + iconv_close(x); + + return 0; +} diff --git a/config.tests/gnu-libiconv/gnu-libiconv.pro b/config.tests/gnu-libiconv/gnu-libiconv.pro new file mode 100644 index 0000000000..4008f882eb --- /dev/null +++ b/config.tests/gnu-libiconv/gnu-libiconv.pro @@ -0,0 +1,2 @@ +SOURCES = gnu-libiconv.cpp +CONFIG -= qt dylib diff --git a/config.tests/iconv/iconv.cpp b/config.tests/iconv/iconv.cpp new file mode 100644 index 0000000000..be4236436f --- /dev/null +++ b/config.tests/iconv/iconv.cpp @@ -0,0 +1,54 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include + +int main(int, char **) +{ + iconv_t x = iconv_open("", ""); + + char *inp; + char *outp; + size_t inbytes, outbytes; + iconv(x, &inp, &inbytes, &outp, &outbytes); + + iconv_close(x); + + return 0; +} diff --git a/config.tests/iconv/iconv.pro b/config.tests/iconv/iconv.pro new file mode 100644 index 0000000000..65273ccc94 --- /dev/null +++ b/config.tests/iconv/iconv.pro @@ -0,0 +1,3 @@ +SOURCES = iconv.cpp +CONFIG -= qt dylib +mac|mingw|openbsd|qnx|haiku:LIBS += -liconv diff --git a/config.tests/mac/corewlan/corewlan.pro b/config.tests/mac/corewlan/corewlan.pro deleted file mode 100644 index 97e864f476..0000000000 --- a/config.tests/mac/corewlan/corewlan.pro +++ /dev/null @@ -1,2 +0,0 @@ -OBJECTIVE_SOURCES = corewlantest.mm -CONFIG -= qt diff --git a/config.tests/mac/corewlan/corewlantest.mm b/config.tests/mac/corewlan/corewlantest.mm deleted file mode 100644 index 73b4d0d145..0000000000 --- a/config.tests/mac/corewlan/corewlantest.mm +++ /dev/null @@ -1,47 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include -#include - -int main() -{ - [CWInterface interfaceWithName:@"en2"]; - return 0; -} diff --git a/config.tests/openssl/openssl.cpp b/config.tests/openssl/openssl.cpp new file mode 100644 index 0000000000..d33b62389c --- /dev/null +++ b/config.tests/openssl/openssl.cpp @@ -0,0 +1,54 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include + +#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x0090700fL +# error "OpenSSL >= 0.9.7 is required" +#endif + +#include + +#if OPENSSL_VERSION_NUMBER-0 >= 0x10002000L && !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES) +# error "OpenSSL was reported as >= 1.0.2 but is missing required features, possibly it's libressl which is unsupported" +#endif + +int main() +{ +} diff --git a/config.tests/openssl/openssl.pro b/config.tests/openssl/openssl.pro new file mode 100644 index 0000000000..a023aee4aa --- /dev/null +++ b/config.tests/openssl/openssl.pro @@ -0,0 +1,2 @@ +SOURCES = openssl.cpp +CONFIG -= x11 qt diff --git a/config.tests/stl/stl.pro b/config.tests/stl/stl.pro new file mode 100644 index 0000000000..7303e8d31c --- /dev/null +++ b/config.tests/stl/stl.pro @@ -0,0 +1,2 @@ +SOURCES = stltest.cpp +CONFIG -= qt dylib diff --git a/config.tests/stl/stltest.cpp b/config.tests/stl/stltest.cpp new file mode 100644 index 0000000000..a7a36ba0d3 --- /dev/null +++ b/config.tests/stl/stltest.cpp @@ -0,0 +1,149 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/* Sample program for configure to test STL support on target +platforms. We are mainly concerned with being able to instantiate +templates for common STL container classes. +*/ + +#include +#include +#include +#include +#include +#include + +// something mean to see if the compiler and C++ standard lib are good enough +template +class DummyClass +{ + // everything in std namespace ? + typedef std::bidirectional_iterator_tag i; + typedef std::ptrdiff_t d; + // typename implemented ? + typedef typename std::map::iterator MyIterator; +}; + +// extracted from QVector's strict iterator +template +class DummyIterator +{ + typedef DummyIterator iterator; +public: + T *i; + typedef std::random_access_iterator_tag iterator_category; + typedef std::ptrdiff_t difference_type; + typedef T value_type; + typedef T *pointer; + typedef T &reference; + + inline DummyIterator() : i(0) {} + inline DummyIterator(T *n) : i(n) {} + inline DummyIterator(const DummyIterator &o): i(o.i){} + inline T &operator*() const { return *i; } + inline T *operator->() const { return i; } + inline T &operator[](int j) const { return *(i + j); } + inline bool operator==(const DummyIterator &o) const { return i == o.i; } + inline bool operator!=(const DummyIterator &o) const { return i != o.i; } + inline bool operator<(const DummyIterator& other) const { return i < other.i; } + inline bool operator<=(const DummyIterator& other) const { return i <= other.i; } + inline bool operator>(const DummyIterator& other) const { return i > other.i; } + inline bool operator>=(const DummyIterator& other) const { return i >= other.i; } + inline DummyIterator &operator++() { ++i; return *this; } + inline DummyIterator operator++(int) { T *n = i; ++i; return n; } + inline DummyIterator &operator--() { i--; return *this; } + inline DummyIterator operator--(int) { T *n = i; i--; return n; } + inline DummyIterator &operator+=(int j) { i+=j; return *this; } + inline DummyIterator &operator-=(int j) { i-=j; return *this; } + inline DummyIterator operator+(int j) const { return DummyIterator(i+j); } + inline DummyIterator operator-(int j) const { return DummyIterator(i-j); } + inline int operator-(DummyIterator j) const { return i - j.i; } +}; + +int main() +{ + std::vector v1; + v1.push_back( 0 ); + v1.push_back( 1 ); + v1.push_back( 2 ); + v1.push_back( 3 ); + v1.push_back( 4 ); + int v1size = v1.size(); + v1size = 0; + int v1capacity = v1.capacity(); + v1capacity = 0; + + std::vector::iterator v1it = std::find( v1.begin(), v1.end(), 99 ); + bool v1notfound = (v1it == v1.end()); + v1notfound = false; + + v1it = std::find( v1.begin(), v1.end(), 3 ); + bool v1found = (v1it != v1.end()); + v1found = false; + + std::vector v2; + std::copy( v1.begin(), v1it, std::back_inserter( v2 ) ); + int v2size = v2.size(); + v2size = 0; + + std::map m1; + m1.insert( std::make_pair( 1, 2.0 ) ); + m1.insert( std::make_pair( 3, 2.0 ) ); + m1.insert( std::make_pair( 5, 2.0 ) ); + m1.insert( std::make_pair( 7, 2.0 ) ); + int m1size = m1.size(); + m1size = 0; + std::map::iterator m1it = m1.begin(); + for ( ; m1it != m1.end(); ++m1it ) { + int first = (*m1it).first; + first = 0; + double second = (*m1it).second; + second = 0.0; + } + std::map< int, double > m2( m1 ); + int m2size = m2.size(); + m2size = 0; + + DummyIterator it1, it2; + int n = std::distance(it1, it2); + std::advance(it1, 3); + + return 0; +} + diff --git a/config.tests/sun-libiconv/sun-libiconv.pro b/config.tests/sun-libiconv/sun-libiconv.pro new file mode 100644 index 0000000000..923afc7dd2 --- /dev/null +++ b/config.tests/sun-libiconv/sun-libiconv.pro @@ -0,0 +1,2 @@ +SOURCES = ../gnu-libiconv/gnu-libiconv.cpp +CONFIG -= qt dylib diff --git a/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp b/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp deleted file mode 100644 index fe4b87b923..0000000000 --- a/config.tests/unix/gnu-libiconv/gnu-libiconv.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - iconv_t x = iconv_open("", ""); - - const char *inp; - char *outp; - size_t inbytes, outbytes; - iconv(x, &inp, &inbytes, &outp, &outbytes); - - iconv_close(x); - - return 0; -} diff --git a/config.tests/unix/gnu-libiconv/gnu-libiconv.pro b/config.tests/unix/gnu-libiconv/gnu-libiconv.pro deleted file mode 100644 index 4008f882eb..0000000000 --- a/config.tests/unix/gnu-libiconv/gnu-libiconv.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = gnu-libiconv.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/iconv/iconv.cpp b/config.tests/unix/iconv/iconv.cpp deleted file mode 100644 index be4236436f..0000000000 --- a/config.tests/unix/iconv/iconv.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -int main(int, char **) -{ - iconv_t x = iconv_open("", ""); - - char *inp; - char *outp; - size_t inbytes, outbytes; - iconv(x, &inp, &inbytes, &outp, &outbytes); - - iconv_close(x); - - return 0; -} diff --git a/config.tests/unix/iconv/iconv.pro b/config.tests/unix/iconv/iconv.pro deleted file mode 100644 index 65273ccc94..0000000000 --- a/config.tests/unix/iconv/iconv.pro +++ /dev/null @@ -1,3 +0,0 @@ -SOURCES = iconv.cpp -CONFIG -= qt dylib -mac|mingw|openbsd|qnx|haiku:LIBS += -liconv diff --git a/config.tests/unix/openssl/openssl.cpp b/config.tests/unix/openssl/openssl.cpp deleted file mode 100644 index d33b62389c..0000000000 --- a/config.tests/unix/openssl/openssl.cpp +++ /dev/null @@ -1,54 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include - -#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x0090700fL -# error "OpenSSL >= 0.9.7 is required" -#endif - -#include - -#if OPENSSL_VERSION_NUMBER-0 >= 0x10002000L && !defined(OPENSSL_NO_EC) && !defined(SSL_CTRL_SET_CURVES) -# error "OpenSSL was reported as >= 1.0.2 but is missing required features, possibly it's libressl which is unsupported" -#endif - -int main() -{ -} diff --git a/config.tests/unix/openssl/openssl.pro b/config.tests/unix/openssl/openssl.pro deleted file mode 100644 index a023aee4aa..0000000000 --- a/config.tests/unix/openssl/openssl.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = openssl.cpp -CONFIG -= x11 qt diff --git a/config.tests/unix/stl/stl.pro b/config.tests/unix/stl/stl.pro deleted file mode 100644 index 7303e8d31c..0000000000 --- a/config.tests/unix/stl/stl.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = stltest.cpp -CONFIG -= qt dylib diff --git a/config.tests/unix/stl/stltest.cpp b/config.tests/unix/stl/stltest.cpp deleted file mode 100644 index a7a36ba0d3..0000000000 --- a/config.tests/unix/stl/stltest.cpp +++ /dev/null @@ -1,149 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2016 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the config.tests of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 3 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL3 included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 3 requirements -** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU -** General Public License version 2.0 or (at your option) the GNU General -** Public license version 3 or any later version approved by the KDE Free -** Qt Foundation. The licenses are as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 -** included in the packaging of this file. Please review the following -** information to ensure the GNU General Public License requirements will -** be met: https://www.gnu.org/licenses/gpl-2.0.html and -** https://www.gnu.org/licenses/gpl-3.0.html. -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -/* Sample program for configure to test STL support on target -platforms. We are mainly concerned with being able to instantiate -templates for common STL container classes. -*/ - -#include -#include -#include -#include -#include -#include - -// something mean to see if the compiler and C++ standard lib are good enough -template -class DummyClass -{ - // everything in std namespace ? - typedef std::bidirectional_iterator_tag i; - typedef std::ptrdiff_t d; - // typename implemented ? - typedef typename std::map::iterator MyIterator; -}; - -// extracted from QVector's strict iterator -template -class DummyIterator -{ - typedef DummyIterator iterator; -public: - T *i; - typedef std::random_access_iterator_tag iterator_category; - typedef std::ptrdiff_t difference_type; - typedef T value_type; - typedef T *pointer; - typedef T &reference; - - inline DummyIterator() : i(0) {} - inline DummyIterator(T *n) : i(n) {} - inline DummyIterator(const DummyIterator &o): i(o.i){} - inline T &operator*() const { return *i; } - inline T *operator->() const { return i; } - inline T &operator[](int j) const { return *(i + j); } - inline bool operator==(const DummyIterator &o) const { return i == o.i; } - inline bool operator!=(const DummyIterator &o) const { return i != o.i; } - inline bool operator<(const DummyIterator& other) const { return i < other.i; } - inline bool operator<=(const DummyIterator& other) const { return i <= other.i; } - inline bool operator>(const DummyIterator& other) const { return i > other.i; } - inline bool operator>=(const DummyIterator& other) const { return i >= other.i; } - inline DummyIterator &operator++() { ++i; return *this; } - inline DummyIterator operator++(int) { T *n = i; ++i; return n; } - inline DummyIterator &operator--() { i--; return *this; } - inline DummyIterator operator--(int) { T *n = i; i--; return n; } - inline DummyIterator &operator+=(int j) { i+=j; return *this; } - inline DummyIterator &operator-=(int j) { i-=j; return *this; } - inline DummyIterator operator+(int j) const { return DummyIterator(i+j); } - inline DummyIterator operator-(int j) const { return DummyIterator(i-j); } - inline int operator-(DummyIterator j) const { return i - j.i; } -}; - -int main() -{ - std::vector v1; - v1.push_back( 0 ); - v1.push_back( 1 ); - v1.push_back( 2 ); - v1.push_back( 3 ); - v1.push_back( 4 ); - int v1size = v1.size(); - v1size = 0; - int v1capacity = v1.capacity(); - v1capacity = 0; - - std::vector::iterator v1it = std::find( v1.begin(), v1.end(), 99 ); - bool v1notfound = (v1it == v1.end()); - v1notfound = false; - - v1it = std::find( v1.begin(), v1.end(), 3 ); - bool v1found = (v1it != v1.end()); - v1found = false; - - std::vector v2; - std::copy( v1.begin(), v1it, std::back_inserter( v2 ) ); - int v2size = v2.size(); - v2size = 0; - - std::map m1; - m1.insert( std::make_pair( 1, 2.0 ) ); - m1.insert( std::make_pair( 3, 2.0 ) ); - m1.insert( std::make_pair( 5, 2.0 ) ); - m1.insert( std::make_pair( 7, 2.0 ) ); - int m1size = m1.size(); - m1size = 0; - std::map::iterator m1it = m1.begin(); - for ( ; m1it != m1.end(); ++m1it ) { - int first = (*m1it).first; - first = 0; - double second = (*m1it).second; - second = 0.0; - } - std::map< int, double > m2( m1 ); - int m2size = m2.size(); - m2size = 0; - - DummyIterator it1, it2; - int n = std::distance(it1, it2); - std::advance(it1, 3); - - return 0; -} - diff --git a/config.tests/unix/sun-libiconv/sun-libiconv.pro b/config.tests/unix/sun-libiconv/sun-libiconv.pro deleted file mode 100644 index 923afc7dd2..0000000000 --- a/config.tests/unix/sun-libiconv/sun-libiconv.pro +++ /dev/null @@ -1,2 +0,0 @@ -SOURCES = ../gnu-libiconv/gnu-libiconv.cpp -CONFIG -= qt dylib diff --git a/config.tests/verifyspec/verifyspec.cpp b/config.tests/verifyspec/verifyspec.cpp new file mode 100644 index 0000000000..bd5560bf02 --- /dev/null +++ b/config.tests/verifyspec/verifyspec.cpp @@ -0,0 +1 @@ +int main(int, char **) {} diff --git a/config.tests/verifyspec/verifyspec.pro b/config.tests/verifyspec/verifyspec.pro new file mode 100644 index 0000000000..11a280e4ce --- /dev/null +++ b/config.tests/verifyspec/verifyspec.pro @@ -0,0 +1,37 @@ +SOURCES = verifyspec.cpp + +# Provide a function to be used by mkspecs +defineTest(deviceSanityCheckCompiler) { + equals(QMAKE_HOST.os, Windows): \ + sfx = .exe + else: \ + sfx = + + # Build the compiler filename using the first value in QMAKE_CXX in order to + # support tools like ccache, which give QMAKE_CXX values of the form: + # ccache + compiler = $$first(QMAKE_CXX)$$sfx + + # Check if the binary exists with an absolute path. Do this check + # before the CROSS_COMPILE empty check below to allow the mkspec + # to derive the compiler path from other device options. + exists($$compiler): return() + + # Check for possible reasons of failure + # check if CROSS_COMPILE device-option is set + isEmpty(CROSS_COMPILE): \ + error("CROSS_COMPILE needs to be set via -device-option CROSS_COMPILE=") + + # Check if QMAKE_CXX points to an executable. + ensurePathEnv() + for (dir, QMAKE_PATH_ENV) { + exists($$dir/$${compiler}): \ + return() + } + + # QMAKE_CXX does not point to a compiler. + error("Compiler $$QMAKE_CXX not found. Check the value of CROSS_COMPILE -device-option") +} + +defined(qtConfSanitizeMkspec, test): \ + qtConfSanitizeMkspec() diff --git a/config.tests/xlocalescanprint/qglobal.h b/config.tests/xlocalescanprint/qglobal.h new file mode 100644 index 0000000000..98de822847 --- /dev/null +++ b/config.tests/xlocalescanprint/qglobal.h @@ -0,0 +1,43 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef QGLOBAL_H +#define QGLOBAL_H + +#endif diff --git a/config.tests/xlocalescanprint/xlocalescanprint.cpp b/config.tests/xlocalescanprint/xlocalescanprint.cpp new file mode 100644 index 0000000000..2f1f28f74e --- /dev/null +++ b/config.tests/xlocalescanprint/xlocalescanprint.cpp @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2016 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#define QT_BEGIN_NAMESPACE +#define QT_END_NAMESPACE + +#ifdef _MSVC_VER +#define Q_CC_MSVC _MSVC_VER +#endif + +#define QT_NO_DOUBLECONVERSION + +#include "../../../src/corelib/tools/qdoublescanprint_p.h" + +int main(int argc, char **argv) +{ +#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); + return 0; +} diff --git a/config.tests/xlocalescanprint/xlocalescanprint.pro b/config.tests/xlocalescanprint/xlocalescanprint.pro new file mode 100644 index 0000000000..a37a01f227 --- /dev/null +++ b/config.tests/xlocalescanprint/xlocalescanprint.pro @@ -0,0 +1,3 @@ +SOURCES = xlocalescanprint.cpp +CONFIG -= qt +CONFIG += console -- cgit v1.2.3 From 71e36a42f2e4f46f11524264b880b6a18bc247d2 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 31 Jul 2017 13:03:14 +0200 Subject: configure: clean up projects of remaining non-inline tests remove redundant and wholly ineffective CONFIG manipulations. Change-Id: I3836369a0eb32abfe985c7619c0f7c8037ad82e2 Reviewed-by: Thiago Macieira --- config.tests/corewlan/corewlan.pro | 1 - config.tests/gnu-libiconv/gnu-libiconv.pro | 1 - config.tests/iconv/iconv.pro | 1 - config.tests/openssl/openssl.pro | 1 - config.tests/stl/stl.pro | 1 - config.tests/sun-libiconv/sun-libiconv.pro | 1 - config.tests/xlocalescanprint/xlocalescanprint.pro | 2 -- 7 files changed, 8 deletions(-) (limited to 'config.tests') diff --git a/config.tests/corewlan/corewlan.pro b/config.tests/corewlan/corewlan.pro index 97e864f476..c19f0be4fd 100644 --- a/config.tests/corewlan/corewlan.pro +++ b/config.tests/corewlan/corewlan.pro @@ -1,2 +1 @@ OBJECTIVE_SOURCES = corewlantest.mm -CONFIG -= qt diff --git a/config.tests/gnu-libiconv/gnu-libiconv.pro b/config.tests/gnu-libiconv/gnu-libiconv.pro index 4008f882eb..e4e020cffb 100644 --- a/config.tests/gnu-libiconv/gnu-libiconv.pro +++ b/config.tests/gnu-libiconv/gnu-libiconv.pro @@ -1,2 +1 @@ SOURCES = gnu-libiconv.cpp -CONFIG -= qt dylib diff --git a/config.tests/iconv/iconv.pro b/config.tests/iconv/iconv.pro index 65273ccc94..70af0d2eb2 100644 --- a/config.tests/iconv/iconv.pro +++ b/config.tests/iconv/iconv.pro @@ -1,3 +1,2 @@ SOURCES = iconv.cpp -CONFIG -= qt dylib mac|mingw|openbsd|qnx|haiku:LIBS += -liconv diff --git a/config.tests/openssl/openssl.pro b/config.tests/openssl/openssl.pro index a023aee4aa..f0ee5e2b0c 100644 --- a/config.tests/openssl/openssl.pro +++ b/config.tests/openssl/openssl.pro @@ -1,2 +1 @@ SOURCES = openssl.cpp -CONFIG -= x11 qt diff --git a/config.tests/stl/stl.pro b/config.tests/stl/stl.pro index 7303e8d31c..91f29a232c 100644 --- a/config.tests/stl/stl.pro +++ b/config.tests/stl/stl.pro @@ -1,2 +1 @@ SOURCES = stltest.cpp -CONFIG -= qt dylib diff --git a/config.tests/sun-libiconv/sun-libiconv.pro b/config.tests/sun-libiconv/sun-libiconv.pro index 923afc7dd2..d0881b732a 100644 --- a/config.tests/sun-libiconv/sun-libiconv.pro +++ b/config.tests/sun-libiconv/sun-libiconv.pro @@ -1,2 +1 @@ SOURCES = ../gnu-libiconv/gnu-libiconv.cpp -CONFIG -= qt dylib diff --git a/config.tests/xlocalescanprint/xlocalescanprint.pro b/config.tests/xlocalescanprint/xlocalescanprint.pro index a37a01f227..3748d2a728 100644 --- a/config.tests/xlocalescanprint/xlocalescanprint.pro +++ b/config.tests/xlocalescanprint/xlocalescanprint.pro @@ -1,3 +1 @@ SOURCES = xlocalescanprint.cpp -CONFIG -= qt -CONFIG += console -- cgit v1.2.3 From a96656a8fb6a3c1fc7765659efff28f807fd0deb Mon Sep 17 00:00:00 2001 From: Oliver Wolff Date: Fri, 28 Jul 2017 09:02:50 +0200 Subject: ANGLE: Fix build for newer MinGW versions Availability of D3D11_QUERY_DATA_TIMESTAMP_DISJOINT depends on the used MinGW version so that the check for MINGW is not sufficient. The newly added configure test can be used for every toolset. Task-number: QTBUG-57916 Change-Id: Ia9cb48f3e673841101a93cbc8ea23aff9547f639 Reviewed-by: Oswald Buddenhagen Reviewed-by: Kai Koehne --- .../win/angle_d3d11_qdtd/angle_d3d11_qdtd.cpp | 47 ++++++++++++++++++++++ .../win/angle_d3d11_qdtd/angle_d3d11_qdtd.pro | 3 ++ 2 files changed, 50 insertions(+) create mode 100644 config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.cpp create mode 100644 config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.pro (limited to 'config.tests') diff --git a/config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.cpp b/config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.cpp new file mode 100644 index 0000000000..2dde2914a2 --- /dev/null +++ b/config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.cpp @@ -0,0 +1,47 @@ +/**************************************************************************** +** +** Copyright (C) 2017 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the config.tests of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** Commercial License Usage +** Licensees holding valid commercial Qt licenses may use this file in +** accordance with the commercial license agreement provided with the +** Software or, alternatively, in accordance with the terms contained in +** a written agreement between you and The Qt Company. For licensing terms +** and conditions see https://www.qt.io/terms-conditions. For further +** information use the contact form at https://www.qt.io/contact-us. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 3 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL3 included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 3 requirements +** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 2.0 or (at your option) the GNU General +** Public license version 3 or any later version approved by the KDE Free +** Qt Foundation. The licenses are as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 +** included in the packaging of this file. Please review the following +** information to ensure the GNU General Public License requirements will +** be met: https://www.gnu.org/licenses/gpl-2.0.html and +** https://www.gnu.org/licenses/gpl-3.0.html. +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#include + +int main(int, char**) +{ + D3D11_QUERY_DATA_TIMESTAMP_DISJOINT qdtd; + (void)qdtd; + return 0; +} diff --git a/config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.pro b/config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.pro new file mode 100644 index 0000000000..f1e530ab6e --- /dev/null +++ b/config.tests/win/angle_d3d11_qdtd/angle_d3d11_qdtd.pro @@ -0,0 +1,3 @@ +SOURCES = angle_d3d11_qdtd.cpp +CONFIG -= qt +CONFIG += console -- cgit v1.2.3