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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 ('fastbuild', '0', 'symbol_level=2'), | 204 ('fastbuild', '0', 'symbol_level=2'), |
205 ('fastbuild', '1', 'symbol_level=1'), | 205 ('fastbuild', '1', 'symbol_level=1'), |
206 ('fastbuild', '2', 'symbol_level=0'), | 206 ('fastbuild', '2', 'symbol_level=0'), |
207 ('OS', 'ios', 'os="ios"'), | 207 ('OS', 'ios', 'os="ios"'), |
208 ('OS', 'android', 'os="android"'), | 208 ('OS', 'android', 'os="android"'), |
209 ('chromeos', '1', 'os="chromeos"'), | 209 ('chromeos', '1', 'os="chromeos"'), |
210 ('use_aura', '1', 'use_aura=true'), | 210 ('use_aura', '1', 'use_aura=true'), |
211 ('use_goma', '1', 'use_goma=true'), | 211 ('use_goma', '1', 'use_goma=true'), |
212 ('asan', '1', 'is_asan=true'), | 212 ('asan', '1', 'is_asan=true'), |
213 ('lsan', '1', 'is_lsan=true'), | 213 ('lsan', '1', 'is_lsan=true'), |
| 214 ('msan', '1', 'is_msan=true'), |
214 ('tsan', '1', 'is_tsan=true'), | 215 ('tsan', '1', 'is_tsan=true'), |
215 ] | 216 ] |
216 for i in remap_cases: | 217 for i in remap_cases: |
217 if i[0] in vars_dict and vars_dict[i[0]] == i[1]: | 218 if i[0] in vars_dict and vars_dict[i[0]] == i[1]: |
218 gn_args += ' ' + i[2] | 219 gn_args += ' ' + i[2] |
219 | 220 |
220 # These string arguments get passed directly as GN strings. | 221 # These string arguments get passed directly as GN strings. |
221 for v in ['android_src', 'windows_sdk_path', 'arm_float_abi']: | 222 for v in ['android_src', 'windows_sdk_path', 'arm_float_abi']: |
222 if v in vars_dict: | 223 if v in vars_dict: |
223 gn_args += ' ' + v + '=' + EscapeStringForGN(vars_dict[v]) | 224 gn_args += ' ' + v + '=' + EscapeStringForGN(vars_dict[v]) |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 args.extend( | 424 args.extend( |
424 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) | 425 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) |
425 | 426 |
426 args.extend(['-D', 'gyp_output_dir=' + GetOutputDirectory()]) | 427 args.extend(['-D', 'gyp_output_dir=' + GetOutputDirectory()]) |
427 | 428 |
428 print 'Updating projects from gyp files...' | 429 print 'Updating projects from gyp files...' |
429 sys.stdout.flush() | 430 sys.stdout.flush() |
430 | 431 |
431 # Off we go... | 432 # Off we go... |
432 sys.exit(gyp.main(args)) | 433 sys.exit(gyp.main(args)) |
OLD | NEW |