OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # This script is wrapper for Chromium that adds some support for how GYP | 7 # This script is wrapper for Chromium that adds some support for how GYP |
8 # is invoked by Chromium beyond what can be done in the gclient hooks. | 8 # is invoked by Chromium beyond what can be done in the gclient hooks. |
9 | 9 |
10 import glob | 10 import glob |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 Based on a subset of the GYP variables that have been rewritten a bit.""" | 130 Based on a subset of the GYP variables that have been rewritten a bit.""" |
131 | 131 |
132 vars_dict = GetGypVarsForGN(supplemental_files) | 132 vars_dict = GetGypVarsForGN(supplemental_files) |
133 gn_args = '' | 133 gn_args = '' |
134 | 134 |
135 # Note: These are the additional flags passed to various builds by builders | 135 # Note: These are the additional flags passed to various builds by builders |
136 # on the main waterfall. We'll probably need to add these at some point: | 136 # on the main waterfall. We'll probably need to add these at some point: |
137 # mac_strip_release=1 http://crbug.com/330301 | 137 # mac_strip_release=1 http://crbug.com/330301 |
138 # linux_dump_symbols=0 http://crbug.com/330300 | 138 # linux_dump_symbols=0 http://crbug.com/330300 |
139 # host_os=linux Probably can skip, GN knows the host OS. | 139 # host_os=linux Probably can skip, GN knows the host OS. |
140 # gcc_version=46 Hopefully we can skip this and fix whatever uses it. | |
141 # order_text_section=<path> http://crbug.com/330299 | 140 # order_text_section=<path> http://crbug.com/330299 |
142 # chromium_win_pch=0 http://crbug.com/297678 | 141 # chromium_win_pch=0 http://crbug.com/297678 |
143 # clang_use_chrome_plugins=1 http://crbug.com/330298 | 142 # clang_use_chrome_plugins=1 http://crbug.com/330298 |
144 # chromium_ios_signing=0 http://crbug.com/330302 | 143 # chromium_ios_signing=0 http://crbug.com/330302 |
145 # linux_use_tcmalloc=0 http://crbug.com/330303 | 144 # linux_use_tcmalloc=0 http://crbug.com/330303 |
146 # release_extra_flags=... http://crbug.com/330305 | 145 # release_extra_flags=... http://crbug.com/330305 |
147 | 146 |
148 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for | 147 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for |
149 # gn when the key is set to the given value in the GYP arguments. | 148 # gn when the key is set to the given value in the GYP arguments. |
150 remap_cases = [ | 149 remap_cases = [ |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 # to enfore syntax checking. | 375 # to enfore syntax checking. |
377 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') | 376 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') |
378 if syntax_check and int(syntax_check): | 377 if syntax_check and int(syntax_check): |
379 args.append('--check') | 378 args.append('--check') |
380 | 379 |
381 print 'Updating projects from gyp files...' | 380 print 'Updating projects from gyp files...' |
382 sys.stdout.flush() | 381 sys.stdout.flush() |
383 | 382 |
384 # Off we go... | 383 # Off we go... |
385 sys.exit(gyp.main(args)) | 384 sys.exit(gyp.main(args)) |
OLD | NEW |