1#!/usr/bin/env python
2#
3# Copyright 2016 Google Inc.
4#
5# Use of this source code is governed by a BSD-style license that can be
6# found in the LICENSE file.
7
8
9import default_flavor
10import os
11
12
13"""CMake flavor utils, used for building Skia with CMake."""
14
15
16class CMakeFlavorUtils(default_flavor.DefaultFlavorUtils):
17  def compile(self, target):
18    """Build Skia with CMake.  Ignores `target`."""
19    cmake_build = os.path.join(self._bot_info.skia_dir, 'cmake', 'cmake_build')
20    self._bot_info.run([cmake_build, target])
21