Skip to content

Commit 0025d34

Browse files
committed
This might fix the GenerateJavaStubsAndAssembly test
1 parent dd9fbba commit 0025d34

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Xamarin.Android.Build.Tasks/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.NativeRuntime.targets

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Contains code to build and link the native runtime at application build time.
1010
<UsingTask TaskName="Xamarin.Android.Tasks.GetNativeRuntimeComponents" AssemblyFile="$(_XamarinAndroidBuildTasksAssembly)" />
1111
<UsingTask TaskName="Xamarin.Android.Tasks.LinkNativeRuntime" AssemblyFile="$(_XamarinAndroidBuildTasksAssembly)" />
1212

13-
<Target Name="_PrepareUnifiedNativeRuntimeItems">
13+
<Target Name="_PrepareUnifiedNativeRuntimeItems"
14+
Condition=" '$(_AndroidEnableNativeRuntimeLinking)' == 'true' ">
1415
<ItemGroup>
1516
<_UnifiedNativeRuntime Include="$(_AndroidApplicationSharedLibraryPath)%(_BuildTargetAbis.Identity)\libmonodroid-unified.so">
1617
<abi>%(_BuildTargetAbis.Identity)</abi>
@@ -53,7 +54,10 @@ Contains code to build and link the native runtime at application build time.
5354
LinkLibraries="@(_RequiredLinkLibraries)"
5455
OutputRuntimes="@(_UnifiedNativeRuntime)"
5556
SupportedAbis="@(_BuildTargetAbis)"
56-
SaveDebugSymbols="true"
57-
/>
57+
SaveDebugSymbols="true" />
58+
59+
<ItemGroup>
60+
<FileWrites Include="@(_UnifiedNativeRuntime)" />
61+
</ItemGroup>
5862
</Target>
5963
</Project>

0 commit comments

Comments
 (0)