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. # Python interface to Amazon Web Services. Is used for releases only.
'checkout_boto': False, '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. # Python "requests" module is used for releases only.
'checkout_requests': False, 'checkout_requests': False,
@ -52,10 +56,14 @@ vars = {
} }
deps = { deps = {
'src': 'src': {
(Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")), 'url': (Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")),
'src/third_party/electron_node': 'condition': 'checkout_chromium',
(Var("electron_git")) + '/node.git@' + (Var("node_version")), },
'src/third_party/electron_node': {
'url': (Var("electron_git")) + '/node.git@' + (Var("node_version")),
'condition': 'checkout_node',
},
'src/electron/vendor/pyyaml': 'src/electron/vendor/pyyaml':
(Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")), (Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")),
'src/electron/vendor/boto': { 'src/electron/vendor/boto': {
@ -71,7 +79,7 @@ deps = {
hooks = [ hooks = [
{ {
'name': 'patch_chromium', 'name': 'patch_chromium',
'condition': 'apply_patches', 'condition': 'checkout_chromium and apply_patches',
'pattern': 'src/electron', 'pattern': 'src/electron',
'action': [ 'action': [
'python', 'python',