-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathProGPU.Samples.Browser.csproj
More file actions
40 lines (40 loc) · 2.19 KB
/
Copy pathProGPU.Samples.Browser.csproj
File metadata and controls
40 lines (40 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<Project Sdk="Microsoft.NET.Sdk.WebAssembly">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<InvariantGlobalization>true</InvariantGlobalization>
<WasmEnableSIMD>true</WasmEnableSIMD>
<WasmEnableHotReload Condition="'$(WasmEnableHotReload)' == '' And '$(Configuration)' == 'Debug'">true</WasmEnableHotReload>
<RunAOTCompilation Condition="'$(RunAOTCompilation)' == '' And '$(Configuration)' == 'Release'">true</RunAOTCompilation>
<RunAOTCompilation Condition="'$(RunAOTCompilation)' == ''">false</RunAOTCompilation>
<PublishTrimmed Condition="'$(RunAOTCompilation)' == 'true'">true</PublishTrimmed>
<WasmBuildNative Condition="'$(WasmBuildNative)' == ''">true</WasmBuildNative>
<ProGpuUseWindowsBaseShim>true</ProGpuUseWindowsBaseShim>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ProGPU.Browser\ProGPU.Browser.csproj" />
<ProjectReference Include="..\ProGPU.Samples\ProGPU.Samples.csproj" />
</ItemGroup>
<ItemGroup>
<Content Update="wwwroot/main.js"
CopyToOutputDirectory="Always"
CopyToPublishDirectory="Always" />
<UpToDateCheckInput Include="..\ProGPU.Browser\BrowserAssets\progpu-browser.js" />
</ItemGroup>
<ItemGroup Condition="'$(RunAOTCompilation)' == 'true'">
<!-- Mono 10's browser AOT compiler asserts on netDxf 2.4.0. Keep that third-party
assembly in the supported mixed interpreter/AOT mode while all ProGPU code is AOT compiled. -->
<_AOT_InternalForceInterpretAssemblies Include="netDxf.netstandard.dll" />
</ItemGroup>
<Target Name="_ProGpuRemoveBrowserRuntimeWindowsBase" AfterTargets="ResolveReferences">
<ItemGroup>
<ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)"
Condition="'%(ReferenceCopyLocalPaths.Filename)' == 'WindowsBase'
And '%(ReferenceCopyLocalPaths.NuGetPackageId)' == 'Microsoft.NETCore.App.Runtime.Mono.browser-wasm'" />
</ItemGroup>
</Target>
</Project>