public class AndroidMultiPlatform extends Object implements MultiPlatform
| Constructor and Description |
|---|
AndroidMultiPlatform(BuildTarget buildTarget,
Platform basePlatform,
com.google.common.collect.ImmutableSortedMap<TargetCpuType,NamedPlatform> nestedPlatforms)
Creates an instance of
AndroidMultiPlatform. |
| Modifier and Type | Method and Description |
|---|---|
Platform |
getBasePlatform()
Access base platform of this platform, for example, CPU-neutral Android platform
|
BuildTarget |
getBuildTarget()
Build target used to define this platform
|
com.google.common.collect.ImmutableCollection<NamedPlatform> |
getNestedPlatforms()
Access nested platforms, for example, per-CPU platforms for Android platform
|
com.google.common.collect.ImmutableSortedMap<TargetCpuType,NamedPlatform> |
getNestedPlatformsByCpuType()
Android platform is a multiplatform which maps knows CPUs to nested platforms.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatchesAllpublic AndroidMultiPlatform(BuildTarget buildTarget, Platform basePlatform, com.google.common.collect.ImmutableSortedMap<TargetCpuType,NamedPlatform> nestedPlatforms)
AndroidMultiPlatform.
A multiplatform is a platform the has a base platform and multiple nested platforms. Base platform is the platform that is used in the context that expects a single platform. Nested platforms a handled by special logic in particular places. For example, when the same target needs to be built for every platform specified in nested platform the multiplatform is processed by duplicating targets with nested platforms in configurations.
public BuildTarget getBuildTarget()
NamedPlatformgetBuildTarget in interface NamedPlatformpublic Platform getBasePlatform()
MultiPlatformgetBasePlatform in interface MultiPlatformpublic com.google.common.collect.ImmutableCollection<NamedPlatform> getNestedPlatforms()
MultiPlatformgetNestedPlatforms in interface MultiPlatformpublic com.google.common.collect.ImmutableSortedMap<TargetCpuType,NamedPlatform> getNestedPlatformsByCpuType()