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',
16 '../skia/skia.gyp:skia',
17 '../sync/sync.gyp:sync',
18 'components_resources.gyp:components_resources',
19 'components_strings.gyp:components_strings',
20 'distilled_page_proto',
27 'dom_distiller/webui/dom_distiller_handler.cc',
28 'dom_distiller/webui/dom_distiller_handler.h',
29 'dom_distiller/webui/dom_distiller_ui.cc',
30 'dom_distiller/webui/dom_distiller_ui.h',
34 # GN version: //components/dom_distiller/core
35 'target_name': 'dom_distiller_core',
36 'type': 'static_library',
38 '../base/base.gyp:base',
39 '../skia/skia.gyp:skia',
40 '../sync/sync.gyp:sync',
41 '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
42 'components.gyp:leveldb_proto',
43 'components_resources.gyp:components_resources',
44 'components_strings.gyp:components_strings',
45 'distilled_page_proto',
51 'export_dependent_settings': [
52 'distilled_page_proto',
53 '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
56 'dom_distiller/android/component_jni_registrar.cc',
57 'dom_distiller/android/component_jni_registrar.h',
58 'dom_distiller/core/article_attachments_data.cc',
59 'dom_distiller/core/article_attachments_data.h',
60 'dom_distiller/core/article_distillation_update.cc',
61 'dom_distiller/core/article_distillation_update.h',
62 'dom_distiller/core/article_entry.cc',
63 'dom_distiller/core/article_entry.h',
64 'dom_distiller/core/distilled_content_store.cc',
65 'dom_distiller/core/distilled_content_store.h',
66 'dom_distiller/core/distilled_page_prefs.cc',
67 'dom_distiller/core/distilled_page_prefs.h',
68 'dom_distiller/core/distilled_page_prefs_android.cc',
69 'dom_distiller/core/distilled_page_prefs_android.h',
70 'dom_distiller/core/distiller.cc',
71 'dom_distiller/core/distiller.h',
72 'dom_distiller/core/distiller_page.cc',
73 'dom_distiller/core/distiller_page.h',
74 'dom_distiller/core/distiller_url_fetcher.cc',
75 'dom_distiller/core/distiller_url_fetcher.h',
76 'dom_distiller/core/dom_distiller_constants.cc',
77 'dom_distiller/core/dom_distiller_constants.h',
78 'dom_distiller/core/dom_distiller_model.cc',
79 'dom_distiller/core/dom_distiller_model.h',
80 'dom_distiller/core/dom_distiller_observer.h',
81 'dom_distiller/core/dom_distiller_service.cc',
82 'dom_distiller/core/dom_distiller_service.h',
83 'dom_distiller/core/dom_distiller_service_android.cc',
84 'dom_distiller/core/dom_distiller_service_android.h',
85 'dom_distiller/core/dom_distiller_store.cc',
86 'dom_distiller/core/dom_distiller_store.h',
87 'dom_distiller/core/feedback_reporter.cc',
88 'dom_distiller/core/feedback_reporter.h',
89 'dom_distiller/core/font_family_list.h',
90 'dom_distiller/core/task_tracker.cc',
91 'dom_distiller/core/task_tracker.h',
92 'dom_distiller/core/theme_list.h',
93 'dom_distiller/core/url_constants.cc',
94 'dom_distiller/core/url_constants.h',
95 'dom_distiller/core/url_utils_android.cc',
96 'dom_distiller/core/url_utils_android.h',
97 'dom_distiller/core/url_utils.cc',
98 'dom_distiller/core/url_utils.h',
99 'dom_distiller/core/viewer.cc',
100 'dom_distiller/core/viewer.h',
103 ['OS == "android"', {
105 'dom_distiller_core_jni_headers',
111 # GN version: components/dom_distiller/core:test_support
112 'target_name': 'dom_distiller_test_support',
113 'type': 'static_library',
115 'dom_distiller_core',
116 'components.gyp:leveldb_proto_test_support',
117 '../sync/sync.gyp:sync',
118 '../testing/gmock.gyp:gmock',
124 'dom_distiller/core/dom_distiller_test_util.cc',
125 'dom_distiller/core/dom_distiller_test_util.h',
126 'dom_distiller/core/fake_distiller.cc',
127 'dom_distiller/core/fake_distiller.h',
128 'dom_distiller/core/fake_distiller_page.cc',
129 'dom_distiller/core/fake_distiller_page.h',
133 # GN version: //components/dom_distiller/core/proto
134 'target_name': 'distilled_page_proto',
135 'type': 'static_library',
137 'dom_distiller/core/proto/distilled_article.proto',
138 'dom_distiller/core/proto/distilled_page.proto',
141 'proto_in_dir': 'dom_distiller/core/proto',
142 'proto_out_dir': 'components/dom_distiller/core/proto',
144 'includes': [ '../build/protoc.gypi' ]
151 # GN version: //components/dom_distiller/content
152 'target_name': 'dom_distiller_content',
153 'type': 'static_library',
155 '../content/content.gyp:content_browser',
156 '../net/net.gyp:net',
157 '../skia/skia.gyp:skia',
158 '../sync/sync.gyp:sync',
159 'components_resources.gyp:components_resources',
160 'components_strings.gyp:components_strings',
161 'dom_distiller_core',
167 'dom_distiller/content/distiller_page_web_contents.cc',
168 'dom_distiller/content/distiller_page_web_contents.h',
169 'dom_distiller/content/dom_distiller_viewer_source.cc',
170 'dom_distiller/content/dom_distiller_viewer_source.h',
171 'dom_distiller/content/web_contents_main_frame_observer.cc',
172 'dom_distiller/content/web_contents_main_frame_observer.h',
180 # GN: //components/dom_distiller/android:dom_distiller_core_java
181 'target_name': 'dom_distiller_core_java',
184 'dom_distiller_core_font_family_java',
185 'dom_distiller_core_theme_java',
186 '../base/base.gyp:base',
189 'java_in_dir': 'dom_distiller/android/java',
191 'includes': [ '../build/java.gypi' ],
194 # GN: //components/dom_distiller/android:dom_distiller_core_font_family_javagen
195 'target_name': 'dom_distiller_core_font_family_java',
198 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template',
201 'package_name': 'org/chromium/components/dom_distiller/core',
202 'template_deps': ['dom_distiller/core/font_family_list.h'],
204 'includes': [ '../build/android/java_cpp_template.gypi' ],
207 # GN: //components/dom_distiller/core:jni_headers
208 'target_name': 'dom_distiller_core_jni_headers',
211 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DistilledPagePrefs.java',
212 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java',
213 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java',
216 'jni_gen_package': 'dom_distiller_core',
218 'includes': [ '../build/jni_generator.gypi' ],
221 # GN: //components/dom_distiller/android:dom_distiller_core_theme_javagen
222 'target_name': 'dom_distiller_core_theme_java',
225 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template',
228 'package_name': 'org/chromium/components/dom_distiller/core',
229 'template_deps': ['dom_distiller/core/theme_list.h'],
231 'includes': [ '../build/android/java_cpp_template.gypi' ],