Skip to content

Commit

Permalink
Try to fix index/main
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Oct 24, 2024
1 parent 579e965 commit 996270e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/Raylib.NET.Native/Raylib.NET.Native.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,16 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/</PackagePath>
</Content>
<Content Include="index.html" Link="index.html" Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">
<Content Include="index.html"">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/$(RuntimeIdentifier)/native</PackagePath>
<PackagePath>runtimes/browser-wasm/native/</PackagePath>
</Content>
<Content Include="main.js" Link="main.js" Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">
<Content Include="main.js">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<PackagePath>runtimes/$(RuntimeIdentifier)/native</PackagePath>
<PackagePath>runtimes/browser-wasm/native/</PackagePath>
</Content>
<None Pack="true" Include="buildTransitive/Raylib.NET.Native.props" PackagePath="buildTransitive/Raylib.NET.Native.props"/>
<None Pack="true" Include="buildTransitive/Raylib.NET.Native.targets" PackagePath="buildTransitive/Raylib.NET.Native.targets"/>
<None Pack="true" Include="buildTransitive/Raylib.NET.Native.props" PackagePath="buildTransitive/$(PackageId).props"/>
<None Pack="true" Include="buildTransitive/Raylib.NET.Native.targets" PackagePath="buildTransitive/$(PackageId).targets"/>
</ItemGroup>
<Target Name="CompileNatives" AfterTargets="Build" Condition="'$(SkipNatives)' != 'true'">
Expand Down
6 changes: 2 additions & 4 deletions src/Raylib.NET.Native/buildTransitive/Raylib.NET.Native.props
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">
<!-- Build native code for WASM -->
<WasmBuildNative>true</WasmBuildNative>

<!-- Reduces file size by a lot -->
<InvariantGlobalization>true</InvariantGlobalization>

<!-- ASYNCIFY and exception handling dont rly work together -->
<WasmEnableExceptionHandling>false</WasmEnableExceptionHandling>

<!-- Enable ASYNCIFY, needed for main loop -->
<EmccFlags>-s USE_GLFW=3 -sASYNCIFY=1 -O3</EmccFlags>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<Project>
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'browser-wasm'">
<NativeFileReference Include="$(OutputPath)raylib.a"/>
<WasmExtraFilesToDeploy Include="$(OutputPath)index.html"/>
Expand Down

0 comments on commit 996270e

Please sign in to comment.