blob: ef0195fd14ae09322ffa065c48ddad026f9e3a51 [file] [log] [blame]
Dan Sinclair6e581892020-03-02 15:47:43 -05001use_relative_paths = True
2
Ryan Harrison7b819aa2020-07-07 19:11:07 +00003gclient_gn_args_file = 'build/config/gclient_args.gni'
4gclient_gn_args = [
5 'mac_xcode_version',
6]
7
Dan Sinclair6e581892020-03-02 15:47:43 -05008vars = {
Ryan Harrison7b819aa2020-07-07 19:11:07 +00009 # 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 Sinclaire631c002020-03-04 14:15:39 +000014 'chromium_git': 'https://chromium.googlesource.com',
15 'github': '/external/github.com',
Dan Sinclair6e581892020-03-02 15:47:43 -050016
Ryan Harrison11eda3c2020-08-31 19:16:04 +000017 'build_revision': 'b1d8cdddd35b2ccf16a4945748b1661b19201785',
Ryan Harrison4641d762020-08-24 17:28:37 +000018 'buildtools_revision': 'ff93f3ea1a7f033d3caf8f60ec1937cc71351419',
Ryan Harrison11eda3c2020-08-31 19:16:04 +000019 'clang_revision': 'fcef86e30a0ab061b982b5c9d91bb060df8f5269',
Dan Sinclaire631c002020-03-04 14:15:39 +000020 'cpplint_revision': '305ac8725a166ed42e3f5dd3f80d6de2cf840ef1',
Ryan Harrison11eda3c2020-08-31 19:16:04 +000021 'googletest_revision': 'df6b75949b1efab7606ba60c0f0a0125ac95c5af',
dan sinclair429aa812020-07-23 15:01:37 +000022 'gpuweb_cts_revision': '40e337a38784ad72fa5c7b9afd1b9c358a9e0f1a',
Ryan Harrisonf18d7372020-08-04 17:56:27 +000023 'spirv_headers_revision': '3fdabd0da2932c276b25b9b4a988ba134eba1aa6',
Ryan Harrison11eda3c2020-08-31 19:16:04 +000024 'spirv_tools_revision': '8a0ebd40f86d1f18ad42ea96c6ac53915076c3c7',
25 'testing_revision': '2691851e49de541c3fe42fa8692ddcdee938162f',
Dan Sinclair6e581892020-03-02 15:47:43 -050026}
27
28deps = {
Dan Sinclaire631c002020-03-04 14:15:39 +000029 'third_party/cpplint': Var('chromium_git') + Var('github') +
30 '/google/styleguide.git@' + Var('cpplint_revision'),
Dan Sinclair6e581892020-03-02 15:47:43 -050031
dan sinclair429aa812020-07-23 15:01:37 +000032 'third_party/gpuweb-cts': Var('chromium_git') + Var('github') +
33 '/gpuweb/cts.git@' + Var('gpuweb_cts_revision'),
34
Dan Sinclaire631c002020-03-04 14:15:39 +000035 'third_party/spirv-headers': Var('chromium_git') + Var('github') +
36 '/KhronosGroup/SPIRV-Headers.git@' + Var('spirv_headers_revision'),
Dan Sinclair6e581892020-03-02 15:47:43 -050037
Dan Sinclaire631c002020-03-04 14:15:39 +000038 'third_party/spirv-tools': Var('chromium_git') + Var('github') +
39 '/KhronosGroup//SPIRV-Tools.git@' + Var('spirv_tools_revision'),
Ryan Harrison29628882020-04-08 20:40:25 +000040
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 Harrison0a196c12020-04-17 13:18:20 +000051 # 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 Sinclair6e581892020-03-02 15:47:43 -050057}
Ryan Harrison29628882020-04-08 20:40:25 +000058
59hooks = [
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 Harrison29628882020-04-08 20:40:25 +0000138 # 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
147recursedeps = [
148 # buildtools provides clang_format, libc++, and libc++abi
149 'buildtools',
150]