File tree 1 file changed +12
-0
lines changed
src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ They run in a context of an inner build with a single $(RuntimeIdentifier).
30
30
</ImportGroup >
31
31
32
32
<UsingTask TaskName =" Xamarin.Android.Tasks.GetAotAssemblies" AssemblyFile =" $(_XamarinAndroidBuildTasksAssembly)" />
33
+ <UsingTask TaskName =" Xamarin.Android.Tasks.ProcessRuntimePackLibraryDirectories" AssemblyFile =" $(_XamarinAndroidBuildTasksAssembly)" />
33
34
34
35
<Target Name =" _AndroidAotInputs" >
35
36
<ItemGroup >
@@ -77,6 +78,17 @@ They run in a context of an inner build with a single $(RuntimeIdentifier).
77
78
<ItemGroup >
78
79
<AndroidAotProfile Include =" $(MSBuildThisFileDirectory)dotnet.aotprofile" Condition =" '$(AndroidEnableProfiledAot)' == 'true' and '$(AndroidUseDefaultAotProfile)' != 'false' " />
79
80
</ItemGroup >
81
+
82
+ <!-- We need to run this here in adddition to the _ResolveAssemblies target, because this code
83
+ runs in an inner build and `_RuntimePackLibraryDirectory` items aren't carried over to it.
84
+ -->
85
+ <ProcessRuntimePackLibraryDirectories
86
+ Condition =" '$(_AndroidRuntime)' != 'NativeAOT' "
87
+ ResolvedFilesToPublish =" @(ResolvedFileToPublish)" >
88
+ <Output TaskParameter =" RuntimePackLibraryDirectories" ItemName =" _RuntimePackLibraryDirectory" />
89
+ <Output TaskParameter =" NativeLibrariesToRemove" ItemName =" _NativeLibraryToRemove" />
90
+ </ProcessRuntimePackLibraryDirectories >
91
+
80
92
<GetAotAssemblies
81
93
AndroidAotMode =" $(AndroidAotMode)"
82
94
AndroidNdkDirectory =" $(AndroidNdkDirectory)"
You can’t perform that action at this time.
0 commit comments