12 out_dir = api.vars.cache_dir.join('docker', 'cmake')
13 configuration = api.vars.builder_cfg.get('configuration', '')
14 if configuration != 'Release':
15
16
17 raise 'Only Release mode supported for CMake'
18
19
20
21
22
23
24 api.file.ensure_directory('mkdirs out_dir', out_dir, mode=0o777)
25
26
27
28
29
30
31
32
33
34 cmd = ['docker', 'run', '--rm', '--volume', '%s:/SRC' % checkout_root,
35 '--volume', '%s:/OUT' % out_dir,
36 DOCKER_IMAGE, INNER_BUILD_SCRIPT]
37
38
39
40
41 env = {'DOCKER_CONFIG': '/home/chrome-bot/.docker'}
42 with api.env(env):
43 api.run(
44 api.step,
45 'Build Skia using CMake in Docker',
46 cmd=cmd)
47
def compile_fn(api, checkout_root, _ignore)