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