DEPS 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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. '70.0.3538.110',
  13. 'node_version':
  14. '1b192088522d10d126e5bb9316adae2a97add62a',
  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. '--root-url=http://github.com/electron/electron-frameworks/releases/download',
  91. '--version=v1.4.0',
  92. ],
  93. },
  94. {
  95. 'name': 'electron_npm_deps',
  96. 'pattern': 'src/electron/package.json',
  97. 'action': [
  98. 'python',
  99. '-c',
  100. 'import os; os.chdir("src"); os.chdir("electron"); os.system("npm install")',
  101. ],
  102. },
  103. {
  104. 'name': 'setup_boto',
  105. 'pattern': 'src/electron',
  106. 'condition': 'checkout_boto',
  107. 'action': [
  108. 'python',
  109. '-c',
  110. 'import os; os.chdir("src"); os.chdir("electron"); os.chdir("vendor"); os.chdir("boto"); os.system("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; os.chdir("src"); os.chdir("electron"); os.chdir("vendor"); os.chdir("requests"); os.system("python setup.py build");',
  121. ],
  122. }
  123. ]
  124. recursedeps = [
  125. 'src',
  126. ]