soong: Use the CpExecutable rule for copying libraries
If you compile a shared library with 'cc_library_shared' it will be executable. If you build one with 'cc_prebuilt_library_shared' it will not. Use CpExecutable so it's consistent. Test: Observe that all cc_prebuilt_library_shared modules are executable. Change-Id: I3d7edfc920760aa2f73e4527d4cfab1baa1523fc
This commit is contained in:
@@ -178,7 +178,7 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
|
|||||||
implicits = append(implicits, importLibOutputFile)
|
implicits = append(implicits, importLibOutputFile)
|
||||||
|
|
||||||
ctx.Build(pctx, android.BuildParams{
|
ctx.Build(pctx, android.BuildParams{
|
||||||
Rule: android.Cp,
|
Rule: android.CpExecutable,
|
||||||
Description: "prebuilt import library",
|
Description: "prebuilt import library",
|
||||||
Input: importLibSrc,
|
Input: importLibSrc,
|
||||||
Output: importLibOutputFile,
|
Output: importLibOutputFile,
|
||||||
@@ -189,7 +189,7 @@ func (p *prebuiltLibraryLinker) link(ctx ModuleContext,
|
|||||||
}
|
}
|
||||||
|
|
||||||
ctx.Build(pctx, android.BuildParams{
|
ctx.Build(pctx, android.BuildParams{
|
||||||
Rule: android.Cp,
|
Rule: android.CpExecutable,
|
||||||
Description: "prebuilt shared library",
|
Description: "prebuilt shared library",
|
||||||
Implicits: implicits,
|
Implicits: implicits,
|
||||||
Input: in,
|
Input: in,
|
||||||
|
Reference in New Issue
Block a user