Add LinuxBionic OsType
Actual support will come in later changes. Bug: 31559095 Test: out/soong/build.ninja is identical Change-Id: I31392fb78a51f43567d16aef89e32cd5137cdbc1
This commit is contained in:
parent
0a37a2a2b8
commit
00fcbde401
17
Android.bp
17
Android.bp
|
@ -186,6 +186,23 @@ bootstrap_go_package {
|
|||
pluginFor: ["soong_build"],
|
||||
}
|
||||
|
||||
//
|
||||
// Defaults to enable various configurations of host bionic
|
||||
//
|
||||
|
||||
cc_defaults {
|
||||
name: "linux_bionic_supported",
|
||||
host_supported: true,
|
||||
target: {
|
||||
host: {
|
||||
enabled: false,
|
||||
},
|
||||
linux_bionic: {
|
||||
enabled: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
//
|
||||
// C static libraries extracted from the gcc toolchain
|
||||
//
|
||||
|
|
|
@ -191,17 +191,19 @@ var BuildOs = func() OsType {
|
|||
var (
|
||||
osTypeList []OsType
|
||||
|
||||
NoOsType OsType
|
||||
Linux = NewOsType("linux", Host, false)
|
||||
Darwin = NewOsType("darwin", Host, false)
|
||||
Windows = NewOsType("windows", HostCross, true)
|
||||
Android = NewOsType("android", Device, false)
|
||||
NoOsType OsType
|
||||
Linux = NewOsType("linux", Host, false)
|
||||
Darwin = NewOsType("darwin", Host, false)
|
||||
LinuxBionic = NewOsType("linux_bionic", Host, true)
|
||||
Windows = NewOsType("windows", HostCross, true)
|
||||
Android = NewOsType("android", Device, false)
|
||||
|
||||
osArchTypeMap = map[OsType][]ArchType{
|
||||
Linux: []ArchType{X86, X86_64},
|
||||
Darwin: []ArchType{X86, X86_64},
|
||||
Windows: []ArchType{X86, X86_64},
|
||||
Android: []ArchType{Arm, Arm64, Mips, Mips64, X86, X86_64},
|
||||
Linux: []ArchType{X86, X86_64},
|
||||
LinuxBionic: []ArchType{X86_64},
|
||||
Darwin: []ArchType{X86, X86_64},
|
||||
Windows: []ArchType{X86, X86_64},
|
||||
Android: []ArchType{Arm, Arm64, Mips, Mips64, X86, X86_64},
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue