 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2955513002:
    Dynamically load packages for dartdevc tests in test.dart.  (Closed)
    
  
    Issue 
            2955513002:
    Dynamically load packages for dartdevc tests in test.dart.  (Closed) 
  | DescriptionDynamically 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
Committed: https://github.com/dart-lang/sdk/commit/0b2c9b048d613bd81caf07acd285f61cd01b79dd
   Patch Set 1 #
      Total comments: 11
      
     Patch Set 2 : Revise based on review. #Patch Set 3 : use $target_gen_dir for generated stuff. #
      Total comments: 2
      
     Patch Set 4 : Remove TODO that's TODONE. #
 Messages
    Total messages: 12 (2 generated)
     | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||