51 lines
No EOL
2.2 KiB
XML
51 lines
No EOL
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- this file is used by the Villager tool check if sdks are correctly installed -->
|
|
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<ItemGroup>
|
|
<!-- Stadia is needed for win64 target and has a weird name -->
|
|
<Platform Include="Stadia" Condition="'$(Platform)' == 'win64' OR '$(Platform)' == '_reserved9'">
|
|
<Name>Stadia</Name>
|
|
<SDKName>Stadia SDK</SDKName>
|
|
<Reg>64</Reg>
|
|
</Platform>
|
|
<Platform Include="Switch" Condition="'$(Platform)' == 'nx'">
|
|
<Name>Switch</Name>
|
|
<SDKName>Nintendo Target Manager</SDKName>
|
|
<Reg>64</Reg>
|
|
</Platform>
|
|
<Platform Include="PS4" Condition="'$(Platform)' == 'orbis'">
|
|
<Name>PS4</Name>
|
|
<SDKName>Publishing Tools for PlayStation®4</SDKName>
|
|
<Reg>32</Reg>
|
|
</Platform>
|
|
<Platform Include="PS5" Condition="'$(Platform)' == 'prospero'">
|
|
<Name>PS5</Name>
|
|
<SDKName>Publishing Tools for Prospero</SDKName>
|
|
<Reg>32</Reg>
|
|
</Platform>
|
|
<Platform Include="XBoxOne" Condition="'$(Platform)' == 'durango'">
|
|
<Name>XBoxOne</Name>
|
|
<SDKName>Microsoft Xbox One XDK</SDKName>
|
|
<Reg>32</Reg>
|
|
</Platform>
|
|
<!-- XBoxSeriesX is needed for win64 and sharpmake -->
|
|
<Platform Include="XBoxSeriesX" Condition="'$(Platform)' == '' OR '$(Platform)' == 'win64' OR '$(Platform)' == 'scarlett'">
|
|
<Name>XBoxSeriesX</Name>
|
|
<SDKName>Microsoft Game Development Kit</SDKName>
|
|
<Reg>32</Reg>
|
|
</Platform>
|
|
</ItemGroup>
|
|
|
|
<Target Name="Build" Inputs="@(Platform)" Outputs="%(Platform.Name).txt">
|
|
<PropertyGroup>
|
|
<PlatformOnError>%(Platform.Name)</PlatformOnError>
|
|
</PropertyGroup>
|
|
|
|
<Exec Command='reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s /t REG_SZ /f "%(Platform.SDKName)" /reg:%(Platform.Reg)'/>
|
|
<OnError ExecuteTargets="PrintError" />
|
|
</Target>
|
|
|
|
<Target Name="PrintError">
|
|
<Error Text="$(PlatformOnError) SDK not installed, please check with the StarterKit"/>
|
|
</Target>
|
|
</Project> |