|
1 | 1 | <Project>
|
2 | 2 | <PropertyGroup>
|
3 | 3 | <EmccFlags Condition="'$(AvaloniaAllowWebGl2)' == 'true'">$(EmccFlags) -sUSE_WEBGL2=1 -sMAX_WEBGL_VERSION=2 -lGL </EmccFlags>
|
| 4 | + <_AvNativeBinaryType Condition="'$(WasmEnableThreads)' == 'True'">mt</_AvNativeBinaryType> |
| 5 | + <_AvNativeBinaryType Condition="'$(WasmEnableThreads)' != 'True'">st</_AvNativeBinaryType> |
4 | 6 | </PropertyGroup>
|
5 | 7 |
|
6 | 8 | <ItemGroup>
|
|
10 | 12 | </ItemGroup>
|
11 | 13 |
|
12 | 14 | <!-- Fallback for applications without StaticWebAssetsEnabled (legacy WASM SDK) -->
|
13 |
| - <ItemGroup Condition="'$(ShouldIncludeAvaloniaLegacyAssets)' == 'True'"> |
| 15 | + <ItemGroup Condition="'$(ShouldIncludeAvaloniaLegacyAssets)' == 'true'"> |
14 | 16 | <WasmExtraFilesToDeploy Condition="'$(WasmRuntimeAssetsLocation)' == ''" Include="$(MSBuildThisFileDirectory)/../staticwebassets/**/*.*" />
|
15 | 17 | <WasmExtraFilesToDeploy Condition="'$(WasmRuntimeAssetsLocation)' != ''" Include="$(MSBuildThisFileDirectory)/../staticwebassets/**/*.*" TargetPath="$(WasmRuntimeAssetsLocation)/%(FileName)%(Extension)" />
|
16 | 18 | </ItemGroup>
|
17 | 19 |
|
18 |
| - <PropertyGroup Condition="'$(ShouldIncludeNativeSkiaSharp)' == 'True' or '$(ShouldIncludeNativeHarfBuzzSharp)' == 'True'"> |
| 20 | + <PropertyGroup Condition="'$(ShouldIncludeNativeSkiaSharp)' == 'true' or '$(ShouldIncludeNativeHarfBuzzSharp)' == 'true'"> |
19 | 21 | <WasmBuildNative Condition="'$(WasmBuildNative)' == ''">true</WasmBuildNative>
|
20 | 22 | </PropertyGroup>
|
21 | 23 |
|
22 |
| - <ItemGroup Condition="'$(TargetFrameworkVersion)' != '' and '$(ShouldIncludeNativeSkiaSharp)' == 'True'"> |
23 |
| - <NativeFileReference Include="$(SkiaSharpStaticLibraryPath)/3.1.34/mt/*.a" Condition="'$(WasmEnableThreads)' == 'True'" /> |
24 |
| - <NativeFileReference Include="$(SkiaSharpStaticLibraryPath)/3.1.34/st/*.a" Condition="'$(WasmEnableThreads)' != 'True'" /> |
| 24 | + <!-- Revisit after https://github.com/mono/SkiaSharp/pull/2620 is merged and released. --> |
| 25 | + <ItemGroup Condition="'$(TargetFrameworkVersion)' != '' and '$(ShouldIncludeNativeSkiaSharp)' == 'true'"> |
| 26 | + <NativeFileReference Include="$(SkiaSharpStaticLibraryPath)\3.1.34\$(_AvNativeBinaryType)\*.a" |
| 27 | + Condition="$([MSBuild]::VersionEquals($(TargetFrameworkVersion), '8.0'))" /> |
| 28 | + <NativeFileReference Include="$(SkiaSharpStaticLibraryPath)\3.1.56\$(_AvNativeBinaryType)\*.a" |
| 29 | + Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '9.0'))" /> |
25 | 30 | </ItemGroup>
|
26 | 31 |
|
27 | 32 | <ItemGroup Condition="'$(TargetFrameworkVersion)' != '' and '$(ShouldIncludeNativeHarfBuzzSharp)' == 'True'">
|
28 |
| - <NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)/3.1.34/st/*.a" Condition="'$(WasmEnableThreads)' != 'True'" /> |
29 |
| - <NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)/3.1.34/mt/*.a" Condition="'$(WasmEnableThreads)' == 'True'" /> |
| 33 | + <NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)\3.1.34\$(_AvNativeBinaryType)\*.a" |
| 34 | + Condition="$([MSBuild]::VersionEquals($(TargetFrameworkVersion), '8.0'))" /> |
| 35 | + <NativeFileReference Include="$(HarfBuzzSharpStaticLibraryPath)\3.1.56\$(_AvNativeBinaryType)\*.a" |
| 36 | + Condition="$([MSBuild]::VersionGreaterThanOrEquals($(TargetFrameworkVersion), '9.0'))" /> |
30 | 37 | </ItemGroup>
|
31 | 38 | </Project>
|
0 commit comments