components: Fix 'gn check' errors for the targets under bookmarks/.
[chromium-blink-merge.git] / components / network_hints.gypi
blob418d79e2c293d93491e270508e1f747a40584cae
1 # Copyright 2014 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   'targets': [
7     {
8       # GN version: //components/network_hints/common
9       'target_name': 'network_hints_common',
10       'type': 'static_library',
11       'include_dirs': [
12         '..',
13       ],
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../ui/accessibility/accessibility.gyp:accessibility',
17       ],
18       'sources': [
19         'network_hints/common/network_hints_common.cc',
20         'network_hints/common/network_hints_common.h',
21         'network_hints/common/network_hints_message_generator.cc',
22         'network_hints/common/network_hints_message_generator.h',
23         'network_hints/common/network_hints_messages.cc',
24         'network_hints/common/network_hints_messages.h',
25       ],
26     },
27     {
28       # GN version: //components/network_hints/browser
29       'target_name': 'network_hints_browser',
30       'type': 'static_library',
31       'include_dirs': [
32         '..',
33       ],
34       'dependencies': [
35         '../content/content.gyp:content_browser',
36         '../net/net.gyp:net',
37       ],
38       'sources': [
39         'network_hints/browser/network_hints_message_filter.cc',
40         'network_hints/browser/network_hints_message_filter.h',
41       ],
42     },
43   ],
44   'conditions': [
45     ['OS!="ios"', {
46       'targets': [
47         {
48           # GN version: //components/network_hints/renderer
49           'target_name': 'network_hints_renderer',
50           'type': 'static_library',
51           'include_dirs': [
52             '..',
53           ],
54           'dependencies': [
55             'network_hints_common',
56             '../content/content.gyp:content_renderer',
57             '../third_party/WebKit/public/blink.gyp:blink',
58           ],
59           'sources': [
60             'network_hints/renderer/dns_prefetch_queue.cc',
61             'network_hints/renderer/dns_prefetch_queue.h',
62             'network_hints/renderer/prescient_networking_dispatcher.cc',
63             'network_hints/renderer/prescient_networking_dispatcher.h',
64             'network_hints/renderer/renderer_dns_prefetch.cc',
65             'network_hints/renderer/renderer_dns_prefetch.h',
66             'network_hints/renderer/renderer_preconnect.cc',
67             'network_hints/renderer/renderer_preconnect.h',
68           ],
69         },
70       ],
71     }],
72   ],