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

Side by Side Diff: make.py

Issue 299443005: Don't try to remove xcodebuild directory on Windows. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 7 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 | « no previous file | 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 2011 Google Inc. 1 # Copyright 2011 Google Inc.
2 # 2 #
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 # "Makefile" replacement to build skia for Windows. 6 # "Makefile" replacement to build skia for Windows.
7 # More info at https://sites.google.com/site/skiadocs/ 7 # More info at https://sites.google.com/site/skiadocs/
8 # 8 #
9 # Some usage examples: 9 # Some usage examples:
10 # make clean 10 # make clean
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 def runcommand(command): 45 def runcommand(command):
46 print '> %s' % command 46 print '> %s' % command
47 if os.system(command): 47 if os.system(command):
48 sys.exit(1) 48 sys.exit(1)
49 49
50 def MakeClean(): 50 def MakeClean():
51 """Cross-platform "make clean" operation.""" 51 """Cross-platform "make clean" operation."""
52 cd(SCRIPT_DIR) 52 cd(SCRIPT_DIR)
53 rmtree(OUT_SUBDIR) 53 rmtree(OUT_SUBDIR)
54 # clean up the directory that XCode (on Mac) creates
55 rmtree('xcodebuild')
56 54
57 55
58 def CheckWindowsEnvironment(): 56 def CheckWindowsEnvironment():
59 """For Windows: check environment variables needed for command-line build. 57 """For Windows: check environment variables needed for command-line build.
60 58
61 If those environment variables are missing, try to set them. 59 If those environment variables are missing, try to set them.
62 If environment variables can be set up, this function returns; otherwise, 60 If environment variables can be set up, this function returns; otherwise,
63 it displays an error message and exits. 61 it displays an error message and exits.
64 """ 62 """
65 # If we already have the proper environment variables, nothing to do here. 63 # If we already have the proper environment variables, nothing to do here.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % ( 163 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % (
166 os.name, sys.platform, 'https://sites.google.com/site/skiadocs/') 164 os.name, sys.platform, 'https://sites.google.com/site/skiadocs/')
167 sys.exit(1) 165 sys.exit(1)
168 sys.exit(0) 166 sys.exit(0)
169 167
170 168
171 # main() 169 # main()
172 Make(sys.argv[1:]) 170 Make(sys.argv[1:])
173 171
174 172
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698