soong: Fix conflicted executable file names

This commit is contained in:
Danny Lin 2021-11-07 07:07:27 -08:00
parent 761a7b14df
commit 1e7f04d7c4

View file

@ -32,6 +32,7 @@ export interface SharedLibraryModule {
export interface ExecutableModule { export interface ExecutableModule {
srcs: Array<string> srcs: Array<string>
stem: string
relative_install_path?: string relative_install_path?: string
check_elf_files: boolean check_elf_files: boolean
prefer: boolean prefer: boolean
@ -133,6 +134,7 @@ export function blobToSoongModule(
moduleSpecific = { moduleSpecific = {
_type: 'cc_prebuilt_binary', _type: 'cc_prebuilt_binary',
srcs: [entry.srcPath], srcs: [entry.srcPath],
stem: path.basename(entry.path),
...(relPath && { relative_install_path: relPath }), ...(relPath && { relative_install_path: relPath }),
check_elf_files: false, check_elf_files: false,
prefer: true, prefer: true,