| OLD | NEW |
| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 def Abort(message): | 228 def Abort(message): |
| 229 print message | 229 print message |
| 230 sys.exit(1) | 230 sys.exit(1) |
| 231 | 231 |
| 232 | 232 |
| 233 def ConfigureObjectFiles(): | 233 def ConfigureObjectFiles(): |
| 234 env = Environment() | 234 env = Environment() |
| 235 env.Replace(**context.flags['v8']) | 235 env.Replace(**context.flags['v8']) |
| 236 context.ApplyEnvOverrides(env) | 236 context.ApplyEnvOverrides(env) |
| 237 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) | 237 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) |
| 238 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF
ILE"') | 238 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF
ILE" --log-snapshot-positions') |
| 239 | 239 |
| 240 # Build the standard platform-independent source files. | 240 # Build the standard platform-independent source files. |
| 241 source_files = context.GetRelevantSources(SOURCES) | 241 source_files = context.GetRelevantSources(SOURCES) |
| 242 | 242 |
| 243 d8_files = context.GetRelevantSources(D8_FILES) | 243 d8_files = context.GetRelevantSources(D8_FILES) |
| 244 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') | 244 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') |
| 245 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) | 245 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) |
| 246 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] | 246 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] |
| 247 | 247 |
| 248 # Combine the JavaScript library files into a single C++ file and | 248 # Combine the JavaScript library files into a single C++ file and |
| (...skipping 25 matching lines...) Expand all Loading... |
| 274 snapshot_cc = Command('snapshot.cc', [], []) | 274 snapshot_cc = Command('snapshot.cc', [], []) |
| 275 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) | 275 snapshot_obj = context.ConfigureObject(env, snapshot_cc, CPPPATH=['.']) |
| 276 else: | 276 else: |
| 277 snapshot_obj = empty_snapshot_obj | 277 snapshot_obj = empty_snapshot_obj |
| 278 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] | 278 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] |
| 279 return (library_objs, d8_objs, [mksnapshot]) | 279 return (library_objs, d8_objs, [mksnapshot]) |
| 280 | 280 |
| 281 | 281 |
| 282 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() | 282 (library_objs, d8_objs, mksnapshot) = ConfigureObjectFiles() |
| 283 Return('library_objs d8_objs mksnapshot') | 283 Return('library_objs d8_objs mksnapshot') |
| OLD | NEW |