Merge "Use OutputFilesProvider on cc_cmake_snapshot" into main
This commit is contained in:
@@ -15,7 +15,6 @@
|
|||||||
package cc
|
package cc
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"android/soong/android"
|
|
||||||
"bytes"
|
"bytes"
|
||||||
_ "embed"
|
_ "embed"
|
||||||
"fmt"
|
"fmt"
|
||||||
@@ -25,6 +24,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
|
"android/soong/android"
|
||||||
|
|
||||||
"github.com/google/blueprint"
|
"github.com/google/blueprint"
|
||||||
"github.com/google/blueprint/proptools"
|
"github.com/google/blueprint/proptools"
|
||||||
)
|
)
|
||||||
@@ -462,15 +463,8 @@ func (m *CmakeSnapshot) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
|||||||
|
|
||||||
// Finish generating the final zip file
|
// Finish generating the final zip file
|
||||||
zipRule.Build(m.zipPath.String(), "archiving "+ctx.ModuleName())
|
zipRule.Build(m.zipPath.String(), "archiving "+ctx.ModuleName())
|
||||||
}
|
|
||||||
|
|
||||||
func (m *CmakeSnapshot) OutputFiles(tag string) (android.Paths, error) {
|
ctx.SetOutputFiles(android.Paths{m.zipPath}, "")
|
||||||
switch tag {
|
|
||||||
case "":
|
|
||||||
return android.Paths{m.zipPath}, nil
|
|
||||||
default:
|
|
||||||
return nil, fmt.Errorf("unsupported module reference tag %q", tag)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *CmakeSnapshot) AndroidMkEntries() []android.AndroidMkEntries {
|
func (m *CmakeSnapshot) AndroidMkEntries() []android.AndroidMkEntries {
|
||||||
|
Reference in New Issue
Block a user