Use new DEPS conditionals.

See
https://groups.google.com/a/chromium.org/d/msg/infra-announce/A6_zQKzCHDo/ZKqSptzeBgAJ.
This allows us to avoid checking out unnecessary things (right now every
Windows bot downloads clang). We also can maintain the SDE bits in DEPS
rather than having to update the recipe for it.

This is the first half of the change which conditions things on
variables but leaves the defaults as they are. This will be followed up
by a change to the recipe to set the variables, then to switch the
defaults.

Change-Id: Iebcc4d0a146d0b0df94f480e539d70cbf4c862d3
Reviewed-on: https://boringssl-review.googlesource.com/21804
Reviewed-by: Steven Valdez <svaldez@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
David Benjamin 2017-10-12 13:04:53 -04:00 committed by CQ bot account: commit-bot@chromium.org
parent 5dde62364e
commit dbf12fc2ce

View File

@ -14,21 +14,26 @@
vars = { vars = {
'chromium_git': 'https://chromium.googlesource.com', 'chromium_git': 'https://chromium.googlesource.com',
# TODO(davidben): Switch this to False by default once the recipes configure it.
'checkout_clang': True,
# TODO(davidben): Switch this to False by default once the recipes configure it.
'checkout_fuzzer': 'checkout_linux',
'checkout_sde': False,
} }
deps = { deps = {
'boringssl/util/bot/android_tools': {
'url': Var('chromium_git') + '/android_tools.git' + '@' + 'e9d4018e149d50172ed462a7c21137aa915940ec',
'condition': 'checkout_android',
},
'boringssl/util/bot/gyp': 'boringssl/util/bot/gyp':
Var('chromium_git') + '/external/gyp.git' + '@' + 'eb296f67da078ec01f5e3a9ea9cdc6d26d680161', Var('chromium_git') + '/external/gyp.git' + '@' + 'eb296f67da078ec01f5e3a9ea9cdc6d26d680161',
}
deps_os = { 'boringssl/util/bot/libFuzzer': {
'android': { 'url': Var('chromium_git') + '/chromium/llvm-project/llvm/lib/Fuzzer.git' + '@' + '16f5f743c188c836d32cdaf349d5d3effb8a3518',
'boringssl/util/bot/android_tools': 'condition': 'checkout_fuzzer',
Var('chromium_git') + '/android_tools.git' + '@' + 'e9d4018e149d50172ed462a7c21137aa915940ec',
},
'unix': {
'boringssl/util/bot/libFuzzer':
Var('chromium_git') + '/chromium/llvm-project/llvm/lib/Fuzzer.git' + '@' + '16f5f743c188c836d32cdaf349d5d3effb8a3518',
}, },
} }
@ -41,6 +46,7 @@ hooks = [
{ {
'name': 'cmake_linux64', 'name': 'cmake_linux64',
'pattern': '.', 'pattern': '.',
'condition': 'host_os == "linux"',
'action': [ 'download_from_google_storage', 'action': [ 'download_from_google_storage',
'--no_resume', '--no_resume',
'--platform=linux*', '--platform=linux*',
@ -49,9 +55,20 @@ hooks = [
'-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1', '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1',
], ],
}, },
{
'name': 'cmake_linux64_extract',
'pattern': '.',
'condition': 'host_os == "linux"',
'action': [ 'python',
'boringssl/util/bot/extract.py',
'boringssl/util/bot/cmake-linux64.tar.gz',
'boringssl/util/bot/cmake-linux64/',
],
},
{ {
'name': 'cmake_mac', 'name': 'cmake_mac',
'pattern': '.', 'pattern': '.',
'condition': 'host_os == "mac"',
'action': [ 'download_from_google_storage', 'action': [ 'download_from_google_storage',
'--no_resume', '--no_resume',
'--platform=darwin', '--platform=darwin',
@ -60,9 +77,20 @@ hooks = [
'-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1', '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1',
], ],
}, },
{
'name': 'cmake_mac_extract',
'pattern': '.',
'condition': 'host_os == "mac"',
'action': [ 'python',
'boringssl/util/bot/extract.py',
'boringssl/util/bot/cmake-mac.tar.gz',
'boringssl/util/bot/cmake-mac/',
],
},
{ {
'name': 'cmake_win32', 'name': 'cmake_win32',
'pattern': '.', 'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'download_from_google_storage', 'action': [ 'download_from_google_storage',
'--no_resume', '--no_resume',
'--platform=win32', '--platform=win32',
@ -71,9 +99,20 @@ hooks = [
'-s', 'boringssl/util/bot/cmake-win32.zip.sha1', '-s', 'boringssl/util/bot/cmake-win32.zip.sha1',
], ],
}, },
{
'name': 'cmake_win32_extract',
'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'python',
'boringssl/util/bot/extract.py',
'boringssl/util/bot/cmake-win32.zip',
'boringssl/util/bot/cmake-win32/',
],
},
{ {
'name': 'perl_win32', 'name': 'perl_win32',
'pattern': '.', 'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'download_from_google_storage', 'action': [ 'download_from_google_storage',
'--no_resume', '--no_resume',
'--platform=win32', '--platform=win32',
@ -82,9 +121,21 @@ hooks = [
'-s', 'boringssl/util/bot/perl-win32.zip.sha1', '-s', 'boringssl/util/bot/perl-win32.zip.sha1',
], ],
}, },
{
'name': 'perl_win32_extract',
'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'python',
'boringssl/util/bot/extract.py',
'--no-prefix',
'boringssl/util/bot/perl-win32.zip',
'boringssl/util/bot/perl-win32/',
],
},
{ {
'name': 'yasm_win32', 'name': 'yasm_win32',
'pattern': '.', 'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'download_from_google_storage', 'action': [ 'download_from_google_storage',
'--no_resume', '--no_resume',
'--platform=win32', '--platform=win32',
@ -96,6 +147,7 @@ hooks = [
{ {
'name': 'win_toolchain', 'name': 'win_toolchain',
'pattern': '.', 'pattern': '.',
'condition': 'host_os == "win"',
'action': [ 'python', 'action': [ 'python',
'boringssl/util/bot/vs_toolchain.py', 'boringssl/util/bot/vs_toolchain.py',
'update', 'update',
@ -104,45 +156,29 @@ hooks = [
{ {
'name': 'clang', 'name': 'clang',
'pattern': '.', 'pattern': '.',
'condition': 'checkout_clang',
'action': [ 'python', 'action': [ 'python',
'boringssl/util/bot/update_clang.py', 'boringssl/util/bot/update_clang.py',
], ],
}, },
{ {
'name': 'cmake_linux64_extract', 'name': 'sde_linux64',
'pattern': '.', 'pattern': '.',
'action': [ 'python', 'condition': 'checkout_sde and host_os == "linux"',
'boringssl/util/bot/extract.py', 'action': [ 'download_from_google_storage',
'boringssl/util/bot/cmake-linux64.tar.gz', '--no_resume',
'boringssl/util/bot/cmake-linux64/', '--bucket', 'chrome-boringssl-sde',
'-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1'
], ],
}, },
{ {
'name': 'cmake_mac_extract', 'name': 'sde_linux64_extract',
'pattern': '.', 'pattern': '.',
'condition': 'checkout_sde and host_os == "linux"',
'action': [ 'python', 'action': [ 'python',
'boringssl/util/bot/extract.py', 'boringssl/util/bot/extract.py',
'boringssl/util/bot/cmake-mac.tar.gz', 'boringssl/util/bot/sde-linux64.tar.bz2',
'boringssl/util/bot/cmake-mac/', 'boringssl/util/bot/sde-linux64/',
],
},
{
'name': 'cmake_win32_extract',
'pattern': '.',
'action': [ 'python',
'boringssl/util/bot/extract.py',
'boringssl/util/bot/cmake-win32.zip',
'boringssl/util/bot/cmake-win32/',
],
},
{
'name': 'perl_win32_extract',
'pattern': '.',
'action': [ 'python',
'boringssl/util/bot/extract.py',
'--no-prefix',
'boringssl/util/bot/perl-win32.zip',
'boringssl/util/bot/perl-win32/',
], ],
}, },
] ]