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

Side by Side Diff: tools/utils.py

Issue 8513012: Adding NetBSD support for scons build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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 | « SConstruct ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 elif id == 'Windows' or id == 'Microsoft': 54 elif id == 'Windows' or id == 'Microsoft':
55 # On Windows Vista platform.system() can return 'Microsoft' with some 55 # On Windows Vista platform.system() can return 'Microsoft' with some
56 # versions of Python, see http://bugs.python.org/issue1082 56 # versions of Python, see http://bugs.python.org/issue1082
57 return 'win32' 57 return 'win32'
58 elif id == 'FreeBSD': 58 elif id == 'FreeBSD':
59 return 'freebsd' 59 return 'freebsd'
60 elif id == 'OpenBSD': 60 elif id == 'OpenBSD':
61 return 'openbsd' 61 return 'openbsd'
62 elif id == 'SunOS': 62 elif id == 'SunOS':
63 return 'solaris' 63 return 'solaris'
64 elif id == 'NetBSD':
65 return 'netbsd'
64 else: 66 else:
65 return None 67 return None
66 68
67 69
68 # This will default to building the 32 bit VM even on machines that are capable 70 # This will default to building the 32 bit VM even on machines that are capable
69 # of running the 64 bit VM. Use the scons option --arch=x64 to force it to buil d 71 # of running the 64 bit VM. Use the scons option --arch=x64 to force it to buil d
70 # the 64 bit VM. 72 # the 64 bit VM.
71 def GuessArchitecture(): 73 def GuessArchitecture():
72 id = platform.machine() 74 id = platform.machine()
73 id = id.lower() # Windows 7 capitalizes 'AMD64'. 75 id = id.lower() # Windows 7 capitalizes 'AMD64'.
(...skipping 13 matching lines...) Expand all
87 89
88 def GuessWordsize(): 90 def GuessWordsize():
89 if '64' in platform.machine(): 91 if '64' in platform.machine():
90 return '64' 92 return '64'
91 else: 93 else:
92 return '32' 94 return '32'
93 95
94 96
95 def IsWindows(): 97 def IsWindows():
96 return GuessOS() == 'win32' 98 return GuessOS() == 'win32'
OLDNEW
« no previous file with comments | « SConstruct ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698