OLD | NEW |
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 { | 5 { |
6 'targets': [ | 6 'targets': [ |
7 { | 7 { |
| 8 # GN version: //components/translate/core/browser |
8 'target_name': 'translate_core_browser', | 9 'target_name': 'translate_core_browser', |
9 'type': 'static_library', | 10 'type': 'static_library', |
10 'dependencies': [ | 11 'dependencies': [ |
11 '../base/base.gyp:base', | 12 '../base/base.gyp:base', |
12 '../base/base.gyp:base_i18n', | 13 '../base/base.gyp:base_i18n', |
13 '../google_apis/google_apis.gyp:google_apis', | 14 '../google_apis/google_apis.gyp:google_apis', |
14 '../net/net.gyp:net', | 15 '../net/net.gyp:net', |
15 '../ui/base/ui_base.gyp:ui_base', | 16 '../ui/base/ui_base.gyp:ui_base', |
16 '../url/url.gyp:url_lib', | 17 '../url/url.gyp:url_lib', |
17 'components_resources.gyp:components_resources', | 18 'components_resources.gyp:components_resources', |
18 'components_strings.gyp:components_strings', | 19 'components_strings.gyp:components_strings', |
19 'infobars_core', | 20 'infobars_core', |
20 'language_usage_metrics', | 21 'language_usage_metrics', |
21 'pref_registry', | 22 'pref_registry', |
22 'translate_core_common', | 23 'translate_core_common', |
23 ], | 24 ], |
24 'include_dirs': [ | 25 'include_dirs': [ |
25 '..', | 26 '..', |
26 ], | 27 ], |
27 'sources': [ | 28 'sources': [ |
| 29 # Note: sources list duplicated in GN build. |
28 'translate/core/browser/language_state.cc', | 30 'translate/core/browser/language_state.cc', |
29 'translate/core/browser/language_state.h', | 31 'translate/core/browser/language_state.h', |
30 'translate/core/browser/options_menu_model.cc', | 32 'translate/core/browser/options_menu_model.cc', |
31 'translate/core/browser/options_menu_model.h', | 33 'translate/core/browser/options_menu_model.h', |
32 'translate/core/browser/page_translated_details.h', | 34 'translate/core/browser/page_translated_details.h', |
33 'translate/core/browser/translate_accept_languages.cc', | 35 'translate/core/browser/translate_accept_languages.cc', |
34 'translate/core/browser/translate_accept_languages.h', | 36 'translate/core/browser/translate_accept_languages.h', |
35 'translate/core/browser/translate_browser_metrics.cc', | 37 'translate/core/browser/translate_browser_metrics.cc', |
36 'translate/core/browser/translate_browser_metrics.h', | 38 'translate/core/browser/translate_browser_metrics.h', |
37 'translate/core/browser/translate_client.h', | 39 'translate/core/browser/translate_client.h', |
(...skipping 16 matching lines...) Expand all Loading... |
54 'translate/core/browser/translate_step.h', | 56 'translate/core/browser/translate_step.h', |
55 'translate/core/browser/translate_ui_delegate.cc', | 57 'translate/core/browser/translate_ui_delegate.cc', |
56 'translate/core/browser/translate_ui_delegate.h', | 58 'translate/core/browser/translate_ui_delegate.h', |
57 'translate/core/browser/translate_url_fetcher.cc', | 59 'translate/core/browser/translate_url_fetcher.cc', |
58 'translate/core/browser/translate_url_fetcher.h', | 60 'translate/core/browser/translate_url_fetcher.h', |
59 'translate/core/browser/translate_url_util.cc', | 61 'translate/core/browser/translate_url_util.cc', |
60 'translate/core/browser/translate_url_util.h', | 62 'translate/core/browser/translate_url_util.h', |
61 ], | 63 ], |
62 }, | 64 }, |
63 { | 65 { |
| 66 # GN version: //components/translate/core/common |
64 'target_name': 'translate_core_common', | 67 'target_name': 'translate_core_common', |
65 'type': 'static_library', | 68 'type': 'static_library', |
66 'dependencies': [ | 69 'dependencies': [ |
67 '../base/base.gyp:base', | 70 '../base/base.gyp:base', |
68 '../url/url.gyp:url_lib', | 71 '../url/url.gyp:url_lib', |
69 ], | 72 ], |
70 'include_dirs': [ | 73 'include_dirs': [ |
71 '..', | 74 '..', |
72 ], | 75 ], |
73 'sources': [ | 76 'sources': [ |
| 77 # Note: sources list duplicated in GN build. |
74 'translate/core/common/translate_constants.cc', | 78 'translate/core/common/translate_constants.cc', |
75 'translate/core/common/translate_constants.h', | 79 'translate/core/common/translate_constants.h', |
76 'translate/core/common/translate_errors.h', | 80 'translate/core/common/translate_errors.h', |
77 'translate/core/common/translate_metrics.cc', | 81 'translate/core/common/translate_metrics.cc', |
78 'translate/core/common/translate_metrics.h', | 82 'translate/core/common/translate_metrics.h', |
79 'translate/core/common/translate_pref_names.cc', | 83 'translate/core/common/translate_pref_names.cc', |
80 'translate/core/common/translate_pref_names.h', | 84 'translate/core/common/translate_pref_names.h', |
81 'translate/core/common/translate_switches.cc', | 85 'translate/core/common/translate_switches.cc', |
82 'translate/core/common/translate_switches.h', | 86 'translate/core/common/translate_switches.h', |
83 'translate/core/common/translate_util.cc', | 87 'translate/core/common/translate_util.cc', |
84 'translate/core/common/translate_util.h', | 88 'translate/core/common/translate_util.h', |
85 'translate/core/common/language_detection_details.cc', | 89 'translate/core/common/language_detection_details.cc', |
86 'translate/core/common/language_detection_details.h', | 90 'translate/core/common/language_detection_details.h', |
87 ], | 91 ], |
88 }, | 92 }, |
89 { | 93 { |
| 94 # GN version: //components/translate/core/language_detection |
90 'target_name': 'translate_core_language_detection', | 95 'target_name': 'translate_core_language_detection', |
91 'type': 'static_library', | 96 'type': 'static_library', |
92 'dependencies': [ | 97 'dependencies': [ |
93 'translate_core_common', | 98 'translate_core_common', |
94 '../base/base.gyp:base', | 99 '../base/base.gyp:base', |
95 '../url/url.gyp:url_lib', | 100 '../url/url.gyp:url_lib', |
96 ], | 101 ], |
97 'include_dirs': [ | 102 'include_dirs': [ |
98 '..', | 103 '..', |
99 ], | 104 ], |
100 'sources': [ | 105 'sources': [ |
| 106 # Note: sources list duplicated in GN build. |
101 'translate/core/language_detection/language_detection_util.cc', | 107 'translate/core/language_detection/language_detection_util.cc', |
102 'translate/core/language_detection/language_detection_util.h', | 108 'translate/core/language_detection/language_detection_util.h', |
103 ], | 109 ], |
104 'conditions': [ | 110 'conditions': [ |
105 ['cld_version==0 or cld_version==1', { | 111 ['cld_version==0 or cld_version==1', { |
106 'dependencies': [ | 112 'dependencies': [ |
107 '<(DEPTH)/third_party/cld/cld.gyp:cld', | 113 '<(DEPTH)/third_party/cld/cld.gyp:cld', |
108 ], | 114 ], |
109 }], | 115 }], |
110 ['cld_version==0 or cld_version==2', { | 116 ['cld_version==0 or cld_version==2', { |
111 'dependencies': [ | 117 'dependencies': [ |
112 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', | 118 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', |
113 ], | 119 ], |
114 }], | 120 }], |
115 ], | 121 ], |
116 }, | 122 }, |
117 ], | 123 ], |
118 'conditions': [ | 124 'conditions': [ |
119 ['OS != "ios"', { | 125 ['OS != "ios"', { |
120 'targets': [ | 126 'targets': [ |
121 { | 127 { |
| 128 # GN version: //components/translate/content/browser |
122 'target_name': 'translate_content_browser', | 129 'target_name': 'translate_content_browser', |
123 'type': 'static_library', | 130 'type': 'static_library', |
124 'dependencies': [ | 131 'dependencies': [ |
125 'translate_core_browser', | 132 'translate_core_browser', |
126 '../base/base.gyp:base', | 133 '../base/base.gyp:base', |
127 '../content/content.gyp:content_browser', | 134 '../content/content.gyp:content_browser', |
128 ], | 135 ], |
129 'include_dirs': [ | 136 'include_dirs': [ |
130 '..', | 137 '..', |
131 ], | 138 ], |
132 'sources': [ | 139 'sources': [ |
| 140 # Note: sources list duplicated in GN build. |
133 'translate/content/browser/browser_cld_data_provider.h', | 141 'translate/content/browser/browser_cld_data_provider.h', |
134 'translate/content/browser/content_translate_driver.cc', | 142 'translate/content/browser/content_translate_driver.cc', |
135 'translate/content/browser/content_translate_driver.h', | 143 'translate/content/browser/content_translate_driver.h', |
136 ], | 144 ], |
137 'conditions': [ | 145 'conditions': [ |
138 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ | 146 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ |
139 'sources': [ | 147 'sources': [ |
140 'translate/content/browser/data_file_browser_cld_data_provider.c
c', | 148 'translate/content/browser/data_file_browser_cld_data_provider.c
c', |
141 'translate/content/browser/data_file_browser_cld_data_provider.h
', | 149 'translate/content/browser/data_file_browser_cld_data_provider.h
', |
142 ]}, | 150 ]}, |
143 ], | 151 ], |
144 ['cld2_data_source=="static"', { | 152 ['cld2_data_source=="static"', { |
145 'sources': [ | 153 'sources': [ |
146 'translate/content/browser/static_browser_cld_data_provider.cc', | 154 'translate/content/browser/static_browser_cld_data_provider.cc', |
147 'translate/content/browser/static_browser_cld_data_provider.h', | 155 'translate/content/browser/static_browser_cld_data_provider.h', |
148 ]}, | 156 ]}, |
149 ], | 157 ], |
150 ], | 158 ], |
151 }, | 159 }, |
152 { | 160 { |
| 161 # GN version: //components/translate/content/common |
153 'target_name': 'translate_content_common', | 162 'target_name': 'translate_content_common', |
154 'type': 'static_library', | 163 'type': 'static_library', |
155 'dependencies': [ | 164 'dependencies': [ |
156 'translate_core_common', | 165 'translate_core_common', |
157 'translate_core_language_detection', | 166 'translate_core_language_detection', |
158 '../base/base.gyp:base', | 167 '../base/base.gyp:base', |
159 '../content/content.gyp:content_common', | 168 '../content/content.gyp:content_common', |
160 '../ipc/ipc.gyp:ipc', | 169 '../ipc/ipc.gyp:ipc', |
161 ], | 170 ], |
162 'include_dirs': [ | 171 'include_dirs': [ |
163 '..', | 172 '..', |
164 ], | 173 ], |
165 'sources': [ | 174 'sources': [ |
| 175 # Note: sources list duplicated in GN build. |
166 'translate/content/common/translate_messages.cc', | 176 'translate/content/common/translate_messages.cc', |
167 'translate/content/common/translate_messages.h', | 177 'translate/content/common/translate_messages.h', |
168 ], | 178 ], |
169 'conditions': [ | 179 'conditions': [ |
170 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ | 180 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ |
171 'sources': [ | 181 'sources': [ |
172 'translate/content/common/data_file_cld_data_provider_messages.
cc', | 182 'translate/content/common/data_file_cld_data_provider_messages.
cc', |
173 'translate/content/common/data_file_cld_data_provider_messages.
h', | 183 'translate/content/common/data_file_cld_data_provider_messages.
h', |
174 ]}, | 184 ]}, |
175 ], | 185 ], |
176 ], | 186 ], |
177 }, | 187 }, |
178 { | 188 { |
| 189 # GN version: //components/translate/content/renderer |
179 'target_name': 'translate_content_renderer', | 190 'target_name': 'translate_content_renderer', |
180 'type': 'static_library', | 191 'type': 'static_library', |
181 'dependencies': [ | 192 'dependencies': [ |
182 '../base/base.gyp:base', | 193 '../base/base.gyp:base', |
183 '../content/content.gyp:content_common', | 194 '../content/content.gyp:content_common', |
184 '../ipc/ipc.gyp:ipc', | 195 '../ipc/ipc.gyp:ipc', |
185 ], | 196 ], |
186 'include_dirs': [ | 197 'include_dirs': [ |
187 '..', | 198 '..', |
188 ], | 199 ], |
189 'sources': [ | 200 'sources': [ |
| 201 # Note: sources list duplicated in GN build. |
190 'translate/content/renderer/renderer_cld_data_provider.h', | 202 'translate/content/renderer/renderer_cld_data_provider.h', |
191 ], | 203 ], |
192 'conditions': [ | 204 'conditions': [ |
193 ['cld_version==0 or cld_version==2', { | 205 ['cld_version==0 or cld_version==2', { |
194 'dependencies': [ | 206 'dependencies': [ |
195 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', | 207 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2', |
196 ], | 208 ], |
197 }], | 209 }], |
198 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ | 210 ['cld2_data_source=="standalone" or cld2_data_source=="component"',
{ |
199 'sources': [ | 211 'sources': [ |
200 'translate/content/renderer/data_file_renderer_cld_data_provider
.cc', | 212 'translate/content/renderer/data_file_renderer_cld_data_provider
.cc', |
201 'translate/content/renderer/data_file_renderer_cld_data_provider
.h', | 213 'translate/content/renderer/data_file_renderer_cld_data_provider
.h', |
202 ]}, | 214 ]}, |
203 ], | 215 ], |
204 ['cld2_data_source=="static"', { | 216 ['cld2_data_source=="static"', { |
205 'sources': [ | 217 'sources': [ |
206 'translate/content/renderer/static_renderer_cld_data_provider.cc
', | 218 'translate/content/renderer/static_renderer_cld_data_provider.cc
', |
207 'translate/content/renderer/static_renderer_cld_data_provider.h'
, | 219 'translate/content/renderer/static_renderer_cld_data_provider.h'
, |
208 ]}, | 220 ]}, |
209 ], | 221 ], |
210 ], | 222 ], |
211 }, | 223 }, |
212 ], | 224 ], |
213 }], | 225 }], |
214 ], | 226 ], |
215 } | 227 } |
OLD | NEW |