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

Side by Side Diff: gyp_skia

Issue 319153002: Effectively unlimited linking. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 80col 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 | « 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 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright 2011 The Android Open Source Project 3 # Copyright 2011 The Android Open Source Project
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 7
8 # This script is a wrapper which invokes gyp with the correct --depth argument, 8 # This script is a wrapper which invokes gyp with the correct --depth argument,
9 # and supports the automatic regeneration of build files if all.gyp is 9 # and supports the automatic regeneration of build files if all.gyp is
10 # changed (Linux-only). 10 # changed (Linux-only).
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 # By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp. 127 # By default, we build 'most' instead of 'all' or 'everything'. See skia.gyp.
128 args.extend(['-Gdefault_target=most']) 128 args.extend(['-Gdefault_target=most'])
129 129
130 # Fail if any files specified in the project are missing 130 # Fail if any files specified in the project are missing
131 if sys.platform.startswith('win'): 131 if sys.platform.startswith('win'):
132 gyp_generator_flags = os.getenv(ENVVAR_GYP_GENERATOR_FLAGS, '') 132 gyp_generator_flags = os.getenv(ENVVAR_GYP_GENERATOR_FLAGS, '')
133 if not 'msvs_error_on_missing_sources' in gyp_generator_flags: 133 if not 'msvs_error_on_missing_sources' in gyp_generator_flags:
134 os.environ[ENVVAR_GYP_GENERATOR_FLAGS] = ( 134 os.environ[ENVVAR_GYP_GENERATOR_FLAGS] = (
135 gyp_generator_flags + ' msvs_error_on_missing_sources=1') 135 gyp_generator_flags + ' msvs_error_on_missing_sources=1')
136 136
137 # GYP is very conservative about how many concurrent linker calls it allows,
138 # to fit in RAM. We don't need to be nearly as conservative as Chrome. We'll
139 # just turn that feature off.
140 os.environ['GYP_LINK_CONCURRENCY'] = '9001'
141
137 print 'Updating projects from gyp files...' 142 print 'Updating projects from gyp files...'
138 sys.stdout.flush() 143 sys.stdout.flush()
139 144
140 if '--dry-run' in args: 145 if '--dry-run' in args:
141 args.remove('--dry-run') 146 args.remove('--dry-run')
142 print gyp_source_dir, ' '.join(args) 147 print gyp_source_dir, ' '.join(args)
143 else: 148 else:
144 # Off we go... 149 # Off we go...
145 sys.exit(gyp.main(args)) 150 sys.exit(gyp.main(args))
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