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

Side by Side Diff: client/samples/total/bin/start-server

Issue 8341103: build.py will not accept --arch=dartc soon, so removing references and uses of --arch=dartc in th... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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 | « no previous file | client/tools/buildbot_annotated_steps.py » ('j') | samples/chat/README » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python2.6 1 #!/usr/bin/env python2.6
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 import optparse 6 import optparse
7 import os 7 import os
8 import subprocess 8 import subprocess
9 import sys 9 import sys
10 10
(...skipping 11 matching lines...) Expand all
22 22
23 def GetOutputPath(mode): 23 def GetOutputPath(mode):
24 return rootPath( 24 return rootPath(
25 'compiler', 25 'compiler',
26 utils.GetBuildRoot(utils.GuessOS(), mode, 'dartc')) 26 utils.GetBuildRoot(utils.GuessOS(), mode, 'dartc'))
27 27
28 def BuildFling(mode): 28 def BuildFling(mode):
29 # Build dartc 29 # Build dartc
30 if subprocess.call([ 30 if subprocess.call([
31 '../tools/build.py', 31 '../tools/build.py',
32 '--mode=%s' % mode, 32 '--mode=%s' % mode],
33 '--arch=dartc'],
34 cwd = rootPath('compiler')) != 0: 33 cwd = rootPath('compiler')) != 0:
35 return False 34 return False
36 if subprocess.call([ 35 if subprocess.call([
37 rootPath('third_party/apache_ant/v1_7_1/bin/ant'), 36 rootPath('third_party/apache_ant/v1_7_1/bin/ant'),
38 '-f', rootPath('client/fling/build.xml'), 37 '-f', rootPath('client/fling/build.xml'),
39 '-Dbuild.dir=%s' % GetOutputPath(mode), 38 '-Dbuild.dir=%s' % GetOutputPath(mode),
40 'build']) != 0: 39 'build']) != 0:
41 return False 40 return False
42 return True 41 return True
43 42
44 def RunFling(mode): 43 def RunFling(mode):
45 subprocess.call( 44 subprocess.call(
46 [os.path.join(GetOutputPath(mode), 'fling/fling/fling'), 'Server.dart'], 45 [os.path.join(GetOutputPath(mode), 'fling/fling/fling'), 'Server.dart'],
47 cwd = herePath('src')) 46 cwd = herePath('src'))
48 47
49 if __name__ == '__main__': 48 if __name__ == '__main__':
50 parser = optparse.OptionParser() 49 parser = optparse.OptionParser()
51 parser.add_option('--no-build', 50 parser.add_option('--no-build',
52 dest = 'build', 51 dest = 'build',
53 action = 'store_false', 52 action = 'store_false',
54 default = True, 53 default = True,
55 help = 'Skip reubilding of fling') 54 help = 'Skip reubilding of fling')
56 parser.add_option('--mode', 55 parser.add_option('--mode',
57 dest = 'mode', 56 dest = 'mode',
58 default = "release", 57 default = "release",
59 help = 'Mode to use when building dependencies (release or debug)') 58 help = 'Mode to use when building dependencies (release or debug)')
60 options, args = parser.parse_args() 59 options, args = parser.parse_args()
61 if not options.build or BuildFling(options.mode): 60 if not options.build or BuildFling(options.mode):
62 RunFling(options.mode) 61 RunFling(options.mode)
OLDNEW
« no previous file with comments | « no previous file | client/tools/buildbot_annotated_steps.py » ('j') | samples/chat/README » ('J')

Powered by Google App Engine
This is Rietveld 408576698