aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-09-14 10:02:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-09-14 10:02:50 -0700
commita22eabedef0cc1256f8c60e58e7a1cbd0bd1db9b (patch)
treea0a3a5808325b4372ab858ed6c7c38ce7a3bdc63 /cmake
parent3a100d3e4de7a640d558352c544724801ab842f3 (diff)
CMake bot script
- Add CMake v3.3.1 (latest) to DEPS. - Add cmake/bot-cmake.sh to bootstrap CMake then build Skia using that. Works on my Mac and Linux box, both with no system CMake installation. CMake will be ~100M on disk. The first bootstrap takes a couple minutes, and a no-op re-run of bot-cmake.sh takes 15-20 seconds. I thought about having bot-cmake.sh fetch CMake instead of DEPS, but I'm not sure I can handle updates, etc. as robustly as it can. This will only work on Linux and Mac. CMake requires an older CMake on Windows. It doesn't have an equivalent ./bootstrap there. Will have to think about how Windows bots will work! BUG=skia:4269 Review URL: https://codereview.chromium.org/1339603003
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/cmake_build26
1 files changed, 26 insertions, 0 deletions
diff --git a/cmake/cmake_build b/cmake/cmake_build
new file mode 100755
index 0000000000..2ff7a9c541
--- /dev/null
+++ b/cmake/cmake_build
@@ -0,0 +1,26 @@
+#!/bin/sh
+# 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
+
+here=`dirname $0`
+cores=32
+
+echo "Bootstrapping CMake"
+pushd $here/../third_party/externals/cmake
+./bootstrap --parallel=$cores
+make -j $cores
+popd
+
+echo "Building with bootstrapped CMake"
+pushd $here
+../third_party/externals/cmake/bin/cmake . -G Ninja
+ninja skia # The default also builds `example`, which I'm leaving a TODO for now.
+popd