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

Side by Side Diff: tools/python/google/platform_utils.py

Issue 7172016: Add linux3 build support to chromium (base repository) (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/heapcheck/chrome_tests.py ('k') | tools/swig/swig.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/env python 1 #!/bin/env python
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Platform-specific utilities and pseudo-constants 6 """Platform-specific utilities and pseudo-constants
7 7
8 Any functions whose implementations or values differ from one platform to 8 Any functions whose implementations or values differ from one platform to
9 another should be defined in their respective platform_utils_<platform>.py 9 another should be defined in their respective platform_utils_<platform>.py
10 modules. The appropriate one of those will be imported into this module to 10 modules. The appropriate one of those will be imported into this module to
11 provide callers with a common, platform-independent interface. 11 provide callers with a common, platform-independent interface.
12 """ 12 """
13 13
14 import sys 14 import sys
15 15
16 # We may not support the version of Python that a user has installed (Cygwin 16 # We may not support the version of Python that a user has installed (Cygwin
17 # especially has had problems), but we'll allow the platform utils to be 17 # especially has had problems), but we'll allow the platform utils to be
18 # included in any case so we don't get an import error. 18 # included in any case so we don't get an import error.
19 if sys.platform in ('cygwin', 'win32'): 19 if sys.platform in ('cygwin', 'win32'):
20 from platform_utils_win import * 20 from platform_utils_win import *
21 elif sys.platform == 'darwin': 21 elif sys.platform == 'darwin':
22 from platform_utils_mac import * 22 from platform_utils_mac import *
23 elif sys.platform == 'linux2': 23 elif sys.platform.startswith('linux'):
24 from platform_utils_linux import * 24 from platform_utils_linux import *
OLDNEW
« no previous file with comments | « tools/heapcheck/chrome_tests.py ('k') | tools/swig/swig.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698