Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(715)

Unified Diff: third_party/cld_2/cld_2.gyp

Issue 203073007: Add a switch to control which CLD2 tables are used at build time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/cld_2/cld_2.gyp
diff --git a/third_party/cld_2/cld_2.gyp b/third_party/cld_2/cld_2.gyp
index d0122f18553301dabc9317e30ef69f8084cff77a..9b7fbdfcadca6b5dbc74ef30df9c46e8635f2822 100644
--- a/third_party/cld_2/cld_2.gyp
+++ b/third_party/cld_2/cld_2.gyp
@@ -5,9 +5,9 @@
# Note to maintainers: In the January 2014 release (*_0122*), there are some
# options for building:
# Pick one quadgram file (cld2_generated_quadchrome*.cc):
-# 0122_16 = 160K entries, smallest size, lowest accuracy
-# 0122_19 = 192K entries, medium size, medium accuracy
-# 0122_2 = 256K entries, largest size, highest accuracy
+# 0122_16 = 160K entries, smallest size, lowest accuracy (set cld2_table_size=0)
+# 0122_19 = 192K entries, medium size, medium accuracy (set cld2_table_size=1)
+# 0122_2 = 256K entries, largest size, highest accuracy (set cld2_table_size=2)
#
# For the CJK bigram file (cld_generated_cjk_delta_bi*.cc), always use
# cld_generated_cjk_delta_bi_4.cc, as this is intended for use with Chromium.
@@ -27,7 +27,6 @@
'src/internal/cld2_generated_cjk_compatible.cc',
'src/internal/cld2_generated_deltaoctachrome0122.cc',
'src/internal/cld2_generated_distinctoctachrome0122.cc',
- 'src/internal/cld2_generated_quadchrome0122_2.cc',
'src/internal/cld2tablesummary.h',
'src/internal/cld_generated_cjk_delta_bi_4.cc',
'src/internal/cld_generated_cjk_uni_prop_80.cc',
@@ -77,6 +76,24 @@
['OS=="win"', {
'msvs_disabled_warnings': [4267],
}],
+ ['cld2_table_size==0', {
+ # Small table sizes
+ 'sources+': [
+ 'src/internal/cld2_generated_quadchrome0122_16.cc',
+ ],
+ }],
+ ['cld2_table_size==1', {
+ # Medium table sizes
+ 'sources+': [
+ 'src/internal/cld2_generated_quadchrome0122_19.cc',
+ ],
+ }],
+ ['cld2_table_size==2', {
+ # Large table sizes
+ 'sources+': [
+ 'src/internal/cld2_generated_quadchrome0122_2.cc',
+ ],
+ }],
],
},
],
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698