Remove now obsolete checkdeps copy
[chromium-blink-merge.git] / components / translate.gypi
blob5a15611ecef155bec34b6d655d60f83e52479996
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       'target_name': 'translate_core_browser',
9       'type': 'static_library',
10       'dependencies': [
11         '../base/base.gyp:base',
12         '../base/base.gyp:base_i18n',
13         '../google_apis/google_apis.gyp:google_apis',
14         '../net/net.gyp:net',
15         '../ui/base/ui_base.gyp:ui_base',
16         '../url/url.gyp:url_lib',
17         'components_resources.gyp:components_resources',
18         'components_strings.gyp:components_strings',
19         'infobars_core',
20         'language_usage_metrics',
21         'pref_registry',
22         'translate_core_common',
23       ],
24       'include_dirs': [
25         '..',
26       ],
27       'sources': [
28         'translate/core/browser/language_state.cc',
29         'translate/core/browser/language_state.h',
30         'translate/core/browser/options_menu_model.cc',
31         'translate/core/browser/options_menu_model.h',
32         'translate/core/browser/page_translated_details.h',
33         'translate/core/browser/translate_accept_languages.cc',
34         'translate/core/browser/translate_accept_languages.h',
35         'translate/core/browser/translate_browser_metrics.cc',
36         'translate/core/browser/translate_browser_metrics.h',
37         'translate/core/browser/translate_client.h',
38         'translate/core/browser/translate_download_manager.cc',
39         'translate/core/browser/translate_download_manager.h',
40         'translate/core/browser/translate_driver.h',
41         'translate/core/browser/translate_error_details.h',
42         'translate/core/browser/translate_event_details.cc',
43         'translate/core/browser/translate_event_details.h',
44         'translate/core/browser/translate_infobar_delegate.cc',
45         'translate/core/browser/translate_infobar_delegate.h',
46         'translate/core/browser/translate_language_list.cc',
47         'translate/core/browser/translate_language_list.h',
48         'translate/core/browser/translate_manager.cc',
49         'translate/core/browser/translate_manager.h',
50         'translate/core/browser/translate_prefs.cc',
51         'translate/core/browser/translate_prefs.h',
52         'translate/core/browser/translate_script.cc',
53         'translate/core/browser/translate_script.h',
54         'translate/core/browser/translate_step.h',
55         'translate/core/browser/translate_ui_delegate.cc',
56         'translate/core/browser/translate_ui_delegate.h',
57         'translate/core/browser/translate_url_fetcher.cc',
58         'translate/core/browser/translate_url_fetcher.h',
59         'translate/core/browser/translate_url_util.cc',
60         'translate/core/browser/translate_url_util.h',
61        ],
62     },
63     {
64       'target_name': 'translate_core_common',
65       'type': 'static_library',
66       'dependencies': [
67         '../base/base.gyp:base',
68         '../url/url.gyp:url_lib',
69       ],
70       'include_dirs': [
71         '..',
72       ],
73       'sources': [
74         'translate/core/common/translate_constants.cc',
75         'translate/core/common/translate_constants.h',
76         'translate/core/common/translate_errors.h',
77         'translate/core/common/translate_metrics.cc',
78         'translate/core/common/translate_metrics.h',
79         'translate/core/common/translate_pref_names.cc',
80         'translate/core/common/translate_pref_names.h',
81         'translate/core/common/translate_switches.cc',
82         'translate/core/common/translate_switches.h',
83         'translate/core/common/translate_util.cc',
84         'translate/core/common/translate_util.h',
85         'translate/core/common/language_detection_details.cc',
86         'translate/core/common/language_detection_details.h',
87       ],
88     },
89     {
90       'target_name': 'translate_core_language_detection',
91       'type': 'static_library',
92       'dependencies': [
93         'translate_core_common',
94         '../base/base.gyp:base',
95         '../url/url.gyp:url_lib',
96       ],
97       'include_dirs': [
98         '..',
99       ],
100       'sources': [
101         'translate/core/language_detection/language_detection_util.cc',
102         'translate/core/language_detection/language_detection_util.h',
103       ],
104       'conditions': [
105         ['cld_version==0 or cld_version==1', {
106           'dependencies': [
107             '<(DEPTH)/third_party/cld/cld.gyp:cld',
108           ],
109         }],
110         ['cld_version==0 or cld_version==2', {
111           'dependencies': [
112             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
113           ],
114         }],
115       ],
116     },
117   ],
118   'conditions': [
119     ['OS != "ios"', {
120       'targets': [
121         {
122           'target_name': 'translate_content_browser',
123           'type': 'static_library',
124           'dependencies': [
125             'translate_core_browser',
126             '../base/base.gyp:base',
127             '../content/content.gyp:content_browser',
128           ],
129           'include_dirs': [
130             '..',
131           ],
132           'sources': [
133             'translate/content/browser/content_translate_driver.cc',
134             'translate/content/browser/content_translate_driver.h',
135            ],
136         },
137         {
138           'target_name': 'translate_content_common',
139           'type': 'static_library',
140           'dependencies': [
141             'translate_core_common',
142             'translate_core_language_detection',
143             '../base/base.gyp:base',
144             '../content/content.gyp:content_common',
145             '../ipc/ipc.gyp:ipc',
146           ],
147           'include_dirs': [
148             '..',
149           ],
150           'sources': [
151             'translate/content/common/translate_messages.cc',
152             'translate/content/common/translate_messages.h',
153            ],
154         },
155       ],
156     }],
157   ],