DEPS 4.6 KB

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