DEPS 4.3 KB

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