dart-sdk/utils
Bob Nystrom 0b2c9b048d Dynamically load packages for dartdevc tests in test.dart.
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 .
2017-06-29 13:45:57 -07:00
..
analysis_server Don't depend on dart_bootstrap if there is a usable prebuilt sdk 2016-11-10 11:16:24 -08:00
compiler Revert "Make Zone API strong mode clean." 2017-06-28 13:31:32 +02:00
dartanalyzer Mostly revert "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries." 2017-06-21 15:19:21 -07:00
dartdevc Dynamically load packages for dartdevc tests in test.dart. 2017-06-29 13:45:57 -07:00
dartdoc Make list_files.py and list_dart_files.py return absolute paths for GN 2016-12-13 10:01:28 -08:00
dartfmt Make list_files.py and list_dart_files.py return absolute paths for GN 2016-12-13 10:01:28 -08:00
kernel-service Introduce dart_host_toolchain argument for generate_patch_sdk.gni. This allows for Flutter build to make sure that host_toolchain used for patched_sdk generation word size matches target platform. 2017-06-22 12:41:31 -07:00
peg Spelling fixes e to i. 2017-06-24 13:41:39 +02:00
pub Support spawnUri in app snapshots. 2017-01-17 15:59:41 -08:00
tests Remove MIPS support 2017-06-22 08:49:22 -07:00
application_snapshot.gni Reapply "[fuchsia] Prepare for setting the Dart target architecture appropriately in the host binaries." 2017-06-13 08:49:00 -07:00
create_timestamp.gni Make list_files.py and list_dart_files.py return absolute paths for GN 2016-12-13 10:01:28 -08:00
generate_patch_sdk.gni Fix previous CL where dart_bootstrap was accidently changed to dart_bootstrap_host_arch. 2017-06-22 13:17:53 -07:00