-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[One .NET] exclude libxamarin-debug-app-helper.so from Release builds (…
…#5874) Fixes: #5855 Currently, in .NET 6, any `.so` file in our runtime pack is included in apps by default. This is the nature of how native libraries coming from NuGet packages work. They just get added based on the file path and `$(RuntimeIdentifier)` of the project. We already have a special case for `libmono-android.release.so` and `libmono-android.debug.so` that uses `$(AndroidIncludeDebugSymbols)` as a way to know which native library is needed. We can do the same thing here and exclude `libxamarin-debug-app-helper.so`, which should only be included in `Debug` builds. This saves ~37K for all Release apps: -37,104 lib/arm64-v8a/libxamarin-debug-app-helper.so *1
- Loading branch information
1 parent
29ee180
commit a916ee0
Showing
3 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters