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 the tld_cleanup{,.exe} executable. | 6 Configuration the tld_cleanup{,.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.ApplySConscript([ | 13 env.ApplySConscript([ |
14 '$BASE_DIR/using_base.scons', | 14 '$BASE_DIR/using_base.scons', |
15 '$CHROME_SRC_DIR/build/using_googleurl.scons', | 15 '$CHROME_SRC_DIR/build/using_googleurl.scons', |
16 '$ICU38_DIR/using_icu38.scons', | 16 '$ICU38_DIR/using_icu38.scons', |
17 ]) | 17 ]) |
18 | 18 |
19 if env.Bit('windows'): | 19 if env.Bit('windows'): |
20 env.Append( | 20 env.Append( |
21 LINKFLAGS = [ | 21 LINKFLAGS = [ |
22 '/SUBSYSTEM:CONSOLE', | 22 '/SUBSYSTEM:CONSOLE', |
23 ], | 23 ], |
24 ) | 24 ) |
25 | 25 |
26 input_files = ChromeFileList([ | 26 input_files = [ |
27 'tld_cleanup.cc', | 27 'tld_cleanup.cc', |
28 ]) | 28 ] |
29 | 29 |
30 env.ChromeProgram('tld_cleanup', input_files) | 30 env.ChromeProgram('tld_cleanup', input_files) |
31 | 31 |
32 p = env.ChromeMSVSProject('$NET_DIR/build/tld_cleanup.vcproj', | 32 env.ChromeMSVSProject('$NET_DIR/build/tld_cleanup.vcproj', |
33 guid='{E13045CD-7E1F-4A41-9B18-8D288B2E7B41}', | 33 dependencies = [ |
34 dependencies = [ | 34 '$BASE_DIR/build/base.vcproj', |
35 '$BASE_DIR/build/base.vcproj', | 35 '$ICU38_DIR/build/icu.vcproj', |
36 '$ICU38_DIR/build/icu.vcproj', | 36 '$GOOGLEURL_DIR/build/googleurl.vcproj', |
37 '$GOOGLEURL_DIR/build/googleurl.vcproj', | 37 ], |
38 ], | 38 guid='{E13045CD-7E1F-4A41-9B18-8D288B2E7B41}') |
39 # TODO: restore when we can derive all info, | |
40 # on all platforms, from the windows build targets. | |
41 #buildtargets=TODO, | |
42 files=input_files, | |
43 tools=[ | |
44 'VCPreBuildEventTool', | |
45 'VCCustomBuildTool', | |
46 'VCXMLDataGeneratorTool', | |
47 'VCWebServiceProxyGeneratorTool', | |
48 'VCMIDLTool', | |
49 'VCCLCompilerTool', | |
50 'VCManagedResourceCompilerTool', | |
51 'VCResourceCompilerTool', | |
52 'VCPreLinkEventTool', | |
53 MSVSTool('VCLinkerTool', | |
54 SubSystem='1'), | |
55 'VCALinkTool', | |
56 'VCManifestTool', | |
57 'VCXDCMakeTool', | |
58 'VCBscMakeTool', | |
59 'VCFxCopTool', | |
60 'VCAppVerifierTool', | |
61 'VCWebDeploymentTool', | |
62 'VCPostBuildEventTool', | |
63 ], | |
64 ConfigurationType='1') | |
65 | |
66 | |
67 p.AddConfig('Debug|Win32', | |
68 InheritedPropertySheets=[ | |
69 '$(SolutionDir)../build/common.vsprops', | |
70 '$(SolutionDir)../build/debug.vsprops', | |
71 ]) | |
72 | |
73 p.AddConfig('Release|Win32', | |
74 InheritedPropertySheets=[ | |
75 '$(SolutionDir)../build/common.vsprops', | |
76 '$(SolutionDir)../build/release.vsprops', | |
77 ]) | |
78 | |
79 env.AlwaysBuild(p) | |
80 | |
81 i = env.Command('$CHROME_SRC_DIR/net/build/tld_cleanup.vcproj', p, | |
82 Copy('$TARGET', '$SOURCE')) | |
83 Alias('msvs', i) | |
OLD | NEW |