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