Blink roll a6d61dbff0a4bce30fce5b29c2efb77a94ddc3ee:a11635f657e0f1ce75179fd7336a309a6...
[chromium-blink-merge.git] / components / domain_reliability.gypi
blobc210241e48dc3defe91284f28858e586c75a916c
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/domain_reliability
9       'target_name': 'domain_reliability',
10       'type': '<(component)',
11       'dependencies': [
12         '../base/base.gyp:base',
13         '../base/base.gyp:base_prefs',
14         '../components/components.gyp:keyed_service_core',
15         '../content/content.gyp:content_browser',
16         '../net/net.gyp:net',
17         '../url/url.gyp:url_lib',
18       ],
19       'include_dirs': [
20         '..',
21       ],
22       'defines': [
23         'DOMAIN_RELIABILITY_IMPLEMENTATION',
24       ],
25       'sources': [
26         # Note: sources list duplicated in GN build.
27         'domain_reliability/baked_in_configs.h',
28         'domain_reliability/beacon.cc',
29         'domain_reliability/beacon.h',
30         'domain_reliability/clear_mode.h',
31         'domain_reliability/config.cc',
32         'domain_reliability/config.h',
33         'domain_reliability/context.cc',
34         'domain_reliability/context.h',
35         'domain_reliability/dispatcher.cc',
36         'domain_reliability/dispatcher.h',
37         'domain_reliability/domain_reliability_export.h',
38         'domain_reliability/monitor.cc',
39         'domain_reliability/monitor.h',
40         'domain_reliability/scheduler.cc',
41         'domain_reliability/scheduler.h',
42         'domain_reliability/service.cc',
43         'domain_reliability/service.h',
44         'domain_reliability/uploader.cc',
45         'domain_reliability/uploader.h',
46         'domain_reliability/util.cc',
47         'domain_reliability/util.h',
48       ],
49       'actions': [
50         {
51           'action_name': 'bake_in_configs',
52           'variables': {
53             'bake_in_configs_script': 'domain_reliability/bake_in_configs.py',
54             'baked_in_configs_cc':
55                 '<(INTERMEDIATE_DIR)/domain_reliability/baked_in_configs.cc',
56             'baked_in_configs': [
57               'domain_reliability/baked_in_configs/accounts_google_com.json',
58               'domain_reliability/baked_in_configs/ad_doubleclick_net.json',
59               'domain_reliability/baked_in_configs/apis_google_com.json',
60               'domain_reliability/baked_in_configs/c_admob_com.json',
61               'domain_reliability/baked_in_configs/csi_gstatic_com.json',
62               'domain_reliability/baked_in_configs/ddm_google_com.json',
63               'domain_reliability/baked_in_configs/docs_google_com.json',
64               'domain_reliability/baked_in_configs/drive_google_com.json',
65               'domain_reliability/baked_in_configs/e_admob_com.json',
66               'domain_reliability/baked_in_configs/fonts_googleapis_com.json',
67               'domain_reliability/baked_in_configs/googleads4_g_doubleclick_net.json',
68               'domain_reliability/baked_in_configs/googleads_g_doubleclick_net.json',
69               'domain_reliability/baked_in_configs/gstatic_com.json',
70               'domain_reliability/baked_in_configs/lh3_ggpht_com.json',
71               'domain_reliability/baked_in_configs/lh4_ggpht_com.json',
72               'domain_reliability/baked_in_configs/lh5_ggpht_com.json',
73               'domain_reliability/baked_in_configs/lh6_ggpht_com.json',
74               'domain_reliability/baked_in_configs/mail_google_com.json',
75               'domain_reliability/baked_in_configs/media_admob_com.json',
76               'domain_reliability/baked_in_configs/pagead2_googlesyndication_com.json',
77               'domain_reliability/baked_in_configs/partner_googleadservices_com.json',
78               'domain_reliability/baked_in_configs/pubads_g_doubleclick_net.json',
79               'domain_reliability/baked_in_configs/redirector_googlevideo_com.json',
80               'domain_reliability/baked_in_configs/redirector_gvt1_com.json',
81               'domain_reliability/baked_in_configs/s0_2mdn_net.json',
82               'domain_reliability/baked_in_configs/ssl_gstatic_com.json',
83               'domain_reliability/baked_in_configs/star_admob_com.json',
84               'domain_reliability/baked_in_configs/star_doubleclick_net.json',
85               'domain_reliability/baked_in_configs/star_g_doubleclick_net.json',
86               'domain_reliability/baked_in_configs/star_ggpht_com.json',
87               'domain_reliability/baked_in_configs/star_google_cn.json',
88               'domain_reliability/baked_in_configs/star_google_co_uk.json',
89               'domain_reliability/baked_in_configs/star_google_com.json',
90               'domain_reliability/baked_in_configs/star_google_com_au.json',
91               'domain_reliability/baked_in_configs/star_google_de.json',
92               'domain_reliability/baked_in_configs/star_google_fr.json',
93               'domain_reliability/baked_in_configs/star_google_it.json',
94               'domain_reliability/baked_in_configs/star_google_jp.json',
95               'domain_reliability/baked_in_configs/star_google_org.json',
96               'domain_reliability/baked_in_configs/star_google_ru.json',
97               'domain_reliability/baked_in_configs/star_googleadservices_com.json',
98               'domain_reliability/baked_in_configs/star_googleapis_com.json',
99               'domain_reliability/baked_in_configs/star_googlesyndication_com.json',
100               'domain_reliability/baked_in_configs/star_googleusercontent_com.json',
101               'domain_reliability/baked_in_configs/star_googlevideo_com.json',
102               'domain_reliability/baked_in_configs/star_gstatic_com.json',
103               'domain_reliability/baked_in_configs/star_gvt1_com.json',
104               'domain_reliability/baked_in_configs/star_youtube_com.json',
105               'domain_reliability/baked_in_configs/star_ytimg_com.json',
106               'domain_reliability/baked_in_configs/t0_gstatic_com.json',
107               'domain_reliability/baked_in_configs/t1_gstatic_com.json',
108               'domain_reliability/baked_in_configs/t2_gstatic_com.json',
109               'domain_reliability/baked_in_configs/t3_gstatic_com.json',
110               'domain_reliability/baked_in_configs/themes_googleusercontent_com.json',
111               'domain_reliability/baked_in_configs/www_google_com.json',
112               'domain_reliability/baked_in_configs/www_googleadservices_com.json',
113               'domain_reliability/baked_in_configs/www_gstatic_com.json',
114               'domain_reliability/baked_in_configs/www_youtube_com.json',
115             ],
116           },
117           'inputs': [
118             '<(bake_in_configs_script)',
119             '<@(baked_in_configs)',
120           ],
121           'outputs': [
122             '<(baked_in_configs_cc)'
123           ],
124           'action': ['python',
125                      '<(bake_in_configs_script)',
126                      '<@(baked_in_configs)',
127                      '<(baked_in_configs_cc)'],
128           'process_outputs_as_sources': 1,
129           'message': 'Baking in Domain Reliability configs',
130         },
131       ],
132     },
133   ],