DEPS 4.2 KB

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