Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: cmake/cmake_build

Issue 1916773002: Use BUILD_TYPE in cmake_build (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Revert Makefile changes Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 set -x 11 set -x
12 12
13 here=$(cd `dirname $0`; echo `pwd`) 13 here=$(cd `dirname $0`; echo `pwd`)
14 cores=32 14 cores=32
15 15
16 if [[ -z "$BUILDTYPE" || -z "$SKIA_OUT" ]]; then 16 if [[ -z "$BUILDTYPE" || -z "$SKIA_OUT" ]]; then
17 echo "If you're a bot, you should be setting BUILDTYPE ($BUILDTYPE) and SKIA _OUT ($SKIA_OUT)." 17 echo "If you're a bot, you should be setting BUILDTYPE ($BUILDTYPE) and SKIA _OUT ($SKIA_OUT)."
18 echo "If you're not a bot, you don't want to run this script." 18 echo "If you're not a bot, you don't want to run this script."
19 exit 1 19 exit 1
20 fi 20 fi
21 21
22 echo "Bootstrapping CMake" 22 echo "Bootstrapping CMake"
23 pushd $here/../third_party/externals/cmake 23 pushd $here/../third_party/externals/cmake
24 ./bootstrap --parallel=$cores 24 ./bootstrap --parallel=$cores
25 make -j $cores cmake 25 make -j $cores cmake
26 popd 26 popd
27 27
28 echo "Building with bootstrapped CMake" 28 echo "Building with bootstrapped CMake"
29 mkdir -p $SKIA_OUT 29 mkdir -p $SKIA_OUT/$BUILDTYPE
30 pushd $SKIA_OUT 30 pushd $SKIA_OUT/$BUILDTYPE
borenet 2016/04/25 12:30:50 Note: most bots write to out/$BUILDERNAME/$BUILDTY
rmistry 2016/04/25 12:34:25 When called from the non-swarming bot it was writi
31 $here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE $he re -G Ninja 31 $here/../third_party/externals/cmake/bin/cmake -DCMAKE_BUILD_TYPE=$BUILDTYPE $he re -G Ninja
32 ninja 32 ninja
33 popd 33 popd
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698