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