• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5{
6  'conditions': [
7    ['android_webview_build == 0', {
8      'targets': [
9        {
10          'target_name': 'dom_distiller_webui',
11          'type': 'static_library',
12          'dependencies': [
13            'component_strings.gyp:component_strings',
14            'distilled_page_proto',
15            'dom_distiller_core',
16            'dom_distiller_resources',
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_resources',
34          'type': 'none',
35          'variables': {
36            'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components',
37          },
38          'actions': [
39            {
40              'action_name': 'dom_distiller_resources',
41              'variables': {
42                'grit_grd_file': 'dom_distiller_resources.grd',
43              },
44              'includes': [ '../build/grit_action.gypi' ],
45            },
46          ],
47          'includes': [ '../build/grit_target.gypi' ],
48        },
49        {
50          'target_name': 'dom_distiller_core',
51          'type': 'static_library',
52          'dependencies': [
53            'distilled_page_proto',
54            'dom_distiller_resources',
55            '../base/base.gyp:base',
56            '../skia/skia.gyp:skia',
57            '../sync/sync.gyp:sync',
58            '../third_party/protobuf/protobuf.gyp:protobuf_lite',
59            '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
60          ],
61          'include_dirs': [
62            '..',
63          ],
64          'export_dependent_settings': [
65            'distilled_page_proto',
66          ],
67          'sources': [
68            'dom_distiller/core/article_entry.cc',
69            'dom_distiller/core/article_entry.h',
70            'dom_distiller/core/distiller.cc',
71            'dom_distiller/core/distiller.h',
72            'dom_distiller/core/distiller_page.cc',
73            'dom_distiller/core/distiller_page.h',
74            'dom_distiller/core/distiller_url_fetcher.cc',
75            'dom_distiller/core/distiller_url_fetcher.h',
76            'dom_distiller/core/dom_distiller_constants.cc',
77            'dom_distiller/core/dom_distiller_constants.h',
78            'dom_distiller/core/dom_distiller_database.cc',
79            'dom_distiller/core/dom_distiller_database.h',
80            'dom_distiller/core/dom_distiller_model.cc',
81            'dom_distiller/core/dom_distiller_model.h',
82            'dom_distiller/core/dom_distiller_observer.h',
83            'dom_distiller/core/dom_distiller_service.cc',
84            'dom_distiller/core/dom_distiller_service.h',
85            'dom_distiller/core/dom_distiller_store.cc',
86            'dom_distiller/core/dom_distiller_store.h',
87            'dom_distiller/core/task_tracker.cc',
88            'dom_distiller/core/task_tracker.h',
89          ],
90        },
91        {
92          'target_name': 'distilled_page_proto',
93          'type': 'static_library',
94          'sources': [
95            'dom_distiller/core/proto/distilled_page.proto',
96          ],
97          'variables': {
98            'proto_in_dir': 'dom_distiller/core/proto',
99            'proto_out_dir': 'components/dom_distiller/core/proto',
100          },
101          'includes': [ '../build/protoc.gypi' ]
102        },
103      ],
104      'conditions': [
105        ['OS != "ios"', {
106          'targets': [
107            {
108              'target_name': 'dom_distiller_content',
109              'type': 'static_library',
110              'dependencies': [
111                'dom_distiller_core',
112                '../skia/skia.gyp:skia',
113                '../sync/sync.gyp:sync',
114              ],
115              'include_dirs': [
116                '..',
117              ],
118              'sources': [
119                'dom_distiller/content/distiller_page_web_contents.cc',
120                'dom_distiller/content/distiller_page_web_contents.h',
121              ],
122            },
123          ],
124        }],
125      ],
126    }],
127  ],
128}
129