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

Side by Side Diff: native_client_sdk/src/build_tools/build_sdk.py

Issue 11048024: [NaCl SDK] Fix PRESUBMIT.py on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
« no previous file with comments | « native_client_sdk/PRESUBMIT.py ('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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 """Entry point for both build and try bots 6 """Entry point for both build and try bots
7 7
8 This script is invoked from XXX, usually without arguments 8 This script is invoked from XXX, usually without arguments
9 to package an SDK. It automatically determines whether 9 to package an SDK. It automatically determines whether
10 this SDK is for mac, win, linux. 10 this SDK is for mac, win, linux.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 if options.gyp and sys.platform not in ['cygwin', 'win32']: 230 if options.gyp and sys.platform not in ['cygwin', 'win32']:
231 # If the gyp options is specified we install a toolchain 231 # If the gyp options is specified we install a toolchain
232 # wrapper so that gyp can switch toolchains via a commandline 232 # wrapper so that gyp can switch toolchains via a commandline
233 # option. 233 # option.
234 compiler_dir = os.path.join(pepperdir, 'toolchain', tcname, 'bin') 234 compiler_dir = os.path.join(pepperdir, 'toolchain', tcname, 'bin')
235 wrapper = os.path.join(SDK_SRC_DIR, 'tools', 'compiler-wrapper.py') 235 wrapper = os.path.join(SDK_SRC_DIR, 'tools', 'compiler-wrapper.py')
236 buildbot_common.MakeDir(compiler_dir) 236 buildbot_common.MakeDir(compiler_dir)
237 buildbot_common.CopyFile(wrapper, compiler_dir) 237 buildbot_common.CopyFile(wrapper, compiler_dir)
238 238
239 # Module 'os' has no 'symlink' member (on Windows).
240 # pylint: disable=E1101
241
239 os.symlink('compiler-wrapper.py', 242 os.symlink('compiler-wrapper.py',
240 os.path.join(compiler_dir, 'i686-nacl-g++')) 243 os.path.join(compiler_dir, 'i686-nacl-g++'))
241 os.symlink('compiler-wrapper.py', 244 os.symlink('compiler-wrapper.py',
242 os.path.join(compiler_dir, 'i686-nacl-gcc')) 245 os.path.join(compiler_dir, 'i686-nacl-gcc'))
243 os.symlink('compiler-wrapper.py', 246 os.symlink('compiler-wrapper.py',
244 os.path.join(compiler_dir, 'i686-nacl-ar')) 247 os.path.join(compiler_dir, 'i686-nacl-ar'))
245 248
246 249
247 HEADER_MAP = { 250 HEADER_MAP = {
248 'newlib': { 251 'newlib': {
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
980 # Archive on non-trybots. 983 # Archive on non-trybots.
981 if options.archive or buildbot_common.IsSDKBuilder(): 984 if options.archive or buildbot_common.IsSDKBuilder():
982 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile) 985 BuildStepArchiveBundle(pepper_ver, clnumber, tarfile)
983 BuildStepArchiveSDKTools() 986 BuildStepArchiveSDKTools()
984 987
985 return 0 988 return 0
986 989
987 990
988 if __name__ == '__main__': 991 if __name__ == '__main__':
989 sys.exit(main(sys.argv)) 992 sys.exit(main(sys.argv))
OLDNEW
« no previous file with comments | « native_client_sdk/PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698