path: root/config.tests
diff options
authorEskil Abrahamsen Blomfeldt <>2015-06-15 14:09:19 +0200
committerEskil Abrahamsen Blomfeldt <>2015-07-21 08:21:34 +0000
commit297816375937de46aec5e53963c6332190ed373e (patch)
treed50551302695ed5b51cb021e6525f6380c1c7cf0 /config.tests
parente5b8c3853035e99e5dab7975dbbfcbcf7bd995e8 (diff)
Windows: Include DirectWrite support by default if available
This will automatically add DirectWrite support if the required headers are found. The note about platform support from the help screen has also been removed, since Windows XP is not officially supported. Applications that need to run on XP can still build with -no-directwrite. Also changed the configure test to be a proper compile test, since cross-compiled builds for Windows CE may break otherwise. Change-Id: I7fc7bfb25f2f86ced8a4d4c78a69527de0273707 Reviewed-by: Friedemann Kleint <> Reviewed-by: Konstantin Ritt <>
Diffstat (limited to 'config.tests')
2 files changed, 48 insertions, 0 deletions
diff --git a/config.tests/win/directwrite/directwrite.cpp b/config.tests/win/directwrite/directwrite.cpp
new file mode 100644
index 0000000000..01bea19faf
--- /dev/null
+++ b/config.tests/win/directwrite/directwrite.cpp
@@ -0,0 +1,44 @@
+** Copyright (C) 2015 The Qt Company Ltd.
+** Contact:
+** This file is part of the config.tests of the Qt Toolkit.
+** 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 For further
+** information use the contact form at
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 or version 3 as published by the Free
+** Software Foundation and appearing in the file LICENSE.LGPLv21 and
+** LICENSE.LGPLv3 included in the packaging of this file. Please review the
+** following information to ensure the GNU Lesser General Public License
+** requirements will be met: and
+** As a special exception, The Qt Company gives you certain additional
+** rights. These rights are described in The Qt Company LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+#include <dwrite.h>
+#include <d2d1.h>
+int main(int, char**)
+ IDWriteFactory *factory = 0;
+ __uuidof(IDWriteFactory),
+ reinterpret_cast<IUnknown **>(&factory));
+ return 0;
diff --git a/config.tests/win/directwrite/ b/config.tests/win/directwrite/
new file mode 100644
index 0000000000..9a4612ca11
--- /dev/null
+++ b/config.tests/win/directwrite/
@@ -0,0 +1,4 @@
+SOURCES = directwrite.cpp
+LIBS += -ldwrite
+CONFIG -= qt
+CONFIG += console