diff --git a/util/bot/DEPS b/util/bot/DEPS index ccaf75d3..f433a58e 100644 --- a/util/bot/DEPS +++ b/util/bot/DEPS @@ -14,21 +14,26 @@ vars = { '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 = { + 'boringssl/util/bot/android_tools': { + 'url': Var('chromium_git') + '/android_tools.git' + '@' + 'e9d4018e149d50172ed462a7c21137aa915940ec', + 'condition': 'checkout_android', + }, + 'boringssl/util/bot/gyp': Var('chromium_git') + '/external/gyp.git' + '@' + 'eb296f67da078ec01f5e3a9ea9cdc6d26d680161', -} -deps_os = { - 'android': { - 'boringssl/util/bot/android_tools': - Var('chromium_git') + '/android_tools.git' + '@' + 'e9d4018e149d50172ed462a7c21137aa915940ec', - }, - 'unix': { - 'boringssl/util/bot/libFuzzer': - Var('chromium_git') + '/chromium/llvm-project/llvm/lib/Fuzzer.git' + '@' + '16f5f743c188c836d32cdaf349d5d3effb8a3518', + 'boringssl/util/bot/libFuzzer': { + 'url': Var('chromium_git') + '/chromium/llvm-project/llvm/lib/Fuzzer.git' + '@' + '16f5f743c188c836d32cdaf349d5d3effb8a3518', + 'condition': 'checkout_fuzzer', }, } @@ -41,6 +46,7 @@ hooks = [ { 'name': 'cmake_linux64', 'pattern': '.', + 'condition': 'host_os == "linux"', 'action': [ 'download_from_google_storage', '--no_resume', '--platform=linux*', @@ -49,9 +55,20 @@ hooks = [ '-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', 'pattern': '.', + 'condition': 'host_os == "mac"', 'action': [ 'download_from_google_storage', '--no_resume', '--platform=darwin', @@ -60,9 +77,20 @@ hooks = [ '-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', 'pattern': '.', + 'condition': 'host_os == "win"', 'action': [ 'download_from_google_storage', '--no_resume', '--platform=win32', @@ -71,9 +99,20 @@ hooks = [ '-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', 'pattern': '.', + 'condition': 'host_os == "win"', 'action': [ 'download_from_google_storage', '--no_resume', '--platform=win32', @@ -82,9 +121,21 @@ hooks = [ '-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', 'pattern': '.', + 'condition': 'host_os == "win"', 'action': [ 'download_from_google_storage', '--no_resume', '--platform=win32', @@ -96,6 +147,7 @@ hooks = [ { 'name': 'win_toolchain', 'pattern': '.', + 'condition': 'host_os == "win"', 'action': [ 'python', 'boringssl/util/bot/vs_toolchain.py', 'update', @@ -104,45 +156,29 @@ hooks = [ { 'name': 'clang', 'pattern': '.', + 'condition': 'checkout_clang', 'action': [ 'python', 'boringssl/util/bot/update_clang.py', ], }, { - 'name': 'cmake_linux64_extract', + 'name': 'sde_linux64', 'pattern': '.', - 'action': [ 'python', - 'boringssl/util/bot/extract.py', - 'boringssl/util/bot/cmake-linux64.tar.gz', - 'boringssl/util/bot/cmake-linux64/', + 'condition': 'checkout_sde and host_os == "linux"', + 'action': [ 'download_from_google_storage', + '--no_resume', + '--bucket', 'chrome-boringssl-sde', + '-s', 'boringssl/util/bot/sde-linux64.tar.bz2.sha1' ], }, { - 'name': 'cmake_mac_extract', + 'name': 'sde_linux64_extract', 'pattern': '.', + 'condition': 'checkout_sde and host_os == "linux"', 'action': [ 'python', 'boringssl/util/bot/extract.py', - 'boringssl/util/bot/cmake-mac.tar.gz', - 'boringssl/util/bot/cmake-mac/', - ], - }, - { - '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/', + 'boringssl/util/bot/sde-linux64.tar.bz2', + 'boringssl/util/bot/sde-linux64/', ], }, ]