1 # Copyright (c) 2011 Google Inc. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 5 # These xcode_settings affect stripping: 6 # "Deployment postprocessing involves stripping the binary, and setting 7 # its file mode, owner, and group." 8 #'DEPLOYMENT_POSTPROCESSING': 'YES', 9 10 # "Specifies whether to strip symbol information from the binary. 11 # Prerequisite: $DEPLOYMENT_POSTPROCESSING = YES" "Default Value: 'NO'" 12 #'STRIP_INSTALLED_PRODUCT': 'YES', 13 14 # "Values: 15 # * all: Strips the binary completely, removing the symbol table and 16 # relocation information 17 # * non-global: Strips nonglobal symbols but saves external symbols. 18 # * debugging: Strips debugging symbols but saves local and global 19 # symbols." 20 # (maps to no flag, -x, -S in that order) 21 #'STRIP_STYLE': 'non-global', 22 23 # "Additional strip flags" 24 #'STRIPFLAGS': '-c', 25 26 # "YES: Copied binaries are stripped of debugging symbols. This does 27 # not cause the binary produced by the linker to be stripped. Use 28 # 'STRIP_INSTALLED_PRODUCT (Strip Linked Product)' to have the linker 29 # strip the binary." 30 #'COPY_PHASE_STRIP': 'NO', 31 { 32 'targets': [ 33 { 34 'target_name': 'no_postprocess', 35 'type': 'shared_library', 36 'sources': [ 'file.c', ], 37 'xcode_settings': { 38 'DEPLOYMENT_POSTPROCESSING': 'NO', 39 'STRIP_INSTALLED_PRODUCT': 'YES', 40 }, 41 }, 42 { 43 'target_name': 'no_strip', 44 'type': 'shared_library', 45 'sources': [ 'file.c', ], 46 'xcode_settings': { 47 'DEPLOYMENT_POSTPROCESSING': 'YES', 48 'STRIP_INSTALLED_PRODUCT': 'NO', 49 }, 50 }, 51 { 52 'target_name': 'strip_all', 53 'type': 'shared_library', 54 'sources': [ 'file.c', ], 55 'xcode_settings': { 56 'DEPLOYMENT_POSTPROCESSING': 'YES', 57 'STRIP_INSTALLED_PRODUCT': 'YES', 58 'STRIP_STYLE': 'all', 59 }, 60 }, 61 { 62 'target_name': 'strip_nonglobal', 63 'type': 'shared_library', 64 'sources': [ 'file.c', ], 65 'xcode_settings': { 66 'DEPLOYMENT_POSTPROCESSING': 'YES', 67 'STRIP_INSTALLED_PRODUCT': 'YES', 68 'STRIP_STYLE': 'non-global', 69 }, 70 }, 71 { 72 'target_name': 'strip_debugging', 73 'type': 'shared_library', 74 'sources': [ 'file.c', ], 75 'xcode_settings': { 76 'DEPLOYMENT_POSTPROCESSING': 'YES', 77 'STRIP_INSTALLED_PRODUCT': 'YES', 78 'STRIP_STYLE': 'debugging', 79 }, 80 }, 81 { 82 'target_name': 'strip_all_custom_flags', 83 'type': 'shared_library', 84 'sources': [ 'file.c', ], 85 'xcode_settings': { 86 'DEPLOYMENT_POSTPROCESSING': 'YES', 87 'STRIP_INSTALLED_PRODUCT': 'YES', 88 'STRIP_STYLE': 'all', 89 'STRIPFLAGS': '-c', 90 }, 91 }, 92 { 93 'target_name': 'strip_all_bundle', 94 'type': 'shared_library', 95 'mac_bundle': '1', 96 'sources': [ 'file.c', ], 97 'xcode_settings': { 98 'DEPLOYMENT_POSTPROCESSING': 'YES', 99 'STRIP_INSTALLED_PRODUCT': 'YES', 100 'STRIP_STYLE': 'all', 101 }, 102 }, 103 { 104 'target_name': 'strip_save', 105 'type': 'shared_library', 106 'sources': [ 'file.c', ], 107 'dependencies': [ 108 'subdirectory/subdirectory.gyp:nested_strip_save', 109 'subdirectory/subdirectory.gyp:nested_strip_save_postbuild', 110 ], 111 'xcode_settings': { 112 'DEPLOYMENT_POSTPROCESSING': 'YES', 113 'STRIP_INSTALLED_PRODUCT': 'YES', 114 'STRIPFLAGS': '-s $(CHROMIUM_STRIP_SAVE_FILE)', 115 'CHROMIUM_STRIP_SAVE_FILE': 'strip.saves', 116 }, 117 }, 118 ], 119 } 120