Add GN targets for codesighs and telemetry.
[chromium-blink-merge.git] / components / data_reduction_proxy.gypi
blob5184706ea0a6b4f8320d646034c3150d66f7ce80
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/content
10       'target_name': 'data_reduction_proxy_content',
11       'type': 'static_library',
12       'dependencies': [
13         '../base/base.gyp:base',
14         '../content/content.gyp:content_browser',
15         '../skia/skia.gyp:skia',
16         '../ui/base/ui_base.gyp:ui_base',
17         'components_resources.gyp:components_resources',
18         'components_strings.gyp:components_strings',
19       ],
20       'include_dirs': [
21         '..',
22       ],
23       'sources': [
24         # Note: sources list duplicated in GN build.
25         'data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.cc',
26         'data_reduction_proxy/content/browser/content_data_reduction_proxy_debug_ui_service.h',
27         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.cc',
28         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_blocking_page.h',
29         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.cc',
30         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_resource_throttle.h',
31         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.cc',
32         'data_reduction_proxy/content/browser/data_reduction_proxy_debug_ui_manager.h',
33       ],
34     },
35     {
36       # GN version: //components/data_reduction_proxy/core/browser
37       'target_name': 'data_reduction_proxy_core_browser',
38       'type': 'static_library',
39       'conditions': [
40         ['OS != "android" and OS != "ios"', {
41           'dependencies' : [
42             '../google_apis/google_apis.gyp:google_apis',
43           ]
44         }],
45       ],
46       'dependencies': [
47         'data_reduction_proxy_version_header',
48         '../base/base.gyp:base',
49         '../crypto/crypto.gyp:crypto',
50         '../net/net.gyp:net',
51         '../url/url.gyp:url_lib',
52         'data_reduction_proxy_core_common',
53         'pref_registry',
54       ],
55       'include_dirs': [
56         '..',
57       ],
58       'sources': [
59         # Note: sources list duplicated in GN build.
60         "data_reduction_proxy/core/browser/data_reduction_proxy_debug_ui_service.h",
61         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.cc',
62         'data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol.h',
63         'data_reduction_proxy/core/browser/data_reduction_proxy_config.cc',
64         'data_reduction_proxy/core/browser/data_reduction_proxy_config.h',
65         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.cc',
66         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h',
67         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.cc',
68         'data_reduction_proxy/core/browser/data_reduction_proxy_delegate.h',
69         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.cc',
70         'data_reduction_proxy/core/browser/data_reduction_proxy_interceptor.h',
71         'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.cc',
72         'data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h',
73         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.cc',
74         'data_reduction_proxy/core/browser/data_reduction_proxy_metrics.h',
75         'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.cc',
76         'data_reduction_proxy/core/browser/data_reduction_proxy_network_delegate.h',
77         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.cc',
78         'data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h',
79         'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.cc',
80         'data_reduction_proxy/core/browser/data_reduction_proxy_request_options.h',
81         'data_reduction_proxy/core/browser/data_reduction_proxy_service.cc',
82         'data_reduction_proxy/core/browser/data_reduction_proxy_service.h',
83         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.cc',
84         'data_reduction_proxy/core/browser/data_reduction_proxy_settings.h',
85         'data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.cc',
86         'data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h',
87         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.cc',
88         'data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h',
89         'data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.cc',
90         'data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h',
91       ],
92     },
93     {
94       # GN version: //components/data_reduction_proxy/core/common
95       'target_name': 'data_reduction_proxy_core_common',
96       'type': 'static_library',
97       'dependencies': [
98         '../base/base.gyp:base',
99         '../url/url.gyp:url_lib',
100       ],
101       'include_dirs': [
102         '..',
103       ],
104       'sources': [
105         # Note: sources list duplicated in GN build.
106         'data_reduction_proxy/core/common/data_reduction_proxy_bypass_type_list.h',
107         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.cc',
108         'data_reduction_proxy/core/common/data_reduction_proxy_event_store.h',
109         'data_reduction_proxy/core/common/data_reduction_proxy_headers.cc',
110         'data_reduction_proxy/core/common/data_reduction_proxy_headers.h',
111         'data_reduction_proxy/core/common/data_reduction_proxy_params.cc',
112         'data_reduction_proxy/core/common/data_reduction_proxy_params.h',
113         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.cc',
114         'data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h',
115         'data_reduction_proxy/core/common/data_reduction_proxy_switches.cc',
116         'data_reduction_proxy/core/common/data_reduction_proxy_switches.h',
117       ],
118     },
119     {
120       # GN version: //components/data_reduction_proxy/core/browser:test_support
121       'target_name': 'data_reduction_proxy_test_support',
122       'type': 'static_library',
123       'dependencies' : [
124         '../base/base.gyp:base',
125         '../net/net.gyp:net',
126         '../net/net.gyp:net_test_support',
127         '../testing/gmock.gyp:gmock',
128         '../testing/gtest.gyp:gtest',
129         'data_reduction_proxy_content',
130         'data_reduction_proxy_core_browser',
131         'data_reduction_proxy_core_common',
132       ],
133       'include_dirs': [
134         '..',
135       ],
136       'sources': [
137         # Note: sources list duplicated in GN build.
138         'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.cc',
139         'data_reduction_proxy/core/browser/data_reduction_proxy_config_test_utils.h',
140         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.cc',
141         'data_reduction_proxy/core/browser/data_reduction_proxy_configurator_test_utils.h',
142         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.cc',
143         'data_reduction_proxy/core/browser/data_reduction_proxy_settings_test_utils.h',
144         'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.cc',
145         'data_reduction_proxy/core/browser/data_reduction_proxy_test_utils.h',
146         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.cc',
147         'data_reduction_proxy/core/common/data_reduction_proxy_headers_test_utils.h',
148         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.cc',
149         'data_reduction_proxy/core/common/data_reduction_proxy_params_test_utils.h',
150       ],
151     },
152     {
153       'target_name': 'data_reduction_proxy_version_header',
154       'type': 'none',
155       'direct_dependent_settings': {
156         'include_dirs': [
157           '<(SHARED_INTERMEDIATE_DIR)',
158         ],
159       },
160       'actions': [
161         {
162           'action_name': 'version_header',
163           'message': 'Generating version header file: <@(_outputs)',
164           'inputs': [
165             '<(version_path)',
166             'data_reduction_proxy/core/common/version.h.in',
167           ],
168           'outputs': [
169             '<(SHARED_INTERMEDIATE_DIR)/components/data_reduction_proxy/core/common/version.h',
170           ],
171           'action': [
172             'python',
173             '<(version_py_path)',
174             '-e', 'VERSION_FULL="<(version_full)"',
175             'data_reduction_proxy/core/common/version.h.in',
176             '<@(_outputs)',
177           ],
178           'includes': [
179             '../build/util/version.gypi',
180           ],
181         },
182       ],
183     },
185   ],