chore: Adjust emcc compat
This commit is contained in:
Родитель
248177d0a6
Коммит
6bdbb21556
|
@ -38,7 +38,7 @@
|
|||
</Target>
|
||||
|
||||
<Target Name="_UnoAdjustCompatibility"
|
||||
BeforeTargets="ResolveRuntimePackAssets">
|
||||
BeforeTargets="BeforeBuild">
|
||||
<ItemGroup>
|
||||
<!-- PInvoke compat -->
|
||||
<_WasmPInvokeModules Include="__Native" />
|
||||
|
@ -47,11 +47,18 @@
|
|||
|
||||
<!-- Native files compat -->
|
||||
<NativeFileReference Include="@(WasmShellNativeCompile)" />
|
||||
|
||||
<_NativeAssetsFiltered Include="@(Assets)" Condition=" '%(Extension)'=='.a' OR '%(Extension)'=='.o' OR '%(Extension)'=='.bc' " />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<WasmEnableThreads Condition=" '$(WasmShellEnableThreads)' == 'true' ">true</WasmEnableThreads>
|
||||
<WasmBuildNative Condition=" @(_WasmPInvokeModules->Count()) > 0 or @(NativeFileReference->Count()) > 0 OR @(_NativeAssetsFiltered->Count())">true</WasmBuildNative>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<_NativeAssetsFiltered Remove="@(_NativeAssetsFiltered)" />
|
||||
</ItemGroup>
|
||||
</Target>
|
||||
|
||||
<UsingTask Condition="!$(_WasmShellTasksPathIsDevMode)" AssemblyFile="$(WasmShellTasksPath)/Uno.Wasm.Bootstrap.v0.dll" TaskName="Uno.Wasm.Bootstrap.ShellTask_v0" />
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<StartupObject>Uno.Wasm.Sample.Program</StartupObject>
|
||||
<MonoRuntimeDebuggerEnabled Condition="'$(Configuration)'=='Debug'">true</MonoRuntimeDebuggerEnabled>
|
||||
|
||||
<WasmBuildNative>true</WasmBuildNative>
|
||||
<UseAOT>true</UseAOT>
|
||||
<WasmShellMonoRuntimeExecutionMode>Interpreter</WasmShellMonoRuntimeExecutionMode>
|
||||
<!--<WasmShellEnableEmccProfiling>true</WasmShellEnableEmccProfiling>-->
|
||||
<WasmShellILLinkerEnabled>true</WasmShellILLinkerEnabled>
|
||||
|
|
|
@ -1,15 +1,13 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ItemGroup Condition="'$(WasmBuildNative)'=='true' or '$(WasmShellGenerateAOTProfile)'=='true'">
|
||||
<ItemGroup Condition="'$(UseAOT)'=='true' or '$(WasmShellGenerateAOTProfile)'=='true'">
|
||||
<Content Include="$(MSBuildThisFileDirectory)native/**/*.bc" />
|
||||
<WasmShellNativeCompile Include="$(MSBuildThisFileDirectory)test.cpp" />
|
||||
<WasmShellNativeCompile Include="$(MSBuildThisFileDirectory)test2.cpp" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="System.Web.Services.Description" Version="4.10.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<WasmShellEmccExportedRuntimeMethod Include="GL" />
|
||||
|
||||
|
@ -18,7 +16,7 @@
|
|||
<WasmShellExtraEmccFlags Include="-s USE_CLOSURE_COMPILER=1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(WasmBuildNative)'=='true'">
|
||||
<ItemGroup Condition="'$(UseAOT)'=='true'">
|
||||
<WasmShellAdditionalPInvokeLibrary Include="libc" />
|
||||
<WasmShellAdditionalPInvokeLibrary Include="libc.so" />
|
||||
</ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче