ConditionalIgnore.cs 486 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using UnityEngine.TestTools;
  3. namespace Unity.RenderStreaming.RuntimeTest
  4. {
  5. internal class ConditionalIgnore
  6. {
  7. public const string IL2CPP = "IgnoreIL2CPP";
  8. [RuntimeInitializeOnLoadMethod]
  9. static void OnLoad()
  10. {
  11. #if ENABLE_IL2CPP
  12. ConditionalIgnoreAttribute.AddConditionalIgnoreMapping(IL2CPP, true);
  13. #else
  14. ConditionalIgnoreAttribute.AddConditionalIgnoreMapping(IL2CPP, false);
  15. #endif
  16. }
  17. }
  18. }