| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 'http/winhttp_request_throttle.cc', | 124 'http/winhttp_request_throttle.cc', |
| 125 'url_request/url_request_file_dir_job.cc', | 125 'url_request/url_request_file_dir_job.cc', |
| 126 'url_request/url_request_ftp_job.cc', | 126 'url_request/url_request_ftp_job.cc', |
| 127 'url_request/url_request_inet_job.cc', | 127 'url_request/url_request_inet_job.cc', |
| 128 ] | 128 ] |
| 129 for remove in to_be_ported_files: | 129 for remove in to_be_ported_files: |
| 130 input_files.remove(remove) | 130 input_files.remove(remove) |
| 131 | 131 |
| 132 if env['PLATFORM'] == 'win32': | 132 if env['PLATFORM'] == 'win32': |
| 133 input_files.extend([ | 133 input_files.extend([ |
| 134 'base/file_input_stream_win.cc', | 134 'base/file_stream_win.cc', |
| 135 'base/net_util_win.cc', | 135 'base/net_util_win.cc', |
| 136 'base/platform_mime_util_win.cc', | 136 'base/platform_mime_util_win.cc', |
| 137 'base/ssl_client_socket_win.cc', | 137 'base/ssl_client_socket_win.cc', |
| 138 'base/x509_certificate_win.cc', | 138 'base/x509_certificate_win.cc', |
| 139 'disk_cache/cache_util_win.cc', | 139 'disk_cache/cache_util_win.cc', |
| 140 'disk_cache/file_win.cc', | 140 'disk_cache/file_win.cc', |
| 141 'disk_cache/mapped_file_win.cc', | 141 'disk_cache/mapped_file_win.cc', |
| 142 'disk_cache/os_file_win.cc', | |
| 143 'proxy/proxy_resolver_winhttp.cc', | 142 'proxy/proxy_resolver_winhttp.cc', |
| 144 ]) | 143 ]) |
| 145 | 144 |
| 146 if env['PLATFORM'] == 'darwin': | 145 if env['PLATFORM'] == 'darwin': |
| 147 input_files.extend([ | 146 input_files.extend([ |
| 148 'base/platform_mime_util_mac.cc', | 147 'base/platform_mime_util_mac.cc', |
| 149 'base/ssl_client_socket_mac.cc', | 148 'base/ssl_client_socket_mac.cc', |
| 150 'base/x509_certificate_mac.cc', | 149 'base/x509_certificate_mac.cc', |
| 151 'proxy/proxy_resolver_mac.cc', | 150 'proxy/proxy_resolver_mac.cc', |
| 152 ]) | 151 ]) |
| 153 | 152 |
| 154 if env['PLATFORM'] == 'posix': | 153 if env['PLATFORM'] == 'posix': |
| 155 input_files.extend([ | 154 input_files.extend([ |
| 156 'base/nss_memio.c', | 155 'base/nss_memio.c', |
| 157 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? | 156 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? |
| 158 'base/platform_mime_util_linux.cc', | 157 'base/platform_mime_util_linux.cc', |
| 159 'base/ssl_client_socket_nss.cc', | 158 'base/ssl_client_socket_nss.cc', |
| 160 'base/x509_certificate_nss.cc', | 159 'base/x509_certificate_nss.cc', |
| 161 ]) | 160 ]) |
| 162 | 161 |
| 163 if env['PLATFORM'] in ('darwin', 'posix'): | 162 if env['PLATFORM'] in ('darwin', 'posix'): |
| 164 input_files.extend([ | 163 input_files.extend([ |
| 165 'base/file_input_stream_posix.cc', | 164 'base/file_stream_posix.cc', |
| 166 'base/net_util_posix.cc', | 165 'base/net_util_posix.cc', |
| 167 'base/tcp_client_socket_libevent.cc', | 166 'base/tcp_client_socket_libevent.cc', |
| 168 'disk_cache/cache_util_posix.cc', | 167 'disk_cache/cache_util_posix.cc', |
| 169 'disk_cache/file_posix.cc', | 168 'disk_cache/file_posix.cc', |
| 170 'disk_cache/mapped_file_posix.cc', | 169 'disk_cache/mapped_file_posix.cc', |
| 171 'disk_cache/os_file_posix.cc', | |
| 172 ]) | 170 ]) |
| 173 | 171 |
| 174 if env['PLATFORM'] == 'win32': | 172 if env['PLATFORM'] == 'win32': |
| 175 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag | 173 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag |
| 176 # possibly only on incredibuild, scons doesn't know this. | 174 # possibly only on incredibuild, scons doesn't know this. |
| 177 env_p = env.Clone() | 175 env_p = env.Clone() |
| 178 env_p.Append(CCFLAGS='/Ylnet') | 176 env_p.Append(CCFLAGS='/Ylnet') |
| 179 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') | 177 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') |
| 180 env['PCH'] = pch | 178 env['PCH'] = pch |
| 181 env['PCHSTOP'] = 'precompiled_net.h' | 179 env['PCHSTOP'] = 'precompiled_net.h' |
| 182 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) | 180 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) |
| 183 input_files += [obj] | 181 input_files += [obj] |
| 184 | 182 |
| 185 env.ChromeStaticLibrary('net', input_files) | 183 env.ChromeStaticLibrary('net', input_files) |
| OLD | NEW |