Add net_log events for data reduction proxy conditions. They will be exposed in the...
[chromium-blink-merge.git] / components / data_reduction_proxy.gypi
blobeda9490d30e8c039a2f10691f5821f8ce12b954b
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.
7   'targets': [
8     {
9       # GN version: //components/data_reduction_proxy/core/browser
10       'target_name': 'data_reduction_proxy_core_browser',
11       'type': 'static_library',
12       'conditions': [
13         ['OS != "android" and OS != "ios"', {
14           'dependencies' : [
15             '../google_apis/google_apis.gyp:google_apis',
16           ]
17         }],
18       ],
19       'dependencies': [
20         'data_reduction_proxy_version_header',
21         '../base/base.gyp:base',
22         '../crypto/crypto.gyp:crypto',
23         '../net/net.gyp:net',
24         'data_reduction_proxy_core_common',
25         'pref_registry',
26       ],
27       'include_dirs': [
28         '..',
29       ],
30       'sources': [
31         # Note: sources list duplicated in GN build.
32         'data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.cc',
33         'data_reduction_proxy/core/browser/data_reduction_proxy_auth_request_handler.h',
34         'data_reduction_proxy/core/browser/data_reduction_proxy_config_service.cc',
35         'data_reduction_proxy/core/browser/data_reduction_proxy_config_service.h',
36         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h',
37         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc',
38         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h',
39         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc',
40         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h',
41         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc',
42         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h',
43         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc',
44         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h',
45         'data_reduction_proxy/core/browser/data_reduction_proxy_protocol.cc',
46         'data_reduction_proxy/core/browser/data_reduction_proxy_protocol.h',
47         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc',
48         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.h',
49         'data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc',
50         'data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h',
51         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc',
52         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h',
53         'data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc',
54         'data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h',
55       ],
56     },
57     {
58       # GN version: //components/data_reduction_proxy/core/common
59       'target_name': 'data_reduction_proxy_core_common',
60       'type': 'static_library',
61       'dependencies': [
62         '../base/base.gyp:base',
63       ],
64       'include_dirs': [
65         '..',
66       ],
67       'sources': [
68         # Note: sources list duplicated in GN build.
69         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc',
70         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.h',
71         'data_reduction_proxy/core/common/data_reduction_proxy_headers.cc',
72         'data_reduction_proxy/core/common/data_reduction_proxy_headers.h',
73         'data_reduction_proxy/core/common/data_reduction_proxy_params.cc',
74         'data_reduction_proxy/core/common/data_reduction_proxy_params.h',
75         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc',
76         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h',
77         'data_reduction_proxy/core/common/data_reduction_proxy_switches.cc',
78         'data_reduction_proxy/core/common/data_reduction_proxy_switches.h',
79       ],
80     },
81     {
82       # GN version: //components/data_reduction_proxy/core/browser:test_support
83       'target_name': 'data_reduction_proxy_test_support',
84       'type': 'static_library',
85       'dependencies' : [
86         '../base/base.gyp:base',
87         '../net/net.gyp:net',
88         '../net/net.gyp:net_test_support',
89         '../testing/gmock.gyp:gmock',
90         '../testing/gtest.gyp:gtest',
91         'data_reduction_proxy_core_browser',
92         'data_reduction_proxy_core_common',
93       ],
94       'include_dirs': [
95         '..',
96       ],
97       'sources': [
98         # Note: sources list duplicated in GN build.
99         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc',
100         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h',
101         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.cc',
102         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h',
103         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc',
104         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h',
105       ],
106     },
107     {
108       'target_name': 'data_reduction_proxy_version_header',
109       'type': 'none',
110       'direct_dependent_settings': {
111         'include_dirs': [
112           '<(SHARED_INTERMEDIATE_DIR)',
113         ],
114       },
115       'actions': [
116         {
117           'action_name': 'version_header',
118           'message': 'Generating version header file: <@(_outputs)',
119           'inputs': [
120             '<(version_path)',
121             'data_reduction_proxy/core/common/version.h.in',
122           ],
123           'outputs': [
124             '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/core/common/version.h',
125           ],
126           'action': [
127             'python',
128             '<(version_py_path)',
129             '-e', 'VERSION_FULL="<(version_full)"',
130             'data_reduction_proxy/core/common/version.h.in',
131             '<@(_outputs)',
132           ],
133           'includes': [
134             '../build/util/version.gypi',
135           ],
136         },
137       ],
138     },
140   ],