| 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 """ | 5 """ |
| 6 Tool module for adding, to a construction environment, Chromium-specific | 6 Tool module for adding, to a construction environment, Chromium-specific |
| 7 wrappers around Hammer builders. This gives us a central place for any | 7 wrappers around Hammer builders. This gives us a central place for any |
| 8 customization we need to make to the different things we build. | 8 customization we need to make to the different things we build. |
| 9 """ | 9 """ |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 except ValueError: | 50 except ValueError: |
| 51 pass | 51 pass |
| 52 else: | 52 else: |
| 53 top[i] = new | 53 top[i] = new |
| 54 | 54 |
| 55 import __builtin__ | 55 import __builtin__ |
| 56 __builtin__.ChromeFileList = ChromeFileList | 56 __builtin__.ChromeFileList = ChromeFileList |
| 57 | 57 |
| 58 non_compilable_suffixes = { | 58 non_compilable_suffixes = { |
| 59 'LINUX' : set([ | 59 'LINUX' : set([ |
| 60 '.bdic', |
| 61 '.css', |
| 62 '.dat', |
| 60 '.h', | 63 '.h', |
| 61 '.dat', | 64 '.html', |
| 65 '.hxx', |
| 66 '.idl', |
| 67 '.js', |
| 62 '.rc', | 68 '.rc', |
| 63 '.idl', | |
| 64 ]), | 69 ]), |
| 65 'WINDOWS' : set([ | 70 'WINDOWS' : set([ |
| 66 '.h', | 71 '.h', |
| 67 '.dat', | 72 '.dat', |
| 68 '.idl', | 73 '.idl', |
| 69 ]), | 74 ]), |
| 70 } | 75 } |
| 71 | 76 |
| 72 def compilable(env, file): | 77 def compilable(env, file): |
| 73 base, ext = os.path.splitext(str(file)) | 78 base, ext = os.path.splitext(str(file)) |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 # Add the grit tool to the base environment because we use this a lot. | 173 # Add the grit tool to the base environment because we use this a lot. |
| 169 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath) | 174 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath) |
| 170 env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) | 175 env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) |
| 171 | 176 |
| 172 # Add the repack python script tool that we use in multiple places. | 177 # Add the repack python script tool that we use in multiple places. |
| 173 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/data_pack').abspath) | 178 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/data_pack').abspath) |
| 174 env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/data_pack/')]) | 179 env.Tool('scons', toolpath=[env.Dir('$CHROME_SRC_DIR/tools/data_pack/')]) |
| 175 | 180 |
| 176 def exists(env): | 181 def exists(env): |
| 177 return True | 182 return True |
| OLD | NEW |