DEPS 4.7 KB

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