OLD | NEW |
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 # for details. All rights reserved. Use of this source code is governed by a | 2 # for details. All rights reserved. Use of this source code is governed by a |
3 # BSD-style license that can be found in the LICENSE file. | 3 # BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
8 'libgen_in_cc_file': '../lib/libgen_in.cc', | 8 'libgen_in_cc_file': '../lib/libgen_in.cc', |
9 'builtin_in_cc_file': '../bin/builtin_in.cc', | 9 'builtin_in_cc_file': '../bin/builtin_in.cc', |
10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', | 10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', |
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 '--include', 'vm/bootstrap.h', | 960 '--include', 'vm/bootstrap.h', |
961 '--var_name', 'dart::Bootstrap::mirrors_patch_paths_', | 961 '--var_name', 'dart::Bootstrap::mirrors_patch_paths_', |
962 '--library_name', 'dart:mirrors', | 962 '--library_name', 'dart:mirrors', |
963 '<@(_sources)', | 963 '<@(_sources)', |
964 ], | 964 ], |
965 'message': 'Generating ''<(mirrors_patch_cc_file)'' file.' | 965 'message': 'Generating ''<(mirrors_patch_cc_file)'' file.' |
966 }, | 966 }, |
967 ] | 967 ] |
968 }, | 968 }, |
969 { | 969 { |
| 970 # Unlike the other libraries in the SDK, dart:typed_data is not |
| 971 # implemented as a patch applied to the base SDK implementation. |
| 972 # Instead the VM has a complete replacement library and the |
| 973 # implementation in the SDK is ignored. |
970 'target_name': 'generate_typed_data_cc_file', | 974 'target_name': 'generate_typed_data_cc_file', |
971 'type': 'none', | 975 'type': 'none', |
972 'toolsets':['host'], | 976 'toolsets':['host'], |
973 'includes': [ | 977 'includes': [ |
974 # Load the runtime implementation sources. | 978 # Load the runtime implementation sources. |
975 '../lib/typed_data_sources.gypi', | 979 '../lib/typed_data_sources.gypi', |
976 ], | 980 ], |
977 'sources/': [ | 981 'sources/': [ |
978 # Exclude all .[cc|h] files. | 982 # Exclude all .[cc|h] files. |
979 # This is only here for reference. Excludes happen after | 983 # This is only here for reference. Excludes happen after |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1227 '--input_cc', '<(libgen_in_cc_file)', | 1231 '--input_cc', '<(libgen_in_cc_file)', |
1228 '--include', 'vm/bootstrap.h', | 1232 '--include', 'vm/bootstrap.h', |
1229 '--var_name', 'dart::Bootstrap::_vmservice_patch_paths_', | 1233 '--var_name', 'dart::Bootstrap::_vmservice_patch_paths_', |
1230 '--library_name', 'dart:_vmservice', | 1234 '--library_name', 'dart:_vmservice', |
1231 '<@(_sources)', | 1235 '<@(_sources)', |
1232 ], | 1236 ], |
1233 'message': 'Generating ''<(vmservice_patch_cc_file)'' file.' | 1237 'message': 'Generating ''<(vmservice_patch_cc_file)'' file.' |
1234 }, | 1238 }, |
1235 ] | 1239 ] |
1236 }, | 1240 }, |
| 1241 { |
| 1242 'target_name': 'generate_patched_sdk', |
| 1243 'type': 'none', |
| 1244 'toolsets': ['host'], |
| 1245 'dependencies': [ |
| 1246 'generate_async_library_patch', |
| 1247 'generate_collection_library_patch', |
| 1248 'generate_convert_library_patch', |
| 1249 'generate_core_library_patch', |
| 1250 'generate_developer_library_patch', |
| 1251 'generate_internal_library_patch', |
| 1252 'generate_io_library_patch', |
| 1253 'generate_isolate_library_patch', |
| 1254 'generate_math_library_patch', |
| 1255 'generate_mirrors_library_patch', |
| 1256 'generate_profiler_library_patch', |
| 1257 'generate_vmservice_library_patch', |
| 1258 ], |
| 1259 'actions': [ |
| 1260 { |
| 1261 'action_name': 'patch_sdk', |
| 1262 'inputs': [ |
| 1263 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| 1264 '<!@(["python", "../tools/list_files.py",' '"dart$",' '"sdk/lib"])', |
| 1265 '../../tools/patch_sdk.dart', |
| 1266 # Unlike the other libraries in the SDK, dart:typed_data is not |
| 1267 # implemented as a patch applied to the base SDK implementation. |
| 1268 # Instead the VM has a complete replacement library and the |
| 1269 # implementation in the SDK is ignored. |
| 1270 '../lib/typed_data.dart', |
| 1271 # Unlike the other libraries in the SDK, dart:_builtin and |
| 1272 # dart:nativewrappers are only available for the Dart VM. |
| 1273 '../bin/builtin.dart', |
| 1274 '../bin/nativewrappers.dart', |
| 1275 '../bin/vmservice/vmservice_io.dart', |
| 1276 '../bin/vmservice/loader.dart', |
| 1277 '../bin/vmservice/server.dart', |
| 1278 '<(gen_source_dir)/patches/async_patch.dart', |
| 1279 '<(gen_source_dir)/patches/collection_patch.dart', |
| 1280 '<(gen_source_dir)/patches/convert_patch.dart', |
| 1281 '<(gen_source_dir)/patches/core_patch.dart', |
| 1282 '<(gen_source_dir)/patches/developer_patch.dart', |
| 1283 '<(gen_source_dir)/patches/internal_patch.dart', |
| 1284 '<(gen_source_dir)/patches/io_patch.dart', |
| 1285 '<(gen_source_dir)/patches/isolate_patch.dart', |
| 1286 '<(gen_source_dir)/patches/math_patch.dart', |
| 1287 '<(gen_source_dir)/patches/mirrors_patch.dart', |
| 1288 '<(gen_source_dir)/patches/profiler_patch.dart', |
| 1289 '<(gen_source_dir)/patches/vmservice_patch.dart', |
| 1290 ], |
| 1291 'outputs': [ |
| 1292 # Instead of listing all outputs we list a single well-known one. |
| 1293 '<(gen_source_dir)/patched_sdk/lib/core/core.dart', |
| 1294 ], |
| 1295 'action': [ |
| 1296 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)dart<(EXECUTABLE_SUFFIX)', |
| 1297 '../tools/patch_sdk.dart', |
| 1298 'vm', |
| 1299 '../sdk', |
| 1300 '<(gen_source_dir)/patches', |
| 1301 '<(gen_source_dir)/patched_sdk', |
| 1302 ], |
| 1303 }, |
| 1304 ], |
| 1305 }, |
| 1306 { |
| 1307 'variables': { |
| 1308 'library_name': 'async', |
| 1309 'library_uri': 'dart:async', |
| 1310 }, |
| 1311 'target_name': 'generate_<(library_name)_library_patch', |
| 1312 'type': 'none', |
| 1313 'toolsets': ['host'], |
| 1314 'includes': [ |
| 1315 '../lib/async_sources.gypi', |
| 1316 ], |
| 1317 'actions': [ |
| 1318 { |
| 1319 'action_name': 'concatenate_<(library_name)_patches', |
| 1320 'inputs': [ |
| 1321 '../tools/concatenate_patches.py', |
| 1322 '<@(_sources)', |
| 1323 ], |
| 1324 'outputs': [ |
| 1325 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1326 ], |
| 1327 'action': [ |
| 1328 'python', |
| 1329 'tools/concatenate_patches.py', |
| 1330 '--output', |
| 1331 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1332 '<@(_sources)', |
| 1333 ], |
| 1334 'message': 'Generating <(library_uri) patch.', |
| 1335 }, |
| 1336 ], |
| 1337 }, |
| 1338 { |
| 1339 'variables': { |
| 1340 'library_name': 'collection', |
| 1341 'library_uri': 'dart:collection', |
| 1342 }, |
| 1343 'target_name': 'generate_<(library_name)_library_patch', |
| 1344 'type': 'none', |
| 1345 'toolsets': ['host'], |
| 1346 'includes': [ |
| 1347 '../lib/collection_sources.gypi', |
| 1348 ], |
| 1349 'actions': [ |
| 1350 { |
| 1351 'action_name': 'concatenate_<(library_name)_patches', |
| 1352 'inputs': [ |
| 1353 '../tools/concatenate_patches.py', |
| 1354 '<@(_sources)', |
| 1355 ], |
| 1356 'outputs': [ |
| 1357 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1358 ], |
| 1359 'action': [ |
| 1360 'python', |
| 1361 'tools/concatenate_patches.py', |
| 1362 '--output', |
| 1363 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1364 '<@(_sources)', |
| 1365 ], |
| 1366 'message': 'Generating <(library_uri) patch.', |
| 1367 }, |
| 1368 ], |
| 1369 }, |
| 1370 { |
| 1371 'variables': { |
| 1372 'library_name': 'convert', |
| 1373 'library_uri': 'dart:convert', |
| 1374 }, |
| 1375 'target_name': 'generate_<(library_name)_library_patch', |
| 1376 'type': 'none', |
| 1377 'toolsets': ['host'], |
| 1378 'includes': [ |
| 1379 '../lib/convert_sources.gypi', |
| 1380 ], |
| 1381 'actions': [ |
| 1382 { |
| 1383 'action_name': 'concatenate_<(library_name)_patches', |
| 1384 'inputs': [ |
| 1385 '../tools/concatenate_patches.py', |
| 1386 '<@(_sources)', |
| 1387 ], |
| 1388 'outputs': [ |
| 1389 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1390 ], |
| 1391 'action': [ |
| 1392 'python', |
| 1393 'tools/concatenate_patches.py', |
| 1394 '--output', |
| 1395 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1396 '<@(_sources)', |
| 1397 ], |
| 1398 'message': 'Generating <(library_uri) patch.', |
| 1399 }, |
| 1400 ], |
| 1401 }, |
| 1402 { |
| 1403 'variables': { |
| 1404 'library_name': 'core', |
| 1405 'library_uri': 'dart:core', |
| 1406 }, |
| 1407 'target_name': 'generate_<(library_name)_library_patch', |
| 1408 'type': 'none', |
| 1409 'toolsets': ['host'], |
| 1410 'includes': [ |
| 1411 '../lib/core_sources.gypi', |
| 1412 ], |
| 1413 'actions': [ |
| 1414 { |
| 1415 'action_name': 'concatenate_<(library_name)_patches', |
| 1416 'inputs': [ |
| 1417 '../tools/concatenate_patches.py', |
| 1418 '<@(_sources)', |
| 1419 ], |
| 1420 'outputs': [ |
| 1421 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1422 ], |
| 1423 'action': [ |
| 1424 'python', |
| 1425 'tools/concatenate_patches.py', |
| 1426 '--output', |
| 1427 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1428 '<@(_sources)', |
| 1429 ], |
| 1430 'message': 'Generating <(library_uri) patch.', |
| 1431 }, |
| 1432 ], |
| 1433 }, |
| 1434 { |
| 1435 'variables': { |
| 1436 'library_name': 'developer', |
| 1437 'library_uri': 'dart:developer', |
| 1438 }, |
| 1439 'target_name': 'generate_<(library_name)_library_patch', |
| 1440 'type': 'none', |
| 1441 'toolsets': ['host'], |
| 1442 'includes': [ |
| 1443 '../lib/developer_sources.gypi', |
| 1444 ], |
| 1445 'actions': [ |
| 1446 { |
| 1447 'action_name': 'concatenate_<(library_name)_patches', |
| 1448 'inputs': [ |
| 1449 '../tools/concatenate_patches.py', |
| 1450 '<@(_sources)', |
| 1451 ], |
| 1452 'outputs': [ |
| 1453 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1454 ], |
| 1455 'action': [ |
| 1456 'python', |
| 1457 'tools/concatenate_patches.py', |
| 1458 '--output', |
| 1459 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1460 '<@(_sources)', |
| 1461 ], |
| 1462 'message': 'Generating <(library_uri) patch.', |
| 1463 }, |
| 1464 ], |
| 1465 }, |
| 1466 { |
| 1467 'variables': { |
| 1468 'library_name': 'internal', |
| 1469 'library_uri': 'dart:_internal', |
| 1470 }, |
| 1471 'target_name': 'generate_<(library_name)_library_patch', |
| 1472 'type': 'none', |
| 1473 'toolsets': ['host'], |
| 1474 'includes': [ |
| 1475 '../lib/internal_sources.gypi', |
| 1476 ], |
| 1477 'actions': [ |
| 1478 { |
| 1479 'action_name': 'concatenate_<(library_name)_patches', |
| 1480 'inputs': [ |
| 1481 '../tools/concatenate_patches.py', |
| 1482 '<@(_sources)', |
| 1483 ], |
| 1484 'outputs': [ |
| 1485 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1486 ], |
| 1487 'action': [ |
| 1488 'python', |
| 1489 'tools/concatenate_patches.py', |
| 1490 '--output', |
| 1491 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1492 '<@(_sources)', |
| 1493 ], |
| 1494 'message': 'Generating <(library_uri) patch.', |
| 1495 }, |
| 1496 ], |
| 1497 }, |
| 1498 { |
| 1499 'variables': { |
| 1500 'library_name': 'io', |
| 1501 'library_uri': 'dart:io', |
| 1502 }, |
| 1503 'target_name': 'generate_<(library_name)_library_patch', |
| 1504 'type': 'none', |
| 1505 'toolsets': ['host'], |
| 1506 'includes': [ |
| 1507 '../bin/io_sources.gypi', |
| 1508 ], |
| 1509 'actions': [ |
| 1510 { |
| 1511 'action_name': 'concatenate_<(library_name)_patches', |
| 1512 'inputs': [ |
| 1513 '../tools/concatenate_patches.py', |
| 1514 '<@(_sources)', |
| 1515 ], |
| 1516 'outputs': [ |
| 1517 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1518 ], |
| 1519 'action': [ |
| 1520 'python', |
| 1521 'tools/concatenate_patches.py', |
| 1522 '--output', |
| 1523 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1524 '<@(_sources)', |
| 1525 ], |
| 1526 'message': 'Generating <(library_uri) patch.', |
| 1527 }, |
| 1528 ], |
| 1529 }, |
| 1530 { |
| 1531 'variables': { |
| 1532 'library_name': 'isolate', |
| 1533 'library_uri': 'dart:isolate', |
| 1534 }, |
| 1535 'target_name': 'generate_<(library_name)_library_patch', |
| 1536 'type': 'none', |
| 1537 'toolsets': ['host'], |
| 1538 'includes': [ |
| 1539 '../lib/isolate_sources.gypi', |
| 1540 ], |
| 1541 'actions': [ |
| 1542 { |
| 1543 'action_name': 'concatenate_<(library_name)_patches', |
| 1544 'inputs': [ |
| 1545 '../tools/concatenate_patches.py', |
| 1546 '<@(_sources)', |
| 1547 ], |
| 1548 'outputs': [ |
| 1549 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1550 ], |
| 1551 'action': [ |
| 1552 'python', |
| 1553 'tools/concatenate_patches.py', |
| 1554 '--output', |
| 1555 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1556 '<@(_sources)', |
| 1557 ], |
| 1558 'message': 'Generating <(library_uri) patch.', |
| 1559 }, |
| 1560 ], |
| 1561 }, |
| 1562 { |
| 1563 'variables': { |
| 1564 'library_name': 'math', |
| 1565 'library_uri': 'dart:math', |
| 1566 }, |
| 1567 'target_name': 'generate_<(library_name)_library_patch', |
| 1568 'type': 'none', |
| 1569 'toolsets': ['host'], |
| 1570 'includes': [ |
| 1571 '../lib/math_sources.gypi', |
| 1572 ], |
| 1573 'actions': [ |
| 1574 { |
| 1575 'action_name': 'concatenate_<(library_name)_patches', |
| 1576 'inputs': [ |
| 1577 '../tools/concatenate_patches.py', |
| 1578 '<@(_sources)', |
| 1579 ], |
| 1580 'outputs': [ |
| 1581 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1582 ], |
| 1583 'action': [ |
| 1584 'python', |
| 1585 'tools/concatenate_patches.py', |
| 1586 '--output', |
| 1587 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1588 '<@(_sources)', |
| 1589 ], |
| 1590 'message': 'Generating <(library_uri) patch.', |
| 1591 }, |
| 1592 ], |
| 1593 }, |
| 1594 { |
| 1595 'variables': { |
| 1596 'library_name': 'mirrors', |
| 1597 'library_uri': 'dart:mirrors', |
| 1598 }, |
| 1599 'target_name': 'generate_<(library_name)_library_patch', |
| 1600 'type': 'none', |
| 1601 'toolsets': ['host'], |
| 1602 'includes': [ |
| 1603 '../lib/mirrors_sources.gypi', |
| 1604 ], |
| 1605 'actions': [ |
| 1606 { |
| 1607 'action_name': 'concatenate_<(library_name)_patches', |
| 1608 'inputs': [ |
| 1609 '../tools/concatenate_patches.py', |
| 1610 '<@(_sources)', |
| 1611 ], |
| 1612 'outputs': [ |
| 1613 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1614 ], |
| 1615 'action': [ |
| 1616 'python', |
| 1617 'tools/concatenate_patches.py', |
| 1618 '--output', |
| 1619 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1620 '<@(_sources)', |
| 1621 ], |
| 1622 'message': 'Generating <(library_uri) patch.', |
| 1623 }, |
| 1624 ], |
| 1625 }, |
| 1626 { |
| 1627 'variables': { |
| 1628 'library_name': 'profiler', |
| 1629 'library_uri': 'dart:profiler', |
| 1630 }, |
| 1631 'target_name': 'generate_<(library_name)_library_patch', |
| 1632 'type': 'none', |
| 1633 'toolsets': ['host'], |
| 1634 'includes': [ |
| 1635 '../lib/profiler_sources.gypi', |
| 1636 ], |
| 1637 'actions': [ |
| 1638 { |
| 1639 'action_name': 'concatenate_<(library_name)_patches', |
| 1640 'inputs': [ |
| 1641 '../tools/concatenate_patches.py', |
| 1642 '<@(_sources)', |
| 1643 ], |
| 1644 'outputs': [ |
| 1645 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1646 ], |
| 1647 'action': [ |
| 1648 'python', |
| 1649 'tools/concatenate_patches.py', |
| 1650 '--output', |
| 1651 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1652 '<@(_sources)', |
| 1653 ], |
| 1654 'message': 'Generating <(library_uri) patch.', |
| 1655 }, |
| 1656 ], |
| 1657 }, |
| 1658 { |
| 1659 'variables': { |
| 1660 'library_name': 'vmservice', |
| 1661 'library_uri': 'dart:_vmservice', |
| 1662 }, |
| 1663 'target_name': 'generate_<(library_name)_library_patch', |
| 1664 'type': 'none', |
| 1665 'toolsets': ['host'], |
| 1666 'includes': [ |
| 1667 '../lib/vmservice_sources.gypi', |
| 1668 ], |
| 1669 'actions': [ |
| 1670 { |
| 1671 'action_name': 'concatenate_<(library_name)_patches', |
| 1672 'inputs': [ |
| 1673 '../tools/concatenate_patches.py', |
| 1674 '<@(_sources)', |
| 1675 ], |
| 1676 'outputs': [ |
| 1677 '<(gen_source_dir)/patches/<(library_name)_patch.dart' |
| 1678 ], |
| 1679 'action': [ |
| 1680 'python', |
| 1681 'tools/concatenate_patches.py', |
| 1682 '--output', |
| 1683 '<(gen_source_dir)/patches/<(library_name)_patch.dart', |
| 1684 '<@(_sources)', |
| 1685 ], |
| 1686 'message': 'Generating <(library_uri) patch.', |
| 1687 }, |
| 1688 ], |
| 1689 }, |
1237 ] | 1690 ] |
1238 } | 1691 } |
OLD | NEW |