Chromium Code Reviews| Index: cmake/cmake_build |
| diff --git a/cmake/cmake_build b/cmake/cmake_build |
| index 2ff7a9c541bf5895c309358b8313f6d12612f4e1..983b1e8520d1130fe2f216c1a30a39977f4a8b39 100755 |
| --- a/cmake/cmake_build |
| +++ b/cmake/cmake_build |
| @@ -10,9 +10,17 @@ |
| set -e |
| set -x |
| -here=`dirname $0` |
| +fulldir() { |
| + cd `dirname $1` |
| + echo `pwd` |
| +} |
| + |
| +here=`fulldir $0` |
| cores=32 |
| +type=${BUILDTYPE:-"Release"} |
| +out=${SKIA_OUT:-$here} |
|
borenet
2015/09/14 18:16:00
I think "out" is a better default.
|
| + |
| echo "Bootstrapping CMake" |
| pushd $here/../third_party/externals/cmake |
| ./bootstrap --parallel=$cores |
| @@ -20,7 +28,8 @@ make -j $cores |
| popd |
| echo "Building with bootstrapped CMake" |
| -pushd $here |
| -../third_party/externals/cmake/bin/cmake . -G Ninja |
| +mkdir -p $out |
| +pushd $out |
| +$here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$type $here -G Ninja |
|
borenet
2015/09/14 18:16:00
What's the second $here used for? Should it be $o
|
| ninja skia # The default also builds `example`, which I'm leaving a TODO for now. |
| popd |