skia2/infra/bots/recipe_modules/build/resources/docker-compile.sh

21 lines
444 B
Bash
Raw Normal View History

#!/bin/bash
# Copyright 2019 Google LLC
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# This assumes it is being run inside a docker container with the following
# mounts:
# /SRC: Swarming start dir
# /OUT: output directory for gn and ninja
set -e
set -x
export PATH="/SRC/recipe_bundle/depot_tools:${PATH}"
cd /SRC/skia
./bin/fetch-gn
./bin/gn gen /OUT "--args=$1"
ninja -C /OUT