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 | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 4 | vars = { |
| 5 | 'chromium_git': 'https://chromium.googlesource.com', |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 6 | 'dawn_git': 'https://dawn.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 7 | 'github_git': 'https://github.com', |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 8 | 'swiftshader_git': 'https://swiftshader.googlesource.com', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 9 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 10 | 'dawn_standalone': True, |
| 11 | } |
| 12 | |
| 13 | deps = { |
| 14 | # Dependencies required to use GN/Clang in standalone |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 15 | 'build': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 16 | 'url': '{chromium_git}/chromium/src/build@f3d0ca5f46b7b190dbbdc6be508ca11dd5c54302', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 17 | 'condition': 'dawn_standalone', |
| 18 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 19 | 'buildtools': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 20 | 'url': '{chromium_git}/chromium/src/buildtools@74cfb57006f83cfe050817526db359d5c8a11628', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 21 | 'condition': 'dawn_standalone', |
| 22 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 23 | 'tools/clang': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 24 | 'url': '{chromium_git}/chromium/src/tools/clang@3605577b67603ec5776afcfada9e0ff4ea05cf0e', |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 25 | 'condition': 'dawn_standalone', |
| 26 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 27 | 'third_party/binutils': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 28 | 'url': '{chromium_git}/chromium/src/third_party/binutils@01aa7745b0bab64ae22600f09fd6483c60f22ebf', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 29 | 'condition': 'dawn_standalone', |
| 30 | }, |
| 31 | |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 32 | # Testing, GTest and GMock |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 33 | 'testing': { |
Robert Iannucci | ebb0539 | 2019-08-09 01:40:38 +0000 | [diff] [blame] | 34 | 'url': '{chromium_git}/chromium/src/testing@2ffbbb3c8e33d51ddb3cc6b8cd10588302c33628', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 35 | 'condition': 'dawn_standalone', |
| 36 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 37 | 'third_party/googletest': { |
Victor Costan | d097e7c | 2019-02-21 09:26:20 +0000 | [diff] [blame] | 38 | 'url': '{chromium_git}/external/github.com/google/googletest@5ec7f0c4a113e2f18ac2c6cc7df51ad6afc24081', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 39 | 'condition': 'dawn_standalone', |
| 40 | }, |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 41 | |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 42 | # Jinja2 and MarkupSafe for the code generator |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 43 | 'third_party/jinja2': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 44 | 'url': '{chromium_git}/chromium/src/third_party/jinja2@b41863e42637544c2941b574c7877d3e1f663e25', |
| 45 | 'condition': 'dawn_standalone', |
| 46 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 47 | 'third_party/markupsafe': { |
Corentin Wallez | 3bb0bb9 | 2018-08-13 17:47:44 +0200 | [diff] [blame] | 48 | 'url': '{chromium_git}/chromium/src/third_party/markupsafe@8f45f5cfa0009d2a70589bcda0349b8cb2b72783', |
| 49 | 'condition': 'dawn_standalone', |
| 50 | }, |
| 51 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 52 | # SPIRV-Cross |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 53 | 'third_party/spirv-cross': { |
Ryan Harrison | 1dbb528 | 2020-01-09 16:09:37 +0000 | [diff] [blame] | 54 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Cross@172e39f0398b920cfc221b7826c92105d44ad647', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 55 | 'condition': 'dawn_standalone', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 56 | }, |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 57 | |
| 58 | # SPIRV compiler dependencies: SPIRV-Tools, SPIRV-headers, glslang and shaderc |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 59 | 'third_party/SPIRV-Tools': { |
Ryan Harrison | 1dbb528 | 2020-01-09 16:09:37 +0000 | [diff] [blame] | 60 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Tools@fb2e819819ef0a23b552326240822b8d657e4d76', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 61 | 'condition': 'dawn_standalone', |
| 62 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 63 | 'third_party/spirv-headers': { |
Ryan Harrison | 39695fd | 2019-11-20 15:43:21 +0000 | [diff] [blame] | 64 | 'url': '{chromium_git}/external/github.com/KhronosGroup/SPIRV-Headers@204cd131c42b90d129073719f2766293ce35c081', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 65 | 'condition': 'dawn_standalone', |
| 66 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 67 | 'third_party/glslang': { |
Ryan Harrison | 1dbb528 | 2020-01-09 16:09:37 +0000 | [diff] [blame] | 68 | 'url': '{chromium_git}/external/github.com/KhronosGroup/glslang@51813670627c976a93f4cfbea6fa89fdb4d35cad', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 69 | 'condition': 'dawn_standalone', |
| 70 | }, |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 71 | 'third_party/shaderc': { |
Ryan Harrison | 1dbb528 | 2020-01-09 16:09:37 +0000 | [diff] [blame] | 72 | 'url': '{chromium_git}/external/github.com/google/shaderc@0b9a2992c73d41debe4924d9f39260f773b5840a', |
Corentin Wallez | 649e2fe | 2018-08-03 15:57:43 +0200 | [diff] [blame] | 73 | 'condition': 'dawn_standalone', |
| 74 | }, |
| 75 | |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 76 | # GLFW for tests and samples |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 77 | 'third_party/glfw': { |
Corentin Wallez | 391c8a9 | 2018-11-19 10:21:23 +0000 | [diff] [blame] | 78 | 'url': '{chromium_git}/external/github.com/glfw/glfw@2de2589f910b1a85905f425be4d32f33cec092df', |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 79 | 'condition': 'dawn_standalone', |
| 80 | }, |
| 81 | |
Austin Eng | f3f5bf4 | 2019-05-18 03:14:46 +0000 | [diff] [blame] | 82 | # Dependencies for samples: GLM |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 83 | 'third_party/glm': { |
Corentin Wallez | 4d7d169 | 2018-08-13 08:23:27 +0200 | [diff] [blame] | 84 | 'url': '{github_git}/g-truc/glm.git@06f084063fd6d9aa2ef6904517650700ae47b63d', |
| 85 | 'condition': 'dawn_standalone', |
| 86 | }, |
Corentin Wallez | 4c35101 | 2018-08-27 10:10:28 +0200 | [diff] [blame] | 87 | |
| 88 | # Our own pre-compiled Linux clang-format 7.0 for presubmit |
| 89 | 'third_party/clang-format': { |
| 90 | 'url': '{dawn_git}/clang-format@2451c56cd368676cdb230fd5ad11731ab859f1a3', |
| 91 | 'condition': 'dawn_standalone and checkout_linux', |
| 92 | }, |
Li, Hao | 0e1bef3 | 2019-11-07 12:13:27 +0000 | [diff] [blame] | 93 | |
| 94 | # Khronos Vulkan-Headers |
| 95 | 'third_party/vulkan-headers': { |
| 96 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-Headers@5b44df19e040fca0048ab30c553a8c2d2cb9623e', |
| 97 | 'condition': 'dawn_standalone', |
| 98 | }, |
| 99 | |
| 100 | # Khronos Vulkan-ValidationLayers |
| 101 | 'third_party/vulkan-validation-layers': { |
| 102 | 'url': '{chromium_git}/external/github.com/KhronosGroup/Vulkan-ValidationLayers@9fba37afae13a11bd49ae942bf82e5bf1098e381', |
| 103 | 'condition': 'dawn_standalone', |
| 104 | }, |
Corentin Wallez | 74cebd6 | 2019-11-26 18:21:51 +0000 | [diff] [blame] | 105 | |
| 106 | 'third_party/swiftshader': { |
| 107 | 'url': '{swiftshader_git}/SwiftShader@e7ce4e53915d026720005ca2c1831a5c28f77b3f', |
| 108 | 'condition': 'dawn_standalone', |
| 109 | }, |
| 110 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 111 | } |
| 112 | |
| 113 | hooks = [ |
| 114 | # Pull clang-format binaries using checked-in hashes. |
| 115 | { |
| 116 | 'name': 'clang_format_win', |
| 117 | 'pattern': '.', |
| 118 | 'condition': 'host_os == "win" and dawn_standalone', |
| 119 | 'action': [ 'download_from_google_storage', |
| 120 | '--no_resume', |
| 121 | '--platform=win32', |
| 122 | '--no_auth', |
| 123 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 124 | '-s', 'buildtools/win/clang-format.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 125 | ], |
| 126 | }, |
| 127 | { |
| 128 | 'name': 'clang_format_mac', |
| 129 | 'pattern': '.', |
| 130 | 'condition': 'host_os == "mac" and dawn_standalone', |
| 131 | 'action': [ 'download_from_google_storage', |
| 132 | '--no_resume', |
| 133 | '--platform=darwin', |
| 134 | '--no_auth', |
| 135 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 136 | '-s', 'buildtools/mac/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 137 | ], |
| 138 | }, |
| 139 | { |
| 140 | 'name': 'clang_format_linux', |
| 141 | 'pattern': '.', |
| 142 | 'condition': 'host_os == "linux" and dawn_standalone', |
| 143 | 'action': [ 'download_from_google_storage', |
| 144 | '--no_resume', |
| 145 | '--platform=linux*', |
| 146 | '--no_auth', |
| 147 | '--bucket', 'chromium-clang-format', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 148 | '-s', 'buildtools/linux64/clang-format.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 149 | ], |
| 150 | }, |
| 151 | |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 152 | # Pull the compilers and system libraries for hermetic builds |
| 153 | { |
| 154 | 'name': 'sysroot_x86', |
| 155 | 'pattern': '.', |
| 156 | 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64) and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 157 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 158 | '--arch=x86'], |
| 159 | }, |
| 160 | { |
| 161 | 'name': 'sysroot_x64', |
| 162 | 'pattern': '.', |
| 163 | 'condition': 'checkout_linux and (checkout_x64 and dawn_standalone)', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 164 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 165 | '--arch=x64'], |
| 166 | }, |
| 167 | { |
Corentin Wallez | 682c44a | 2018-08-13 17:48:16 +0200 | [diff] [blame] | 168 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 169 | 'name': 'win_toolchain', |
| 170 | 'pattern': '.', |
| 171 | 'condition': 'checkout_win and dawn_standalone', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 172 | 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 173 | }, |
| 174 | { |
| 175 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 176 | 'name': 'clang', |
| 177 | 'pattern': '.', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 178 | 'action': ['python', 'tools/clang/scripts/update.py'], |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 179 | 'condition': 'dawn_standalone', |
| 180 | }, |
| 181 | { |
| 182 | # Pull rc binaries using checked-in hashes. |
| 183 | 'name': 'rc_win', |
| 184 | 'pattern': '.', |
| 185 | 'condition': 'checkout_win and (host_os == "win" and dawn_standalone)', |
| 186 | 'action': [ 'download_from_google_storage', |
| 187 | '--no_resume', |
| 188 | '--no_auth', |
| 189 | '--bucket', 'chromium-browser-clang/rc', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 190 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 191 | ], |
| 192 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 193 | # Pull binutils for linux hermetic builds |
| 194 | { |
| 195 | 'name': 'binutils', |
| 196 | 'pattern': 'src/third_party/binutils', |
| 197 | 'condition': 'host_os == "linux"', |
| 198 | 'action': [ |
| 199 | 'python', |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 200 | 'third_party/binutils/download.py', |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 201 | ], |
| 202 | }, |
Corentin Wallez | 15d8cb7 | 2018-11-19 10:13:31 +0000 | [diff] [blame] | 203 | # Update build/util/LASTCHANGE. |
| 204 | { |
| 205 | 'name': 'lastchange', |
| 206 | 'pattern': '.', |
| 207 | 'action': ['python', 'build/util/lastchange.py', |
| 208 | '-o', 'build/util/LASTCHANGE'], |
| 209 | }, |
Corentin Wallez | ca81bd3 | 2018-09-03 11:55:58 +0200 | [diff] [blame] | 210 | ] |
| 211 | |
| 212 | recursedeps = [ |
| 213 | # buildtools provides clang_format, libc++, and libc++abi |
Corentin Wallez | 1a0596d | 2018-09-10 15:16:10 +0200 | [diff] [blame] | 214 | 'buildtools', |
Corentin Wallez | 21a2385 | 2018-07-31 18:50:03 +0200 | [diff] [blame] | 215 | ] |