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

Side by Side Diff: src/SConscript

Issue 6691054: [Arguments] Merge (7442,7496] from bleeding_edge. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 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 | « samples/shell.cc ('k') | src/accessors.cc » ('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 2011 the V8 project authors. All rights reserved. 1 # Copyright 2011 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 13 matching lines...) Expand all
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 import sys 28 import sys
29 from os.path import join, dirname, abspath 29 from os.path import join, dirname, abspath
30 root_dir = dirname(File('SConstruct').rfile().abspath) 30 root_dir = dirname(File('SConstruct').rfile().abspath)
31 sys.path.append(join(root_dir, 'tools')) 31 sys.path.append(join(root_dir, 'tools'))
32 import js2c 32 import js2c
33 Import('context') 33 Import('context')
34 Import('tools')
34 35
35 36
36 SOURCES = { 37 SOURCES = {
37 'all': Split(""" 38 'all': Split("""
38 accessors.cc 39 accessors.cc
39 allocation.cc 40 allocation.cc
40 api.cc 41 api.cc
41 assembler.cc 42 assembler.cc
42 ast.cc 43 ast.cc
43 atomicops_internals_x86_gcc.cc 44 atomicops_internals_x86_gcc.cc
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 debug-debugger.js 319 debug-debugger.js
319 '''.split() 320 '''.split()
320 321
321 322
322 def Abort(message): 323 def Abort(message):
323 print message 324 print message
324 sys.exit(1) 325 sys.exit(1)
325 326
326 327
327 def ConfigureObjectFiles(): 328 def ConfigureObjectFiles():
328 env = Environment() 329 env = Environment(tools=tools)
329 env.Replace(**context.flags['v8']) 330 env.Replace(**context.flags['v8'])
330 context.ApplyEnvOverrides(env) 331 context.ApplyEnvOverrides(env)
331 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) 332 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C)
332 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE" --log-snapshot-positions') 333 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE" --log-snapshot-positions')
333 334
334 # Build the standard platform-independent source files. 335 # Build the standard platform-independent source files.
335 source_files = context.GetRelevantSources(SOURCES) 336 source_files = context.GetRelevantSources(SOURCES)
336 337
337 d8_files = context.GetRelevantSources(D8_FILES) 338 d8_files = context.GetRelevantSources(D8_FILES)
338 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') 339 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8')
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 snapshot_cc = 'snapshot.cc' 371 snapshot_cc = 'snapshot.cc'
371 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 372 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
372 else: 373 else:
373 snapshot_obj = empty_snapshot_obj 374 snapshot_obj = empty_snapshot_obj
374 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] 375 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj]
375 return (library_objs, d8_objs, [mksnapshot], preparser_objs) 376 return (library_objs, d8_objs, [mksnapshot], preparser_objs)
376 377
377 378
378 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() 379 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles()
379 Return('library_objs d8_objs mksnapshot preparser_objs') 380 Return('library_objs d8_objs mksnapshot preparser_objs')
OLDNEW
« no previous file with comments | « samples/shell.cc ('k') | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698