|
52 | 52 | <Import Condition="Exists($(ATGBuildProps))" Project="$(ATGBuildProps)" /> |
53 | 53 | <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
54 | 54 | <PropertyGroup> |
| 55 | + <GDKPCEditionPath Condition="'$(GDKPCEditionPath)'==''">$(GRDKLatest)</GDKPCEditionPath> |
55 | 56 | <GDKCrossPlatformPath Condition="'$(GDKCrossPlatformPath)'==''">$(GameDKCoreLatest)</GDKCrossPlatformPath> |
56 | 57 | <GDKCrossPlatformPath Condition="'$(GDKCrossPlatformPath)'==''">$(GameDKXboxLatest)</GDKCrossPlatformPath> |
57 | 58 | </PropertyGroup> |
| 59 | + <PropertyGroup> |
| 60 | + <GDKCrossPlatform Condition="'$(GDKCrossPlatform)'=='' AND Exists('$(GDKCrossPlatformPath)windows')">true</GDKCrossPlatform> |
| 61 | + <GDKCrossPlatform Condition="'$(GDKCrossPlatform)'=='' AND Exists('$(GDKPCEditionPath)GameKit')">false</GDKCrossPlatform> |
| 62 | + </PropertyGroup> |
| 63 | + <PropertyGroup Condition="'$(GDKCrossPlatform)'!='true'"> |
| 64 | + <WindowsIncludePath>$(GDKPCEditionPath)GameKit\Include</WindowsIncludePath> |
| 65 | + <WindowsLibraryPath>$(GDKPCEditionPath)GameKit\lib\amd64</WindowsLibraryPath> |
| 66 | + </PropertyGroup> |
| 67 | + <PropertyGroup Condition="'$(GDKCrossPlatform)'=='true'"> |
| 68 | + <WindowsIncludePath>$(GDKCrossPlatformPath)windows\include</WindowsIncludePath> |
| 69 | + <WindowsLibraryPath>$(GDKCrossPlatformPath)windows\lib\x64</WindowsLibraryPath> |
| 70 | + </PropertyGroup> |
58 | 71 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Gaming.Xbox.XboxOne.x64'" Label="Configuration"> |
59 | 72 | <ConfigurationType>StaticLibrary</ConfigurationType> |
60 | 73 | <PlatformToolset>v143</PlatformToolset> |
|
220 | 233 | </PropertyGroup> |
221 | 234 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
222 | 235 | <ExecutablePath>$(GameDK)bin;$(ExecutablePath)</ExecutablePath> |
223 | | - <IncludePath>$(GDKCrossPlatformPath)windows\include;$(IncludePath);</IncludePath> |
224 | | - <LibraryPath>$(GDKCrossPlatformPath)windows\lib\x64;$(LibraryPath)</LibraryPath> |
| 236 | + <IncludePath>$(WindowsIncludePath);$(IncludePath);</IncludePath> |
| 237 | + <LibraryPath>$(WindowsLibraryPath);$(LibraryPath)</LibraryPath> |
225 | 238 | <LinkIncremental>false</LinkIncremental> |
226 | 239 | <OutDir>Bin\GDKX_2022\$(Platform)\$(Configuration)\</OutDir> |
227 | 240 | <IntDir>Bin\GDKX_2022\$(Platform)\$(Configuration)\</IntDir> |
228 | 241 | <TargetName>DirectXTK12</TargetName> |
229 | 242 | </PropertyGroup> |
230 | 243 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Profile|x64'"> |
231 | 244 | <ExecutablePath>$(GameDK)bin;$(ExecutablePath)</ExecutablePath> |
232 | | - <IncludePath>$(GDKCrossPlatformPath)windows\include;$(IncludePath);</IncludePath> |
233 | | - <LibraryPath>$(GDKCrossPlatformPath)windows\lib\x64;$(LibraryPath)</LibraryPath> |
| 245 | + <IncludePath>$(WindowsIncludePath);$(IncludePath);</IncludePath> |
| 246 | + <LibraryPath>$(WindowsLibraryPath);$(LibraryPath)</LibraryPath> |
234 | 247 | <LinkIncremental>false</LinkIncremental> |
235 | 248 | <OutDir>Bin\GDKX_2022\$(Platform)\$(Configuration)\</OutDir> |
236 | 249 | <IntDir>Bin\GDKX_2022\$(Platform)\$(Configuration)\</IntDir> |
237 | 250 | <TargetName>DirectXTK12</TargetName> |
238 | 251 | </PropertyGroup> |
239 | 252 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
240 | 253 | <ExecutablePath>$(GameDK)bin;$(ExecutablePath)</ExecutablePath> |
241 | | - <IncludePath>$(GDKCrossPlatformPath)windows\include;$(IncludePath);</IncludePath> |
242 | | - <LibraryPath>$(GDKCrossPlatformPath)windows\lib\x64;$(LibraryPath)</LibraryPath> |
| 254 | + <IncludePath>$(WindowsIncludePath);$(IncludePath);</IncludePath> |
| 255 | + <LibraryPath>$(WindowsLibraryPath);$(LibraryPath)</LibraryPath> |
243 | 256 | <LinkIncremental>false</LinkIncremental> |
244 | 257 | <OutDir>Bin\GDKX_2022\$(Platform)\$(Configuration)\</OutDir> |
245 | 258 | <IntDir>Bin\GDKX_2022\$(Platform)\$(Configuration)\</IntDir> |
|
687 | 700 | <Target Name="GDKEditionCheck" BeforeTargets="PrepareForBuild"> |
688 | 701 | <Error Condition="'$(GameDK)'==''" Text="GameDK property is required" /> |
689 | 702 | <Error Condition="!HasTrailingSlash('$(GameDK)')" Text="GameDK property must have trailing slash" /> |
690 | | - <Error Condition="'$(GDKCrossPlatformPath)'==''" Text="GDKCrossPlatformPath property, GameDKCoreLatest environment variable, or GameDKXboxLatest environment variable is required" /> |
691 | | - <Error Condition="!HasTrailingSlash('$(GDKCrossPlatformPath)')" Text="GDKCrossPlatformPath property must have trailing slash" /> |
692 | | - <Error Condition="!Exists('$(GDKCrossPlatformPath)windows')" Text="GDKCrossPlatformPath needs to point to the October 2025 GDK or later" /> |
693 | | - <Message Importance="high" Text="Using $(GDKCrossPlatformPath)" /> |
| 703 | + <Error Condition="'$(GDKCrossPlatform)'==''" Text="GameDKCoreLatest, GameDKXboxLatest, or GRDKLatest is required" /> |
694 | 704 | </Target> |
695 | 705 | <Target Name="EnsureGDK" BeforeTargets="_CheckForInvalidConfigurationAndPlatform" Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('$(Platform)', 'Gaming\..+\.x64'))"> |
696 | 706 | <PropertyGroup> |
|
0 commit comments