Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
9ab36b7
Initial script
guimafelipe Sep 30, 2025
3d8dc83
Downloading ms2cc
guimafelipe Sep 30, 2025
8323d8f
Adding compile commands database to git ignore
guimafelipe Sep 30, 2025
f6908a3
Changing name of temporary log files
guimafelipe Sep 30, 2025
fc32011
Adding ms2cc to git ignore
guimafelipe Sep 30, 2025
0f23f7f
Adding current build file directory to files included in test projects
guimafelipe Oct 1, 2025
f215bdd
Adding 2
guimafelipe Oct 1, 2025
061dbcd
Bumping version of ms2cc
guimafelipe Oct 1, 2025
00f9789
Using specific path for almost all includes in the project
guimafelipe Oct 1, 2025
a3befce
Not cleaning intermediate files if building local
guimafelipe Oct 1, 2025
e2ed1bb
Fixing include path on everything
guimafelipe Oct 1, 2025
1c0141c
Using both bin logs
guimafelipe Oct 1, 2025
213caaf
Testing eol
guimafelipe Oct 1, 2025
eb97073
Testing eol 2
guimafelipe Oct 1, 2025
c3cddcb
Revert "Testing eol 2"
guimafelipe Oct 1, 2025
46c9ca6
Revert "Testing eol"
guimafelipe Oct 1, 2025
93df0d8
Testing eol 3
guimafelipe Oct 1, 2025
5d24606
Fixing EOF on test vcxproj files
guimafelipe Oct 1, 2025
4a0ad1d
Fixing missing test files
guimafelipe Oct 1, 2025
0d6b13f
Revert "Fixing missing test files"
guimafelipe Oct 1, 2025
5ecd1b2
Revert "Fixing EOF on test vcxproj files"
guimafelipe Oct 1, 2025
221f460
Revert "Testing eol 3"
guimafelipe Oct 1, 2025
7aa3f44
Revert "Fixing include path on everything"
guimafelipe Oct 1, 2025
c3b1f8e
Revert "Using specific path for almost all includes in the project"
guimafelipe Oct 1, 2025
b7e9fe9
Revert "Adding 2"
guimafelipe Oct 1, 2025
fcb6344
Revert "Adding current build file directory to files included in test…
guimafelipe Oct 1, 2025
649a900
Regex magic
guimafelipe Oct 1, 2025
28c7dd2
Small changes on build all ps1
guimafelipe Oct 1, 2025
472d62d
adding suggestion
guimafelipe Oct 3, 2025
53ea440
Adding CleanIntermediateFiles argument to BuildAll.ps1 script
guimafelipe Oct 3, 2025
f63dbf3
Improving binlog file discovering
guimafelipe Oct 3, 2025
37f8e52
Removing temporary files
guimafelipe Oct 3, 2025
f2cb8e3
Adding more logging
guimafelipe Oct 3, 2025
b196ba3
Merge branch 'main' into user/felipeda/compiledb2
guimafelipe Oct 4, 2025
6da3435
Fixing delete intermediate files
guimafelipe Oct 4, 2025
119b742
Adding update functionality to script
guimafelipe Oct 4, 2025
331fa32
Adding documentation
guimafelipe Oct 7, 2025
04a0b16
Fixing casing and identation
guimafelipe Oct 7, 2025
1a2ab6a
Fixing open braces
guimafelipe Oct 7, 2025
695a614
Adding .hpp
guimafelipe Oct 7, 2025
728d2dd
Adding opt in to download ms2cc or using existing path
guimafelipe Oct 7, 2025
d465a4e
Removing ms2cc from gitignore
guimafelipe Oct 7, 2025
acfe357
Adding hpp part 2
guimafelipe Oct 7, 2025
028635c
Changing most of the not important logging to verbose
guimafelipe Oct 7, 2025
4cffe83
Adding absolute path fix to precompiled header
guimafelipe Oct 14, 2025
5d136de
Moving context path include to front
guimafelipe Oct 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -395,3 +395,6 @@ build/override/
# WindowsAppSDK specific files
Microsoft.WinUI.AppX.targets
!dev/vsix/**/*.pubxml

# Compile commands database for clang-based tools
compile_commands.json
14 changes: 10 additions & 4 deletions BuildAll.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ Param(
[string]$OutputDirectory = (Split-Path $MyInvocation.MyCommand.Path) + "\BuildOutput",
[string]$PGOBuildMode = "Optimize",
[string]$UpdateVersionDetailsPath = $null,
[switch]$Clean = $false
[switch]$Clean = $false,
[switch]$CleanIntermediateFiles = $false
)

Set-StrictMode -Version 3.0
Expand Down Expand Up @@ -146,7 +147,7 @@ Try {
{
$destinationPaths = Get-Childitem -Path 'packages' -File 'Traceloggingconfig.h' -Recurse

if (($destinationPaths -ne $null))
if (($destinationPaths -ne $null))
{
foreach ($destPath in $destinationPaths) {
Write-Host 'SourcePath:' $srcPath.FullName
Expand All @@ -165,6 +166,11 @@ Try {
# PreFastSetup intentionally skips the call to MSBuild.exe below.
if (($AzureBuildStep -eq "all") -Or ($AzureBuildStep -eq "BuildFoundation"))
{
$cleanIntermediateFilesArg = ""
if ($CleanIntermediateFiles -eq $true)
{
$cleanIntermediateFilesArg = "/p:WindowsAppSDKCleanIntermediateFiles=true"
}
foreach($configurationToRun in $configuration.Split(","))
{
foreach($platformToRun in $platform.Split(","))
Expand All @@ -178,7 +184,7 @@ Try {
/binaryLogger:"BuildOutput/binlogs/WindowsAppRuntime.$platformToRun.$configurationToRun.binlog" `
$WindowsAppSDKVersionProperty `
/p:PGOBuildMode=$PGOBuildMode `
/p:WindowsAppSDKCleanIntermediateFiles=true `
$cleanIntermediateFilesArg `
/p:AppxSymbolPackageEnabled=false `
/p:WindowsAppSDKBuildPipeline=$WindowsAppSDKBuildPipeline
if ($lastexitcode -ne 0)
Expand Down Expand Up @@ -279,7 +285,7 @@ Try {
{
foreach($platformToRun in $platform.Split(","))
{
# TODO: $windowsAppSdkBinariesPath may not be defined. Remove the temp downgrade to 1.0 once this issue has been fixed (b#52130179).
# TODO: $windowsAppSdkBinariesPath may not be defined. Remove the temp downgrade to 1.0 once this issue has been fixed (b#52130179).
Set-StrictMode -Version 1.0
.\build\CopyFilesToStagingDir.ps1 -BuildOutputDir 'BuildOutput' -OverrideDir "$buildOverridePath" -PublishDir "$windowsAppSdkBinariesPath" -NugetDir "$BasePath" -Platform $PlatformToRun -Configuration $ConfigurationToRun
Set-StrictMode -Version 3.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ steps:
name: BuildFoundation
inputs:
filePath: 'BuildAll.ps1'
arguments: -AzureBuildStep "BuildAnyCPU"
arguments: -AzureBuildStep "BuildAnyCPU" -CleanIntermediateFiles

- ${{ if eq(parameters.runPREfast, 'true') }}:
- task: SDLNativeRules@3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ steps:
name: BuildFoundation
inputs:
filePath: 'BuildAll.ps1'
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildFoundation"
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildFoundation" -CleanIntermediateFiles

- ${{ if eq(parameters.runPREfast, 'true') }}:
- task: SDLNativeRules@3
Expand Down Expand Up @@ -111,10 +111,10 @@ steps:
!**\*packages*\**
!**\*Demoapp*\**
!**\*Demopackage\**
!**\HelloWorldAdvancedC*\**
!**\HelloWorldAdvancedC*\**
!**\DecimalCalculator_C*\**
!**\arm\**
!**\arm64\**
!**\arm\**
!**\arm64\**
!**\te.*exe
!**\te.*dll
!**\wex.*exe
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ steps:
retryCountOnTaskFailure: 10
inputs:
filePath: 'BuildAll.ps1'
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildMRT"
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildMRT" -CleanIntermediateFiles

- ${{ if eq(parameters.runPREfast, 'true') }}:
- task: SDLNativeRules@3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ parameters:

stages:
- stage: Pack
dependsOn:
dependsOn:
- Build_AnyCPU
- Build_x86
- Build_x64
Expand All @@ -38,7 +38,7 @@ stages:
variables:
ob_outputDirectory: '$(REPOROOT)\out'
ob_artifactBaseName: "TransportPackage"
ob_sdl_prefast_enabled: false # We currently do not build native code in this job.
ob_sdl_prefast_enabled: false # We currently do not build native code in this job.
steps:
- ${{ if not( parameters.IsOneBranch ) }}:
- checkout: self
Expand Down Expand Up @@ -128,7 +128,7 @@ stages:
name: StageFiles
inputs:
filePath: 'BuildAll.ps1'
arguments: -Platform "x86,x64,arm64" -Configuration "release" -AzureBuildStep "StageFiles"
arguments: -Platform "x86,x64,arm64" -Configuration "release" -AzureBuildStep "StageFiles" -CleanIntermediateFiles

- task: CopyFiles@2
displayName: 'Copy symbols to artifact staging directory'
Expand Down Expand Up @@ -187,13 +187,13 @@ stages:
$buildType = '$(channel)'
$majorMinorPatchRev = '$(MajorVersion).$(MinorVersion).$(versionMinDate)'
$majorMinorPatchRev = $majorMinorPatchRev + $paddedRevision

if ($env:ComponentType)
{
Write-Host "componentType " $env:ComponentType
$majorMinorPatchRev = $majorMinorPatchRev + $env:ComponentType
}

$version = $majorMinorPatchRev + '-' + $buildType

# If using release versioning, drop the version suffix, which includes a tag & build stamp.
Expand Down Expand Up @@ -233,15 +233,15 @@ stages:
name: PackNuget
inputs:
filePath: 'BuildAll.ps1'
arguments: -Platform "x64" -Configuration "release" -AzureBuildStep "PackNuget" -OutputDirectory "$(build.artifactStagingDirectory)\FullNuget" -PackageVersion "$(packageVersion)" -ComponentPackageVersion "$(componentPackageVersion)"
arguments: -Platform "x64" -Configuration "release" -AzureBuildStep "PackNuget" -OutputDirectory "$(build.artifactStagingDirectory)\FullNuget" -PackageVersion "$(packageVersion)" -ComponentPackageVersion "$(componentPackageVersion)" -CleanIntermediateFiles

# Disable building MockWindowsAppSDK until we can consider the public vs private scenario
# - ${{ if eq(parameters.BuildMockWindowsAppSDK, 'true') }}:
# - task: PowerShell@2
# name: BuildMock
# inputs:
# filePath: 'BuildAll.ps1'
# arguments: -Platform "x64" -Configuration "release" -AzureBuildStep "BuildMock" -OutputDirectory "$(build.artifactStagingDirectory)\FullNuget" -PackageVersion "$(packageVersion)"
# arguments: -Platform "x64" -Configuration "release" -AzureBuildStep "BuildMock" -OutputDirectory "$(build.artifactStagingDirectory)\FullNuget" -PackageVersion "$(packageVersion)" -CleanIntermediateFiles

- ${{ if eq(parameters.SignOutput, 'true') }}:
- template: AzurePipelinesTemplates/WindowsAppSDK-EsrpCodeSigning-Steps.yml@WindowsAppSDKConfig
Expand Down Expand Up @@ -279,4 +279,4 @@ stages:
verbosityPush: 'Detailed'
nuGetFeedType: 'internal'
#Note: The project qualifier is always required when using a feed name. Also, do not use organization scoped feeds.
publishVstsFeed: 'ProjectReunion/Project.Reunion.nuget.internal'
publishVstsFeed: 'ProjectReunion/Project.Reunion.nuget.internal'
6 changes: 3 additions & 3 deletions build/ProjectReunion-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
name: BuildBinaries
inputs:
filePath: 'BuildAll.ps1'
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildBinaries"
arguments: -Platform "$(buildPlatform)" -Configuration "$(buildConfiguration)" -AzureBuildStep "BuildBinaries" -CleanIntermediateFiles

- task: CopyFiles@2
displayName: MoveToOutputDirectory
Expand All @@ -128,7 +128,7 @@ jobs:
name: BuildBinaries
inputs:
filePath: 'BuildAll.ps1'
arguments: -AzureBuildStep "BuildAnyCPU"
arguments: -AzureBuildStep "BuildAnyCPU" -CleanIntermediateFiles

- task: PublishBuildArtifacts@1
displayName: 'Publish artifact: Full Nuget'
Expand Down Expand Up @@ -189,7 +189,7 @@ jobs:
- checkout: self
path: s
- checkout: WindowsAppSDKConfig

- template: AzurePipelinesTemplates\WindowsAppSDK-RunTests-Steps.yml
parameters:
buildPlatform: $(buildPlatform)
Expand Down
Loading