aboutsummaryrefslogtreecommitdiffhomepage
path: root/experimental/fiddle/fiddle_test
blob: c95ac7f2349fb8fea96d57fe9055e15932d57fee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
# Copyright 2015 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Script for building Fiddle build bots.

set -e
set -x

cd "$(dirname "$0")/../.."
skia_dir="$PWD"

if ! command -v cmake > /dev/null 2>&1 ; then
    cores=32
    echo "Bootstrapping CMake"
    cmake_dir="${skia_dir}/third_party/externals/cmake"
    cd "$cmake_dir"
    ./bootstrap --parallel=$cores
    make -j $cores cmake
    export PATH="${cmake_dir}/bin:${PATH}"
fi

echo "Building Skia and Fiddle"
cd "${skia_dir}/experimental/fiddle"
git clean -fxd .
go build fiddler.go
./fiddler "$skia_dir"
./fiddler "$skia_dir" draw.cpp > /dev/null

echo "cleaning up"
git clean -fxd .