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