aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/3rdparty
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-04-04 18:31:56 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2016-04-13 13:18:44 +0000
commit720cead533b67c82692d5afa2db733f58567d360 (patch)
treee2ee74cb8d4efc9cd1384fd4ebc425ee978a7105 /src/virtualkeyboard/3rdparty
parentaef55eb7b3470ba6dee4abc67acda1d308c90e97 (diff)
use qt_helper_lib.prf for helper libraries
this ensures naming and installation uniformity. hunspell is now built statically, for the same reason. Change-Id: I722f16bda4671a71419920f3ab3bedf03df92f0e Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/virtualkeyboard/3rdparty')
-rw-r--r--src/virtualkeyboard/3rdparty/hunspell/hunspell.pro33
-rw-r--r--src/virtualkeyboard/3rdparty/openwnn/openwnn.pro22
-rw-r--r--src/virtualkeyboard/3rdparty/pinyin/pinyin.pro25
-rw-r--r--src/virtualkeyboard/3rdparty/t9write/t9write.pro15
-rw-r--r--src/virtualkeyboard/3rdparty/tcime/tcime.pro19
5 files changed, 36 insertions, 78 deletions
diff --git a/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro b/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro
index ce5a90f6..93bdb2c4 100644
--- a/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro
+++ b/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro
@@ -1,35 +1,12 @@
-TEMPLATE = lib
-QT -= core gui
+TARGET = qthunspell
+
DEFINES += BUILDING_LIBHUNSPELL
-CONFIG += dll
-#CONFIG += staticlib
+CONFIG += static
CONFIG += precompile_header warn_off
-debug {
+CONFIG(debug, debug|release) {
DEFINES += HUNSPELL_WARNING_ON
}
-build_pass {
- CONFIG(debug, debug|release) {
- SUBPATH = debug
- win32: TARGET_SUFFIX = d
- } else {
- SUBPATH = release
- }
-} else {
- debug_and_release: CONFIG += build_all
- else:win32:CONFIG(debug, debug|release): TARGET_SUFFIX = d
-}
-
-DESTDIR = $$SUBPATH
-
-TARGET = hunspell$$TARGET_SUFFIX
-
-dll {
- win32: CONFIG += skip_target_version_ext
- target.path = $$[QT_INSTALL_LIBS]
- INSTALLS += target
-}
-
config_file = "/* Version number of package */" "$${LITERAL_HASH}define VERSION \"$$VERSION\""
write_file($$PWD/config.h, config_file)
@@ -75,3 +52,5 @@ OTHER_FILES +=\
src/hunspell/license.hunspell \
src/hunspell/license.myspell \
src/hunspell/utf_info.cxx
+
+load(qt_helper_lib)
diff --git a/src/virtualkeyboard/3rdparty/openwnn/openwnn.pro b/src/virtualkeyboard/3rdparty/openwnn/openwnn.pro
index 0068df18..6ca93d36 100644
--- a/src/virtualkeyboard/3rdparty/openwnn/openwnn.pro
+++ b/src/virtualkeyboard/3rdparty/openwnn/openwnn.pro
@@ -1,20 +1,9 @@
-TEMPLATE = lib
-QT += core-private
-QT -= gui
-TARGET = openwnn
+TARGET = qtopenwnn
+
VERSION = 1.3.6
-CONFIG += staticlib
+CONFIG += static
CONFIG += warn_off
-build_pass {
- CONFIG(debug, debug|release): SUBPATH = debug
- else: SUBPATH = release
-} else {
- debug_and_release: CONFIG += build_all
-}
-
-DESTDIR = $$SUBPATH
-
INCLUDEPATH += \
wnnDictionary/include \
wnnEngine/include
@@ -59,3 +48,8 @@ HEADERS += \
wnnEngine/include/romkan.h \
wnnEngine/include/romkanfullkatakana.h \
wnnEngine/include/romkanhalfkatakana.h
+
+load(qt_helper_lib)
+
+CONFIG += qt
+QT = core-private
diff --git a/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro b/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro
index 9668f668..8aab0eef 100644
--- a/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro
+++ b/src/virtualkeyboard/3rdparty/pinyin/pinyin.pro
@@ -1,20 +1,9 @@
-TEMPLATE = lib
-win32: QT -= gui
-else: CONFIG -= qt
-TARGET = pinyin
+TARGET = qtpinyin
+
VERSION = 1.0.0
-CONFIG += staticlib
+CONFIG += static
CONFIG += warn_off
-build_pass {
- CONFIG(debug, debug|release): SUBPATH = debug
- else: SUBPATH = release
-} else {
- debug_and_release: CONFIG += build_all
-}
-
-DESTDIR = $$SUBPATH
-
INCLUDEPATH += \
include
@@ -59,3 +48,11 @@ HEADERS += \
OTHER_FILES +=\
data/rawdict_utf16_65105_freq.txt \
data/valid_utf16.txt
+
+load(qt_helper_lib)
+
+# On Windows, the library uses Qt for platform abstraction.
+win32 {
+ CONFIG += qt
+ QT = core
+}
diff --git a/src/virtualkeyboard/3rdparty/t9write/t9write.pro b/src/virtualkeyboard/3rdparty/t9write/t9write.pro
index 197d1015..40461ba0 100644
--- a/src/virtualkeyboard/3rdparty/t9write/t9write.pro
+++ b/src/virtualkeyboard/3rdparty/t9write/t9write.pro
@@ -1,15 +1,6 @@
-TEMPLATE = lib
-CONFIG += staticlib
-TARGET = t9write_db
+TARGET = qtt9write_db
-build_pass {
- CONFIG(debug, debug|release): SUBPATH = debug
- else: SUBPATH = release
-} else {
- debug_and_release: CONFIG += build_all
-}
-
-DESTDIR = $$SUBPATH
+CONFIG += static
T9WRITE_LDBS = $$files(databases/XT9_LDBs/*.ldb)
@@ -23,3 +14,5 @@ QMAKE_RESOURCE_FLAGS += -no-compress
include(../../generateresource.pri)
RESOURCES += $$generate_resource(t9write_db.qrc, $$T9WRITE_RESOURCE_FILES)
+
+load(qt_helper_lib)
diff --git a/src/virtualkeyboard/3rdparty/tcime/tcime.pro b/src/virtualkeyboard/3rdparty/tcime/tcime.pro
index 218563a6..86755635 100644
--- a/src/virtualkeyboard/3rdparty/tcime/tcime.pro
+++ b/src/virtualkeyboard/3rdparty/tcime/tcime.pro
@@ -1,16 +1,6 @@
-TEMPLATE = lib
-QT -= gui
-TARGET = tcime
-CONFIG += staticlib
+TARGET = qttcime
-build_pass {
- CONFIG(debug, debug|release): SUBPATH = debug
- else: SUBPATH = release
-} else {
- debug_and_release: CONFIG += build_all
-}
-
-DESTDIR = $$SUBPATH
+CONFIG += static
SOURCES += \
cangjiedictionary.cpp \
@@ -31,3 +21,8 @@ HEADERS += \
OTHER_FILES += \
data/dict_cangjie.dat \
data/dict_phrases.dat
+
+load(qt_helper_lib)
+
+CONFIG += qt
+QT = core