1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'targets': [
{
'target_name': 'translate_core_browser',
'type': 'static_library',
'dependencies': [
'component_resources.gyp:component_resources',
'language_usage_metrics',
'translate_core_common',
'../base/base.gyp:base',
'../google_apis/google_apis.gyp:google_apis',
'../net/net.gyp:net',
'../url/url.gyp:url_lib',
'../ui/ui.gyp:ui',
],
'include_dirs': [
'..',
],
'sources': [
'translate/core/browser/language_state.cc',
'translate/core/browser/language_state.h',
'translate/core/browser/page_translated_details.h',
'translate/core/browser/translate_browser_metrics.cc',
'translate/core/browser/translate_browser_metrics.h',
'translate/core/browser/translate_download_manager.cc',
'translate/core/browser/translate_download_manager.h',
'translate/core/browser/translate_driver.h',
'translate/core/browser/translate_error_details.h',
'translate/core/browser/translate_event_details.cc',
'translate/core/browser/translate_event_details.h',
'translate/core/browser/translate_language_list.cc',
'translate/core/browser/translate_language_list.h',
'translate/core/browser/translate_script.cc',
'translate/core/browser/translate_script.h',
'translate/core/browser/translate_url_fetcher.cc',
'translate/core/browser/translate_url_fetcher.h',
'translate/core/browser/translate_url_util.cc',
'translate/core/browser/translate_url_util.h',
],
},
{
'target_name': 'translate_core_common',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../url/url.gyp:url_lib',
],
'include_dirs': [
'..',
],
'sources': [
'translate/core/common/translate_constants.cc',
'translate/core/common/translate_constants.h',
'translate/core/common/translate_errors.h',
'translate/core/common/translate_metrics.cc',
'translate/core/common/translate_metrics.h',
'translate/core/common/translate_pref_names.cc',
'translate/core/common/translate_pref_names.h',
'translate/core/common/translate_switches.cc',
'translate/core/common/translate_switches.h',
'translate/core/common/translate_util.cc',
'translate/core/common/translate_util.h',
'translate/core/common/language_detection_details.cc',
'translate/core/common/language_detection_details.h',
],
},
{
'target_name': 'translate_language_detection',
'type': 'static_library',
'dependencies': [
'translate_core_common',
'../base/base.gyp:base',
'../url/url.gyp:url_lib',
],
'include_dirs': [
'..',
],
'sources': [
'translate/language_detection/language_detection_util.cc',
'translate/language_detection/language_detection_util.h',
],
'conditions': [
['cld_version==0 or cld_version==1', {
'dependencies': [
'<(DEPTH)/third_party/cld/cld.gyp:cld',
],
}],
['cld_version==0 or cld_version==2', {
'dependencies': [
'<(DEPTH)/third_party/cld_2/cld_2.gyp:cld_2',
],
}],
],
},
],
'conditions': [
['OS != "ios"', {
'targets': [
{
'target_name': 'translate_content_browser',
'type': 'static_library',
'dependencies': [
'translate_core_browser',
'../base/base.gyp:base',
'../content/content.gyp:content_browser',
],
'include_dirs': [
'..',
],
'sources': [
'translate/content/browser/content_translate_driver.cc',
'translate/content/browser/content_translate_driver.h',
],
},
],
}],
],
}
|