OLD | NEW |
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 Loading... |
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 Loading... |
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 '../../src/scanner.cc', | 534 '../../src/scanner.cc', |
615 '../../src/scanner.h', | 535 '../../src/scanner.h', |
616 '../../src/scopeinfo.cc', | 536 '../../src/scopeinfo.cc', |
617 '../../src/scopeinfo.h', | 537 '../../src/scopeinfo.h', |
618 '../../src/scopes.cc', | 538 '../../src/scopes.cc', |
619 '../../src/scopes.h', | 539 '../../src/scopes.h', |
620 '../../src/serialize.cc', | 540 '../../src/serialize.cc', |
621 '../../src/serialize.h', | 541 '../../src/serialize.h', |
622 '../../src/small-pointer-list.h', | 542 '../../src/small-pointer-list.h', |
623 '../../src/smart-pointers.h', | 543 '../../src/smart-pointers.h', |
| 544 '../../src/snapshot-common.cc', |
624 '../../src/snapshot.h', | 545 '../../src/snapshot.h', |
625 '../../src/snapshot-source-sink.cc', | |
626 '../../src/snapshot-source-sink.h', | |
627 '../../src/spaces-inl.h', | 546 '../../src/spaces-inl.h', |
628 '../../src/spaces.cc', | 547 '../../src/spaces.cc', |
629 '../../src/spaces.h', | 548 '../../src/spaces.h', |
630 '../../src/store-buffer-inl.h', | 549 '../../src/store-buffer-inl.h', |
631 '../../src/store-buffer.cc', | 550 '../../src/store-buffer.cc', |
632 '../../src/store-buffer.h', | 551 '../../src/store-buffer.h', |
633 '../../src/string-search.cc', | 552 '../../src/string-search.cc', |
634 '../../src/string-search.h', | 553 '../../src/string-search.h', |
635 '../../src/string-stream.cc', | 554 '../../src/string-stream.cc', |
636 '../../src/string-stream.h', | 555 '../../src/string-stream.h', |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1166 }], | 1085 }], |
1167 ['component=="shared_library"', { | 1086 ['component=="shared_library"', { |
1168 'defines': [ | 1087 'defines': [ |
1169 'BUILDING_V8_SHARED', | 1088 'BUILDING_V8_SHARED', |
1170 'V8_SHARED', | 1089 'V8_SHARED', |
1171 ], | 1090 ], |
1172 }], | 1091 }], |
1173 ], | 1092 ], |
1174 }, | 1093 }, |
1175 { | 1094 { |
1176 'target_name': 'natives_blob', | |
1177 'type': 'none', | |
1178 'conditions': [ | |
1179 [ 'v8_use_external_startup_data==1', { | |
1180 'dependencies': ['js2c'], | |
1181 'actions': [{ | |
1182 'action_name': 'concatenate_natives_blob', | |
1183 'inputs': [ | |
1184 '../../tools/concatenate-files.py', | |
1185 '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', | |
1186 '<(SHARED_INTERMEDIATE_DIR)/libraries-experimental.bin', | |
1187 ], | |
1188 'outputs': [ | |
1189 '<(PRODUCT_DIR)/natives_blob.bin', | |
1190 ], | |
1191 'action': ['python', '<@(_inputs)', '<@(_outputs)'], | |
1192 }], | |
1193 }], | |
1194 ['want_separate_host_toolset==1', { | |
1195 'toolsets': ['host'], | |
1196 }, { | |
1197 'toolsets': ['target'], | |
1198 }], | |
1199 ] | |
1200 }, | |
1201 { | |
1202 'target_name': 'js2c', | 1095 'target_name': 'js2c', |
1203 'type': 'none', | 1096 'type': 'none', |
1204 'conditions': [ | 1097 'conditions': [ |
1205 ['want_separate_host_toolset==1', { | 1098 ['want_separate_host_toolset==1', { |
1206 'toolsets': ['host'], | 1099 'toolsets': ['host'], |
1207 }, { | 1100 }, { |
1208 'toolsets': ['target'], | 1101 'toolsets': ['target'], |
1209 }], | 1102 }], |
1210 ['v8_enable_i18n_support==1', { | 1103 ['v8_enable_i18n_support==1', { |
1211 'variables': { | 1104 'variables': { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1247 '../../src/symbol.js', | 1140 '../../src/symbol.js', |
1248 '../../src/proxy.js', | 1141 '../../src/proxy.js', |
1249 '../../src/collection.js', | 1142 '../../src/collection.js', |
1250 '../../src/collection-iterator.js', | 1143 '../../src/collection-iterator.js', |
1251 '../../src/generator.js', | 1144 '../../src/generator.js', |
1252 '../../src/array-iterator.js', | 1145 '../../src/array-iterator.js', |
1253 '../../src/harmony-string.js', | 1146 '../../src/harmony-string.js', |
1254 '../../src/harmony-array.js', | 1147 '../../src/harmony-array.js', |
1255 '../../src/harmony-math.js' | 1148 '../../src/harmony-math.js' |
1256 ], | 1149 ], |
1257 'libraries_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries.bin', | |
1258 'libraries_experimental_bin_file': '<(SHARED_INTERMEDIATE_DIR)/libraries
-experimental.bin', | |
1259 }, | 1150 }, |
1260 'actions': [ | 1151 'actions': [ |
1261 { | 1152 { |
1262 'action_name': 'js2c', | 1153 'action_name': 'js2c', |
1263 'inputs': [ | 1154 'inputs': [ |
1264 '../../tools/js2c.py', | 1155 '../../tools/js2c.py', |
1265 '<@(library_files)', | 1156 '<@(library_files)', |
1266 '<@(i18n_library_files)', | 1157 '<@(i18n_library_files)', |
1267 ], | 1158 ], |
1268 'outputs': [ | 1159 'outputs': [ |
1269 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 1160 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
1270 ], | 1161 ], |
1271 'action': [ | 1162 'action': [ |
1272 'python', | 1163 'python', |
1273 '../../tools/js2c.py', | 1164 '../../tools/js2c.py', |
1274 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 1165 '<@(_outputs)', |
1275 'CORE', | 1166 'CORE', |
1276 '<(v8_compress_startup_data)', | 1167 '<(v8_compress_startup_data)', |
1277 '<@(library_files)', | 1168 '<@(library_files)', |
1278 '<@(i18n_library_files)', | 1169 '<@(i18n_library_files)', |
1279 ], | 1170 ], |
1280 'conditions': [ | |
1281 [ 'v8_use_external_startup_data==1', { | |
1282 'outputs': ['<@(libraries_bin_file)'], | |
1283 'action': [ | |
1284 '--startup_blob', '<@(libraries_bin_file)', | |
1285 ], | |
1286 }], | |
1287 ], | |
1288 }, | 1171 }, |
1289 { | 1172 { |
1290 'action_name': 'js2c_experimental', | 1173 'action_name': 'js2c_experimental', |
1291 'inputs': [ | 1174 'inputs': [ |
1292 '../../tools/js2c.py', | 1175 '../../tools/js2c.py', |
1293 '<@(experimental_library_files)', | 1176 '<@(experimental_library_files)', |
1294 ], | 1177 ], |
1295 'outputs': [ | 1178 'outputs': [ |
1296 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 1179 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', |
1297 ], | 1180 ], |
1298 'action': [ | 1181 'action': [ |
1299 'python', | 1182 'python', |
1300 '../../tools/js2c.py', | 1183 '../../tools/js2c.py', |
1301 '<(SHARED_INTERMEDIATE_DIR)/experimental-libraries.cc', | 1184 '<@(_outputs)', |
1302 'EXPERIMENTAL', | 1185 'EXPERIMENTAL', |
1303 '<(v8_compress_startup_data)', | 1186 '<(v8_compress_startup_data)', |
1304 '<@(experimental_library_files)' | 1187 '<@(experimental_library_files)' |
1305 ], | 1188 ], |
1306 'conditions': [ | |
1307 [ 'v8_use_external_startup_data==1', { | |
1308 'outputs': ['<@(libraries_experimental_bin_file)'], | |
1309 'action': [ | |
1310 '--startup_blob', '<@(libraries_experimental_bin_file)' | |
1311 ], | |
1312 }], | |
1313 ], | |
1314 }, | 1189 }, |
1315 ], | 1190 ], |
1316 }, | 1191 }, |
1317 { | 1192 { |
1318 'target_name': 'postmortem-metadata', | 1193 'target_name': 'postmortem-metadata', |
1319 'type': 'none', | 1194 'type': 'none', |
1320 'variables': { | 1195 'variables': { |
1321 'heapobject_files': [ | 1196 'heapobject_files': [ |
1322 '../../src/objects.h', | 1197 '../../src/objects.h', |
1323 '../../src/objects-inl.h', | 1198 '../../src/objects-inl.h', |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 }], | 1235 }], |
1361 ['v8_compress_startup_data=="bz2"', { | 1236 ['v8_compress_startup_data=="bz2"', { |
1362 'libraries': [ | 1237 'libraries': [ |
1363 '-lbz2', | 1238 '-lbz2', |
1364 ] | 1239 ] |
1365 }], | 1240 }], |
1366 ], | 1241 ], |
1367 }, | 1242 }, |
1368 ], | 1243 ], |
1369 } | 1244 } |
OLD | NEW |