summaryrefslogtreecommitdiffstats
path: root/tools/cr
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 03:55:00 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-31 03:55:00 +0000
commitcf1aa5c43e37a364de49651adc09725c3961ea08 (patch)
treea9356e8cdb6ccd915d0f1fffd03cc7606cbd32d4 /tools/cr
parentf3589bf443a956e5465ea6659b2e2b407559f6b4 (diff)
downloadchromium_src-cf1aa5c43e37a364de49651adc09725c3961ea08.zip
chromium_src-cf1aa5c43e37a364de49651adc09725c3961ea08.tar.gz
chromium_src-cf1aa5c43e37a364de49651adc09725c3961ea08.tar.bz2
[cr tool] Add Linux ChromeOS platform
You should now be able to configure a Linux Chrome OS build environment with: cr init --platform linuxchromeos --type Debug cr build chrome BUG=none NOTRY=true Review URL: https://codereview.chromium.org/343183003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286720 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/cr')
-rw-r--r--tools/cr/cr/base/linux_chromeos.py30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/cr/cr/base/linux_chromeos.py b/tools/cr/cr/base/linux_chromeos.py
new file mode 100644
index 0000000..b0ca248
--- /dev/null
+++ b/tools/cr/cr/base/linux_chromeos.py
@@ -0,0 +1,30 @@
+# Copyright 2014 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.
+
+"""Linux Chrome OS platform."""
+
+import os
+
+import cr
+
+class LinuxChromeOSPlatform(cr.Platform):
+ """Platform for Linux Chrome OS target"""
+
+ ACTIVE = cr.Config.From(
+ CR_BINARY=os.path.join('{CR_BUILD_DIR}', '{CR_BUILD_TARGET}'),
+ CHROME_DEVEL_SANDBOX='/usr/local/sbin/chrome-devel-sandbox',
+ GYP_DEF_chromeos=1,
+ )
+
+ @property
+ def enabled(self):
+ return cr.Platform.System() == 'Linux'
+
+ @property
+ def priority(self):
+ return 2
+
+ @property
+ def paths(self):
+ return ['{GOMA_DIR}']