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 stress_cache{,.exe} executable. | 6 Configuration for building the stress_cache{,.exe} executable. |
7 """ | 7 """ |
8 | 8 |
9 Import('env') | 9 Import('env') |
10 | 10 |
11 env = env.Clone() | 11 env = env.Clone() |
12 | 12 |
13 env.SConscript([ | 13 env.ApplySConscript([ |
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', | 14 '$BASE_DIR/using_base.scons', |
19 '$GTEST_DIR/../using_gtest.scons', | 15 '$GTEST_DIR/../using_gtest.scons', |
20 '$ICU38_DIR/using_icu38.scons', | 16 '$ICU38_DIR/using_icu38.scons', |
21 ], {'env':env}) | 17 '$NET_DIR/using_net.scons', |
22 | 18 ]) |
23 env.Prepend( | |
24 CPPPATH = [ | |
25 '$CHROME_SRC_DIR', | |
26 ], | |
27 ) | |
28 | 19 |
29 if env['PLATFORM'] == 'win32': | 20 if env['PLATFORM'] == 'win32': |
30 env.Prepend( | 21 env.Prepend( |
31 CCFLAGS = [ | 22 CCFLAGS = [ |
32 '/TP', | |
33 '/WX', | 23 '/WX', |
34 ], | 24 ], |
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 ) | 25 ) |
51 | 26 |
52 input_files = [ | 27 input_files = [ |
53 'disk_cache/disk_cache_test_util$OBJSUFFIX', | 28 'disk_cache/disk_cache_test_util$OBJSUFFIX', |
54 'disk_cache/stress_cache.cc', | 29 'disk_cache/stress_cache.cc', |
55 ] | 30 ] |
56 | 31 |
57 if env['PLATFORM'] == 'win32': | 32 if env['PLATFORM'] == 'win32': |
58 env.ChromeTestProgram('stress_cache', input_files) | 33 env.ChromeTestProgram('stress_cache', input_files) |
OLD | NEW |