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

Side by Side Diff: chrome/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 | « no previous file | net/net_resources.scons » ('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 os 5 import os
6 6
7 Import(['env']) 7 Import(['env'])
8 8
9 env_res = env.Clone() 9 env_res = env.Clone()
10 env_test = env.Clone() 10 env_test = env.Clone()
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 common_res, 54 common_res,
55 debugger_res, 55 debugger_res,
56 net_res, 56 net_res,
57 renderer_res, 57 renderer_res,
58 webkit_res, 58 webkit_res,
59 ] 59 ]
60 60
61 ############################################################################## 61 ##############################################################################
62 # TODO(sgk): move to separate .scons file for generated_resources ########### 62 # TODO(sgk): move to separate .scons file for generated_resources ###########
63 63
64 # TODO(sgk): make a pseudo-Builder for these
65 import sys
66 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
67
68 env_grd = env.Clone() 64 env_grd = env.Clone()
69 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')]) 65 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit')])
70 66
71 # NOTE: fake target gets replaced with real targets from reading .grd 67 # NOTE: fake target gets replaced with real targets from reading .grd
72 generated = env_grd.GRIT( 68 generated = env_grd.GRIT(
73 '$TARGET_ROOT/grit_derived_sources/fake_generated_target', 69 '$TARGET_ROOT/grit_derived_sources/fake_generated_target',
74 '$CHROME_SRC_DIR/chrome/app/generated_resources.grd') 70 '$CHROME_SRC_DIR/chrome/app/generated_resources.grd')
75 grit_files.extend(generated) 71 grit_files.extend(generated)
76 72
77 # NOTE: fake target gets replaced with real targets from reading .grd 73 # NOTE: fake target gets replaced with real targets from reading .grd
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 ] 772 ]
777 773
778 # TODO(port) 774 # TODO(port)
779 if env.Bit('windows'): 775 if env.Bit('windows'):
780 env.Install('$DESTINATION_ROOT/plugins/gears', gears_plugins) 776 env.Install('$DESTINATION_ROOT/plugins/gears', gears_plugins)
781 777
782 env.Command('$DESTINATION_ROOT/resources/inspector', 778 env.Command('$DESTINATION_ROOT/resources/inspector',
783 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/inspector/front-end', 779 '$CHROME_SRC_DIR/third_party/WebKit/WebCore/inspector/front-end',
784 Copy('$TARGET', '$SOURCE'), 780 Copy('$TARGET', '$SOURCE'),
785 source_scanner=DirScanner) 781 source_scanner=DirScanner)
OLDNEW
« no previous file with comments | « no previous file | net/net_resources.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698