extract: Fix and simplify DSP file naming
This commit is contained in:
parent
91eac475fc
commit
d802d488ea
2 changed files with 3 additions and 1 deletions
|
@ -70,6 +70,7 @@ export interface EtcXmlModule {
|
||||||
|
|
||||||
export interface DspModule {
|
export interface DspModule {
|
||||||
src: string
|
src: string
|
||||||
|
filename_from_src: boolean
|
||||||
sub_dir?: string
|
sub_dir?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,6 +146,7 @@ export function blobToSoongModule(
|
||||||
moduleSpecific = {
|
moduleSpecific = {
|
||||||
_type: 'prebuilt_dsp',
|
_type: 'prebuilt_dsp',
|
||||||
src: entry.srcPath,
|
src: entry.srcPath,
|
||||||
|
filename_from_src: true,
|
||||||
...(relPath && { sub_dir: relPath }),
|
...(relPath && { sub_dir: relPath }),
|
||||||
}
|
}
|
||||||
// Then other extension-based types
|
// Then other extension-based types
|
||||||
|
|
|
@ -39,7 +39,7 @@ async function generateBuild(
|
||||||
// Named dependencies -> Soong blueprint
|
// Named dependencies -> Soong blueprint
|
||||||
|
|
||||||
// Module name = file name, excluding extension if it was used
|
// Module name = file name, excluding extension if it was used
|
||||||
let baseExt = (SPECIAL_FILE_EXTENSIONS.has(ext) && pathParts[0] != 'dsp') ? ext : undefined
|
let baseExt = SPECIAL_FILE_EXTENSIONS.has(ext) ? ext : undefined
|
||||||
let name = path.basename(entry.path, baseExt)
|
let name = path.basename(entry.path, baseExt)
|
||||||
|
|
||||||
// If already exists: skip if it's the other arch variant of a library in
|
// If already exists: skip if it's the other arch variant of a library in
|
||||||
|
|
Loading…
Reference in a new issue