DEPS 4.4 KB

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