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