aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipe_modules/skia/cmake_flavor.py
diff options
context:
space:
mode:
Diffstat (limited to 'infra/bots/recipe_modules/skia/cmake_flavor.py')
-rw-r--r--infra/bots/recipe_modules/skia/cmake_flavor.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/infra/bots/recipe_modules/skia/cmake_flavor.py b/infra/bots/recipe_modules/skia/cmake_flavor.py
new file mode 100644
index 0000000000..c88d369451
--- /dev/null
+++ b/infra/bots/recipe_modules/skia/cmake_flavor.py
@@ -0,0 +1,14 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import default_flavor
+
+"""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 = self._skia_api.skia_dir.join('cmake', 'cmake_build')
+ self._skia_api.run(self._skia_api.m.step, 'cmake_build', cmd=[cmake_build],
+ cwd=self._skia_api.m.path['checkout'])