Add more GURLTest.Resolve examples for clarity.
[chromium-blink-merge.git] / components / dom_distiller.gypi
blob2c290595e4a4947c389bccfbe8c13d0e25706ef7
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_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',
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=="android"', {
185           'targets': [
186             {
187               # GN: //components/dom_distiller/android:dom_distiller_core_java
188               'target_name': 'dom_distiller_core_java',
189               'type': 'none',
190               'dependencies': [
191                 'dom_distiller_core_font_family_java',
192                 'dom_distiller_core_theme_java',
193                 '../base/base.gyp:base',
194               ],
195               'variables': {
196                 'java_in_dir': 'dom_distiller/android/java',
197               },
198               'includes': [ '../build/java.gypi' ],
199             },
200             {
201               # GN: //components/dom_distiller/android:dom_distiller_core_font_family_javagen
202               'target_name': 'dom_distiller_core_font_family_java',
203               'type': 'none',
204               'sources': [
205                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/FontFamily.template',
206               ],
207               'variables': {
208                 'package_name': 'org/chromium/components/dom_distiller/core',
209                 'template_deps': ['dom_distiller/core/font_family_list.h'],
210               },
211               'includes': [ '../build/android/java_cpp_template.gypi' ],
212             },
213             {
214               # GN: //components/dom_distiller/core:jni_headers
215               'target_name': 'dom_distiller_core_jni_headers',
216               'type': 'none',
217               'sources': [
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',
221               ],
222               'variables': {
223                 'jni_gen_package': 'dom_distiller_core',
224               },
225               'includes': [ '../build/jni_generator.gypi' ],
226             },
227             {
228               # GN: //components/dom_distiller/android:dom_distiller_core_theme_javagen
229               'target_name': 'dom_distiller_core_theme_java',
230               'type': 'none',
231               'sources': [
232                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/Theme.template',
233               ],
234               'variables': {
235                 'package_name': 'org/chromium/components/dom_distiller/core',
236                 'template_deps': ['dom_distiller/core/theme_list.h'],
237               },
238               'includes': [ '../build/android/java_cpp_template.gypi' ],
239             },
240           ],
241         }],
242       ],
243     }],
244   ],