OLD | NEW |
---|---|
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 | 6 |
7 # This file declares arguments and configs that control whether dSYM debug | 7 # This file declares arguments and configs that control whether dSYM debug |
8 # info is produced and whether build products are stripped. | 8 # info is produced and whether build products are stripped. |
9 | 9 |
10 declare_args() { | 10 declare_args() { |
11 # Produce dSYM files for targets that are configured to do so. dSYM | 11 # Produce dSYM files for targets that are configured to do so. dSYM |
12 # generation is controlled globally as it is a linker output (produced via | 12 # generation is controlled globally as it is a linker output (produced via |
13 # the //build/toolchain/mac/linker_driver.py. Enabling this will result in | 13 # the //build/toolchain/mac/linker_driver.py. Enabling this will result in |
14 # all shared library, loadable module, and executable targets having a dSYM | 14 # all shared library, loadable module, and executable targets having a dSYM |
15 # generated. | 15 # generated. |
16 enable_dsyms = is_official_build | 16 enable_dsyms = is_official_build |
17 | 17 |
18 # Strip symbols from linked targets by default. If this is enabled, the | 18 # Strip symbols from linked targets by default. If this is enabled, the |
19 # //build/config/mac:strip_all config will be applied to all linked targets. | 19 # //build/config/mac:strip_all config will be applied to all linked targets. |
20 # If custom stripping paramters are required, remove that config from a | 20 # If custom stripping paramters are required, remove that config from a |
21 # linked target and apply custom -Wcrl,strip flags. See | 21 # linked target and apply custom -Wcrl,strip flags. See |
22 # //build/toolchain/mac/linker_driver.py for more information. | 22 # //build/toolchain/mac/linker_driver.py for more information. |
23 enable_stripping = is_official_build | 23 enable_stripping = is_official_build |
24 | |
25 # If enable_stripping=true, setting this to true will save an unstripped | |
Mark Mentovai
2016/07/15 19:24:17
This leads with the less important thing and burie
Robert Sesek
2016/07/15 20:50:22
Reworded to be in the same style as other args.
| |
26 # copy of build products with an ".unstripped" suffix. | |
27 save_unstripped_output = false | |
24 } | 28 } |
29 | |
30 if (save_unstripped_output) { | |
31 assert(enable_stripping, | |
32 "save_unstripped_output=true requires enable_stripping=true") | |
Mark Mentovai
2016/07/15 19:24:17
meh.
Robert Sesek
2016/07/15 20:50:22
I think restricting the number of odd configuratio
| |
33 } | |
OLD | NEW |