OLD | NEW |
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://skia.org. |
8 # | 8 # |
9 # Some usage examples: | 9 # Some usage examples: |
10 # make clean | 10 # make clean |
11 # make dm | 11 # make dm |
12 # make bench BUILDTYPE=Release | 12 # make bench BUILDTYPE=Release |
13 # make gm GYP_DEFINES=skia_scalar=fixed BUILDTYPE=Release | 13 # make gm GYP_DEFINES=skia_scalar=fixed BUILDTYPE=Release |
14 # make all | 14 # make all |
15 | 15 |
16 import os | 16 import os |
17 import shutil | 17 import shutil |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 if not targets: | 143 if not targets: |
144 sys.exit(0) | 144 sys.exit(0) |
145 | 145 |
146 # dispatch to appropriate Make<Platform>() variant. | 146 # dispatch to appropriate Make<Platform>() variant. |
147 if os.name == 'nt': | 147 if os.name == 'nt': |
148 MakeWindows(targets) | 148 MakeWindows(targets) |
149 sys.exit(0) | 149 sys.exit(0) |
150 elif os.name == 'posix': | 150 elif os.name == 'posix': |
151 if sys.platform == 'darwin': | 151 if sys.platform == 'darwin': |
152 print 'Mac developers should not run this script; see ' \ | 152 print 'Mac developers should not run this script; see ' \ |
153 'https://sites.google.com/site/skiadocs/user-documentation/quick
-start-guides/mac' | 153 'https://skia.org/user/quick/macos' |
154 sys.exit(1) | 154 sys.exit(1) |
155 elif sys.platform == 'cygwin': | 155 elif sys.platform == 'cygwin': |
156 print 'Windows development on Cygwin is not currently supported; see
' \ | 156 print 'Windows development on Cygwin is not currently supported; see
' \ |
157 'https://sites.google.com/site/skiadocs/user-documentation/quick
-start-guides/windows' | 157 'https://skia.org/user/quick/windows' |
158 sys.exit(1) | 158 sys.exit(1) |
159 else: | 159 else: |
160 print 'Unix developers should not run this script; see ' \ | 160 print 'Unix developers should not run this script; see ' \ |
161 'https://sites.google.com/site/skiadocs/user-documentation/quick
-start-guides/linux' | 161 'https://skia.org/user/quick/linux' |
162 sys.exit(1) | 162 sys.exit(1) |
163 else: | 163 else: |
164 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % ( | 164 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % ( |
165 os.name, sys.platform, 'https://sites.google.com/site/skiadocs/') | 165 os.name, sys.platform, 'https://skia.org/user/quick') |
166 sys.exit(1) | 166 sys.exit(1) |
167 sys.exit(0) | 167 sys.exit(0) |
168 | 168 |
169 | 169 |
170 # main() | 170 # main() |
171 Make(sys.argv[1:]) | 171 Make(sys.argv[1:]) |
172 | 172 |
173 | 173 |
OLD | NEW |