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