| 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 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 'base/mime_sniffer.cc', | 49 'base/mime_sniffer.cc', |
| 50 'base/mime_util.cc', | 50 'base/mime_util.cc', |
| 51 'base/net_errors.cc', | 51 'base/net_errors.cc', |
| 52 'base/net_module.cc', | 52 'base/net_module.cc', |
| 53 'base/net_util.cc', | 53 'base/net_util.cc', |
| 54 'base/registry_controlled_domain.cc', | 54 'base/registry_controlled_domain.cc', |
| 55 'base/sdch_filter.cc', | 55 'base/sdch_filter.cc', |
| 56 'base/sdch_manager.cc', | 56 'base/sdch_manager.cc', |
| 57 'base/ssl_config_service.cc', | 57 'base/ssl_config_service.cc', |
| 58 'base/tcp_client_socket.cc', | 58 'base/tcp_client_socket.cc', |
| 59 'base/telnet_server.cc', | |
| 60 'base/upload_data.cc', | 59 'base/upload_data.cc', |
| 61 'base/upload_data_stream.cc', | 60 'base/upload_data_stream.cc', |
| 62 'base/wininet_util.cc', | 61 'base/wininet_util.cc', |
| 63 'base/winsock_init.cc', | 62 'base/winsock_init.cc', |
| 64 'base/x509_certificate.cc', | 63 'base/x509_certificate.cc', |
| 65 'disk_cache/backend_impl.cc', | 64 'disk_cache/backend_impl.cc', |
| 66 'disk_cache/block_files.cc', | 65 'disk_cache/block_files.cc', |
| 67 'disk_cache/entry_impl.cc', | 66 'disk_cache/entry_impl.cc', |
| 68 'disk_cache/file_lock.cc', | 67 'disk_cache/file_lock.cc', |
| 69 'disk_cache/hash.cc', | 68 'disk_cache/hash.cc', |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 'url_request/url_request_simple_job.cc', | 107 'url_request/url_request_simple_job.cc', |
| 109 'url_request/url_request_test_job.cc', | 108 'url_request/url_request_test_job.cc', |
| 110 'url_request/url_request_view_cache_job.cc', | 109 'url_request/url_request_view_cache_job.cc', |
| 111 ] | 110 ] |
| 112 | 111 |
| 113 if env['PLATFORM'] in ('posix', 'darwin'): | 112 if env['PLATFORM'] in ('posix', 'darwin'): |
| 114 # Remove files that still need to be ported from the input_files list. | 113 # Remove files that still need to be ported from the input_files list. |
| 115 # TODO(port): delete files from this list as they get ported. | 114 # TODO(port): delete files from this list as they get ported. |
| 116 to_be_ported_files = [ | 115 to_be_ported_files = [ |
| 117 'base/directory_lister.cc', | 116 'base/directory_lister.cc', |
| 118 'base/listen_socket.cc', | |
| 119 'base/ssl_config_service.cc', | 117 'base/ssl_config_service.cc', |
| 120 'base/tcp_client_socket.cc', | 118 'base/tcp_client_socket.cc', |
| 121 'base/telnet_server.cc', | |
| 122 'base/wininet_util.cc', | 119 'base/wininet_util.cc', |
| 123 'base/winsock_init.cc', | 120 'base/winsock_init.cc', |
| 124 'http/http_transaction_winhttp.cc', | 121 'http/http_transaction_winhttp.cc', |
| 125 'http/winhttp_request_throttle.cc', | 122 'http/winhttp_request_throttle.cc', |
| 126 'proxy/proxy_resolver_winhttp.cc', | 123 'proxy/proxy_resolver_winhttp.cc', |
| 127 'url_request/url_request_file_dir_job.cc', | 124 'url_request/url_request_file_dir_job.cc', |
| 128 'url_request/url_request_ftp_job.cc', | 125 'url_request/url_request_ftp_job.cc', |
| 129 'url_request/url_request_inet_job.cc', | 126 'url_request/url_request_inet_job.cc', |
| 130 ] | 127 ] |
| 131 for remove in to_be_ported_files: | 128 for remove in to_be_ported_files: |
| (...skipping 25 matching lines...) Expand all Loading... |
| 157 'base/platform_mime_util_linux.cc', | 154 'base/platform_mime_util_linux.cc', |
| 158 'base/ssl_client_socket_nss.cc', | 155 'base/ssl_client_socket_nss.cc', |
| 159 'base/x509_certificate_nss.cc', | 156 'base/x509_certificate_nss.cc', |
| 160 ]) | 157 ]) |
| 161 | 158 |
| 162 if env['PLATFORM'] in ('darwin', 'posix'): | 159 if env['PLATFORM'] in ('darwin', 'posix'): |
| 163 input_files.extend([ | 160 input_files.extend([ |
| 164 'base/file_input_stream_posix.cc', | 161 'base/file_input_stream_posix.cc', |
| 165 'base/net_util_posix.cc', | 162 'base/net_util_posix.cc', |
| 166 'base/tcp_client_socket_libevent.cc', | 163 'base/tcp_client_socket_libevent.cc', |
| 164 'base/telnet_server.cc', |
| 167 'disk_cache/cache_util_posix.cc', | 165 'disk_cache/cache_util_posix.cc', |
| 168 'disk_cache/file_posix.cc', | 166 'disk_cache/file_posix.cc', |
| 169 'disk_cache/mapped_file_posix.cc', | 167 'disk_cache/mapped_file_posix.cc', |
| 170 'disk_cache/os_file_posix.cc', | 168 'disk_cache/os_file_posix.cc', |
| 171 ]) | 169 ]) |
| 172 | 170 |
| 173 if env['PLATFORM'] == 'win32': | 171 if env['PLATFORM'] == 'win32': |
| 174 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag | 172 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag |
| 175 # possibly only on incredibuild, scons doesn't know this. | 173 # possibly only on incredibuild, scons doesn't know this. |
| 176 env_p = env.Clone() | 174 env_p = env.Clone() |
| 177 env_p.Append(CCFLAGS='/Ylnet') | 175 env_p.Append(CCFLAGS='/Ylnet') |
| 178 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') | 176 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') |
| 179 env['PCH'] = pch | 177 env['PCH'] = pch |
| 180 env['PCHSTOP'] = 'precompiled_net.h' | 178 env['PCHSTOP'] = 'precompiled_net.h' |
| 181 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) | 179 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) |
| 182 input_files += [obj] | 180 input_files += [obj] |
| 183 | 181 |
| 184 env.ChromeStaticLibrary('net', input_files) | 182 env.ChromeStaticLibrary('net', input_files) |
| OLD | NEW |