Skip to content

Commit 77483da

Browse files
committed
fix: compilation flags
1 parent cd2ccfd commit 77483da

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/Engines/EngineProcess.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
2+
13
// UnityWebBrowser (UWB)
24
// Copyright (c) 2021-2024 Voltstro-Studios
35
//
@@ -27,11 +29,7 @@ internal sealed class EngineProcess : IDisposable
2729
/// <param name="logger"></param>
2830
public EngineProcess(Engine engine, IWebBrowserLogger logger)
2931
{
30-
#if UNITY_STANDALONE_WIN
3132
processHandle = new WindowProcess();
32-
#elif UNITY_STANDALONE_LINUX
33-
processHandle = new LinuxProcess(logger);
34-
#endif
3533

3634
this.engine = engine;
3735
this.logger = logger;
@@ -77,4 +75,6 @@ public void Dispose()
7775
processHandle.Dispose();
7876
}
7977
}
80-
}
78+
}
79+
80+
#endif

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/Engines/Process/IProcess.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
2+
13
// UnityWebBrowser (UWB)
24
// Copyright (c) 2021-2024 Voltstro-Studios
35
//
@@ -18,4 +20,6 @@ internal interface IProcess : IDisposable
1820

1921
public int ExitCode { get; }
2022
}
21-
}
23+
}
24+
25+
#endif

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Core/Engines/Process/WindowProcess.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
#if UNITY_STANDALONE_WIN || (UNITY_ANDROID && UNITY_EDITOR_WIN) || (UNITY_IPHONE && UNITY_EDITOR_WIN)
2+
13
// UnityWebBrowser (UWB)
24
// Copyright (c) 2021-2024 Voltstro-Studios
35
//
46
// This project is under the MIT license. See the LICENSE.md file for more details.
57

6-
#if UNITY_STANDALONE_WIN
7-
88
using System;
99
using System.ComponentModel;
1010
using System.Diagnostics;

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/VoltstroStudios.UnityWebBrowser.asmdef

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"rootNamespace": "VoltstroStudios.UnityWebBrowser",
44
"references": [
55
"UniTask",
6-
"Unity.InputSystem",
76
"Immutable.Browser.Core"
87
],
98
"includePlatforms": [

0 commit comments

Comments
 (0)