mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 02:17:14 +00:00
0b2c9b048d
This involves a few pieces: - Add support to DDC for specifying the module name associated with a given summary. This lets test.dart invoke DDC using summaries in the build directory outside of the directory containing the test itself. - Add support to the build scripts for building the packages. This adds a new GN target that builds everything needed to run test.dart with dartdevc. In particular, it invokes build_pkgs.dart to compile the relevant packages to JS+summary so that the tests can use them. This requires some changes to build_pkgs.dart so it can output to a given directory. - In test.dart, when tests are compiled with dartdevc, pass in the summaries for the packages so they don't get compiled in. Then, when the test is run, configure require.js with the right paths to their JS files so they can be loaded. I also removed a bunch of unneeded buildDir parameters being passed around the various CompilerConfiguration class methods now that they have direct access to the configuration. Fix #29923. R=vsm@google.com, whesse@google.com, zra@google.com Review-Url: https://codereview.chromium.org/2955513002 . |
||
---|---|---|
.. | ||
analysis_server | ||
compiler | ||
dartanalyzer | ||
dartdevc | ||
dartdoc | ||
dartfmt | ||
kernel-service | ||
peg | ||
pub | ||
tests | ||
application_snapshot.gni | ||
create_timestamp.gni | ||
generate_patch_sdk.gni |