diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2016-09-09 17:09:42 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2016-10-17 16:38:34 +0000 |
commit | 7b7c9cb4183651b496501e89deb497490199b320 (patch) | |
tree | 8f75ba32ab826cfd5c1d689c24ca88f20520c50f /src/core/gyp_run.pro | |
parent | 1eb814230515ffb3417e0ac9533fc24847c1ebb9 (diff) |
Fix spellchecking for macOS
The change fixes spellchecking to work on macOS.
A new WebEngine configure option is available to allow spellchecking on
macOS to use either Hunspell like the other platforms, or the native
spellchecker that comes with the OS. The default is to use Hunspell.
Task-number: QTBUG-53135
Change-Id: I3e45b2e0d728b1bf2659c35f3d0a042b0ecd6239
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'src/core/gyp_run.pro')
-rw-r--r-- | src/core/gyp_run.pro | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/gyp_run.pro b/src/core/gyp_run.pro index 89b751c4a..1c62c0cfd 100644 --- a/src/core/gyp_run.pro +++ b/src/core/gyp_run.pro @@ -124,10 +124,16 @@ contains(WEBENGINE_CONFIG, reduce_binary_size): GYP_CONFIG += release_optimize=s contains(WEBENGINE_CONFIG, no_spellcheck): { GYP_CONFIG += enable_spellcheck=0 - osx: GYP_CONFIG += use_browser_spellchecker=0 + macos: GYP_CONFIG += use_browser_spellchecker=0 } else { GYP_CONFIG += enable_spellcheck=1 - osx: GYP_CONFIG += use_browser_spellchecker=1 + macos { + contains(WEBENGINE_CONFIG, use_native_spellchecker) { + GYP_CONFIG += use_browser_spellchecker=1 + } else { + GYP_CONFIG += use_browser_spellchecker=0 + } + } } !qtConfig(framework):qtConfig(private_tests) { |