Roll src/third_party/WebKit 9f7fb92:f103b33 (svn 202621:202622)
[chromium-blink-merge.git] / components / domain_reliability.gypi
blob4412b612aeb5a62e4e15a1c9d6ee9f0a94d0ae56
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   'includes': [
7     'domain_reliability/baked_in_configs.gypi',
8   ],
9   'targets': [
10     {
11       # GN version: //components/domain_reliability
12       'target_name': 'domain_reliability',
13       'type': '<(component)',
14       'dependencies': [
15         '../base/base.gyp:base',
16         '../base/base.gyp:base_prefs',
17         '../components/components.gyp:data_use_measurement_core',
18         '../components/components.gyp:keyed_service_core',
19         '../content/content.gyp:content_browser',
20         '../net/net.gyp:net',
21         '../url/url.gyp:url_lib',
22       ],
23       'include_dirs': [
24         '..',
25       ],
26       'defines': [
27         'DOMAIN_RELIABILITY_IMPLEMENTATION',
28       ],
29       'sources': [
30         # Note: sources list duplicated in GN build.
31         'domain_reliability/baked_in_configs.h',
32         'domain_reliability/beacon.cc',
33         'domain_reliability/beacon.h',
34         'domain_reliability/clear_mode.h',
35         'domain_reliability/config.cc',
36         'domain_reliability/config.h',
37         'domain_reliability/context.cc',
38         'domain_reliability/context.h',
39         'domain_reliability/context_manager.cc',
40         'domain_reliability/context_manager.h',
41         'domain_reliability/dispatcher.cc',
42         'domain_reliability/dispatcher.h',
43         'domain_reliability/domain_reliability_export.h',
44         'domain_reliability/monitor.cc',
45         'domain_reliability/monitor.h',
46         'domain_reliability/scheduler.cc',
47         'domain_reliability/scheduler.h',
48         'domain_reliability/service.cc',
49         'domain_reliability/service.h',
50         'domain_reliability/uploader.cc',
51         'domain_reliability/uploader.h',
52         'domain_reliability/util.cc',
53         'domain_reliability/util.h',
54       ],
55       'actions': [
56         {
57           'action_name': 'bake_in_configs',
58           'variables': {
59             'bake_in_configs_script': 'domain_reliability/bake_in_configs.py',
60             'baked_in_configs_cc':
61                 '<(INTERMEDIATE_DIR)/domain_reliability/baked_in_configs.cc',
62           },
63           'inputs': [
64             '<(bake_in_configs_script)',
65             '<@(baked_in_configs)',
66           ],
67           'outputs': [
68             '<(baked_in_configs_cc)'
69           ],
70           # The actual list of JSON files will overflow the command line length
71           # limit on Windows, so pass the name of the .gypi file and
72           # bake_in_configs.py will read the filenames out of it manually.
73           'action': ['python',
74                      '<(bake_in_configs_script)',
75                      '.',
76                      'domain_reliability/baked_in_configs.gypi',
77                      '<(baked_in_configs_cc)'],
78           'process_outputs_as_sources': 1,
79           'message': 'Baking in Domain Reliability configs',
80         },
81       ],
82     },
83   ],