Simple Cache: remove experiment code for flush intervals.
[chromium-blink-merge.git] / components / dom_distiller.gypi
blobcc7bae5abdc523b13cf4b157a00d2177636b4e9a
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/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
40             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
41             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
42             'components_resources.gyp:components_resources',
43             'components_strings.gyp:components_strings',
44             'distilled_page_proto',
45           ],
46           'include_dirs': [
47             '..',
48           ],
49           'export_dependent_settings': [
50             'distilled_page_proto',
51             '../third_party/dom_distiller_js/dom_distiller_js.gyp:dom_distiller_js_proto',
52           ],
53           'sources': [
54             'dom_distiller/android/component_jni_registrar.cc',
55             'dom_distiller/android/component_jni_registrar.h',
56             'dom_distiller/core/article_distillation_update.cc',
57             'dom_distiller/core/article_distillation_update.h',
58             'dom_distiller/core/article_entry.cc',
59             'dom_distiller/core/article_entry.h',
60             'dom_distiller/core/distilled_content_store.cc',
61             'dom_distiller/core/distilled_content_store.h',
62             'dom_distiller/core/distiller.cc',
63             'dom_distiller/core/distiller.h',
64             'dom_distiller/core/distiller_page.cc',
65             'dom_distiller/core/distiller_page.h',
66             'dom_distiller/core/distiller_url_fetcher.cc',
67             'dom_distiller/core/distiller_url_fetcher.h',
68             'dom_distiller/core/dom_distiller_constants.cc',
69             'dom_distiller/core/dom_distiller_constants.h',
70             'dom_distiller/core/dom_distiller_database.cc',
71             'dom_distiller/core/dom_distiller_database.h',
72             'dom_distiller/core/dom_distiller_model.cc',
73             'dom_distiller/core/dom_distiller_model.h',
74             'dom_distiller/core/dom_distiller_observer.h',
75             'dom_distiller/core/dom_distiller_service.cc',
76             'dom_distiller/core/dom_distiller_service.h',
77             'dom_distiller/core/dom_distiller_store.cc',
78             'dom_distiller/core/dom_distiller_store.h',
79             'dom_distiller/core/feedback_reporter.cc',
80             'dom_distiller/core/feedback_reporter.h',
81             'dom_distiller/core/task_tracker.cc',
82             'dom_distiller/core/task_tracker.h',
83             'dom_distiller/core/url_constants.cc',
84             'dom_distiller/core/url_constants.h',
85             'dom_distiller/core/url_utils_android.cc',
86             'dom_distiller/core/url_utils_android.h',
87             'dom_distiller/core/url_utils.cc',
88             'dom_distiller/core/url_utils.h',
89             'dom_distiller/core/viewer.cc',
90             'dom_distiller/core/viewer.h',
91           ],
92           'conditions': [
93             ['OS == "android"', {
94               'dependencies': [
95                 'dom_distiller_core_jni_headers',
96               ],
97             }],
98           ],
99         },
100         {
101           'target_name': 'dom_distiller_test_support',
102           'type': 'static_library',
103           'dependencies': [
104             'dom_distiller_core',
105             '../sync/sync.gyp:sync',
106             '../testing/gmock.gyp:gmock',
107           ],
108           'include_dirs': [
109             '..',
110           ],
111           'sources': [
112             'dom_distiller/core/dom_distiller_test_util.cc',
113             'dom_distiller/core/dom_distiller_test_util.h',
114             'dom_distiller/core/fake_db.cc',
115             'dom_distiller/core/fake_db.h',
116             'dom_distiller/core/fake_distiller.cc',
117             'dom_distiller/core/fake_distiller.h',
118             'dom_distiller/core/fake_distiller_page.cc',
119             'dom_distiller/core/fake_distiller_page.h',
120           ],
121         },
122         {
123           'target_name': 'distilled_page_proto',
124           'type': 'static_library',
125           'sources': [
126             'dom_distiller/core/proto/distilled_article.proto',
127             'dom_distiller/core/proto/distilled_page.proto',
128           ],
129           'variables': {
130             'proto_in_dir': 'dom_distiller/core/proto',
131             'proto_out_dir': 'components/dom_distiller/core/proto',
132           },
133           'includes': [ '../build/protoc.gypi' ]
134         },
135       ],
136       'conditions': [
137         ['OS != "ios"', {
138           'targets': [
139             {
140               'target_name': 'dom_distiller_content',
141               'type': 'static_library',
142               'dependencies': [
143                 '../content/content.gyp:content_browser',
144                 '../net/net.gyp:net',
145                 '../skia/skia.gyp:skia',
146                 '../sync/sync.gyp:sync',
147                 'components_resources.gyp:components_resources',
148                 'components_strings.gyp:components_strings',
149                 'dom_distiller_core',
150               ],
151               'include_dirs': [
152                 '..',
153               ],
154               'sources': [
155                 'dom_distiller/content/distiller_page_web_contents.cc',
156                 'dom_distiller/content/distiller_page_web_contents.h',
157                 'dom_distiller/content/dom_distiller_viewer_source.cc',
158                 'dom_distiller/content/dom_distiller_viewer_source.h',
159                 'dom_distiller/content/web_contents_main_frame_observer.cc',
160                 'dom_distiller/content/web_contents_main_frame_observer.h',
161               ],
162             },
163           ],
164         }],
165         ['OS=="android"', {
166           'targets': [
167             {
168               'target_name': 'dom_distiller_core_java',
169               'type': 'none',
170               'dependencies': [
171                 '../base/base.gyp:base',
172               ],
173               'variables': {
174                 'java_in_dir': 'dom_distiller/android/java',
175               },
176               'includes': [ '../build/java.gypi' ],
177             },
178             {
179               'target_name': 'dom_distiller_core_jni_headers',
180               'type': 'none',
181               'sources': [
182                 'dom_distiller/android/java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java',
183               ],
184               'variables': {
185                 'jni_gen_package': 'dom_distiller_core',
186               },
187               'includes': [ '../build/jni_generator.gypi' ],
188             },
189           ],
190         }],
191       ],
192     }],
193   ],