| 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):
|
|
|