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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 gn_args = '' | 185 gn_args = '' |
186 | 186 |
187 # Note: These are the additional flags passed to various builds by builders | 187 # Note: These are the additional flags passed to various builds by builders |
188 # on the main waterfall. We'll probably need to add these at some point: | 188 # on the main waterfall. We'll probably need to add these at some point: |
189 # mac_strip_release=1 http://crbug.com/330301 | 189 # mac_strip_release=1 http://crbug.com/330301 |
190 # linux_dump_symbols=0 http://crbug.com/330300 | 190 # linux_dump_symbols=0 http://crbug.com/330300 |
191 # host_os=linux Probably can skip, GN knows the host OS. | 191 # host_os=linux Probably can skip, GN knows the host OS. |
192 # order_text_section=<path> http://crbug.com/330299 | 192 # order_text_section=<path> http://crbug.com/330299 |
193 # chromium_win_pch=0 http://crbug.com/297678 | 193 # chromium_win_pch=0 http://crbug.com/297678 |
194 # chromium_ios_signing=0 http://crbug.com/330302 | 194 # chromium_ios_signing=0 http://crbug.com/330302 |
195 # linux_use_tcmalloc=0 http://crbug.com/330303 | 195 # use_allocator=tcmalloc http://crbug.com/330303, 345554 |
196 # release_extra_flags=... http://crbug.com/330305 | 196 # release_extra_flags=... http://crbug.com/330305 |
197 | 197 |
198 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for | 198 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for |
199 # gn when the key is set to the given value in the GYP arguments. | 199 # gn when the key is set to the given value in the GYP arguments. |
200 remap_cases = [ | 200 remap_cases = [ |
201 ('android_webview_build', '1', 'is_android_webview_build=true'), | 201 ('android_webview_build', '1', 'is_android_webview_build=true'), |
202 ('branding', 'Chrome', 'is_chrome_branded=true'), | 202 ('branding', 'Chrome', 'is_chrome_branded=true'), |
203 ('build_for_tool', 'drmemory', 'disable_iterator_debugging=true'), | 203 ('build_for_tool', 'drmemory', 'disable_iterator_debugging=true'), |
204 ('build_for_tool', 'tsan', 'disable_iterator_debugging=true'), | 204 ('build_for_tool', 'tsan', 'disable_iterator_debugging=true'), |
205 ('buildtype', 'Official', 'is_official_build=true'), | 205 ('buildtype', 'Official', 'is_official_build=true'), |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
569 print 'Running build/landmines.py...' | 569 print 'Running build/landmines.py...' |
570 subprocess.check_call( | 570 subprocess.check_call( |
571 [sys.executable, os.path.join(script_dir, 'landmines.py')]) | 571 [sys.executable, os.path.join(script_dir, 'landmines.py')]) |
572 | 572 |
573 if vs2013_runtime_dll_dirs: | 573 if vs2013_runtime_dll_dirs: |
574 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs | 574 x64_runtime, x86_runtime = vs2013_runtime_dll_dirs |
575 CopyVsRuntimeDlls(os.path.join(chrome_src, GetOutputDirectory()), | 575 CopyVsRuntimeDlls(os.path.join(chrome_src, GetOutputDirectory()), |
576 (x86_runtime, x64_runtime)) | 576 (x86_runtime, x64_runtime)) |
577 | 577 |
578 sys.exit(gyp_rc) | 578 sys.exit(gyp_rc) |
OLD | NEW |