Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2012 Google Inc. All rights reserved. | 1 # Copyright (c) 2012 Google Inc. 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 """ | 5 """ |
| 6 This module contains classes that help to emulate xcodebuild behavior on top of | 6 This module contains classes that help to emulate xcodebuild behavior on top of |
| 7 other build systems, such as make and ninja. | 7 other build systems, such as make and ninja. |
| 8 """ | 8 """ |
| 9 | 9 |
| 10 import gyp.common | 10 import gyp.common |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 677 """Returns a list of shell commands that contain the shell commands | 677 """Returns a list of shell commands that contain the shell commands |
| 678 neccessary to strip this target's binary. These should be run as postbuilds | 678 neccessary to strip this target's binary. These should be run as postbuilds |
| 679 before the actual postbuilds run.""" | 679 before the actual postbuilds run.""" |
| 680 self.configname = configname | 680 self.configname = configname |
| 681 | 681 |
| 682 result = [] | 682 result = [] |
| 683 if (self._Test('DEPLOYMENT_POSTPROCESSING', 'YES', default='NO') and | 683 if (self._Test('DEPLOYMENT_POSTPROCESSING', 'YES', default='NO') and |
| 684 self._Test('STRIP_INSTALLED_PRODUCT', 'YES', default='NO')): | 684 self._Test('STRIP_INSTALLED_PRODUCT', 'YES', default='NO')): |
| 685 | 685 |
| 686 default_strip_style = 'debugging' | 686 default_strip_style = 'debugging' |
| 687 if self._IsBundle(): | 687 if self.spec['type'] == 'loadable_module' and self._IsBundle(): |
|
Mark Mentovai
2013/09/13 21:31:32
Wow, that’s a pretty ridiculous behavior to have t
| |
| 688 default_strip_style = 'non-global' | 688 default_strip_style = 'non-global' |
| 689 elif self.spec['type'] == 'executable': | 689 elif self.spec['type'] == 'executable': |
| 690 default_strip_style = 'all' | 690 default_strip_style = 'all' |
| 691 | 691 |
| 692 strip_style = self._Settings().get('STRIP_STYLE', default_strip_style) | 692 strip_style = self._Settings().get('STRIP_STYLE', default_strip_style) |
| 693 strip_flags = { | 693 strip_flags = { |
| 694 'all': '', | 694 'all': '', |
| 695 'non-global': '-x', | 695 'non-global': '-x', |
| 696 'debugging': '-S', | 696 'debugging': '-S', |
| 697 }[strip_style] | 697 }[strip_style] |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1124 def GetSpecPostbuildCommands(spec, quiet=False): | 1124 def GetSpecPostbuildCommands(spec, quiet=False): |
| 1125 """Returns the list of postbuilds explicitly defined on |spec|, in a form | 1125 """Returns the list of postbuilds explicitly defined on |spec|, in a form |
| 1126 executable by a shell.""" | 1126 executable by a shell.""" |
| 1127 postbuilds = [] | 1127 postbuilds = [] |
| 1128 for postbuild in spec.get('postbuilds', []): | 1128 for postbuild in spec.get('postbuilds', []): |
| 1129 if not quiet: | 1129 if not quiet: |
| 1130 postbuilds.append('echo POSTBUILD\\(%s\\) %s' % ( | 1130 postbuilds.append('echo POSTBUILD\\(%s\\) %s' % ( |
| 1131 spec['target_name'], postbuild['postbuild_name'])) | 1131 spec['target_name'], postbuild['postbuild_name'])) |
| 1132 postbuilds.append(gyp.common.EncodePOSIXShellList(postbuild['action'])) | 1132 postbuilds.append(gyp.common.EncodePOSIXShellList(postbuild['action'])) |
| 1133 return postbuilds | 1133 return postbuilds |
| OLD | NEW |