Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 1 | use_relative_paths = True |
| 2 | use_relative_hooks = True |
| 3 | |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame^] | 4 | gclient_gn_args_file = 'build/config/gclient_args.gni' |
| 5 | gclient_gn_args = [ |
| 6 | 'mac_xcode_version', |
| 7 | ] |
| 8 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 9 | vars = { |
| 10 | 'chromium_git': 'https://chromium.googlesource.com', |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 11 | 'dawn_git': 'https://dawn.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 12 | 'github_git': 'https://github.com', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 13 | 'swiftshader_git': 'https://swiftshader.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 14 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 15 | 'dawn_standalone': True, |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame^] | 16 | |
| 17 | # This can be overridden, e.g. with custom_vars, to download a nonstandard |
| 18 | # Xcode version in build/mac_toolchain.py instead of downloading the |
| 19 | # prebuilt pinned revision. |
| 20 | 'mac_xcode_version': 'default', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 21 | } |
| 22 | |
| 23 | deps = { |
| 24 | # Dependencies required to use GN/Clang in standalone |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 25 | 'build': { |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame^] | 26 | 'url': '{chromium_git}/chromium/src/build@b8f14c09b76ae3bd6edabe45105527a97e1e16bd', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 27 | 'condition': 'dawn_standalone', |
| 28 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 29 | 'buildtools': { |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame^] | 30 | 'url': '{chromium_git}/chromium/src/buildtools@eb3987ec709b39469423100c1e77f0446890e059', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 31 | 'condition': 'dawn_standalone', |
| 32 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 33 | 'tools/clang': { |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame^] | 34 | 'url': '{chromium_git}/chromium/src/tools/clang@d027d75e8dd91140115a4cc9c7c3598c44bbf634', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 35 | 'condition': 'dawn_standalone', |
| 36 | }, |
Kai Ninomiya | f526d77 | 2020-04-06 22:27:02 +0000 | [diff] [blame] | 37 | 'tools/clang/dsymutil': { |
| 38 | 'packages': [ |
| 39 | { |
| 40 | 'package': 'chromium/llvm-build-tools/dsymutil', |
| 41 | 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC', |
| 42 | } |
| 43 | ], |
| 44 | 'condition': 'checkout_mac or checkout_ios', |
| 45 | 'dep_type': 'cipd', |
| 46 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 47 | |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 48 | # Testing, GTest and GMock |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 49 | 'testing': { |
Victor Costan | 0721c1c | 2020-04-15 20:06:27 +0000 | [diff] [blame] | 50 | 'url': '{chromium_git}/chromium/src/testing@e5ced5141379ee8ae28b4f93d3c02df039d2b052', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 51 | 'condition': 'dawn_standalone', |
| 52 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 53 | 'third_party/googletest': { |
Corentin Wallez | a02619d | 2020-05-11 15:37:11 +0000 | [diff] [blame] | 54 | 'url': '{chromium_git}/external/github.com/google/googletest@a09ea700d32bab83325aff9ff34d0582e50e3997', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 55 | 'condition': 'dawn_standalone', |
| 56 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 57 | |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 58 | # Jinja2 and MarkupSafe for the code generator |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 59 | 'third_party/jinja2': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 60 | 'url': '{chromium_git}/chromium/src/third_party/jinja2@b41863e42637544c2941b574c7877d3e1f663e25', |
| 61 | 'condition': 'dawn_standalone', |
| 62 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 63 | 'third_party/markupsafe': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 64 | 'url': '{chromium_git}/chromium/src/third_party/markupsafe@8f45f5cfa0009d2a70589bcda0349b8cb2b72783', |
| 65 | 'condition': 'dawn_standalone', |
| 66 | }, |
| 67 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 68 | # SPIRV-Cross |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 69 | 'third_party/spirv-cross': { |
Ryan Harrison | a0b4571 | 2020-07-07 20:45:02 +0000 | [diff] [blame] | 70 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@559b21c6c91f65ba52cdfa7a76e1185cd3c8f144', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 71 | 'condition': 'dawn_standalone', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 72 | }, |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 73 | |
| 74 | # SPIRV compiler dependencies: SPIRV-Tools, SPIRV-headers, glslang and shaderc |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 75 | 'third_party/SPIRV-Tools': { |
Ryan Harrison | a0b4571 | 2020-07-07 20:45:02 +0000 | [diff] [blame] | 76 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@2fbeb04b6e6b6da58fd5fe7f801a9de5b32f656f', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 77 | 'condition': 'dawn_standalone', |
| 78 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 79 | 'third_party/spirv-headers': { |
Ryan Harrison | a0b4571 | 2020-07-07 20:45:02 +0000 | [diff] [blame] | 80 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@308bd07424350a6000f35a77b5f85cd4f3da319e', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 81 | 'condition': 'dawn_standalone', |
| 82 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 83 | 'third_party/glslang': { |
Ryan Harrison | a0b4571 | 2020-07-07 20:45:02 +0000 | [diff] [blame] | 84 | 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@29c9135d06f12628e3161e4aa751610c5941d8d6', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 85 | 'condition': 'dawn_standalone', |
| 86 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 87 | 'third_party/shaderc': { |
Ryan Harrison | a0b4571 | 2020-07-07 20:45:02 +0000 | [diff] [blame] | 88 | 'url': '{chromium_git}/external/github.com/google/shaderc@1402ed576596f53eaf3f8d390a9e1defbeffd014', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 89 | 'condition': 'dawn_standalone', |
| 90 | }, |
| 91 | |
Ryan Harrison | 991b947 | 2020-05-06 23:15:54 +0000 | [diff] [blame] | 92 | # WGSL support |
| 93 | 'third_party/tint': { |
Ryan Harrison | a0b4571 | 2020-07-07 20:45:02 +0000 | [diff] [blame] | 94 | 'url': '{dawn_git}/tint@7b819aa162403eceb22133de44c15f20e3bcd862', |
Ryan Harrison | 991b947 | 2020-05-06 23:15:54 +0000 | [diff] [blame] | 95 | 'condition': 'dawn_standalone', |
| 96 | }, |
| 97 | |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 98 | # GLFW for tests and samples |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 99 | 'third_party/glfw': { |
Corentin Wallez | a5a6e4f | 2020-01-23 15:10:58 +0000 | [diff] [blame] | 100 | 'url': '{chromium_git}/external/github.com/glfw/glfw@d973acc123826666ecc9e6fd475682e3d84c54a6', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 101 | 'condition': 'dawn_standalone', |
| 102 | }, |
| 103 | |
Austin Eng | f3f5bf4 | 2019-05-18 03:14:46 +0000 | [diff] [blame] | 104 | # Dependencies for samples: GLM |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 105 | 'third_party/glm': { |
Zhenyao Mo | 37193aa | 2020-04-14 16:20:14 +0000 | [diff] [blame] | 106 | 'url': '{github_git}/g-truc/glm.git@bf71a834948186f4097caa076cd2663c69a10e1e', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 107 | 'condition': 'dawn_standalone', |
| 108 | }, |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 109 | |
Corentin Wallez | 0925720 | 2020-04-17 08:22:25 +0000 | [diff] [blame] | 110 | # Khronos Vulkan headers, validation layers and loader. |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 111 | 'third_party/vulkan-headers': { |
Corentin Wallez | b72434f | 2020-07-07 14:28:41 +0000 | [diff] [blame] | 112 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@4c079bf40c2587220dbf157d825d3185c9adc896', |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 113 | 'condition': 'dawn_standalone', |
| 114 | }, |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 115 | 'third_party/vulkan-validation-layers': { |
Corentin Wallez | b72434f | 2020-07-07 14:28:41 +0000 | [diff] [blame] | 116 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@e8b96e86fe2edfaee274b98fbbe1bd65579b0904', |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 117 | 'condition': 'dawn_standalone', |
| 118 | }, |
Corentin Wallez | 0925720 | 2020-04-17 08:22:25 +0000 | [diff] [blame] | 119 | 'third_party/vulkan-loader': { |
Ryan Harrison | 73c9909 | 2020-05-26 20:00:43 +0000 | [diff] [blame] | 120 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Loader@006586926adece57adea3e006140b5df19826371', |
Corentin Wallez | 0925720 | 2020-04-17 08:22:25 +0000 | [diff] [blame] | 121 | 'condition': 'dawn_standalone', |
| 122 | }, |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 123 | |
| 124 | 'third_party/swiftshader': { |
Corentin Wallez | 92f501d | 2020-07-14 06:58:54 +0000 | [diff] [blame] | 125 | 'url': '{swiftshader_git}/SwiftShader@ad65826a2ab181592473fb54ab78025771f4caf6', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 126 | 'condition': 'dawn_standalone', |
| 127 | }, |
| 128 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 129 | } |
| 130 | |
| 131 | hooks = [ |
| 132 | # Pull clang-format binaries using checked-in hashes. |
| 133 | { |
| 134 | 'name': 'clang_format_win', |
| 135 | 'pattern': '.', |
| 136 | 'condition': 'host_os == "win" and dawn_standalone', |
| 137 | 'action': [ 'download_from_google_storage', |
| 138 | '--no_resume', |
| 139 | '--platform=win32', |
| 140 | '--no_auth', |
| 141 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 142 | '-s', 'buildtools/win/clang-format.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 143 | ], |
| 144 | }, |
| 145 | { |
| 146 | 'name': 'clang_format_mac', |
| 147 | 'pattern': '.', |
| 148 | 'condition': 'host_os == "mac" and dawn_standalone', |
| 149 | 'action': [ 'download_from_google_storage', |
| 150 | '--no_resume', |
| 151 | '--platform=darwin', |
| 152 | '--no_auth', |
| 153 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 154 | '-s', 'buildtools/mac/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 155 | ], |
| 156 | }, |
| 157 | { |
| 158 | 'name': 'clang_format_linux', |
| 159 | 'pattern': '.', |
| 160 | 'condition': 'host_os == "linux" and dawn_standalone', |
| 161 | 'action': [ 'download_from_google_storage', |
| 162 | '--no_resume', |
| 163 | '--platform=linux*', |
| 164 | '--no_auth', |
| 165 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 166 | '-s', 'buildtools/linux64/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 167 | ], |
| 168 | }, |
| 169 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 170 | # Pull the compilers and system libraries for hermetic builds |
| 171 | { |
| 172 | 'name': 'sysroot_x86', |
| 173 | 'pattern': '.', |
| 174 | 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 175 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 176 | '--arch=x86'], |
| 177 | }, |
| 178 | { |
| 179 | 'name': 'sysroot_x64', |
| 180 | 'pattern': '.', |
| 181 | 'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 182 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 183 | '--arch=x64'], |
| 184 | }, |
| 185 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 186 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 187 | 'name': 'win_toolchain', |
| 188 | 'pattern': '.', |
| 189 | 'condition': 'checkout_win and dawn_standalone', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 190 | 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 191 | }, |
| 192 | { |
| 193 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 194 | 'name': 'clang', |
| 195 | 'pattern': '.', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 196 | 'action': ['python', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 197 | 'condition': 'dawn_standalone', |
| 198 | }, |
| 199 | { |
| 200 | # Pull rc binaries using checked-in hashes. |
| 201 | 'name': 'rc_win', |
| 202 | 'pattern': '.', |
| 203 | 'condition': 'checkout_win and (host_os == "win" and dawn_standalone)', |
| 204 | 'action': [ 'download_from_google_storage', |
| 205 | '--no_resume', |
| 206 | '--no_auth', |
| 207 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 208 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 209 | ], |
| 210 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 211 | # Update build/util/LASTCHANGE. |
| 212 | { |
| 213 | 'name': 'lastchange', |
| 214 | 'pattern': '.', |
Jiajie Hu | 2ffc55a | 2020-07-01 05:08:36 +0000 | [diff] [blame] | 215 | 'condition': 'dawn_standalone', |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 216 | 'action': ['python', 'build/util/lastchange.py', |
| 217 | '-o', 'build/util/LASTCHANGE'], |
| 218 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 219 | ] |
| 220 | |
| 221 | recursedeps = [ |
| 222 | # buildtools provides clang_format, libc++, and libc++abi |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 223 | 'buildtools', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 224 | ] |