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

Side by Side Diff: tools/gyp/v8.gyp

Issue 317633003: Revert "Support external startup data in V8." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « tools/concatenate-files.py ('k') | tools/js2c.py » ('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 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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 24 matching lines...) Expand all
35 'targets': [ 35 'targets': [
36 { 36 {
37 'target_name': 'v8', 37 'target_name': 'v8',
38 'dependencies_traverse': 1, 38 'dependencies_traverse': 1,
39 'conditions': [ 39 'conditions': [
40 ['want_separate_host_toolset==1', { 40 ['want_separate_host_toolset==1', {
41 'toolsets': ['host', 'target'], 41 'toolsets': ['host', 'target'],
42 }, { 42 }, {
43 'toolsets': ['target'], 43 'toolsets': ['target'],
44 }], 44 }],
45 45 ['v8_use_snapshot=="true"', {
46 ['v8_use_snapshot=="true" and v8_use_external_startup_data==0', {
47 # The dependency on v8_base should come from a transitive 46 # The dependency on v8_base should come from a transitive
48 # dependency however the Android toolchain requires libv8_base.a 47 # dependency however the Android toolchain requires libv8_base.a
49 # to appear before libv8_snapshot.a so it's listed explicitly. 48 # to appear before libv8_snapshot.a so it's listed explicitly.
50 'dependencies': ['v8_base', 'v8_snapshot'], 49 'dependencies': ['v8_base', 'v8_snapshot'],
51 }], 50 },
52 ['v8_use_snapshot!="true" and v8_use_external_startup_data==0', { 51 {
53 # The dependency on v8_base should come from a transitive 52 # The dependency on v8_base should come from a transitive
54 # dependency however the Android toolchain requires libv8_base.a 53 # dependency however the Android toolchain requires libv8_base.a
55 # to appear before libv8_snapshot.a so it's listed explicitly. 54 # to appear before libv8_snapshot.a so it's listed explicitly.
56 'dependencies': ['v8_base', 'v8_nosnapshot'], 55 'dependencies': ['v8_base', 'v8_nosnapshot'],
57 }], 56 }],
58 ['v8_use_external_startup_data==1', {
59 'dependencies': ['v8_base', 'v8_external_snapshot'],
60 }],
61 ['component=="shared_library"', { 57 ['component=="shared_library"', {
62 'type': '<(component)', 58 'type': '<(component)',
63 'sources': [ 59 'sources': [
64 # Note: on non-Windows we still build this file so that gyp 60 # Note: on non-Windows we still build this file so that gyp
65 # has some sources to link into the component. 61 # has some sources to link into the component.
66 '../../src/v8dll-main.cc', 62 '../../src/v8dll-main.cc',
67 ], 63 ],
68 'include_dirs': [ 64 'include_dirs': [
69 '../..', 65 '../..',
70 ], 66 ],
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 'v8_base', 141 'v8_base',
146 ], 142 ],
147 'include_dirs+': [ 143 'include_dirs+': [
148 '../..', 144 '../..',
149 ], 145 ],
150 'sources': [ 146 'sources': [
151 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 147 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
152 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 148 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
153 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', 149 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc',
154 '<(INTERMEDIATE_DIR)/snapshot.cc', 150 '<(INTERMEDIATE_DIR)/snapshot.cc',
155 '../../src/snapshot-common.cc',
156 ], 151 ],
157 'actions': [ 152 'actions': [
158 { 153 {
159 'action_name': 'run_mksnapshot', 154 'action_name': 'run_mksnapshot',
160 'inputs': [ 155 'inputs': [
161 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', 156 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
162 ], 157 ],
163 'outputs': [ 158 'outputs': [
164 '<(INTERMEDIATE_DIR)/snapshot.cc', 159 '<(INTERMEDIATE_DIR)/snapshot.cc',
165 ], 160 ],
166 'variables': { 161 'variables': {
167 'mksnapshot_flags': [ 162 'mksnapshot_flags': [
168 '--log-snapshot-positions', 163 '--log-snapshot-positions',
169 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', 164 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
170 ], 165 ],
171 'conditions': [ 166 'conditions': [
172 ['v8_random_seed!=0', { 167 ['v8_random_seed!=0', {
173 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], 168 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
174 }], 169 }],
175 ], 170 ],
176 }, 171 },
177 'action': [ 172 'action': [
178 '<@(_inputs)', 173 '<@(_inputs)',
179 '<@(mksnapshot_flags)', 174 '<@(mksnapshot_flags)',
180 '<@(INTERMEDIATE_DIR)/snapshot.cc' 175 '<@(_outputs)'
181 ], 176 ],
182 }, 177 },
183 ], 178 ],
184 }, 179 },
185 { 180 {
186 'target_name': 'v8_nosnapshot', 181 'target_name': 'v8_nosnapshot',
187 'type': 'static_library', 182 'type': 'static_library',
188 'dependencies': [ 183 'dependencies': [
189 'v8_base', 184 'v8_base',
190 ], 185 ],
191 'include_dirs+': [ 186 'include_dirs+': [
192 '../..', 187 '../..',
193 ], 188 ],
194 'sources': [ 189 'sources': [
195 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 190 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
196 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 191 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
197 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc', 192 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc',
198 '../../src/snapshot-common.cc',
199 '../../src/snapshot-empty.cc', 193 '../../src/snapshot-empty.cc',
200 ], 194 ],
201 'conditions': [ 195 'conditions': [
202 ['want_separate_host_toolset==1', { 196 ['want_separate_host_toolset==1', {
203 'toolsets': ['host', 'target'], 197 'toolsets': ['host', 'target'],
204 'dependencies': ['js2c#host', 'generate_trig_table#host'], 198 'dependencies': ['js2c#host', 'generate_trig_table#host'],
205 }, { 199 }, {
206 'toolsets': ['target'], 200 'toolsets': ['target'],
207 'dependencies': ['js2c', 'generate_trig_table'], 201 'dependencies': ['js2c', 'generate_trig_table'],
208 }], 202 }],
209 ['component=="shared_library"', { 203 ['component=="shared_library"', {
210 'defines': [ 204 'defines': [
211 'BUILDING_V8_SHARED', 205 'BUILDING_V8_SHARED',
212 'V8_SHARED', 206 'V8_SHARED',
213 ], 207 ],
214 }], 208 }],
215 ] 209 ]
216 }, 210 },
217 {
218 'target_name': 'v8_external_snapshot',
219 'type': 'static_library',
220 'conditions': [
221 ['want_separate_host_toolset==1', {
222 'toolsets': ['host', 'target'],
223 'dependencies': [
224 'mksnapshot#host',
225 'js2c#host',
226 'generate_trig_table#host',
227 'natives_blob#host',
228 ]}, {
229 'toolsets': ['target'],
230 'dependencies': [
231 'mksnapshot',
232 'js2c',
233 'generate_trig_table',
234 'natives_blob',
235 ],
236 }],
237 ['component=="shared_library"', {
238 'defines': [
239 'V8_SHARED',
240 'BUILDING_V8_SHARED',
241 ],
242 'direct_dependent_settings': {
243 'defines': [
244 'V8_SHARED',
245 'USING_V8_SHARED',
246 ],
247 },
248 }],
249 ],
250 'dependencies': [
251 'v8_base',
252 ],
253 'include_dirs+': [
254 '../..',
255 ],
256 'sources': [
257 '<(SHARED_INTERMEDIATE_DIR)/trig-table.cc',
258 '../../src/natives-external.cc',
259 '../../src/snapshot-external.cc',
260 ],
261 'actions': [
262 {
263 'action_name': 'run_mksnapshot (external)',
264 'inputs': [
265 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
266 ],
267 'outputs': [
268 '<(INTERMEDIATE_DIR)/snapshot.cc',
269 '<(PRODUCT_DIR)/snapshot_blob.bin',
270 ],
271 'variables': {
272 'mksnapshot_flags': [
273 '--log-snapshot-positions',
274 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log',
275 ],
276 'conditions': [
277 ['v8_random_seed!=0', {
278 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'],
279 }],
280 ],
281 },
282 'action': [
283 '<@(_inputs)',
284 '<@(mksnapshot_flags)',
285 '<@(INTERMEDIATE_DIR)/snapshot.cc',
286 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin',
287 ],
288 },
289 ],
290 },
291 { 'target_name': 'generate_trig_table', 211 { 'target_name': 'generate_trig_table',
292 'type': 'none', 212 'type': 'none',
293 'conditions': [ 213 'conditions': [
294 ['want_separate_host_toolset==1', { 214 ['want_separate_host_toolset==1', {
295 'toolsets': ['host'], 215 'toolsets': ['host'],
296 }, { 216 }, {
297 'toolsets': ['target'], 217 'toolsets': ['target'],
298 }], 218 }],
299 ], 219 ],
300 'actions': [ 220 'actions': [
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 '../../src/scanner.cc', 539 '../../src/scanner.cc',
620 '../../src/scanner.h', 540 '../../src/scanner.h',
621 '../../src/scopeinfo.cc', 541 '../../src/scopeinfo.cc',
622 '../../src/scopeinfo.h', 542 '../../src/scopeinfo.h',
623 '../../src/scopes.cc', 543 '../../src/scopes.cc',
624 '../../src/scopes.h', 544 '../../src/scopes.h',
625 '../../src/serialize.cc', 545 '../../src/serialize.cc',
626 '../../src/serialize.h', 546 '../../src/serialize.h',
627 '../../src/small-pointer-list.h', 547 '../../src/small-pointer-list.h',
628 '../../src/smart-pointers.h', 548 '../../src/smart-pointers.h',
549 '../../src/snapshot-common.cc',
629 '../../src/snapshot.h', 550 '../../src/snapshot.h',
630 '../../src/snapshot-source-sink.cc',
631 '../../src/snapshot-source-sink.h',
632 '../../src/spaces-inl.h', 551 '../../src/spaces-inl.h',
633 '../../src/spaces.cc', 552 '../../src/spaces.cc',
634 '../../src/spaces.h', 553 '../../src/spaces.h',
635 '../../src/store-buffer-inl.h', 554 '../../src/store-buffer-inl.h',
636 '../../src/store-buffer.cc', 555 '../../src/store-buffer.cc',
637 '../../src/store-buffer.h', 556 '../../src/store-buffer.h',
638 '../../src/string-search.cc', 557 '../../src/string-search.cc',
639 '../../src/string-search.h', 558 '../../src/string-search.h',
640 '../../src/string-stream.cc', 559 '../../src/string-stream.cc',
641 '../../src/string-stream.h', 560 '../../src/string-stream.h',
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 }], 1077 }],
1159 ['component=="shared_library"', { 1078 ['component=="shared_library"', {
1160 'defines': [ 1079 'defines': [
1161 'BUILDING_V8_SHARED', 1080 'BUILDING_V8_SHARED',
1162 'V8_SHARED', 1081 'V8_SHARED',
1163 ], 1082 ],
1164 }], 1083 }],
1165 ], 1084 ],
1166 }, 1085 },
1167 { 1086 {
1168 'target_name': 'natives_blob',
1169 'type': 'none',
1170 'dependencies': ['js2c'],
1171 'actions': [{
1172 'action_name': 'concatenate_natives_blob',
1173 'inputs': [
1174 '../../tools/concatenate-files.py',
1175 '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
1176 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin',
1177 ],
1178 'outputs': [
1179 '<(PRODUCT_DIR)/natives_blob.bin',
1180 ],
1181 'action': ['python', '<@(_inputs)', '<@(_outputs)'],
1182 }],
1183 'conditions': [
1184 ['want_separate_host_toolset==1', {
1185 'toolsets': ['host'],
1186 }, {
1187 'toolsets': ['target'],
1188 }],
1189 ],
1190 },
1191 {
1192 'target_name': 'js2c', 1087 'target_name': 'js2c',
1193 'type': 'none', 1088 'type': 'none',
1194 'conditions': [ 1089 'conditions': [
1195 ['want_separate_host_toolset==1', { 1090 ['want_separate_host_toolset==1', {
1196 'toolsets': ['host'], 1091 'toolsets': ['host'],
1197 }, { 1092 }, {
1198 'toolsets': ['target'], 1093 'toolsets': ['target'],
1199 }], 1094 }],
1200 ['v8_enable_i18n_support==1', { 1095 ['v8_enable_i18n_support==1', {
1201 'variables': { 1096 'variables': {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
1237 '../../src/symbol.js', 1132 '../../src/symbol.js',
1238 '../../src/proxy.js', 1133 '../../src/proxy.js',
1239 '../../src/collection.js', 1134 '../../src/collection.js',
1240 '../../src/collection-iterator.js', 1135 '../../src/collection-iterator.js',
1241 '../../src/generator.js', 1136 '../../src/generator.js',
1242 '../../src/array-iterator.js', 1137 '../../src/array-iterator.js',
1243 '../../src/harmony-string.js', 1138 '../../src/harmony-string.js',
1244 '../../src/harmony-array.js', 1139 '../../src/harmony-array.js',
1245 '../../src/harmony-math.js' 1140 '../../src/harmony-math.js'
1246 ], 1141 ],
1247 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin',
1248 'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries -experimental.bin',
1249 }, 1142 },
1250 'actions': [ 1143 'actions': [
1251 { 1144 {
1252 'action_name': 'js2c', 1145 'action_name': 'js2c',
1253 'inputs': [ 1146 'inputs': [
1254 '../../tools/js2c.py', 1147 '../../tools/js2c.py',
1255 '<@(library_files)', 1148 '<@(library_files)',
1256 '<@(i18n_library_files)', 1149 '<@(i18n_library_files)',
1257 ], 1150 ],
1258 'outputs': [ 1151 'outputs': [
1259 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 1152 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
1260 ], 1153 ],
1261 'action': [ 1154 'action': [
1262 'python', 1155 'python',
1263 '../../tools/js2c.py', 1156 '../../tools/js2c.py',
1264 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 1157 '<@(_outputs)',
1265 'CORE', 1158 'CORE',
1266 '<(v8_compress_startup_data)', 1159 '<(v8_compress_startup_data)',
1267 '<@(library_files)', 1160 '<@(library_files)',
1268 '<@(i18n_library_files)', 1161 '<@(i18n_library_files)',
1269 ], 1162 ],
1270 'conditions': [
1271 [ 'v8_use_external_startup_data==1', {
1272 'outputs': ['<@(libraries_bin_file)'],
1273 'action': [
1274 '--startup_blob', '<@(libraries_bin_file)',
1275 ],
1276 }],
1277 ],
1278 }, 1163 },
1279 { 1164 {
1280 'action_name': 'js2c_experimental', 1165 'action_name': 'js2c_experimental',
1281 'inputs': [ 1166 'inputs': [
1282 '../../tools/js2c.py', 1167 '../../tools/js2c.py',
1283 '<@(experimental_library_files)', 1168 '<@(experimental_library_files)',
1284 ], 1169 ],
1285 'outputs': [ 1170 'outputs': [
1286 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 1171 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc',
1287 ], 1172 ],
1288 'action': [ 1173 'action': [
1289 'python', 1174 'python',
1290 '../../tools/js2c.py', 1175 '../../tools/js2c.py',
1291 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', 1176 '<@(_outputs)',
1292 'EXPERIMENTAL', 1177 'EXPERIMENTAL',
1293 '<(v8_compress_startup_data)', 1178 '<(v8_compress_startup_data)',
1294 '<@(experimental_library_files)' 1179 '<@(experimental_library_files)'
1295 ], 1180 ],
1296 'conditions': [
1297 [ 'v8_use_external_startup_data==1', {
1298 'outputs': ['<@(libraries_experimental_bin_file)'],
1299 'action': [
1300 '--startup_blob', '<@(libraries_experimental_bin_file)'
1301 ],
1302 }],
1303 ],
1304 }, 1181 },
1305 ], 1182 ],
1306 }, 1183 },
1307 { 1184 {
1308 'target_name': 'postmortem-metadata', 1185 'target_name': 'postmortem-metadata',
1309 'type': 'none', 1186 'type': 'none',
1310 'variables': { 1187 'variables': {
1311 'heapobject_files': [ 1188 'heapobject_files': [
1312 '../../src/objects.h', 1189 '../../src/objects.h',
1313 '../../src/objects-inl.h', 1190 '../../src/objects-inl.h',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1350 }], 1227 }],
1351 ['v8_compress_startup_data=="bz2"', { 1228 ['v8_compress_startup_data=="bz2"', {
1352 'libraries': [ 1229 'libraries': [
1353 '-lbz2', 1230 '-lbz2',
1354 ] 1231 ]
1355 }], 1232 }],
1356 ], 1233 ],
1357 }, 1234 },
1358 ], 1235 ],
1359 } 1236 }
OLDNEW
« no previous file with comments | « tools/concatenate-files.py ('k') | tools/js2c.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698