DEPS 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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_pgo_profiles',
  9. 'checkout_oculus_sdk',
  10. 'checkout_openxr',
  11. 'checkout_google_benchmark',
  12. 'mac_xcode_version',
  13. ]
  14. vars = {
  15. 'chromium_version':
  16. '89292a4ae29096e5313aaf19dfa0c4710145c34d',
  17. 'node_version':
  18. 'v14.15.1',
  19. 'nan_version':
  20. '2c4ee8a32a299eada3cd6e468bbd0a473bfea96d',
  21. 'squirrel.mac_version':
  22. 'cdc0729c8bf8576bfef18629186e1e9ecf1b0d9f',
  23. 'pyyaml_version': '3.12',
  24. 'chromium_git': 'https://chromium.googlesource.com',
  25. 'electron_git': 'https://github.com/electron',
  26. 'nodejs_git': 'https://github.com/nodejs',
  27. 'yaml_git': 'https://github.com/yaml',
  28. 'squirrel_git': 'https://github.com/Squirrel',
  29. # KEEP IN SYNC WITH utils.js FILE
  30. 'yarn_version': '1.15.2',
  31. # To be able to build clean Chromium from sources.
  32. 'apply_patches': True,
  33. # To use an mtime cache for patched files to speed up builds.
  34. 'use_mtime_cache': True,
  35. # To allow in-house builds to checkout those manually.
  36. 'checkout_chromium': True,
  37. 'checkout_node': True,
  38. 'checkout_nan': True,
  39. 'checkout_pgo_profiles': True,
  40. # It's only needed to parse the native tests configurations.
  41. 'checkout_pyyaml': False,
  42. 'mac_xcode_version': 'default',
  43. # To allow running hooks without parsing the DEPS tree
  44. 'process_deps': True,
  45. 'checkout_nacl':
  46. False,
  47. 'checkout_libaom':
  48. True,
  49. 'checkout_oculus_sdk':
  50. False,
  51. 'checkout_openxr':
  52. False,
  53. 'build_with_chromium':
  54. True,
  55. 'checkout_android':
  56. False,
  57. 'checkout_android_native_support':
  58. False,
  59. 'checkout_google_benchmark':
  60. False,
  61. 'checkout_clang_tidy':
  62. True,
  63. }
  64. deps = {
  65. 'src': {
  66. 'url': (Var("chromium_git")) + '/chromium/src.git@' + (Var("chromium_version")),
  67. 'condition': 'checkout_chromium and process_deps',
  68. },
  69. 'src/third_party/nan': {
  70. 'url': (Var("nodejs_git")) + '/nan.git@' + (Var("nan_version")),
  71. 'condition': 'checkout_nan and process_deps',
  72. },
  73. 'src/third_party/electron_node': {
  74. 'url': (Var("nodejs_git")) + '/node.git@' + (Var("node_version")),
  75. 'condition': 'checkout_node and process_deps',
  76. },
  77. 'src/electron/vendor/pyyaml': {
  78. 'url': (Var("yaml_git")) + '/pyyaml.git@' + (Var("pyyaml_version")),
  79. 'condition': 'checkout_pyyaml and process_deps',
  80. },
  81. 'src/third_party/squirrel.mac': {
  82. 'url': Var("squirrel_git") + '/Squirrel.Mac.git@' + Var("squirrel.mac_version"),
  83. 'condition': 'process_deps',
  84. },
  85. 'src/third_party/squirrel.mac/vendor/ReactiveObjC': {
  86. 'url': 'https://github.com/ReactiveCocoa/ReactiveObjC.git@74ab5baccc6f7202c8ac69a8d1e152c29dc1ea76',
  87. 'condition': 'process_deps'
  88. },
  89. 'src/third_party/squirrel.mac/vendor/Mantle': {
  90. 'url': 'https://github.com/Mantle/Mantle.git@78d3966b3c331292ea29ec38661b25df0a245948',
  91. 'condition': 'process_deps',
  92. }
  93. }
  94. pre_deps_hooks = [
  95. {
  96. 'name': 'generate_mtime_cache',
  97. 'condition': '(checkout_chromium and apply_patches and use_mtime_cache) and process_deps',
  98. 'pattern': 'src/electron',
  99. 'action': [
  100. 'python3',
  101. 'src/electron/script/patches-mtime-cache.py',
  102. 'generate',
  103. '--cache-file',
  104. 'src/electron/patches/mtime-cache.json',
  105. '--patches-config',
  106. 'src/electron/patches/config.json',
  107. ],
  108. },
  109. ]
  110. hooks = [
  111. {
  112. 'name': 'patch_chromium',
  113. 'condition': '(checkout_chromium and apply_patches) and process_deps',
  114. 'pattern': 'src/electron',
  115. 'action': [
  116. 'python3',
  117. 'src/electron/script/apply_all_patches.py',
  118. 'src/electron/patches/config.json',
  119. ],
  120. },
  121. {
  122. 'name': 'apply_mtime_cache',
  123. 'condition': '(checkout_chromium and apply_patches and use_mtime_cache) and process_deps',
  124. 'pattern': 'src/electron',
  125. 'action': [
  126. 'python3',
  127. 'src/electron/script/patches-mtime-cache.py',
  128. 'apply',
  129. '--cache-file',
  130. 'src/electron/patches/mtime-cache.json',
  131. ],
  132. },
  133. {
  134. 'name': 'electron_npm_deps',
  135. 'pattern': 'src/electron/package.json',
  136. 'action': [
  137. 'python3',
  138. '-c',
  139. 'import os, subprocess; os.chdir(os.path.join("src", "electron")); subprocess.check_call(["python3", "script/lib/npx.py", "yarn@' + (Var("yarn_version")) + '", "install", "--frozen-lockfile"]);',
  140. ],
  141. },
  142. ]
  143. recursedeps = [
  144. 'src',
  145. 'src/third_party/squirrel.mac',
  146. ]