From 3257153fadc8df9dad49e00223da6dc72145302b Mon Sep 17 00:00:00 2001 From: Bill Yang Date: Tue, 18 Feb 2025 09:52:38 +0000 Subject: Convert python_binary_host modules' module-info.json to Soong Bug: 397158845 Test: m out/target/product/vsoc_x86_64/module-info.json Test: Inspect module-info.json diff, CI Change-Id: I542e9b3d02e989602800199899ba516bad4f94fe --- python/binary.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'python/binary.go') diff --git a/python/binary.go b/python/binary.go index 4d6e11816..feac72a26 100644 --- a/python/binary.go +++ b/python/binary.go @@ -114,6 +114,12 @@ func (p *PythonBinaryModule) GenerateAndroidBuildActions(ctx android.ModuleConte android.SetProvider(ctx, PythonBinaryInfoProvider, PythonBinaryInfo{}) ctx.SetOutputFiles(android.Paths{p.installSource}, "") + + moduleInfoJSON := ctx.ModuleInfoJSON() + moduleInfoJSON.Class = []string{"EXECUTABLES"} + moduleInfoJSON.Dependencies = append(moduleInfoJSON.Dependencies, p.androidMkSharedLibs...) + moduleInfoJSON.SharedLibs = append(moduleInfoJSON.SharedLibs, p.androidMkSharedLibs...) + moduleInfoJSON.SystemSharedLibs = []string{"none"} } func (p *PythonBinaryModule) buildBinary(ctx android.ModuleContext) { -- cgit v1.2.3-59-g8ed1b