Add cld2_table_size variable to GN build.

This variable has been in common.gypi for some time, but was missing from GN.

BUG=528257

Review URL: https://codereview.chromium.org/1306053014

Cr-Original-Commit-Position: refs/heads/master@{#347576}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b32a1daf9763b66e7f12a3e88e4b526589dd8479
This commit is contained in:
andrewhayden 2015-09-05 13:58:36 -07:00 коммит произвёл Commit bot
Родитель 8dcb4e3077
Коммит f011842875
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -564,8 +564,8 @@
# For CLD2, the size of the tables that should be included in the build # For CLD2, the size of the tables that should be included in the build
# Only evaluated if cld_version == 2. # Only evaluated if cld_version == 2.
# See third_party/cld_2/cld_2.gyp for more information. # See third_party/cld_2/cld_2.gyp for more information.
# 0: Small tables, lower accuracy # 0: Small tables, high accuracy
# 2: Large tables, high accuracy # 2: Large tables, higher accuracy
'cld2_table_size%': 2, 'cld2_table_size%': 2,
# Enable spell checker. # Enable spell checker.

Просмотреть файл

@ -129,6 +129,12 @@ declare_args() {
# 2: Use only CLD2. # 2: Use only CLD2.
cld_version = 2 cld_version = 2
if (is_android || is_ios) {
cld2_table_size = 0 # Small, accurate tables
} else {
cld2_table_size = 2 # Larger, more accurate tables
}
# libudev usage. This currently only affects the content layer. # libudev usage. This currently only affects the content layer.
use_udev = is_linux use_udev = is_linux