Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/cr/cr/base/mac.py

Issue 898683003: cr: Add support for mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/cr/cr-bash-helpers.sh ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/base/mac.py
diff --git a/tools/cr/cr/base/linux.py b/tools/cr/cr/base/mac.py
similarity index 57%
copy from tools/cr/cr/base/linux.py
copy to tools/cr/cr/base/mac.py
index 407c48efe3fd52d48b6bedf8e019174bdaf03678..5bf22761dc33d0850f8b437399b28a27566e37c8 100644
--- a/tools/cr/cr/base/linux.py
+++ b/tools/cr/cr/base/mac.py
@@ -1,30 +1,30 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
+# 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.
-"""The linux specific host and platform implementation module."""
+"""The mac specific host and platform implementation module."""
import os
import cr
-class LinuxHost(cr.Host):
- """The implementation of Host for linux."""
+class MacHost(cr.Host):
+ """The implementation of Host for mac."""
ACTIVE = cr.Config.From(
GOOGLE_CODE='/usr/local/google/code',
)
def __init__(self):
- super(LinuxHost, self).__init__()
+ super(MacHost, self).__init__()
def Matches(self):
- return cr.Platform.System() == 'Linux'
+ return cr.Platform.System() == 'Darwin'
-class LinuxPlatform(cr.Platform):
- """The implementation of Platform for the linux target."""
+class MacPlatform(cr.Platform):
+ """The implementation of Platform for the mac target."""
ACTIVE = cr.Config.From(
CR_BINARY=os.path.join('{CR_BUILD_DIR}', '{CR_BUILD_TARGET}'),
@@ -33,7 +33,7 @@ class LinuxPlatform(cr.Platform):
@property
def enabled(self):
- return cr.Platform.System() == 'Linux'
+ return cr.Platform.System() == 'Darwin'
@property
def priority(self):
« no previous file with comments | « tools/cr/cr-bash-helpers.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698