diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2014-10-06 15:03:54 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2014-10-06 15:03:54 +0200 |
| commit | 529f38bd8878b6b1bea2b5457031ce936aab8d80 (patch) | |
| tree | 1193caefcad12f6a36f818048e4547e60add4398 /libcommuni/src/3rdparty/icu/icu.pri | |
| parent | 3b58b5536935adff242928ed9f30e1c0262fbd7c (diff) | |
| download | manager-529f38bd8878b6b1bea2b5457031ce936aab8d80.tar.gz manager-529f38bd8878b6b1bea2b5457031ce936aab8d80.zip | |
addedd communi
Diffstat (limited to 'libcommuni/src/3rdparty/icu/icu.pri')
| -rw-r--r-- | libcommuni/src/3rdparty/icu/icu.pri | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/libcommuni/src/3rdparty/icu/icu.pri b/libcommuni/src/3rdparty/icu/icu.pri new file mode 100644 index 0000000..352c218 --- /dev/null +++ b/libcommuni/src/3rdparty/icu/icu.pri @@ -0,0 +1,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 + } +} |
