Define the DISABLE_CAPS_LOCK and TOGGLE_CAPS_LOCK accelerators for OS_CHROMEOS only.
[chromium-blink-merge.git] / components / translate.gypi
blob07238f6266cccc2d044d96e872d6e9c9459e5318
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         '../google_apis/google_apis.gyp:google_apis',
13         '../net/net.gyp:net',
14         '../ui/base/ui_base.gyp:ui_base',
15         '../url/url.gyp:url_lib',
16         'component_resources.gyp:component_resources',
17         'language_usage_metrics',
18         'translate_core_common',
19         'user_prefs',
20       ],
21       'include_dirs': [
22         '..',
23       ],
24       'sources': [
25         'translate/core/browser/language_state.cc',
26         'translate/core/browser/language_state.h',
27         'translate/core/browser/page_translated_details.h',
28         'translate/core/browser/translate_accept_languages.cc',
29         'translate/core/browser/translate_accept_languages.h',
30         'translate/core/browser/translate_browser_metrics.cc',
31         'translate/core/browser/translate_browser_metrics.h',
32         'translate/core/browser/translate_download_manager.cc',
33         'translate/core/browser/translate_download_manager.h',
34         'translate/core/browser/translate_driver.h',
35         'translate/core/browser/translate_error_details.h',
36         'translate/core/browser/translate_event_details.cc',
37         'translate/core/browser/translate_event_details.h',
38         'translate/core/browser/translate_language_list.cc',
39         'translate/core/browser/translate_language_list.h',
40         'translate/core/browser/translate_prefs.cc',
41         'translate/core/browser/translate_prefs.h',
42         'translate/core/browser/translate_script.cc',
43         'translate/core/browser/translate_script.h',
44         'translate/core/browser/translate_url_fetcher.cc',
45         'translate/core/browser/translate_url_fetcher.h',
46         'translate/core/browser/translate_url_util.cc',
47         'translate/core/browser/translate_url_util.h',
48        ],
49     },
50     {
51       'target_name': 'translate_core_common',
52       'type': 'static_library',
53       'dependencies': [
54         '../base/base.gyp:base',
55         '../url/url.gyp:url_lib',
56       ],
57       'include_dirs': [
58         '..',
59       ],
60       'sources': [
61         'translate/core/common/translate_constants.cc',
62         'translate/core/common/translate_constants.h',
63         'translate/core/common/translate_errors.h',
64         'translate/core/common/translate_metrics.cc',
65         'translate/core/common/translate_metrics.h',
66         'translate/core/common/translate_pref_names.cc',
67         'translate/core/common/translate_pref_names.h',
68         'translate/core/common/translate_switches.cc',
69         'translate/core/common/translate_switches.h',
70         'translate/core/common/translate_util.cc',
71         'translate/core/common/translate_util.h',
72         'translate/core/common/language_detection_details.cc',
73         'translate/core/common/language_detection_details.h',
74       ],
75     },
76     {
77       'target_name': 'translate_language_detection',
78       'type': 'static_library',
79       'dependencies': [
80         'translate_core_common',
81         '../base/base.gyp:base',
82         '../url/url.gyp:url_lib',
83       ],
84       'include_dirs': [
85         '..',
86       ],
87       'sources': [
88         'translate/language_detection/language_detection_util.cc',
89         'translate/language_detection/language_detection_util.h',
90       ],
91       'conditions': [
92         ['cld_version==0 or cld_version==1', {
93           'dependencies': [
94             '<(DEPTH)/third_party/cld/cld.gyp:cld',
95           ],
96         }],
97         ['cld_version==0 or cld_version==2', {
98           'dependencies': [
99             '<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
100           ],
101         }],
102       ],
103     },
104   ],
105   'conditions': [
106     ['OS != "ios"', {
107       'targets': [
108         {
109           'target_name': 'translate_content_browser',
110           'type': 'static_library',
111           'dependencies': [
112             'translate_core_browser',
113             '../base/base.gyp:base',
114             '../content/content.gyp:content_browser',
115           ],
116           'include_dirs': [
117             '..',
118           ],
119           'sources': [
120             'translate/content/browser/content_translate_driver.cc',
121             'translate/content/browser/content_translate_driver.h',
122            ],
123         },
124       ],
125     }],
126   ],