Merge "Export NewPrebuiltObject"
This commit is contained in:
commit
34d52eed1e
3 changed files with 8 additions and 8 deletions
|
@ -94,8 +94,8 @@ type ObjectLinkerProperties struct {
|
||||||
Crt *bool
|
Crt *bool
|
||||||
}
|
}
|
||||||
|
|
||||||
func newObject() *Module {
|
func newObject(hod android.HostOrDeviceSupported) *Module {
|
||||||
module := newBaseModule(android.HostAndDeviceSupported, android.MultilibBoth)
|
module := newBaseModule(hod, android.MultilibBoth)
|
||||||
module.sanitize = &sanitize{}
|
module.sanitize = &sanitize{}
|
||||||
module.stl = &stl{}
|
module.stl = &stl{}
|
||||||
return module
|
return module
|
||||||
|
@ -105,7 +105,7 @@ func newObject() *Module {
|
||||||
// necessary, but sometimes used to generate .s files from .c files to use as
|
// necessary, but sometimes used to generate .s files from .c files to use as
|
||||||
// input to a cc_genrule module.
|
// input to a cc_genrule module.
|
||||||
func ObjectFactory() android.Module {
|
func ObjectFactory() android.Module {
|
||||||
module := newObject()
|
module := newObject(android.HostAndDeviceSupported)
|
||||||
module.linker = &objectLinker{
|
module.linker = &objectLinker{
|
||||||
baseLinker: NewBaseLinker(module.sanitize),
|
baseLinker: NewBaseLinker(module.sanitize),
|
||||||
}
|
}
|
||||||
|
|
|
@ -388,8 +388,8 @@ func (p *prebuiltObjectLinker) object() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
func newPrebuiltObject() *Module {
|
func NewPrebuiltObject(hod android.HostOrDeviceSupported) *Module {
|
||||||
module := newObject()
|
module := newObject(hod)
|
||||||
prebuilt := &prebuiltObjectLinker{
|
prebuilt := &prebuiltObjectLinker{
|
||||||
objectLinker: objectLinker{
|
objectLinker: objectLinker{
|
||||||
baseLinker: NewBaseLinker(nil),
|
baseLinker: NewBaseLinker(nil),
|
||||||
|
@ -403,7 +403,7 @@ func newPrebuiltObject() *Module {
|
||||||
}
|
}
|
||||||
|
|
||||||
func prebuiltObjectFactory() android.Module {
|
func prebuiltObjectFactory() android.Module {
|
||||||
module := newPrebuiltObject()
|
module := NewPrebuiltObject(android.HostAndDeviceSupported)
|
||||||
return module.Init()
|
return module.Init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -931,7 +931,7 @@ func (p *snapshotObjectLinker) nativeCoverage() bool {
|
||||||
// development/vendor_snapshot/update.py. As a part of vendor snapshot, vendor_snapshot_object
|
// development/vendor_snapshot/update.py. As a part of vendor snapshot, vendor_snapshot_object
|
||||||
// overrides the vendor variant of the cc object with the same name, if BOARD_VNDK_VERSION is set.
|
// overrides the vendor variant of the cc object with the same name, if BOARD_VNDK_VERSION is set.
|
||||||
func VendorSnapshotObjectFactory() android.Module {
|
func VendorSnapshotObjectFactory() android.Module {
|
||||||
module := newObject()
|
module := newObject(android.DeviceSupported)
|
||||||
|
|
||||||
prebuilt := &snapshotObjectLinker{
|
prebuilt := &snapshotObjectLinker{
|
||||||
objectLinker: objectLinker{
|
objectLinker: objectLinker{
|
||||||
|
@ -949,7 +949,7 @@ func VendorSnapshotObjectFactory() android.Module {
|
||||||
// development/vendor_snapshot/update.py. As a part of recovery snapshot, recovery_snapshot_object
|
// development/vendor_snapshot/update.py. As a part of recovery snapshot, recovery_snapshot_object
|
||||||
// overrides the recovery variant of the cc object with the same name, if BOARD_VNDK_VERSION is set.
|
// overrides the recovery variant of the cc object with the same name, if BOARD_VNDK_VERSION is set.
|
||||||
func RecoverySnapshotObjectFactory() android.Module {
|
func RecoverySnapshotObjectFactory() android.Module {
|
||||||
module := newObject()
|
module := newObject(android.DeviceSupported)
|
||||||
|
|
||||||
prebuilt := &snapshotObjectLinker{
|
prebuilt := &snapshotObjectLinker{
|
||||||
objectLinker: objectLinker{
|
objectLinker: objectLinker{
|
||||||
|
|
Loading…
Reference in a new issue