From 409a6436df71f92d53e4a894b4df8c93616f34dc Mon Sep 17 00:00:00 2001 From: Jihoon Kang Date: Thu, 6 Feb 2025 22:14:19 +0000 Subject: Migrate the dist rule of api_fingerprint.txt to Soong ...and remove the existing dist rule in Make to support dist'ing api_fingerprint.txt in Make Test: m droid dist --soong-only && ls -l out/dist/api_fingerprint.txt Bug: 394365683 Change-Id: Ib4a8e3efe5404e6ddbf656f40e8ca9785cd6d5e7 --- java/sdk.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'java/sdk.go') diff --git a/java/sdk.go b/java/sdk.go index bb2aa8d7e..4960ab576 100644 --- a/java/sdk.go +++ b/java/sdk.go @@ -390,4 +390,8 @@ func sdkMakeVars(ctx android.MakeVarsContext) { ctx.Strict("FRAMEWORK_AIDL", sdkFrameworkAidlPath(ctx).String()) ctx.Strict("API_FINGERPRINT", android.ApiFingerprintPath(ctx).String()) + + if ctx.Config().BuildOS == android.Linux { + ctx.DistForGoals([]string{"sdk", "droidcore"}, android.ApiFingerprintPath(ctx)) + } } -- cgit v1.2.3-59-g8ed1b