Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 1 | use_relative_paths = True |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 2 | |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame] | 3 | gclient_gn_args_file = 'build/config/gclient_args.gni' |
Corentin Wallez | 4e2d7cf | 2020-07-14 15:53:34 +0000 | [diff] [blame] | 4 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 5 | vars = { |
| 6 | 'chromium_git': 'https://chromium.googlesource.com', |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 7 | 'dawn_git': 'https://dawn.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 8 | 'github_git': 'https://github.com', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 9 | 'swiftshader_git': 'https://swiftshader.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 10 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 11 | 'dawn_standalone': True, |
| 12 | } |
| 13 | |
| 14 | deps = { |
| 15 | # Dependencies required to use GN/Clang in standalone |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 16 | 'build': { |
Corentin Wallez | 346fa22 | 2021-01-12 16:23:03 +0000 | [diff] [blame] | 17 | 'url': '{chromium_git}/chromium/src/build@3769c3b43c3804f9f7f14c6e37f545639fda2852', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 18 | 'condition': 'dawn_standalone', |
| 19 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 20 | 'buildtools': { |
Corentin Wallez | 346fa22 | 2021-01-12 16:23:03 +0000 | [diff] [blame] | 21 | 'url': '{chromium_git}/chromium/src/buildtools@235cfe435ca5a9826569ee4ef603e226216bd768', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 22 | 'condition': 'dawn_standalone', |
| 23 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 24 | 'tools/clang': { |
Corentin Wallez | 346fa22 | 2021-01-12 16:23:03 +0000 | [diff] [blame] | 25 | 'url': '{chromium_git}/chromium/src/tools/clang@b12d1c836e2bb21b966bf86f7245bab9d257bb6b', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 26 | 'condition': 'dawn_standalone', |
| 27 | }, |
Kai Ninomiya | f526d77 | 2020-04-06 22:27:02 +0000 | [diff] [blame] | 28 | 'tools/clang/dsymutil': { |
| 29 | 'packages': [ |
| 30 | { |
| 31 | 'package': 'chromium/llvm-build-tools/dsymutil', |
| 32 | 'version': 'M56jPzDv1620Rnm__jTMYS62Zi8rxHVq7yw0qeBFEgkC', |
| 33 | } |
| 34 | ], |
| 35 | 'condition': 'checkout_mac or checkout_ios', |
| 36 | 'dep_type': 'cipd', |
| 37 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 38 | |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 39 | # Testing, GTest and GMock |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 40 | 'testing': { |
Corentin Wallez | bf1e953 | 2020-11-04 09:44:47 +0000 | [diff] [blame] | 41 | 'url': '{chromium_git}/chromium/src/testing@3e2640a325dc34ec3d9cb2802b8da874aecaf52d', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 42 | 'condition': 'dawn_standalone', |
| 43 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 44 | 'third_party/googletest': { |
Corentin Wallez | bf1e953 | 2020-11-04 09:44:47 +0000 | [diff] [blame] | 45 | 'url': '{chromium_git}/external/github.com/google/googletest@2828773179fa425ee406df61890a150577178ea2', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 46 | 'condition': 'dawn_standalone', |
| 47 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 48 | |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 49 | # Jinja2 and MarkupSafe for the code generator |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 50 | 'third_party/jinja2': { |
Corentin Wallez | bf1e953 | 2020-11-04 09:44:47 +0000 | [diff] [blame] | 51 | 'url': '{chromium_git}/chromium/src/third_party/jinja2@a82a4944a7f2496639f34a89c9923be5908b80aa', |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 52 | 'condition': 'dawn_standalone', |
| 53 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 54 | 'third_party/markupsafe': { |
Corentin Wallez | bf1e953 | 2020-11-04 09:44:47 +0000 | [diff] [blame] | 55 | 'url': '{chromium_git}/chromium/src/third_party/markupsafe@0944e71f4b2cb9a871bcbe353f95e889b64a611a', |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 56 | 'condition': 'dawn_standalone', |
| 57 | }, |
| 58 | |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 59 | # SPIRV compiler dependencies: shaderc |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 60 | 'third_party/shaderc': { |
Corentin Wallez | d1b65e0 | 2020-11-30 22:40:17 +0000 | [diff] [blame] | 61 | 'url': '{chromium_git}/external/github.com/google/shaderc@6216d098d8abe3ccda8781016c4f69372c48afb9', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 62 | 'condition': 'dawn_standalone', |
| 63 | }, |
| 64 | |
Ryan Harrison | 991b947 | 2020-05-06 23:15:54 +0000 | [diff] [blame] | 65 | # WGSL support |
| 66 | 'third_party/tint': { |
Dawn Autoroller | 0562802 | 2021-01-13 20:32:38 +0000 | [diff] [blame] | 67 | 'url': '{dawn_git}/tint@313ae9e87f37d917421baacf4065dc460655e646', |
Ryan Harrison | 991b947 | 2020-05-06 23:15:54 +0000 | [diff] [blame] | 68 | 'condition': 'dawn_standalone', |
| 69 | }, |
| 70 | |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 71 | # GLFW for tests and samples |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 72 | 'third_party/glfw': { |
Corentin Wallez | a5a6e4f | 2020-01-23 15:10:58 +0000 | [diff] [blame] | 73 | 'url': '{chromium_git}/external/github.com/glfw/glfw@d973acc123826666ecc9e6fd475682e3d84c54a6', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 74 | 'condition': 'dawn_standalone', |
| 75 | }, |
| 76 | |
Austin Eng | f3f5bf4 | 2019-05-18 03:14:46 +0000 | [diff] [blame] | 77 | # Dependencies for samples: GLM |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 78 | 'third_party/glm': { |
Zhenyao Mo | 37193aa | 2020-04-14 16:20:14 +0000 | [diff] [blame] | 79 | 'url': '{github_git}/g-truc/glm.git@bf71a834948186f4097caa076cd2663c69a10e1e', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 80 | 'condition': 'dawn_standalone', |
| 81 | }, |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 82 | |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 83 | 'third_party/vulkan_memory_allocator': { |
| 84 | 'url': '{chromium_git}/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator@065e739079d9d58bef28ccd793cbf512261f09ed', |
| 85 | 'condition': 'dawn_standalone', |
| 86 | }, |
| 87 | |
| 88 | 'third_party/angle': { |
| 89 | 'url': '{chromium_git}/angle/angle@f4cd17472aca1939277b145ef0f72b0946b83716', |
| 90 | 'condition': 'dawn_standalone', |
| 91 | }, |
| 92 | |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 93 | 'third_party/swiftshader': { |
Corentin Wallez | 6298b63 | 2020-10-19 18:35:39 +0000 | [diff] [blame] | 94 | 'url': '{swiftshader_git}/SwiftShader@df17a76102dfabb3f1bd6e51449cece9f77b45e3', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 95 | 'condition': 'dawn_standalone', |
| 96 | }, |
| 97 | |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 98 | 'third_party/vulkan-deps': { |
Corentin Wallez | 06aa1af | 2021-01-07 13:22:22 +0000 | [diff] [blame] | 99 | 'url': '{chromium_git}/vulkan-deps@c493c61120215a00f54cc59f067f7419dabad066', |
Stephen White | 77fcdf7 | 2021-01-11 15:52:12 +0000 | [diff] [blame] | 100 | }, |
| 101 | |
| 102 | 'third_party/zlib': { |
| 103 | 'url': '{chromium_git}/chromium/src/third_party/zlib@c29ee8c9c3824ca013479bf8115035527967fe02', |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 104 | 'condition': 'dawn_standalone', |
| 105 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 106 | } |
| 107 | |
| 108 | hooks = [ |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 109 | # Pull the compilers and system libraries for hermetic builds |
| 110 | { |
| 111 | 'name': 'sysroot_x86', |
| 112 | 'pattern': '.', |
| 113 | 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 114 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 115 | '--arch=x86'], |
| 116 | }, |
| 117 | { |
| 118 | 'name': 'sysroot_x64', |
| 119 | 'pattern': '.', |
| 120 | 'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 121 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 122 | '--arch=x64'], |
| 123 | }, |
| 124 | { |
Corentin Wallez | d4e7f08 | 2020-11-17 21:16:31 +0000 | [diff] [blame] | 125 | # Update the Mac toolchain if possible, this makes builders use "hermetic XCode" which is |
| 126 | # is more consistent (only changes when rolling build/) and is cached. |
| 127 | 'name': 'mac_toolchain', |
| 128 | 'pattern': '.', |
| 129 | 'condition': 'checkout_mac', |
| 130 | 'action': ['python', 'build/mac_toolchain.py'], |
| 131 | }, |
| 132 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 133 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 134 | 'name': 'win_toolchain', |
| 135 | 'pattern': '.', |
| 136 | 'condition': 'checkout_win and dawn_standalone', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 137 | 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 138 | }, |
| 139 | { |
| 140 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 141 | 'name': 'clang', |
| 142 | 'pattern': '.', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 143 | 'action': ['python', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 144 | 'condition': 'dawn_standalone', |
| 145 | }, |
| 146 | { |
| 147 | # Pull rc binaries using checked-in hashes. |
| 148 | 'name': 'rc_win', |
| 149 | 'pattern': '.', |
| 150 | 'condition': 'checkout_win and (host_os == "win" and dawn_standalone)', |
| 151 | 'action': [ 'download_from_google_storage', |
| 152 | '--no_resume', |
| 153 | '--no_auth', |
| 154 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 155 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 156 | ], |
| 157 | }, |
Corentin Wallez | 131e619 | 2020-11-03 18:18:06 +0000 | [diff] [blame] | 158 | # Pull clang-format binaries using checked-in hashes. |
| 159 | { |
| 160 | 'name': 'clang_format_win', |
| 161 | 'pattern': '.', |
| 162 | 'condition': 'host_os == "win"', |
| 163 | 'action': [ 'download_from_google_storage', |
| 164 | '--no_resume', |
| 165 | '--no_auth', |
| 166 | '--bucket', 'chromium-clang-format', |
| 167 | '-s', 'buildtools/win/clang-format.exe.sha1', |
| 168 | ], |
| 169 | }, |
| 170 | { |
| 171 | 'name': 'clang_format_mac', |
| 172 | 'pattern': '.', |
| 173 | 'condition': 'host_os == "mac"', |
| 174 | 'action': [ 'download_from_google_storage', |
| 175 | '--no_resume', |
| 176 | '--no_auth', |
| 177 | '--bucket', 'chromium-clang-format', |
| 178 | '-s', 'buildtools/mac/clang-format.sha1', |
| 179 | ], |
| 180 | }, |
| 181 | { |
| 182 | 'name': 'clang_format_linux', |
| 183 | 'pattern': '.', |
| 184 | 'condition': 'host_os == "linux"', |
| 185 | 'action': [ 'download_from_google_storage', |
| 186 | '--no_resume', |
| 187 | '--no_auth', |
| 188 | '--bucket', 'chromium-clang-format', |
| 189 | '-s', 'buildtools/linux64/clang-format.sha1', |
| 190 | ], |
| 191 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 192 | # Update build/util/LASTCHANGE. |
| 193 | { |
| 194 | 'name': 'lastchange', |
| 195 | 'pattern': '.', |
Jiajie Hu | 2ffc55a | 2020-07-01 05:08:36 +0000 | [diff] [blame] | 196 | 'condition': 'dawn_standalone', |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 197 | 'action': ['python', 'build/util/lastchange.py', |
| 198 | '-o', 'build/util/LASTCHANGE'], |
| 199 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 200 | ] |
| 201 | |
| 202 | recursedeps = [ |
| 203 | # buildtools provides clang_format, libc++, and libc++abi |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 204 | 'buildtools', |
Stephen White | f1fa60b | 2021-01-06 17:41:50 +0000 | [diff] [blame] | 205 | 'third_party/vulkan-deps', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 206 | ] |