DEPS 4.4 KB

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