Debian Codegraph @

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

raw
1 #!/bin/bash
2 # Copyright 2019 Google LLC
3 #
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # This assumes it is being run inside a docker container with the following
8 # mounts:
9 # /SRC: Swarming start dir
10 # /OUT: output directory for gn and ninja
11
12 set -e
13 set -x
14
15 export PATH="/SRC/cipd_bin_packages/cpython3/bin:/SRC/recipe_bundle/depot_tools:${PATH}"
16
17 env
18
19 cd /SRC/skia
20 ./bin/fetch-ninja
21 ./bin/fetch-gn
22 ./bin/gn gen /OUT "--args=$1"
23 ./third_party/ninja/ninja -C /OUT
24
25 chmod -R 0777 /OUT/*