blob: 23ca99236d39114dcb5651262929b84c31641828 [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'
Ryan Harrison7b819aa2020-07-07 19:11:07 +00004
Dan Sinclair6e581892020-03-02 15:47:43 -05005vars = {
Dan Sinclaire631c002020-03-04 14:15:39 +00006 'chromium_git': 'https://chromium.googlesource.com',
7 'github': '/external/github.com',
Dan Sinclair6e581892020-03-02 15:47:43 -05008
Ryan Harrison11eda3c2020-08-31 19:16:04 +00009 'build_revision': 'b1d8cdddd35b2ccf16a4945748b1661b19201785',
Ryan Harrison4641d762020-08-24 17:28:37 +000010 'buildtools_revision': 'ff93f3ea1a7f033d3caf8f60ec1937cc71351419',
Ryan Harrison11eda3c2020-08-31 19:16:04 +000011 'clang_revision': 'fcef86e30a0ab061b982b5c9d91bb060df8f5269',
Dan Sinclaire631c002020-03-04 14:15:39 +000012 'cpplint_revision': '305ac8725a166ed42e3f5dd3f80d6de2cf840ef1',
David Neto66794ea2020-11-25 21:13:17 +000013 'googletest_revision': 'b1fbd33c06cdb0024c67733c6fdec2009d17b384',
14 'gpuweb_cts_revision': 'abe6e1dd262d96749966027fdf20eb4a34710ba1',
15 'spirv_headers_revision': '104ecc356c1bea4476320faca64440cd1df655a3',
16 'spirv_tools_revision': '2c458414c0851b9a0d1b0493857b56a1089847ac',
Ryan Harrison11eda3c2020-08-31 19:16:04 +000017 'testing_revision': '2691851e49de541c3fe42fa8692ddcdee938162f',
Dan Sinclair6e581892020-03-02 15:47:43 -050018}
19
20deps = {
Dan Sinclaire631c002020-03-04 14:15:39 +000021 'third_party/cpplint': Var('chromium_git') + Var('github') +
22 '/google/styleguide.git@' + Var('cpplint_revision'),
Dan Sinclair6e581892020-03-02 15:47:43 -050023
dan sinclair429aa812020-07-23 15:01:37 +000024 'third_party/gpuweb-cts': Var('chromium_git') + Var('github') +
25 '/gpuweb/cts.git@' + Var('gpuweb_cts_revision'),
26
Dan Sinclaire631c002020-03-04 14:15:39 +000027 'third_party/spirv-headers': Var('chromium_git') + Var('github') +
28 '/KhronosGroup/SPIRV-Headers.git@' + Var('spirv_headers_revision'),
Dan Sinclair6e581892020-03-02 15:47:43 -050029
Dan Sinclaire631c002020-03-04 14:15:39 +000030 'third_party/spirv-tools': Var('chromium_git') + Var('github') +
31 '/KhronosGroup//SPIRV-Tools.git@' + Var('spirv_tools_revision'),
Ryan Harrison29628882020-04-08 20:40:25 +000032
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 Harrison0a196c12020-04-17 13:18:20 +000043 # 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 Sinclair6e581892020-03-02 15:47:43 -050049}
Ryan Harrison29628882020-04-08 20:40:25 +000050
51hooks = [
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 Harrison2733c262020-11-16 21:11:19 +0000106 # 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 Harrison29628882020-04-08 20:40:25 +0000113 # 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 Harrison29628882020-04-08 20:40:25 +0000137 # 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
146recursedeps = [
147 # buildtools provides clang_format, libc++, and libc++abi
148 'buildtools',
149]