Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: net/net_unittests.scons

Issue 53121: Remove the checked-in scons configuration files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/net_sln.scons ('k') | net/stress_cache.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright (c) 2006-2008 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 __doc__ = """
6 Configuration for building the net_unittests{,.exe} executable.
7 """
8
9 Import('env')
10
11 env = env.Clone()
12
13 env.ApplySConscript([
14 '$BASE_DIR/using_base.scons',
15 '$BZIP2_DIR/using_bzip2.scons',
16 '$CHROME_SRC_DIR/build/using_googleurl.scons',
17 '$CHROME_SRC_DIR/build/using_v8.scons',
18 '$GTEST_DIR/../using_gtest.scons',
19 '$ICU38_DIR/using_icu38.scons',
20 '$MODP_B64_DIR/using_modp_b64.scons',
21 '$NET_DIR/using_net.scons',
22 '$SDCH_DIR/using_sdch.scons',
23 '$ZLIB_DIR/using_zlib.scons',
24 ])
25
26 if env.Bit('posix'):
27 env.SConscript([
28 '$LIBEVENT_DIR/using_libevent.scons',
29 ], {'env':env})
30
31 if env.Bit('windows'):
32 env.Prepend(
33 CCFLAGS = [
34 '/WX',
35 ],
36 )
37
38 input_files = ChromeFileList([
39 # TODO(sgk): violate standard indentation so we don't have to
40 # reindent too much when we remove the explicit MSVSFilter() calls
41 # in favor of generating the hierarchy to reflect the file system.
42 MSVSFilter('support', [
43 # Built from build/precomiled_net.cc, net_lib.scons.
44 'precompiled_net$OBJSUFFIX',
45 'build/precompiled_net.h',
46 'base/run_all_unittests.cc',
47 ]),
48 MSVSFilter('tests', [
49 MSVSFilter('disk_cache', [
50 'disk_cache/addr_unittest.cc',
51 'disk_cache/backend_unittest.cc',
52 'disk_cache/block_files_unittest.cc',
53 'disk_cache/disk_cache_test_base.cc',
54 'disk_cache/disk_cache_test_base.h',
55 'disk_cache/disk_cache_test_util.cc',
56 'disk_cache/disk_cache_test_util.h',
57 'disk_cache/entry_unittest.cc',
58 'disk_cache/mapped_file_unittest.cc',
59 'disk_cache/storage_block_unittest.cc',
60 ]),
61 MSVSFilter('http', [
62 'http/des_unittest.cc',
63 'http/http_auth_cache_unittest.cc',
64 'http/http_auth_handler_basic_unittest.cc',
65 'http/http_auth_handler_digest_unittest.cc',
66 'http/http_auth_unittest.cc',
67 'http/http_cache_unittest.cc',
68 'http/http_chunked_decoder_unittest.cc',
69 'http/http_network_layer_unittest.cc',
70 'http/http_network_transaction_unittest.cc',
71 'http/http_response_headers_unittest.cc',
72 'http/http_transaction_unittest.cc',
73 'http/http_transaction_unittest.h',
74 'http/http_util_unittest.cc',
75 'http/http_vary_data_unittest.cc',
76 ]),
77 MSVSFilter('base', [
78 'base/base64_unittest.cc',
79 'base/bzip2_filter_unittest.cc',
80 'base/client_socket_pool_unittest.cc',
81 'base/tcp_pinger_unittest.cc',
82 'base/cookie_monster_unittest.cc',
83 'base/cookie_policy_unittest.cc',
84 'base/data_url_unittest.cc',
85 'base/directory_lister_unittest.cc',
86 'base/escape_unittest.cc',
87 'base/file_stream_unittest.cc',
88 'base/filter_unittest.cc',
89 'base/gzip_filter_unittest.cc',
90 'base/host_resolver_unittest.cc',
91 'base/listen_socket_unittest.cc',
92 'base/listen_socket_unittest.h',
93 'base/mime_sniffer_unittest.cc',
94 'base/mime_util_unittest.cc',
95 'base/net_util_unittest.cc',
96 'base/registry_controlled_domain_unittest.cc',
97 'base/sdch_filter_unittest.cc',
98 'base/ssl_client_socket_unittest.cc',
99 'base/ssl_config_service_unittest.cc',
100 'base/tcp_client_socket_unittest.cc',
101 'base/telnet_server_unittest.cc',
102 'base/test_completion_callback_unittest.cc',
103 'base/wininet_util_unittest.cc',
104 'base/x509_certificate_unittest.cc',
105 ]),
106 MSVSFilter('ftp', [
107 'ftp/ftp_auth_cache_unittest.cc',
108 ]),
109 MSVSFilter('url_request', [
110 'url_request/url_request_unittest.cc',
111 'url_request/url_request_unittest.h',
112 ]),
113 MSVSFilter('proxy', [
114 'proxy/proxy_list_unittest.cc',
115 'proxy/proxy_resolver_v8_unittest.cc',
116 'proxy/proxy_script_fetcher_unittest.cc',
117 'proxy/proxy_server_unittest.cc',
118 'proxy/proxy_service_unittest.cc',
119 ]),
120 ]),
121 ])
122
123 if not env.Bit('windows'):
124 input_files.Remove(
125 'base/wininet_util_unittest.cc',
126 'precompiled_net$OBJSUFFIX',
127 )
128
129 if env.Bit('linux'):
130 # TODO(port):
131 input_files.Remove(
132 'base/sdch_filter_unittest.cc',
133 'base/ssl_config_service_unittest.cc',
134 )
135
136 if env.Bit('mac'):
137 input_files.Extend([
138 '../base/platform_test_mac$OBJSUFFIX',
139 ])
140
141 # TODO(port):
142 input_files.Remove(
143 'base/x509_certificate_unittest.cc',
144 'base/sdch_filter_unittest.cc',
145 'base/ssl_config_service_unittest.cc',
146 'url_request/url_request_unittest.cc',
147 )
148
149 net_unittests = env.ChromeTestProgram('net_unittests', input_files)
150
151 p = env.ChromeMSVSProject('$NET_DIR/build/net_unittests.vcproj',
152 dest='$CHROME_SRC_DIR/net/build/net_unittests.vcproj',
153 guid='{E99DA267-BE90-4F45-88A1-6919DB2C7567}',
154 keyword='Win32Proj',
155 dependencies = [
156 '$BASE_DIR/build/base.vcproj',
157 '$BZIP2_DIR/bzip2.vcproj',
158 '$NET_DIR/build/net.vcproj',
159 '$MODP_B64_DIR/modp_b64.vcproj',
160 '$ZLIB_DIR/zlib.vcproj',
161 '$ICU38_DIR/build/icu.vcproj',
162 '$TESTING_DIR/gtest.vcproj',
163 '$GOOGLEURL_DIR/build/googleurl.vcproj',
164 '$SDCH_DIR/sdch.vcproj',
165 ],
166 # TODO: restore when we can derive all info,
167 # on all platforms, from the windows build targets.
168 #buildtargets=net_unittests,
169 files=input_files,
170 ConfigurationType='1')
171
172 p.AddConfig('Debug|Win32',
173 InheritedPropertySheets=[
174 '$(SolutionDir)../build/common.vsprops',
175 '$(SolutionDir)../build/debug.vsprops',
176 '$(SolutionDir)../testing/using_gtest.vsprops',
177 ],
178 tools=[
179 'VCPreBuildEventTool',
180 'VCCustomBuildTool',
181 'VCXMLDataGeneratorTool',
182 'VCWebServiceProxyGeneratorTool',
183 'VCMIDLTool',
184 MSVSTool('VCCLCompilerTool',
185 PrecompiledHeaderThrough='precompiled_net.h',
186 ForcedIncludeFiles='precompiled_net.h',
187 PreprocessorDefinitions='UNIT_TEST',
188 UsePrecompiledHeader='2'),
189 'VCManagedResourceCompilerTool',
190 'VCResourceCompilerTool',
191 'VCPreLinkEventTool',
192 'VCLinkerTool',
193 'VCALinkTool',
194 'VCManifestTool',
195 'VCXDCMakeTool',
196 'VCBscMakeTool',
197 'VCFxCopTool',
198 'VCAppVerifierTool',
199 'VCWebDeploymentTool',
200 'VCPostBuildEventTool',
201 ])
202
203 p.AddConfig('Release|Win32',
204 InheritedPropertySheets=[
205 '$(SolutionDir)../build/common.vsprops',
206 '$(SolutionDir)../build/release.vsprops',
207 '$(SolutionDir)../testing/using_gtest.vsprops',
208 ],
209 tools=[
210 'VCPreBuildEventTool',
211 'VCCustomBuildTool',
212 'VCXMLDataGeneratorTool',
213 'VCWebServiceProxyGeneratorTool',
214 'VCMIDLTool',
215 MSVSTool('VCCLCompilerTool',
216 PreprocessorDefinitions='UNIT_TEST'),
217 'VCManagedResourceCompilerTool',
218 'VCResourceCompilerTool',
219 'VCPreLinkEventTool',
220 'VCLinkerTool',
221 'VCALinkTool',
222 'VCManifestTool',
223 'VCXDCMakeTool',
224 'VCBscMakeTool',
225 'VCFxCopTool',
226 'VCAppVerifierTool',
227 'VCWebDeploymentTool',
228 'VCPostBuildEventTool',
229 ])
230
231 # TODO: Remove when we can derive this information
232 p.AddFileConfig('build/precompiled_net.cc',
233 'Debug|Win32',
234 tools=[
235 MSVSTool('VCCLCompilerTool',
236 UsePrecompiledHeader='1'),
237 ])
238
239 # TODO: Remove when we can derive this information
240 p.AddFileConfig('build/precompiled_net.cc',
241 'Release|Win32',
242 ExcludedFromBuild='true',
243 tools=[
244 'VCCLCompilerTool',
245 ])
OLDNEW
« no previous file with comments | « net/net_sln.scons ('k') | net/stress_cache.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698