2015-12-10 15:52:45 +00:00
|
|
|
#!/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
|
|
|
|
|
2016-04-18 18:50:07 +00:00
|
|
|
cd "$(dirname "$0")"
|
|
|
|
fiddle_dir="$PWD"
|
|
|
|
cd "../.."
|
2015-12-10 15:52:45 +00:00
|
|
|
skia_dir="$PWD"
|
|
|
|
|
2016-03-25 18:29:34 +00:00
|
|
|
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
|
2015-12-10 15:52:45 +00:00
|
|
|
|
2016-03-25 18:29:34 +00:00
|
|
|
echo "Building Skia and Fiddle"
|
2016-04-18 18:50:07 +00:00
|
|
|
cd "$fiddle_dir"
|
2016-04-18 15:17:56 +00:00
|
|
|
git clean -fxd .
|
2015-12-10 15:52:45 +00:00
|
|
|
go build fiddler.go
|
|
|
|
./fiddler "$skia_dir"
|
|
|
|
./fiddler "$skia_dir" draw.cpp > /dev/null
|
|
|
|
|
|
|
|
echo "cleaning up"
|
2016-04-18 15:17:56 +00:00
|
|
|
git clean -fxd .
|