| 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 | |
| 11 | 10 |
| 12 Import('env') | 11 Import('env') |
| 13 | 12 |
| 14 env = env.Clone() | 13 env = env.Clone() |
| 15 | 14 |
| 16 input_files = [ | 15 input_files = [ |
| 17 'base/effective_tld_names.dat', | 16 'base/effective_tld_names.dat', |
| 18 'tools/tld_cleanup/tld_cleanup$PROGSUFFIX', | 17 'tools/tld_cleanup/tld_cleanup$PROGSUFFIX', |
| 19 ] | 18 ] |
| 20 | 19 |
| 21 # This dat file needed by net_resources is generated. | 20 # This dat file needed by net_resources is generated. |
| 22 tld_names_clean = env.Command( | 21 tld_names_clean = env.Command( |
| 23 '$TARGET_ROOT/grit_derived_sources/effective_tld_names_clean.dat', | 22 '$TARGET_ROOT/grit_derived_sources/effective_tld_names_clean.dat', |
| 24 input_files, | 23 input_files, |
| 25 '${SOURCES[1]} ${SOURCES[0]} $TARGET') | 24 '${SOURCES[1]} ${SOURCES[0]} $TARGET') |
| 26 | 25 |
| 27 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath) | |
| 28 env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) | |
| 29 # This dummy target is used to tell the emitter where to put the target files. | 26 # This dummy target is used to tell the emitter where to put the target files. |
| 30 generated = env.GRIT('$TARGET_ROOT/grit_derived_sources/dummy_net_res', | 27 generated = env.GRIT('$TARGET_ROOT/grit_derived_sources/dummy_net_res', |
| 31 ['base/net_resources.grd'] + tld_names_clean) | 28 ['base/net_resources.grd'] + tld_names_clean) |
| 32 | 29 |
| 33 | 30 |
| 34 if env.Bit('windows'): | 31 if env.Bit('windows'): |
| 35 env.Prepend( | 32 env.Prepend( |
| 36 RCFLAGS = [ | 33 RCFLAGS = [ |
| 37 '/l 0x409', | 34 '/l 0x409', |
| 38 ], | 35 ], |
| (...skipping 28 matching lines...) Expand all Loading... |
| 67 InheritedPropertySheets=[ | 64 InheritedPropertySheets=[ |
| 68 '$(SolutionDir)../build/common.vsprops', | 65 '$(SolutionDir)../build/common.vsprops', |
| 69 '$(SolutionDir)../build/debug.vsprops', | 66 '$(SolutionDir)../build/debug.vsprops', |
| 70 ]) | 67 ]) |
| 71 | 68 |
| 72 p.AddConfig('Release|Win32', | 69 p.AddConfig('Release|Win32', |
| 73 InheritedPropertySheets=[ | 70 InheritedPropertySheets=[ |
| 74 '$(SolutionDir)../build/common.vsprops', | 71 '$(SolutionDir)../build/common.vsprops', |
| 75 '$(SolutionDir)../build/release.vsprops', | 72 '$(SolutionDir)../build/release.vsprops', |
| 76 ]) | 73 ]) |
| OLD | NEW |