Merge "Make buildinfo_prop depend on build number file" into main am: daba74e728
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3118317 Change-Id: Ie2384c5cca28355b3a10ec42514a5db965e7b0b7 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
a256b1a485
1 changed files with 8 additions and 5 deletions
|
@ -111,10 +111,11 @@ func (p *buildinfoPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
|
|||
cmd.FlagWithArg("--build-id=", config.BuildId())
|
||||
cmd.FlagWithArg("--build-keys=", config.BuildKeys())
|
||||
|
||||
// shouldn't depend on BuildNumberFile and BuildThumbprintFile to prevent from rebuilding
|
||||
// on every incremental build.
|
||||
cmd.FlagWithArg("--build-number-file=", config.BuildNumberFile(ctx).String())
|
||||
// Note: depending on BuildNumberFile will cause the build.prop file to be rebuilt
|
||||
// every build, but that's intentional.
|
||||
cmd.FlagWithInput("--build-number-file=", config.BuildNumberFile(ctx))
|
||||
if shouldAddBuildThumbprint(config) {
|
||||
// In the previous make implementation, a dependency was not added on the thumbprint file
|
||||
cmd.FlagWithArg("--build-thumbprint-file=", config.BuildThumbprintFile(ctx).String())
|
||||
}
|
||||
|
||||
|
@ -123,8 +124,10 @@ func (p *buildinfoPropModule) GenerateAndroidBuildActions(ctx ModuleContext) {
|
|||
cmd.FlagWithArg("--build-variant=", buildVariant)
|
||||
cmd.FlagForEachArg("--cpu-abis=", config.DeviceAbi())
|
||||
|
||||
// shouldn't depend on BUILD_DATETIME_FILE to prevent from rebuilding on every incremental
|
||||
// build.
|
||||
// Technically we should also have a dependency on BUILD_DATETIME_FILE,
|
||||
// but it can be either an absolute or relative path, which is hard to turn into
|
||||
// a Path object. So just rely on the BuildNumberFile always changing to cause
|
||||
// us to rebuild.
|
||||
cmd.FlagWithArg("--date-file=", ctx.Config().Getenv("BUILD_DATETIME_FILE"))
|
||||
|
||||
if len(config.ProductLocales()) > 0 {
|
||||
|
|
Loading…
Reference in a new issue