Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(513)

Side by Side Diff: webkit/build/localized_strings/SConscript

Issue 15051: Convert from using env['PLATFORM'] directly to using the more flexible... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/build/WebCore/SConscript ('k') | webkit/build/port/SConscript » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_SRC_DIR/chrome/Debug/obj/chrome_dll", 13 #"$CHROME_SRC_DIR/chrome/Debug/obj/chrome_dll",
14 "$CHROME_SRC_DIR", 14 "$CHROME_SRC_DIR",
15 #"$CHROME_SRC_DIR/chrome/Debug/obj", 15 #"$CHROME_SRC_DIR/chrome/Debug/obj",
16 ], 16 ],
17 ) 17 )
18 18
19 if env_res['PLATFORM'] == 'win32': 19 if env_res.Bit('windows'):
20 env_res.Append( 20 env_res.Append(
21 RCFLAGS = [ 21 RCFLAGS = [
22 ["/l", "0x409"], 22 ["/l", "0x409"],
23 ], 23 ],
24 ) 24 )
25 25
26 import os 26 import os
27 import sys 27 import sys
28 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath) 28 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
29 env_grd = env.Clone() 29 env_grd = env.Clone()
30 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) 30 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
31 # This dummy target (webkit_strings) is used to tell the emitter where 31 # This dummy target (webkit_strings) is used to tell the emitter where
32 # to put the target files. 32 # to put the target files.
33 generated = env_grd.GRIT( 33 generated = env_grd.GRIT(
34 '$TARGET_ROOT/grit_derived_sources/fake_generated_target', 34 '$TARGET_ROOT/grit_derived_sources/fake_generated_target',
35 '$CHROME_SRC_DIR/webkit/glue/webkit_strings.grd') 35 '$CHROME_SRC_DIR/webkit/glue/webkit_strings.grd')
36 36
37 if env_res['PLATFORM'] == 'win32': 37 if env_res.Bit('windows'):
38 for g in [g for g in generated if str(g).endswith('.rc')]: 38 for g in [g for g in generated if str(g).endswith('.rc')]:
39 env_res.RES(g) 39 env_res.RES(g)
OLDNEW
« no previous file with comments | « webkit/build/WebCore/SConscript ('k') | webkit/build/port/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698