1#!/bin/sh 2# Copyright 2015 Google Inc. 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# Script for building Fiddle build bots. 8 9set -e 10set -x 11 12cd "$(dirname "$0")/../.." 13skia_dir="$PWD" 14cores=32 15 16echo "Bootstrapping CMake" 17cmake_dir="${skia_dir}/third_party/externals/cmake" 18cd "$cmake_dir" 19./bootstrap --parallel=$cores 20make -j $cores cmake 21 22echo "Building fiddle bootstrapped CMake" 23cd "${skia_dir}/experimental/fiddle" 24export PATH="${cmake_dir}/bin:${PATH}" 25go build fiddler.go 26./fiddler "$skia_dir" 27./fiddler "$skia_dir" draw.cpp > /dev/null 28 29echo "cleaning up" 30cd "$skia_dir" 31git clean -fxd cmake experimental/fiddle 32