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

Side by Side Diff: webkit/tools/test_shell/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/webkit_resources/SConscript ('k') | no next file » | 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 if env.Bit('windows'): 10 if env.Bit('windows'):
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 test_shell = env.ChromeProgram('test_shell', resources + exe_input_files) 202 test_shell = env.ChromeProgram('test_shell', resources + exe_input_files)
203 203
204 i = env.Install('$TARGET_ROOT', test_shell) 204 i = env.Install('$TARGET_ROOT', test_shell)
205 env.Alias('webkit', i) 205 env.Alias('webkit', i)
206 206
207 if env.Bit('windows'): 207 if env.Bit('windows'):
208 env.Depends(test_shell, '$V8_DIR/vc80.pdb') 208 env.Depends(test_shell, '$V8_DIR/vc80.pdb')
209 209
210 if env.Bit('linux'): 210 if env.Bit('linux'):
211 # Build the linux resource files. 211 # Build the linux resource files.
212 import sys
213 sys.path.append(env.Dir('$CHROME_SRC_DIR/tools/grit').abspath)
214 env_grd = env.Clone() 212 env_grd = env.Clone()
215 env_grd.Tool('scons', toolpath=[env_grd.Dir('$CHROME_SRC_DIR/tools/grit/grit') ])
216 # This dummy target is used to tell the emitter where to put the target 213 # This dummy target is used to tell the emitter where to put the target
217 # files. 214 # files.
218 generated = env_grd.GRIT( 215 generated = env_grd.GRIT(
219 '$TARGET_ROOT/grit_derived_sources/fake_test_shell_resources', 216 '$TARGET_ROOT/grit_derived_sources/fake_test_shell_resources',
220 '$CHROME_SRC_DIR/webkit/tools/test_shell/test_shell_resources.grd') 217 '$CHROME_SRC_DIR/webkit/tools/test_shell/test_shell_resources.grd')
221 218
222 env.Append(BUILDERS = { 'Repack' : Builder(
223 action = 'python $CHROME_SRC_DIR/tools/data_pack/repack.py $TARGET $SOURCE S',
224 )})
225 test_shell_data = env.Repack( 219 test_shell_data = env.Repack(
226 '$TARGET_ROOT/test_shell.pak', 220 '$TARGET_ROOT/test_shell.pak',
227 ['$TARGET_ROOT/grit_derived_sources/net_resources.pak', 221 ['$TARGET_ROOT/grit_derived_sources/net_resources.pak',
228 '$TARGET_ROOT/grit_derived_sources/test_shell_resources.pak', 222 '$TARGET_ROOT/grit_derived_sources/test_shell_resources.pak',
229 '$TARGET_ROOT/grit_derived_sources/webkit_resources.pak', 223 '$TARGET_ROOT/grit_derived_sources/webkit_resources.pak',
230 '$TARGET_ROOT/grit_derived_sources/webkit_strings_en-US.pak', 224 '$TARGET_ROOT/grit_derived_sources/webkit_strings_en-US.pak',
231 ] 225 ]
232 ) 226 )
233 env.Depends(test_shell, test_shell_data) 227 env.Depends(test_shell, test_shell_data)
234 228
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 '$V8_DIR/tools/visual_studio/v8_snapshot.vcproj', 314 '$V8_DIR/tools/visual_studio/v8_snapshot.vcproj',
321 '$LIBPNG_DIR/libpng.vcproj', 315 '$LIBPNG_DIR/libpng.vcproj',
322 '$WEBKIT_DIR/build/glue/glue.vcproj', 316 '$WEBKIT_DIR/build/glue/glue.vcproj',
323 '$SKIA_DIR/skia.vcproj', 317 '$SKIA_DIR/skia.vcproj',
324 '$GOOGLEURL_DIR/build/googleurl.vcproj', 318 '$GOOGLEURL_DIR/build/googleurl.vcproj',
325 '$WEBKIT_DIR/activex_shim/activex_shim.vcproj', 319 '$WEBKIT_DIR/activex_shim/activex_shim.vcproj',
326 '$SDCH_DIR/sdch.vcproj', 320 '$SDCH_DIR/sdch.vcproj',
327 '$LIBXSLT_DIR/build/libxslt.vcproj', 321 '$LIBXSLT_DIR/build/libxslt.vcproj',
328 ], 322 ],
329 guid='{E6766F81-1FCD-4CD7-BC16-E36964A14867}') 323 guid='{E6766F81-1FCD-4CD7-BC16-E36964A14867}')
OLDNEW
« no previous file with comments | « webkit/build/webkit_resources/SConscript ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698