Merge "Add module based host-tools snapshot"
This commit is contained in:
3
cc/cc.go
3
cc/cc.go
@@ -31,6 +31,7 @@ import (
|
||||
"android/soong/cc/config"
|
||||
"android/soong/fuzz"
|
||||
"android/soong/genrule"
|
||||
"android/soong/snapshot"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -3401,6 +3402,8 @@ func (c *Module) AlwaysRequiresPlatformApexVariant() bool {
|
||||
return c.IsStubs() || c.Target().NativeBridge == android.NativeBridgeEnabled
|
||||
}
|
||||
|
||||
var _ snapshot.RelativeInstallPath = (*Module)(nil)
|
||||
|
||||
//
|
||||
// Defaults
|
||||
//
|
||||
|
@@ -132,12 +132,9 @@ func isSnapshotAware(cfg android.DeviceConfig, m LinkableInterface, inProprietar
|
||||
return false
|
||||
}
|
||||
|
||||
// This is to be saved as .json files, which is for development/vendor_snapshot/update.py.
|
||||
// These flags become Android.bp snapshot module properties.
|
||||
// Extend the snapshot.SnapshotJsonFlags to include cc specific fields.
|
||||
type snapshotJsonFlags struct {
|
||||
ModuleName string `json:",omitempty"`
|
||||
RelativeInstallPath string `json:",omitempty"`
|
||||
|
||||
snapshot.SnapshotJsonFlags
|
||||
// library flags
|
||||
ExportedDirs []string `json:",omitempty"`
|
||||
ExportedSystemDirs []string `json:",omitempty"`
|
||||
@@ -154,7 +151,6 @@ type snapshotJsonFlags struct {
|
||||
SharedLibs []string `json:",omitempty"`
|
||||
StaticLibs []string `json:",omitempty"`
|
||||
RuntimeLibs []string `json:",omitempty"`
|
||||
Required []string `json:",omitempty"`
|
||||
|
||||
// extra config files
|
||||
InitRc []string `json:",omitempty"`
|
||||
|
Reference in New Issue
Block a user