aboutsummaryrefslogtreecommitdiffhomepage
path: root/make.py
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-18 16:10:56 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-10-18 16:10:56 +0000
commit9c875d34ff13d82f581448ced0d9eb5b067368b9 (patch)
treeb1d56c5eb4b5361a1b20f59e17be718d14276d89 /make.py
parent7790912e6e8a64fc9161e0df26d76e695aa9f05c (diff)
add a "most" target, and make it the default
split out of https://codereview.appspot.com/6651064/ ('gyp: generate "everything" and "most" targets instead of "all"') tests: "make most" now works, "make" now calls "make most" Review URL: https://codereview.appspot.com/6740045 git-svn-id: http://skia.googlecode.com/svn/trunk@5999 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'make.py')
-rw-r--r--make.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/make.py b/make.py
index 1e0b7e71b5..03421fe95b 100644
--- a/make.py
+++ b/make.py
@@ -4,7 +4,7 @@
# found in the LICENSE file.
# "Makefile" replacement to build skia for Windows.
-# More info at http://code.google.com/p/skia/wiki/DocRoot
+# More info at https://sites.google.com/site/skiadocs/
#
# Some usage examples:
# make clean
@@ -20,9 +20,10 @@ import sys
BUILDTYPE = 'Debug'
# special targets
-TARGET_ALL = 'all'
-TARGET_CLEAN = 'clean'
-TARGET_GYP = 'gyp'
+TARGET_ALL = 'all'
+TARGET_CLEAN = 'clean'
+TARGET_DEFAULT = 'most'
+TARGET_GYP = 'gyp'
LIST_OF_ALL_TARGETS = ['SampleApp', 'bench', 'gm', 'tests', 'tools']
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
@@ -133,6 +134,11 @@ def Make(args):
"""
# handle any variable-setting parameters or special targets
global BUILDTYPE
+
+ # if no targets were specified at all, make default target
+ if not args:
+ args = [TARGET_DEFAULT]
+
targets = []
for arg in args:
if arg == TARGET_ALL:
@@ -157,19 +163,19 @@ def Make(args):
elif os.name == 'posix':
if sys.platform == 'darwin':
print 'Mac developers should not run this script; see ' \
- 'http://code.google.com/p/skia/wiki/GettingStartedOnMac'
+ 'https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/mac'
sys.exit(1)
elif sys.platform == 'cygwin':
- print 'Windows development on Cygwin is not currently supported; ' \
- 'see http://code.google.com/p/skia/wiki/GettingStartedOnWindows'
+ print 'Windows development on Cygwin is not currently supported; see ' \
+ 'https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/windows'
sys.exit(1)
else:
print 'Unix developers should not run this script; see ' \
- 'http://code.google.com/p/skia/wiki/GettingStartedOnLinux'
+ 'https://sites.google.com/site/skiadocs/user-documentation/quick-start-guides/linux'
sys.exit(1)
else:
print 'unknown platform (os.name=%s, sys.platform=%s); see %s' % (
- os.name, sys.platform, 'http://code.google.com/p/skia/wiki/DocRoot')
+ os.name, sys.platform, 'https://sites.google.com/site/skiadocs/')
sys.exit(1)
sys.exit(0)