build: add conditions to check out Chromium and Node.js (#15319)

This commit is contained in:
Alexey Kuzmin 2018-10-24 19:50:36 +02:00 коммит произвёл John Kleinschmidt
Родитель 8ba271efba
Коммит 4185efa08f
1 изменённых файлов: 13 добавлений и 5 удалений

18
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',