DEPS 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. gclient_gn_args_file = 'src/build/config/gclient_args.gni'
  2. gclient_gn_args = [
  3. 'build_with_chromium',
  4. 'checkout_android',
  5. 'checkout_android_native_support',
  6. 'checkout_libaom',
  7. 'checkout_nacl',
  8. 'checkout_oculus_sdk'
  9. ]
  10. vars = {
  11. 'chromium_version':
  12. '76.0.3809.146',
  13. 'node_version':
  14. 'v12.4.0',
  15. 'boto_version': 'f7574aa6cc2c819430c1f05e9a1a1a666ef8169b',
  16. 'pyyaml_version': '3.12',
  17. 'requests_version': 'e4d59bedfd3c7f4f254f4f5d036587bcd8152458',
  18. 'boto_git': 'https://github.com/boto',
  19. 'chromium_git': 'https://chromium.googlesource.com',
  20. 'electron_git': 'https://github.com/electron',
  21. 'nodejs_git': 'https://github.com/nodejs',
  22. 'requests_git': 'https://github.com/kennethreitz',
  23. 'yaml_git': 'https://github.com/yaml',
  24. # KEEP IN SYNC WITH spec-runner FILE
  25. 'yarn_version': '1.15.2',
  26. # To be able to build clean Chromium from sources.
  27. 'apply_patches': True,
  28. # Apply the patches specific to windows on arm64
  29. 'apply_win_arm64_patches': False,
  30. # Python interface to Amazon Web Services. Is used for releases only.
  31. 'checkout_boto': False,
  32. # To allow in-house builds to checkout those manually.
  33. 'checkout_chromium': True,
  34. 'checkout_node': True,
  35. # It's only needed to parse the native tests configurations.
  36. 'checkout_pyyaml': False,
  37. # Python "requests" module is used for releases only.
  38. 'checkout_requests': False,
  39. # To allow running hooks without parsing the DEPS tree
  40. 'process_deps': True,
  41. # It is always needed for normal Electron builds,
  42. # but might be impossible for custom in-house builds.
  43. 'download_external_binaries': False,
  44. 'checkout_nacl':
  45. False,
  46. 'checkout_libaom':
  47. True,
  48. 'checkout_oculus_sdk':
  49. False,
  50. 'build_with_chromium':
  51. True,
  52. 'checkout_android':
  53. False,
  54. 'checkout_android_native_support':
  55. False,
  56. }
  57. deps = {
  58. 'src': {
  59. 'url': (Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")),
  60. 'condition': 'checkout_chromium and process_deps',
  61. },
  62. 'src/third_party/electron_node': {
  63. 'url': (Var("nodejs_git")) + '/node.git@' + (Var("node_version")),
  64. 'condition': 'checkout_node and process_deps',
  65. },
  66. 'src/electron/vendor/pyyaml': {
  67. 'url': (Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")),
  68. 'condition': 'checkout_pyyaml and process_deps',
  69. },
  70. 'src/electron/vendor/boto': {
  71. 'url': Var('boto_git') + '/boto.git' + '@' + Var('boto_version'),
  72. 'condition': 'checkout_boto and process_deps',
  73. },
  74. 'src/electron/vendor/requests': {
  75. 'url': Var('requests_git') + '/requests.git' + '@' + Var('requests_version'),
  76. 'condition': 'checkout_requests and process_deps',
  77. },
  78. }
  79. hooks = [
  80. {
  81. 'name': 'patch_chromium',
  82. 'condition': '(checkout_chromium and apply_patches) and process_deps',
  83. 'pattern': 'src/electron',
  84. 'action': [
  85. 'python',
  86. 'src/electron/script/apply_all_patches.py',
  87. 'src/electron/patches/common/config.json',
  88. ],
  89. },
  90. {
  91. 'name': 'patch_chromium',
  92. 'condition': '(checkout_chromium and apply_patches) and apply_win_arm64_patches',
  93. 'pattern': 'src/electron',
  94. 'action': [
  95. 'python',
  96. 'src/electron/script/apply_all_patches.py',
  97. 'src/electron/patches/win_arm64/config.json',
  98. ],
  99. },
  100. {
  101. 'name': 'electron_external_binaries',
  102. 'pattern': 'src/electron/script/update-external-binaries.py',
  103. 'condition': 'download_external_binaries',
  104. 'action': [
  105. 'python',
  106. 'src/electron/script/update-external-binaries.py',
  107. ],
  108. },
  109. {
  110. 'name': 'electron_npm_deps',
  111. 'pattern': 'src/electron/package.json',
  112. 'action': [
  113. 'python',
  114. '-c',
  115. 'import os, subprocess; os.chdir(os.path.join("src", "electron")); subprocess.check_call(["python", "script/lib/npx.py", "yarn@' + (Var("yarn_version")) + '", "install", "--frozen-lockfile"]);',
  116. ],
  117. },
  118. {
  119. 'name': 'setup_boto',
  120. 'pattern': 'src/electron',
  121. 'condition': 'checkout_boto and process_deps',
  122. 'action': [
  123. 'python',
  124. '-c',
  125. 'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "boto")); subprocess.check_call(["python", "setup.py", "build"]);',
  126. ],
  127. },
  128. {
  129. 'name': 'setup_requests',
  130. 'pattern': 'src/electron',
  131. 'condition': 'checkout_requests and process_deps',
  132. 'action': [
  133. 'python',
  134. '-c',
  135. 'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "requests")); subprocess.check_call(["python", "setup.py", "build"]);',
  136. ],
  137. },
  138. ]
  139. recursedeps = [
  140. 'src',
  141. ]
  142. # Touch DEPS to bust cache