diff options
author | 2021-05-20 13:01:32 -0400 | |
---|---|---|
committer | 2021-06-03 08:31:55 -0400 | |
commit | d67a6b0a8824ec93f365b2a4777dd6773f6e352c (patch) | |
tree | 300511b5fdf79febc54d006d960df4f02037acde /cc/snapshot_utils.go | |
parent | 7e21d3cd04102e9c328de1dbf4d6abd059874e61 (diff) |
Export cc vendor functions for usage by rust.
This CL exports and refactors some cc vendor-snapshot related functions
so they can be reused by rust modules to support vendor snapshotting.
Bug: 184042776
Test: m nothing
Change-Id: I12706e62ce0ac3b2b4298085fafc1d77b8e0a0c4
Diffstat (limited to 'cc/snapshot_utils.go')
-rw-r--r-- | cc/snapshot_utils.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/snapshot_utils.go b/cc/snapshot_utils.go index 8eb616448..7b62603ef 100644 --- a/cc/snapshot_utils.go +++ b/cc/snapshot_utils.go @@ -20,7 +20,7 @@ import ( ) var ( - headerExts = []string{".h", ".hh", ".hpp", ".hxx", ".h++", ".inl", ".inc", ".ipp", ".h.generic"} + HeaderExts = []string{".h", ".hh", ".hpp", ".hxx", ".h++", ".inl", ".inc", ".ipp", ".h.generic"} ) func (m *Module) IsSnapshotLibrary() bool { @@ -109,7 +109,7 @@ func ShouldCollectHeadersForSnapshot(ctx android.ModuleContext, m LinkableInterf return ctx.Config().VndkSnapshotBuildArtifacts() } - for _, image := range []snapshotImage{vendorSnapshotImageSingleton, recoverySnapshotImageSingleton} { + for _, image := range []snapshotImage{VendorSnapshotImageSingleton, recoverySnapshotImageSingleton} { if isSnapshotAware(ctx.DeviceConfig(), m, image.isProprietaryPath(ctx.ModuleDir(), ctx.DeviceConfig()), apexInfo, image) { return true } |