Skip to content

Commit

Permalink
[dotnet] Don't link with BrowserEngineKit. Fixes xamarin#21324. (xama…
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Oct 2, 2024
1 parent 3317327 commit f6501e9
Show file tree
Hide file tree
Showing 5 changed files with 663 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,11 @@
<!-- libSystem.Security.Cryptography.Native.Apple.a requires the Security framework -->
<_NativeExecutableFrameworks Include="Security" />

<!-- Most apps do not use BrowserEngineKit, and linking with it when an app is not supposed to will prevent it from getting approved in the App Store.
However, we'll automatically detect that we need to link with BrowserEngineKit if an app isn't trimmed, so let's just remove BrowserEngineKit
here, with an escape hatch if an app really needs it (which would be rather rare). Ref: https://github.com/xamarin/xamarin-macios/issues/21324 -->
<_NativeExecutableFrameworks Remove="BrowserEngineKit" Condition="'$(LinkWithBrowserEngineKit)' != 'true'" />

<!-- Mono requires zlib, iconv, and the "Compression framework" -->
<_MainLinkerFlags Include="-lz" />
<_MainLinkerFlags Include="-liconv" />
Expand Down
Loading

0 comments on commit f6501e9

Please sign in to comment.