Skip to content

Commit 8850eb0

Browse files
committed
Fix MacOS
1 parent 8b32583 commit 8850eb0

File tree

3 files changed

+3
-16
lines changed

3 files changed

+3
-16
lines changed

src/UnityWebBrowser.Engine.Cef/Shared/Core/CefSandbox.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ namespace UnityWebBrowser.Engine.Cef.Shared.Core;
1414
public static class CefSandbox
1515
{
1616
#if MACOS
17-
[DllImport("cef_sandbox", EntryPoint = "cef_sandbox_initialize", CallingConvention = CallingConvention.Cdecl)]
17+
[DllImport("libcef_sandbox", EntryPoint = "cef_sandbox_initialize", CallingConvention = CallingConvention.Cdecl)]
1818
public static extern IntPtr cef_sandbox_initialize(int argc, [In] string[] argv);
1919

20-
[DllImport("cef_sandbox", EntryPoint = "cef_sandbox_destroy", CallingConvention = CallingConvention.Cdecl)]
20+
[DllImport("libcef_sandbox", EntryPoint = "cef_sandbox_destroy", CallingConvention = CallingConvention.Cdecl)]
2121
public static extern void cef_sandbox_destroy(IntPtr sandbox_context);
2222

2323
#endif

src/UnityWebBrowser.Engine.Cef/SubProcess/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public static class Program
1616
public static int Main(string[] args)
1717
{
1818
#if MACOS
19-
var sandboxContext = CefSandbox.cef_sandbox_initialize(args.Length, args);
2019
CefMacOsFrameworkLoader.AddFrameworkLoader();
20+
var sandboxContext = CefSandbox.cef_sandbox_initialize(args.Length, args);
2121
#endif
2222

2323
//Setup CEF

src/UnityWebBrowser.Engine.Cef/SubProcess/UnityWebBrowser.Engine.Cef.SubProcess.csproj

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@
2626
</ItemGroup>
2727

2828
<ItemGroup Condition="'$(IsMacOsBuild)'=='true'">
29-
<DirectPInvoke Include="cef_sandbox" />
30-
31-
<LinkerArg Include="-lsandbox" />
32-
<LinkerArg Include="-lc++" />
33-
3429
<None Update="info-subprocess.plist">
3530
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3631
</None>
@@ -44,14 +39,6 @@
4439
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4540
</None>
4641
</ItemGroup>
47-
48-
<ItemGroup Condition="'$(RuntimeIdentifier)'=='osx-x64'">
49-
<NativeLibrary Include="../../ThirdParty/Libs/cef/macosx64/Release/cef_sandbox.a" />
50-
</ItemGroup>
51-
52-
<ItemGroup Condition="'$(RuntimeIdentifier)'=='osx-arm64'">
53-
<NativeLibrary Include="../../ThirdParty/Libs/cef/macosarm64/Release/cef_sandbox.a" />
54-
</ItemGroup>
5542

5643
<PropertyGroup Condition="'$(IsReleaseBuild)'=='true'">
5744
<!-- Prevents XML and PDB files being copied -->

0 commit comments

Comments
 (0)