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

Side by Side Diff: src/SConscript

Issue 1627019: Fix cross compilation of snapshot builds using scons.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 299
300 # Build dtoa. 300 # Build dtoa.
301 dtoa_env = env.Copy() 301 dtoa_env = env.Copy()
302 dtoa_env.Replace(**context.flags['dtoa']) 302 dtoa_env.Replace(**context.flags['dtoa'])
303 dtoa_files = ['dtoa-config.c'] 303 dtoa_files = ['dtoa-config.c']
304 dtoa_obj = context.ConfigureObject(dtoa_env, dtoa_files) 304 dtoa_obj = context.ConfigureObject(dtoa_env, dtoa_files)
305 305
306 source_objs = context.ConfigureObject(env, source_files) 306 source_objs = context.ConfigureObject(env, source_files)
307 non_snapshot_files = [dtoa_obj, source_objs] 307 non_snapshot_files = [dtoa_obj, source_objs]
308 308
309 # Create snapshot if necessary. 309 # Create snapshot if necessary. For cross compilation you should either
310 # do without snapshots and take the performance hit or you should build a
311 # host VM with the simulator=arm and snapshot=on options and then take the
312 # resulting snapshot.cc file from obj/release and put it in the src
313 # directory. Then rebuild the VM with the cross compiler and specify
314 # snapshot=nobuild on the scons command line.
310 empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc') 315 empty_snapshot_obj = context.ConfigureObject(env, 'snapshot-empty.cc')
311 mksnapshot_env = env.Copy() 316 mksnapshot_env = env.Copy()
312 mksnapshot_env.Replace(**context.flags['mksnapshot']) 317 mksnapshot_env.Replace(**context.flags['mksnapshot'])
313 mksnapshot_src = 'mksnapshot.cc' 318 mksnapshot_src = 'mksnapshot.cc'
314 mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src, libraries_o bj, non_snapshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb') 319 mksnapshot = mksnapshot_env.Program('mksnapshot', [mksnapshot_src, libraries_o bj, non_snapshot_files, empty_snapshot_obj], PDB='mksnapshot.exe.pdb')
315 if context.use_snapshot: 320 if context.use_snapshot:
316 if context.build_snapshot: 321 if context.build_snapshot:
317 snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapsh ot.log').abspath) 322 snapshot_cc = env.Snapshot('snapshot.cc', mksnapshot, LOGFILE=File('snapsh ot.log').abspath)
318 else: 323 else:
319 snapshot_cc = Command('snapshot.cc', [], []) 324 snapshot_cc = 'snapshot.cc'
320 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 325 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
321 else: 326 else:
322 snapshot_obj = empty_snapshot_obj 327 snapshot_obj = empty_snapshot_obj
323 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] 328 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj]
324 return (library_objs, d8_objs, [mksnapshot]) 329 return (library_objs, d8_objs, [mksnapshot])
325 330
326 331
327 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() 332 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles()
328 Return('library_objs d8_objs mksnapshot') 333 Return('library_objs d8_objs mksnapshot')
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698