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

Side by Side Diff: src/SConscript

Issue 7350014: Remove the ability to compile without logging and profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments Created 9 years, 5 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 | « SConstruct ('k') | 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 def Abort(message): 306 def Abort(message):
307 print message 307 print message
308 sys.exit(1) 308 sys.exit(1)
309 309
310 310
311 def ConfigureObjectFiles(): 311 def ConfigureObjectFiles():
312 env = Environment(tools=tools) 312 env = Environment(tools=tools)
313 env.Replace(**context.flags['v8']) 313 env.Replace(**context.flags['v8'])
314 context.ApplyEnvOverrides(env) 314 context.ApplyEnvOverrides(env)
315 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) 315 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C)
316 if 'ENABLE_LOGGING_AND_PROFILING' in env['CPPDEFINES']: 316 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF ILE" --log-snapshot-positions')
317 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LO GFILE" --log-snapshot-positions')
318 else:
319 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET')
320 317
321 def BuildJS2CEnv(type): 318 def BuildJS2CEnv(type):
322 js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' } 319 js2c_env = { 'TYPE': type, 'COMPRESSION': 'off' }
323 if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']: 320 if 'COMPRESS_STARTUP_DATA_BZ2' in env['CPPDEFINES']:
324 js2c_env['COMPRESSION'] = 'bz2' 321 js2c_env['COMPRESSION'] = 'bz2'
325 return js2c_env 322 return js2c_env
326 323
327 # Build the standard platform-independent source files. 324 # Build the standard platform-independent source files.
328 source_files = context.GetRelevantSources(SOURCES) 325 source_files = context.GetRelevantSources(SOURCES)
329 326
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 snapshot_cc = 'snapshot.cc' 370 snapshot_cc = 'snapshot.cc'
374 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) 371 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.'])
375 else: 372 else:
376 snapshot_obj = empty_snapshot_obj 373 snapshot_obj = empty_snapshot_obj
377 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj] 374 library_objs = [non_snapshot_files, libraries_obj, experimental_libraries_obj, snapshot_obj]
378 return (library_objs, d8_objs, [mksnapshot], preparser_objs) 375 return (library_objs, d8_objs, [mksnapshot], preparser_objs)
379 376
380 377
381 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles() 378 (library_objs, d8_objs, mksnapshot, preparser_objs) = ConfigureObjectFiles()
382 Return('library_objs d8_objs mksnapshot preparser_objs') 379 Return('library_objs d8_objs mksnapshot preparser_objs')
OLDNEW
« no previous file with comments | « SConstruct ('k') | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698