| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 # chromium_win_pch=0 http://crbug.com/297678 | 166 # chromium_win_pch=0 http://crbug.com/297678 |
| 167 # chromium_ios_signing=0 http://crbug.com/330302 | 167 # chromium_ios_signing=0 http://crbug.com/330302 |
| 168 # linux_use_tcmalloc=0 http://crbug.com/330303 | 168 # linux_use_tcmalloc=0 http://crbug.com/330303 |
| 169 # release_extra_flags=... http://crbug.com/330305 | 169 # release_extra_flags=... http://crbug.com/330305 |
| 170 | 170 |
| 171 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for | 171 # These tuples of (key, value, gn_arg_string) use the gn_arg_string for |
| 172 # gn when the key is set to the given value in the GYP arguments. | 172 # gn when the key is set to the given value in the GYP arguments. |
| 173 remap_cases = [ | 173 remap_cases = [ |
| 174 ('android_webview_build', '1', 'is_android_webview_build=true'), | 174 ('android_webview_build', '1', 'is_android_webview_build=true'), |
| 175 ('branding', 'Chrome', 'is_chrome_branded=true'), | 175 ('branding', 'Chrome', 'is_chrome_branded=true'), |
| 176 ('build_for_tool', 'drmemory', 'disable_iterator_debugging=true'), |
| 177 ('build_for_tool', 'tsan', 'disable_iterator_debugging=true'), |
| 176 ('buildtype', 'Official', 'is_official_build=true'), | 178 ('buildtype', 'Official', 'is_official_build=true'), |
| 177 ('component', 'shared_library', 'is_component_build=true'), | 179 ('component', 'shared_library', 'is_component_build=true'), |
| 178 ('clang', '1', 'is_clang=true'), | 180 ('clang', '1', 'is_clang=true'), |
| 179 ('clang_use_chrome_plugins', '0', 'clang_use_chrome_plugins=false'), | 181 ('clang_use_chrome_plugins', '0', 'clang_use_chrome_plugins=false'), |
| 180 ('disable_glibcxx_debug', '1', 'disable_glibcxx_debug=true'), | 182 ('disable_glibcxx_debug', '1', 'disable_iterator_debugging=true'), |
| 181 ('target_arch', 'ia32', 'cpu_arch="x86"'), | 183 ('target_arch', 'ia32', 'cpu_arch="x86"'), |
| 182 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'), | 184 ('target_arch', 'x64', 'cpu_arch="x64" force_win64=true'), |
| 183 ('target_arch', 'arm', 'cpu_arch="arm"'), | 185 ('target_arch', 'arm', 'cpu_arch="arm"'), |
| 184 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'), | 186 ('target_arch', 'mipsel', 'cpu_arch="mipsel"'), |
| 185 ('fastbuild', '0', 'symbol_level=2'), | 187 ('fastbuild', '0', 'symbol_level=2'), |
| 186 ('fastbuild', '1', 'symbol_level=1'), | 188 ('fastbuild', '1', 'symbol_level=1'), |
| 187 ('fastbuild', '2', 'symbol_level=0'), | 189 ('fastbuild', '2', 'symbol_level=0'), |
| 188 ('OS', 'ios', 'os="ios"'), | 190 ('OS', 'ios', 'os="ios"'), |
| 189 ('OS', 'android', 'os="android"'), | 191 ('OS', 'android', 'os="android"'), |
| 190 ('chromeos', '1', 'os="chromeos"'), | 192 ('chromeos', '1', 'os="chromeos"'), |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 if not RunGN(supplemental_includes): | 397 if not RunGN(supplemental_includes): |
| 396 sys.exit(1) | 398 sys.exit(1) |
| 397 args.extend( | 399 args.extend( |
| 398 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) | 400 ['-I' + i for i in additional_include_files(supplemental_includes, args)]) |
| 399 | 401 |
| 400 print 'Updating projects from gyp files...' | 402 print 'Updating projects from gyp files...' |
| 401 sys.stdout.flush() | 403 sys.stdout.flush() |
| 402 | 404 |
| 403 # Off we go... | 405 # Off we go... |
| 404 sys.exit(gyp.main(args)) | 406 sys.exit(gyp.main(args)) |
| OLD | NEW |