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 Import('env') | 5 Import('env') |
6 | 6 |
7 env_res = env.Clone() | 7 env_res = env.Clone() |
8 env_tests = env.Clone() | 8 env_tests = env.Clone() |
9 env = env.Clone() | 9 env = env.Clone() |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 'base/net_util_win.cc', | 118 'base/net_util_win.cc', |
119 'base/platform_mime_util_win.cc', | 119 'base/platform_mime_util_win.cc', |
120 'disk_cache/cache_util_win.cc', | 120 'disk_cache/cache_util_win.cc', |
121 'disk_cache/file_win.cc', | 121 'disk_cache/file_win.cc', |
122 'disk_cache/mapped_file_win.cc', | 122 'disk_cache/mapped_file_win.cc', |
123 'disk_cache/os_file_win.cc', | 123 'disk_cache/os_file_win.cc', |
124 ]) | 124 ]) |
125 | 125 |
126 if env['PLATFORM'] == 'darwin': | 126 if env['PLATFORM'] == 'darwin': |
127 input_files.extend([ | 127 input_files.extend([ |
128 'base/platform_mime_util_mac.cc', | 128 'base/platform_mime_util_mac.mm', |
129 ]) | 129 ]) |
130 | 130 |
131 if env['PLATFORM'] == 'posix': | 131 if env['PLATFORM'] == 'posix': |
132 input_files.extend([ | 132 input_files.extend([ |
133 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? | 133 # TODO(tc): gnome-vfs? xdgmime? /etc/mime.types? |
134 'base/platform_mime_util_linux.cc', | 134 'base/platform_mime_util_linux.cc', |
135 ]) | 135 ]) |
136 | 136 |
137 if env['PLATFORM'] in ('darwin', 'posix'): | 137 if env['PLATFORM'] in ('darwin', 'posix'): |
138 input_files.extend([ | 138 input_files.extend([ |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 'http/http_cache_unittest.cc', | 246 'http/http_cache_unittest.cc', |
247 'http/http_network_layer_unittest.cc', | 247 'http/http_network_layer_unittest.cc', |
248 'http/http_network_transaction_unittest.cc', | 248 'http/http_network_transaction_unittest.cc', |
249 'http/http_transaction_unittest.cc', | 249 'http/http_transaction_unittest.cc', |
250 'http/http_transaction_winhttp_unittest.cc', | 250 'http/http_transaction_winhttp_unittest.cc', |
251 'http/http_util_unittest.cc', | 251 'http/http_util_unittest.cc', |
252 'http/winhttp_request_throttle_unittest.cc', | 252 'http/winhttp_request_throttle_unittest.cc', |
253 'url_request/url_request_unittest.cc', | 253 'url_request/url_request_unittest.cc', |
254 ]) | 254 ]) |
255 | 255 |
| 256 if env['PLATFORM'] == 'darwin': |
| 257 unittest_files.extend([ |
| 258 '../base/platform_test_mac.o', |
| 259 ]) |
| 260 |
256 net_unittests = env_tests.ChromeTestProgram('net_unittests', unittest_files) | 261 net_unittests = env_tests.ChromeTestProgram('net_unittests', unittest_files) |
257 | 262 |
258 install_targets = net_unittests[:] | 263 install_targets = net_unittests[:] |
259 | 264 |
260 if env['PLATFORM'] == 'win32': | 265 if env['PLATFORM'] == 'win32': |
261 stress_cache = env_tests.ChromeTestProgram( | 266 stress_cache = env_tests.ChromeTestProgram( |
262 'stress_cache', | 267 'stress_cache', |
263 ['disk_cache/stress_cache.cc', | 268 ['disk_cache/stress_cache.cc', |
264 'disk_cache/disk_cache_test_util.cc'] | 269 'disk_cache/disk_cache_test_util.cc'] |
265 ) | 270 ) |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 | 327 |
323 SConscript(sconscript_files, exports=['env']) | 328 SConscript(sconscript_files, exports=['env']) |
324 | 329 |
325 | 330 |
326 # Setup alias for building all parts of net. | 331 # Setup alias for building all parts of net. |
327 if env['PLATFORM'] == 'win32': | 332 if env['PLATFORM'] == 'win32': |
328 icudata = '../icudt38.dll' | 333 icudata = '../icudt38.dll' |
329 else: | 334 else: |
330 icudata = '../icudt38l.dat' | 335 icudata = '../icudt38l.dat' |
331 env.Alias('net', ['.', installed_tests, icudata]) | 336 env.Alias('net', ['.', installed_tests, icudata]) |
OLD | NEW |