aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJarkko Koivikko <jarkko.koivikko@code-q.fi>2016-05-01 22:37:01 +0300
committerJarkko Koivikko <jarkko.koivikko@code-q.fi>2016-05-02 15:17:09 +0000
commit0c70872a81aab39465606ab37333caf55064482a (patch)
tree869f780f6449b1a8b19295fcb93a00999f313918 /src
parenta68ca6c6c011fe4891015ad7c920c2247b8286c4 (diff)
Fix hunspell build for Windows targets
Static build requires HUNSPELL_STATIC for correct linkage. Change-Id: I5ed7b1c40d7f3a4af82d997acdcda6f6d785f745 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/virtualkeyboard/3rdparty/hunspell/hunspell.pro2
-rw-r--r--src/virtualkeyboard/virtualkeyboard.pro2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro b/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro
index 93bdb2c4..a5056e82 100644
--- a/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro
+++ b/src/virtualkeyboard/3rdparty/hunspell/hunspell.pro
@@ -1,6 +1,6 @@
TARGET = qthunspell
-DEFINES += BUILDING_LIBHUNSPELL
+DEFINES += HUNSPELL_STATIC
CONFIG += static
CONFIG += precompile_header warn_off
CONFIG(debug, debug|release) {
diff --git a/src/virtualkeyboard/virtualkeyboard.pro b/src/virtualkeyboard/virtualkeyboard.pro
index 5152999f..39003ab2 100644
--- a/src/virtualkeyboard/virtualkeyboard.pro
+++ b/src/virtualkeyboard/virtualkeyboard.pro
@@ -215,7 +215,7 @@ qtquickcompiler: DEFINES += COMPILING_QML
exists(3rdparty/hunspell/src/hunspell/hunspell.h) {
SOURCES += hunspellinputmethod.cpp hunspellinputmethod_p.cpp hunspellworker.cpp
HEADERS += hunspellinputmethod.h hunspellinputmethod_p.h hunspellworker.h
- DEFINES += HAVE_HUNSPELL
+ DEFINES += HAVE_HUNSPELL HUNSPELL_STATIC
INCLUDEPATH += 3rdparty/hunspell/src
LIBS += -L$$OUT_PWD/../../lib -lqthunspell$$qtPlatformTargetSuffix()
exists(3rdparty/hunspell/data) {