OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 __doc__ = """ | 5 __doc__ = """ |
6 Configuration for building net.lib / libnet.a. | 6 Configuration for building net.lib / libnet.a. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 env = env.Clone(COMPONENT_STATIC=True) | 11 env = env.Clone() |
12 | 12 |
13 env.ApplySConscript([ | 13 env.ApplySConscript([ |
14 '$GRIT_DIR/build/using_generated_resources.scons', | 14 '$GRIT_DIR/build/using_generated_resources.scons', |
15 '$ICU38_DIR/using_icu38.scons', | 15 '$ICU38_DIR/using_icu38.scons', |
16 '$SDCH_DIR/using_sdch.scons', | 16 '$SDCH_DIR/using_sdch.scons', |
17 '$ZLIB_DIR/using_zlib.scons', | 17 '$ZLIB_DIR/using_zlib.scons', |
18 ]) | 18 ]) |
19 | 19 |
20 input_files = ChromeFileList([ | 20 # These net files work on *all* platforms; files that don't work |
21 MSVSFilter('base', [ | 21 # cross-platform live below. |
| 22 input_files = [ |
22 'base/address_list.cc', | 23 'base/address_list.cc', |
23 'base/address_list.h', | |
24 'base/auth.h', | |
25 'base/auth_cache.cc', | 24 'base/auth_cache.cc', |
26 'base/auth_cache.h', | |
27 'base/base64.cc', | 25 'base/base64.cc', |
28 'base/base64.h', | |
29 'base/bzip2_filter.cc', | 26 'base/bzip2_filter.cc', |
30 'base/bzip2_filter.h', | |
31 'base/cert_status_flags.h', | |
32 'base/client_socket.h', | |
33 'base/client_socket_factory.cc', | 27 'base/client_socket_factory.cc', |
34 'base/client_socket_factory.h', | |
35 'base/client_socket_handle.cc', | 28 'base/client_socket_handle.cc', |
36 'base/client_socket_handle.h', | |
37 'base/client_socket_pool.cc', | 29 'base/client_socket_pool.cc', |
38 'base/client_socket_pool.h', | |
39 'base/completion_callback.h', | |
40 'base/cookie_monster.cc', | 30 'base/cookie_monster.cc', |
41 'base/cookie_monster.h', | |
42 'base/cookie_policy.cc', | 31 'base/cookie_policy.cc', |
43 'base/cookie_policy.h', | |
44 'base/data_url.cc', | 32 'base/data_url.cc', |
45 'base/data_url.h', | |
46 'base/directory_lister.cc', | 33 'base/directory_lister.cc', |
47 'base/directory_lister.h', | |
48 'base/dns_resolution_observer.cc', | 34 'base/dns_resolution_observer.cc', |
49 'base/dns_resolution_observer.h', | |
50 'base/effective_tld_names.dat', | |
51 'base/escape.cc', | 35 'base/escape.cc', |
52 'base/escape.h', | |
53 'base/ev_root_ca_metadata.cc', | 36 'base/ev_root_ca_metadata.cc', |
54 'base/ev_root_ca_metadata.h', | |
55 'base/file_stream.h', | |
56 'base/file_stream_win.cc', | |
57 'base/filter.cc', | 37 'base/filter.cc', |
58 'base/filter.h', | |
59 'base/gzip_filter.cc', | 38 'base/gzip_filter.cc', |
60 'base/gzip_filter.h', | |
61 'base/gzip_header.cc', | 39 'base/gzip_header.cc', |
62 'base/gzip_header.h', | |
63 'base/host_resolver.cc', | 40 'base/host_resolver.cc', |
64 'base/host_resolver.h', | |
65 'base/listen_socket.cc', | 41 'base/listen_socket.cc', |
66 'base/listen_socket.h', | |
67 'base/load_flags.h', | |
68 'base/mime_sniffer.cc', | 42 'base/mime_sniffer.cc', |
69 'base/mime_sniffer.h', | |
70 'base/mime_util.cc', | 43 'base/mime_util.cc', |
71 'base/mime_util.h', | |
72 'base/net_error_list.h', | |
73 'base/net_errors.cc', | 44 'base/net_errors.cc', |
74 'base/net_errors.h', | |
75 'base/net_module.cc', | 45 'base/net_module.cc', |
76 'base/net_module.h', | |
77 'base/net_resources.h', | |
78 'base/net_util.cc', | 46 'base/net_util.cc', |
79 'base/net_util.h', | |
80 'base/net_util_win.cc', | |
81 'base/platform_mime_util.h', | |
82 'base/platform_mime_util_win.cc', | |
83 'build/precompiled_net.cc', | |
84 'build/precompiled_net.h', | |
85 'base/registry_controlled_domain.cc', | 47 'base/registry_controlled_domain.cc', |
86 'base/registry_controlled_domain.h', | |
87 'base/scoped_cert_chain_context.h', | |
88 'base/sdch_filter.cc', | 48 'base/sdch_filter.cc', |
89 'base/sdch_filter.h', | |
90 'base/sdch_manager.cc', | 49 'base/sdch_manager.cc', |
91 'base/sdch_manager.h', | |
92 'base/socket.h', | |
93 'base/ssl_client_socket.h', | |
94 'base/ssl_client_socket_win.cc', | |
95 'base/ssl_client_socket_win.h', | |
96 'base/ssl_config_service.cc', | 50 'base/ssl_config_service.cc', |
97 'base/ssl_config_service.h', | |
98 'base/ssl_info.h', | |
99 'base/ssl_test_util.cc', | |
100 'base/tcp_client_socket.h', | |
101 'base/tcp_client_socket_win.cc', | |
102 'base/telnet_server.cc', | 51 'base/telnet_server.cc', |
103 'base/telnet_server.h', | |
104 'base/upload_data.cc', | 52 'base/upload_data.cc', |
105 'base/upload_data.h', | |
106 'base/upload_data_stream.cc', | 53 'base/upload_data_stream.cc', |
107 'base/upload_data_stream.h', | |
108 'base/wininet_util.cc', | |
109 'base/wininet_util.h', | |
110 'base/winsock_init.cc', | |
111 'base/winsock_init.h', | |
112 'base/x509_certificate.cc', | 54 'base/x509_certificate.cc', |
113 'base/x509_certificate.h', | 55 'disk_cache/backend_impl.cc', |
114 'base/x509_certificate_win.cc', | 56 'disk_cache/block_files.cc', |
115 ]), | 57 'disk_cache/entry_impl.cc', |
116 MSVSFilter('url_request', [ | 58 'disk_cache/eviction.cc', |
117 'url_request/mime_sniffer_proxy.cc', | 59 'disk_cache/file_lock.cc', |
118 'url_request/mime_sniffer_proxy.h', | 60 'disk_cache/hash.cc', |
119 'url_request/url_request.cc', | 61 'disk_cache/mem_backend_impl.cc', |
120 'url_request/url_request.h', | 62 'disk_cache/mem_entry_impl.cc', |
121 'url_request/url_request_about_job.cc', | 63 'disk_cache/mem_rankings.cc', |
122 'url_request/url_request_about_job.h', | 64 'disk_cache/rankings.cc', |
123 'url_request/url_request_context.h', | 65 'disk_cache/stats.cc', |
124 'url_request/url_request_error_job.cc', | 66 'disk_cache/stats_histogram.cc', |
125 'url_request/url_request_error_job.h', | 67 'disk_cache/trace.cc', |
126 'url_request/url_request_file_dir_job.cc', | 68 'ftp/ftp_network_layer.cc', |
127 'url_request/url_request_file_dir_job.h', | 69 'ftp/ftp_network_transaction.cc', |
128 'url_request/url_request_file_job.cc', | |
129 'url_request/url_request_file_job.h', | |
130 'url_request/url_request_filter.cc', | |
131 'url_request/url_request_filter.h', | |
132 'url_request/url_request_ftp_job.cc', | |
133 'url_request/url_request_ftp_job.h', | |
134 'url_request/url_request_http_job.cc', | |
135 'url_request/url_request_http_job.h', | |
136 'url_request/url_request_inet_job.cc', | |
137 'url_request/url_request_inet_job.h', | |
138 'url_request/url_request_job.cc', | |
139 'url_request/url_request_job.h', | |
140 'url_request/url_request_job_manager.cc', | |
141 'url_request/url_request_job_manager.h', | |
142 'url_request/url_request_job_metrics.cc', | |
143 'url_request/url_request_job_metrics.h', | |
144 'url_request/url_request_job_tracker.cc', | |
145 'url_request/url_request_job_tracker.h', | |
146 'url_request/url_request_simple_job.cc', | |
147 'url_request/url_request_simple_job.h', | |
148 'url_request/url_request_status.h', | |
149 'url_request/url_request_test_job.cc', | |
150 'url_request/url_request_test_job.h', | |
151 'url_request/url_request_view_cache_job.cc', | |
152 'url_request/url_request_view_cache_job.h', | |
153 ]), | |
154 MSVSFilter('http', [ | |
155 'http/cert_status_cache.cc', | 70 'http/cert_status_cache.cc', |
156 'http/cert_status_cache.h', | |
157 'http/http_atom_list.h', | |
158 'http/http_cache.cc', | |
159 'http/http_cache.h', | |
160 'http/http_chunked_decoder.cc', | |
161 'http/http_chunked_decoder.h', | |
162 'http/http_network_layer.cc', | |
163 'http/http_network_layer.h', | |
164 'http/http_network_session.h', | |
165 'http/http_network_transaction.cc', | |
166 'http/http_network_transaction.h', | |
167 'http/http_request_info.h', | |
168 'http/http_response_headers.cc', | |
169 'http/http_response_headers.h', | |
170 'http/http_response_info.h', | |
171 'http/http_transaction.h', | |
172 'http/http_transaction_factory.h', | |
173 'http/http_transaction_winhttp.cc', | |
174 'http/http_transaction_winhttp.h', | |
175 'http/http_util.cc', | |
176 'http/http_util.h', | |
177 'http/http_auth.cc', | 71 'http/http_auth.cc', |
178 'http/http_auth.h', | |
179 'http/http_auth_cache.cc', | 72 'http/http_auth_cache.cc', |
180 'http/http_auth_cache.h', | |
181 'http/http_auth_handler.h', | |
182 'http/http_auth_handler.cc', | 73 'http/http_auth_handler.cc', |
183 'http/http_auth_handler_basic.cc', | 74 'http/http_auth_handler_basic.cc', |
184 'http/http_auth_handler_basic.h', | |
185 'http/http_auth_handler_digest.cc', | 75 'http/http_auth_handler_digest.cc', |
186 'http/http_auth_handler_digest.h', | 76 'http/http_cache.cc', |
187 'http/http_auth.cc', | 77 'http/http_chunked_decoder.cc', |
188 'http/http_auth.h', | 78 'http/http_network_layer.cc', |
189 'http/http_auth_handler.h', | 79 'http/http_network_transaction.cc', |
190 'http/http_auth_handler.cc', | 80 'http/http_response_headers.cc', |
191 'http/http_auth_handler_basic.cc', | 81 'http/http_transaction_winhttp.cc', |
192 'http/http_auth_handler_basic.h', | 82 'http/http_util.cc', |
193 'http/http_auth_handler_digest.cc', | |
194 'http/http_auth_handler_digest.h', | |
195 'http/http_vary_data.cc', | 83 'http/http_vary_data.cc', |
196 'http/http_vary_data.h', | |
197 'http/winhttp_request_throttle.cc', | 84 'http/winhttp_request_throttle.cc', |
198 'http/winhttp_request_throttle.h', | |
199 ]), | |
200 MSVSFilter('disk_cache', [ | |
201 'disk_cache/addr.h', | |
202 'disk_cache/backend_impl.cc', | |
203 'disk_cache/backend_impl.h', | |
204 'disk_cache/block_files.cc', | |
205 'disk_cache/block_files.h', | |
206 'disk_cache/cache_util.h', | |
207 'disk_cache/cache_util_win.cc', | |
208 'disk_cache/disk_cache.h', | |
209 'disk_cache/disk_format.h', | |
210 'disk_cache/entry_impl.cc', | |
211 'disk_cache/entry_impl.h', | |
212 'disk_cache/errors.h', | |
213 'disk_cache/eviction.cc', | |
214 'disk_cache/eviction.h', | |
215 'disk_cache/file.h', | |
216 'disk_cache/file_block.h', | |
217 'disk_cache/file_lock.cc', | |
218 'disk_cache/file_lock.h', | |
219 'disk_cache/file_win.cc', | |
220 'disk_cache/hash.cc', | |
221 'disk_cache/hash.h', | |
222 'disk_cache/mapped_file.h', | |
223 'disk_cache/mapped_file_win.cc', | |
224 'disk_cache/mem_backend_impl.cc', | |
225 'disk_cache/mem_backend_impl.h', | |
226 'disk_cache/mem_entry_impl.cc', | |
227 'disk_cache/mem_entry_impl.h', | |
228 'disk_cache/mem_rankings.cc', | |
229 'disk_cache/mem_rankings.h', | |
230 'disk_cache/rankings.cc', | |
231 'disk_cache/rankings.h', | |
232 'disk_cache/stats.cc', | |
233 'disk_cache/stats.h', | |
234 'disk_cache/stats_histogram.cc', | |
235 'disk_cache/stats_histogram.h', | |
236 'disk_cache/storage_block-inl.h', | |
237 'disk_cache/storage_block.h', | |
238 'disk_cache/trace.cc', | |
239 'disk_cache/trace.h', | |
240 ]), | |
241 MSVSFilter('proxy', [ | |
242 'proxy/proxy_config_service_fixed.h', | |
243 'proxy/proxy_config_service_win.cc', | |
244 'proxy/proxy_config_service_win.h', | |
245 'proxy/proxy_resolver_winhttp.cc', | |
246 'proxy/proxy_resolver_winhttp.h', | |
247 'proxy/proxy_script_fetcher.cc', | 85 'proxy/proxy_script_fetcher.cc', |
248 'proxy/proxy_script_fetcher.h', | |
249 'proxy/proxy_service.cc', | 86 'proxy/proxy_service.cc', |
250 'proxy/proxy_service.h', | 87 'url_request/mime_sniffer_proxy.cc', |
251 ]), | 88 'url_request/url_request.cc', |
252 MSVSFilter('ftp', [ | 89 'url_request/url_request_about_job.cc', |
253 'ftp/ftp_network_layer.cc', | 90 'url_request/url_request_error_job.cc', |
254 'ftp/ftp_network_layer.h', | 91 'url_request/url_request_file_dir_job.cc', |
255 'ftp/ftp_network_session.h', | 92 'url_request/url_request_file_job.cc', |
256 'ftp/ftp_network_transaction.cc', | 93 'url_request/url_request_filter.cc', |
257 'ftp/ftp_network_transaction.h', | 94 'url_request/url_request_ftp_job.cc', |
258 'ftp/ftp_request_info.h', | 95 'url_request/url_request_http_job.cc', |
259 'ftp/ftp_response_info.h', | 96 'url_request/url_request_job.cc', |
260 'ftp/ftp_transaction.h', | 97 'url_request/url_request_job_manager.cc', |
261 'ftp/ftp_transaction_factory.h', | 98 'url_request/url_request_job_metrics.cc', |
262 ]), | 99 'url_request/url_request_job_tracker.cc', |
263 ]) | 100 'url_request/url_request_simple_job.cc', |
| 101 'url_request/url_request_test_job.cc', |
| 102 'url_request/url_request_view_cache_job.cc', |
| 103 ] |
264 | 104 |
265 if env.Bit('posix'): | 105 if env.Bit('posix'): |
266 # Remove files that still need to be ported from the input_files list. | 106 # Remove files that still need to be ported from the input_files list. |
267 # TODO(port): delete files from this list as they get ported. | 107 # TODO(port): delete files from this list as they get ported. |
268 to_be_ported_files = [ | 108 to_be_ported_files = [ |
269 'base/ssl_config_service.cc', | 109 'base/ssl_config_service.cc', |
270 'http/http_transaction_winhttp.cc', | 110 'http/http_transaction_winhttp.cc', |
271 'http/winhttp_request_throttle.cc', | 111 'http/winhttp_request_throttle.cc', |
272 'url_request/url_request_ftp_job.cc', | 112 'url_request/url_request_ftp_job.cc', |
273 ] | 113 ] |
274 for remove in to_be_ported_files: | 114 for remove in to_be_ported_files: |
275 input_files.remove(remove) | 115 input_files.remove(remove) |
276 | 116 |
277 if not env.Bit('windows'): | 117 if env.Bit('windows'): |
278 # Remove windows-specific files on non-Windows platforms. | 118 input_files.extend([ |
279 # TODO(sgk): | |
280 # Remove the windows-specific files from the input_files list above | |
281 # and turn this back in to an add-on-Windows list (like we used to) | |
282 # once we're comfortable re-ordering the files in the generated | |
283 # .vcproj file(s). | |
284 input_files.Remove([ | |
285 'base/file_stream_win.cc', | 119 'base/file_stream_win.cc', |
286 'base/net_util_win.cc', | 120 'base/net_util_win.cc', |
287 'base/platform_mime_util_win.cc', | 121 'base/platform_mime_util_win.cc', |
288 'base/ssl_client_socket_win.cc', | 122 'base/ssl_client_socket_win.cc', |
289 'base/tcp_client_socket_win.cc', | 123 'base/tcp_client_socket_win.cc', |
290 'base/wininet_util.cc', | 124 'base/wininet_util.cc', |
291 'base/winsock_init.cc', | 125 'base/winsock_init.cc', |
292 'base/x509_certificate_win.cc', | 126 'base/x509_certificate_win.cc', |
293 'disk_cache/cache_util_win.cc', | 127 'disk_cache/cache_util_win.cc', |
294 'disk_cache/file_win.cc', | 128 'disk_cache/file_win.cc', |
295 'disk_cache/mapped_file_win.cc', | 129 'disk_cache/mapped_file_win.cc', |
296 'proxy/proxy_config_service_win.cc', | 130 'proxy/proxy_config_service_win.cc', |
297 'proxy/proxy_resolver_winhttp.cc', | 131 'proxy/proxy_resolver_winhttp.cc', |
298 'url_request/url_request_inet_job.cc', | 132 'url_request/url_request_inet_job.cc', |
299 ]) | 133 ]) |
300 | 134 |
301 if env.Bit('mac'): | 135 if env.Bit('mac'): |
302 input_files.Extend([ | 136 input_files.extend([ |
303 'base/platform_mime_util_mac.cc', | 137 'base/platform_mime_util_mac.cc', |
304 'base/ssl_client_socket_mac.cc', | 138 'base/ssl_client_socket_mac.cc', |
305 'base/x509_certificate_mac.cc', | 139 'base/x509_certificate_mac.cc', |
306 'proxy/proxy_resolver_mac.cc', | 140 'proxy/proxy_resolver_mac.cc', |
307 ]) | 141 ]) |
308 | 142 |
309 if env.Bit('linux'): | 143 if env.Bit('linux'): |
310 input_files.Extend([ | 144 input_files.extend([ |
311 'base/nss_memio.c', | 145 'base/nss_memio.c', |
312 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? | 146 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? |
313 'base/platform_mime_util_linux.cc', | 147 'base/platform_mime_util_linux.cc', |
314 'base/ssl_client_socket_nss.cc', | 148 'base/ssl_client_socket_nss.cc', |
315 'base/x509_certificate_nss.cc', | 149 'base/x509_certificate_nss.cc', |
316 ]) | 150 ]) |
317 | 151 |
318 if env.Bit('posix'): | 152 if env.Bit('posix'): |
319 input_files.Extend([ | 153 input_files.extend([ |
320 'base/file_stream_posix.cc', | 154 'base/file_stream_posix.cc', |
321 'base/net_util_posix.cc', | 155 'base/net_util_posix.cc', |
322 'base/tcp_client_socket_libevent.cc', | 156 'base/tcp_client_socket_libevent.cc', |
323 'disk_cache/cache_util_posix.cc', | 157 'disk_cache/cache_util_posix.cc', |
324 'disk_cache/file_posix.cc', | 158 'disk_cache/file_posix.cc', |
325 'disk_cache/mapped_file_posix.cc', | 159 'disk_cache/mapped_file_posix.cc', |
326 ]) | 160 ]) |
327 | 161 |
328 if env.Bit('windows'): | 162 if env.Bit('windows'): |
329 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag | 163 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag |
330 # possibly only on incredibuild, scons doesn't know this. | 164 # possibly only on incredibuild, scons doesn't know this. |
331 env_p = env.Clone() | 165 env_p = env.Clone() |
332 # TODO(sgk): for now, add the same _LIB flag that Hammer adds to | 166 env_p.Append(CCFLAGS='/Ylnet') |
333 # the other .obj files | |
334 env_p.Append(CCFLAGS='/Ylnet', | |
335 CPPDEFINES=['_LIB']) | |
336 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') | 167 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') |
337 env['PCH'] = pch | 168 env['PCH'] = pch |
338 env['PCHSTOP'] = 'precompiled_net.h' | 169 env['PCHSTOP'] = 'precompiled_net.h' |
339 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) | 170 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) |
340 input_files.Replace('build/precompiled_net.cc', obj) | 171 input_files += [obj] |
341 | 172 |
342 lib = env.ChromeLibrary('net', input_files) | 173 env.ChromeLibrary('net', input_files) |
343 | 174 |
344 p = env.ChromeMSVSProject('$NET_DIR/build/net.vcproj', | 175 env.ChromeMSVSProject('$NET_DIR/build/net.vcproj', |
345 guid='{326E9795-E760-410A-B69A-3F79DB3F5243}', | 176 dependencies = [ |
346 dependencies = [ | 177 '$NET_DIR/build/tld_cleanup.vcproj' |
347 '$NET_DIR/build/tld_cleanup.vcproj' | 178 ], |
348 ], | 179 guid='{326E9795-E760-410A-B69A-3F79DB3F5243}') |
349 # TODO: restore when we can derive all info, | |
350 # on all platforms, from the windows build targets. | |
351 #buildtargets=[lib[0]], | |
352 files=input_files, | |
353 ConfigurationType='4') | |
354 | |
355 p.AddToolFile('build/convert_tld_data.rules') | |
356 | |
357 p.AddConfig('Debug|Win32', | |
358 InheritedPropertySheets=[ | |
359 '$(SolutionDir)../build/common.vsprops', | |
360 '$(SolutionDir)../build/debug.vsprops', | |
361 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
362 '$(SolutionDir)../third_party/zlib/using_zlib.vsprops', | |
363 '$(SolutionDir)../sdch/using_sdch.vsprops', | |
364 '$(SolutionDir)../tools/grit/build/using_generated_resources.vsp
rops', | |
365 ], | |
366 tools=[ | |
367 'VCPreBuildEventTool', | |
368 'VCCustomBuildTool', | |
369 'Convert TLD Data File', | |
370 'VCXMLDataGeneratorTool', | |
371 'VCWebServiceProxyGeneratorTool', | |
372 'VCMIDLTool', | |
373 MSVSTool('VCCLCompilerTool', | |
374 PrecompiledHeaderThrough='precompiled_net.h', | |
375 ForcedIncludeFiles='precompiled_net.h', | |
376 UsePrecompiledHeader='2'), | |
377 'VCManagedResourceCompilerTool', | |
378 'VCResourceCompilerTool', | |
379 'VCPreLinkEventTool', | |
380 'VCLibrarianTool', | |
381 'VCALinkTool', | |
382 'VCXDCMakeTool', | |
383 'VCBscMakeTool', | |
384 'VCFxCopTool', | |
385 'VCPostBuildEventTool', | |
386 ]) | |
387 | |
388 p.AddConfig('Release|Win32', | |
389 InheritedPropertySheets=[ | |
390 '$(SolutionDir)../build/common.vsprops', | |
391 '$(SolutionDir)../build/release.vsprops', | |
392 '$(SolutionDir)../third_party/icu38/build/using_icu.vsprops', | |
393 '$(SolutionDir)../third_party/zlib/using_zlib.vsprops', | |
394 '$(SolutionDir)../sdch/using_sdch.vsprops', | |
395 '$(SolutionDir)../tools/grit/build/using_generated_resources.vsp
rops', | |
396 ], | |
397 tools=[ | |
398 'VCPreBuildEventTool', | |
399 'VCCustomBuildTool', | |
400 'Convert TLD Data File', | |
401 'VCXMLDataGeneratorTool', | |
402 'VCWebServiceProxyGeneratorTool', | |
403 'VCMIDLTool', | |
404 'VCCLCompilerTool', | |
405 'VCManagedResourceCompilerTool', | |
406 'VCResourceCompilerTool', | |
407 'VCPreLinkEventTool', | |
408 'VCLibrarianTool', | |
409 'VCALinkTool', | |
410 'VCXDCMakeTool', | |
411 'VCBscMakeTool', | |
412 'VCFxCopTool', | |
413 'VCPostBuildEventTool', | |
414 ]) | |
415 | |
416 # TODO(sgk): remove when we can derive this information | |
417 p.AddFileConfig('build/precompiled_net.cc', | |
418 'Debug|Win32', | |
419 tools=[ | |
420 MSVSTool('VCCLCompilerTool', | |
421 UsePrecompiledHeader='1'), | |
422 ]) | |
423 | |
424 # TODO(sgk): remove when we can derive this information | |
425 p.AddFileConfig('build/precompiled_net.cc', | |
426 'Release|Win32', | |
427 ExcludedFromBuild='true', | |
428 tools=[ | |
429 'VCCLCompilerTool', | |
430 ]) | |
431 | |
432 env.AlwaysBuild(p) | |
433 | |
434 i = env.Command('$CHROME_SRC_DIR/net/build/net.vcproj', p, | |
435 Copy('$TARGET', '$SOURCE')) | |
436 Alias('msvs', i) | |
OLD | NEW |