From 72e3d13db2ca3da150cdbaa714d98593f60aa914 Mon Sep 17 00:00:00 2001 From: Vijay Menon Date: Fri, 14 Oct 2016 12:34:03 -0700 Subject: [PATCH] Add ddc resources to the sdk build This installs DDC's dart_sdk.js, etc., under: dart-sdk/lib/_internal/dev_compiler/ Fixes #27001 R=jakemac@google.com Review URL: https://codereview.chromium.org/2416783005 . --- tools/create_sdk.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/create_sdk.py b/tools/create_sdk.py index 85ba81199f3..54cb4ddc479 100755 --- a/tools/create_sdk.py +++ b/tools/create_sdk.py @@ -47,6 +47,7 @@ # ......_internal/ #.........spec.sum #.........strong.sum +#.........dev_compiler/ # ......analysis_server/ # ......analyzer/ # ......async/ @@ -169,6 +170,9 @@ def CopyAnalysisSummaries(snapshots, lib): copyfile(join(snapshots, 'strong.sum'), join(lib, '_internal', 'strong.sum')) +def CopyDevCompilerSdk(home, lib): + copytree(join(home, 'pkg', 'dev_compiler', 'lib', 'js'), + join(lib, '_internal', 'dev_compiler')) def Main(): # Pull in all of the gypi files which will be munged into the sdk. @@ -304,6 +308,7 @@ def Main(): CopyDartdocResources(HOME, SDK_tmp) CopyAnalyzerSources(HOME, LIB) CopyAnalysisSummaries(SNAPSHOT, LIB) + CopyDevCompilerSdk(HOME, LIB) # Write the 'version' file version = utils.GetVersion()