File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
src/tasks/AndroidAppBuilder Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -448,7 +448,20 @@ public ApkBuilder(TaskLoggingHelper logger)
448
448
}
449
449
else
450
450
{
451
- dynamicLibs . AddRange ( Directory . GetFiles ( AppDir , "*.so" ) . Where ( file => Path . GetFileName ( file ) != "libmonodroid.so" ) ) ;
451
+ var excludedLibs = new HashSet < string > { "libmonodroid.so" } ;
452
+ if ( IsCoreCLR )
453
+ {
454
+ // exclude standalone GC libs
455
+ excludedLibs . Add ( "libclrgc.so" ) ;
456
+ excludedLibs . Add ( "libclrgcexp.so" ) ;
457
+ if ( StripDebugSymbols )
458
+ {
459
+ // exclude debugger support libs
460
+ excludedLibs . Add ( "libmscordbi.so" ) ;
461
+ excludedLibs . Add ( "libmscordaccore.so" ) ;
462
+ }
463
+ }
464
+ dynamicLibs . AddRange ( Directory . GetFiles ( AppDir , "*.so" ) . Where ( file => ! excludedLibs . Contains ( Path . GetFileName ( file ) ) ) ) ;
452
465
}
453
466
454
467
// add all *.so files to lib/%abi%/
You can’t perform that action at this time.
0 commit comments