Add testing/scripts/OWNERS
[chromium-blink-merge.git] / components / translate.gypi
blob2be7c32b260b5c2572df056059aff93081886d65
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
3 # found in the LICENSE file.
6   'targets': [
7     {
8       # GN version: //components/translate/core/browser
9       'target_name': 'translate_core_browser',
10       'type': 'static_library',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../base/base.gyp:base_i18n',
14         '../google_apis/google_apis.gyp:google_apis',
15         '../net/net.gyp:net',
16         '../ui/base/ui_base.gyp:ui_base',
17         '../url/url.gyp:url_lib',
18         'components_resources.gyp:components_resources',
19         'components_strings.gyp:components_strings',
20         'infobars_core',
21         'language_usage_metrics',
22         'pref_registry',
23         'translate_core_common',
24       ],
25       'include_dirs': [
26         '..',
27       ],
28       'sources': [
29         # Note: sources list duplicated in GN build.
30         'translate/core/browser/language_state.cc',
31         'translate/core/browser/language_state.h',
32         'translate/core/browser/options_menu_model.cc',
33         'translate/core/browser/options_menu_model.h',
34         'translate/core/browser/page_translated_details.h',
35         'translate/core/browser/translate_accept_languages.cc',
36         'translate/core/browser/translate_accept_languages.h',
37         'translate/core/browser/translate_browser_metrics.cc',
38         'translate/core/browser/translate_browser_metrics.h',
39         'translate/core/browser/translate_client.h',
40         'translate/core/browser/translate_download_manager.cc',
41         'translate/core/browser/translate_download_manager.h',
42         'translate/core/browser/translate_driver.h',
43         'translate/core/browser/translate_error_details.h',
44         'translate/core/browser/translate_event_details.cc',
45         'translate/core/browser/translate_event_details.h',
46         'translate/core/browser/translate_infobar_delegate.cc',
47         'translate/core/browser/translate_infobar_delegate.h',
48         'translate/core/browser/translate_language_list.cc',
49         'translate/core/browser/translate_language_list.h',
50         'translate/core/browser/translate_manager.cc',
51         'translate/core/browser/translate_manager.h',
52         'translate/core/browser/translate_prefs.cc',
53         'translate/core/browser/translate_prefs.h',
54         'translate/core/browser/translate_script.cc',
55         'translate/core/browser/translate_script.h',
56         'translate/core/browser/translate_step.h',
57         'translate/core/browser/translate_ui_delegate.cc',
58         'translate/core/browser/translate_ui_delegate.h',
59         'translate/core/browser/translate_url_fetcher.cc',
60         'translate/core/browser/translate_url_fetcher.h',
61         'translate/core/browser/translate_url_util.cc',
62         'translate/core/browser/translate_url_util.h',
63        ],
64     },
65     {
66       # GN version: //components/translate/core/common
67       'target_name': 'translate_core_common',
68       'type': 'static_library',
69       'dependencies': [
70         '../base/base.gyp:base',
71         '../url/url.gyp:url_lib',
72       ],
73       'include_dirs': [
74         '..',
75       ],
76       'sources': [
77         # Note: sources list duplicated in GN build.
78         'translate/core/common/translate_constants.cc',
79         'translate/core/common/translate_constants.h',
80         'translate/core/common/translate_errors.h',
81         'translate/core/common/translate_metrics.cc',
82         'translate/core/common/translate_metrics.h',
83         'translate/core/common/translate_pref_names.cc',
84         'translate/core/common/translate_pref_names.h',
85         'translate/core/common/translate_switches.cc',
86         'translate/core/common/translate_switches.h',
87         'translate/core/common/translate_util.cc',
88         'translate/core/common/translate_util.h',
89         'translate/core/common/language_detection_details.cc',
90         'translate/core/common/language_detection_details.h',
91       ],
92     },
93     {
94       # GN version: //components/translate/core/language_detection
95       'target_name': 'translate_core_language_detection',
96       'type': 'static_library',
97       'dependencies': [
98         'translate_core_common',
99         '../base/base.gyp:base',
100         '../url/url.gyp:url_lib',
101       ],
102       'include_dirs': [
103         '..',
104       ],
105       'sources': [
106         # Note: sources list duplicated in GN build.
107         'translate/core/language_detection/language_detection_util.cc',
108         'translate/core/language_detection/language_detection_util.h',
109       ],
110       'conditions': [
111         ['cld_version==0 or cld_version==1', {
112           'dependencies': [
113             '<(DEPTH)/third_party/cld/cld.gyp:cld',
114           ],
115         }],
116         ['cld_version==0 or cld_version==2', {
117           'dependencies': [
118             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
119           ],
120         }],
121       ],
122     },
123   ],
124   'conditions': [
125     ['OS != "ios"', {
126       'targets': [
127         {
128           # GN version: //components/translate/content/browser
129           'target_name': 'translate_content_browser',
130           'type': 'static_library',
131           'dependencies': [
132             'translate_core_browser',
133             '../base/base.gyp:base',
134             '../content/content.gyp:content_browser',
135           ],
136           'include_dirs': [
137             '..',
138           ],
139           'sources': [
140             # Note: sources list duplicated in GN build.
141             'translate/content/browser/browser_cld_data_provider.h',
142             'translate/content/browser/content_translate_driver.cc',
143             'translate/content/browser/content_translate_driver.h',
144            ],
145           'conditions': [
146              ['cld2_data_source=="standalone" or cld2_data_source=="component"', {
147               'sources': [
148                 'translate/content/browser/data_file_browser_cld_data_provider.cc',
149                 'translate/content/browser/data_file_browser_cld_data_provider.h',
150               ]},
151             ],
152             ['cld2_data_source=="static"', {
153               'sources': [
154                 'translate/content/browser/static_browser_cld_data_provider.cc',
155                 'translate/content/browser/static_browser_cld_data_provider.h',
156               ]},
157             ],
158           ],
159         },
160         {
161           # GN version: //components/translate/content/common
162           'target_name': 'translate_content_common',
163           'type': 'static_library',
164           'dependencies': [
165             'translate_core_common',
166             'translate_core_language_detection',
167             '../base/base.gyp:base',
168             '../content/content.gyp:content_common',
169             '../ipc/ipc.gyp:ipc',
170           ],
171           'include_dirs': [
172             '..',
173           ],
174           'sources': [
175             # Note: sources list duplicated in GN build.
176             'translate/content/common/translate_messages.cc',
177             'translate/content/common/translate_messages.h',
178             'translate/content/common/cld_data_source.h',
179            ],
180            'conditions': [
181              ['cld2_data_source=="standalone" or cld2_data_source=="component"', {
182                'sources': [
183                  'translate/content/common/data_file_cld_data_provider_messages.cc',
184                  'translate/content/common/data_file_cld_data_provider_messages.h',
185                ]},
186              ],
187              ['cld2_data_source=="standalone"', {
188                'sources': [
189                  'translate/content/common/standalone_cld_data_source.cc',
190                ]},
191              ],
192              ['cld2_data_source=="component"', {
193                'sources': [
194                  'translate/content/common/component_cld_data_source.cc',
195                ]},
196              ],
197              ['cld2_data_source=="static"', {
198                'sources': [
199                  'translate/content/common/static_cld_data_source.cc',
200                ]},
201              ],
202            ],
203         },
204         {
205           # GN version: //components/translate/content/renderer
206           'target_name': 'translate_content_renderer',
207           'type': 'static_library',
208           'dependencies': [
209             'translate_content_common',
210             'translate_core_common',
211             'translate_core_language_detection',
212             '../base/base.gyp:base',
213             '../content/content.gyp:content_common',
214             '../content/content.gyp:content_renderer',
215             '../ipc/ipc.gyp:ipc',
216             '../third_party/WebKit/public/blink.gyp:blink',
217             '../url/url.gyp:url_lib',
218             '../v8/tools/gyp/v8.gyp:v8',
219           ],
220           'include_dirs': [
221             '..',
222           ],
223           'sources': [
224             # Note: sources list duplicated in GN build.
225             'translate/content/renderer/renderer_cld_data_provider.h',
226             'translate/content/renderer/translate_helper.cc',
227             'translate/content/renderer/translate_helper.h',
228            ],
229           'conditions': [
230             ['cld_version==0 or cld_version==2', {
231               'dependencies': [
232                 '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
233               ],
234             }],
235             ['cld2_data_source=="standalone" or cld2_data_source=="component"', {
236               'sources': [
237                 'translate/content/renderer/data_file_renderer_cld_data_provider.cc',
238                 'translate/content/renderer/data_file_renderer_cld_data_provider.h',
239               ]},
240             ],
241             ['cld2_data_source=="static"', {
242               'sources': [
243                 'translate/content/renderer/static_renderer_cld_data_provider.cc',
244                 'translate/content/renderer/static_renderer_cld_data_provider.h',
245               ]},
246             ],
247           ],
248         },
249       ],
250     }],
251   ],