Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / cr / cr / base / linux_chromeos.py
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 """Linux Chrome OS platform."""
6
7 import os
8
9 import cr
10
11 class LinuxChromeOSPlatform(cr.Platform):
12   """Platform for Linux Chrome OS target"""
13
14   ACTIVE = cr.Config.From(
15       CR_BINARY=os.path.join('{CR_BUILD_DIR}', '{CR_BUILD_TARGET}'),
16       CHROME_DEVEL_SANDBOX='/usr/local/sbin/chrome-devel-sandbox',
17       GYP_DEF_chromeos=1,
18   )
19
20   @property
21   def enabled(self):
22     return cr.Platform.System() == 'Linux'
23
24   @property
25   def priority(self):
26     return 2
27
28   @property
29   def paths(self):
30     return ['{GOMA_DIR}']