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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
219 }], | 219 }], |
220 ['component=="shared_library"', { | 220 ['component=="shared_library"', { |
221 'defines': [ | 221 'defines': [ |
222 'BUILDING_V8_SHARED', | 222 'BUILDING_V8_SHARED', |
223 'V8_SHARED', | 223 'V8_SHARED', |
224 ], | 224 ], |
225 }], | 225 }], |
226 ] | 226 ] |
227 }, | 227 }, |
228 { | 228 { |
229 'target_name': 'v8_external_snapshot', | |
230 'type': 'static_library', | |
231 'conditions': [ | |
232 ['want_separate_host_toolset==1', { | |
233 'toolsets': ['host', 'target'], | |
234 'dependencies': [ | |
235 'mksnapshot#host', | |
236 'js2c#host', | |
237 'natives_blob', | |
238 ]}, { | |
239 'toolsets': ['target'], | |
240 'dependencies': [ | |
241 'mksnapshot', | |
242 'js2c', | |
243 'natives_blob', | |
244 ], | |
245 }], | |
246 ['component=="shared_library"', { | |
247 'defines': [ | |
248 'V8_SHARED', | |
249 'BUILDING_V8_SHARED', | |
250 ], | |
251 'direct_dependent_settings': { | |
252 'defines': [ | |
253 'V8_SHARED', | |
254 'USING_V8_SHARED', | |
255 ], | |
256 }, | |
257 }], | |
258 ], | |
259 'dependencies': [ | |
260 'v8_base', | |
261 ], | |
262 'include_dirs+': [ | |
263 '../..', | |
264 ], | |
265 'sources': [ | |
266 '../../src/natives-external.cc', | |
267 '../../src/snapshot-external.cc', | |
268 ], | |
269 'actions': [ | |
270 { | |
271 'action_name': 'run_mksnapshot (external)', | |
272 'inputs': [ | |
273 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', | |
274 ], | |
275 'conditions': [ | |
276 ['want_separate_host_toolset==1', { | |
277 'target_conditions': [ | |
278 ['_toolset=="host"', { | |
279 'outputs': [ | |
280 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
281 '<(PRODUCT_DIR)/snapshot_blob_host.bin', | |
282 ], | |
283 }, { | |
284 'outputs': [ | |
285 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
286 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
287 ], | |
288 }], | |
289 ], | |
290 }, { | |
291 'outputs': [ | |
292 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
293 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
294 ], | |
295 }], | |
296 ], | |
297 'variables': { | |
298 'mksnapshot_flags': [ | |
299 '--log-snapshot-positions', | |
300 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | |
301 ], | |
302 'conditions': [ | |
303 ['v8_random_seed!=0', { | |
304 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], | |
305 }], | |
306 ], | |
307 }, | |
308 'action': [ | |
309 '<@(_inputs)', | |
310 '<@(mksnapshot_flags)', | |
311 '<@(INTERMEDIATE_DIR)/snapshot.cc', | |
312 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | |
313 ], | |
314 }, | |
315 ], | |
316 }, | |
317 { | |
318 'target_name': 'v8_base', | 229 'target_name': 'v8_base', |
319 'type': 'static_library', | 230 'type': 'static_library', |
320 'dependencies': [ | 231 'dependencies': [ |
321 'v8_libbase', | 232 'v8_libbase', |
322 ], | 233 ], |
323 'variables': { | 234 'variables': { |
324 'optimize': 'max', | 235 'optimize': 'max', |
325 }, | 236 }, |
326 'include_dirs+': [ | 237 'include_dirs+': [ |
327 '../..', | 238 '../..', |
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1484 'toolsets': ['host', 'target'], | 1395 'toolsets': ['host', 'target'], |
1485 }, { | 1396 }, { |
1486 'toolsets': ['target'], | 1397 'toolsets': ['target'], |
1487 }], | 1398 }], |
1488 ], | 1399 ], |
1489 }, | 1400 }, |
1490 { | 1401 { |
1491 'target_name': 'natives_blob', | 1402 'target_name': 'natives_blob', |
1492 'type': 'none', | 1403 'type': 'none', |
1493 'conditions': [ | 1404 'conditions': [ |
1494 [ 'v8_use_external_startup_data==1', { | 1405 [ 'v8_use_external_startup_data==1', { |
rmcilroy
2014/10/10 16:31:33
I just had a look at how natives_blob does this, a
baixo
2014/10/10 17:49:39
Done.
| |
1495 'conditions': [ | 1406 'conditions': [ |
1496 ['want_separate_host_toolset==1', { | 1407 ['want_separate_host_toolset==1', { |
1497 'dependencies': ['js2c#host'], | 1408 'dependencies': ['js2c#host'], |
1498 }, { | 1409 }, { |
1499 'dependencies': ['js2c'], | 1410 'dependencies': ['js2c'], |
1500 }], | 1411 }], |
1501 ], | 1412 ], |
1502 'actions': [{ | 1413 'actions': [{ |
1503 'action_name': 'concatenate_natives_blob', | 1414 'action_name': 'concatenate_natives_blob', |
1504 'inputs': [ | 1415 'inputs': [ |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1713 'toolsets': ['target'], | 1624 'toolsets': ['target'], |
1714 }], | 1625 }], |
1715 ['v8_compress_startup_data=="bz2"', { | 1626 ['v8_compress_startup_data=="bz2"', { |
1716 'libraries': [ | 1627 'libraries': [ |
1717 '-lbz2', | 1628 '-lbz2', |
1718 ] | 1629 ] |
1719 }], | 1630 }], |
1720 ], | 1631 ], |
1721 }, | 1632 }, |
1722 ], | 1633 ], |
1634 'conditions': [ | |
1635 [ 'v8_use_external_startup_data==1', { | |
1636 'targets': [ | |
1637 { | |
1638 'target_name': 'v8_external_snapshot', | |
1639 'type': 'static_library', | |
1640 'conditions': [ | |
1641 ['want_separate_host_toolset==1', { | |
1642 'toolsets': ['host', 'target'], | |
1643 'dependencies': [ | |
1644 'mksnapshot#host', | |
1645 'js2c#host', | |
1646 'natives_blob', | |
1647 ]}, { | |
1648 'toolsets': ['target'], | |
1649 'dependencies': [ | |
1650 'mksnapshot', | |
1651 'js2c', | |
1652 'natives_blob', | |
1653 ], | |
1654 }], | |
1655 ['component=="shared_library"', { | |
1656 'defines': [ | |
1657 'V8_SHARED', | |
1658 'BUILDING_V8_SHARED', | |
1659 ], | |
1660 'direct_dependent_settings': { | |
1661 'defines': [ | |
1662 'V8_SHARED', | |
1663 'USING_V8_SHARED', | |
1664 ], | |
1665 }, | |
1666 }], | |
1667 ], | |
1668 'dependencies': [ | |
1669 'v8_base', | |
1670 ], | |
1671 'include_dirs+': [ | |
1672 '../..', | |
1673 ], | |
1674 'sources': [ | |
1675 '../../src/natives-external.cc', | |
1676 '../../src/snapshot-external.cc', | |
1677 ], | |
1678 'actions': [ | |
1679 { | |
1680 'action_name': 'run_mksnapshot (external)', | |
1681 'inputs': [ | |
1682 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFI X)', | |
1683 ], | |
1684 'conditions': [ | |
1685 ['want_separate_host_toolset==1', { | |
1686 'target_conditions': [ | |
1687 ['_toolset=="host"', { | |
1688 'outputs': [ | |
1689 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
1690 '<(PRODUCT_DIR)/snapshot_blob_host.bin', | |
1691 ], | |
1692 }, { | |
1693 'outputs': [ | |
1694 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
1695 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
1696 ], | |
1697 }], | |
1698 ], | |
1699 }, { | |
1700 'outputs': [ | |
1701 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
1702 '<(PRODUCT_DIR)/snapshot_blob.bin', | |
1703 ], | |
1704 }], | |
1705 ], | |
1706 'variables': { | |
1707 'mksnapshot_flags': [ | |
1708 '--log-snapshot-positions', | |
1709 '--logfile', '<(INTERMEDIATE_DIR)/snapshot.log', | |
1710 ], | |
1711 'conditions': [ | |
1712 ['v8_random_seed!=0', { | |
1713 'mksnapshot_flags': ['--random-seed', '<(v8_random_seed)'], | |
1714 }], | |
1715 ], | |
1716 }, | |
1717 'action': [ | |
1718 '<@(_inputs)', | |
1719 '<@(mksnapshot_flags)', | |
1720 '<@(INTERMEDIATE_DIR)/snapshot.cc', | |
1721 '--startup_blob', '<(PRODUCT_DIR)/snapshot_blob.bin', | |
1722 ], | |
1723 }, | |
1724 ], | |
1725 }, | |
1726 ], | |
1727 }], | |
1728 ], | |
1723 } | 1729 } |
OLD | NEW |