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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Note to maintainers: In the January 2014 release (*_0122*), there are some 5 # Note to maintainers: In the January 2014 release (*_0122*), there are some
6 # options for building: 6 # options for building:
7 # Pick one quadgram file (cld2_generated_quadchrome*.cc): 7 # Pick one quadgram file (cld2_generated_quadchrome*.cc):
8 # 0122_16 = 160K entries, smallest size, lowest accuracy 8 # 0122_16 = 160K entries, smallest size, lowest accuracy (set cld2_table_size= 0)
9 # 0122_19 = 192K entries, medium size, medium accuracy 9 # 0122_19 = 192K entries, medium size, medium accuracy (set cld2_table_size=1)
10 # 0122_2 = 256K entries, largest size, highest accuracy 10 # 0122_2 = 256K entries, largest size, highest accuracy (set cld2_table_size= 2)
11 # 11 #
12 # For the CJK bigram file (cld_generated_cjk_delta_bi*.cc), always use 12 # For the CJK bigram file (cld_generated_cjk_delta_bi*.cc), always use
13 # cld_generated_cjk_delta_bi_4.cc, as this is intended for use with Chromium. 13 # cld_generated_cjk_delta_bi_4.cc, as this is intended for use with Chromium.
14 # The _32 variant of the file is intended for applications that use the full 14 # The _32 variant of the file is intended for applications that use the full
15 # 175-language version of CLD2. 15 # 175-language version of CLD2.
16 16
17 { 17 {
18 'targets': [ 18 'targets': [
19 { 19 {
20 'target_name': 'cld_2', 20 'target_name': 'cld_2',
21 'type': 'static_library', 21 'type': 'static_library',
22 'include_dirs': [ 22 'include_dirs': [
23 'src/internal', 23 'src/internal',
24 'src/public', 24 'src/public',
25 ], 25 ],
26 'sources': [ 26 'sources': [
27 'src/internal/cld2_generated_cjk_compatible.cc', 27 'src/internal/cld2_generated_cjk_compatible.cc',
28 'src/internal/cld2_generated_deltaoctachrome0122.cc', 28 'src/internal/cld2_generated_deltaoctachrome0122.cc',
29 'src/internal/cld2_generated_distinctoctachrome0122.cc', 29 'src/internal/cld2_generated_distinctoctachrome0122.cc',
30 'src/internal/cld2_generated_quadchrome0122_2.cc',
31 'src/internal/cld2tablesummary.h', 30 'src/internal/cld2tablesummary.h',
32 'src/internal/cld_generated_cjk_delta_bi_4.cc', 31 'src/internal/cld_generated_cjk_delta_bi_4.cc',
33 'src/internal/cld_generated_cjk_uni_prop_80.cc', 32 'src/internal/cld_generated_cjk_uni_prop_80.cc',
34 'src/internal/cld_generated_score_quad_octa_0122_2.cc', 33 'src/internal/cld_generated_score_quad_octa_0122_2.cc',
35 'src/internal/cldutil.cc', 34 'src/internal/cldutil.cc',
36 'src/internal/cldutil.h', 35 'src/internal/cldutil.h',
37 'src/internal/cldutil_shared.cc', 36 'src/internal/cldutil_shared.cc',
38 'src/internal/cldutil_shared.h', 37 'src/internal/cldutil_shared.h',
39 'src/internal/compact_lang_det.cc', 38 'src/internal/compact_lang_det.cc',
40 'src/internal/compact_lang_det_hint_code.cc', 39 'src/internal/compact_lang_det_hint_code.cc',
(...skipping 29 matching lines...) Expand all
70 'src/internal/utf8scannot_lettermarkspecial.h', 69 'src/internal/utf8scannot_lettermarkspecial.h',
71 'src/internal/utf8statetable.cc', 70 'src/internal/utf8statetable.cc',
72 'src/internal/utf8statetable.h', 71 'src/internal/utf8statetable.h',
73 'src/public/compact_lang_det.h', 72 'src/public/compact_lang_det.h',
74 'src/public/encodings.h', 73 'src/public/encodings.h',
75 ], 74 ],
76 'conditions': [ 75 'conditions': [
77 ['OS=="win"', { 76 ['OS=="win"', {
78 'msvs_disabled_warnings': [4267], 77 'msvs_disabled_warnings': [4267],
79 }], 78 }],
79 ['cld2_table_size==0', {
80 # Small table sizes
81 'sources+': [
82 'src/internal/cld2_generated_quadchrome0122_16.cc',
83 ],
84 }],
85 ['cld2_table_size==1', {
86 # Medium table sizes
87 'sources+': [
88 'src/internal/cld2_generated_quadchrome0122_19.cc',
89 ],
90 }],
91 ['cld2_table_size==2', {
92 # Large table sizes
93 'sources+': [
94 'src/internal/cld2_generated_quadchrome0122_2.cc',
95 ],
96 }],
80 ], 97 ],
81 }, 98 },
82 ], 99 ],
83 } 100 }
OLDNEW
« 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