7DOCKER_IMAGE =
'gcr.io/skia-public/cmake-release:3.13.4_v4'
8INNER_BUILD_SCRIPT =
'/SRC/skia/infra/cmake/build_skia.sh'
12 out_dir = api.vars.cache_dir.join(
'docker',
'cmake')
13 configuration = api.vars.builder_cfg.get(
'configuration',
'')
14 if configuration !=
'Release':
17 raise 'Only Release mode supported for CMake'
24 api.file.ensure_directory(
'mkdirs out_dir', out_dir, mode=0o777)
34 cmd = [
'docker',
'run',
'--rm',
'--volume',
'%s:/SRC' % checkout_root,
35 '--volume',
'%s:/OUT' % out_dir,
36 DOCKER_IMAGE, INNER_BUILD_SCRIPT]
41 env = {
'DOCKER_CONFIG':
'/home/chrome-bot/.docker'}
45 'Build Skia using CMake in Docker',
49 util.copy_listed_files(api, src, dst, util.DEFAULT_BUILD_PRODUCTS)
def copy_build_products(api, src, dst)
def compile_fn(api, checkout_root, _ignore)