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.
7 ['android_webview_build == 0', {
10 # GN version: //components/dom_distiller/webui
11 'target_name': 'dom_distiller_webui',
12 'type': 'static_library',
14 '../base/base.gyp:base',
15 '../content/content.gyp:content_browser',
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',
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',
36 # GN version: //components/dom_distiller/core
37 'target_name': 'dom_distiller_core',
38 'type': 'static_library',
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',
54 'export_dependent_settings': [
55 'distilled_page_proto',
56 '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
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_android.cc',
99 'dom_distiller/core/url_utils_android.h',
100 'dom_distiller/core/url_utils.cc',
101 'dom_distiller/core/url_utils.h',
102 'dom_distiller/core/viewer.cc',
103 'dom_distiller/core/viewer.h',
106 ['OS == "android"', {
108 'dom_distiller_core_jni_headers',
114 # GN version: components/dom_distiller/core:test_support
115 'target_name': 'dom_distiller_test_support',
116 'type': 'static_library',
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',
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',
137 # GN version: //components/dom_distiller/core/proto
138 'target_name': 'distilled_page_proto',
139 'type': 'static_library',
141 'dom_distiller/core/proto/distilled_article.proto',
142 'dom_distiller/core/proto/distilled_page.proto',
145 'proto_in_dir': 'dom_distiller/core/proto',
146 'proto_out_dir': 'components/dom_distiller/core/proto',
148 'includes': [ '../build/protoc.gypi' ]
155 # GN version: //components/dom_distiller/content
156 'target_name': 'dom_distiller_content',
157 'type': 'static_library',
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',
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',
187 # GN: //components/dom_distiller/android:dom_distiller_core_java
188 'target_name': 'dom_distiller_core_java',
191 'dom_distiller_core_font_family_java',
192 'dom_distiller_core_theme_java',
193 '../base/base.gyp:base',
196 'java_in_dir': 'dom_distiller/android/java',
198 'includes': [ '../build/java.gypi' ],
201 # GN: //components/dom_distiller/android:dom_distiller_core_font_family_javagen
202 'target_name': 'dom_distiller_core_font_family_java',
205 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template',
208 'package_name': 'org/chromium/components/dom_distiller/core',
209 'template_deps': ['dom_distiller/core/font_family_list.h'],
211 'includes': [ '../build/android/java_cpp_template.gypi' ],
214 # GN: //components/dom_distiller/core:jni_headers
215 'target_name': 'dom_distiller_core_jni_headers',
218 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DistilledPagePrefs.java',
219 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java',
220 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java',
223 'jni_gen_package': 'dom_distiller_core',
225 'includes': [ '../build/jni_generator.gypi' ],
228 # GN: //components/dom_distiller/android:dom_distiller_core_theme_javagen
229 'target_name': 'dom_distiller_core_theme_java',
232 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template',
235 'package_name': 'org/chromium/components/dom_distiller/core',
236 'template_deps': ['dom_distiller/core/theme_list.h'],
238 'includes': [ '../build/android/java_cpp_template.gypi' ],