Support adding a library as both a JNI library and a regular library.

Bug: 299087066
Test: m nothing
Change-Id: I6cafe23395b7306727a071ccefe3b189c56e928b
This commit is contained in:
Jiakai Zhang
2023-09-05 15:19:21 +01:00
parent f94c8113a3
commit 9c60c17fb3
2 changed files with 26 additions and 2 deletions

View File

@@ -2008,6 +2008,9 @@ func (vctx *visitorContext) normalizeFileInfo(mctx android.ModuleContext) {
// If a module is directly included and also transitively depended on
// consider it as directly included.
e.transitiveDep = e.transitiveDep && f.transitiveDep
// If a module is added as both a JNI library and a regular shared library, consider it as a
// JNI library.
e.isJniLib = e.isJniLib || f.isJniLib
encountered[dest] = e
}
}