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

Side by Side Diff: third_party/cld_2/cld_2.gyp

Issue 382663002: Add components and CLD to GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: android Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « third_party/cld_2/BUILD.gn ('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 (set cld2_table_size= 0) 8 # 0122_16 = 160K entries, smallest size, lowest accuracy (set cld2_table_size= 0)
9 # 0122_19 = 192K entries, medium size, medium accuracy (set cld2_table_size=1) 9 # 0122_19 = 192K entries, medium size, medium accuracy (set cld2_table_size=1)
10 # 0122_2 = 256K entries, largest size, highest accuracy (set cld2_table_size= 2) 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 # GN version: //third_party/cld_2:cld_2_dynamic_data_tool
20 'target_name': 'cld_2_dynamic_data_tool', 21 'target_name': 'cld_2_dynamic_data_tool',
21 'type': 'executable', 22 'type': 'executable',
22 'include_dirs': [ 23 'include_dirs': [
23 'src/internal', 24 'src/internal',
24 'src/public', 25 'src/public',
25 ], 26 ],
26 'sources': [ 27 'sources': [
28 # Note: sources list duplicated in GN build.
27 'src/internal/cld2_dynamic_data.h', 29 'src/internal/cld2_dynamic_data.h',
28 'src/internal/cld2_dynamic_data.cc', 30 'src/internal/cld2_dynamic_data.cc',
29 'src/internal/cld2_dynamic_data_extractor.h', 31 'src/internal/cld2_dynamic_data_extractor.h',
30 'src/internal/cld2_dynamic_data_extractor.cc', 32 'src/internal/cld2_dynamic_data_extractor.cc',
31 'src/internal/cld2_dynamic_data_loader.h', 33 'src/internal/cld2_dynamic_data_loader.h',
32 'src/internal/cld2_dynamic_data_loader.cc', 34 'src/internal/cld2_dynamic_data_loader.cc',
33 'src/internal/cld2_dynamic_data_tool.cc', 35 'src/internal/cld2_dynamic_data_tool.cc',
34 'src/internal/cld2_generated_cjk_compatible.cc', 36 'src/internal/cld2_generated_cjk_compatible.cc',
35 'src/internal/cld2_generated_deltaoctachrome0122.cc', 37 'src/internal/cld2_generated_deltaoctachrome0122.cc',
36 'src/internal/cld2_generated_distinctoctachrome0122.cc', 38 'src/internal/cld2_generated_distinctoctachrome0122.cc',
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 }], 99 }],
98 ['cld2_table_size==2', { 100 ['cld2_table_size==2', {
99 # Large table sizes 101 # Large table sizes
100 'sources+': [ 102 'sources+': [
101 'src/internal/cld2_generated_quadchrome0122_2.cc', 103 'src/internal/cld2_generated_quadchrome0122_2.cc',
102 ], 104 ],
103 }], 105 }],
104 ], 106 ],
105 }, 107 },
106 { 108 {
109 # GN version: //third_party/cld_2
107 'target_name': 'cld_2', 110 'target_name': 'cld_2',
108 'type': 'static_library', 111 'type': 'static_library',
109 'include_dirs': [ 112 'include_dirs': [
110 'src/internal', 113 'src/internal',
111 'src/public', 114 'src/public',
112 ], 115 ],
113 'sources': [ 116 'sources': [
117 # Note: sources list duplicated in GN build.
114 'src/internal/cld2tablesummary.h', 118 'src/internal/cld2tablesummary.h',
115 'src/internal/cldutil.cc', 119 'src/internal/cldutil.cc',
116 'src/internal/cldutil.h', 120 'src/internal/cldutil.h',
117 'src/internal/cldutil_shared.cc', 121 'src/internal/cldutil_shared.cc',
118 'src/internal/cldutil_shared.h', 122 'src/internal/cldutil_shared.h',
119 'src/internal/compact_lang_det.cc', 123 'src/internal/compact_lang_det.cc',
120 'src/internal/compact_lang_det_hint_code.cc', 124 'src/internal/compact_lang_det_hint_code.cc',
121 'src/internal/compact_lang_det_hint_code.h', 125 'src/internal/compact_lang_det_hint_code.h',
122 'src/internal/compact_lang_det_impl.cc', 126 'src/internal/compact_lang_det_impl.cc',
123 'src/internal/compact_lang_det_impl.h', 127 'src/internal/compact_lang_det_impl.h',
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 'src/internal/cld2_generated_quadchrome0122_2.cc', 206 'src/internal/cld2_generated_quadchrome0122_2.cc',
203 ], 207 ],
204 }], 208 }],
205 ], 209 ],
206 }, 210 },
207 ], 211 ],
208 ], 212 ],
209 }, 213 },
210 ], 214 ],
211 } 215 }
OLDNEW
« no previous file with comments | « third_party/cld_2/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698