Chromium Code Reviews| 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 #.........web_full.dill | |
|
Siggi Cherem (dart-lang)
2017/07/26 04:51:56
I've been debating the names here, and I'm not eve
Siggi Cherem (dart-lang)
2017/07/26 19:52:39
I continued iterating on this - I decided for now
| |
| 69 #.........server_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 .dill files to lib/_internal | |
| 450 group("copy_dill_files") { | |
| 451 visibility = [ ":create_common_sdk" ] | |
| 452 deps = [ | |
| 453 ":copy_libraries", | |
| 454 ":copy_vm_dill_files", | |
| 455 ":copy_dart2js_dill_files", | |
|
zra
2017/07/26 05:04:58
The "platform" SDK shouldn't include the dart2js d
Siggi Cherem (dart-lang)
2017/07/26 19:52:39
Thanks Zach. Done.
| |
| 456 ] | |
| 457 } | |
| 458 | |
| 459 copy("copy_vm_dill_files") { | |
| 460 visibility = [ ":copy_dill_files" ] | |
| 461 deps = [ | |
| 462 ":copy_libraries", | |
| 463 "../runtime/vm:patched_sdk", | |
| 464 ] | |
| 465 sources = [ | |
| 466 "$root_out_dir/patched_sdk/outline.dill", | |
| 467 ] | |
| 468 outputs = [ | |
| 469 "$root_out_dir/dart-sdk/lib/_internal/server_{{source_file_part}}", | |
| 470 ] | |
| 471 } | |
| 472 | |
| 473 copy("copy_dart2js_dill_files") { | |
| 474 visibility = [ ":copy_dill_files" ] | |
| 475 deps = [ | |
| 476 ":copy_libraries", | |
| 477 "../utils/compiler:patched_dart2js_sdk", | |
| 478 ] | |
| 479 sources = [ | |
| 480 "$root_out_dir/patched_dart2js_sdk/platform.dill", | |
| 481 ] | |
| 482 outputs = [ | |
| 483 "$root_out_dir/dart-sdk/lib/_internal/web_full.dill", | |
| 484 ] | |
| 485 } | |
| 486 | |
| 447 # This rule copies ddc summaries to lib/_internal | 487 # This rule copies ddc summaries to lib/_internal |
| 448 copy("copy_dev_compiler_summary") { | 488 copy("copy_dev_compiler_summary") { |
| 449 visibility = [ ":copy_dev_compiler_sdk" ] | 489 visibility = [ ":copy_dev_compiler_sdk" ] |
| 450 deps = [ | 490 deps = [ |
| 451 ":copy_libraries", | 491 ":copy_libraries", |
| 452 ] | 492 ] |
| 453 sources = [ | 493 sources = [ |
| 454 "../pkg/dev_compiler/lib/sdk/ddc_sdk.sum", | 494 "../pkg/dev_compiler/lib/sdk/ddc_sdk.sum", |
| 455 ] | 495 ] |
| 456 outputs = [ | 496 outputs = [ |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 697 | 737 |
| 698 # Parts common to both platform and full SDKs. | 738 # Parts common to both platform and full SDKs. |
| 699 group("create_common_sdk") { | 739 group("create_common_sdk") { |
| 700 visibility = [ ":create_sdk" ] | 740 visibility = [ ":create_sdk" ] |
| 701 deps = [ | 741 deps = [ |
| 702 ":copy_analysis_summaries", | 742 ":copy_analysis_summaries", |
| 703 ":copy_analyzer_sources", | 743 ":copy_analyzer_sources", |
| 704 ":copy_api_readme", | 744 ":copy_api_readme", |
| 705 ":copy_dart", | 745 ":copy_dart", |
| 706 ":copy_dartdoc_files", | 746 ":copy_dartdoc_files", |
| 747 ":copy_dill_files", | |
| 707 ":copy_headers", | 748 ":copy_headers", |
| 708 ":copy_libraries_dart", | 749 ":copy_libraries_dart", |
| 709 ":copy_license", | 750 ":copy_license", |
| 710 ":copy_platform_files", | 751 ":copy_platform_files", |
| 711 ":copy_pub_assets", | 752 ":copy_pub_assets", |
| 712 ":copy_readme", | 753 ":copy_readme", |
| 713 ":write_revision_file", | 754 ":write_revision_file", |
| 714 ":write_version_file", | 755 ":write_version_file", |
| 715 ] | 756 ] |
| 716 if (is_win) { | 757 if (is_win) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 749 group("create_sdk") { | 790 group("create_sdk") { |
| 750 deps = [ | 791 deps = [ |
| 751 ":create_common_sdk", | 792 ":create_common_sdk", |
| 752 ] | 793 ] |
| 753 if (dart_platform_sdk) { | 794 if (dart_platform_sdk) { |
| 754 deps += [ ":create_platform_sdk" ] | 795 deps += [ ":create_platform_sdk" ] |
| 755 } else { | 796 } else { |
| 756 deps += [ ":create_full_sdk" ] | 797 deps += [ ":create_full_sdk" ] |
| 757 } | 798 } |
| 758 } | 799 } |
| OLD | NEW |