chore: Compat for pinvoke/native dependencies

This commit is contained in:
Jerome Laban 2024-09-02 23:17:18 -04:00
Родитель 1a30f40e1c
Коммит b0328f02ab
1 изменённых файлов: 15 добавлений и 1 удалений

Просмотреть файл

@ -28,13 +28,27 @@
<WasmBuildNative>true</WasmBuildNative>
</PropertyGroup>
<Target Name="_UnoInjectAOTSupport" BeforeTargets="ResolveRuntimePackAssets">
<Target Name="_UnoInjectAOTSupport"
BeforeTargets="ResolveRuntimePackAssets"
Condition=" '$(WasmShellGenerateAOTProfile)' == 'true' ">
<ItemGroup>
<Reference Include="$(MSBuildThisFileDirectory)../tools/support/Uno.Wasm.AotProfiler.dll" CopyToOutputDirectory="Always" PostProcessAssembly="true" />
<TrimmerRootAssembly Include="Uno.Wasm.AotProfiler" />
</ItemGroup>
</Target>
<Target Name="_UnoInjectPInvokeModules"
BeforeTargets="ResolveRuntimePackAssets">
<ItemGroup>
<!-- PInvoke compat -->
<_WasmPInvokeModules Include="__Native" />
<_WasmPInvokeModules Include="@(WasmShellAdditionalPInvokeLibrary)" />
<!-- Native files compat -->
<NativeFileReference Include="@(WasmShellNativeCompile)" />
</ItemGroup>
</Target>
<UsingTask Condition="!$(_WasmShellTasksPathIsDevMode)" AssemblyFile="$(WasmShellTasksPath)/Uno.Wasm.Bootstrap.v0.dll" TaskName="Uno.Wasm.Bootstrap.ShellTask_v0" />
<UsingTask Condition="!$(_WasmShellTasksPathIsDevMode)" AssemblyFile="$(WasmShellTasksPath)/Uno.Wasm.Bootstrap.v0.dll" TaskName="Uno.Wasm.Bootstrap.ValidateStaticAssets_v0" />
<UsingTask Condition="!$(_WasmShellTasksPathIsDevMode)" AssemblyFile="$(WasmShellTasksPath)/Uno.Wasm.Bootstrap.v0.dll" TaskName="Uno.Wasm.Bootstrap.StaticWebAssetsResolverTask_v0" />