Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: pkg/dev_compiler/tool/build_sdk.sh

Issue 2698353003: unfork DDC's copy of most SDK libraries (Closed)
Patch Set: revert core_patch Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 set -e 2 set -e
3 # switch to the root directory of dev_compiler 3 # switch to the root directory of dev_compiler
4 cd $( dirname "${BASH_SOURCE[0]}" )/.. 4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5 5
6 echo "*** Patching SDK" 6 echo "*** Patching SDK"
7 dart -c tool/patch_sdk.dart tool/input_sdk gen/patched_sdk
8
9 echo "*** Compiling SDK to JavaScript"
10
11 # TODO(jmesserly): break out dart:html & friends.
12 { # Try 7 { # Try
13 dart -c tool/build_sdk.dart \ 8 dart -c tool/patch_sdk.dart ../.. tool/input_sdk gen/patched_sdk \
14 --dart-sdk gen/patched_sdk \ 9 > tool/sdk_expected_errors.txt
15 --dart-sdk-summary=build \
16 --summary-out lib/sdk/ddc_sdk.sum \
17 --modules=amd \
18 -o lib/js/amd/dart_sdk.js \
19 --modules=es6 \
20 -o lib/js/es6/dart_sdk.js \
21 --modules=common \
22 -o lib/js/common/dart_sdk.js \
23 --modules=legacy \
24 -o lib/js/legacy/dart_sdk.js \
25 "$@" > tool/sdk_expected_errors.txt
26 } || { # Catch 10 } || { # Catch
27 # Show errors if the sdk didn't compile. 11 # Show errors if the sdk didn't compile.
28 cat tool/sdk_expected_errors.txt 12 cat tool/sdk_expected_errors.txt
13 exit 1
14 }
15
16 echo "*** Compiling SDK to JavaScript"
17 { # Try
18 # TODO(jmesserly): break out dart:html & friends into a module.
19 dart -c tool/build_sdk.dart \
20 --dart-sdk gen/patched_sdk \
21 --dart-sdk-summary=build \
22 --summary-out lib/sdk/ddc_sdk.sum \
23 --modules=amd \
24 -o lib/js/amd/dart_sdk.js \
25 --modules=es6 \
26 -o lib/js/es6/dart_sdk.js \
27 --modules=common \
28 -o lib/js/common/dart_sdk.js \
29 --modules=legacy \
30 -o lib/js/legacy/dart_sdk.js \
31 "$@" > tool/sdk_expected_errors.txt
32 } || { # Catch
33 # Show errors if the sdk didn't compile.
34 cat tool/sdk_expected_errors.txt
29 exit 1 35 exit 1
30 } 36 }
OLDNEW
« no previous file with comments | « pkg/dev_compiler/test/not_yet_strong_tests.dart ('k') | pkg/dev_compiler/tool/input_sdk/lib/_internal/libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698