From 4185efa08f6a85e2d7dea4ec0f958975ddd8385d Mon Sep 17 00:00:00 2001 From: Alexey Kuzmin Date: Wed, 24 Oct 2018 19:50:36 +0200 Subject: [PATCH] build: add conditions to check out Chromium and Node.js (#15319) --- DEPS | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/DEPS b/DEPS index ff21f5834983..98ae7f32d7c5 100644 --- a/DEPS +++ b/DEPS @@ -30,6 +30,10 @@ vars = { # Python interface to Amazon Web Services. Is used for releases only. 'checkout_boto': False, + # To allow in-house builds to checkout those manually. + 'checkout_chromium': True, + 'checkout_node': True, + # Python "requests" module is used for releases only. 'checkout_requests': False, @@ -52,10 +56,14 @@ vars = { } deps = { - 'src': - (Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")), - 'src/third_party/electron_node': - (Var("electron_git")) + '/node.git@' + (Var("node_version")), + 'src': { + 'url': (Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")), + 'condition': 'checkout_chromium', + }, + 'src/third_party/electron_node': { + 'url': (Var("electron_git")) + '/node.git@' + (Var("node_version")), + 'condition': 'checkout_node', + }, 'src/electron/vendor/pyyaml': (Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")), 'src/electron/vendor/boto': { @@ -71,7 +79,7 @@ deps = { hooks = [ { 'name': 'patch_chromium', - 'condition': 'apply_patches', + 'condition': 'checkout_chromium and apply_patches', 'pattern': 'src/electron', 'action': [ 'python',