Revert 253521 "Introduce telemetry.web_components and a simple c..."
[chromium-blink-merge.git] / components / dom_distiller.gypi
blob78bda80187f00b9fc800bf3d30e224370d503d10
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             'component_resources.gyp:component_resources',
14             'component_strings.gyp:component_strings',
15             'distilled_page_proto',
16             'dom_distiller_core',
17             '../base/base.gyp:base',
18             '../content/content.gyp:content_browser',
19             '../skia/skia.gyp:skia',
20             '../sync/sync.gyp:sync',
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             'component_resources.gyp:component_resources',
37             'distilled_page_proto',
38             '../base/base.gyp:base',
39             '../skia/skia.gyp:skia',
40             '../sync/sync.gyp:sync',
41             '../third_party/protobuf/protobuf.gyp:protobuf_lite',
42             '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
43           ],
44           'include_dirs': [
45             '..',
46           ],
47           'export_dependent_settings': [
48             'distilled_page_proto',
49           ],
50           'sources': [
51             'dom_distiller/core/article_entry.cc',
52             'dom_distiller/core/article_entry.h',
53             'dom_distiller/core/distiller.cc',
54             'dom_distiller/core/distiller.h',
55             'dom_distiller/core/distiller_page.cc',
56             'dom_distiller/core/distiller_page.h',
57             'dom_distiller/core/distiller_url_fetcher.cc',
58             'dom_distiller/core/distiller_url_fetcher.h',
59             'dom_distiller/core/dom_distiller_constants.cc',
60             'dom_distiller/core/dom_distiller_constants.h',
61             'dom_distiller/core/dom_distiller_database.cc',
62             'dom_distiller/core/dom_distiller_database.h',
63             'dom_distiller/core/dom_distiller_model.cc',
64             'dom_distiller/core/dom_distiller_model.h',
65             'dom_distiller/core/dom_distiller_observer.h',
66             'dom_distiller/core/dom_distiller_service.cc',
67             'dom_distiller/core/dom_distiller_service.h',
68             'dom_distiller/core/dom_distiller_store.cc',
69             'dom_distiller/core/dom_distiller_store.h',
70             'dom_distiller/core/page_distiller.cc',
71             'dom_distiller/core/page_distiller.h',
72             'dom_distiller/core/task_tracker.cc',
73             'dom_distiller/core/task_tracker.h',
74           ],
75         },
76         {
77           'target_name': 'dom_distiller_test_support',
78           'type': 'static_library',
79           'dependencies': [
80             'dom_distiller_core',
81             '../sync/sync.gyp:sync',
82             '../testing/gmock.gyp:gmock',
83           ],
84           'include_dirs': [
85             '..',
86           ],
87           'sources': [
88             'dom_distiller/core/dom_distiller_test_util.cc',
89             'dom_distiller/core/dom_distiller_test_util.h',
90             'dom_distiller/core/fake_db.cc',
91             'dom_distiller/core/fake_db.h',
92             'dom_distiller/core/fake_distiller.cc',
93             'dom_distiller/core/fake_distiller.h',
94           ],
95         },
96         {
97           'target_name': 'distilled_page_proto',
98           'type': 'static_library',
99           'sources': [
100             'dom_distiller/core/proto/distilled_article.proto',
101             'dom_distiller/core/proto/distilled_page.proto',
102           ],
103           'variables': {
104             'proto_in_dir': 'dom_distiller/core/proto',
105             'proto_out_dir': 'components/dom_distiller/core/proto',
106           },
107           'includes': [ '../build/protoc.gypi' ]
108         },
109       ],
110       'conditions': [
111         ['OS != "ios"', {
112           'targets': [
113             {
114               'target_name': 'dom_distiller_content',
115               'type': 'static_library',
116               'dependencies': [
117                 'component_resources.gyp:component_resources',
118                 'component_strings.gyp:component_strings',
119                 'dom_distiller_core',
120                 '../net/net.gyp:net',
121                 '../skia/skia.gyp:skia',
122                 '../sync/sync.gyp:sync',
123               ],
124               'include_dirs': [
125                 '..',
126               ],
127               'sources': [
128                 'dom_distiller/content/distiller_page_web_contents.cc',
129                 'dom_distiller/content/distiller_page_web_contents.h',
130                 'dom_distiller/content/dom_distiller_viewer_source.cc',
131                 'dom_distiller/content/dom_distiller_viewer_source.h',
132               ],
133             },
134           ],
135         }],
136       ],
137     }],
138   ],