forked from xamarin/GoogleApisForiOSComponents
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MobileAds.targets
54 lines (53 loc) · 3.34 KB
/
MobileAds.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
<?xml version="1.0" encoding="UTF-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_GoogleMobileAdsAssemblyName>Google.MobileAds, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</_GoogleMobileAdsAssemblyName>
<_GoogleMobileAdsId>FAdM-7.57.0</_GoogleMobileAdsId>
<_GoogleMobileAdsConsentId>GCnsnt-1.0.5</_GoogleMobileAdsConsentId>
<_GoogleMobileAdsSDKBaseFolder>$(XamarinBuildDownloadDir)$(_GoogleMobileAdsId)\Frameworks\GoogleMobileAdsFramework-Current\</_GoogleMobileAdsSDKBaseFolder>
<_GoogleMobileAdsConsentSDKBaseFolder>$(XamarinBuildDownloadDir)$(_GoogleMobileAdsConsentId)\googleads-consent-sdk-ios-1.0.5\PersonalizedAdConsent\PersonalizedAdConsent\</_GoogleMobileAdsConsentSDKBaseFolder>
<_GoogleMobileAdsCopyConsentFormMasterBeforeTargets>_CodesignNativeLibraries</_GoogleMobileAdsCopyConsentFormMasterBeforeTargets>
<_GoogleMobileAdsCopyConsentFormMasterDependsOnTargets>_GoogleMobileAdsCopyConsentForm</_GoogleMobileAdsCopyConsentFormMasterDependsOnTargets>
</PropertyGroup>
<ItemGroup Condition="('$(OutputType)'!='Library' OR '$(IsAppExtension)'=='True')">
<XamarinBuildDownload Include="$(_GoogleMobileAdsId)">
<Url>https://dl.google.com/dl/cpdc/07dfd0b0ab9f9d12/Google-Mobile-Ads-SDK-7.57.0.tar.gz</Url>
<Kind>Tgz</Kind>
</XamarinBuildDownload>
<XamarinBuildDownload Include="$(_GoogleMobileAdsConsentId)">
<Url>https://github.com/googleads/googleads-consent-sdk-ios/archive/v1.0.5.zip</Url>
<Kind>Zip</Kind>
</XamarinBuildDownload>
<XamarinBuildRestoreResources Include="_FAdMDownloadedItems" />
</ItemGroup>
<Target Name="_FAdMDownloadedItems">
<ItemGroup>
<!-- From https://dl.google.com/dl/cpdc/07dfd0b0ab9f9d12/Google-Mobile-Ads-SDK-7.57.0.tar.gz -->
<NativeReference Include="$(_GoogleMobileAdsSDKBaseFolder)GoogleMobileAds.framework">
<Kind>Framework</Kind>
<SmartLink>True</SmartLink>
<ForceLoad>True</ForceLoad>
<LinkerFlags>-ObjC -lz -lsqlite3</LinkerFlags>
<Frameworks>AudioToolbox AVFoundation CFNetwork CoreGraphics CoreMedia CoreTelephony CoreVideo MediaPlayer MessageUI MobileCoreServices QuartzCore Security StoreKit SystemConfiguration</Frameworks>
<WeakFrameworks>AdSupport JavaScriptCore SafariServices WebKit</WeakFrameworks>
</NativeReference>
</ItemGroup>
</Target>
<Target Name="_GoogleMobileAdsCopyConsentFormMasterTargets"
Condition="'$(_GoogleMobileAdsCopyConsentFormMasterDependsOnTargets)'!=''"
BeforeTargets="$(_GoogleMobileAdsCopyConsentFormMasterBeforeTargets)"
DependsOnTargets="$(_GoogleMobileAdsCopyConsentFormMasterDependsOnTargets)" />
<Target Name="_GoogleMobileAdsCopyConsentForm">
<ItemGroup>
<GoogleMobileAdsCopyResources Include="$(_GoogleMobileAdsConsentSDKBaseFolder)PersonalizedAdConsent.bundle\consentform.html">
<TargetPath>$(AppBundleDir)\Frameworks\PersonalizedAdConsent.framework\PersonalizedAdConsent.bundle\consentform.html</TargetPath>
</GoogleMobileAdsCopyResources>
</ItemGroup>
<Copy Condition="'$(OS)'=='Unix'"
SourceFiles="@(GoogleMobileAdsCopyResources)"
DestinationFolder="$(AppBundleDir)\Frameworks\PersonalizedAdConsent.framework\PersonalizedAdConsent.bundle" />
<CopyFilesToBuildServer SessionId="$(BuildSessionId)"
Condition="'$(IsMacEnabled)'=='true' AND '$(OS)'!='Unix'"
Files="@(GoogleMobileAdsCopyResources)" />
</Target>
</Project>