diff options
author | 2023-10-13 11:32:14 -0700 | |
---|---|---|
committer | 2023-10-18 15:21:14 -0700 | |
commit | 11edf557b673f91995a4b9d26e47d942fba74dce (patch) | |
tree | 21ed6540ba0e35b5e55844ffc92a76b57ef0bff3 /android/bazel_handler.go | |
parent | 03787bea6d58171c084ea8840f3a717137f60687 (diff) |
Add bazel-built modules as deps on the system image
These bazel-built modules will be installed into the system image
as part of the bazel rule, rather than going through the make staging
directory.
Bug: 297269187
Test: m bazel_sandwich
Change-Id: I96c6e58f8e0898b2ad92cb7069745ca2059a39f8
Diffstat (limited to 'android/bazel_handler.go')
-rw-r--r-- | android/bazel_handler.go | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/android/bazel_handler.go b/android/bazel_handler.go index 51ce3c9e9..0c654154a 100644 --- a/android/bazel_handler.go +++ b/android/bazel_handler.go @@ -245,6 +245,55 @@ type noopBazelContext struct{} var _ BazelContext = noopBazelContext{} +func (n noopBazelContext) QueueBazelRequest(_ string, _ cqueryRequest, _ configKey) { + panic("unimplemented") +} + +func (n noopBazelContext) QueueBazelSandwichCqueryRequests(config Config) error { + panic("unimplemented") +} + +func (n noopBazelContext) GetOutputFiles(_ string, _ configKey) ([]string, error) { + panic("unimplemented") +} + +func (n noopBazelContext) GetCcInfo(_ string, _ configKey) (cquery.CcInfo, error) { + panic("unimplemented") +} + +func (n noopBazelContext) GetApexInfo(_ string, _ configKey) (cquery.ApexInfo, error) { + panic("unimplemented") +} + +func (n noopBazelContext) GetCcUnstrippedInfo(_ string, _ configKey) (cquery.CcUnstrippedInfo, error) { + //TODO implement me + panic("implement me") +} + +func (n noopBazelContext) GetPrebuiltFileInfo(_ string, _ configKey) (cquery.PrebuiltFileInfo, error) { + panic("implement me") +} + +func (n noopBazelContext) InvokeBazel(_ Config, _ invokeBazelContext) error { + panic("unimplemented") +} + +func (m noopBazelContext) OutputBase() string { + return "" +} + +func (n noopBazelContext) IsModuleNameAllowed(_ string, _ bool) bool { + return false +} + +func (m noopBazelContext) BuildStatementsToRegister() []*bazel.BuildStatement { + return []*bazel.BuildStatement{} +} + +func (m noopBazelContext) AqueryDepsets() []bazel.AqueryDepset { + return []bazel.AqueryDepset{} +} + // A bazel context to use for tests. type MockBazelContext struct { OutputBaseDir string @@ -427,55 +476,6 @@ func (bazelCtx *mixedBuildBazelContext) GetPrebuiltFileInfo(label string, cfgKey return cquery.PrebuiltFileInfo{}, fmt.Errorf("no bazel response for %s", key) } -func (n noopBazelContext) QueueBazelRequest(_ string, _ cqueryRequest, _ configKey) { - panic("unimplemented") -} - -func (n noopBazelContext) QueueBazelSandwichCqueryRequests(config Config) error { - panic("unimplemented") -} - -func (n noopBazelContext) GetOutputFiles(_ string, _ configKey) ([]string, error) { - panic("unimplemented") -} - -func (n noopBazelContext) GetCcInfo(_ string, _ configKey) (cquery.CcInfo, error) { - panic("unimplemented") -} - -func (n noopBazelContext) GetApexInfo(_ string, _ configKey) (cquery.ApexInfo, error) { - panic("unimplemented") -} - -func (n noopBazelContext) GetCcUnstrippedInfo(_ string, _ configKey) (cquery.CcUnstrippedInfo, error) { - //TODO implement me - panic("implement me") -} - -func (n noopBazelContext) GetPrebuiltFileInfo(_ string, _ configKey) (cquery.PrebuiltFileInfo, error) { - panic("implement me") -} - -func (n noopBazelContext) InvokeBazel(_ Config, _ invokeBazelContext) error { - panic("unimplemented") -} - -func (m noopBazelContext) OutputBase() string { - return "" -} - -func (n noopBazelContext) IsModuleNameAllowed(_ string, _ bool) bool { - return false -} - -func (m noopBazelContext) BuildStatementsToRegister() []*bazel.BuildStatement { - return []*bazel.BuildStatement{} -} - -func (m noopBazelContext) AqueryDepsets() []bazel.AqueryDepset { - return []bazel.AqueryDepset{} -} - func AddToStringSet(set map[string]bool, items []string) { for _, item := range items { set[item] = true |