chore: Compat for pinvoke/native dependencies
This commit is contained in:
Родитель
1a30f40e1c
Коммит
b0328f02ab
|
@ -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" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче