Rename probe/canary usages to secure proxy check.
[chromium-blink-merge.git] / components / dom_distiller.gypi
blob6e8cf3a9a25e5eb6f19fa2c0045dfcd39afffb55
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   'conditions': [
7     ['android_webview_build == 0', {
8       'targets': [
9         {
10           # GN version: //components/dom_distiller/webui
11           'target_name': 'dom_distiller_webui',
12           'type': 'static_library',
13           'dependencies': [
14             '../base/base.gyp:base',
15             '../content/content.gyp:content_browser',
16             '../net/net.gyp:net',
17             '../skia/skia.gyp:skia',
18             '../sync/sync.gyp:sync',
19             '../url/url.gyp:url_lib',
20             'components_resources.gyp:components_resources',
21             'components_strings.gyp:components_strings',
22             'distilled_page_proto',
23             'dom_distiller_core',
24           ],
25           'include_dirs': [
26             '..',
27           ],
28           'sources': [
29             'dom_distiller/webui/dom_distiller_handler.cc',
30             'dom_distiller/webui/dom_distiller_handler.h',
31             'dom_distiller/webui/dom_distiller_ui.cc',
32             'dom_distiller/webui/dom_distiller_ui.h',
33           ],
34         },
35         {
36           # GN version: //components/dom_distiller/core
37           'target_name': 'dom_distiller_core',
38           'type': 'static_library',
39           'dependencies': [
40             '../base/base.gyp:base',
41             '../base/base.gyp:base_prefs',
42             '../skia/skia.gyp:skia',
43             '../sync/sync.gyp:sync',
44             '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
45             'components.gyp:leveldb_proto',
46             'components_resources.gyp:components_resources',
47             'components_strings.gyp:components_strings',
48             'distilled_page_proto',
49             'pref_registry',
50           ],
51           'include_dirs': [
52             '..',
53           ],
54           'export_dependent_settings': [
55             'distilled_page_proto',
56             '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
57           ],
58           'sources': [
59             'dom_distiller/android/component_jni_registrar.cc',
60             'dom_distiller/android/component_jni_registrar.h',
61             'dom_distiller/core/article_attachments_data.cc',
62             'dom_distiller/core/article_attachments_data.h',
63             'dom_distiller/core/article_distillation_update.cc',
64             'dom_distiller/core/article_distillation_update.h',
65             'dom_distiller/core/article_entry.cc',
66             'dom_distiller/core/article_entry.h',
67             'dom_distiller/core/distilled_content_store.cc',
68             'dom_distiller/core/distilled_content_store.h',
69             'dom_distiller/core/distilled_page_prefs.cc',
70             'dom_distiller/core/distilled_page_prefs.h',
71             'dom_distiller/core/distilled_page_prefs_android.cc',
72             'dom_distiller/core/distilled_page_prefs_android.h',
73             'dom_distiller/core/distiller.cc',
74             'dom_distiller/core/distiller.h',
75             'dom_distiller/core/distiller_page.cc',
76             'dom_distiller/core/distiller_page.h',
77             'dom_distiller/core/distiller_url_fetcher.cc',
78             'dom_distiller/core/distiller_url_fetcher.h',
79             'dom_distiller/core/dom_distiller_constants.cc',
80             'dom_distiller/core/dom_distiller_constants.h',
81             'dom_distiller/core/dom_distiller_model.cc',
82             'dom_distiller/core/dom_distiller_model.h',
83             'dom_distiller/core/dom_distiller_observer.h',
84             'dom_distiller/core/dom_distiller_service.cc',
85             'dom_distiller/core/dom_distiller_service.h',
86             'dom_distiller/core/dom_distiller_service_android.cc',
87             'dom_distiller/core/dom_distiller_service_android.h',
88             'dom_distiller/core/dom_distiller_store.cc',
89             'dom_distiller/core/dom_distiller_store.h',
90             'dom_distiller/core/feedback_reporter.cc',
91             'dom_distiller/core/feedback_reporter.h',
92             'dom_distiller/core/font_family_list.h',
93             'dom_distiller/core/task_tracker.cc',
94             'dom_distiller/core/task_tracker.h',
95             'dom_distiller/core/theme_list.h',
96             'dom_distiller/core/url_constants.cc',
97             'dom_distiller/core/url_constants.h',
98             'dom_distiller/core/url_utils.cc',
99             'dom_distiller/core/url_utils.h',
100             'dom_distiller/core/url_utils_android.cc',
101             'dom_distiller/core/url_utils_android.h',
102             'dom_distiller/core/viewer.cc',
103             'dom_distiller/core/viewer.h',
104           ],
105           'conditions': [
106             ['OS == "android"', {
107               'dependencies': [
108                 'dom_distiller_core_jni_headers',
109               ],
110             }],
111           ],
112         },
113         {
114           # GN version: components/dom_distiller/core:test_support
115           'target_name': 'dom_distiller_test_support',
116           'type': 'static_library',
117           'dependencies': [
118             'dom_distiller_core',
119             'components.gyp:leveldb_proto_test_support',
120             '../sync/sync.gyp:sync',
121             '../testing/gmock.gyp:gmock',
122             '../url/url.gyp:url_lib',
123           ],
124           'include_dirs': [
125             '..',
126           ],
127           'sources': [
128             'dom_distiller/core/dom_distiller_test_util.cc',
129             'dom_distiller/core/dom_distiller_test_util.h',
130             'dom_distiller/core/fake_distiller.cc',
131             'dom_distiller/core/fake_distiller.h',
132             'dom_distiller/core/fake_distiller_page.cc',
133             'dom_distiller/core/fake_distiller_page.h',
134           ],
135         },
136         {
137           # GN version: //components/dom_distiller/core/proto
138           'target_name': 'distilled_page_proto',
139           'type': 'static_library',
140           'sources': [
141             'dom_distiller/core/proto/distilled_article.proto',
142             'dom_distiller/core/proto/distilled_page.proto',
143           ],
144           'variables': {
145             'proto_in_dir': 'dom_distiller/core/proto',
146             'proto_out_dir': 'components/dom_distiller/core/proto',
147           },
148           'includes': [ '../build/protoc.gypi' ]
149         },
150       ],
151       'conditions': [
152         ['OS != "ios"', {
153           'targets': [
154             {
155               # GN version: //components/dom_distiller/content
156               'target_name': 'dom_distiller_content',
157               'type': 'static_library',
158               'dependencies': [
159                 '../base/base.gyp:base',
160                 '../content/content.gyp:content_browser',
161                 '../net/net.gyp:net',
162                 '../skia/skia.gyp:skia',
163                 '../sync/sync.gyp:sync',
164                 '../ui/gfx/gfx.gyp:gfx',
165                 '../url/url.gyp:url_lib',
166                 'components_resources.gyp:components_resources',
167                 'components_strings.gyp:components_strings',
168                 'dom_distiller_core',
169               ],
170               'include_dirs': [
171                 '..',
172               ],
173               'sources': [
174                 'dom_distiller/content/distiller_page_web_contents.cc',
175                 'dom_distiller/content/distiller_page_web_contents.h',
176                 'dom_distiller/content/dom_distiller_viewer_source.cc',
177                 'dom_distiller/content/dom_distiller_viewer_source.h',
178                 'dom_distiller/content/web_contents_main_frame_observer.cc',
179                 'dom_distiller/content/web_contents_main_frame_observer.h',
180               ],
181             },
182           ],
183         }],
184         ['OS=="ios"', {
185           'targets': [
186             {
187               'target_name': 'dom_distiller_ios',
188               'type': 'static_library',
189               'dependencies': [
190                 '../ios/provider/ios_provider_web.gyp:ios_provider_web',
191                 'distilled_page_proto',
192                 'dom_distiller_core',
193               ],
194               'include_dirs': [
195                 '..',
196               ],
197               'sources': [
198                 'dom_distiller/ios/distiller_page_factory_ios.h',
199                 'dom_distiller/ios/distiller_page_factory_ios.mm',
200                 'dom_distiller/ios/distiller_page_ios.h',
201                 'dom_distiller/ios/distiller_page_ios.mm',
202               ],
203             },
204           ],
205         }],
206         ['OS=="android"', {
207           'targets': [
208             {
209               # GN: //components/dom_distiller/android:dom_distiller_core_java
210               'target_name': 'dom_distiller_core_java',
211               'type': 'none',
212               'dependencies': [
213                 'dom_distiller_core_font_family_java',
214                 'dom_distiller_core_theme_java',
215                 '../base/base.gyp:base',
216               ],
217               'variables': {
218                 'java_in_dir': 'dom_distiller/android/java',
219               },
220               'includes': [ '../build/java.gypi' ],
221             },
222             {
223               # GN: //components/dom_distiller/android:dom_distiller_core_font_family_javagen
224               'target_name': 'dom_distiller_core_font_family_java',
225               'type': 'none',
226               'sources': [
227                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template',
228               ],
229               'variables': {
230                 'package_name': 'org/chromium/components/dom_distiller/core',
231                 'template_deps': ['dom_distiller/core/font_family_list.h'],
232               },
233               'includes': [ '../build/android/java_cpp_template.gypi' ],
234             },
235             {
236               # GN: //components/dom_distiller/core:jni_headers
237               'target_name': 'dom_distiller_core_jni_headers',
238               'type': 'none',
239               'sources': [
240                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DistilledPagePrefs.java',
241                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java',
242                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java',
243               ],
244               'variables': {
245                 'jni_gen_package': 'dom_distiller_core',
246               },
247               'includes': [ '../build/jni_generator.gypi' ],
248             },
249             {
250               # GN: //components/dom_distiller/android:dom_distiller_core_theme_javagen
251               'target_name': 'dom_distiller_core_theme_java',
252               'type': 'none',
253               'sources': [
254                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template',
255               ],
256               'variables': {
257                 'package_name': 'org/chromium/components/dom_distiller/core',
258                 'template_deps': ['dom_distiller/core/theme_list.h'],
259               },
260               'includes': [ '../build/android/java_cpp_template.gypi' ],
261             },
262           ],
263         }],
264       ],
265     }],
266   ],