Skip to content

Commit 0a8b344

Browse files
committed
wip
1 parent 59d8f06 commit 0a8b344

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

dotnet/targets/Xamarin.Shared.Sdk.targets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,7 @@
953953
</Target>
954954

955955
<Target Name="_CopyDirectoriesToBundle"
956-
DependsOnTargets="_CollectDecompressedPlugins;_ComputeFrameworkFilesToPublish;_CollectDecompressedXpcServices;_CreateStampLocationForCopyDirectoriesToBundle"
956+
DependsOnTargets="_CollectDecompressedPlugins;_ComputeFrameworkFilesToPublish;_CollectDecompressedXpcServices;_CreateStampLocationForCopyDirectoriesToBundle;_DetectSdkLocations"
957957
Inputs="@(_DirectoriesToPublish)"
958958
Outputs="@(_DirectoriesToPublish -> '%(StampLocation)')"
959959
>
@@ -976,6 +976,7 @@
976976
Source="%(_DirectoriesToPublish.SourceDirectory)"
977977
Destination="%(_DirectoriesToPublish.TargetDirectory)"
978978
TouchDestinationFiles="true"
979+
SdkDevPath="$(_SdkDevPath)"
979980
StampFile="%(_DirectoriesToPublish.StampLocation)"
980981
CreateOutputFiles="false"
981982
/>
@@ -1983,6 +1984,7 @@
19831984
_DetectSigningIdentity;
19841985
_PrepareResourceRules;
19851986
_AddDebugSymbolsToBundle;
1987+
_DetectSdkLocations;
19861988
</_ComputePublishLocationDependsOn>
19871989
</PropertyGroup>
19881990

@@ -2214,6 +2216,7 @@
22142216
FrameworksDirectory="$(_AppFrameworksRelativePath)"
22152217
IntermediateOutputPath="$(DeviceSpecificIntermediateOutputPath)"
22162218
NativeReferences="@(_NativeReferencesToResolve)"
2219+
SdkDevPath="$(_SdkDevPath)"
22172220
SdkIsSimulator="$(_SdkIsSimulator)"
22182221
TargetFrameworkMoniker="$(_ComputedTargetFrameworkMoniker)"
22192222
>

msbuild/Xamarin.Shared/Xamarin.Shared.targets

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ Copyright (C) 2018 Microsoft. All rights reserved.
164164
IntermediateOutputPath="$(DeviceSpecificIntermediateOutputPath)"
165165
NativeReferences="@(_NativeReferencesToExpand)"
166166
References="@(_ReferencesWithNativeReferencesToExpand)"
167+
SdkDevPath="$(_SdkDevPath)"
167168
SdkIsSimulator="$(_SdkIsSimulator)"
168169
TargetFrameworkMoniker="$(_ComputedTargetFrameworkMoniker)"
169170
>
@@ -182,7 +183,7 @@ Copyright (C) 2018 Microsoft. All rights reserved.
182183

183184
<Target Name="_CreateBindingResourcePackage"
184185
Condition="'$(_DisableBindingProjectBuild)' != 'true' And '$(NoBindingEmbedding)' == 'true'"
185-
DependsOnTargets="_ExpandNativeReferences"
186+
DependsOnTargets="_ExpandNativeReferences;_DetectSdkLocations"
186187
Inputs="$(MSBuildAllProjects);$(MSBuildProjectFullPath);@(ObjcBindingApiDefinition);@(ObjcBindingCoreSource);@(ReferencePath);@(ObjcBindingNativeLibrary);@(_FrameworkNativeReference);@(_FileNativeReference)"
187188
Outputs="$(BindingResourcePath).stamp">
188189

@@ -201,6 +202,7 @@ Copyright (C) 2018 Microsoft. All rights reserved.
201202
BindingResourcePath="$(BindingResourcePath)"
202203
Compress="$(CompressBindingResourcePackage)"
203204
IntermediateOutputPath="$(DeviceSpecificIntermediateOutputPath)"
205+
SdkDevPath="$(_SdkDevPath)"
204206
>
205207
</CreateBindingResourcePackage>
206208

@@ -1839,6 +1841,7 @@ Copyright (C) 2018 Microsoft. All rights reserved.
18391841

18401842
<PropertyGroup>
18411843
<_GenerateBindingsDependsOn>
1844+
_DetectSdkLocations;
18421845
_ComputeTargetFrameworkMoniker;
18431846
$(_GenerateBindingsDependsOn);
18441847
</_GenerateBindingsDependsOn>
@@ -2757,7 +2760,7 @@ Copyright (C) 2018 Microsoft. All rights reserved.
27572760
</Target>
27582761

27592762
<Target Name="_CopyAppExtensionsToBundle"
2760-
DependsOnTargets="_ExtendAppExtensionReferences;_ResolveAppExtensionReferences;_PlaceAppExtensions"
2763+
DependsOnTargets="_ExtendAppExtensionReferences;_ResolveAppExtensionReferences;_PlaceAppExtensions;_DetectSdkLocations"
27612764
Inputs="@(_ResolvedAppExtensionReferences)"
27622765
Outputs="$(_AppExtensionRoot)%(_ResolvedAppExtensionReferences.ContainerName)\%(_ResolvedAppExtensionReferences.FileName)%(_ResolvedAppExtensionReferences.Extension)"
27632766
>
@@ -2774,6 +2777,7 @@ Copyright (C) 2018 Microsoft. All rights reserved.
27742777
Source="@(_ResolvedAppExtensionReferences)"
27752778
Destination="$(_AppExtensionRoot)%(_ResolvedAppExtensionReferences.ContainerName)\%(_ResolvedAppExtensionReferences.FileName)%(_ResolvedAppExtensionReferences.Extension)"
27762779
TouchDestinationFiles="true"
2780+
SdkDevPath="$(_SdkDevPath)"
27772781
/>
27782782

27792783
<!-- Delete any code signatures and dSYM dirs since they are now invalid -->

msbuild/Xamarin.Shared/Xamarin.iOS.Common.targets

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,17 +259,18 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
259259
</PropertyGroup>
260260
</Target>
261261

262-
<Target Name="_CopyWatchOS2AppsToBundle" Condition="'$(OutputType)' == 'Exe'" DependsOnTargets="_ResolveWatchAppReferences">
262+
<Target Name="_CopyWatchOS2AppsToBundle" Condition="'$(OutputType)' == 'Exe'" DependsOnTargets="_ResolveWatchAppReferences;_DetectSdkLocations">
263263
<Ditto
264264
SessionId="$(BuildSessionId)"
265265
Condition="'$(IsMacEnabled)' == 'true' And '@(_ResolvedWatchAppReferences)' != '' And '%(_ResolvedWatchAppReferences.Identity)' != ''"
266266
DittoPath="$(DittoPath)"
267+
SdkDevPath="$(_SdkDevPath)"
267268
Source="@(_ResolvedWatchAppReferences)"
268269
Destination="$(_AppBundlePath)Watch\%(_ResolvedWatchAppReferences.FileName)%(_ResolvedWatchAppReferences.Extension)"
269270
/>
270271
</Target>
271272

272-
<Target Name="_CoreCreateIpa" Condition="'$(BuildIpa)' == 'true'" DependsOnTargets="Codesign">
273+
<Target Name="_CoreCreateIpa" Condition="'$(BuildIpa)' == 'true'" DependsOnTargets="Codesign;_DetectSdkLocations">
273274
<RemoveDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' == 'true'" Directories="$(DeviceSpecificIntermediateOutputPath)ipa" />
274275

275276
<MakeDir SessionId="$(BuildSessionId)" Condition="'$(IsMacEnabled)' == 'true'" Directories="$(DeviceSpecificIntermediateOutputPath)ipa\Payload" />
@@ -283,6 +284,7 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
283284
SessionId="$(BuildSessionId)"
284285
Condition="'$(IsMacEnabled)' == 'true'"
285286
DittoPath="$(DittoPath)"
287+
SdkDevPath="$(_SdkDevPath)"
286288
Source="$(AppBundleDir)"
287289
Destination="$(_IpaAppBundleDir)"
288290
/>
@@ -346,7 +348,7 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
346348
</PropertyGroup>
347349
</Target>
348350

349-
<Target Name="_PackageOnDemandResources" Condition="'$(BuildIpa)' == 'true' And '$(EnableOnDemandResources)' == 'true' And ('$(_DistributionType)' == 'AppStore' Or '$(_DistributionType)' == 'AdHoc')" >
351+
<Target Name="_PackageOnDemandResources" Condition="'$(BuildIpa)' == 'true' And '$(EnableOnDemandResources)' == 'true' And ('$(_DistributionType)' == 'AppStore' Or '$(_DistributionType)' == 'AdHoc')" DependsOnTargets="_DetectSdkLocations" >
350352
<PropertyGroup>
351353
<_PayloadDir>$(DeviceSpecificIntermediateOutputPath)ipa\Payload\</_PayloadDir>
352354
<_IpaAppBundleDir>$(_PayloadDir)$(_AppBundleName).app\</_IpaAppBundleDir>
@@ -372,6 +374,7 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
372374
SessionId="$(BuildSessionId)"
373375
Condition="'$(IsMacEnabled)' == 'true' And Exists('$(DeviceSpecificOutputPath)OnDemandResources\')"
374376
DittoPath="$(DittoPath)"
377+
SdkDevPath="$(_SdkDevPath)"
375378
Source="$(DeviceSpecificOutputPath)OnDemandResources\"
376379
Destination="$(_IntermediateODRDir)"
377380
/>

0 commit comments

Comments
 (0)