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