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