aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/flavor/cmake_flavor.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra/bots/flavor/cmake_flavor.py')
-rw-r--r--infra/bots/flavor/cmake_flavor.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/infra/bots/flavor/cmake_flavor.py b/infra/bots/flavor/cmake_flavor.py
new file mode 100644
index 0000000000..cfba2bbefd
--- /dev/null
+++ b/infra/bots/flavor/cmake_flavor.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+#
+# Copyright 2016 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+
+import default_flavor
+import os
+
+
+"""CMake flavor utils, used for building Skia with CMake."""
+
+
+class CMakeFlavorUtils(default_flavor.DefaultFlavorUtils):
+ def compile(self, target):
+ """Build Skia with CMake. Ignores `target`."""
+ cmake_build = os.path.join(self._bot_info.skia_dir, 'cmake', 'cmake_build')
+ self._bot_info.run([cmake_build, target])