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

Side by Side Diff: make.py

Issue 332833002: Enable compiling with automatically-downloaded VS toolchain on Windows bots (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Upload from Linux Created 6 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
« no previous file with comments | « make.bat ('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 # 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 print '\nUnable to find vcvars32.bat on your system.' 85 print '\nUnable to find vcvars32.bat on your system.'
86 sys.exit(1) 86 sys.exit(1)
87 87
88 88
89 def MakeWindows(targets): 89 def MakeWindows(targets):
90 """For Windows: build as appropriate for the command line arguments. 90 """For Windows: build as appropriate for the command line arguments.
91 91
92 parameters: 92 parameters:
93 targets: build targets as a list of strings 93 targets: build targets as a list of strings
94 """ 94 """
95 # TODO(epoger): I'm not sure if this is needed for ninja builds. 95 if os.environ.get('CHROME_HEADLESS', '0') != '1':
96 CheckWindowsEnvironment() 96 # TODO(epoger): I'm not sure if this is needed for ninja builds.
97 CheckWindowsEnvironment()
97 98
98 # Run gyp_skia to prepare Visual Studio projects. 99 # Run gyp_skia to prepare Visual Studio projects.
99 cd(SCRIPT_DIR) 100 cd(SCRIPT_DIR)
100 runcommand('python gyp_skia') 101 runcommand('python gyp_skia')
101 102
102 # We already built the gypfiles... 103 # We already built the gypfiles...
103 while TARGET_GYP in targets: 104 while TARGET_GYP in targets:
104 targets.remove(TARGET_GYP) 105 targets.remove(TARGET_GYP)
105 106
106 # And call ninja to do the work! 107 # And call ninja to do the work!
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % ( 164 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % (
164 os.name, sys.platform, 'https://sites.google.com/site/skiadocs/') 165 os.name, sys.platform, 'https://sites.google.com/site/skiadocs/')
165 sys.exit(1) 166 sys.exit(1)
166 sys.exit(0) 167 sys.exit(0)
167 168
168 169
169 # main() 170 # main()
170 Make(sys.argv[1:]) 171 Make(sys.argv[1:])
171 172
172 173
OLDNEW
« no previous file with comments | « make.bat ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698