summaryrefslogtreecommitdiffstats
path: root/src/tools/qwebengine_convert_dict/qwebengine_convert_dict.pro
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2016-04-19 19:32:51 +0200
committerMichal Klocek <michal.klocek@theqtcompany.com>2016-05-06 10:38:37 +0000
commit580797d1f27bd4bdcac874ab06d2b67a491b50e3 (patch)
tree20b67fcef37506a1d4044556f4be00b7a74769ae /src/tools/qwebengine_convert_dict/qwebengine_convert_dict.pro
parent217051d71c0bf424144f3412b10e4aaec3521689 (diff)
Adds qwebengine_convert_dict tool
This is a tool which converts hunspell 'dic' dictionaries to binary 'bdic' format, which is required by spellchecker in chromium. Tool is compiled as a qt console application. It reuses linking information produced by gyp. This tool cannot be used in cross-builds due to limitations of the gyp-based build system. Change-Id: Ibee8cbc6048b522c0e4fe22b21c91c649c8515bc Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/tools/qwebengine_convert_dict/qwebengine_convert_dict.pro')
-rw-r--r--src/tools/qwebengine_convert_dict/qwebengine_convert_dict.pro22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tools/qwebengine_convert_dict/qwebengine_convert_dict.pro b/src/tools/qwebengine_convert_dict/qwebengine_convert_dict.pro
new file mode 100644
index 000000000..de125cc76
--- /dev/null
+++ b/src/tools/qwebengine_convert_dict/qwebengine_convert_dict.pro
@@ -0,0 +1,22 @@
+option(host_build)
+
+# Look for linking information produced by gyp for our target according to core_generated.gyp
+!include($$OUT_PWD/../../core/$$getConfigDir()/QtWebEngineCore_linking.pri) {
+ error("Could not find the linking information that gyp should have generated.")
+}
+# remove object files from linking information
+OBJECTS =
+
+# Fixme: -Werror=unused-parameter in core
+QMAKE_CXXFLAGS_WARN_ON =
+
+# Issue with some template compliation, smb smart should look at it
+win32: DEFINES += NOMINMAX
+
+CHROMIUM_SRC_DIR = $$QTWEBENGINE_ROOT/$$getChromiumSrcDir()
+INCLUDEPATH += $$CHROMIUM_SRC_DIR
+
+SOURCES += \
+ main.cpp
+
+load(qt_tool)