blob: 9328a259621eca84840f34b369c6f27e61597924 [file] [log] [blame]
Paul Duffin2f6bc092019-12-13 10:40:56 +00001// Copyright 2019 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package cc
16
17import (
18 "path/filepath"
Paul Duffin2f6bc092019-12-13 10:40:56 +000019
20 "android/soong/android"
Martin Stjernholmcd07bce2020-03-10 22:37:59 +000021
Paul Duffin2f6bc092019-12-13 10:40:56 +000022 "github.com/google/blueprint"
Paul Duffin13f02712020-03-06 12:30:43 +000023 "github.com/google/blueprint/proptools"
Paul Duffin2f6bc092019-12-13 10:40:56 +000024)
25
26// This file contains support for using cc library modules within an sdk.
27
Paul Duffina0843f62019-12-13 19:50:38 +000028var sharedLibrarySdkMemberType = &librarySdkMemberType{
29 SdkMemberTypeBase: android.SdkMemberTypeBase{
Martin Stjernholmcaa47d72020-07-11 04:52:24 +010030 PropertyName: "native_shared_libs",
31 SupportsSdk: true,
32 HostOsDependent: true,
Paul Duffina0843f62019-12-13 19:50:38 +000033 },
34 prebuiltModuleType: "cc_prebuilt_library_shared",
35 linkTypes: []string{"shared"},
36}
37
38var staticLibrarySdkMemberType = &librarySdkMemberType{
39 SdkMemberTypeBase: android.SdkMemberTypeBase{
Martin Stjernholmcaa47d72020-07-11 04:52:24 +010040 PropertyName: "native_static_libs",
41 SupportsSdk: true,
42 HostOsDependent: true,
Paul Duffina0843f62019-12-13 19:50:38 +000043 },
44 prebuiltModuleType: "cc_prebuilt_library_static",
45 linkTypes: []string{"static"},
46}
47
Paul Duffin9b76c0b2020-03-12 10:24:35 +000048var staticAndSharedLibrarySdkMemberType = &librarySdkMemberType{
49 SdkMemberTypeBase: android.SdkMemberTypeBase{
Martin Stjernholmcaa47d72020-07-11 04:52:24 +010050 PropertyName: "native_libs",
51 SupportsSdk: true,
52 HostOsDependent: true,
Paul Duffin9b76c0b2020-03-12 10:24:35 +000053 },
54 prebuiltModuleType: "cc_prebuilt_library",
55 linkTypes: []string{"static", "shared"},
56}
57
Paul Duffin255f18e2019-12-13 11:22:16 +000058func init() {
59 // Register sdk member types.
Paul Duffina0843f62019-12-13 19:50:38 +000060 android.RegisterSdkMemberType(sharedLibrarySdkMemberType)
61 android.RegisterSdkMemberType(staticLibrarySdkMemberType)
Paul Duffin9b76c0b2020-03-12 10:24:35 +000062 android.RegisterSdkMemberType(staticAndSharedLibrarySdkMemberType)
Paul Duffin2f6bc092019-12-13 10:40:56 +000063}
64
65type librarySdkMemberType struct {
Paul Duffin255f18e2019-12-13 11:22:16 +000066 android.SdkMemberTypeBase
67
Paul Duffin2f6bc092019-12-13 10:40:56 +000068 prebuiltModuleType string
69
Martin Stjernholmcd07bce2020-03-10 22:37:59 +000070 noOutputFiles bool // True if there are no srcs files.
71
72 // The set of link types supported. A set of "static", "shared", or nil to
73 // skip link type variations.
Paul Duffin2f6bc092019-12-13 10:40:56 +000074 linkTypes []string
75}
76
77func (mt *librarySdkMemberType) AddDependencies(mctx android.BottomUpMutatorContext, dependencyTag blueprint.DependencyTag, names []string) {
78 targets := mctx.MultiTargets()
79 for _, lib := range names {
80 for _, target := range targets {
81 name, version := StubsLibNameAndVersion(lib)
82 if version == "" {
83 version = LatestStubsVersionFor(mctx.Config(), name)
84 }
Paul Duffin91756d22020-02-21 16:29:57 +000085 if mt.linkTypes == nil {
Paul Duffin2f6bc092019-12-13 10:40:56 +000086 mctx.AddFarVariationDependencies(append(target.Variations(), []blueprint.Variation{
87 {Mutator: "image", Variation: android.CoreVariation},
Paul Duffin2f6bc092019-12-13 10:40:56 +000088 {Mutator: "version", Variation: version},
89 }...), dependencyTag, name)
Paul Duffin91756d22020-02-21 16:29:57 +000090 } else {
91 for _, linkType := range mt.linkTypes {
92 mctx.AddFarVariationDependencies(append(target.Variations(), []blueprint.Variation{
93 {Mutator: "image", Variation: android.CoreVariation},
94 {Mutator: "link", Variation: linkType},
95 {Mutator: "version", Variation: version},
96 }...), dependencyTag, name)
97 }
Paul Duffin2f6bc092019-12-13 10:40:56 +000098 }
99 }
100 }
101}
102
103func (mt *librarySdkMemberType) IsInstance(module android.Module) bool {
Paul Duffina0843f62019-12-13 19:50:38 +0000104 // Check the module to see if it can be used with this module type.
105 if m, ok := module.(*Module); ok {
106 for _, allowableMemberType := range m.sdkMemberTypes {
107 if allowableMemberType == mt {
108 return true
109 }
110 }
111 }
112
113 return false
Paul Duffin2f6bc092019-12-13 10:40:56 +0000114}
115
Paul Duffin3a4eb502020-03-19 16:11:18 +0000116func (mt *librarySdkMemberType) AddPrebuiltModule(ctx android.SdkMemberContext, member android.SdkMember) android.BpModule {
117 pbm := ctx.SnapshotBuilder().AddPrebuiltModule(member, mt.prebuiltModuleType)
Paul Duffin0c394f32020-03-05 14:09:58 +0000118
119 ccModule := member.Variants()[0].(*Module)
120
121 sdkVersion := ccModule.SdkVersion()
122 if sdkVersion != "" {
123 pbm.AddProperty("sdk_version", sdkVersion)
124 }
Paul Duffin2f6bc092019-12-13 10:40:56 +0000125
Paul Duffin13f02712020-03-06 12:30:43 +0000126 stl := ccModule.stl.Properties.Stl
127 if stl != nil {
Paul Duffin0174d8d2020-03-11 18:42:08 +0000128 pbm.AddProperty("stl", proptools.String(stl))
Paul Duffin13f02712020-03-06 12:30:43 +0000129 }
Martin Stjernholm47ed3522020-06-17 22:52:25 +0100130
131 if lib, ok := ccModule.linker.(*libraryDecorator); ok {
132 uhs := lib.Properties.Unique_host_soname
133 if uhs != nil {
134 pbm.AddProperty("unique_host_soname", proptools.Bool(uhs))
135 }
136 }
137
Paul Duffin0174d8d2020-03-11 18:42:08 +0000138 return pbm
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000139}
Paul Duffin2f6bc092019-12-13 10:40:56 +0000140
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000141func (mt *librarySdkMemberType) CreateVariantPropertiesStruct() android.SdkMemberProperties {
142 return &nativeLibInfoProperties{memberType: mt}
Paul Duffin2f6bc092019-12-13 10:40:56 +0000143}
144
145func isGeneratedHeaderDirectory(p android.Path) bool {
146 _, gen := p.(android.WritablePath)
147 return gen
148}
149
Paul Duffin64f54b02020-02-20 14:33:54 +0000150type includeDirsProperty struct {
151 // Accessor to retrieve the paths
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000152 pathsGetter func(libInfo *nativeLibInfoProperties) android.Paths
Paul Duffin64f54b02020-02-20 14:33:54 +0000153
154 // The name of the property in the prebuilt library, "" means there is no property.
155 propertyName string
156
157 // The directory within the snapshot directory into which items should be copied.
158 snapshotDir string
159
160 // True if the items on the path should be copied.
161 copy bool
162
163 // True if the paths represent directories, files if they represent files.
164 dirs bool
Paul Duffin74fc1902020-01-23 11:45:03 +0000165}
166
Paul Duffin64f54b02020-02-20 14:33:54 +0000167var includeDirProperties = []includeDirsProperty{
168 {
169 // ExportedIncludeDirs lists directories that contains some header files to be
170 // copied into a directory in the snapshot. The snapshot directories must be added to
171 // the export_include_dirs property in the prebuilt module in the snapshot.
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000172 pathsGetter: func(libInfo *nativeLibInfoProperties) android.Paths { return libInfo.ExportedIncludeDirs },
Paul Duffin64f54b02020-02-20 14:33:54 +0000173 propertyName: "export_include_dirs",
174 snapshotDir: nativeIncludeDir,
175 copy: true,
176 dirs: true,
177 },
178 {
179 // ExportedSystemIncludeDirs lists directories that contains some system header files to
180 // be copied into a directory in the snapshot. The snapshot directories must be added to
181 // the export_system_include_dirs property in the prebuilt module in the snapshot.
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000182 pathsGetter: func(libInfo *nativeLibInfoProperties) android.Paths { return libInfo.ExportedSystemIncludeDirs },
Paul Duffin64f54b02020-02-20 14:33:54 +0000183 propertyName: "export_system_include_dirs",
184 snapshotDir: nativeIncludeDir,
185 copy: true,
186 dirs: true,
187 },
188 {
189 // exportedGeneratedIncludeDirs lists directories that contains some header files
190 // that are explicitly listed in the exportedGeneratedHeaders property. So, the contents
191 // of these directories do not need to be copied, but these directories do need adding to
192 // the export_include_dirs property in the prebuilt module in the snapshot.
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000193 pathsGetter: func(libInfo *nativeLibInfoProperties) android.Paths { return libInfo.exportedGeneratedIncludeDirs },
Paul Duffin64f54b02020-02-20 14:33:54 +0000194 propertyName: "export_include_dirs",
195 snapshotDir: nativeGeneratedIncludeDir,
196 copy: false,
197 dirs: true,
198 },
199 {
200 // exportedGeneratedHeaders lists header files that are in one of the directories
201 // specified in exportedGeneratedIncludeDirs must be copied into the snapshot.
202 // As they are in a directory in exportedGeneratedIncludeDirs they do not need adding to a
203 // property in the prebuilt module in the snapshot.
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000204 pathsGetter: func(libInfo *nativeLibInfoProperties) android.Paths { return libInfo.exportedGeneratedHeaders },
Paul Duffin64f54b02020-02-20 14:33:54 +0000205 propertyName: "",
206 snapshotDir: nativeGeneratedIncludeDir,
207 copy: true,
208 dirs: false,
209 },
210}
211
212// Add properties that may, or may not, be arch specific.
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000213func addPossiblyArchSpecificProperties(sdkModuleContext android.ModuleContext, builder android.SnapshotBuilder, libInfo *nativeLibInfoProperties, outputProperties android.BpPropertySet) {
214
Martin Stjernholmfbb486f2020-08-21 18:43:51 +0100215 if libInfo.SanitizeNever {
216 sanitizeSet := outputProperties.AddPropertySet("sanitize")
217 sanitizeSet.AddProperty("never", true)
218 }
219
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000220 // Copy the generated library to the snapshot and add a reference to it in the .bp module.
221 if libInfo.outputFile != nil {
222 nativeLibraryPath := nativeLibraryPathFor(libInfo)
223 builder.CopyToSnapshot(libInfo.outputFile, nativeLibraryPath)
224 outputProperties.AddProperty("srcs", []string{nativeLibraryPath})
225 }
Paul Duffin64f54b02020-02-20 14:33:54 +0000226
Paul Duffin13f02712020-03-06 12:30:43 +0000227 if len(libInfo.SharedLibs) > 0 {
228 outputProperties.AddPropertyWithTag("shared_libs", libInfo.SharedLibs, builder.SdkMemberReferencePropertyTag(false))
229 }
230
Martin Stjernholm10566a02020-03-24 01:19:52 +0000231 // SystemSharedLibs needs to be propagated if it's a list, even if it's empty,
232 // so check for non-nil instead of nonzero length.
233 if libInfo.SystemSharedLibs != nil {
Paul Duffin13f02712020-03-06 12:30:43 +0000234 outputProperties.AddPropertyWithTag("system_shared_libs", libInfo.SystemSharedLibs, builder.SdkMemberReferencePropertyTag(false))
235 }
236
Paul Duffin64f54b02020-02-20 14:33:54 +0000237 // Map from property name to the include dirs to add to the prebuilt module in the snapshot.
238 includeDirs := make(map[string][]string)
239
240 // Iterate over each include directory property, copying files and collating property
241 // values where necessary.
242 for _, propertyInfo := range includeDirProperties {
243 // Calculate the base directory in the snapshot into which the files will be copied.
244 // lib.ArchType is "" for common properties.
Paul Duffined62b9c2020-06-16 16:12:50 +0100245 targetDir := filepath.Join(libInfo.OsPrefix(), libInfo.archType, propertyInfo.snapshotDir)
Paul Duffin64f54b02020-02-20 14:33:54 +0000246
247 propertyName := propertyInfo.propertyName
248
249 // Iterate over each path in one of the include directory properties.
250 for _, path := range propertyInfo.pathsGetter(libInfo) {
251
252 // Copy the files/directories when necessary.
253 if propertyInfo.copy {
254 if propertyInfo.dirs {
255 // When copying a directory glob and copy all the headers within it.
256 // TODO(jiyong) copy headers having other suffixes
257 headers, _ := sdkModuleContext.GlobWithDeps(path.String()+"/**/*.h", nil)
258 for _, file := range headers {
259 src := android.PathForSource(sdkModuleContext, file)
260 dest := filepath.Join(targetDir, file)
261 builder.CopyToSnapshot(src, dest)
262 }
263 } else {
264 // Otherwise, just copy the files.
265 dest := filepath.Join(targetDir, libInfo.name, path.Rel())
266 builder.CopyToSnapshot(path, dest)
267 }
268 }
269
270 // Only directories are added to a property.
271 if propertyInfo.dirs {
272 var snapshotPath string
273 if isGeneratedHeaderDirectory(path) {
274 snapshotPath = filepath.Join(targetDir, libInfo.name)
275 } else {
276 snapshotPath = filepath.Join(targetDir, path.String())
277 }
278
279 includeDirs[propertyName] = append(includeDirs[propertyName], snapshotPath)
280 }
281 }
Paul Duffin74fc1902020-01-23 11:45:03 +0000282 }
Paul Duffin64f54b02020-02-20 14:33:54 +0000283
284 // Add the collated include dir properties to the output.
285 for property, dirs := range includeDirs {
286 outputProperties.AddProperty(property, dirs)
Paul Duffin74fc1902020-01-23 11:45:03 +0000287 }
Martin Stjernholmc5dd4f72020-04-01 20:38:01 +0100288
289 if len(libInfo.StubsVersion) > 0 {
Martin Stjernholmc5dd4f72020-04-01 20:38:01 +0100290 stubsSet := outputProperties.AddPropertySet("stubs")
Martin Stjernholmc5dd4f72020-04-01 20:38:01 +0100291 stubsSet.AddProperty("versions", []string{libInfo.StubsVersion})
292 }
Paul Duffin74fc1902020-01-23 11:45:03 +0000293}
294
Paul Duffin2f6bc092019-12-13 10:40:56 +0000295const (
296 nativeIncludeDir = "include"
297 nativeGeneratedIncludeDir = "include_gen"
298 nativeStubDir = "lib"
299)
300
301// path to the native library. Relative to <sdk_root>/<api_dir>
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000302func nativeLibraryPathFor(lib *nativeLibInfoProperties) string {
Paul Duffina04c1072020-03-02 10:16:35 +0000303 return filepath.Join(lib.OsPrefix(), lib.archType,
Paul Duffin2f6bc092019-12-13 10:40:56 +0000304 nativeStubDir, lib.outputFile.Base())
305}
306
Paul Duffin2f6bc092019-12-13 10:40:56 +0000307// nativeLibInfoProperties represents properties of a native lib
308//
309// The exported (capitalized) fields will be examined and may be changed during common value extraction.
310// The unexported fields will be left untouched.
311type nativeLibInfoProperties struct {
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000312 android.SdkMemberPropertiesBase
313
314 memberType *librarySdkMemberType
315
Paul Duffin2f6bc092019-12-13 10:40:56 +0000316 // The name of the library, is not exported as this must not be changed during optimization.
317 name string
318
319 // archType is not exported as if set (to a non default value) it is always arch specific.
320 // This is "" for common properties.
321 archType string
322
Paul Duffin5efd1982020-02-20 14:33:54 +0000323 // The list of possibly common exported include dirs.
324 //
325 // This field is exported as its contents may not be arch specific.
Paul Duffin864e1b42020-05-06 10:23:19 +0100326 ExportedIncludeDirs android.Paths `android:"arch_variant"`
Paul Duffin2f6bc092019-12-13 10:40:56 +0000327
Paul Duffin5efd1982020-02-20 14:33:54 +0000328 // The list of arch specific exported generated include dirs.
329 //
330 // This field is not exported as its contents are always arch specific.
331 exportedGeneratedIncludeDirs android.Paths
332
333 // The list of arch specific exported generated header files.
334 //
335 // This field is not exported as its contents are is always arch specific.
Paul Duffin2f6bc092019-12-13 10:40:56 +0000336 exportedGeneratedHeaders android.Paths
337
Paul Duffin5efd1982020-02-20 14:33:54 +0000338 // The list of possibly common exported system include dirs.
339 //
340 // This field is exported as its contents may not be arch specific.
Paul Duffin864e1b42020-05-06 10:23:19 +0100341 ExportedSystemIncludeDirs android.Paths `android:"arch_variant"`
Paul Duffin5efd1982020-02-20 14:33:54 +0000342
343 // The list of possibly common exported flags.
344 //
345 // This field is exported as its contents may not be arch specific.
Paul Duffin864e1b42020-05-06 10:23:19 +0100346 ExportedFlags []string `android:"arch_variant"`
Paul Duffin5efd1982020-02-20 14:33:54 +0000347
Paul Duffin13f02712020-03-06 12:30:43 +0000348 // The set of shared libraries
349 //
350 // This field is exported as its contents may not be arch specific.
Paul Duffin864e1b42020-05-06 10:23:19 +0100351 SharedLibs []string `android:"arch_variant"`
Paul Duffin13f02712020-03-06 12:30:43 +0000352
Martin Stjernholm10566a02020-03-24 01:19:52 +0000353 // The set of system shared libraries. Note nil and [] are semantically
354 // distinct - see BaseLinkerProperties.System_shared_libs.
Paul Duffin13f02712020-03-06 12:30:43 +0000355 //
356 // This field is exported as its contents may not be arch specific.
Paul Duffin864e1b42020-05-06 10:23:19 +0100357 SystemSharedLibs []string `android:"arch_variant"`
Paul Duffin13f02712020-03-06 12:30:43 +0000358
Martin Stjernholmc5dd4f72020-04-01 20:38:01 +0100359 // The specific stubs version for the lib variant, or empty string if stubs
360 // are not in use.
Paul Duffin7a1f7f32020-05-04 15:32:08 +0100361 //
362 // Marked 'ignored-on-host' as the StubsVersion() from which this is initialized is
363 // not set on host and the stubs.versions property which this is written to is does
364 // not vary by arch so cannot be android specific.
365 StubsVersion string `sdk:"ignored-on-host"`
Martin Stjernholmc5dd4f72020-04-01 20:38:01 +0100366
Martin Stjernholmfbb486f2020-08-21 18:43:51 +0100367 // Value of SanitizeProperties.Sanitize.Never. Needs to be propagated for CRT objects.
368 SanitizeNever bool `android:"arch_variant"`
369
Paul Duffin2f6bc092019-12-13 10:40:56 +0000370 // outputFile is not exported as it is always arch specific.
371 outputFile android.Path
372}
373
Paul Duffin3a4eb502020-03-19 16:11:18 +0000374func (p *nativeLibInfoProperties) PopulateFromVariant(ctx android.SdkMemberContext, variant android.Module) {
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000375 ccModule := variant.(*Module)
376
377 // If the library has some link types then it produces an output binary file, otherwise it
378 // is header only.
Martin Stjernholmcd07bce2020-03-10 22:37:59 +0000379 if !p.memberType.noOutputFiles {
Paul Duffin712993c2020-05-05 14:11:57 +0100380 p.outputFile = getRequiredMemberOutputFile(ctx, ccModule)
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000381 }
382
383 // Separate out the generated include dirs (which are arch specific) from the
384 // include dirs (which may not be).
385 exportedIncludeDirs, exportedGeneratedIncludeDirs := android.FilterPathListPredicate(
386 ccModule.ExportedIncludeDirs(), isGeneratedHeaderDirectory)
387
388 p.name = variant.Name()
389 p.archType = ccModule.Target().Arch.ArchType.String()
Paul Duffin9b76c0b2020-03-12 10:24:35 +0000390
391 // Make sure that the include directories are unique.
392 p.ExportedIncludeDirs = android.FirstUniquePaths(exportedIncludeDirs)
393 p.exportedGeneratedIncludeDirs = android.FirstUniquePaths(exportedGeneratedIncludeDirs)
Paul Duffinab5467d2020-06-18 16:31:04 +0100394
395 // Take a copy before filtering out duplicates to avoid changing the slice owned by the
396 // ccModule.
397 dirs := append(android.Paths(nil), ccModule.ExportedSystemIncludeDirs()...)
398 p.ExportedSystemIncludeDirs = android.FirstUniquePaths(dirs)
Paul Duffin9b76c0b2020-03-12 10:24:35 +0000399
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000400 p.ExportedFlags = ccModule.ExportedFlags()
Paul Duffin13f02712020-03-06 12:30:43 +0000401 if ccModule.linker != nil {
402 specifiedDeps := specifiedDeps{}
403 specifiedDeps = ccModule.linker.linkerSpecifiedDeps(specifiedDeps)
404
Martin Stjernholmcc330d62020-04-21 20:45:35 +0100405 if !ccModule.HasStubsVariants() {
406 // Propagate dynamic dependencies for implementation libs, but not stubs.
407 p.SharedLibs = specifiedDeps.sharedLibs
408 }
Paul Duffin13f02712020-03-06 12:30:43 +0000409 p.SystemSharedLibs = specifiedDeps.systemSharedLibs
410 }
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000411 p.exportedGeneratedHeaders = ccModule.ExportedGeneratedHeaders()
Martin Stjernholmc5dd4f72020-04-01 20:38:01 +0100412
413 if ccModule.HasStubsVariants() {
414 p.StubsVersion = ccModule.StubsVersion()
Martin Stjernholmc5dd4f72020-04-01 20:38:01 +0100415 }
Martin Stjernholmfbb486f2020-08-21 18:43:51 +0100416
417 if ccModule.sanitize != nil && proptools.Bool(ccModule.sanitize.Properties.Sanitize.Never) {
418 p.SanitizeNever = true
419 }
Paul Duffin88f2fbe2020-02-27 16:00:53 +0000420}
421
Paul Duffin712993c2020-05-05 14:11:57 +0100422func getRequiredMemberOutputFile(ctx android.SdkMemberContext, ccModule *Module) android.Path {
423 var path android.Path
424 outputFile := ccModule.OutputFile()
425 if outputFile.Valid() {
426 path = outputFile.Path()
427 } else {
428 ctx.SdkModuleContext().ModuleErrorf("member variant %s does not have a valid output file", ccModule)
429 }
430 return path
431}
432
Paul Duffin3a4eb502020-03-19 16:11:18 +0000433func (p *nativeLibInfoProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet android.BpPropertySet) {
434 addPossiblyArchSpecificProperties(ctx.SdkModuleContext(), ctx.SnapshotBuilder(), p, propertySet)
Paul Duffin2f6bc092019-12-13 10:40:56 +0000435}