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