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