Add missing changes to default Uno props file needed for compilation. Fixed compiling GTK under WinUI 2 / 3

This commit is contained in:
Arlo Godfrey 2022-04-13 13:33:15 -05:00
Родитель d90fcf66f7
Коммит 4ed156f862
1 изменённых файлов: 23 добавлений и 10 удалений

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

@ -1,23 +1,36 @@
<Project>
<!--
Use "All" to prevent circular import references
We just need the TFM values.
-->
<Import Project="Labs.TargetFrameworks.All.props" />
<Import Project="Labs.TargetFrameworks.props" />
<PropertyGroup>
<IsUno Condition="'$(TargetFramework)' != '$(UwpTargetFramework)' AND '$(TargetFramework)' != '$(WinAppSdkTargetFramework)'">True</IsUno>
<IsWasm Condition="'$(TargetFramework)' == '$(WasmHeadTargetFramework)' or '$(TargetFramework)' == '$(WasmLibTargetFramework)'">True</IsWasm>
<IsWpf Condition="'$(TargetFramework)' == '$(WpfHeadTargetFramework)'">True</IsWpf>
<IsGtk Condition="'$(TargetFramework)' == '$(LinuxHeadTargetFramework)' or '$(TargetFramework)' == '$(LinuxLibTargetFramework)'">True</IsGtk>
<IsDroid Condition="'$(TargetFramework)' == '$(AndroidLibTargetFramework)'">True</IsDroid>
<IsMacOS Condition="'$(TargetFramework)' == '$(MacOSLibTargetFramework)'">True</IsMacOS>
<IsiOS Condition="'$(TargetFramework)' == '$(iOSLibTargetFramework)'">True</IsiOS>
<IsUno Condition="'$(IsWasm)' == 'true' OR '$(IsWpf)' == 'true' OR '$(IsGtk)' == 'true' OR '$(IsDroid)' == 'true' OR '$(IsMacOS)' == 'true' OR '$(IsiOS)' == 'true'">True</IsUno>
<DefineConstants>$(DefineConstants);</DefineConstants>
</PropertyGroup>
<ItemGroup Condition="'$(IsUno)' == 'true'AND '$(IsWasm)' == 'false'">
<PackageReference Include="Uno.UI" Version="4.0.11" />
<ItemGroup Condition="'$(IsUno)' == 'true'">
<PackageReference Include="Uno.UI" Version="4.1.9" />
</ItemGroup>
<ItemGroup Condition="'$(IsUno)' == 'true' AND '$(IsWasm)' == 'true'">
<PackageReference Include="Uno.UI.WebAssembly" Version="4.0.9" />
<ItemGroup Condition="'$(IsWasm)' == 'true' OR '$(IsWpf)' == 'true' OR '$(IsGtk)' == 'true'">
<PackageReference Include="Uno.UI.RemoteControl" Version="4.0.9" Condition="'$(Configuration)'=='Debug'" />
</ItemGroup>
<ItemGroup Condition="'$(IsGtk)' == 'true'">
<PackageReference Include="Uno.UI.Skia.Gtk" Version="4.1.9" />
</ItemGroup>
<ItemGroup Condition="'$(IsWpf)' == 'true'">
<PackageReference Include="Uno.UI.Skia.Wpf" Version="4.1.9" />
</ItemGroup>
<ItemGroup Condition="'$(IsWasm)' == 'true'">
<PackageReference Include="Uno.UI.WebAssembly" Version="4.0.9" />
</ItemGroup>
</Project>