Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 1 | // Copyright 2017 Google Inc. All rights reserved. |
| 2 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | // you may not use this file except in compliance with the License. |
| 4 | // You may obtain a copy of the License at |
| 5 | // |
| 6 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | // |
| 8 | // Unless required by applicable law or agreed to in writing, software |
| 9 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | // See the License for the specific language governing permissions and |
| 12 | // limitations under the License. |
| 13 | |
| 14 | package java |
| 15 | |
| 16 | import ( |
| 17 | "fmt" |
| 18 | "io" |
| 19 | "strings" |
| 20 | |
| 21 | "github.com/google/blueprint" |
Spandan Das | cc53063 | 2024-01-19 00:22:22 +0000 | [diff] [blame] | 22 | "github.com/google/blueprint/proptools" |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 23 | |
| 24 | "android/soong/android" |
| 25 | ) |
| 26 | |
| 27 | // OpenJDK 9 introduces the concept of "system modules", which replace the bootclasspath. This |
| 28 | // file will produce the rules necessary to convert each unique set of bootclasspath jars into |
| 29 | // system modules in a runtime image using the jmod and jlink tools. |
| 30 | |
| 31 | func init() { |
Paul Duffin | 43dc1cc | 2019-12-19 11:18:54 +0000 | [diff] [blame] | 32 | RegisterSystemModulesBuildComponents(android.InitRegistrationContext) |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 33 | |
| 34 | pctx.SourcePathVariable("moduleInfoJavaPath", "build/soong/scripts/jars-to-module-info-java.sh") |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 35 | |
| 36 | // Register sdk member types. |
| 37 | android.RegisterSdkMemberType(&systemModulesSdkMemberType{ |
| 38 | android.SdkMemberTypeBase{ |
Paul Duffin | 2d3da31 | 2021-05-06 12:02:27 +0100 | [diff] [blame] | 39 | PropertyName: "java_system_modules", |
| 40 | SupportsSdk: true, |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 41 | }, |
| 42 | }) |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 43 | } |
| 44 | |
Paul Duffin | 43dc1cc | 2019-12-19 11:18:54 +0000 | [diff] [blame] | 45 | func RegisterSystemModulesBuildComponents(ctx android.RegistrationContext) { |
| 46 | ctx.RegisterModuleType("java_system_modules", SystemModulesFactory) |
Paul Duffin | 90169ba | 2020-01-10 17:16:44 +0000 | [diff] [blame] | 47 | ctx.RegisterModuleType("java_system_modules_import", systemModulesImportFactory) |
Paul Duffin | 43dc1cc | 2019-12-19 11:18:54 +0000 | [diff] [blame] | 48 | } |
| 49 | |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 50 | var ( |
| 51 | jarsTosystemModules = pctx.AndroidStaticRule("jarsTosystemModules", blueprint.RuleParams{ |
| 52 | Command: `rm -rf ${outDir} ${workDir} && mkdir -p ${workDir}/jmod && ` + |
Pete Gillin | df7dc82 | 2019-10-09 17:09:38 +0100 | [diff] [blame] | 53 | `${moduleInfoJavaPath} java.base $in > ${workDir}/module-info.java && ` + |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 54 | `${config.JavacCmd} --system=none --patch-module=java.base=${classpath} ${workDir}/module-info.java && ` + |
| 55 | `${config.SoongZipCmd} -jar -o ${workDir}/classes.jar -C ${workDir} -f ${workDir}/module-info.class && ` + |
| 56 | `${config.MergeZipsCmd} -j ${workDir}/module.jar ${workDir}/classes.jar $in && ` + |
Pete Gillin | 1f52e93 | 2019-10-09 17:10:08 +0100 | [diff] [blame] | 57 | // Note: The version of the java.base module created must match the version |
| 58 | // of the jlink tool which consumes it. |
Sorin Basca | 088e079 | 2023-12-21 11:49:29 +0000 | [diff] [blame] | 59 | // Use LINUX-OTHER to be compatible with JDK 21+ (b/294137077) |
| 60 | `${config.JmodCmd} create --module-version ${config.JlinkVersion} --target-platform LINUX-OTHER ` + |
Pete Gillin | df7dc82 | 2019-10-09 17:09:38 +0100 | [diff] [blame] | 61 | ` --class-path ${workDir}/module.jar ${workDir}/jmod/java.base.jmod && ` + |
| 62 | `${config.JlinkCmd} --module-path ${workDir}/jmod --add-modules java.base --output ${outDir} ` + |
Pete Gillin | 4eb6be3 | 2019-06-05 20:10:55 +0100 | [diff] [blame] | 63 | // Note: The system-modules jlink plugin is disabled because (a) it is not |
| 64 | // useful on Android, and (b) it causes errors with later versions of jlink |
| 65 | // when the jdk.internal.module is absent from java.base (as it is here). |
| 66 | ` --disable-plugin system-modules && ` + |
Cole Faust | 7ef61d7 | 2024-03-14 18:15:28 -0700 | [diff] [blame] | 67 | `rm -rf ${workDir} && ` + |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 68 | `cp ${config.JrtFsJar} ${outDir}/lib/`, |
| 69 | CommandDeps: []string{ |
| 70 | "${moduleInfoJavaPath}", |
| 71 | "${config.JavacCmd}", |
| 72 | "${config.SoongZipCmd}", |
| 73 | "${config.MergeZipsCmd}", |
| 74 | "${config.JmodCmd}", |
| 75 | "${config.JlinkCmd}", |
| 76 | "${config.JrtFsJar}", |
| 77 | }, |
| 78 | }, |
Pete Gillin | df7dc82 | 2019-10-09 17:09:38 +0100 | [diff] [blame] | 79 | "classpath", "outDir", "workDir") |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 80 | |
| 81 | // Dependency tag that causes the added dependencies to be added as java_header_libs |
Paul Duffin | a720811 | 2021-04-23 21:20:20 +0100 | [diff] [blame] | 82 | // to the sdk/module_exports/snapshot. Dependencies that are added automatically via this tag are |
| 83 | // not automatically exported. |
| 84 | systemModulesLibsTag = android.DependencyTagForSdkMemberType(javaHeaderLibsSdkMemberType, false) |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 85 | ) |
| 86 | |
Pete Gillin | df7dc82 | 2019-10-09 17:09:38 +0100 | [diff] [blame] | 87 | func TransformJarsToSystemModules(ctx android.ModuleContext, jars android.Paths) (android.Path, android.Paths) { |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 88 | outDir := android.PathForModuleOut(ctx, "system") |
| 89 | workDir := android.PathForModuleOut(ctx, "modules") |
| 90 | outputFile := android.PathForModuleOut(ctx, "system/lib/modules") |
| 91 | outputs := android.WritablePaths{ |
| 92 | outputFile, |
| 93 | android.PathForModuleOut(ctx, "system/lib/jrt-fs.jar"), |
| 94 | android.PathForModuleOut(ctx, "system/release"), |
| 95 | } |
| 96 | |
Colin Cross | ae88703 | 2017-10-23 17:16:14 -0700 | [diff] [blame] | 97 | ctx.Build(pctx, android.BuildParams{ |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 98 | Rule: jarsTosystemModules, |
| 99 | Description: "system modules", |
| 100 | Outputs: outputs, |
| 101 | Inputs: jars, |
| 102 | Args: map[string]string{ |
Pete Gillin | df7dc82 | 2019-10-09 17:09:38 +0100 | [diff] [blame] | 103 | "classpath": strings.Join(jars.Strings(), ":"), |
| 104 | "workDir": workDir.String(), |
| 105 | "outDir": outDir.String(), |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 106 | }, |
| 107 | }) |
| 108 | |
Dan Willemsen | ff60a73 | 2019-06-13 16:52:01 +0000 | [diff] [blame] | 109 | return outDir, outputs.Paths() |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 110 | } |
| 111 | |
Paul Duffin | cded5ec | 2020-01-10 17:30:36 +0000 | [diff] [blame] | 112 | // java_system_modules creates a system module from a set of java libraries that can |
| 113 | // be referenced from the system_modules property. It must contain at a minimum the |
| 114 | // java.base module which must include classes from java.lang amongst other java packages. |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 115 | func SystemModulesFactory() android.Module { |
| 116 | module := &SystemModules{} |
| 117 | module.AddProperties(&module.properties) |
| 118 | android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon) |
Colin Cross | 667ffa1 | 2019-05-28 13:30:02 -0700 | [diff] [blame] | 119 | android.InitDefaultableModule(module) |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 120 | return module |
| 121 | } |
| 122 | |
Colin Cross | b61c226 | 2024-08-08 14:04:42 -0700 | [diff] [blame] | 123 | type SystemModulesProviderInfo struct { |
| 124 | // The aggregated header jars from all jars specified in the libs property. |
| 125 | // Used when system module is added as a dependency to bootclasspath. |
| 126 | HeaderJars android.Paths |
| 127 | |
| 128 | OutputDir android.Path |
| 129 | OutputDirDeps android.Paths |
Paul Duffin | 83a2d96 | 2019-11-19 19:44:10 +0000 | [diff] [blame] | 130 | } |
| 131 | |
Colin Cross | b61c226 | 2024-08-08 14:04:42 -0700 | [diff] [blame] | 132 | var SystemModulesProvider = blueprint.NewProvider[*SystemModulesProviderInfo]() |
Paul Duffin | 83a2d96 | 2019-11-19 19:44:10 +0000 | [diff] [blame] | 133 | |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 134 | type SystemModules struct { |
| 135 | android.ModuleBase |
Colin Cross | 667ffa1 | 2019-05-28 13:30:02 -0700 | [diff] [blame] | 136 | android.DefaultableModuleBase |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 137 | |
| 138 | properties SystemModulesProperties |
| 139 | |
Dan Willemsen | ff60a73 | 2019-06-13 16:52:01 +0000 | [diff] [blame] | 140 | outputDir android.Path |
| 141 | outputDeps android.Paths |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 142 | } |
| 143 | |
| 144 | type SystemModulesProperties struct { |
| 145 | // List of java library modules that should be included in the system modules |
| 146 | Libs []string |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 147 | } |
| 148 | |
| 149 | func (system *SystemModules) GenerateAndroidBuildActions(ctx android.ModuleContext) { |
| 150 | var jars android.Paths |
| 151 | |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 152 | ctx.VisitDirectDepsWithTag(systemModulesLibsTag, func(module android.Module) { |
Colin Cross | 7727c7f | 2024-07-18 15:36:32 -0700 | [diff] [blame] | 153 | if dep, ok := android.OtherModuleProvider(ctx, module, JavaInfoProvider); ok { |
| 154 | jars = append(jars, dep.HeaderJars...) |
| 155 | } |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 156 | }) |
| 157 | |
Pete Gillin | df7dc82 | 2019-10-09 17:09:38 +0100 | [diff] [blame] | 158 | system.outputDir, system.outputDeps = TransformJarsToSystemModules(ctx, jars) |
Colin Cross | b61c226 | 2024-08-08 14:04:42 -0700 | [diff] [blame] | 159 | |
| 160 | android.SetProvider(ctx, SystemModulesProvider, &SystemModulesProviderInfo{ |
| 161 | HeaderJars: jars, |
| 162 | OutputDir: system.outputDir, |
| 163 | OutputDirDeps: system.outputDeps, |
| 164 | }) |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 165 | } |
| 166 | |
Paul Duffin | 4f0a75a | 2021-03-11 07:23:27 +0000 | [diff] [blame] | 167 | // ComponentDepsMutator is called before prebuilt modules without a corresponding source module are |
| 168 | // renamed so unless the supplied libs specifically includes the prebuilt_ prefix this is guaranteed |
| 169 | // to only add dependencies on source modules. |
| 170 | // |
| 171 | // The systemModuleLibsTag will prevent the prebuilt mutators from replacing this dependency so it |
| 172 | // will never be changed to depend on a prebuilt either. |
| 173 | func (system *SystemModules) ComponentDepsMutator(ctx android.BottomUpMutatorContext) { |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 174 | ctx.AddVariationDependencies(nil, systemModulesLibsTag, system.properties.Libs...) |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 175 | } |
| 176 | |
| 177 | func (system *SystemModules) AndroidMk() android.AndroidMkData { |
| 178 | return android.AndroidMkData{ |
| 179 | Custom: func(w io.Writer, name, prefix, moduleDir string, data android.AndroidMkData) { |
Tobias Thierer | b1c697d | 2018-03-26 22:33:59 +0100 | [diff] [blame] | 180 | fmt.Fprintln(w) |
Dan Willemsen | ff60a73 | 2019-06-13 16:52:01 +0000 | [diff] [blame] | 181 | |
| 182 | makevar := "SOONG_SYSTEM_MODULES_" + name |
| 183 | fmt.Fprintln(w, makevar, ":=$=", system.outputDir.String()) |
| 184 | fmt.Fprintln(w) |
| 185 | |
| 186 | makevar = "SOONG_SYSTEM_MODULES_LIBS_" + name |
| 187 | fmt.Fprintln(w, makevar, ":=$=", strings.Join(system.properties.Libs, " ")) |
| 188 | fmt.Fprintln(w) |
| 189 | |
Dan Willemsen | fe310be | 2019-06-20 10:16:12 -0700 | [diff] [blame] | 190 | makevar = "SOONG_SYSTEM_MODULES_DEPS_" + name |
Dan Willemsen | ff60a73 | 2019-06-13 16:52:01 +0000 | [diff] [blame] | 191 | fmt.Fprintln(w, makevar, ":=$=", strings.Join(system.outputDeps.Strings(), " ")) |
| 192 | fmt.Fprintln(w) |
| 193 | |
Tobias Thierer | b1c697d | 2018-03-26 22:33:59 +0100 | [diff] [blame] | 194 | fmt.Fprintln(w, name+":", "$("+makevar+")") |
Dan Willemsen | a03c43a | 2018-07-24 13:00:52 -0700 | [diff] [blame] | 195 | fmt.Fprintln(w, ".PHONY:", name) |
Bob Badour | b499922 | 2021-01-07 03:34:31 +0000 | [diff] [blame] | 196 | // TODO(b/151177513): Licenses: Doesn't go through base_rules. May have to generate meta_lic and meta_module here. |
Colin Cross | 1369cdb | 2017-09-29 17:58:17 -0700 | [diff] [blame] | 197 | }, |
| 198 | } |
| 199 | } |
Paul Duffin | 90169ba | 2020-01-10 17:16:44 +0000 | [diff] [blame] | 200 | |
| 201 | // A prebuilt version of java_system_modules. It does not import the |
| 202 | // generated system module, it generates the system module from imported |
| 203 | // java libraries in the same way that java_system_modules does. It just |
| 204 | // acts as a prebuilt, i.e. can have the same base name as another module |
| 205 | // type and the one to use is selected at runtime. |
| 206 | func systemModulesImportFactory() android.Module { |
| 207 | module := &systemModulesImport{} |
Spandan Das | cc53063 | 2024-01-19 00:22:22 +0000 | [diff] [blame] | 208 | module.AddProperties(&module.properties, &module.prebuiltProperties) |
Paul Duffin | 90169ba | 2020-01-10 17:16:44 +0000 | [diff] [blame] | 209 | android.InitPrebuiltModule(module, &module.properties.Libs) |
| 210 | android.InitAndroidArchModule(module, android.HostAndDeviceSupported, android.MultilibCommon) |
| 211 | android.InitDefaultableModule(module) |
| 212 | return module |
| 213 | } |
| 214 | |
| 215 | type systemModulesImport struct { |
| 216 | SystemModules |
Spandan Das | cc53063 | 2024-01-19 00:22:22 +0000 | [diff] [blame] | 217 | prebuilt android.Prebuilt |
| 218 | prebuiltProperties prebuiltSystemModulesProperties |
| 219 | } |
| 220 | |
| 221 | type prebuiltSystemModulesProperties struct { |
| 222 | // Name of the source soong module that gets shadowed by this prebuilt |
| 223 | // If unspecified, follows the naming convention that the source module of |
| 224 | // the prebuilt is Name() without "prebuilt_" prefix |
| 225 | Source_module_name *string |
Paul Duffin | 90169ba | 2020-01-10 17:16:44 +0000 | [diff] [blame] | 226 | } |
| 227 | |
| 228 | func (system *systemModulesImport) Name() string { |
| 229 | return system.prebuilt.Name(system.ModuleBase.Name()) |
| 230 | } |
| 231 | |
Spandan Das | cc53063 | 2024-01-19 00:22:22 +0000 | [diff] [blame] | 232 | // BaseModuleName returns the source module that will get shadowed by this prebuilt |
| 233 | // e.g. |
| 234 | // |
| 235 | // java_system_modules_import { |
| 236 | // name: "my_system_modules.v1", |
| 237 | // source_module_name: "my_system_modules", |
| 238 | // } |
| 239 | // |
| 240 | // java_system_modules_import { |
| 241 | // name: "my_system_modules.v2", |
| 242 | // source_module_name: "my_system_modules", |
| 243 | // } |
| 244 | // |
| 245 | // `BaseModuleName` for both will return `my_system_modules` |
| 246 | func (system *systemModulesImport) BaseModuleName() string { |
| 247 | return proptools.StringDefault(system.prebuiltProperties.Source_module_name, system.ModuleBase.Name()) |
| 248 | } |
| 249 | |
Paul Duffin | 90169ba | 2020-01-10 17:16:44 +0000 | [diff] [blame] | 250 | func (system *systemModulesImport) Prebuilt() *android.Prebuilt { |
| 251 | return &system.prebuilt |
| 252 | } |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 253 | |
Paul Duffin | 4f0a75a | 2021-03-11 07:23:27 +0000 | [diff] [blame] | 254 | // ComponentDepsMutator is called before prebuilt modules without a corresponding source module are |
| 255 | // renamed so as this adds a prebuilt_ prefix this is guaranteed to only add dependencies on source |
| 256 | // modules. |
| 257 | func (system *systemModulesImport) ComponentDepsMutator(ctx android.BottomUpMutatorContext) { |
| 258 | for _, lib := range system.properties.Libs { |
Paul Duffin | 864116c | 2021-04-02 10:24:13 +0100 | [diff] [blame] | 259 | ctx.AddVariationDependencies(nil, systemModulesLibsTag, android.PrebuiltNameFromSource(lib)) |
Paul Duffin | 4f0a75a | 2021-03-11 07:23:27 +0000 | [diff] [blame] | 260 | } |
| 261 | } |
| 262 | |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 263 | type systemModulesSdkMemberType struct { |
| 264 | android.SdkMemberTypeBase |
| 265 | } |
| 266 | |
Paul Duffin | 296701e | 2021-07-14 10:29:36 +0100 | [diff] [blame] | 267 | func (mt *systemModulesSdkMemberType) AddDependencies(ctx android.SdkDependencyContext, dependencyTag blueprint.DependencyTag, names []string) { |
| 268 | ctx.AddVariationDependencies(nil, dependencyTag, names...) |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 269 | } |
| 270 | |
| 271 | func (mt *systemModulesSdkMemberType) IsInstance(module android.Module) bool { |
| 272 | if _, ok := module.(*SystemModules); ok { |
| 273 | // A prebuilt system module cannot be added as a member of an sdk because the source and |
| 274 | // snapshot instances would conflict. |
| 275 | _, ok := module.(*systemModulesImport) |
| 276 | return !ok |
| 277 | } |
| 278 | return false |
| 279 | } |
| 280 | |
Paul Duffin | 495ffb9 | 2020-03-20 13:35:40 +0000 | [diff] [blame] | 281 | func (mt *systemModulesSdkMemberType) AddPrebuiltModule(ctx android.SdkMemberContext, member android.SdkMember) android.BpModule { |
| 282 | return ctx.SnapshotBuilder().AddPrebuiltModule(member, "java_system_modules_import") |
| 283 | } |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 284 | |
Paul Duffin | 495ffb9 | 2020-03-20 13:35:40 +0000 | [diff] [blame] | 285 | type systemModulesInfoProperties struct { |
| 286 | android.SdkMemberPropertiesBase |
| 287 | |
| 288 | Libs []string |
| 289 | } |
| 290 | |
| 291 | func (mt *systemModulesSdkMemberType) CreateVariantPropertiesStruct() android.SdkMemberProperties { |
| 292 | return &systemModulesInfoProperties{} |
| 293 | } |
| 294 | |
| 295 | func (p *systemModulesInfoProperties) PopulateFromVariant(ctx android.SdkMemberContext, variant android.Module) { |
| 296 | systemModule := variant.(*SystemModules) |
| 297 | p.Libs = systemModule.properties.Libs |
| 298 | } |
| 299 | |
| 300 | func (p *systemModulesInfoProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet android.BpPropertySet) { |
| 301 | if len(p.Libs) > 0 { |
| 302 | // Add the references to the libraries that form the system module. |
| 303 | propertySet.AddPropertyWithTag("libs", p.Libs, ctx.SnapshotBuilder().SdkMemberReferencePropertyTag(true)) |
| 304 | } |
Paul Duffin | 7b81f5e | 2020-01-13 21:03:22 +0000 | [diff] [blame] | 305 | } |
Spandan Das | f5ee86c | 2024-08-08 21:11:42 +0000 | [diff] [blame] | 306 | |
| 307 | // implement the following interface for IDE completion. |
| 308 | var _ android.IDEInfo = (*SystemModules)(nil) |
| 309 | |
Cole Faust | b36d31d | 2024-08-27 16:04:28 -0700 | [diff] [blame^] | 310 | func (s *SystemModules) IDEInfo(ctx android.BaseModuleContext, ideInfo *android.IdeInfo) { |
Spandan Das | f5ee86c | 2024-08-08 21:11:42 +0000 | [diff] [blame] | 311 | ideInfo.Deps = append(ideInfo.Deps, s.properties.Libs...) |
| 312 | ideInfo.Libs = append(ideInfo.Libs, s.properties.Libs...) |
| 313 | } |