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.ApplySConscript([ | |
14 '$BASE_DIR/using_base.scons', | |
15 '$BZIP2_DIR/using_bzip2.scons', | |
16 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
17 '$GTEST_DIR/../using_gtest.scons', | |
18 '$ICU38_DIR/using_icu38.scons', | |
19 '$MODP_B64_DIR/using_modp_b64.scons', | |
20 '$NET_DIR/using_net.scons', | |
21 ]) | |
22 | |
23 if env.Bit('posix'): | |
24 env.ApplySConscript(['$THIRD_PARTY_DIR/libevent/using_libevent.scons']) | |
25 | |
26 env.Prepend( | |
27 CPPPATH = [ | |
28 '$CHROME_SRC_DIR', | |
29 ], | |
30 ) | |
31 | |
32 if env.Bit('windows'): | |
33 env.Prepend( | |
34 CCFLAGS = [ | |
35 '/WX', | |
36 ], | |
37 ) | |
38 | |
39 input_files = ChromeFileList([ | |
40 'disk_cache/disk_cache_test_util$OBJSUFFIX', | |
41 'disk_cache/stress_cache.cc', | |
42 ]) | |
43 | |
44 if not env.Bit('mac'): | |
45 env.ChromeTestProgram('stress_cache', input_files) | |
46 | |
47 p = env.ChromeMSVSProject('$NET_DIR/build/stress_cache.vcproj', | |
48 dest='$CHROME_SRC_DIR/net/build/stress_cache.vcproj', | |
49 guid='{B491C3A1-DE5F-4843-A1BB-AB8C4337187B}', | |
50 keyword='Win32Proj', | |
51 dependencies = [ | |
52 '$BASE_DIR/build/base.vcproj', | |
53 '$NET_DIR/build/net.vcproj', | |
54 '$ICU38_DIR/build/icu.vcproj', | |
55 '$TESTING_DIR/gtest.vcproj', | |
56 ], | |
57 # TODO: restore when we can derive all info, | |
58 # on all platforms, from the windows build targets. | |
59 #buildtargets=TODO, | |
60 files=input_files, | |
61 tools=[ | |
62 'VCPreBuildEventTool', | |
63 'VCCustomBuildTool', | |
64 'VCXMLDataGeneratorTool', | |
65 'VCWebServiceProxyGeneratorTool', | |
66 'VCMIDLTool', | |
67 'VCCLCompilerTool', | |
68 'VCManagedResourceCompilerTool', | |
69 'VCResourceCompilerTool', | |
70 'VCPreLinkEventTool', | |
71 MSVSTool('VCLinkerTool', | |
72 SubSystem='1'), | |
73 'VCALinkTool', | |
74 'VCManifestTool', | |
75 'VCXDCMakeTool', | |
76 'VCBscMakeTool', | |
77 'VCFxCopTool', | |
78 'VCAppVerifierTool', | |
79 'VCWebDeploymentTool', | |
80 'VCPostBuildEventTool', | |
81 ], | |
82 ConfigurationType='1') | |
83 | |
84 | |
85 p.AddConfig('Debug|Win32', | |
86 InheritedPropertySheets=[ | |
87 '$(SolutionDir)../build/common.vsprops', | |
88 '$(SolutionDir)../build/debug.vsprops', | |
89 ]) | |
90 | |
91 p.AddConfig('Release|Win32', | |
92 InheritedPropertySheets=[ | |
93 '$(SolutionDir)../build/common.vsprops', | |
94 '$(SolutionDir)../build/release.vsprops', | |
95 ]) | |
OLD | NEW |