Add page archive for key_silk_cases card expansion example
[chromium-blink-merge.git] / components / dom_distiller.gypi
blobb930bb3461020d71639124dacd820346b7e9082d
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           'target_name': 'dom_distiller_webui',
11           'type': 'static_library',
12           'dependencies': [
13             '../base/base.gyp:base',
14             '../content/content.gyp:content_browser',
15             '../skia/skia.gyp:skia',
16             '../sync/sync.gyp:sync',
17             'components_resources.gyp:components_resources',
18             'components_strings.gyp:components_strings',
19             'distilled_page_proto',
20             'dom_distiller_core',
21           ],
22           'include_dirs': [
23             '..',
24           ],
25           'sources': [
26             'dom_distiller/webui/dom_distiller_handler.cc',
27             'dom_distiller/webui/dom_distiller_handler.h',
28             'dom_distiller/webui/dom_distiller_ui.cc',
29             'dom_distiller/webui/dom_distiller_ui.h',
30           ],
31         },
32         {
33           'target_name': 'dom_distiller_core',
34           'type': 'static_library',
35           'dependencies': [
36             '../base/base.gyp:base',
37             '../skia/skia.gyp:skia',
38             '../sync/sync.gyp:sync',
39             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
40             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
41             'components_resources.gyp:components_resources',
42             'distilled_page_proto',
43           ],
44           'include_dirs': [
45             '..',
46           ],
47           'export_dependent_settings': [
48             'distilled_page_proto',
49           ],
50           'sources': [
51             'dom_distiller/android/component_jni_registrar.cc',
52             'dom_distiller/android/component_jni_registrar.h',
53             'dom_distiller/core/article_distillation_update.cc',
54             'dom_distiller/core/article_distillation_update.h',
55             'dom_distiller/core/article_entry.cc',
56             'dom_distiller/core/article_entry.h',
57             'dom_distiller/core/distiller.cc',
58             'dom_distiller/core/distiller.h',
59             'dom_distiller/core/distiller_page.cc',
60             'dom_distiller/core/distiller_page.h',
61             'dom_distiller/core/distiller_url_fetcher.cc',
62             'dom_distiller/core/distiller_url_fetcher.h',
63             'dom_distiller/core/dom_distiller_constants.cc',
64             'dom_distiller/core/dom_distiller_constants.h',
65             'dom_distiller/core/dom_distiller_database.cc',
66             'dom_distiller/core/dom_distiller_database.h',
67             'dom_distiller/core/dom_distiller_model.cc',
68             'dom_distiller/core/dom_distiller_model.h',
69             'dom_distiller/core/dom_distiller_observer.h',
70             'dom_distiller/core/dom_distiller_service.cc',
71             'dom_distiller/core/dom_distiller_service.h',
72             'dom_distiller/core/dom_distiller_store.cc',
73             'dom_distiller/core/dom_distiller_store.h',
74             'dom_distiller/core/feedback_reporter.cc',
75             'dom_distiller/core/feedback_reporter.h',
76             'dom_distiller/core/page_distiller.cc',
77             'dom_distiller/core/page_distiller.h',
78             'dom_distiller/core/task_tracker.cc',
79             'dom_distiller/core/task_tracker.h',
80             'dom_distiller/core/url_constants.cc',
81             'dom_distiller/core/url_constants.h',
82             'dom_distiller/core/url_utils_android.cc',
83             'dom_distiller/core/url_utils_android.h',
84             'dom_distiller/core/url_utils.cc',
85             'dom_distiller/core/url_utils.h',
86           ],
87           'conditions': [
88             ['OS == "android"', {
89               'dependencies': [
90                 'dom_distiller_core_jni_headers',
91               ],
92             }],
93           ],
94         },
95         {
96           'target_name': 'dom_distiller_test_support',
97           'type': 'static_library',
98           'dependencies': [
99             'dom_distiller_core',
100             '../sync/sync.gyp:sync',
101             '../testing/gmock.gyp:gmock',
102           ],
103           'include_dirs': [
104             '..',
105           ],
106           'sources': [
107             'dom_distiller/core/dom_distiller_test_util.cc',
108             'dom_distiller/core/dom_distiller_test_util.h',
109             'dom_distiller/core/fake_db.cc',
110             'dom_distiller/core/fake_db.h',
111             'dom_distiller/core/fake_distiller.cc',
112             'dom_distiller/core/fake_distiller.h',
113           ],
114         },
115         {
116           'target_name': 'distilled_page_proto',
117           'type': 'static_library',
118           'sources': [
119             'dom_distiller/core/proto/distilled_article.proto',
120             'dom_distiller/core/proto/distilled_page.proto',
121           ],
122           'variables': {
123             'proto_in_dir': 'dom_distiller/core/proto',
124             'proto_out_dir': 'components/dom_distiller/core/proto',
125           },
126           'includes': [ '../build/protoc.gypi' ]
127         },
128       ],
129       'conditions': [
130         ['OS != "ios"', {
131           'targets': [
132             {
133               'target_name': 'dom_distiller_content',
134               'type': 'static_library',
135               'dependencies': [
136                 '../content/content.gyp:content_browser',
137                 '../net/net.gyp:net',
138                 '../skia/skia.gyp:skia',
139                 '../sync/sync.gyp:sync',
140                 'components_resources.gyp:components_resources',
141                 'components_strings.gyp:components_strings',
142                 'dom_distiller_core',
143               ],
144               'include_dirs': [
145                 '..',
146               ],
147               'sources': [
148                 'dom_distiller/content/distiller_page_web_contents.cc',
149                 'dom_distiller/content/distiller_page_web_contents.h',
150                 'dom_distiller/content/dom_distiller_viewer_source.cc',
151                 'dom_distiller/content/dom_distiller_viewer_source.h',
152               ],
153             },
154           ],
155         }],
156         ['OS=="android"', {
157           'targets': [
158             {
159               'target_name': 'dom_distiller_core_java',
160               'type': 'none',
161               'dependencies': [
162                 '../base/base.gyp:base',
163               ],
164               'variables': {
165                 'java_in_dir': 'dom_distiller/android/java',
166               },
167               'includes': [ '../build/java.gypi' ],
168             },
169             {
170               'target_name': 'dom_distiller_core_jni_headers',
171               'type': 'none',
172               'sources': [
173                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java',
174               ],
175               'variables': {
176                 'jni_gen_package': 'dom_distiller_core',
177               },
178               'includes': [ '../build/jni_generator.gypi' ],
179             },
180           ],
181         }],
182       ],
183     }],
184   ],