Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ task:
# sudo gem install jazzy@0.9.4
gclient_sync_script: |
mkdir -p $ENGINE_PATH/src
echo 'solutions = [{"managed": False,"name": "src/flutter","url": "git@github.com:flutter/engine.git","custom_deps": {},"deps_file": "DEPS","safesync_url": "",},]' > $ENGINE_PATH/.gclient
echo 'solutions = [{"managed": False,"name": "src/flutter","url": "git@github.com:flutter/engine.git","deps_file": "DEPS", "custom_vars": {"download_android_deps" : False, "download_windows_deps" : False,},},]' > $ENGINE_PATH/.gclient
cd $ENGINE_PATH/src
rm -rf flutter
rm -rf out
Expand Down
81 changes: 25 additions & 56 deletions DEPS
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ vars = {
'ios_tools_revision': '69b7c1b160e7107a6a98d948363772dc9caea46f',

'buildtools_revision': 'bac220c15490dcf7b7d8136f75100bbc77e8d217',

# Checkout Android dependencies only on platforms where we build for Android targets.
'download_android_deps': 'host_os == "mac" or host_os == "linux"',

# Checkout Windows dependencies only if we are building on Windows.
'download_windows_deps' : 'host_os == "win"',
}

# Only these hosts are allowed for dependencies in this DEPS file.
Expand Down Expand Up @@ -383,10 +389,6 @@ deps = {
Var('dart_git') + '/when.git' + '@' + '0.2.0',
}

recursedeps = [
'src/buildtools',
]

hooks = [
{
# This clobbers when necessary (based on get_landmines.py). It must be the
Expand All @@ -402,44 +404,31 @@ hooks = [
{
# Update the Windows toolchain if necessary.
'name': 'win_toolchain',
'condition': 'download_windows_deps',
'pattern': '.',
'action': ['python', 'src/build/vs_toolchain.py', 'update'],
},
{
# Pull dart sdk if needed
# this will be used by android_tools
# Pull dart sdk if needed this will be used by android_tools
'name': 'dart',
'condition': 'download_android_deps',
'pattern': '.',
'action': ['python', 'src/tools/dart/update.py'],
},
{
'name': 'prepare_android_downloader',
'pattern': '.',
'condition': 'download_android_deps',
'cwd': 'src/tools/android/android_sdk_downloader',
'condition': 'host_os == "linux" or host_os == "mac"',
'action': [
'../../../third_party/dart/tools/sdks/dart-sdk/bin/pub', # this hook _must_ be run _after_ the dart hook.
'get'
],
},
# TODO(dnfield): This can be enabled when we actually support building
# the android engine on windows. For now there's no sense in having
# windows clients download bits they don't need.
# see: https://github.com/flutter/flutter/issues/13841
# {
# 'name': 'prepare_android_downloader_win',
# 'pattern': '.',
# 'cwd': 'src\\tools\\android\\android_sdk_downloader',
# 'condition': 'host_os == "win"',
# 'action': [
# '..\\..\\..\\third_party\\dart\\tools\\sdks\\dart-sdk\\bin\\pub.bat', # this hook _must_ be run _after_ the dart hook.
# 'get'
# ],
# },
{
'name': 'download_android_tools',
'pattern': '.',
'condition': 'host_os == "mac" or host_os == "linux"',
'condition': 'download_android_deps',
'action': [
'src/third_party/dart/tools/sdks/dart-sdk/bin/dart', # this hook _must_ be run _after_ the dart hook.
'--enable-asserts',
Expand All @@ -454,31 +443,10 @@ hooks = [
'--ndk-version=19.1.5304403'
],
},
# TODO(dnfield): This can be enabled when we actually support building
# the android engine on windows. For now there's no sense in having
# windows clients download bits they don't need.
# see: https://github.com/flutter/flutter/issues/13841
# {
# 'name': 'download_android_tools_win',
# 'pattern': '.',
# 'condition': 'host_os == "win"',
# 'action': [
# 'src\\third_party\\dart\\tools\\sdks\\dart-sdk\\bin\\dart.exe', # this hook _must_ be run _after_ the dart hook.
# '--enable-asserts',
# 'src\\tools\\android\\android_sdk_downloader\\lib\\main.dart',
# '-y', # Accept licenses
# '--out=src\\third_party\\android_tools',
# '--platform=28',
# '--platform-revision=6',
# '--build-tools-version=28.0.3',
# '--platform-tools-version=28.0.1',
# '--tools-version=26.1.1',
# '--ndk-version=19.0.5232133'
# ],
# },
{
'name': 'download_android_support',
'pattern': '.',
'condition': 'download_android_deps',
'action': [
'python',
'src/flutter/tools/android_support/download_android_support.py',
Expand Down Expand Up @@ -510,18 +478,19 @@ hooks = [
],
},
{
"name": "7zip",
"pattern": ".",
"action": [
"download_from_google_storage",
"--no_auth",
"--no_resume",
"--bucket",
"dart-dependencies",
"--platform=win32",
"--extract",
"-s",
"src/third_party/dart/third_party/7zip.tar.gz.sha1",
'name': '7zip',
'pattern': '.',
'condition': 'download_windows_deps',
'action': [
'download_from_google_storage',
'--no_auth',
'--no_resume',
'--bucket',
'dart-dependencies',
'--platform=win32',
'--extract',
'-s',
'src/third_party/dart/third_party/7zip.tar.gz.sha1',
],
},
]