OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # Copyright 2015 Google Inc. | 2 # Copyright 2015 Google Inc. |
3 # | 3 # |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # Script for building with CMake on Skia build bots. | 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. | 8 # If you have CMake installed on your system, you can just use it normally. |
9 | 9 |
10 set -e | 10 set -e |
(...skipping 16 matching lines...) Expand all Loading... |
27 echo "Bootstrapping CMake" | 27 echo "Bootstrapping CMake" |
28 pushd $here/../third_party/externals/cmake | 28 pushd $here/../third_party/externals/cmake |
29 ./bootstrap --parallel=$cores | 29 ./bootstrap --parallel=$cores |
30 make -j $cores | 30 make -j $cores |
31 popd | 31 popd |
32 | 32 |
33 echo "Building with bootstrapped CMake" | 33 echo "Building with bootstrapped CMake" |
34 mkdir -p $SKIA_OUT | 34 mkdir -p $SKIA_OUT |
35 pushd $SKIA_OUT | 35 pushd $SKIA_OUT |
36 $here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE $he
re -G Ninja | 36 $here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE $he
re -G Ninja |
37 ninja skia # The default also builds `example`, which I'm leaving a TODO for no
w. | 37 ninja |
38 popd | 38 popd |
OLD | NEW |