From 2b3ec7a6a1215770e2d2f1596d8c96f2b9f14338 Mon Sep 17 00:00:00 2001 From: William Hesse Date: Wed, 8 Dec 2021 19:47:16 +0100 Subject: [PATCH] Allow overriding download of prebuilt Dart SDK in DEPS (flutter/engine#30183) When building Flutter engine using the --no-prebuilt-dart-sdk flag, we need to be able to check out a version of Dart SDK source without a built version available from the Dart SDK builders. The 'download_dart_sdk' variable in DEPS is true by default, but can be overridden when creating a gclient solution or running gclient sync. --- DEPS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DEPS b/DEPS index d9eb630260..6d52bbda83 100644 --- a/DEPS +++ b/DEPS @@ -66,6 +66,9 @@ vars = { # Build bot tooling for iOS 'ios_tools_revision': '69b7c1b160e7107a6a98d948363772dc9caea46f', + # Download a prebuilt Dart SDK by default + 'download_dart_sdk': True, + # Checkout Android dependencies only on platforms where we build for Android targets. 'download_android_deps': 'host_cpu == "x64" and (host_os == "mac" or host_os == "linux")', @@ -716,6 +719,7 @@ hooks = [ { 'name': 'Download prebuilt Dart SDK', 'pattern': '.', + 'condition': 'download_dart_sdk', 'action': [ 'python3', 'src/flutter/tools/download_dart_sdk.py',