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

Side by Side Diff: src/SConscript

Issue 7085025: Fix building with profilingsupport=off (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 6 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 | src/api.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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 def Abort(message): 304 def Abort(message):
305 print message 305 print message
306 sys.exit(1) 306 sys.exit(1)
307 307
308 308
309 def ConfigureObjectFiles(): 309 def ConfigureObjectFiles():
310 env = Environment(tools=tools) 310 env = Environment(tools=tools)
311 env.Replace(**context.flags['v8']) 311 env.Replace(**context.flags['v8'])
312 context.ApplyEnvOverrides(env) 312 context.ApplyEnvOverrides(env)
313 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) 313 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C)
314 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE" --log-snapshot-positions') 314 if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']:
315 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LO GFILE" --log-snapshot-positions')
316 else:
317 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET')
315 318
316 # Build the standard platform-independent source files. 319 # Build the standard platform-independent source files.
317 source_files = context.GetRelevantSources(SOURCES) 320 source_files = context.GetRelevantSources(SOURCES)
318 321
319 d8_files = context.GetRelevantSources(D8_FILES) 322 d8_files = context.GetRelevantSources(D8_FILES)
320 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') 323 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8')
321 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) 324 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.'])
322 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] 325 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj]
323 326
324 # Combine the JavaScript library files into a single C++ file and 327 # Combine the JavaScript library files into a single C++ file and
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 snapshot_cc = 'snapshot.cc' 362 snapshot_cc = 'snapshot.cc'
360 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 363 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
361 else: 364 else:
362 snapshot_obj = empty_snapshot_obj 365 snapshot_obj = empty_snapshot_obj
363 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj] 366 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj]
364 return (library_objs, d8_objs, [mksnapshot], preparser_objs) 367 return (library_objs, d8_objs, [mksnapshot], preparser_objs)
365 368
366 369
367 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() 370 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles()
368 Return('library_objs d8_objs mksnapshot preparser_objs') 371 Return('library_objs d8_objs mksnapshot preparser_objs')
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698