Skip to content

Commit

Permalink
Update windows build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sirjuddington committed Oct 23, 2024
1 parent 5865c8b commit 6a75401
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions msvc/buildall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ if ($build32.ToLower() -eq "y")

# Configure
Write-Host "`nConfiguring 32bit build..." -foregroundcolor blue
cmake -G Ninja $buildtype -DBUILD_PK3=OFF $targettriplet $toolchainfile $outputdir .. -B "build32"
cmake -G Ninja $buildtype -DBUILD_PK3=OFF -DBUILD_WX=ON $targettriplet $toolchainfile $outputdir .. -B "build32"

# Build
Write-Host "`nBuilding 32bit executable..." -foregroundcolor blue
cmake --build "build32"

# Clean up
Remove-Item -Recurse -Force "build32"
Remove-Item -Force ${env::temp}\vcvars32.txt
Remove-Item -Force "$env:temp\vcvars32.txt"
}


Expand Down Expand Up @@ -84,15 +84,15 @@ if ($build64.ToLower() -eq "y")

# Configure
Write-Host "`nConfiguring 64bit build..." -foregroundcolor blue
cmake -G Ninja $buildtype -DBUILD_PK3=OFF $targettriplet $toolchainfile $outputdir .. -B "build64"
cmake -G Ninja $buildtype -DBUILD_PK3=OFF -DBUILD_WX=ON $targettriplet $toolchainfile $outputdir .. -B "build64"

# Build
Write-Host "`nBuilding 64bit executable..." -foregroundcolor blue
cmake --build "build64"

# Clean up
Remove-Item -Recurse -Force "build64"
Remove-Item -Force ${env::temp}\vcvars64.txt
Remove-Item -Force "$env:temp\vcvars64.txt"
}

Write-Host "`nDone!" -foregroundcolor green

0 comments on commit 6a75401

Please sign in to comment.