Skip to content

Commit 72e3d13

Browse files
committed
Add ddc resources to the sdk build
This installs DDC's dart_sdk.js, etc., under: dart-sdk/lib/_internal/dev_compiler/ Fixes #27001 [email protected] Review URL: https://codereview.chromium.org/2416783005 .
1 parent 4942f53 commit 72e3d13

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/create_sdk.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
# ......_internal/
4848
#.........spec.sum
4949
#.........strong.sum
50+
#.........dev_compiler/
5051
# ......analysis_server/
5152
# ......analyzer/
5253
# ......async/
@@ -169,6 +170,9 @@ def CopyAnalysisSummaries(snapshots, lib):
169170
copyfile(join(snapshots, 'strong.sum'),
170171
join(lib, '_internal', 'strong.sum'))
171172

173+
def CopyDevCompilerSdk(home, lib):
174+
copytree(join(home, 'pkg', 'dev_compiler', 'lib', 'js'),
175+
join(lib, '_internal', 'dev_compiler'))
172176

173177
def Main():
174178
# Pull in all of the gypi files which will be munged into the sdk.
@@ -304,6 +308,7 @@ def Main():
304308
CopyDartdocResources(HOME, SDK_tmp)
305309
CopyAnalyzerSources(HOME, LIB)
306310
CopyAnalysisSummaries(SNAPSHOT, LIB)
311+
CopyDevCompilerSdk(HOME, LIB)
307312

308313
# Write the 'version' file
309314
version = utils.GetVersion()

0 commit comments

Comments
 (0)