summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/tools.pri
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2013-09-10 03:54:54 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-13 05:48:10 +0200
commit1864b485e4c37db2ef09b8a47a5bf3cc570cc222 (patch)
treea48bb10d17385b44a9af77d3e44444d28bae6c17 /src/corelib/tools/tools.pri
parentc517a6d6ff70235ed3a3b93a87948add1de743ed (diff)
Make QCollator more flexible to use in different platforms
So far we've known that we want QCollator as public API. It hasn't been possible yet due to the strong dependency that QCollator used to have on ICU. This patch adds collation support for the platforms where ICU is not the best option by using native collation API. Namely Windows and Mac OS X. Additionally a fallback POSIX back-end is added, so that we can make sure it will work on any posix-compliant platform. Change-Id: Ia1734acbf5f596698a81f2af927cc15636e4c908 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/tools.pri')
-rw-r--r--src/corelib/tools/tools.pri9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/corelib/tools/tools.pri b/src/corelib/tools/tools.pri
index d3f87977fc..01f16dc2ad 100644
--- a/src/corelib/tools/tools.pri
+++ b/src/corelib/tools/tools.pri
@@ -132,7 +132,8 @@ contains(QT_CONFIG, zlib) {
}
contains(QT_CONFIG,icu) {
- SOURCES += tools/qlocale_icu.cpp
+ SOURCES += tools/qlocale_icu.cpp \
+ tools/qcollator_icu.cpp
DEFINES += QT_USE_ICU
win32 {
CONFIG(static, static|shared) {
@@ -147,6 +148,12 @@ contains(QT_CONFIG,icu) {
} else {
LIBS_PRIVATE += -licui18n -licuuc
}
+} else: win32 {
+ SOURCES += tools/qcollator_win.cpp
+} else: mac {
+ SOURCES += tools/qcollator_mac.cpp
+} else {
+ SOURCES += tools/qcollator_posix.cpp
}
pcre {