Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb4438ff authored by Paul Duffin's avatar Paul Duffin Committed by Gerrit Code Review
Browse files

Merge "Make apex_set support ":<apex>" syntax to access the apex file"

parents d3dfb899 4f2282c2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -915,6 +915,15 @@ func (a *ApexSet) hasSanitizedSource(sanitizer string) bool {
	return false
}

func (a *ApexSet) OutputFiles(tag string) (android.Paths, error) {
	switch tag {
	case "":
		return android.Paths{a.outputApex}, nil
	default:
		return nil, fmt.Errorf("unsupported module reference tag %q", tag)
	}
}

// prebuilt_apex imports an `.apex` file into the build graph as if it was built with apex.
func apexSetFactory() android.Module {
	module := &ApexSet{}