Dan Sinclair | 6e58189 | 2020-03-02 15:47:43 -0500 | [diff] [blame] | 1 | use_relative_paths = True |
| 2 | |
Ryan Harrison | 7b819aa | 2020-07-07 19:11:07 +0000 | [diff] [blame] | 3 | gclient_gn_args_file = 'build/config/gclient_args.gni' |
Ryan Harrison | 7b819aa | 2020-07-07 19:11:07 +0000 | [diff] [blame] | 4 | |
Dan Sinclair | 6e58189 | 2020-03-02 15:47:43 -0500 | [diff] [blame] | 5 | vars = { |
Dan Sinclair | e631c00 | 2020-03-04 14:15:39 +0000 | [diff] [blame] | 6 | 'chromium_git': 'https://chromium.googlesource.com', |
| 7 | 'github': '/external/github.com', |
Dan Sinclair | 6e58189 | 2020-03-02 15:47:43 -0500 | [diff] [blame] | 8 | |
Ryan Harrison | 11eda3c | 2020-08-31 19:16:04 +0000 | [diff] [blame] | 9 | 'build_revision': 'b1d8cdddd35b2ccf16a4945748b1661b19201785', |
Ryan Harrison | 4641d76 | 2020-08-24 17:28:37 +0000 | [diff] [blame] | 10 | 'buildtools_revision': 'ff93f3ea1a7f033d3caf8f60ec1937cc71351419', |
Ryan Harrison | 11eda3c | 2020-08-31 19:16:04 +0000 | [diff] [blame] | 11 | 'clang_revision': 'fcef86e30a0ab061b982b5c9d91bb060df8f5269', |
Dan Sinclair | e631c00 | 2020-03-04 14:15:39 +0000 | [diff] [blame] | 12 | 'cpplint_revision': '305ac8725a166ed42e3f5dd3f80d6de2cf840ef1', |
David Neto | 66794ea | 2020-11-25 21:13:17 +0000 | [diff] [blame] | 13 | 'googletest_revision': 'b1fbd33c06cdb0024c67733c6fdec2009d17b384', |
| 14 | 'gpuweb_cts_revision': 'abe6e1dd262d96749966027fdf20eb4a34710ba1', |
| 15 | 'spirv_headers_revision': '104ecc356c1bea4476320faca64440cd1df655a3', |
| 16 | 'spirv_tools_revision': '2c458414c0851b9a0d1b0493857b56a1089847ac', |
Ryan Harrison | 11eda3c | 2020-08-31 19:16:04 +0000 | [diff] [blame] | 17 | 'testing_revision': '2691851e49de541c3fe42fa8692ddcdee938162f', |
Dan Sinclair | 6e58189 | 2020-03-02 15:47:43 -0500 | [diff] [blame] | 18 | } |
| 19 | |
| 20 | deps = { |
Dan Sinclair | e631c00 | 2020-03-04 14:15:39 +0000 | [diff] [blame] | 21 | 'third_party/cpplint': Var('chromium_git') + Var('github') + |
| 22 | '/google/styleguide.git@' + Var('cpplint_revision'), |
Dan Sinclair | 6e58189 | 2020-03-02 15:47:43 -0500 | [diff] [blame] | 23 | |
dan sinclair | 429aa81 | 2020-07-23 15:01:37 +0000 | [diff] [blame] | 24 | 'third_party/gpuweb-cts': Var('chromium_git') + Var('github') + |
| 25 | '/gpuweb/cts.git@' + Var('gpuweb_cts_revision'), |
| 26 | |
Dan Sinclair | e631c00 | 2020-03-04 14:15:39 +0000 | [diff] [blame] | 27 | 'third_party/spirv-headers': Var('chromium_git') + Var('github') + |
| 28 | '/KhronosGroup/SPIRV-Headers.git@' + Var('spirv_headers_revision'), |
Dan Sinclair | 6e58189 | 2020-03-02 15:47:43 -0500 | [diff] [blame] | 29 | |
Dan Sinclair | e631c00 | 2020-03-04 14:15:39 +0000 | [diff] [blame] | 30 | 'third_party/spirv-tools': Var('chromium_git') + Var('github') + |
| 31 | '/KhronosGroup//SPIRV-Tools.git@' + Var('spirv_tools_revision'), |
Ryan Harrison | 2962888 | 2020-04-08 20:40:25 +0000 | [diff] [blame] | 32 | |
| 33 | # Dependencies required to use GN/Clang in standalone |
| 34 | 'build': Var('chromium_git') + '/chromium/src/build@' + |
| 35 | Var('build_revision'), |
| 36 | |
| 37 | 'buildtools': Var('chromium_git') + '/chromium/src/buildtools@' + |
| 38 | Var('buildtools_revision'), |
| 39 | |
| 40 | 'tools/clang': Var('chromium_git') + '/chromium/src/tools/clang@' + |
| 41 | Var('clang_revision'), |
| 42 | |
Ryan Harrison | 0a196c1 | 2020-04-17 13:18:20 +0000 | [diff] [blame] | 43 | # Dependencies required for testing |
| 44 | 'testing': Var('chromium_git') + '/chromium/src/testing@' + |
| 45 | Var('testing_revision'), |
| 46 | |
| 47 | 'third_party/googletest': Var('chromium_git') + Var('github') + |
| 48 | '/google/googletest.git@' + Var('googletest_revision'), |
Dan Sinclair | 6e58189 | 2020-03-02 15:47:43 -0500 | [diff] [blame] | 49 | } |
Ryan Harrison | 2962888 | 2020-04-08 20:40:25 +0000 | [diff] [blame] | 50 | |
| 51 | hooks = [ |
| 52 | # Pull clang-format binaries using checked-in hashes. |
| 53 | { |
| 54 | 'name': 'clang_format_win', |
| 55 | 'pattern': '.', |
| 56 | 'condition': 'host_os == "win"', |
| 57 | 'action': [ 'download_from_google_storage', |
| 58 | '--no_resume', |
| 59 | '--platform=win32', |
| 60 | '--no_auth', |
| 61 | '--bucket', 'chromium-clang-format', |
| 62 | '-s', 'buildtools/win/clang-format.exe.sha1', |
| 63 | ], |
| 64 | }, |
| 65 | { |
| 66 | 'name': 'clang_format_mac', |
| 67 | 'pattern': '.', |
| 68 | 'condition': 'host_os == "mac"', |
| 69 | 'action': [ 'download_from_google_storage', |
| 70 | '--no_resume', |
| 71 | '--platform=darwin', |
| 72 | '--no_auth', |
| 73 | '--bucket', 'chromium-clang-format', |
| 74 | '-s', 'buildtools/mac/clang-format.sha1', |
| 75 | ], |
| 76 | }, |
| 77 | { |
| 78 | 'name': 'clang_format_linux', |
| 79 | 'pattern': '.', |
| 80 | 'condition': 'host_os == "linux"', |
| 81 | 'action': [ 'download_from_google_storage', |
| 82 | '--no_resume', |
| 83 | '--platform=linux*', |
| 84 | '--no_auth', |
| 85 | '--bucket', 'chromium-clang-format', |
| 86 | '-s', 'buildtools/linux64/clang-format.sha1', |
| 87 | ], |
| 88 | }, |
| 89 | |
| 90 | # Pull the compilers and system libraries for hermetic builds |
| 91 | { |
| 92 | 'name': 'sysroot_x86', |
| 93 | 'pattern': '.', |
| 94 | 'condition': 'checkout_linux and ((checkout_x86 or checkout_x64))', |
| 95 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
| 96 | '--arch=x86'], |
| 97 | }, |
| 98 | { |
| 99 | 'name': 'sysroot_x64', |
| 100 | 'pattern': '.', |
| 101 | 'condition': 'checkout_linux and (checkout_x64)', |
| 102 | 'action': ['python', 'build/linux/sysroot_scripts/install-sysroot.py', |
| 103 | '--arch=x64'], |
| 104 | }, |
| 105 | { |
Ryan Harrison | 2733c26 | 2020-11-16 21:11:19 +0000 | [diff] [blame] | 106 | # Update the Mac toolchain if necessary. |
| 107 | 'name': 'mac_toolchain', |
| 108 | 'pattern': '.', |
| 109 | 'condition': 'checkout_mac', |
| 110 | 'action': ['python', 'build/mac_toolchain.py'], |
| 111 | }, |
| 112 | { |
Ryan Harrison | 2962888 | 2020-04-08 20:40:25 +0000 | [diff] [blame] | 113 | # Update the Windows toolchain if necessary. Must run before 'clang' below. |
| 114 | 'name': 'win_toolchain', |
| 115 | 'pattern': '.', |
| 116 | 'condition': 'checkout_win', |
| 117 | 'action': ['python', 'build/vs_toolchain.py', 'update', '--force'], |
| 118 | }, |
| 119 | { |
| 120 | # Note: On Win, this should run after win_toolchain, as it may use it. |
| 121 | 'name': 'clang', |
| 122 | 'pattern': '.', |
| 123 | 'action': ['python', 'tools/clang/scripts/update.py'], |
| 124 | }, |
| 125 | { |
| 126 | # Pull rc binaries using checked-in hashes. |
| 127 | 'name': 'rc_win', |
| 128 | 'pattern': '.', |
| 129 | 'condition': 'checkout_win and (host_os == "win")', |
| 130 | 'action': [ 'download_from_google_storage', |
| 131 | '--no_resume', |
| 132 | '--no_auth', |
| 133 | '--bucket', 'chromium-browser-clang/rc', |
| 134 | '-s', 'build/toolchain/win/rc/win/rc.exe.sha1', |
| 135 | ], |
| 136 | }, |
Ryan Harrison | 2962888 | 2020-04-08 20:40:25 +0000 | [diff] [blame] | 137 | # Update build/util/LASTCHANGE. |
| 138 | { |
| 139 | 'name': 'lastchange', |
| 140 | 'pattern': '.', |
| 141 | 'action': ['python', 'build/util/lastchange.py', |
| 142 | '-o', 'build/util/LASTCHANGE'], |
| 143 | }, |
| 144 | ] |
| 145 | |
| 146 | recursedeps = [ |
| 147 | # buildtools provides clang_format, libc++, and libc++abi |
| 148 | 'buildtools', |
| 149 | ] |