Merge "Set output for build_prop even on Soong only build" into main am: b302108252

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/3195810

Change-Id: Ic34f587cac8542bdb89f27fa7e7fc1ef8c574c8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/android/build_prop.go b/android/build_prop.go
index c226431..80bbfc1 100644
--- a/android/build_prop.go
+++ b/android/build_prop.go
@@ -79,6 +79,7 @@
 	p.outputFilePath = PathForModuleOut(ctx, "build.prop").OutputPath
 	if !ctx.Config().KatiEnabled() {
 		WriteFileRule(ctx, p.outputFilePath, "# no build.prop if kati is disabled")
+		ctx.SetOutputFiles(Paths{p.outputFilePath}, "")
 		return
 	}