DEPS 4.3 KB

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