summaryrefslogtreecommitdiffstats
path: root/components/dom_distiller.gypi
blob: edfadd4d58ac9dfe5aaa2bfd356da33c021a3bea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
  'conditions': [
    ['android_webview_build == 0', {
      'targets': [
        {
          'target_name': 'dom_distiller_webui',
          'type': 'static_library',
          'dependencies': [
            'component_strings.gyp:component_strings',
            'dom_distiller_core',
            'dom_distiller_resources',
            '../base/base.gyp:base',
            '../content/content.gyp:content_browser',
            '../skia/skia.gyp:skia',
          ],
          'include_dirs': [
            '..',
          ],
          'sources': [
            'dom_distiller/webui/dom_distiller_ui.cc',
            'dom_distiller/webui/dom_distiller_ui.h',
            'dom_distiller/webui/dom_distiller_handler.cc',
            'dom_distiller/webui/dom_distiller_handler.h',
          ],
        },
        {
          'target_name': 'dom_distiller_resources',
          'type': 'none',
          'variables': {
            'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/components',
          },
          'actions': [
            {
              'action_name': 'dom_distiller_resources',
              'variables': {
                'grit_grd_file': 'dom_distiller_resources.grd',
              },
              'includes': [ '../build/grit_action.gypi' ],
            },
          ],
          'includes': [ '../build/grit_target.gypi' ],
        },
        {
          'target_name': 'dom_distiller_core',
          'type': 'static_library',
          'dependencies': [
            '../base/base.gyp:base',
            '../sync/sync.gyp:sync',
            '../third_party/protobuf/protobuf.gyp:protobuf_lite',
            '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase',
          ],
          'include_dirs': [
            '..',
          ],
          'sources': [
            'dom_distiller/core/article_entry.cc',
            'dom_distiller/core/article_entry.h',
            'dom_distiller/core/dom_distiller_constants.cc',
            'dom_distiller/core/dom_distiller_constants.h',
            'dom_distiller/core/dom_distiller_database.cc',
            'dom_distiller/core/dom_distiller_database.h',
          ],
        },
      ],
    }],
  ],
}