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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 def Abort(message): | 102 def Abort(message): |
103 print message | 103 print message |
104 sys.exit(1) | 104 sys.exit(1) |
105 | 105 |
106 | 106 |
107 def ConfigureObjectFiles(): | 107 def ConfigureObjectFiles(): |
108 env = Environment() | 108 env = Environment() |
109 env.Replace(**context.flags['v8']) | 109 env.Replace(**context.flags['v8']) |
110 context.ApplyEnvOverrides(env) | 110 context.ApplyEnvOverrides(env) |
111 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) | 111 env['BUILDERS']['JS2C'] = Builder(action=js2c.JS2C) |
112 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile $LOGFI
LE') | 112 env['BUILDERS']['Snapshot'] = Builder(action='$SOURCE $TARGET --logfile "$LOGF
ILE"') |
113 | 113 |
114 # Build the standard platform-independent source files. | 114 # Build the standard platform-independent source files. |
115 source_files = context.GetRelevantSources(SOURCES) | 115 source_files = context.GetRelevantSources(SOURCES) |
116 | 116 |
117 d8_files = context.GetRelevantSources(D8_FILES) | 117 d8_files = context.GetRelevantSources(D8_FILES) |
118 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') | 118 d8_js = env.JS2C('d8-js.cc', 'd8.js', TYPE='D8') |
119 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) | 119 d8_js_obj = context.ConfigureObject(env, d8_js, CPPPATH=['.']) |
120 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] | 120 d8_objs = [context.ConfigureObject(env, [d8_files]), d8_js_obj] |
121 | 121 |
122 # Combine the JavaScript library files into a single C++ file and | 122 # Combine the JavaScript library files into a single C++ file and |
(...skipping 28 matching lines...) Expand all Loading... |
151 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=['
.']) | 151 libraries_obj = context.ConfigureObject(env, libraries_empty_src, CPPPATH=['
.']) |
152 else: | 152 else: |
153 snapshot_obj = empty_snapshot_obj | 153 snapshot_obj = empty_snapshot_obj |
154 | 154 |
155 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] | 155 library_objs = [non_snapshot_files, libraries_obj, snapshot_obj] |
156 return (library_objs, d8_objs) | 156 return (library_objs, d8_objs) |
157 | 157 |
158 | 158 |
159 (library_objs, d8_objs) = ConfigureObjectFiles() | 159 (library_objs, d8_objs) = ConfigureObjectFiles() |
160 Return('library_objs d8_objs') | 160 Return('library_objs d8_objs') |
OLD | NEW |