DEPS 3.8 KB

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