| 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://skia.org. | 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 |
| 18 import sys | 18 import sys |
| 19 | 19 |
| 20 BUILDTYPE = 'Debug' | 20 BUILDTYPE = os.environ.get('BUILDTYPE', 'Debug') |
| 21 | 21 |
| 22 # special targets | 22 # special targets |
| 23 TARGET_ALL = 'all' | 23 TARGET_ALL = 'all' |
| 24 TARGET_CLEAN = 'clean' | 24 TARGET_CLEAN = 'clean' |
| 25 TARGET_DEFAULT = 'most' | 25 TARGET_DEFAULT = 'most' |
| 26 TARGET_GYP = 'gyp' | 26 TARGET_GYP = 'gyp' |
| 27 | 27 |
| 28 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) | 28 SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__)) |
| 29 OUT_SUBDIR = os.environ.get('SKIA_OUT', 'out') | 29 OUT_SUBDIR = os.environ.get('SKIA_OUT', 'out') |
| 30 GYP_SUBDIR = 'gyp' | 30 GYP_SUBDIR = 'gyp' |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % ( | 163 print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % ( |
| 164 os.name, sys.platform, 'https://skia.org/user/quick') | 164 os.name, sys.platform, 'https://skia.org/user/quick') |
| 165 sys.exit(1) | 165 sys.exit(1) |
| 166 sys.exit(0) | 166 sys.exit(0) |
| 167 | 167 |
| 168 | 168 |
| 169 # main() | 169 # main() |
| 170 Make(sys.argv[1:]) | 170 Make(sys.argv[1:]) |
| 171 | 171 |
| 172 | 172 |
| OLD | NEW |