Skip to content

Commit a8ffa46

Browse files
committed
[monodroid] Fix builds when $(AndroidSupportedAbis) contains host
Commit 0c073f6 broke the src/monodroid build: src/monodroid/monodroid.targets: error : Cannot copy .../xamarin-android/src/monodroid/obj/local/host-Darwin/libmonodroid.so to .../xamarin-android/bin/Debug/lib/xbuild/Xamarin/Android/lib/host-Darwin/libmono-android.debug.d.so, as the source file doesn't exist. This is because with 0c073f6, `$(AndroidSupportedAbis)` now contains e.g. host-Darwin, which isn't a valid ABI name as far as `ndk-build` is concerned. Fix the src/monodroid build by excluding non-Android values.
1 parent 7010a35 commit a8ffa46

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/monodroid/monodroid.projitems

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<_SupportedAbis>$(AndroidSupportedAbis.Replace(':', ';'))</_SupportedAbis>
55
</PropertyGroup>
66
<ItemGroup>
7-
<_MonoRuntime Include="$(_SupportedAbis)" />
7+
<_MonoRuntime Include="$(_SupportedAbis)" Exclude="host-$(HostOS);host-win64" />
88
</ItemGroup>
99
<ItemGroup>
1010
<_RequiredProgram Include="xxd" />

src/monodroid/monodroid.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Outputs="@(_MonoRuntime->'$(OutputPath)\%(Identity)\libmono-android.$(_Conf).so')">
1414
<Which Program="%(_RequiredProgram.Identity)" Required="True" />
1515
<PropertyGroup>
16-
<_AppAbi>$(AndroidSupportedAbis.Replace(':', ' '))</_AppAbi>
16+
<_AppAbi>@(_MonoRuntime->'%(Identity)', ' ')</_AppAbi>
1717
</PropertyGroup>
1818
<WriteLinesToFile
1919
File="jni\Application.mk"

0 commit comments

Comments
 (0)