1cb93a386Sopenharmony_ci#!/bin/bash 2cb93a386Sopenharmony_ci# Copyright 2020 Google LLC 3cb93a386Sopenharmony_ci# 4cb93a386Sopenharmony_ci# Use of this source code is governed by a BSD-style license that can be 5cb93a386Sopenharmony_ci# found in the LICENSE file. 6cb93a386Sopenharmony_ci 7cb93a386Sopenharmony_ci# This assumes it is being run inside a docker container with the following 8cb93a386Sopenharmony_ci# mounts: 9cb93a386Sopenharmony_ci# /SRC: Swarming start dir 10cb93a386Sopenharmony_ci# /OUT: output directory for gn and ninja 11cb93a386Sopenharmony_ci 12cb93a386Sopenharmony_ciset -e 13cb93a386Sopenharmony_ciset -x 14cb93a386Sopenharmony_ci 15cb93a386Sopenharmony_ciexport PATH="/SRC/recipe_bundle/depot_tools:${PATH}" 16cb93a386Sopenharmony_ci 17cb93a386Sopenharmony_cicd /SRC/skia 18cb93a386Sopenharmony_ci./bin/fetch-gn 19cb93a386Sopenharmony_ci./bin/gn gen /OUT "--args=$1" 20cb93a386Sopenharmony_cininja -C /OUT nanobench dm 21