blob: 352c218e4cdf0f5bee72fd68a16085407f22c495 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
######################################################################
# Communi
######################################################################
include(../pkg.pri)
pkgExists(icu) {
CONFIG += link_pkgconfig
PKGCONFIG += icu
} else:pkgExists(icu-i18n) {
CONFIG += link_pkgconfig
PKGCONFIG += icu-i18n
}
isEmpty(PKGCONFIG) {
win32 {
isEmpty(ICU_DIR):ICU_DIR = $$(ICU_DIR)
isEmpty(ICU_DIR):ICU_DIR = C:/ICU
!build_pass {
!exists($$ICU_DIR) {
error("ICU support has been enabled, but the ICU installation \
has not been found at $${ICU_DIR}. Please download and \
install ICU from http://icu-project.org and/or specify \
ICU_DIR to match the installation location.")
} else {
message("Using ICU from $${ICU_DIR}")
}
}
INCLUDEPATH += $$ICU_DIR/include
contains(QMAKE_TARGET.arch, x86_64):LIBS += -L$$ICU_DIR/lib64
else:LIBS += -L$$ICU_DIR/lib
LIBS += -licuuc
# icudata vs. icudt
exists($$ICU_DIR/bin/icudata*.dll):LIBS += -licudata
else:LIBS += -licudt
# icui18n vs. icuin
exists($$ICU_DIR/bin/icui18n*.dll):LIBS += -licui18n
else:LIBS += -licuin
} else {
LIBS += -licui18n -licudata -licuuc
}
}
|