Lift BazelHandler interface into android/
Because it's commonly useful and not cc/ specific Also export GenerateBazelBuildActions and update uses Test: Existing tests pass Change-Id: Ibc6858bb1129afba181a7686dda432defe33b00d
This commit is contained in:
parent
adffbe9166
commit
0d99045b69
@@ -44,13 +44,13 @@ func RegisterLibraryHeadersBuildComponents(ctx android.RegistrationContext) {
|
||||
}
|
||||
|
||||
type libraryHeaderBazelHander struct {
|
||||
bazelHandler
|
||||
android.BazelHandler
|
||||
|
||||
module *Module
|
||||
library *libraryDecorator
|
||||
}
|
||||
|
||||
func (h *libraryHeaderBazelHander) generateBazelBuildActions(ctx android.ModuleContext, label string) bool {
|
||||
func (h *libraryHeaderBazelHander) GenerateBazelBuildActions(ctx android.ModuleContext, label string) bool {
|
||||
bazelCtx := ctx.Config().BazelContext
|
||||
ccInfo, ok, err := bazelCtx.GetCcInfo(label, ctx.Arch().ArchType)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user