Loading android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -1486,6 +1486,10 @@ func (c *config) MissingUsesLibraries() []string { return c.productVariables.MissingUsesLibraries } func (c *config) TargetMultitreeUpdateMeta() bool { return c.productVariables.MultitreeUpdateMeta } func (c *deviceConfig) DeviceArch() string { return String(c.config.productVariables.DeviceArch) } Loading android/paths.go +4 −2 Original line number Diff line number Diff line Loading @@ -1057,7 +1057,8 @@ func safePathForSource(ctx PathContext, pathComponents ...string) (SourcePath, e } // absolute path already checked by validateSafePath if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) { // special-case api surface gen files for now if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) && !strings.Contains(ret.String(), ctx.Config().soongOutDir+"/.export") { return ret, fmt.Errorf("source path %q is in output", ret.String()) } Loading @@ -1073,7 +1074,8 @@ func pathForSource(ctx PathContext, pathComponents ...string) (SourcePath, error } // absolute path already checked by validatePath if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) { // special-case for now if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) && !strings.Contains(ret.String(), ctx.Config().soongOutDir+"/.export") { return ret, fmt.Errorf("source path %q is in output", ret.String()) } Loading android/variable.go +2 −0 Original line number Diff line number Diff line Loading @@ -352,6 +352,8 @@ type productVariables struct { RecoverySnapshotDirsIncluded []string `json:",omitempty"` HostFakeSnapshotEnabled bool `json:",omitempty"` MultitreeUpdateMeta bool `json:",omitempty"` BoardVendorSepolicyDirs []string `json:",omitempty"` BoardOdmSepolicyDirs []string `json:",omitempty"` BoardReqdMaskPolicy []string `json:",omitempty"` Loading apex/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ bootstrap_go_package { "soong-cc", "soong-filesystem", "soong-java", "soong-multitree", "soong-provenance", "soong-python", "soong-rust", Loading apex/apex.go +18 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import ( prebuilt_etc "android/soong/etc" "android/soong/filesystem" "android/soong/java" "android/soong/multitree" "android/soong/python" "android/soong/rust" "android/soong/sh" Loading Loading @@ -358,6 +359,7 @@ type apexBundle struct { android.OverridableModuleBase android.SdkBase android.BazelModuleBase multitree.ExportableModuleBase // Properties properties apexBundleProperties Loading Loading @@ -1359,6 +1361,21 @@ func (a *apexBundle) OutputFiles(tag string) (android.Paths, error) { } } var _ multitree.Exportable = (*apexBundle)(nil) func (a *apexBundle) Exportable() bool { if a.properties.ApexType == flattenedApex { return false } return true } func (a *apexBundle) TaggedOutputs() map[string]android.Paths { ret := make(map[string]android.Paths) ret["apex"] = android.Paths{a.outputFile} return ret } var _ cc.Coverage = (*apexBundle)(nil) // Implements cc.Coverage Loading Loading @@ -2372,6 +2389,7 @@ func newApexBundle() *apexBundle { android.InitSdkAwareModule(module) android.InitOverridableModule(module, &module.overridableProperties.Overrides) android.InitBazelModule(module) multitree.InitExportableModule(module) return module } Loading Loading
android/config.go +4 −0 Original line number Diff line number Diff line Loading @@ -1486,6 +1486,10 @@ func (c *config) MissingUsesLibraries() []string { return c.productVariables.MissingUsesLibraries } func (c *config) TargetMultitreeUpdateMeta() bool { return c.productVariables.MultitreeUpdateMeta } func (c *deviceConfig) DeviceArch() string { return String(c.config.productVariables.DeviceArch) } Loading
android/paths.go +4 −2 Original line number Diff line number Diff line Loading @@ -1057,7 +1057,8 @@ func safePathForSource(ctx PathContext, pathComponents ...string) (SourcePath, e } // absolute path already checked by validateSafePath if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) { // special-case api surface gen files for now if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) && !strings.Contains(ret.String(), ctx.Config().soongOutDir+"/.export") { return ret, fmt.Errorf("source path %q is in output", ret.String()) } Loading @@ -1073,7 +1074,8 @@ func pathForSource(ctx PathContext, pathComponents ...string) (SourcePath, error } // absolute path already checked by validatePath if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) { // special-case for now if strings.HasPrefix(ret.String(), ctx.Config().soongOutDir) && !strings.Contains(ret.String(), ctx.Config().soongOutDir+"/.export") { return ret, fmt.Errorf("source path %q is in output", ret.String()) } Loading
android/variable.go +2 −0 Original line number Diff line number Diff line Loading @@ -352,6 +352,8 @@ type productVariables struct { RecoverySnapshotDirsIncluded []string `json:",omitempty"` HostFakeSnapshotEnabled bool `json:",omitempty"` MultitreeUpdateMeta bool `json:",omitempty"` BoardVendorSepolicyDirs []string `json:",omitempty"` BoardOdmSepolicyDirs []string `json:",omitempty"` BoardReqdMaskPolicy []string `json:",omitempty"` Loading
apex/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ bootstrap_go_package { "soong-cc", "soong-filesystem", "soong-java", "soong-multitree", "soong-provenance", "soong-python", "soong-rust", Loading
apex/apex.go +18 −0 Original line number Diff line number Diff line Loading @@ -33,6 +33,7 @@ import ( prebuilt_etc "android/soong/etc" "android/soong/filesystem" "android/soong/java" "android/soong/multitree" "android/soong/python" "android/soong/rust" "android/soong/sh" Loading Loading @@ -358,6 +359,7 @@ type apexBundle struct { android.OverridableModuleBase android.SdkBase android.BazelModuleBase multitree.ExportableModuleBase // Properties properties apexBundleProperties Loading Loading @@ -1359,6 +1361,21 @@ func (a *apexBundle) OutputFiles(tag string) (android.Paths, error) { } } var _ multitree.Exportable = (*apexBundle)(nil) func (a *apexBundle) Exportable() bool { if a.properties.ApexType == flattenedApex { return false } return true } func (a *apexBundle) TaggedOutputs() map[string]android.Paths { ret := make(map[string]android.Paths) ret["apex"] = android.Paths{a.outputFile} return ret } var _ cc.Coverage = (*apexBundle)(nil) // Implements cc.Coverage Loading Loading @@ -2372,6 +2389,7 @@ func newApexBundle() *apexBundle { android.InitSdkAwareModule(module) android.InitOverridableModule(module, &module.overridableProperties.Overrides) android.InitBazelModule(module) multitree.InitExportableModule(module) return module } Loading