aboutsummaryrefslogtreecommitdiffstats
path: root/common/module.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/module.go')
-rw-r--r--common/module.go22
1 files changed, 12 insertions, 10 deletions
diff --git a/common/module.go b/common/module.go
index 0f6ecb5a..988104ff 100644
--- a/common/module.go
+++ b/common/module.go
@@ -519,17 +519,19 @@ func (a *androidModuleContext) InstallFileName(installPath OutputPath, name stri
fullInstallPath := installPath.Join(a, name)
- deps = append(deps, a.installDeps...)
-
- a.ModuleBuild(pctx, ModuleBuildParams{
- Rule: Cp,
- Output: fullInstallPath,
- Input: srcPath,
- OrderOnly: Paths(deps),
- Default: !a.AConfig().EmbeddedInMake(),
- })
+ if !a.AConfig().SkipInstall() {
+ deps = append(deps, a.installDeps...)
+
+ a.ModuleBuild(pctx, ModuleBuildParams{
+ Rule: Cp,
+ Output: fullInstallPath,
+ Input: srcPath,
+ OrderOnly: Paths(deps),
+ Default: true,
+ })
- a.installFiles = append(a.installFiles, fullInstallPath)
+ a.installFiles = append(a.installFiles, fullInstallPath)
+ }
a.checkbuildFiles = append(a.checkbuildFiles, srcPath)
return fullInstallPath
}