summaryrefslogtreecommitdiffstats
path: root/components/network_hints.gypi
blob: 418d79e2c293d93491e270508e1f747a40584cae (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
72
73
# Copyright 2014 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.

{
  'targets': [
    {
      # GN version: //components/network_hints/common
      'target_name': 'network_hints_common',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../base/base.gyp:base',
        '../ui/accessibility/accessibility.gyp:accessibility',
      ],
      'sources': [
        'network_hints/common/network_hints_common.cc',
        'network_hints/common/network_hints_common.h',
        'network_hints/common/network_hints_message_generator.cc',
        'network_hints/common/network_hints_message_generator.h',
        'network_hints/common/network_hints_messages.cc',
        'network_hints/common/network_hints_messages.h',
      ],
    },
    {
      # GN version: //components/network_hints/browser
      'target_name': 'network_hints_browser',
      'type': 'static_library',
      'include_dirs': [
        '..',
      ],
      'dependencies': [
        '../content/content.gyp:content_browser',
        '../net/net.gyp:net',
      ],
      'sources': [
        'network_hints/browser/network_hints_message_filter.cc',
        'network_hints/browser/network_hints_message_filter.h',
      ],
    },
  ],
  'conditions': [
    ['OS!="ios"', {
      'targets': [
        {
          # GN version: //components/network_hints/renderer
          'target_name': 'network_hints_renderer',
          'type': 'static_library',
          'include_dirs': [
            '..',
          ],
          'dependencies': [
            'network_hints_common',
            '../content/content.gyp:content_renderer',
            '../third_party/WebKit/public/blink.gyp:blink',
          ],
          'sources': [
            'network_hints/renderer/dns_prefetch_queue.cc',
            'network_hints/renderer/dns_prefetch_queue.h',
            'network_hints/renderer/prescient_networking_dispatcher.cc',
            'network_hints/renderer/prescient_networking_dispatcher.h',
            'network_hints/renderer/renderer_dns_prefetch.cc',
            'network_hints/renderer/renderer_dns_prefetch.h',
            'network_hints/renderer/renderer_preconnect.cc',
            'network_hints/renderer/renderer_preconnect.h',
          ],
        },
      ],
    }],
  ],
}