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 the dump_cache{,.exe} executable. | |
7 """ | |
8 | |
9 Import('env') | |
10 | |
11 env = env.Clone() | |
12 | |
13 env.ApplySConscript([ | |
14 '$BASE_DIR/using_base.scons', | |
15 '$ICU38_DIR/using_icu38.scons', | |
16 '$NET_DIR/using_net.scons', | |
17 ]) | |
18 | |
19 if env.Bit('windows'): | |
20 env.Prepend( | |
21 CCFLAGS = [ | |
22 '/WX', | |
23 ], | |
24 ) | |
25 | |
26 input_files = ChromeFileList([ | |
27 'tools/dump_cache/dump_cache.cc', | |
28 'tools/dump_cache/dump_files.cc', | |
29 'tools/dump_cache/upgrade.cc', | |
30 ]) | |
31 | |
32 | |
33 if env.Bit('windows'): | |
34 | |
35 env.ChromeTestProgram('dump_cache', input_files) | |
36 | |
37 p = env.ChromeMSVSProject('$NET_DIR/build/dump_cache.vcproj', | |
38 dest='$CHROME_SRC_DIR/net/build/dump_cache.vcproj', | |
39 guid='{4A14E455-2B7C-4C0F-BCC2-35A9666C186F}', | |
40 keyword='Win32Proj', | |
41 dependencies = [ | |
42 '$BASE_DIR/build/base.vcproj', | |
43 '$NET_DIR/build/net.vcproj', | |
44 '$ICU38_DIR/build/icu.vcproj', | |
45 ], | |
46 # TODO: restore when we can derive all info, | |
47 # on all platforms, from the windows build targets. | |
48 #buildtargets=TODO, | |
49 files=input_files, | |
50 tools=[ | |
51 'VCPreBuildEventTool', | |
52 'VCCustomBuildTool', | |
53 'VCXMLDataGeneratorTool', | |
54 'VCWebServiceProxyGeneratorTool', | |
55 'VCMIDLTool', | |
56 'VCCLCompilerTool', | |
57 'VCManagedResourceCompilerTool', | |
58 'VCResourceCompilerTool', | |
59 'VCPreLinkEventTool', | |
60 MSVSTool('VCLinkerTool', | |
61 SubSystem='1'), | |
62 'VCALinkTool', | |
63 'VCManifestTool', | |
64 'VCXDCMakeTool', | |
65 'VCBscMakeTool', | |
66 'VCFxCopTool', | |
67 'VCAppVerifierTool', | |
68 'VCWebDeploymentTool', | |
69 'VCPostBuildEventTool', | |
70 ], | |
71 ConfigurationType='1') | |
72 | |
73 | |
74 p.AddConfig('Debug|Win32', | |
75 InheritedPropertySheets=[ | |
76 '$(SolutionDir)../build/common.vsprops', | |
77 '$(SolutionDir)../build/debug.vsprops', | |
78 ]) | |
79 | |
80 p.AddConfig('Release|Win32', | |
81 InheritedPropertySheets=[ | |
82 '$(SolutionDir)../build/common.vsprops', | |
83 '$(SolutionDir)../build/release.vsprops', | |
84 ]) | |
OLD | NEW |