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 stress_cache{,.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 '$NET_DIR/using_net.scons', |
| 17 |
| 18 '$BASE_DIR/using_base.scons', |
| 19 '$GTEST_DIR/../using_gtest.scons', |
| 20 '$ICU38_DIR/using_icu38.scons', |
| 21 ], {'env':env}) |
| 22 |
| 23 env.Prepend( |
| 24 CPPPATH = [ |
| 25 '$ROOT_DIR', |
| 26 ], |
| 27 ) |
| 28 |
| 29 if env['PLATFORM'] == 'win32': |
| 30 env.Prepend( |
| 31 CCFLAGS = [ |
| 32 '/TP', |
| 33 '/WX', |
| 34 ], |
| 35 CPPDEFINES = [ |
| 36 '_WIN32_WINNT=0x0600', |
| 37 'WINVER=0x0600', |
| 38 '_HAS_EXCEPTIONS=0', |
| 39 ], |
| 40 LINKFLAGS = [ |
| 41 '/DELAYLOAD:"dwmapi.dll"', |
| 42 '/DELAYLOAD:"uxtheme.dll"', |
| 43 '/MACHINE:X86', |
| 44 '/FIXED:No', |
| 45 '/safeseh', |
| 46 '/dynamicbase', |
| 47 '/ignore:4199', |
| 48 '/nxcompat', |
| 49 ], |
| 50 ) |
| 51 |
| 52 input_files = [ |
| 53 'disk_cache/disk_cache_test_util$OBJSUFFIX', |
| 54 'disk_cache/stress_cache.cc', |
| 55 ] |
| 56 |
| 57 if env['PLATFORM'] == 'win32': |
| 58 stress_cache = env.ChromeTestProgram('stress_cache', input_files) |
| 59 |
| 60 installed_test = env.Install('$TARGET_ROOT', stress_cache) |
| 61 |
| 62 env.Alias('net', installed_test) |
OLD | NEW |