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

Side by Side Diff: tools/create_sdk.py

Issue 10584002: Enable turning on analyzer build in sdk for macs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated another condition stanza in dart.gyp Created 8 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 | « dart.gyp ('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 # 2 #
3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 # A script which will be invoked from gyp to create an SDK. 7 # A script which will be invoked from gyp to create an SDK.
8 # 8 #
9 # Usage: create_sdk.py sdk_directory 9 # Usage: create_sdk.py sdk_directory
10 # 10 #
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 dest.close() 91 dest.close()
92 92
93 93
94 def Copy(src, dest): 94 def Copy(src, dest):
95 copyfile(src, dest) 95 copyfile(src, dest)
96 copymode(src, dest) 96 copymode(src, dest)
97 97
98 # TODO(zundel): this excludes the analyzer from the sdk build until builders 98 # TODO(zundel): this excludes the analyzer from the sdk build until builders
99 # have all prerequisite software installed. Also update dart.gyp. 99 # have all prerequisite software installed. Also update dart.gyp.
100 def ShouldCopyAnalyzer(): 100 def ShouldCopyAnalyzer():
101 return utils.GuessOS() == 'linux' 101 os = utils.GuessOS();
102 return os == 'linux' or os == 'macos'
102 103
103 104
104 def CopyShellScript(src_file, dest_dir): 105 def CopyShellScript(src_file, dest_dir):
105 '''Copies a shell/batch script to the given destination directory. Handles 106 '''Copies a shell/batch script to the given destination directory. Handles
106 using the appropriate platform-specific file extension.''' 107 using the appropriate platform-specific file extension.'''
107 file_extension = '' 108 file_extension = ''
108 if utils.GuessOS() == 'win32': 109 if utils.GuessOS() == 'win32':
109 file_extension = '.bat' 110 file_extension = '.bat'
110 111
111 src = src_file + file_extension 112 src = src_file + file_extension
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 if revision is not None: 471 if revision is not None:
471 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f: 472 with open(os.path.join(SDK_tmp, 'revision'), 'w') as f:
472 f.write(revision + '\n') 473 f.write(revision + '\n')
473 f.close() 474 f.close()
474 475
475 move(SDK_tmp, SDK) 476 move(SDK_tmp, SDK)
476 utils.Touch(os.path.join(SDK, 'create.stamp')) 477 utils.Touch(os.path.join(SDK, 'create.stamp'))
477 478
478 if __name__ == '__main__': 479 if __name__ == '__main__':
479 sys.exit(Main(sys.argv)) 480 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « dart.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698