This repository was archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 173
/
Copy pathCore.targets
224 lines (213 loc) · 12.2 KB
/
Core.targets
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
220
221
222
223
224
<Project>
<PropertyGroup>
<_FirebaseCoreAssemblyName>Firebase.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_FirebaseCoreAssemblyName>
<_GoogleAppMeasurementItemsFolder>GAppM-8.9.1</_GoogleAppMeasurementItemsFolder>
<_GoogleAppMeasurementSDKBaseFolder>$(XamarinBuildDownloadDir)$(_GoogleAppMeasurementItemsFolder)\GoogleAppMeasurement-8.9.1\Frameworks\</_GoogleAppMeasurementSDKBaseFolder>
</PropertyGroup>
<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
<XamarinBuildDownload Include="$(_GoogleAppMeasurementItemsFolder)">
<Url>https://dl.google.com/firebase/ios/analytics/59128155f949f77d/GoogleAppMeasurement-8.9.1.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildRestoreResources Include="_FCrDownloadedItems" />
</ItemGroup>
<Target Name="_FCrDownloadedItems">
<ItemGroup Condition="'$(FirebaseWithoutAdIdSupport)'!='True'">
<!-- From https://dl.google.com/firebase/ios/analytics/59128155f949f77d/GoogleAppMeasurement-8.9.1.tar.gz -->
<NativeReference Include="$(_GoogleAppMeasurementSDKBaseFolder)GoogleAppMeasurement.xcframework">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<LinkerFlags>-ObjC -lc++ -lsqlite3 -lz</LinkerFlags>
<Frameworks>StoreKit</Frameworks>
</NativeReference>
</ItemGroup>
<ItemGroup Condition="'$(FirebaseWithoutAdIdSupport)'=='True'">
<!-- From https://dl.google.com/firebase/ios/analytics/59128155f949f77d/GoogleAppMeasurement-8.9.1.tar.gz -->
<NativeReference Include="$(_GoogleAppMeasurementSDKBaseFolder)GoogleAppMeasurementWithoutAdIdSupport.xcframework">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<LinkerFlags>-ObjC -lc++ -lsqlite3 -lz</LinkerFlags>
<Frameworks>StoreKit</Frameworks>
</NativeReference>
</ItemGroup>
</Target>
<PropertyGroup>
<_FirebaseCoreId>FirebaseCore</_FirebaseCoreId>
<_FirebaseCoreDiagnosticsId>FirebaseCoreDiagnostics</_FirebaseCoreDiagnosticsId>
<_GTMSessionFetcherId>GTMSessionFetcher</_GTMSessionFetcherId>
<_GoogleAPIClientForRESTId>GoogleAPIClientForREST</_GoogleAPIClientForRESTId>
<_GoogleDataTransportId>GoogleDataTransport</_GoogleDataTransportId>
<_FBLPromisesId>FBLPromises</_FBLPromisesId>
<_GoogleToolboxForMacId>GoogleToolboxForMac</_GoogleToolboxForMacId>
<_GoogleUtilitiesId>GoogleUtilities</_GoogleUtilitiesId>
<_GoogleUtilitiesComponentsId>GoogleUtilitiesComponents</_GoogleUtilitiesComponentsId>
<_nanopbId>nanopb</_nanopbId>
<_leveldbId>leveldb</_leveldbId>
<_ProtobufId>Protobuf</_ProtobufId>
</PropertyGroup>
<ItemGroup Condition="('$(OutputType)' != 'Library' OR '$(IsAppExtension)' == 'True') AND ('$(TargetFrameworks)' == '' AND '$(TargetFramework)' == '')">
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\FirebaseCore.xcframework">
<_Id>$(_FirebaseCoreId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\FirebaseCoreDiagnostics.xcframework">
<_Id>$(_FirebaseCoreDiagnosticsId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\GTMSessionFetcher.xcframework">
<_Id>$(_GTMSessionFetcherId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\GoogleAPIClientForREST.xcframework">
<_Id>$(_GoogleAPIClientForRESTId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\GoogleDataTransport.xcframework">
<_Id>$(_GoogleDataTransportId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\FBLPromises.xcframework">
<_Id>$(_FBLPromisesId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\GoogleToolboxForMac.xcframework">
<_Id>$(_GoogleToolboxForMacId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\GoogleUtilities.xcframework">
<_Id>$(_GoogleUtilitiesId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework">
<_Id>$(_GoogleUtilitiesComponentsId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\nanopb.xcframework">
<_Id>$(_nanopbId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\leveldb.xcframework">
<_Id>$(_leveldbId)</_Id>
</_NativeReference>
<_NativeReference Include="$(MSBuildThisFileDirectory)..\lib\xamarinios10\Firebase.Core.resources\Protobuf.xcframework">
<_Id>$(_ProtobufId)</_Id>
</_NativeReference>
</ItemGroup>
<Target Name="_ResolveNativeReferencesForFirebaseCore"
BeforeTargets="ResolveNativeReferences"
Condition="('$(TargetFrameworks)' == '' AND '$(TargetFramework)' == '') OR '$(IsBindingProject)' == 'true'">
<ItemGroup>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_FirebaseCoreId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<Frameworks>Foundation UIKit</Frameworks>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_FirebaseCoreDiagnosticsId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<Frameworks>Foundation</Frameworks>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_GTMSessionFetcherId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_GoogleAPIClientForRESTId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_GoogleDataTransportId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<Frameworks>SystemConfiguration CoreTelephony</Frameworks>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_FBLPromisesId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_GoogleToolboxForMacId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<Frameworks>SystemConfiguration</Frameworks>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_GoogleUtilitiesId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<Frameworks>Security SystemConfiguration</Frameworks>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_GoogleUtilitiesComponentsId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_nanopbId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_leveldbId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
</_NativeReference>
<_NativeReference Update="@(_NativeReference)" Condition="'%(_NativeReference._Id)' == '$(_ProtobufId)'">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
</_NativeReference>
<NativeReference Include="@(_NativeReference)" />
</ItemGroup>
</Target>
<!-- -->
<!-- Targets to strip bitcode from specified frameworks -->
<!-- -->
<!-- Framework names to strip bitcode -->
<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
<_FrameworkNamesToStripBitcode Include="GoogleAppMeasurement" Condition="'$(FirebaseWithoutAdIdSupport)'!='True'" />
<_FrameworkNamesToStripBitcode Include="GoogleAppMeasurementIdentitySupport" Condition="'$(FirebaseWithoutAdIdSupport)'=='True'" />
</ItemGroup>
<PropertyGroup>
<!-- Properties used to strip bitcode from frameworks when using Visual Studio for Mac -->
<_FirebaseStripBitcodeFromFrameworksMasterAfterTargets Condition="'$(OS)'=='Unix'">_ExpandNativeReferences</_FirebaseStripBitcodeFromFrameworksMasterAfterTargets>
<_FirebaseStripBitcodeFromFrameworksMasterDependsOnTargets Condition="'$(OS)'=='Unix'">_FirebaseStripBitcodeFromFrameworksOnMac</_FirebaseStripBitcodeFromFrameworksMasterDependsOnTargets>
<!-- Properties used to strip bitcode from frameworks when using Visual Studio for Windows -->
<_FirebaseStripBitcodeFromFrameworksMasterAfterTargets Condition="'$(OS)'!='Unix'">_ComputeFrameworkFilesToPublish</_FirebaseStripBitcodeFromFrameworksMasterAfterTargets>
<_FirebaseStripBitcodeFromFrameworksMasterDependsOnTargets Condition="'$(OS)'!='Unix'">_FirebaseStripBitcodeFromFrameworksOnWindows</_FirebaseStripBitcodeFromFrameworksMasterDependsOnTargets>
</PropertyGroup>
<Target Name="_FirebaseStripBitcodeFromFrameworksMasterTarget"
Condition="'$(_FirebaseStripBitcodeFromFrameworksMasterDependsOnTargets)'!='' AND ('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True') AND '$(_SdkIsSimulator)'=='False' AND @(_FrameworkNamesToStripBitcode->Count()) != 0"
AfterTargets="$(_FirebaseStripBitcodeFromFrameworksMasterAfterTargets)"
DependsOnTargets="$(_FirebaseStripBitcodeFromFrameworksMasterDependsOnTargets)" />
<Target Name="_FirebaseStripBitcodeFromFrameworksOnMac">
<!-- Get the frameworks to strip bitcode -->
<FindInList
List="@(_FrameworkNativeReference)"
ItemSpecToFind="%(_FrameworkNamesToStripBitcode.Identity)"
MatchFileNameOnly="True">
<Output TaskParameter="ItemFound" ItemName="_FrameworksToStripBitcode"/>
</FindInList>
<!-- Find the bitcode_strip command -->
<Exec Command="xcrun -find bitcode_strip" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="_BitcodeStripCommand" />
</Exec>
<!-- Strip the bitcode from frameworks -->
<Exec Command="$(_BitcodeStripCommand) %(_FrameworksToStripBitcode.Identity) -r -o %(_FrameworksToStripBitcode.Identity)" />
</Target>
<Target Name="_FirebaseStripBitcodeFromFrameworksOnWindows"
Condition="'$(IsMacEnabled)'=='true'">
<!-- Get the frameworks to strip bitcode -->
<FindInList
CaseSensitive="false"
List="@(_FrameworkNativeReference)"
ItemSpecToFind="%(_FrameworkNamesToStripBitcode.Identity)"
MatchFileNameOnly="True">
<Output TaskParameter="ItemFound" ItemName="_FrameworksToStripBitcode"/>
</FindInList>
<!-- Strip the bitcode from frameworks -->
<Exec SessionId="$(BuildSessionId)"
Command=""%24(xcrun -find bitcode_strip)" %(_FrameworksToStripBitcode.Identity) -r -o %(_FrameworksToStripBitcode.Identity)" />
<CopyFileFromBuildServer
SessionId="$(BuildSessionId)"
File="%(_FrameworksToStripBitcode.Identity)"
TargetFile="%(_FrameworksToStripBitcode.Identity)" />
</Target>
</Project>