DEPS 4.2 KB

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