Skip to content

Commit 8e8f706

Browse files
authored
Add GDK x64+ARM64 projects (#617)
1 parent 7aa7771 commit 8e8f706

5 files changed

Lines changed: 1027 additions & 1 deletion

File tree

.azuredevops/pipelines/DirectXTK-GitHub-GDK-Dev17.yml

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ resources:
3232
- repository: self
3333
type: git
3434
ref: refs/heads/main
35+
- repository: testRepo
36+
name: walbourn/directxtktest
37+
type: github
38+
endpoint: microsoft
39+
ref: refs/heads/main
3540

3641
name: $(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)
3742

@@ -248,3 +253,110 @@ jobs:
248253
inputs:
249254
cwd: '$(Build.SourcesDirectory)'
250255
cmakeArgs: --build out\build\x64-Debug-GDK
256+
257+
- job: BUILD_GDKW
258+
condition: ge(variables.GDKEditionNumber, '251000')
259+
displayName: 'Microsoft Game Development Kit (ARM64+x64)'
260+
timeoutInMinutes: 120
261+
cancelTimeoutInMinutes: 1
262+
steps:
263+
- checkout: self
264+
clean: true
265+
fetchTags: false
266+
fetchDepth: 1
267+
path: 's'
268+
- checkout: testRepo
269+
displayName: Fetch Tests
270+
clean: true
271+
fetchTags: false
272+
fetchDepth: 1
273+
path: 's/Tests'
274+
- task: NuGetToolInstaller@1
275+
displayName: 'Use NuGet'
276+
- task: PowerShell@2
277+
displayName: 'Create nuget.config with single source'
278+
inputs:
279+
targetType: inline
280+
script: |
281+
$xml = @'
282+
<?xml version="1.0" encoding="utf-8"?>
283+
<configuration>
284+
<packageSources>
285+
<clear />
286+
</packageSources>
287+
</configuration>
288+
'@
289+
$xml | Set-Content -Path "$(Build.SourcesDirectory)\NuGet.config"
290+
291+
- task: NuGetCommand@2
292+
# We have to use a nuget.config to provide the feed for the 'nuget install' option.
293+
displayName: 'NuGet set package source to ADO feed'
294+
inputs:
295+
command: custom
296+
arguments: sources add -Name xboxgdk -Source $(URL_FEED) -ConfigFile $(Build.SourcesDirectory)\NuGet.config
297+
- task: nuget-security-analysis@0
298+
displayName: 'Secure Supply Chain Analysis'
299+
- task: NuGetAuthenticate@1
300+
displayName: 'NuGet Auth'
301+
- task: PowerShell@2
302+
displayName: 'NuGet Install GDK'
303+
inputs:
304+
targetType: filePath
305+
filePath: ./build/RestoreGDK.ps1
306+
arguments: -GDKEditionNumber $(GDK_EDITION) -OutputDirectory $(EXTRACTED_FOLDER) -NewLayout
307+
failOnStderr: true
308+
- task: NuGetCommand@2
309+
displayName: 'NuGet install GDK (Windows)'
310+
inputs:
311+
command: custom
312+
arguments: >
313+
install -directdownload Microsoft.GDK.Windows -ExcludeVersion -Version $(GDKNuGetPackageVersion)
314+
-OutputDirectory $(EXTRACTED_FOLDER)
315+
- task: CopyFiles@2
316+
displayName: Set up Directory.Build.props
317+
inputs:
318+
SourceFolder: build
319+
Contents: 'Directory.Build.props'
320+
TargetFolder: $(Build.SourcesDirectory)
321+
- task: MSBuild@1
322+
displayName: Log Information
323+
inputs:
324+
solution: build/LogInfo.targets
325+
msbuildArchitecture: x64
326+
msbuildArguments: /p:GDKEditionNumber=$(GDK_EDITION)
327+
- task: VSBuild@1
328+
displayName: Build arm64dbg
329+
continueOnError: true
330+
inputs:
331+
solution: '**\*GDKW_2022*.sln'
332+
platform: ARM64
333+
configuration: Debug
334+
msbuildArchitecture: x64
335+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
336+
- task: VSBuild@1
337+
displayName: Build arm64rel
338+
continueOnError: true
339+
inputs:
340+
solution: '**\*GDKW_2022*.sln'
341+
platform: ARM64
342+
configuration: Release
343+
msbuildArchitecture: x64
344+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
345+
- task: VSBuild@1
346+
displayName: Build x64dbg
347+
continueOnError: true
348+
inputs:
349+
solution: '**\*GDKW_2022*.sln'
350+
platform: x64
351+
configuration: Debug
352+
msbuildArchitecture: x64
353+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)
354+
- task: VSBuild@1
355+
displayName: Build x64rel
356+
continueOnError: true
357+
inputs:
358+
solution: '**\*GDKW_2022*.sln'
359+
platform: x64
360+
configuration: Release
361+
msbuildArchitecture: x64
362+
msbuildArgs: /p:GDKEditionNumber=$(GDK_EDITION)

DirectXTK_GDKW_2022.sln

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.14.37111.16 d17.14
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DirectXTK", "DirectXTK_GDKW_2022.vcxproj", "{26BE66BD-6E77-43BA-B363-725F9FC827C1}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|ARM64 = Debug|ARM64
11+
Debug|x64 = Debug|x64
12+
Profile|ARM64 = Profile|ARM64
13+
Profile|x64 = Profile|x64
14+
Release|ARM64 = Release|ARM64
15+
Release|x64 = Release|x64
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Debug|ARM64.ActiveCfg = Debug|ARM64
19+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Debug|ARM64.Build.0 = Debug|ARM64
20+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Debug|x64.ActiveCfg = Debug|x64
21+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Debug|x64.Build.0 = Debug|x64
22+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Profile|ARM64.ActiveCfg = Profile|ARM64
23+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Profile|ARM64.Build.0 = Profile|ARM64
24+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Profile|x64.ActiveCfg = Profile|x64
25+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Profile|x64.Build.0 = Profile|x64
26+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Release|ARM64.ActiveCfg = Release|ARM64
27+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Release|ARM64.Build.0 = Release|ARM64
28+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Release|x64.ActiveCfg = Release|x64
29+
{26BE66BD-6E77-43BA-B363-725F9FC827C1}.Release|x64.Build.0 = Release|x64
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {C9774FA7-D1E4-4559-A33C-120FAA21EE34}
36+
EndGlobalSection
37+
EndGlobal

0 commit comments

Comments
 (0)