DEPS 4.1 KB

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