DEPS 4.4 KB

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