DEPS 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. # It is always needed for normal Electron builds,
  40. # but might be impossible for custom in-house builds.
  41. 'download_external_binaries': True,
  42. 'checkout_nacl':
  43. False,
  44. 'checkout_libaom':
  45. True,
  46. 'checkout_oculus_sdk':
  47. False,
  48. 'build_with_chromium':
  49. True,
  50. 'checkout_android':
  51. False,
  52. 'checkout_android_native_support':
  53. False,
  54. }
  55. deps = {
  56. 'src': {
  57. 'url': (Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")),
  58. 'condition': 'checkout_chromium',
  59. },
  60. 'src/third_party/electron_node': {
  61. 'url': (Var("nodejs_git")) + '/node.git@' + (Var("node_version")),
  62. 'condition': 'checkout_node',
  63. },
  64. 'src/electron/vendor/pyyaml': {
  65. 'url': (Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")),
  66. 'condition': 'checkout_pyyaml',
  67. },
  68. 'src/electron/vendor/boto': {
  69. 'url': Var('boto_git') + '/boto.git' + '@' + Var('boto_version'),
  70. 'condition': 'checkout_boto',
  71. },
  72. 'src/electron/vendor/requests': {
  73. 'url': Var('requests_git') + '/requests.git' + '@' + Var('requests_version'),
  74. 'condition': 'checkout_requests',
  75. },
  76. }
  77. hooks = [
  78. {
  79. 'name': 'patch_chromium',
  80. 'condition': 'checkout_chromium and apply_patches',
  81. 'pattern': 'src/electron',
  82. 'action': [
  83. 'python',
  84. 'src/electron/script/apply_all_patches.py',
  85. 'src/electron/patches/common/config.json',
  86. ],
  87. },
  88. {
  89. 'name': 'patch_chromium',
  90. 'condition': '(checkout_chromium and apply_patches) and apply_win_arm64_patches',
  91. 'pattern': 'src/electron',
  92. 'action': [
  93. 'python',
  94. 'src/electron/script/apply_all_patches.py',
  95. 'src/electron/patches/win_arm64/config.json',
  96. ],
  97. },
  98. {
  99. 'name': 'electron_external_binaries',
  100. 'pattern': 'src/electron/script/update-external-binaries.py',
  101. 'condition': 'download_external_binaries',
  102. 'action': [
  103. 'python',
  104. 'src/electron/script/update-external-binaries.py',
  105. ],
  106. },
  107. {
  108. 'name': 'electron_npm_deps',
  109. 'pattern': 'src/electron/package.json',
  110. 'action': [
  111. 'python',
  112. '-c',
  113. '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"]);',
  114. ],
  115. },
  116. {
  117. 'name': 'setup_boto',
  118. 'pattern': 'src/electron',
  119. 'condition': 'checkout_boto',
  120. 'action': [
  121. 'python',
  122. '-c',
  123. 'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "boto")); subprocess.check_call(["python", "setup.py", "build"]);',
  124. ],
  125. },
  126. {
  127. 'name': 'setup_requests',
  128. 'pattern': 'src/electron',
  129. 'condition': 'checkout_requests',
  130. 'action': [
  131. 'python',
  132. '-c',
  133. 'import os, subprocess; os.chdir(os.path.join("src", "electron", "vendor", "requests")); subprocess.check_call(["python", "setup.py", "build"]);',
  134. ],
  135. },
  136. ]
  137. recursedeps = [
  138. 'src',
  139. ]