935121bd41
BUG=skia:4269 CQ_EXTRA_TRYBOTS=client.skia.compile:Build-Mac10.9-Clang-x86_64-Release-CMake-Trybot,Build-Ubuntu-GCC-x86_64-Release-CMake-Trybot NOTREECHECKS=true Review URL: https://codereview.chromium.org/1344843002
39 lines
898 B
Bash
Executable File
39 lines
898 B
Bash
Executable File
#!/bin/bash
|
|
# 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 with CMake on Skia build bots.
|
|
# If you have CMake installed on your system, you can just use it normally.
|
|
|
|
set -e
|
|
set -x
|
|
|
|
fulldir() {
|
|
cd `dirname $1`
|
|
echo `pwd`
|
|
}
|
|
|
|
here=`fulldir $0`
|
|
cores=32
|
|
|
|
if [[ -z "$BUILDTYPE" || -z "$SKIA_OUT" ]]; then
|
|
echo "If you're a bot, you should be setting BUILDTYPE ($BUILDTYPE) and SKIA_OUT ($SKIA_OUT)."
|
|
echo "If you're not a bot, you don't want to run this script."
|
|
exit 1
|
|
fi
|
|
|
|
echo "Bootstrapping CMake"
|
|
pushd $here/../third_party/externals/cmake
|
|
./bootstrap --parallel=$cores
|
|
make -j $cores
|
|
popd
|
|
|
|
echo "Building with bootstrapped CMake"
|
|
mkdir -p $SKIA_OUT
|
|
pushd $SKIA_OUT
|
|
$here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE $here -G Ninja
|
|
ninja
|
|
popd
|