summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@theqtcompany.com>2015-03-12 14:18:26 +0100
committerDavid Schulz <david.schulz@theqtcompany.com>2015-03-16 05:39:44 +0000
commit0d5ffd67a4748bcbf19dc3a4b9a36ae6314e58a6 (patch)
treed5ead69e3f07a79573bd6d8012d4d1d79a8ac985 /tools
parent97f489e7b9858cd5307cd74fa77774707a62a314 (diff)
Add auto detection for tslib support when using Windows configure.
Change-Id: I83fb53ed23813e572d924b4c3d5da4aae6f32775 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/configure/configureapp.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp
index a263d44f29..4f78660db4 100644
--- a/tools/configure/configureapp.cpp
+++ b/tools/configure/configureapp.cpp
@@ -182,6 +182,7 @@ Configure::Configure(int& argc, char** argv)
dictionary[ "QT_ICONV" ] = "auto";
dictionary[ "QT_EVDEV" ] = "auto";
dictionary[ "QT_MTDEV" ] = "auto";
+ dictionary[ "QT_TSLIB" ] = "auto";
dictionary[ "QT_INOTIFY" ] = "auto";
dictionary[ "QT_EVENTFD" ] = "auto";
dictionary[ "QT_CUPS" ] = "auto";
@@ -2274,6 +2275,8 @@ bool Configure::checkAvailability(const QString &part)
available = tryCompileProject("unix/evdev");
} else if (part == "MTDEV") {
available = tryCompileProject("unix/mtdev");
+ } else if (part == "TSLIB") {
+ available = tryCompileProject("unix/tslib");
} else if (part == "INOTIFY") {
available = tryCompileProject("unix/inotify");
} else if (part == "QT_EVENTFD") {
@@ -2444,6 +2447,10 @@ void Configure::autoDetection()
if (dictionary["QT_MTDEV"] == "auto")
dictionary["QT_MTDEV"] = checkAvailability("MTDEV") ? "yes" : "no";
+ // Detection of tslib support
+ if (dictionary["QT_TSLIB"] == "auto")
+ dictionary["QT_TSLIB"] = checkAvailability("TSLIB") ? "yes" : "no";
+
// Detection of inotify
if (dictionary["QT_INOTIFY"] == "auto")
dictionary["QT_INOTIFY"] = checkAvailability("INOTIFY") ? "yes" : "no";
@@ -2905,6 +2912,9 @@ void Configure::generateOutputVars()
if (dictionary["QT_MTDEV"] == "yes")
qtConfig += "mtdev";
+ if (dictionary[ "QT_TSLIB" ] == "yes")
+ qtConfig += "tslib";
+
if (dictionary["QT_INOTIFY"] == "yes")
qtConfig += "inotify";
@@ -3611,6 +3621,7 @@ void Configure::generateConfigfiles()
if (dictionary["QT_ICONV"] == "no") qconfigList += "QT_NO_ICONV";
if (dictionary["QT_EVDEV"] == "no") qconfigList += "QT_NO_EVDEV";
if (dictionary["QT_MTDEV"] == "no") qconfigList += "QT_NO_MTDEV";
+ if (dictionary["QT_TSLIB"] == "no") qconfigList += "QT_NO_TSLIB";
if (dictionary["QT_GLIB"] == "no") qconfigList += "QT_NO_GLIB";
if (dictionary["QT_INOTIFY"] == "no") qconfigList += "QT_NO_INOTIFY";
if (dictionary["QT_EVENTFD"] == "no") qconfigList += "QT_NO_EVENTFD";