mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[web][felt] If full dart-sdk isn't available, install it (flutter/engine#16341)
This commit is contained in:
parent
78dca00cec
commit
950eb2447f
@ -31,25 +31,26 @@ HOST_DEBUG_UNOPT_DIR="${ENGINE_SRC_DIR}/out/host_debug_unopt"
|
||||
DART_SDK_DIR="${ENGINE_SRC_DIR}/out/host_debug_unopt/dart-sdk"
|
||||
GN="${FLUTTER_DIR}/tools/gn"
|
||||
DART_TOOL_DIR="${WEB_UI_DIR}/.dart_tool"
|
||||
PUB_PATH="$DART_SDK_DIR/bin/pub"
|
||||
SNAPSHOT_PATH="${DART_TOOL_DIR}/felt.snapshot"
|
||||
STAMP_PATH="${DART_TOOL_DIR}/felt.snapshot.stamp"
|
||||
SCRIPT_PATH="${DEV_DIR}/felt.dart"
|
||||
REVISION="$(cd "$FLUTTER_DIR"; git rev-parse HEAD)"
|
||||
|
||||
if [ ! -d "${OUT_DIR}" ] || [ ! -d "${HOST_DEBUG_UNOPT_DIR}" ]
|
||||
if [ ! -f "${PUB_PATH}" ]
|
||||
then
|
||||
echo "Compiling the Dart SDK."
|
||||
gclient sync
|
||||
$GN --unoptimized --full-dart-sdk
|
||||
ninja -C $HOST_DEBUG_UNOPT_DIR
|
||||
ninja -C $HOST_DEBUG_UNOPT_DIR -j 100
|
||||
fi
|
||||
|
||||
install_deps() {
|
||||
echo "Running \`pub get\` in 'engine/src/flutter/lib/web_ui'"
|
||||
(cd "$WEB_UI_DIR"; $DART_SDK_DIR/bin/pub get)
|
||||
(cd "$WEB_UI_DIR"; $PUB_PATH get)
|
||||
|
||||
echo "Running \`pub get\` in 'engine/src/flutter/web_sdk/web_engine_tester'"
|
||||
(cd "$FLUTTER_DIR/web_sdk/web_engine_tester"; $DART_SDK_DIR/bin/pub get)
|
||||
(cd "$FLUTTER_DIR/web_sdk/web_engine_tester"; $PUB_PATH get)
|
||||
}
|
||||
|
||||
if [[ "$FELT_USE_SNAPSHOT" == "false" || "$FELT_USE_SNAPSHOT" == "0" ]]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user