Using pre-existing constants instead of hard-coding
[chromium-blink-merge.git] / components / domain_reliability.gypi
blobb1ade2cd72ade17daa4a22bf9214e5ec6ab46a3d
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       'target_name': 'domain_reliability',
9       'type': '<(component)',
10       'dependencies': [
11         '../base/base.gyp:base',
12         '../content/content.gyp:content_browser',
13         '../net/net.gyp:net',
14         '../url/url.gyp:url_lib',
15       ],
16       'include_dirs': [
17         '..',
18       ],
19       'defines': [
20         'DOMAIN_RELIABILITY_IMPLEMENTATION',
21       ],
22       'sources': [
23         'domain_reliability/baked_in_configs.h',
24         'domain_reliability/beacon.cc',
25         'domain_reliability/beacon.h',
26         'domain_reliability/clear_mode.h',
27         'domain_reliability/config.cc',
28         'domain_reliability/config.h',
29         'domain_reliability/context.cc',
30         'domain_reliability/context.h',
31         'domain_reliability/dispatcher.cc',
32         'domain_reliability/dispatcher.h',
33         'domain_reliability/domain_reliability_export.h',
34         'domain_reliability/monitor.cc',
35         'domain_reliability/monitor.h',
36         'domain_reliability/scheduler.cc',
37         'domain_reliability/scheduler.h',
38         'domain_reliability/uploader.cc',
39         'domain_reliability/uploader.h',
40         'domain_reliability/util.cc',
41         'domain_reliability/util.h',
42       ],
43       'actions': [
44         {
45           'action_name': 'bake_in_configs',
46           'variables': {
47             'bake_in_configs_script': 'domain_reliability/bake_in_configs.py',
48             'baked_in_configs_cc':
49                 '<(INTERMEDIATE_DIR)/domain_reliability/baked_in_configs.cc',
50             'baked_in_configs': [
51               'domain_reliability/baked_in_configs/apis_google_com.json',
52               'domain_reliability/baked_in_configs/ddm_google_com.json',
53               'domain_reliability/baked_in_configs/drive_google_com.json',
54               'domain_reliability/baked_in_configs/mail_google_com.json',
55               'domain_reliability/baked_in_configs/ssl_gstatic_com.json',
56               'domain_reliability/baked_in_configs/www_google_com.json',
57               'domain_reliability/baked_in_configs/www_youtube_com.json',
58             ],
59           },
60           'inputs': [
61             '<(bake_in_configs_script)',
62             '<@(baked_in_configs)',
63           ],
64           'outputs': [
65             '<(baked_in_configs_cc)'
66           ],
67           'action': ['python',
68                      '<(bake_in_configs_script)',
69                      '<@(baked_in_configs)',
70                      '<(baked_in_configs_cc)'],
71           'process_outputs_as_sources': 1,
72           'message': 'Baking in Domain Reliability configs',
73         },
74       ],
75     },
76   ],