| 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 | 10 |
| 11 Import('env') | 11 Import('env') |
| 12 | 12 |
| 13 env = env.Clone() | 13 env = env.Clone() |
| 14 | 14 |
| 15 input_files = [ | |
| 16 'base/effective_tld_names.dat', | |
| 17 'tools/tld_cleanup/tld_cleanup$PROGSUFFIX', | |
| 18 ] | |
| 19 | |
| 20 # This dat file needed by net_resources is generated. | |
| 21 tld_names_clean = env.Command( | |
| 22 '$TARGET_ROOT/grit_derived_sources/effective_tld_names_clean.dat', | |
| 23 input_files, | |
| 24 '${SOURCES[1]} ${SOURCES[0]} $TARGET') | |
| 25 | |
| 26 # This dummy target is used to tell the emitter where to put the target files. | 15 # This dummy target is used to tell the emitter where to put the target files. |
| 27 generated = env.GRIT('$TARGET_ROOT/grit_derived_sources/dummy_net_res', | 16 generated = env.GRIT('$TARGET_ROOT/grit_derived_sources/dummy_net_res', |
| 28 ['base/net_resources.grd'] + tld_names_clean) | 17 'base/net_resources.grd') |
| 29 | |
| 30 | |
| 31 if env.Bit('windows'): | |
| 32 env.Prepend( | |
| 33 RCFLAGS = [ | |
| 34 '/l 0x409', | |
| 35 ], | |
| 36 ) | |
| 37 | |
| 38 net_resources = [] | |
| 39 for g in [g for g in generated if str(g).endswith('.rc')]: | |
| 40 net_res = env.RES(g) | |
| 41 net_resources.extend(net_res) | |
| 42 env.Depends(net_res, tld_names_clean) | |
| 43 | |
| 44 input_files = ChromeFileList([ | |
| 45 'base/net_resources.grd', | |
| 46 Derived(env.File('$TARGET_ROOT/grit_derived_sources/net_resources.h')), | |
| 47 ]) | |
| 48 | |
| 49 p = env.ChromeMSVSProject('build/net_resources.vcproj', | |
| 50 dest=('$CHROME_SRC_DIR/net/' | |
| 51 + 'build/net_resources.vcproj'), | |
| 52 guid='{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}', | |
| 53 keyword='Win32Proj', | |
| 54 #buildtargets=net_resources, | |
| 55 files=input_files, | |
| 56 relative_path_substitutions = [ | |
| 57 ('../../..', '$(OutDir)'), | |
| 58 ], | |
| 59 ConfigurationType='10') | |
| 60 | |
| 61 p.AddToolFile('../tools/grit/build/grit_resources.rules') | |
| 62 | |
| 63 p.AddConfig('Debug|Win32', | |
| 64 InheritedPropertySheets=[ | |
| 65 '$(SolutionDir)../build/common.vsprops', | |
| 66 '$(SolutionDir)../build/debug.vsprops', | |
| 67 ]) | |
| 68 | |
| 69 p.AddConfig('Release|Win32', | |
| 70 InheritedPropertySheets=[ | |
| 71 '$(SolutionDir)../build/common.vsprops', | |
| 72 '$(SolutionDir)../build/release.vsprops', | |
| 73 ]) | |
| OLD | NEW |