Index: infra/bots/recipe_modules/skia/cmake_flavor.py |
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 0000000000000000000000000000000000000000..c88d3694512a0d105794ac4a5579baa6195e6173 |
--- /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']) |