blob: c19914248b7d2b4de8d16fa886c8c19014d14b33 [file] [log] [blame]
halcanarydecb21e2015-12-10 07:52:45 -08001#!/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"
halcanarydecb21e2015-12-10 07:52:45 -080014
halcanaryd0964592016-03-25 11:29:34 -070015if ! command -v cmake > /dev/null 2>&1 ; then
16 cores=32
17 echo "Bootstrapping CMake"
18 cmake_dir="${skia_dir}/third_party/externals/cmake"
19 cd "$cmake_dir"
20 ./bootstrap --parallel=$cores
21 make -j $cores cmake
22 export PATH="${cmake_dir}/bin:${PATH}"
23fi
halcanarydecb21e2015-12-10 07:52:45 -080024
halcanaryd0964592016-03-25 11:29:34 -070025echo "Building Skia and Fiddle"
halcanarydecb21e2015-12-10 07:52:45 -080026cd "${skia_dir}/experimental/fiddle"
halcanarydecb21e2015-12-10 07:52:45 -080027go build fiddler.go
28./fiddler "$skia_dir"
29./fiddler "$skia_dir" draw.cpp > /dev/null
30
31echo "cleaning up"
32cd "$skia_dir"
33git clean -fxd cmake experimental/fiddle