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

Side by Side Diff: tools/create_sdk.py

Issue 8815011: Gets past broken build for --mode debug (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: pretificiation Created 9 years 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 | « no previous file | tools/upload_sdk.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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2011, 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. The SDK will be 7 # A script which will be invoked from gyp to create an SDK. The SDK will be
8 # used either from the command-line or from the editor. Top structure is 8 # used either from the command-line or from the editor. Top structure is
9 # 9 #
10 # ..sdk/ 10 # ..sdk/
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 (eval(open("frog/lib/frog_json_sources.gypi").read()))['sources'] 74 (eval(open("frog/lib/frog_json_sources.gypi").read()))['sources']
75 75
76 HOME = dirname(dirname(realpath(__file__))) 76 HOME = dirname(dirname(realpath(__file__)))
77 77
78 SDK = argv[1] 78 SDK = argv[1]
79 79
80 # TODO(dgrove) - deal with architectures that are not ia32. 80 # TODO(dgrove) - deal with architectures that are not ia32.
81 if (os.path.basename(os.path.dirname(SDK)) != 81 if (os.path.basename(os.path.dirname(SDK)) !=
82 utils.GetBuildConf('release', 'ia32')): 82 utils.GetBuildConf('release', 'ia32')):
83 print "SDK is not built in Debug mode." 83 print "SDK is not built in Debug mode."
84 # leave empty dir behind
85 os.makedirs(SDK)
84 exit(0) 86 exit(0)
85 87
86 if exists(SDK): 88 if exists(SDK):
87 rmtree(SDK) 89 rmtree(SDK)
88 90
89 # Create and populate sdk/bin. 91 # Create and populate sdk/bin.
90 BIN = join(SDK, 'bin') 92 BIN = join(SDK, 'bin')
91 os.makedirs(BIN) 93 os.makedirs(BIN)
92 94
93 # Copy the Dart VM binary into sdk/bin. 95 # Copy the Dart VM binary into sdk/bin.
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 # Create and copy tools. 351 # Create and copy tools.
350 352
351 UTIL = join(SDK, 'tools') 353 UTIL = join(SDK, 'tools')
352 os.makedirs(UTIL) 354 os.makedirs(UTIL)
353 355
354 copytree(join(HOME, 'utils', 'dartdoc'), join(UTIL, 'dartdoc'), 356 copytree(join(HOME, 'utils', 'dartdoc'), join(UTIL, 'dartdoc'),
355 ignore=ignore_patterns('.svn')) 357 ignore=ignore_patterns('.svn'))
356 358
357 if __name__ == '__main__': 359 if __name__ == '__main__':
358 sys.exit(Main(sys.argv)) 360 sys.exit(Main(sys.argv))
OLDNEW
« no previous file with comments | « no previous file | tools/upload_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698