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 net_resources.rc resources. | 6 Configuration for building the net_resources.rc resources. |
7 """ | 7 """ |
8 | 8 |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 26 matching lines...) Expand all Loading... |
37 '/l 0x409', | 37 '/l 0x409', |
38 ], | 38 ], |
39 ) | 39 ) |
40 | 40 |
41 net_resources = [] | 41 net_resources = [] |
42 for g in [g for g in generated if str(g).endswith('.rc')]: | 42 for g in [g for g in generated if str(g).endswith('.rc')]: |
43 net_res = env.RES(g) | 43 net_res = env.RES(g) |
44 net_resources.extend(net_res) | 44 net_resources.extend(net_res) |
45 env.Depends(net_res, tld_names_clean) | 45 env.Depends(net_res, tld_names_clean) |
46 | 46 |
| 47 input_files = ChromeFileList([ |
| 48 'base/net_resources.grd', |
| 49 Derived(env.File('$TARGET_ROOT/grit_derived_sources/net_resources.h')), |
| 50 ]) |
| 51 |
47 p = env.ChromeMSVSProject('build/net_resources.vcproj', | 52 p = env.ChromeMSVSProject('build/net_resources.vcproj', |
48 dest='$CHROME_SRC_DIR/net/build/net_resources.vcproj
', | 53 dest=('$CHROME_SRC_DIR/net/' |
| 54 + 'build/net_resources.vcproj'), |
49 guid='{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}', | 55 guid='{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}', |
50 buildtargets=net_resources, | 56 keyword='Win32Proj', |
| 57 #buildtargets=net_resources, |
| 58 files=input_files, |
| 59 relative_path_substitutions = [ |
| 60 ('../../..', '$(OutDir)'), |
| 61 ], |
51 ConfigurationType='10') | 62 ConfigurationType='10') |
52 | 63 |
53 p.AddToolFile('../tools/grit/build/grit_resources.rules') | 64 p.AddToolFile('../tools/grit/build/grit_resources.rules') |
54 | 65 |
55 p.AddConfig('Debug|Win32', | 66 p.AddConfig('Debug|Win32', |
56 InheritedPropertySheets=[ | 67 InheritedPropertySheets=[ |
57 '$(SolutionDir)../build/common.vsprops', | 68 '$(SolutionDir)../build/common.vsprops', |
58 '$(SolutionDir)../build/debug.vsprops', | 69 '$(SolutionDir)../build/debug.vsprops', |
59 ]) | 70 ]) |
60 | 71 |
61 p.AddConfig('Release|Win32', | 72 p.AddConfig('Release|Win32', |
62 InheritedPropertySheets=[ | 73 InheritedPropertySheets=[ |
63 '$(SolutionDir)../build/common.vsprops', | 74 '$(SolutionDir)../build/common.vsprops', |
64 '$(SolutionDir)../build/release.vsprops', | 75 '$(SolutionDir)../build/release.vsprops', |
65 ]) | 76 ]) |
OLD | NEW |