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

Side by Side Diff: net/net_lib.scons

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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.scons ('k') | net/net_perftests.scons » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 'url_request/url_request_http_job.cc', 95 'url_request/url_request_http_job.cc',
96 'url_request/url_request_job.cc', 96 'url_request/url_request_job.cc',
97 'url_request/url_request_job_manager.cc', 97 'url_request/url_request_job_manager.cc',
98 'url_request/url_request_job_metrics.cc', 98 'url_request/url_request_job_metrics.cc',
99 'url_request/url_request_job_tracker.cc', 99 'url_request/url_request_job_tracker.cc',
100 'url_request/url_request_simple_job.cc', 100 'url_request/url_request_simple_job.cc',
101 'url_request/url_request_test_job.cc', 101 'url_request/url_request_test_job.cc',
102 'url_request/url_request_view_cache_job.cc', 102 'url_request/url_request_view_cache_job.cc',
103 ] 103 ]
104 104
105 if env['PLATFORM'] in ('posix', 'darwin'): 105 if env.Bit('posix'):
106 # 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.
107 # TODO(port): delete files from this list as they get ported. 107 # TODO(port): delete files from this list as they get ported.
108 to_be_ported_files = [ 108 to_be_ported_files = [
109 'base/ssl_config_service.cc', 109 'base/ssl_config_service.cc',
110 'http/http_transaction_winhttp.cc', 110 'http/http_transaction_winhttp.cc',
111 'http/winhttp_request_throttle.cc', 111 'http/winhttp_request_throttle.cc',
112 'url_request/url_request_ftp_job.cc', 112 'url_request/url_request_ftp_job.cc',
113 ] 113 ]
114 for remove in to_be_ported_files: 114 for remove in to_be_ported_files:
115 input_files.remove(remove) 115 input_files.remove(remove)
116 116
117 if env['PLATFORM'] == 'win32': 117 if env.Bit('windows'):
118 input_files.extend([ 118 input_files.extend([
119 'base/file_stream_win.cc', 119 'base/file_stream_win.cc',
120 'base/net_util_win.cc', 120 'base/net_util_win.cc',
121 'base/platform_mime_util_win.cc', 121 'base/platform_mime_util_win.cc',
122 'base/ssl_client_socket_win.cc', 122 'base/ssl_client_socket_win.cc',
123 'base/tcp_client_socket_win.cc', 123 'base/tcp_client_socket_win.cc',
124 'base/wininet_util.cc', 124 'base/wininet_util.cc',
125 'base/winsock_init.cc', 125 'base/winsock_init.cc',
126 'base/x509_certificate_win.cc', 126 'base/x509_certificate_win.cc',
127 'disk_cache/cache_util_win.cc', 127 'disk_cache/cache_util_win.cc',
128 'disk_cache/file_win.cc', 128 'disk_cache/file_win.cc',
129 'disk_cache/mapped_file_win.cc', 129 'disk_cache/mapped_file_win.cc',
130 'proxy/proxy_resolver_winhttp.cc', 130 'proxy/proxy_resolver_winhttp.cc',
131 'url_request/url_request_inet_job.cc', 131 'url_request/url_request_inet_job.cc',
132 ]) 132 ])
133 133
134 if env['PLATFORM'] == 'darwin': 134 if env.Bit('mac'):
135 input_files.extend([ 135 input_files.extend([
136 'base/platform_mime_util_mac.cc', 136 'base/platform_mime_util_mac.cc',
137 'base/ssl_client_socket_mac.cc', 137 'base/ssl_client_socket_mac.cc',
138 'base/x509_certificate_mac.cc', 138 'base/x509_certificate_mac.cc',
139 'proxy/proxy_resolver_mac.cc', 139 'proxy/proxy_resolver_mac.cc',
140 ]) 140 ])
141 141
142 if env['PLATFORM'] == 'posix': 142 if env.Bit('linux'):
143 input_files.extend([ 143 input_files.extend([
144 'base/nss_memio.c', 144 'base/nss_memio.c',
145 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? 145 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types?
146 'base/platform_mime_util_linux.cc', 146 'base/platform_mime_util_linux.cc',
147 'base/ssl_client_socket_nss.cc', 147 'base/ssl_client_socket_nss.cc',
148 'base/x509_certificate_nss.cc', 148 'base/x509_certificate_nss.cc',
149 ]) 149 ])
150 150
151 if env['PLATFORM'] in ('darwin', 'posix'): 151 if env.Bit('posix'):
152 input_files.extend([ 152 input_files.extend([
153 'base/file_stream_posix.cc', 153 'base/file_stream_posix.cc',
154 'base/net_util_posix.cc', 154 'base/net_util_posix.cc',
155 'base/tcp_client_socket_libevent.cc', 155 'base/tcp_client_socket_libevent.cc',
156 'disk_cache/cache_util_posix.cc', 156 'disk_cache/cache_util_posix.cc',
157 'disk_cache/file_posix.cc', 157 'disk_cache/file_posix.cc',
158 'disk_cache/mapped_file_posix.cc', 158 'disk_cache/mapped_file_posix.cc',
159 ]) 159 ])
160 160
161 if env['PLATFORM'] == 'win32': 161 if env.Bit('windows'):
162 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag 162 # TODO(bradnelson): This step generates file precompiled_net.pch.ib_tag
163 # possibly only on incredibuild, scons doesn't know this. 163 # possibly only on incredibuild, scons doesn't know this.
164 env_p = env.Clone() 164 env_p = env.Clone()
165 env_p.Append(CCFLAGS='/Ylnet') 165 env_p.Append(CCFLAGS='/Ylnet')
166 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc') 166 pch, obj = env_p.PCH('precompiled_net.pch', 'build/precompiled_net.cc')
167 env['PCH'] = pch 167 env['PCH'] = pch
168 env['PCHSTOP'] = 'precompiled_net.h' 168 env['PCHSTOP'] = 'precompiled_net.h'
169 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h']) 169 env.Append(CCPCHFLAGS = ['/FIprecompiled_net.h'])
170 input_files += [obj] 170 input_files += [obj]
171 171
172 env.ChromeStaticLibrary('net', input_files) 172 env.ChromeStaticLibrary('net', input_files)
OLDNEW
« no previous file with comments | « net/net.scons ('k') | net/net_perftests.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698