blob: 2ff7a9c541bf5895c309358b8313f6d12612f4e1 [file] [log] [blame]
mtkleina22eabe2015-09-14 10:02:50 -07001#!/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 with CMake on Skia build bots.
8# If you have CMake installed on your system, you can just use it normally.
9
10set -e
11set -x
12
13here=`dirname $0`
14cores=32
15
16echo "Bootstrapping CMake"
17pushd $here/../third_party/externals/cmake
18./bootstrap --parallel=$cores
19make -j $cores
20popd
21
22echo "Building with bootstrapped CMake"
23pushd $here
24../third_party/externals/cmake/bin/cmake . -G Ninja
25ninja skia # The default also builds `example`, which I'm leaving a TODO for now.
26popd