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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for | 131 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for |
132 # gn when the key is set to the given value in the GYP arguments. | 132 # gn when the key is set to the given value in the GYP arguments. |
133 remap_cases = [ | 133 remap_cases = [ |
134 ('branding', 'Chrome', 'is_chrome_branded=true'), | 134 ('branding', 'Chrome', 'is_chrome_branded=true'), |
135 ('buildtype', 'Official', 'is_official_build=true'), | 135 ('buildtype', 'Official', 'is_official_build=true'), |
136 ('component', 'shared_library', 'is_component_build=true'), | 136 ('component', 'shared_library', 'is_component_build=true'), |
137 ('clang', '1', 'is_clang=true'), | 137 ('clang', '1', 'is_clang=true'), |
138 ('target_arch', 'ia32', 'cpu_arch="x86"'), | 138 ('target_arch', 'ia32', 'cpu_arch="x86"'), |
139 ('target_arch', 'x64', 'cpu_arch="x64"'), | 139 ('target_arch', 'x64', 'cpu_arch="x64"'), |
140 ('target_arch', 'arm', 'cpu_arch="arm"'), | 140 ('target_arch', 'arm', 'cpu_arch="arm"'), |
| 141 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'), |
141 ('fastbuild', '0', 'symbol_level=2'), | 142 ('fastbuild', '0', 'symbol_level=2'), |
142 ('fastbuild', '1', 'symbol_level=1'), | 143 ('fastbuild', '1', 'symbol_level=1'), |
143 ('fastbuild', '2', 'symbol_level=0'), | 144 ('fastbuild', '2', 'symbol_level=0'), |
144 ('OS', 'ios', 'os="ios"'), | 145 ('OS', 'ios', 'os="ios"'), |
145 ('OS', 'android', 'os="android"'), | 146 ('OS', 'android', 'os="android"'), |
146 ('chromeos', '1', 'os="chromeos"'), | 147 ('chromeos', '1', 'os="chromeos"'), |
147 ('use_aura', '1', 'use_aura=true'), | 148 ('use_aura', '1', 'use_aura=true'), |
148 ('asan', '1', 'is_asan=true'), | 149 ('asan', '1', 'is_asan=true'), |
149 ('lsan', '1', 'is_lsan=true'), | 150 ('lsan', '1', 'is_lsan=true'), |
150 ] | 151 ] |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 # to enfore syntax checking. | 339 # to enfore syntax checking. |
339 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') | 340 syntax_check = os.environ.get('CHROMIUM_GYP_SYNTAX_CHECK') |
340 if syntax_check and int(syntax_check): | 341 if syntax_check and int(syntax_check): |
341 args.append('--check') | 342 args.append('--check') |
342 | 343 |
343 print 'Updating projects from gyp files...' | 344 print 'Updating projects from gyp files...' |
344 sys.stdout.flush() | 345 sys.stdout.flush() |
345 | 346 |
346 # Off we go... | 347 # Off we go... |
347 sys.exit(gyp.main(args)) | 348 sys.exit(gyp.main(args)) |
OLD | NEW |