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

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

Issue 21115: Add a Repack tool to scons. This is used to compile linux resources (Closed)
Patch Set: comments Created 11 years, 10 months 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
« no previous file with comments | « webkit/build/localized_strings/SConscript ('k') | webkit/tools/test_shell/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 "$CHROME_SRC_DIR", 12 "$CHROME_SRC_DIR",
13 ], 13 ],
14 ) 14 )
15 15
16 if env_res.Bit('windows'): 16 if env_res.Bit('windows'):
17 env_res.Append( 17 env_res.Append(
18 RCFLAGS = [ 18 RCFLAGS = [
19 ["/l", "0x409"], 19 ["/l", "0x409"],
20 ], 20 ],
21 ) 21 )
22 22
23 import sys
24 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
25 env_grd = env.Clone() 23 env_grd = env.Clone()
26 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
27 # This dummy target (webkit_resources) is used to tell the emitter where 24 # This dummy target (webkit_resources) is used to tell the emitter where
28 # to put the target files. 25 # to put the target files.
29 generated = env_grd.GRIT( 26 generated = env_grd.GRIT(
30 '$TARGET_ROOT/grit_derived_sources/fake_generated_resources', 27 '$TARGET_ROOT/grit_derived_sources/fake_generated_resources',
31 '$CHROME_SRC_DIR/webkit/glue/webkit_resources.grd') 28 '$CHROME_SRC_DIR/webkit/glue/webkit_resources.grd')
32 29
33 if env_res.Bit('windows'): 30 if env_res.Bit('windows'):
34 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')]:
35 env_res.RES(g) 32 env_res.RES(g)
36 33
37 env.ChromeMSVSProject('$WEBKIT_DIR/build/webkit_resources/webkit_resources.vcpro j', 34 env.ChromeMSVSProject('$WEBKIT_DIR/build/webkit_resources/webkit_resources.vcpro j',
38 guid='{0B469837-3D46-484A-AFB3-C5A6C68730B9}') 35 guid='{0B469837-3D46-484A-AFB3-C5A6C68730B9}')
OLDNEW
« no previous file with comments | « webkit/build/localized_strings/SConscript ('k') | webkit/tools/test_shell/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698