Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / components / domain_reliability.gypi
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.
4
5 {
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         '../components/components.gyp:keyed_service_core',
14         '../content/content.gyp:content_browser',
15         '../net/net.gyp:net',
16         '../url/url.gyp:url_lib',
17       ],
18       'include_dirs': [
19         '..',
20       ],
21       'defines': [
22         'DOMAIN_RELIABILITY_IMPLEMENTATION',
23       ],
24       'sources': [
25         # Note: sources list duplicated in GN build.
26         'domain_reliability/baked_in_configs.h',
27         'domain_reliability/beacon.cc',
28         'domain_reliability/beacon.h',
29         'domain_reliability/clear_mode.h',
30         'domain_reliability/config.cc',
31         'domain_reliability/config.h',
32         'domain_reliability/context.cc',
33         'domain_reliability/context.h',
34         'domain_reliability/dispatcher.cc',
35         'domain_reliability/dispatcher.h',
36         'domain_reliability/domain_reliability_export.h',
37         'domain_reliability/monitor.cc',
38         'domain_reliability/monitor.h',
39         'domain_reliability/scheduler.cc',
40         'domain_reliability/scheduler.h',
41         'domain_reliability/service.cc',
42         'domain_reliability/service.h',
43         'domain_reliability/uploader.cc',
44         'domain_reliability/uploader.h',
45         'domain_reliability/util.cc',
46         'domain_reliability/util.h',
47       ],
48       'actions': [
49         {
50           'action_name': 'bake_in_configs',
51           'variables': {
52             'bake_in_configs_script': 'domain_reliability/bake_in_configs.py',
53             'baked_in_configs_cc':
54                 '<(INTERMEDIATE_DIR)/domain_reliability/baked_in_configs.cc',
55             'baked_in_configs': [
56               'domain_reliability/baked_in_configs/accounts_google_com.json',
57               'domain_reliability/baked_in_configs/ad_doubleclick_net.json',
58               'domain_reliability/baked_in_configs/apis_google_com.json',
59               'domain_reliability/baked_in_configs/c_admob_com.json',
60               'domain_reliability/baked_in_configs/csi_gstatic_com.json',
61               'domain_reliability/baked_in_configs/ddm_google_com.json',
62               'domain_reliability/baked_in_configs/docs_google_com.json',
63               'domain_reliability/baked_in_configs/drive_google_com.json',
64               'domain_reliability/baked_in_configs/e_admob_com.json',
65               'domain_reliability/baked_in_configs/fonts_googleapis_com.json',
66               'domain_reliability/baked_in_configs/googleads4_g_doubleclick_net.json',
67               'domain_reliability/baked_in_configs/googleads_g_doubleclick_net.json',
68               'domain_reliability/baked_in_configs/gstatic_com.json',
69               'domain_reliability/baked_in_configs/lh3_ggpht_com.json',
70               'domain_reliability/baked_in_configs/lh4_ggpht_com.json',
71               'domain_reliability/baked_in_configs/lh5_ggpht_com.json',
72               'domain_reliability/baked_in_configs/lh6_ggpht_com.json',
73               'domain_reliability/baked_in_configs/mail_google_com.json',
74               'domain_reliability/baked_in_configs/media_admob_com.json',
75               'domain_reliability/baked_in_configs/pagead2_googlesyndication_com.json',
76               'domain_reliability/baked_in_configs/partner_googleadservices_com.json',
77               'domain_reliability/baked_in_configs/pubads_g_doubleclick_net.json',
78               'domain_reliability/baked_in_configs/redirector_googlevideo_com.json',
79               'domain_reliability/baked_in_configs/redirector_gvt1_com.json',
80               'domain_reliability/baked_in_configs/s0_2mdn_net.json',
81               'domain_reliability/baked_in_configs/ssl_gstatic_com.json',
82               'domain_reliability/baked_in_configs/t0_gstatic_com.json',
83               'domain_reliability/baked_in_configs/t1_gstatic_com.json',
84               'domain_reliability/baked_in_configs/t2_gstatic_com.json',
85               'domain_reliability/baked_in_configs/t3_gstatic_com.json',
86               'domain_reliability/baked_in_configs/themes_googleusercontent_com.json',
87               'domain_reliability/baked_in_configs/www_google_com.json',
88               'domain_reliability/baked_in_configs/www_googleadservices_com.json',
89               'domain_reliability/baked_in_configs/www_gstatic_com.json',
90               'domain_reliability/baked_in_configs/www_youtube_com.json',
91             ],
92           },
93           'inputs': [
94             '<(bake_in_configs_script)',
95             '<@(baked_in_configs)',
96           ],
97           'outputs': [
98             '<(baked_in_configs_cc)'
99           ],
100           'action': ['python',
101                      '<(bake_in_configs_script)',
102                      '<@(baked_in_configs)',
103                      '<(baked_in_configs_cc)'],
104           'process_outputs_as_sources': 1,
105           'message': 'Baking in Domain Reliability configs',
106         },
107       ],
108     },
109   ],
110 }