5DOCKER_IMAGE =
'gcr.io/skia-public/emsdk-base:3.1.26_v2'
6INNER_BUILD_SCRIPT =
'/SRC/skia/infra/pathkit/build_pathkit.sh'
9 out_dir = api.vars.cache_dir.join(
'docker',
'pathkit')
10 configuration = api.vars.builder_cfg.get(
'configuration',
'')
11 target_arch = api.vars.builder_cfg.get(
'target_arch',
'')
18 api.file.ensure_directory(
'mkdirs out_dir', out_dir, mode=0o777)
30 cmd = [
'docker',
'run',
'--rm',
'--volume',
'%s:/SRC' % checkout_root,
31 '--volume',
'%s:/OUT' % out_dir,
32 DOCKER_IMAGE, INNER_BUILD_SCRIPT]
33 if configuration ==
'Debug':
35 if target_arch ==
'asmjs':
38 env = {
'DOCKER_CONFIG':
'/home/chrome-bot/.docker'}
42 'Build PathKit with Docker',
46PATHKIT_BUILD_PRODUCTS = [
52 out_dir = api.vars.cache_dir.join(
'docker',
'pathkit')
60 script = api.build.resource(
'copy_build_products_no_delete.py')
62 name=
'copy wasm output',
63 cmd=[
'python3', script, out_dir, dst,
','.
join(PATHKIT_BUILD_PRODUCTS)],
def compile_fn(api, checkout_root, _ignore)
def copy_build_products(api, _ignore, dst)
static SkString join(const CommandLineFlags::StringArray &)