OLD | NEW |
1 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2017, 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 # This GN file contains build rules for assembling the Dart SDK. There are | 5 # This GN file contains build rules for assembling the Dart SDK. There are |
6 # two possible variants: the "Full" SDK, and the "Platform" SDK. If you want | 6 # two possible variants: the "Full" SDK, and the "Platform" SDK. If you want |
7 # to make a new subset of the Full SDK, make it the same way we make | 7 # to make a new subset of the Full SDK, make it the same way we make |
8 # the Platform SDK. | 8 # the Platform SDK. |
9 # | 9 # |
10 # Warning: | 10 # Warning: |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 # ......dart_mirrors_api.h | 58 # ......dart_mirrors_api.h |
59 # ......dart_native_api.h | 59 # ......dart_native_api.h |
60 # ......dart_tools_api.h | 60 # ......dart_tools_api.h |
61 # ....lib/ | 61 # ....lib/ |
62 # ......dart_client.platform | 62 # ......dart_client.platform |
63 # ......dart_server.platform | 63 # ......dart_server.platform |
64 # ......dart_shared.platform | 64 # ......dart_shared.platform |
65 # ......_internal/ | 65 # ......_internal/ |
66 #.........spec.sum | 66 #.........spec.sum |
67 #.........strong.sum | 67 #.........strong.sum |
| 68 #.........dart2js_platform.dill |
| 69 #.........vm_outline.dill |
68 #.........dev_compiler/ | 70 #.........dev_compiler/ |
69 # ......analysis_server/ | 71 # ......analysis_server/ |
70 # ......analyzer/ | 72 # ......analyzer/ |
71 # ......async/ | 73 # ......async/ |
72 # ......collection/ | 74 # ......collection/ |
73 # ......convert/ | 75 # ......convert/ |
74 # ......core/ | 76 # ......core/ |
75 # ......front_end/ | 77 # ......front_end/ |
76 # ......html/ | 78 # ......html/ |
77 # ......internal/ | 79 # ......internal/ |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 ] | 439 ] |
438 sources = [ | 440 sources = [ |
439 "$root_gen_dir/spec.sum", | 441 "$root_gen_dir/spec.sum", |
440 "$root_gen_dir/strong.sum", | 442 "$root_gen_dir/strong.sum", |
441 ] | 443 ] |
442 outputs = [ | 444 outputs = [ |
443 "$root_out_dir/dart-sdk/lib/_internal/{{source_file_part}}", | 445 "$root_out_dir/dart-sdk/lib/_internal/{{source_file_part}}", |
444 ] | 446 ] |
445 } | 447 } |
446 | 448 |
| 449 # This rule copies vm's outline.dill file to lib/_internal |
| 450 copy("copy_vm_dill_files") { |
| 451 visibility = [ ":create_common_sdk" ] |
| 452 deps = [ |
| 453 ":copy_libraries", |
| 454 "../runtime/vm:patched_sdk", |
| 455 ] |
| 456 sources = [ |
| 457 "$root_out_dir/patched_sdk/outline.dill", |
| 458 ] |
| 459 outputs = [ |
| 460 "$root_out_dir/dart-sdk/lib/_internal/vm_outline.dill", |
| 461 ] |
| 462 } |
| 463 |
| 464 # This rule copies dart2js's platform.dill file to lib/_internal |
| 465 copy("copy_dart2js_dill_files") { |
| 466 visibility = [ ":create_full_sdk" ] |
| 467 deps = [ |
| 468 ":copy_libraries", |
| 469 "../utils/compiler:patched_dart2js_sdk", |
| 470 ] |
| 471 sources = [ |
| 472 "$root_out_dir/patched_dart2js_sdk/platform.dill", |
| 473 ] |
| 474 outputs = [ |
| 475 "$root_out_dir/dart-sdk/lib/_internal/dart2js_platform.dill", |
| 476 ] |
| 477 } |
| 478 |
447 # This rule copies ddc summaries to lib/_internal | 479 # This rule copies ddc summaries to lib/_internal |
448 copy("copy_dev_compiler_summary") { | 480 copy("copy_dev_compiler_summary") { |
449 visibility = [ ":copy_dev_compiler_sdk" ] | 481 visibility = [ ":copy_dev_compiler_sdk" ] |
450 deps = [ | 482 deps = [ |
451 ":copy_libraries", | 483 ":copy_libraries", |
452 ] | 484 ] |
453 sources = [ | 485 sources = [ |
454 "../pkg/dev_compiler/lib/sdk/ddc_sdk.sum", | 486 "../pkg/dev_compiler/lib/sdk/ddc_sdk.sum", |
455 ] | 487 ] |
456 outputs = [ | 488 outputs = [ |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 ":copy_analyzer_sources", | 735 ":copy_analyzer_sources", |
704 ":copy_api_readme", | 736 ":copy_api_readme", |
705 ":copy_dart", | 737 ":copy_dart", |
706 ":copy_dartdoc_files", | 738 ":copy_dartdoc_files", |
707 ":copy_headers", | 739 ":copy_headers", |
708 ":copy_libraries_dart", | 740 ":copy_libraries_dart", |
709 ":copy_license", | 741 ":copy_license", |
710 ":copy_platform_files", | 742 ":copy_platform_files", |
711 ":copy_pub_assets", | 743 ":copy_pub_assets", |
712 ":copy_readme", | 744 ":copy_readme", |
| 745 ":copy_vm_dill_files", |
713 ":write_revision_file", | 746 ":write_revision_file", |
714 ":write_version_file", | 747 ":write_version_file", |
715 ] | 748 ] |
716 if (is_win) { | 749 if (is_win) { |
717 deps += [ ":copy_7zip" ] | 750 deps += [ ":copy_7zip" ] |
718 } | 751 } |
719 if (is_fuchsia_host && is_linux) { | 752 if (is_fuchsia_host && is_linux) { |
720 deps += [ ":copy_dylibs" ] | 753 deps += [ ":copy_dylibs" ] |
721 } | 754 } |
722 } | 755 } |
723 | 756 |
724 # Parts specific to the platform SDK. | 757 # Parts specific to the platform SDK. |
725 group("create_platform_sdk") { | 758 group("create_platform_sdk") { |
726 visibility = [ ":create_sdk" ] | 759 visibility = [ ":create_sdk" ] |
727 deps = [ | 760 deps = [ |
728 ":copy_platform_sdk_libraries", | 761 ":copy_platform_sdk_libraries", |
729 ":copy_platform_sdk_scripts", | 762 ":copy_platform_sdk_scripts", |
730 ":copy_platform_sdk_snapshots", | 763 ":copy_platform_sdk_snapshots", |
731 ] | 764 ] |
732 } | 765 } |
733 | 766 |
734 # Parts specific to the full SDK. | 767 # Parts specific to the full SDK. |
735 group("create_full_sdk") { | 768 group("create_full_sdk") { |
736 visibility = [ | 769 visibility = [ |
737 ":create_sdk", | 770 ":create_sdk", |
738 ] | 771 ] |
739 | 772 |
740 deps = [ | 773 deps = [ |
| 774 ":copy_dart2js_dill_files", |
741 ":copy_dev_compiler_sdk", | 775 ":copy_dev_compiler_sdk", |
742 ":copy_full_sdk_libraries", | 776 ":copy_full_sdk_libraries", |
743 ":copy_full_sdk_scripts", | 777 ":copy_full_sdk_scripts", |
744 ":copy_full_sdk_snapshots", | 778 ":copy_full_sdk_snapshots", |
745 ] | 779 ] |
746 } | 780 } |
747 | 781 |
748 # The main target to depend on from ../BUILD.gn | 782 # The main target to depend on from ../BUILD.gn |
749 group("create_sdk") { | 783 group("create_sdk") { |
750 deps = [ | 784 deps = [ |
751 ":create_common_sdk", | 785 ":create_common_sdk", |
752 ] | 786 ] |
753 if (dart_platform_sdk) { | 787 if (dart_platform_sdk) { |
754 deps += [ ":create_platform_sdk" ] | 788 deps += [ ":create_platform_sdk" ] |
755 } else { | 789 } else { |
756 deps += [ ":create_full_sdk" ] | 790 deps += [ ":create_full_sdk" ] |
757 } | 791 } |
758 } | 792 } |
OLD | NEW |