namespace XGame.Editor.Build
{
///
/// Android CPU architecture.
/// 位操作
///
public enum AndroidArchitecture
{
None = 0,
///
/// 32-bit ARM architecture.
///
ARMv7 = 1,
///
/// 64-bit ARM architecture.
///
ARM64 = 2,
#if UNITY_2020_OR_NEWER
///
/// 32-bit Intel architecture.
/// Unity_2020及以上
///
X86 = 4,
///
/// 64-bit Intel architecture.
///
X86_64 = 8,
///
/// All architectures.
///
All = ARMv7 | ARM64 | X86 | X86_64,
#else
///
/// All architectures.
///
All = ARMv7 | ARM64,
#endif
}
public static class AndroidArchitectureExt
{
public static UnityEditor.AndroidArchitecture ToUnityImpl(this AndroidArchitecture architecture)
{
if (architecture == AndroidArchitecture.All)
{
return UnityEditor.AndroidArchitecture.All;
}
return (UnityEditor.AndroidArchitecture)architecture;
}
}
}