OLD | NEW |
(Empty) | |
| 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 |
| 3 # found in the LICENSE file. |
| 4 |
| 5 __doc__ = """ |
| 6 Configuration for building the net_perftests{,.exe} executable. |
| 7 """ |
| 8 |
| 9 Import('env') |
| 10 |
| 11 env = env.Clone() |
| 12 |
| 13 env.SConscript([ |
| 14 # On Linux, dependencies must follow dependents, so... |
| 15 # 1) net must come before base and modp_b64. |
| 16 # 2) bzip2 must come before base. |
| 17 '$NET_DIR/using_net.scons', |
| 18 |
| 19 '$BASE_DIR/using_base.scons', |
| 20 '#/../build/using_googleurl.scons', |
| 21 '$GTEST_DIR/../using_gtest.scons', |
| 22 '$ICU38_DIR/using_icu38.scons', |
| 23 '$MODP_B64_DIR/using_modp_b64.scons', |
| 24 ], {'env':env}) |
| 25 |
| 26 if env['PLATFORM'] in ('posix', 'darwin'): |
| 27 env.SConscript([ |
| 28 '$LIBEVENT_DIR/using_libevent.scons', |
| 29 ], {'env':env}) |
| 30 |
| 31 env.Prepend( |
| 32 CPPPATH = [ |
| 33 '$ROOT_DIR', |
| 34 ], |
| 35 ) |
| 36 |
| 37 if env['PLATFORM'] == 'win32': |
| 38 env.Prepend( |
| 39 CCFLAGS = [ |
| 40 '/TP', |
| 41 '/WX', |
| 42 ], |
| 43 CPPDEFINES = [ |
| 44 '_WIN32_WINNT=0x0600', |
| 45 'WINVER=0x0600', |
| 46 '_HAS_EXCEPTIONS=0', |
| 47 ], |
| 48 LINKFLAGS = [ |
| 49 '/DELAYLOAD:"dwmapi.dll"', |
| 50 '/DELAYLOAD:"uxtheme.dll"', |
| 51 '/MACHINE:X86', |
| 52 '/FIXED:No', |
| 53 '/safeseh', |
| 54 '/dynamicbase', |
| 55 '/ignore:4199', |
| 56 '/nxcompat', |
| 57 ], |
| 58 ) |
| 59 |
| 60 input_files = [ |
| 61 'base/cookie_monster_perftest.cc', |
| 62 'disk_cache/disk_cache_perftest.cc', |
| 63 'disk_cache/disk_cache_test_util$OBJSUFFIX', |
| 64 |
| 65 # TODO(sgk): avoid using .cc from base directly |
| 66 '$OBJ_ROOT/base/run_all_perftests$OBJSUFFIX', |
| 67 '$OBJ_ROOT/base/perftimer$OBJSUFFIX', |
| 68 ] |
| 69 |
| 70 if env['PLATFORM'] in ('posix', 'win32'): |
| 71 |
| 72 net_perftests = env.ChromeTestProgram('net_perftests', input_files) |
| 73 |
| 74 installed_test = env.Install('$TARGET_ROOT', net_perftests) |
| 75 |
| 76 env.Alias('net', installed_test) |
OLD | NEW |