DEPS 3.7 KB

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