-
Notifications
You must be signed in to change notification settings - Fork 4
/
osx_plist.inc
219 lines (211 loc) · 5.33 KB
/
osx_plist.inc
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
PRINTNL <?xml version="1.0" encoding="UTF-8"?>
PRINTNL <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
PRINTNL <plist version="1.0">
PRINTNL <dict>
HAS_EXTENSIONS =
HAS_PROTOCOLS =
#IFNDEF TARGET_IPHONE
FOR EACH SOURCE
FOR EACH MIME_TYPE
IF "%(EXTENSION)"!=""
../../HAS_EXTENSIONS = 1
ENDIF
ENDFOR
ENDFOR
FOR EACH USE
FOR EACH SOURCE
FOR EACH MIME_TYPE
IF "%(EXTENSION)"!=""
../../../HAS_EXTENSIONS = 1
ENDIF
ENDFOR
ENDFOR
ENDFOR
ENDIF // !TARGET_IPHONE
IFDEF TARGET_IPHONE_SDK
FOR EACH SOURCE
FOR EACH PROTOCOL
../../HAS_PROTOCOLS = 1
ENDFOR
ENDFOR
FOR EACH USE
FOR EACH SOURCE
FOR EACH PROTOCOL
../../../HAS_PROTOCOLS = 1
ENDFOR
ENDFOR
ENDFOR
ENDIF // TARGET_IPHONE_SDK
PRINTNL <key>CFBundleDevelopmentRegion</key>
PRINTNL <string>English</string>
IF %(PROJECT_NAME)
PRINTNL <key>CFBundleDisplayName</key>
PRINTNL <string>%(PROJECT_NAME)</string>
ENDIF
IF %(HAS_EXTENSIONS)
PRINTNL <key>CFBundleDocumentTypes</key>
PRINTNL <array>
FOR EACH SOURCE
FOR EACH MIME_TYPE
PRINTNL <dict>
IF "%(EXTENSION)"!=""
PRINTNL <key>CFBundleTypeExtensions</key>
PRINTNL <array>
FOR EACH EXTENSION
PRINTNL <string>%(NAME)</string>
ENDFOR
PRINTNL </array>
ENDIF
PRINTNL <key>CFBundleTypeMIMETypes</key>
PRINTNL <array>
PRINTNL <string>%(NAME)</string>
PRINTNL </array>
PRINTNL <key>CFBundleTypeRole</key>
PRINTNL <string>Viewer</string>
PRINTNL </dict>
ENDFOR
ENDFOR
FOR EACH USE
FOR EACH SOURCE
FOR EACH MIME_TYPE
PRINTNL <dict>
IF %(EXTENSION)
PRINTNL <key>CFBundleTypeExtensions</key>
PRINTNL <array>
FOR EACH EXTENSION
PRINTNL <string>%(NAME)</string>
ENDFOR
PRINTNL </array>
ENDIF
PRINTNL <key>CFBundleTypeMIMETypes</key>
PRINTNL <array>
PRINTNL <string>%(NAME)</string>
PRINTNL </array>
PRINTNL <key>CFBundleTypeRole</key>
PRINTNL <string>Viewer</string>
PRINTNL </dict>
ENDFOR
ENDFOR
ENDFOR
PRINTNL </array>
ENDIF
IF %(HAS_PROTOCOLS)
PRINTNL <key>CFBundleURLTypes</key>
PRINTNL <array>
PRINTNL <dict>
PRINTNL <key>CFBundleURLName</key>
PRINTNL <string>com.%(PROJECT_VENDOR).%(NAME)</string>
PRINTNL <key>CFBundleURLSchemes</key>
PRINTNL <array>
FOR EACH SOURCE
FOR EACH PROTOCOL
PRINTNL <string>%(NAME)</string>
ENDFOR
ENDFOR
FOR EACH USE
FOR EACH SOURCE
FOR EACH PROTOCOL
PRINTNL <string>%(NAME)</string>
ENDFOR
ENDFOR
ENDFOR
PRINTNL </array>
PRINTNL </dict>
PRINTNL </array>
ENDIF
IF %(OSX_STRINGS)
PRINTNL <key>CFBundleDevelopmentRegion</key>
PRINTNL <string>%(OSX_STRINGS)</string>
ENDIF
PRINTNL <key>CFBundleExecutable</key>
IF %(PROJECT_PATH)
PRINTNL <string>%(PROJECT_PATH)</string>
ELSE
PRINTNL <string>%(NAME)</string>
ENDIF
IF %(PROJECT_NAME)
PRINTNL <key>CFBundleGetInfoString</key>
PRINTNL <string>%(PROJECT_NAME)</string>
ENDIF
IFNDEF TARGET_IPHONE
IF %(OSX_ICON)
PRINTNL <key>CFBundleIconFile</key>
PRINTNL <string>%(<OSX_ICON).%(>OSX_ICON)</string>
ELIF %(ICON)
PRINTNL <key>CFBundleIconFile</key>
PRINTNL <string>%(<ICON).icns</string>
ENDIF
ELSE
IF %(ICON)
PRINTNL <key>CFBundleIconFile</key>
PRINTNL <string>%(<ICON)_iphone2.png</string>
ENDIF
PRINTNL <key>UIRequiresPersistentWiFi</key>
PRINTNL <true/>
ENDIF
IF %(PROJECT_VENDOR)
PRINTNL <key>CFBundleIdentifier</key>
PRINTNL <string>com.%(PROJECT_VENDOR).%(NAME)</string>
ENDIF
PRINTNL <key>CFBundleInfoDictionaryVersion</key>
PRINTNL <string>6.0</string>
PRINTNL <key>CFBundlePackageType</key>
IF (%(TYPE)==DLL)
PRINTNL <string>BNDL</string>
ELSE
PRINTNL <string>APPL</string>
ENDIF
IF %(PROJECT_BUILD)
PRINTNL <key>CFBundleVersion</key>
PRINTNL <string>%(PROJECT_BUILD)</string>
ENDIF
IF %(PROJECT_VERSION)
PRINTNL <key>CFBundleShortVersionString</key>
PRINTNL <string>%(PROJECT_VERSION)</string>
ENDIF
IF %(PROJECT_FOURCC)
PRINTNL <key>CFBundleSignature</key>
PRINTNL <string>%('PROJECT_FOURCC)</string>
ENDIF
MAIN_NIB_FILE =
MAIN_NIB_CLASS =
FOR EACH SOURCE
IF ((%(>NAME)==nib) && (%(MAIN_NIB)))
../MAIN_NIB_FILE = %(NAME)
../MAIN_NIB_CLASS = %(MAIN_NIB)
ENDIF
ENDFOR
FOR EACH USE
FOR EACH SOURCE
IF ((%(>NAME)==nib) && (%(MAIN_NIB)))
../../MAIN_NIB_FILE = %(NAME)
../../MAIN_NIB_CLASS = %(MAIN_NIB)
ENDIF
ENDFOR
ENDFOR
IF ((%(MAIN_NIB_FILE)) && (%(MAIN_NIB_CLASS)))
PRINTNL <key>NSMainNibFile</key>
PRINTNL <string>%(<MAIN_NIB_FILE)</string>
PRINTNL <key>NSPrincipalClass</key>
PRINTNL <string>%(MAIN_NIB_CLASS)</string>
ENDIF
FOR EACH PLIST_KEY
PRINTNL <key>%(NAME)</key>
PRINTNL <string>%(STRING)</string>
ENDFOR
IFDEF TARGET_IPHONE
PRINTNL <key>LSRequiresIPhoneOS</key>
PRINTNL <true/>
IFDEF CONFIG_ITUNES_SHARING
PRINTNL <key>UIFileSharingEnabled</key>
PRINTNL <true/>
ENDIF
IFDEF CONFIG_BACKGROUND_AUDIO
PRINTNL <key>UIBackgroundModes</key>
PRINTNL <array>
PRINTNL <string>audio</string>
PRINTNL </array>
ENDIF
ENDIF
PRINTNL </dict>
PRINTNL </plist>