| 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 the net_perftests{,.exe} executable. | 6 Configuration for building the net_perftests{,.exe} executable. |
| 7 """ | 7 """ |
| 8 | 8 |
| 9 Import('env') | 9 Import('env') |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 '/DELAYLOAD:"dwmapi.dll"', | 50 '/DELAYLOAD:"dwmapi.dll"', |
| 51 '/DELAYLOAD:"uxtheme.dll"', | 51 '/DELAYLOAD:"uxtheme.dll"', |
| 52 '/MACHINE:X86', | 52 '/MACHINE:X86', |
| 53 '/FIXED:No', | 53 '/FIXED:No', |
| 54 '/safeseh', | 54 '/safeseh', |
| 55 '/dynamicbase', | 55 '/dynamicbase', |
| 56 '/ignore:4199', | 56 '/ignore:4199', |
| 57 '/nxcompat', | 57 '/nxcompat', |
| 58 ], | 58 ], |
| 59 ) | 59 ) |
| 60 elif env['PLATFORM'] == 'posix': |
| 61 env.Append( |
| 62 # TODO(port): disk_cache_perftest breaks strict aliasing rules. |
| 63 CCFLAGS = ['-fno-strict-aliasing'], |
| 64 ) |
| 60 | 65 |
| 61 input_files = [ | 66 input_files = [ |
| 62 'base/cookie_monster_perftest.cc', | 67 'base/cookie_monster_perftest.cc', |
| 63 'disk_cache/disk_cache_perftest.cc', | 68 'disk_cache/disk_cache_perftest.cc', |
| 64 'disk_cache/disk_cache_test_util$OBJSUFFIX', | 69 'disk_cache/disk_cache_test_util$OBJSUFFIX', |
| 65 | 70 |
| 66 # TODO(sgk): avoid using .cc from base directly | 71 # TODO(sgk): avoid using .cc from base directly |
| 67 '$OBJ_ROOT/base/run_all_perftests$OBJSUFFIX', | 72 '$OBJ_ROOT/base/run_all_perftests$OBJSUFFIX', |
| 68 '$OBJ_ROOT/base/perftimer$OBJSUFFIX', | 73 '$OBJ_ROOT/base/perftimer$OBJSUFFIX', |
| 69 ] | 74 ] |
| 70 | 75 |
| 71 if env['PLATFORM'] in ('posix', 'win32'): | 76 if env['PLATFORM'] in ('posix', 'win32'): |
| 72 | 77 |
| 73 env.ChromeTestProgram('net_perftests', input_files) | 78 env.ChromeTestProgram('net_perftests', input_files) |
| OLD | NEW |