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