| 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 Import(['env', 'env_res']) | 5 Import(['env', 'env_res']) |
| 6 | 6 |
| 7 env = env.Clone() | 7 env = env.Clone() |
| 8 env_res = env_res.Clone() | 8 env_res = env_res.Clone() |
| 9 | 9 |
| 10 env_res.Append( | 10 env_res.Append( |
| 11 CPPPATH = [ | 11 CPPPATH = [ |
| 12 ".", | 12 ".", |
| 13 #"#/../chrome/Debug/obj/chrome_dll", | 13 #"$CHROME_SRC_DIR/chrome/Debug/obj/chrome_dll", |
| 14 "#/..", | 14 "$CHROME_SRC_DIR", |
| 15 #"#/../chrome/Debug/obj", | 15 #"$CHROME_SRC_DIR/chrome/Debug/obj", |
| 16 ], | 16 ], |
| 17 RCFLAGS = [ | 17 RCFLAGS = [ |
| 18 ["/l", "0x409"], | 18 ["/l", "0x409"], |
| 19 ], | 19 ], |
| 20 ) | 20 ) |
| 21 | 21 |
| 22 import os | 22 import os |
| 23 import sys | 23 import sys |
| 24 sys.path.append(Dir('#/../tools/grit').abspath) | 24 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath) |
| 25 env_grd = env.Clone() | 25 env_grd = env.Clone() |
| 26 env_grd.Tool('scons', toolpath=['#/../tools/grit/grit']) | 26 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) |
| 27 # This dummy target (webkit_strings) is used to tell the emitter where | 27 # This dummy target (webkit_strings) is used to tell the emitter where |
| 28 # to put the target files. | 28 # to put the target files. |
| 29 generated = env_grd.GRIT('webkit_strings', | 29 generated = env_grd.GRIT('webkit_strings', |
| 30 '#/../webkit/glue/webkit_strings.grd') | 30 '$CHROME_SRC_DIR/webkit/glue/webkit_strings.grd') |
| 31 for g in [ g for g in generated if str(g).endswith('.rc') ]: | 31 for g in [ g for g in generated if str(g).endswith('.rc') ]: |
| 32 env_res.RES(g) | 32 env_res.RES(g) |
| 33 | 33 |
| 34 | 34 |
| OLD | NEW |