soong: Fix conflicted shared library file names

This commit is contained in:
Danny Lin 2021-11-07 07:04:59 -08:00
parent 2c4c90e15f
commit 761a7b14df

View file

@ -1,3 +1,4 @@
import * as path from 'path'
import * as util from 'util' import * as util from 'util'
import { BlobEntry, partPathToSrcPath } from '../blobs/entry' import { BlobEntry, partPathToSrcPath } from '../blobs/entry'
@ -15,6 +16,7 @@ export interface TargetSrcs {
} }
export interface SharedLibraryModule { export interface SharedLibraryModule {
stem: string
relative_install_path?: string relative_install_path?: string
strip: { strip: {
none: boolean none: boolean
@ -185,6 +187,7 @@ export function blobToSoongModule(
moduleSpecific = { moduleSpecific = {
_type: 'cc_prebuilt_library_shared', _type: 'cc_prebuilt_library_shared',
stem: path.basename(entry.path, '.so'),
...(relPath && { relative_install_path: relPath }), ...(relPath && { relative_install_path: relPath }),
strip: { strip: {
none: true, none: true,