|
|
|
@ -1,6 +1,8 @@ |
|
|
|
<Project> |
|
|
|
<PropertyGroup> |
|
|
|
<EmccFlags Condition="'$(AvaloniaAllowWebGl2)' == 'true'">$(EmccFlags) -sUSE_WEBGL2=1 -sMAX_WEBGL_VERSION=2 -lGL </EmccFlags> |
|
|
|
<_AvNativeBinaryType Condition="'$(WasmEnableThreads)' == 'True'">mt</_AvNativeBinaryType> |
|
|
|
<_AvNativeBinaryType Condition="'$(WasmEnableThreads)' != 'True'">st</_AvNativeBinaryType> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
@ -10,22 +12,27 @@ |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<!-- Fallback for applications without StaticWebAssetsEnabled (legacy WASM SDK) --> |
|
|
|
<ItemGroup Condition="'$(ShouldIncludeAvaloniaLegacyAssets)' == 'True'"> |
|
|
|
<ItemGroup Condition="'$(ShouldIncludeAvaloniaLegacyAssets)' == 'true'"> |
|
|
|
<WasmExtraFilesToDeploy Condition="'$(WasmRuntimeAssetsLocation)' == ''" Include="$(MSBuildThisFileDirectory)/../staticwebassets/**/*.*" /> |
|
|
|
<WasmExtraFilesToDeploy Condition="'$(WasmRuntimeAssetsLocation)' != ''" Include="$(MSBuildThisFileDirectory)/../staticwebassets/**/*.*" TargetPath="$(WasmRuntimeAssetsLocation)/%(FileName)%(Extension)" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(ShouldIncludeNativeSkiaSharp)' == 'True' or '$(ShouldIncludeNativeHarfBuzzSharp)' == 'True'"> |
|
|
|
<PropertyGroup Condition="'$(ShouldIncludeNativeSkiaSharp)' == 'true' or '$(ShouldIncludeNativeHarfBuzzSharp)' == 'true'"> |
|
|
|
<WasmBuildNative Condition="'$(WasmBuildNative)' == ''">true</WasmBuildNative> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup Condition="'$(TargetFrameworkVersion)' != '' and '$(ShouldIncludeNativeSkiaSharp)' == 'True'"> |
|
|
|
<NativeFileReference Include="$(SkiaSharpStaticLibraryPath)/3.1.34/mt/*.a" Condition="'$(WasmEnableThreads)' == 'True'" /> |
|
|
|
<NativeFileReference Include="$(SkiaSharpStaticLibraryPath)/3.1.34/st/*.a" Condition="'$(WasmEnableThreads)' != 'True'" /> |
|
|
|
<!-- Revisit after https://github.com/mono/SkiaSharp/pull/2620 is merged and released. --> |
|
|
|
<ItemGroup Condition="'$(TargetFrameworkVersion)' != '' and '$(ShouldIncludeNativeSkiaSharp)' == 'true'"> |
|
|
|
<NativeFileReference Include="$(SkiaSharpStaticLibraryPath)\3.1.34\$(_AvNativeBinaryType)\*.a" |
|
|
|
Condition="$([MSBuild]::VersionEquals($(TargetFrameworkVersion), '8.0'))" /> |
|
|
|
<NativeFileReference Include="$(SkiaSharpStaticLibraryPath)\3.1.56\$(_AvNativeBinaryType)\*.a" |
|
|
|
Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '9.0'))" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
<ItemGroup Condition="'$(TargetFrameworkVersion)' != '' and '$(ShouldIncludeNativeHarfBuzzSharp)' == 'True'"> |
|
|
|
<NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)/3.1.34/st/*.a" Condition="'$(WasmEnableThreads)' != 'True'" /> |
|
|
|
<NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)/3.1.34/mt/*.a" Condition="'$(WasmEnableThreads)' == 'True'" /> |
|
|
|
<NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)\3.1.34\$(_AvNativeBinaryType)\*.a" |
|
|
|
Condition="$([MSBuild]::VersionEquals($(TargetFrameworkVersion), '8.0'))" /> |
|
|
|
<NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)\3.1.56\$(_AvNativeBinaryType)\*.a" |
|
|
|
Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '9.0'))" /> |
|
|
|
</ItemGroup> |
|
|
|
</Project> |
|
|
|
|