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

Commit 26faf1b3 authored by Zi Wang's avatar Zi Wang Committed by Gerrit Code Review
Browse files

Merge "Use OutputFilesProvider on cc_cmake_snapshot" into main

parents 9b3fba9b f95cfa60
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@
package cc

import (
	"android/soong/android"
	"bytes"
	_ "embed"
	"fmt"
@@ -25,6 +24,8 @@ import (
	"strings"
	"text/template"

	"android/soong/android"

	"github.com/google/blueprint"
	"github.com/google/blueprint/proptools"
)
@@ -462,15 +463,8 @@ func (m *CmakeSnapshot) GenerateAndroidBuildActions(ctx android.ModuleContext) {

	// Finish generating the final zip file
	zipRule.Build(m.zipPath.String(), "archiving "+ctx.ModuleName())
}

func (m *CmakeSnapshot) OutputFiles(tag string) (android.Paths, error) {
	switch tag {
	case "":
		return android.Paths{m.zipPath}, nil
	default:
		return nil, fmt.Errorf("unsupported module reference tag %q", tag)
	}
	ctx.SetOutputFiles(android.Paths{m.zipPath}, "")
}

func (m *CmakeSnapshot) AndroidMkEntries() []android.AndroidMkEntries {