Chromium Code Reviews| Index: build/common.gypi |
| diff --git a/build/common.gypi b/build/common.gypi |
| index d4a8ea2840b185fa1afa2007722ccacbd40bdc21..38410bf2985ba18e44a7ceb260ef5d69052f9688 100644 |
| --- a/build/common.gypi |
| +++ b/build/common.gypi |
| @@ -430,6 +430,11 @@ |
| # 2: Use only CLD2. |
| 'cld_version%': 2, |
| + # Set the way CLD is compiled |
| + # 0: static, language scoring tables compiled into the binary |
| + # 1: dynamic, language scoring tables live in a data file that must be loaded at runtime |
| + 'cld_dynamic%': 1, |
| + |
| # Enable spell checker. |
| 'enable_spellcheck%': 1, |
| @@ -620,7 +625,12 @@ |
| 'enable_automation%': 0, |
| 'enable_extensions%': 0, |
| 'enable_google_now%': 0, |
| - 'cld_version%': 1, |
| + # 'cld_version%': 1, |
| + # to switch to dynamic CLD2: |
| + # 'cld_version%': 2, |
| + # 'cld_dynamic%': 1, |
| + 'cld_version%': 2, |
| + 'cld_dynamic%': 1, |
|
Andrew Hayden (chromium.org)
2014/03/11 17:03:10
Make sure to disable dynamic mode on all platforms
|
| 'enable_spellcheck%': 0, |
| 'enable_themes%': 0, |
| 'remoting%': 0, |
| @@ -664,6 +674,7 @@ |
| 'enable_extensions%': 0, |
| 'enable_google_now%': 0, |
| 'cld_version%': 1, |
| + 'cld_dynamic%': 0, |
| 'enable_printing%': 0, |
| 'enable_session_service%': 0, |
| 'enable_themes%': 0, |
| @@ -961,6 +972,7 @@ |
| 'enable_spellcheck%': '<(enable_spellcheck)', |
| 'enable_google_now%': '<(enable_google_now)', |
| 'cld_version%': '<(cld_version)', |
| + 'cld_dynamic%': '<(cld_dynamic)', |
| 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', |
| 'disable_ftp_support%': '<(disable_ftp_support)', |
| 'enable_task_manager%': '<(enable_task_manager)', |
| @@ -2445,6 +2457,9 @@ |
| ['cld_version!=0', { |
| 'defines': ['CLD_VERSION=<(cld_version)'], |
| }], |
| + ['cld_dynamic!=0', { |
| + 'defines': ['CLD2_DYNAMIC_MODE=1'], |
| + }], |
| ['enable_printing==1', { |
| 'defines': ['ENABLE_FULL_PRINTING=1', 'ENABLE_PRINTING=1'], |
| }], |