SetScriptingDefineSymbolsForTest.cs 579 B

12345678910111213141516171819
  1. using System;
  2. using UnityEditor;
  3. namespace Unity.WebRTC.EditorTest
  4. {
  5. [InitializeOnLoad]
  6. class SetScriptingDefineSymbolsForTest
  7. {
  8. static SetScriptingDefineSymbolsForTest()
  9. {
  10. if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("YAMATO_JOB_ID")))
  11. {
  12. var target = EditorUserBuildSettings.activeBuildTarget;
  13. var group = BuildPipeline.GetBuildTargetGroup(target);
  14. PlayerSettings.SetScriptingDefineSymbolsForGroup(group, "WEBRTC_TEST_PROJECT");
  15. }
  16. }
  17. }
  18. }