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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
|
# 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.
{
'conditions': [
['android_webview_build == 0', {
'targets': [
{
'target_name': 'dom_distiller_webui',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../content/content.gyp:content_browser',
'../skia/skia.gyp:skia',
'../sync/sync.gyp:sync',
'components_resources.gyp:components_resources',
'components_strings.gyp:components_strings',
'distilled_page_proto',
'dom_distiller_core',
],
'include_dirs': [
'..',
],
'sources': [
'dom_distiller/webui/dom_distiller_handler.cc',
'dom_distiller/webui/dom_distiller_handler.h',
'dom_distiller/webui/dom_distiller_ui.cc',
'dom_distiller/webui/dom_distiller_ui.h',
],
},
{
'target_name': 'dom_distiller_core',
'type': 'static_library',
'dependencies': [
'../base/base.gyp:base',
'../skia/skia.gyp:skia',
'../sync/sync.gyp:sync',
'../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
'../third_party/protobuf/protobuf.gyp:protobuf_lite',
'components_resources.gyp:components_resources',
'distilled_page_proto',
],
'include_dirs': [
'..',
],
'export_dependent_settings': [
'distilled_page_proto',
],
'sources': [
'dom_distiller/android/component_jni_registrar.cc',
'dom_distiller/android/component_jni_registrar.h',
'dom_distiller/core/article_distillation_update.cc',
'dom_distiller/core/article_distillation_update.h',
'dom_distiller/core/article_entry.cc',
'dom_distiller/core/article_entry.h',
'dom_distiller/core/distiller.cc',
'dom_distiller/core/distiller.h',
'dom_distiller/core/distiller_page.cc',
'dom_distiller/core/distiller_page.h',
'dom_distiller/core/distiller_url_fetcher.cc',
'dom_distiller/core/distiller_url_fetcher.h',
'dom_distiller/core/dom_distiller_constants.cc',
'dom_distiller/core/dom_distiller_constants.h',
'dom_distiller/core/dom_distiller_database.cc',
'dom_distiller/core/dom_distiller_database.h',
'dom_distiller/core/dom_distiller_model.cc',
'dom_distiller/core/dom_distiller_model.h',
'dom_distiller/core/dom_distiller_observer.h',
'dom_distiller/core/dom_distiller_service.cc',
'dom_distiller/core/dom_distiller_service.h',
'dom_distiller/core/dom_distiller_store.cc',
'dom_distiller/core/dom_distiller_store.h',
'dom_distiller/core/feedback_reporter.cc',
'dom_distiller/core/feedback_reporter.h',
'dom_distiller/core/page_distiller.cc',
'dom_distiller/core/page_distiller.h',
'dom_distiller/core/task_tracker.cc',
'dom_distiller/core/task_tracker.h',
'dom_distiller/core/url_constants.cc',
'dom_distiller/core/url_constants.h',
'dom_distiller/core/url_utils_android.cc',
'dom_distiller/core/url_utils_android.h',
'dom_distiller/core/url_utils.cc',
'dom_distiller/core/url_utils.h',
],
'conditions': [
['OS == "android"', {
'dependencies': [
'dom_distiller_core_jni_headers',
],
}],
],
},
{
'target_name': 'dom_distiller_test_support',
'type': 'static_library',
'dependencies': [
'dom_distiller_core',
'../sync/sync.gyp:sync',
'../testing/gmock.gyp:gmock',
],
'include_dirs': [
'..',
],
'sources': [
'dom_distiller/core/dom_distiller_test_util.cc',
'dom_distiller/core/dom_distiller_test_util.h',
'dom_distiller/core/fake_db.cc',
'dom_distiller/core/fake_db.h',
'dom_distiller/core/fake_distiller.cc',
'dom_distiller/core/fake_distiller.h',
],
},
{
'target_name': 'distilled_page_proto',
'type': 'static_library',
'sources': [
'dom_distiller/core/proto/distilled_article.proto',
'dom_distiller/core/proto/distilled_page.proto',
],
'variables': {
'proto_in_dir': 'dom_distiller/core/proto',
'proto_out_dir': 'components/dom_distiller/core/proto',
},
'includes': [ '../build/protoc.gypi' ]
},
],
'conditions': [
['OS != "ios"', {
'targets': [
{
'target_name': 'dom_distiller_content',
'type': 'static_library',
'dependencies': [
'../content/content.gyp:content_browser',
'../net/net.gyp:net',
'../skia/skia.gyp:skia',
'../sync/sync.gyp:sync',
'components_resources.gyp:components_resources',
'components_strings.gyp:components_strings',
'dom_distiller_core',
],
'include_dirs': [
'..',
],
'sources': [
'dom_distiller/content/distiller_page_web_contents.cc',
'dom_distiller/content/distiller_page_web_contents.h',
'dom_distiller/content/dom_distiller_viewer_source.cc',
'dom_distiller/content/dom_distiller_viewer_source.h',
],
},
],
}],
['OS=="android"', {
'targets': [
{
'target_name': 'dom_distiller_core_java',
'type': 'none',
'dependencies': [
'../base/base.gyp:base',
],
'variables': {
'java_in_dir': 'dom_distiller/android/java',
},
'includes': [ '../build/java.gypi' ],
},
{
'target_name': 'dom_distiller_core_jni_headers',
'type': 'none',
'sources': [
'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java',
],
'variables': {
'jni_gen_package': 'dom_distiller_core',
},
'includes': [ '../build/jni_generator.gypi' ],
},
],
}],
],
}],
],
}
|